path
stringlengths
26
218
content
stringlengths
0
231k
the-algorithm-main/navi/navi/src/cli_args.rs
use crate::{MAX_NUM_INPUTS, MAX_NUM_MODELS, MAX_NUM_OUTPUTS}; use arrayvec::ArrayVec; use clap::Parser; use log::info; use once_cell::sync::OnceCell; use std::error::Error; use time::OffsetDateTime; use time::format_description::well_known::Rfc3339; #[derive(Parser, Debug, Clone)] ///Navi is configured through CLI argu...
the-algorithm-main/navi/navi/src/cores/validator.rs
pub mod validatior { pub mod cli_validator { use crate::cli_args::{ARGS, MODEL_SPECS}; pub fn validate_input_args() { assert_eq!(MODEL_SPECS.len(), ARGS.inter_op_parallelism.len()); assert_eq!(MODEL_SPECS.len(), ARGS.intra_op_parallelism.len()); //TODO for now we...
the-algorithm-main/navi/navi/src/lib.rs
#[macro_use] extern crate lazy_static; extern crate core; use serde_json::Value; use tokio::sync::oneshot::Sender; use tokio::time::Instant; use std::ops::Deref; use itertools::Itertools; use crate::bootstrap::TensorInput; use crate::predict_service::Model; use crate::tf_proto::{DataType, TensorProto}; pub mod batch;...
the-algorithm-main/navi/navi/src/metrics.rs
use log::error; use prometheus::{ CounterVec, HistogramOpts, HistogramVec, IntCounter, IntCounterVec, IntGauge, IntGaugeVec, Opts, Registry, }; use warp::{Rejection, Reply}; use crate::{NAME, VERSION}; lazy_static! { pub static ref REGISTRY: Registry = Registry::new(); pub static ref NUM_REQUESTS_RECEI...
the-algorithm-main/navi/navi/src/onnx_model.rs
#[cfg(feature = "onnx")] pub mod onnx { use crate::TensorReturnEnum; use crate::bootstrap::{TensorInput, TensorInputEnum}; use crate::cli_args::{ Args, ARGS, INPUTS, MODEL_SPECS, OUTPUTS, }; use crate::metrics::{self, CONVERTER_TIME_COLLECTOR}; use crate::predict_service::Model; use ...
the-algorithm-main/navi/navi/src/predict_service.rs
use anyhow::{anyhow, Result}; use arrayvec::ArrayVec; use itertools::Itertools; use log::{error, info}; use std::fmt::{Debug, Display}; use std::string::String; use std::sync::Arc; use std::time::Duration; use tokio::process::Command; use tokio::sync::mpsc::error::TryRecvError; use tokio::sync::mpsc::{Receiver, Sender}...
the-algorithm-main/navi/navi/src/tf_model.rs
#[cfg(feature = "tf")] pub mod tf { use arrayvec::ArrayVec; use itertools::Itertools; use log::{debug, error, info, warn}; use prost::Message; use std::fmt; use std::fmt::Display; use std::string::String; use tensorflow::io::{RecordReader, RecordReadError}; use tensorflow::Operation;...
the-algorithm-main/navi/navi/src/torch_model.rs
#[cfg(feature = "torch")] pub mod torch { use std::fmt; use std::fmt::Display; use std::string::String; use crate::TensorReturnEnum; use crate::SerializedInput; use crate::bootstrap::TensorInput; use crate::cli_args::{Args, ARGS, MODEL_SPECS}; use crate::metrics; use crate::metrics:...
the-algorithm-main/navi/segdense/Cargo.toml
[package] name = "segdense" version = "0.1.0" edition = "2021" [dependencies] env_logger = "0.10.0" serde = { version = "1.0.104", features = ["derive"] } serde_json = "1.0.48" log = "0.4.17"
the-algorithm-main/navi/segdense/src/error.rs
use std::fmt::Display; /** * Custom error */ #[derive(Debug)] pub enum SegDenseError { IoError(std::io::Error), Json(serde_json::Error), JsonMissingRoot, JsonMissingObject, JsonMissingArray, JsonArraySize, JsonMissingInputFeature, } impl Display for SegDenseError { fn fmt(&self, f: &...
the-algorithm-main/navi/segdense/src/lib.rs
pub mod error; pub mod mapper; pub mod segdense_transform_spec_home_recap_2022; pub mod util;
the-algorithm-main/navi/segdense/src/main.rs
use std::env; use std::fs; use segdense::error::SegDenseError; use segdense::util; fn main() -> Result<(), SegDenseError> { env_logger::init(); let args: Vec<String> = env::args().collect(); let schema_file_name: &str = if args.len() == 1 { "json/compact.json" } else { &args[1] };...
the-algorithm-main/navi/segdense/src/mapper.rs
use std::collections::HashMap; #[derive(Debug)] pub struct FeatureInfo { pub tensor_index: i8, pub index_within_tensor: i64, } pub static NULL_INFO: FeatureInfo = FeatureInfo { tensor_index: -1, index_within_tensor: -1, }; #[derive(Debug, Default)] pub struct FeatureMapper { map: HashMap<i64, Fea...
the-algorithm-main/navi/segdense/src/segdense_transform_spec_home_recap_2022.rs
use serde::{Deserialize, Serialize}; use serde_json::Value; #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Root { #[serde(rename = "common_prefix")] pub common_prefix: String, #[serde(rename = "densification_transform_spec")] pub densif...
the-algorithm-main/navi/segdense/src/util.rs
use log::debug; use std::fs; use serde_json::{Map, Value}; use crate::error::SegDenseError; use crate::mapper::{FeatureInfo, FeatureMapper, MapWriter}; use crate::segdense_transform_spec_home_recap_2022::{self as seg_dense, InputFeature}; pub fn load_config(file_name: &str) -> Result<seg_dense::Root, SegDenseError> ...
the-algorithm-main/navi/thrift_bpr_adapter/thrift/Cargo.toml
[package] name = "bpr_thrift" description = "Thrift parser for Batch Prediction Request" version = "0.1.0" edition = "2021" [dependencies] thrift = "0.17.0"
the-algorithm-main/navi/thrift_bpr_adapter/thrift/src/data.rs
// Autogenerated by Thrift Compiler (0.17.0) // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING #![allow(unused_imports)] #![allow(unused_extern_crates)] #![allow(clippy::too_many_arguments, clippy::type_complexity, clippy::vec_box)] #![cfg_attr(rustfmt, rustfmt_skip)] use std::cell::RefCell; use std...
the-algorithm-main/navi/thrift_bpr_adapter/thrift/src/decoder.rs
// A feature value can be one of these enum FeatureVal { Empty, U8Vector(Vec<u8>), FloatVector(Vec<f32>), } // A Feture has a name and a value // The name for now is 'id' of type string // Eventually this needs to be flexible - example to accomodate feature-id struct Feature { id: String, val: FeatureVal, }...
the-algorithm-main/navi/thrift_bpr_adapter/thrift/src/lib.rs
pub mod prediction_service; pub mod data; pub mod tensor;
the-algorithm-main/navi/thrift_bpr_adapter/thrift/src/main.rs
use std::collections::BTreeSet; use std::collections::BTreeMap; use bpr_thrift::data::DataRecord; use bpr_thrift::prediction_service::BatchPredictionRequest; use thrift::OrderedFloat; use thrift::protocol::TBinaryInputProtocol; use thrift::protocol::TSerializable; use thrift::transport::TBufferChannel; use thrift::Re...
the-algorithm-main/navi/thrift_bpr_adapter/thrift/src/prediction_service.rs
// Autogenerated by Thrift Compiler (0.17.0) // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING #![allow(unused_imports)] #![allow(unused_extern_crates)] #![allow(clippy::too_many_arguments, clippy::type_complexity, clippy::vec_box)] #![cfg_attr(rustfmt, rustfmt_skip)] use std::cell::RefCell; use std...
the-algorithm-main/navi/thrift_bpr_adapter/thrift/src/tensor.rs
// Autogenerated by Thrift Compiler (0.17.0) // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING #![allow(unused_imports)] #![allow(unused_extern_crates)] #![allow(clippy::too_many_arguments, clippy::type_complexity, clippy::vec_box)] #![cfg_attr(rustfmt, rustfmt_skip)] use std::cell::RefCell; use std...
the-algorithm-main/product-mixer/README.md
Product Mixer ============= ## Overview Product Mixer is a common service framework and set of libraries that make it easy to build, iterate on, and own product surface areas. It consists of: - **Core Libraries:** A set of libraries that enable you to build execution pipelines out of reusable components. You defin...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/AccountRecommendationsMixerCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.account_recommendations_mixer import com.twitter.account_recommendations_mixer.{thriftscala => t} import com.twitter.product_mixer.component_library.model.candidate.UserCandidate import com.twitter.product_mixer.core.feature.Feature import com.twitte...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], platform = "java8", strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "account-recommendations-mixer/thrift/src/main/thrift:thrift-scala", "finatra/inject/inject-core/src/main/scala/c...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdStratoCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.ads import com.twitter.adserver.thriftscala.AdImpression import com.twitter.adserver.thriftscala.AdRequestParams import com.twitter.adserver.thriftscala.AdRequestResponse import com.twitter.product_mixer.core.functional_component.candidate_source.str...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdThriftCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.ads import com.twitter.adserver.thriftscala.AdImpression import com.twitter.adserver.thriftscala.AdRequestParams import com.twitter.adserver.thriftscala.NewAdServer import com.twitter.product_mixer.core.functional_component.candidate_source.Candidate...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsStagingCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.ads import com.twitter.adserver.thriftscala.AdImpression import com.twitter.adserver.thriftscala.AdRequestParams import com.twitter.adserver.thriftscala.AdRequestResponse import com.twitter.product_mixer.core.functional_component.candidate_source.str...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidat...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.ann import com.twitter.ann.common._ import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import com.twitter.stitch.Stitch i...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnIdQuery.scala
package com.twitter.product_mixer.component_library.candidate_source.ann import com.twitter.ann.common._ /** * A [[AnnIdQuery]] is a query class which defines the ann entities with runtime params and number of neighbors requested * * @param ids Sequence of queries * @param numOfNeighbors Number of neighbors reque...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "ann/src/main/scala/com/twitter/ann/common", "ann/src/main/scala/com/twitter/ann/hnsw", "ann/src/main/thrift/com/twitter/ann/comm...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", "product-mixer/core/src/main/s...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/CreatedSpacesCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.audiospace import com.twitter.periscope.audio_space.thriftscala.CreatedSpacesView import com.twitter.periscope.audio_space.thriftscala.SpaceSlice import com.twitter.product_mixer.component_library.model.cursor.NextCursorFeature import com.twitter.pro...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", "product-mixer/core/src/main/s...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/TeamMembersCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.business_profiles import com.twitter.product_mixer.component_library.model.cursor.NextCursorFeature import com.twitter.product_mixer.component_library.model.cursor.PreviousCursorFeature import com.twitter.product_mixer.core.feature.featuremap.Feature...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "cr-mixer/thrift/src/main/thrift:thrift-scala", "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "product-mixer/co...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerFrsBasedTweetRecommendationsCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.cr_mixer import com.twitter.cr_mixer.{thriftscala => t} import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import com.twi...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerTweetRecommendationsCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.cr_mixer import com.twitter.cr_mixer.{thriftscala => t} import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import com.twi...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functio...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/EarlybirdTweetCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.earlybird import com.twitter.search.earlybird.{thriftscala => t} import com.twitter.inject.Logging import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource import com.twitter.product_mixer.core.model.common.identifi...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "explore/explore-ranker/thrift/src/main/thrift:thrift-scala", "product-mixer/core/src/m...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/ExploreRankerCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.explore_ranker import com.twitter.explore_ranker.{thriftscala => t} import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier im...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], platform = "java8", strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "onboarding/service/thrift/src/main/thrift:thrift...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/PromptCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline import com.twitter.inject.Logging import com.twitter.onboarding.injections.{thriftscala => injectionsthrift} import com.twitter.onboarding.task.service.{thriftscala => servicethrift} import com.twitter.product_mixer.core.f...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidat...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/UsersSimilarToMeCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.hermit import com.twitter.hermit.thriftscala.RecommendationRequest import com.twitter.hermit.thriftscala.RecommendationResponse import com.twitter.hermit.thriftscala.RelatedUser import com.twitter.product_mixer.core.functional_component.candidate_sou...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "interests-service/thri...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/RelatedTopicsCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.interest_discovery import com.google.inject.Inject import com.google.inject.Singleton import com.twitter.inject.Logging import com.twitter.interests_discovery.{thriftscala => t} import com.twitter.product_mixer.core.functional_component.candidate_sou...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "interests_discovery/thrift/src/main/thrift:service-thrift-scala", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/func...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/OrganicPopGeoListsCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.lists import com.twitter.product_mixer.component_library.model.candidate.TwitterListCandidate import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyFetcherSource import com.twitter.product_mixer.core.model.common...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], platform = "java8", strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "people-discovery/api/thrift:thrift-scala", ...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/PeopleDiscoveryCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.people_discovery import com.twitter.peoplediscovery.api.{thriftscala => t} import com.twitter.product_mixer.component_library.model.candidate.UserCandidate import com.twitter.product_mixer.core.feature.Feature import com.twitter.product_mixer.core.fe...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "product-mixer/co...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/UserFollowRecommendationsCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.recommendations import com.twitter.follow_recommendations.{thriftscala => fr} import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSource import com.twitter.product_mixer.core.model.common.identifier....
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/mod...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.social_graph import com.twitter.product_mixer.component_library.model.candidate.CursorType import com.twitter.product_mixer.component_library.model.candidate.NextCursor import com.twitter.product_mixer.component_library.model.candidate.PreviousCursor...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCursorConstants.scala
package com.twitter.product_mixer.component_library.candidate_source.social_graph object SocialgraphCursorConstants { val EndCursor: Long = 0L val StartCursor: Long = -1L val LastSortIndex: Long = 0L }
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functio...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerInNetworkCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.timeline_ranker import com.twitter.product_mixer.core.feature.Feature import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedF...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerRecapCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.timeline_ranker import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import com.twitter.stitch.Stitch import com.twitter.ti...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerUtegCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.timeline_ranker import com.twitter.product_mixer.core.feature.Feature import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedF...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala/com/twitter/inject", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functio...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/TimelineScorerCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.timeline_scorer import com.twitter.product_mixer.core.feature.Feature import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedF...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/mod...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/TimelineServiceTweetCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.timeline_service import com.twitter.product_mixer.component_library.model.cursor.NextCursorFeature import com.twitter.product_mixer.component_library.model.cursor.PreviousCursorFeature import com.twitter.product_mixer.core.feature.FeatureWithDefaultO...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidat...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/TimelinesImpressionStoreCandidateSourceV2.scala
package com.twitter.product_mixer.component_library.candidate_source.timelines_impression_store import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyFetcherSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import com.twitter.strato.cli...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", "strato/config/columns/i...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/FollowedTopicsCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.topics import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSeqSource import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import com.twitter.strato.client.Fetcher i...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/BUILD.bazel
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", "product-mixer/component-libr...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceCandidateSource.scala
package com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc import com.twitter.product_mixer.core.feature.featuremap.FeatureMap import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures import com.twitter.product_mixer.core.functional_compon...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceResponseFeatureTransformer.scala
package com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate import com.twitter.product_mixer.core.feature.Feature import com.twitter.product_mixer.core.feature.featuremap.FeatureMap import com.twitter.product_mixer...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/DropMaxConversationModuleItemCandidates.scala
package com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc import com.twitter.product_mixer.core.functional_component.common.CandidateScope import com.twitter.product_mixer.core.functional_component.selector.Selector import com.twitter.product_mixer.core.functional_component.selector.SelectorRe...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], platform = "java8", strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder", ...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/SliceItemCandidateDecorator.scala
package com.twitter.product_mixer.component_library.decorator.slice import com.twitter.product_mixer.component_library.model.candidate.CursorCandidate import com.twitter.product_mixer.component_library.model.presentation.slice.SliceItemPresentation import com.twitter.product_mixer.core.model.common.UniversalNoun impor...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/BUILD
scala_library( sources = ["*.scala"], compiler_option_sets = ["fatal_warnings"], platform = "java8", strict_deps = True, tags = ["bazel-compatible"], dependencies = [ "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", "pr...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/CursorCandidateSliceItemBuilder.scala
package com.twitter.product_mixer.component_library.decorator.slice.builder import com.twitter.product_mixer.component_library.model.candidate.CursorCandidate import com.twitter.product_mixer.component_library.model.candidate.{ NextCursor => CursorCandidateNextCursor } import com.twitter.product_mixer.component_libr...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/BUILD
scala_library( name = "urt", sources = ["**/*.scala"] + exclude_globs(["builder/richtext/*.scala"]), compiler_option_sets = ["fatal_warnings"], platform = "java8", scalac_plugins = ["no-roomba"], strict_deps = True, tags = ["bazel-compatible"], dependencies = [ ":richtext", ...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtConversationItemCandidateDecorator.scala
package com.twitter.product_mixer.component_library.decorator.urt import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate import com.twitter.product_mixer.component_library.mod...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemCandidateDecorator.scala
package com.twitter.product_mixer.component_library.decorator.urt import com.twitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation import com.twitter.product_mixer.core.model.common.UniversalNoun import com.twitter.product_mixer.core.model.common.identifier.DecoratorIdentifier import com.t...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemInModuleDecorator.scala
package com.twitter.product_mixer.component_library.decorator.urt import com.twitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation import com.twitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation import com.twitter.product_mixer.core.model.common.UniversalNou...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtMultipleModulesDecorator.scala
package com.twitter.product_mixer.component_library.decorator.urt import com.twitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation import com.twitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation import com.twitter.product_mixer.core.model.common.UniversalNou...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/contextual_ref/ContextualTweetRefBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.ContextualTweetRef import com.twitter.product_mixer.core.mod...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/conversations/ConversationModuleMetadataBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.conversations import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate import com.twitter.product_mixer.core.feature.Feature import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_m...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptCandidateUrtItemBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline import com.twitter.onboarding.injections.thriftscala.Injection import com.twitter.onboarding.injections.{thriftscala => onboardingthrift} import com.twitter.product_mixer.component_library.decorator.urt.builder.flexib...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptModuleGrouping.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline import com.twitter.product_mixer.component_library.decorator.urt.GroupByKey import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptInjectionsFeature imp...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptUrtModuleBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline import com.twitter.onboarding.injections.thriftscala.Injection import com.twitter.onboarding.injections.{thriftscala => onboardingthrift} import com.twitter.product_mixer.component_library.decorator.urt.builder.timeli...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/OnboardingInjectionConversions.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline import com.twitter.onboarding.injections.{thriftscala => onboardingthrift} import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CenterCoverHalfCoverDisplayType import com.twitter.product_mixer.co...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/RelevancePromptConversions.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline import com.twitter.onboarding.injections.{thriftscala => onboardingthrift} import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.Compact import com.twitter.product_mixer.core.model.marshalli...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/TilesCarouselConversions.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline import com.twitter.onboarding.injections.{thriftscala => onboardingthrift} import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.OnboardingInjectionConversions.convertIma...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/icon/HorizonIconBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.icon import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.icon.BaseHorizonIconBuilder import com.twitter.product_mixer.core.model.common.CandidateWithFeatures import com.twitter.product_mixer.core.model.common.Univers...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/ad/AdsCandidateUrtItemBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad import com.twitter.ads.adserver.{thriftscala => ads} import com.twitter.adserver.{thriftscala => adserver} import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder import com.twitt...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/DurationParamBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert import com.twitter.product_mixer.component_library.model.candidate.ShowAlertCandidate import com.twitter.product_mixer.core.feature.featuremap.FeatureMap import com.twitter.product_mixer.core.functional_component.decorator.urt.builder...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/ShowAlertCandidateUrtItemBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert import com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert.ShowAlertCandidateUrtItemBuilder.ShowAlertClientEventInfoElement import com.twitter.product_mixer.component_library.model.candidate.ShowAlertCandidate...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertColorConfigurationBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert import com.twitter.product_mixer.component_library.model.candidate.ShowAlertCandidate import com.twitter.product_mixer.core.feature.featuremap.FeatureMap import com.twitter.product_mixer.core.functional_component.decorator.urt.builder...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertDisplayLocationBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert import com.twitter.product_mixer.component_library.model.candidate.ShowAlertCandidate import com.twitter.product_mixer.core.feature.featuremap.FeatureMap import com.twitter.product_mixer.core.functional_component.decorator.urt.builder...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertIconDisplayInfoBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert import com.twitter.product_mixer.component_library.model.candidate.ShowAlertCandidate import com.twitter.product_mixer.core.feature.featuremap.FeatureMap import com.twitter.product_mixer.core.functional_component.decorator.urt.builder...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/article/ArticleCandidateUrtItemBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.article import com.twitter.product_mixer.component_library.decorator.urt.builder.item.article.ArticleCandidateUrtItemBuilder.ArticleClientEventInfoElement import com.twitter.product_mixer.component_library.model.candidate.BaseArticleCandida...
the-algorithm-main/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/audio_space/AudioSpaceCandidateUrtItemBuilder.scala
package com.twitter.product_mixer.component_library.decorator.urt.builder.item.audio_space import com.twitter.product_mixer.component_library.decorator.urt.builder.item.audio_space.AudioSpaceCandidateUrtItemBuilder.AudioSpaceClientEventInfoElement import com.twitter.product_mixer.component_library.model.candidate.Audi...