Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait EstimateNumOrganicItems[Query <: PipelineQuery with AdsQuery] {
* @note the key difference between [[CountNumOrganicItems]] and [[EstimateNumOrganicItems]] is
* that for [[EstimateNumOrganicItems]] we don't have any candidates returned yet, so we can
* only guess as to the number of organic items in the result set. In contrast,
* [[CountNumOrganicItems]] is used on dependant candidate pipelines where we can scan over
* [[CountNumOrganicItems]] is used on dependent candidate pipelines where we can scan over
* the candidate pipelines result set to count the number of organic items.
*/
trait CountNumOrganicItems[-Query <: PipelineQuery with AdsQuery] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private[featuremap] class FeatureMapSerializer() extends JsonSerializer[FeatureM
gen.writeEndObject()
}

// Some features can be very large when stringified, for example when a dependant candidate
// Some features can be very large when stringified, for example when a dependent candidate
// pipeline is used, the entire previous candidate pipeline result is serialized into a feature.
// This causes significant performance issues when the result is later sent over the wire.
private def truncateString(input: String): String =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class ModelLoader implements Runnable {
* ${counterPrefix}_num_models:
* Number of models currently loaded.
* ${counterPrefix}_num_loads:
* Number of succesful model loads.
* Number of successful model loads.
* ${counterPrefix}_num_errors:
* Number of errors occurred while loading the models.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected ConsumerRecords<K, V> poll() {

protected abstract void validateAndIndexRecord(ConsumerRecord<K, V> record);

// Shutdown hook which can be called from a seperate thread. Calling consumer.wakeup() interrupts
// Shutdown hook which can be called from a separate thread. Calling consumer.wakeup() interrupts
// the running indexer and causes it to first stop polling for new records before gracefully
// closing the consumer.
public void close() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* opposite value of isPositive of the parent group.
*
* I'll try to break it down a bit further. Let's assume "a" and "b" are hf terms, and '
* "[hf_term_pair a b]" represents querying their co-occurence.
* "[hf_term_pair a b]" represents querying their co-occurrence.
* Query (* a b not_hf) can become (* [hf_term_pair a b] not_hf)
* Query (+ -a -b -not_hf) can become (+ -[hf_term_pair a b] -not_hf)
* These two rules represent the bulk of the rewrites that this class makes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ch.qos.logback.core.spi.FilterReply
import com.twitter.tweetypie.serverutil.ExceptionCounter.isAlertable

/**
* This class is currently being used by logback to log alertable exceptions to a seperate file.
* This class is currently being used by logback to log alertable exceptions to a separate file.
*
* Filters do not change the log levels of individual loggers. Filters filter out specific messages
* for specific appenders. This allows us to have a log file with lots of information you will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ struct PostTweetRequest {
* time, tweetypie would delegate to creative container service.
*
* go/creatives-containers-tdd
* Please note that this id is never publically shared with clients, its only used for
* Please note that this id is never publicly shared with clients, its only used for
* internal purposes.
*/
35: optional i64 underlying_creatives_container_id (personalDataType = 'TweetId')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case class TweetCacheWrite(
* If the tweet id is a snowflake id, this is an offset since tweet creation.
* If it is not a snowflake id, then this is a Unix epoch time in
* milliseconds. (The idea is that for most tweets, this encoding will make
* it easier to see the interval between events and whether it occured soon
* it easier to see the interval between events and whether it occurred soon
* after tweet creation.)
* - Cache action ("set", "add", "replace", "cas", "delete")
* - Base64-encoded Cached[CachedTweet] struct
Expand Down
4 changes: 2 additions & 2 deletions twml/twml/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,15 @@ def get_trainer_parser():
action=parse_comma_separated_list(element_type=float),
default=None,
help="Required for 'piecewise_constant_values' learning_rate_decay. "
"A list of comma seperated floats or ints that specifies the values "
"A list of comma separated floats or ints that specifies the values "
"for the intervals defined by boundaries. It should have one more "
"element than boundaries.")
parser_piecewise_constant.add_argument(
"--piecewise_constant_boundaries",
action=parse_comma_separated_list(element_type=int),
default=None,
help="Required for 'piecewise_constant_values' learning_rate_decay. "
"A list of comma seperated integers, with strictly increasing entries.")
"A list of comma separated integers, with strictly increasing entries.")

# Create the parser for the "inverse_learning_rate_decay_fn"
parser_inverse = subparsers.add_parser('inverse_learning_rate_decay',
Expand Down