diff --git a/README.md b/README.md index b872faef5..109256f7d 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ -# Twitter's Recommendation Algorithm +# ExTwitter's Recommendation Algorithm -Twitter's Recommendation Algorithm is a set of services and jobs that are responsible for serving feeds of Tweets and other content across all Twitter product surfaces (e.g. For You Timeline, Search, Explore, Notifications). For an introduction to how the algorithm works, please refer to our [engineering blog](https://blog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm). +ExTwitter's Recommendation Algorithm is a set of services and jobs that are responsible for serving feeds of Tweets and other content across all ExTwitter product surfaces (e.g. For You Timeline, Search, Explore, Notifications). For an introduction to how the algorithm works, please refer to our [engineering blog](https://blog.ExTwitter.com/engineering/en_us/topics/open-source/2023/ExTwitter-recommendation-algorithm). ## Architecture -Product surfaces at Twitter are built on a shared set of data, models, and software frameworks. The shared components included in this repository are listed below: +Product surfaces at ExTwitter are built on a shared set of data, models, and software frameworks. The shared components included in this repository are listed below: | Type | Component | Description | |------------|------------|------------| | Data | [tweetypie](tweetypie/server/README.md) | Core Tweet service that handles the reading and writing of Tweet data. | -| | [unified-user-actions](unified_user_actions/README.md) | Real-time stream of user actions on Twitter. | +| | [unified-user-actions](unified_user_actions/README.md) | Real-time stream of user actions on ExTwitter. | | | [user-signal-service](user-signal-service/README.md) | Centralized platform to retrieve explicit (e.g. likes, replies) and implicit (e.g. profile visits, tweet clicks) user signals. | -| Model | [SimClusters](src/scala/com/twitter/simclusters_v2/README.md) | Community detection and sparse embeddings into those communities. | -| | [TwHIN](https://github.com/twitter/the-algorithm-ml/blob/main/projects/twhin/README.md) | Dense knowledge graph embeddings for Users and Tweets. | +| Model | [SimClusters](src/scala/com/ExTwitter/simclusters_v2/README.md) | Community detection and sparse embeddings into those communities. | +| | [TwHIN](https://github.com/ExTwitter/the-algorithm-ml/blob/main/projects/twhin/README.md) | Dense knowledge graph embeddings for Users and Tweets. | | | [trust-and-safety-models](trust_and_safety_models/README.md) | Models for detecting NSFW or abusive content. | -| | [real-graph](src/scala/com/twitter/interaction_graph/README.md) | Model to predict the likelihood of a Twitter User interacting with another User. | -| | [tweepcred](src/scala/com/twitter/graph/batch/job/tweepcred/README) | Page-Rank algorithm for calculating Twitter User reputation. | -| | [recos-injector](recos-injector/README.md) | Streaming event processor for building input streams for [GraphJet](https://github.com/twitter/GraphJet) based services. | +| | [real-graph](src/scala/com/ExTwitter/interaction_graph/README.md) | Model to predict the likelihood of a ExTwitter User interacting with another User. | +| | [tweepcred](src/scala/com/ExTwitter/graph/batch/job/tweepcred/README) | Page-Rank algorithm for calculating ExTwitter User reputation. | +| | [recos-injector](recos-injector/README.md) | Streaming event processor for building input streams for [GraphJet](https://github.com/ExTwitter/GraphJet) based services. | | | [graph-feature-service](graph-feature-service/README.md) | Serves graph features for a directed pair of Users (e.g. how many of User A's following liked Tweets from User B). | | | [topic-social-proof](topic-social-proof/README.md) | Identifies topics related to individual Tweets. | | | [representation-scorer](representation-scorer/README.md) | Compute scores between pairs of entities (Users, Tweets, etc.) using embedding similarity. | @@ -38,14 +38,14 @@ The core components of the For You Timeline included in this repository are list | Type | Component | Description | |------------|------------|------------| -| Candidate Source | [search-index](src/java/com/twitter/search/README.md) | Find and rank In-Network Tweets. ~50% of Tweets come from this candidate source. | +| Candidate Source | [search-index](src/java/com/ExTwitter/search/README.md) | Find and rank In-Network Tweets. ~50% of Tweets come from this candidate source. | | | [cr-mixer](cr-mixer/README.md) | Coordination layer for fetching Out-of-Network tweet candidates from underlying compute services. | -| | [user-tweet-entity-graph](src/scala/com/twitter/recos/user_tweet_entity_graph/README.md) (UTEG)| Maintains an in memory User to Tweet interaction graph, and finds candidates based on traversals of this graph. This is built on the [GraphJet](https://github.com/twitter/GraphJet) framework. Several other GraphJet based features and candidate sources are located [here](src/scala/com/twitter/recos). | +| | [user-tweet-entity-graph](src/scala/com/ExTwitter/recos/user_tweet_entity_graph/README.md) (UTEG)| Maintains an in memory User to Tweet interaction graph, and finds candidates based on traversals of this graph. This is built on the [GraphJet](https://github.com/ExTwitter/GraphJet) framework. Several other GraphJet based features and candidate sources are located [here](src/scala/com/ExTwitter/recos). | | | [follow-recommendation-service](follow-recommendations-service/README.md) (FRS)| Provides Users with recommendations for accounts to follow, and Tweets from those accounts. | -| Ranking | [light-ranker](src/python/twitter/deepbird/projects/timelines/scripts/models/earlybird/README.md) | Light Ranker model used by search index (Earlybird) to rank Tweets. | -| | [heavy-ranker](https://github.com/twitter/the-algorithm-ml/blob/main/projects/home/recap/README.md) | Neural network for ranking candidate tweets. One of the main signals used to select timeline Tweets post candidate sourcing. | +| Ranking | [light-ranker](src/python/ExTwitter/deepbird/projects/timelines/scripts/models/earlybird/README.md) | Light Ranker model used by search index (Earlybird) to rank Tweets. | +| | [heavy-ranker](https://github.com/ExTwitter/the-algorithm-ml/blob/main/projects/home/recap/README.md) | Neural network for ranking candidate tweets. One of the main signals used to select timeline Tweets post candidate sourcing. | | Tweet mixing & filtering | [home-mixer](home-mixer/README.md) | Main service used to construct and serve the Home Timeline. Built on [product-mixer](product-mixer/README.md). | -| | [visibility-filters](visibilitylib/README.md) | Responsible for filtering Twitter content to support legal compliance, improve product quality, increase user trust, protect revenue through the use of hard-filtering, visible product treatments, and coarse-grained downranking. | +| | [visibility-filters](visibilitylib/README.md) | Responsible for filtering ExTwitter content to support legal compliance, improve product quality, increase user trust, protect revenue through the use of hard-filtering, visible product treatments, and coarse-grained downranking. | | | [timelineranker](timelineranker/README.md) | Legacy service which provides relevance-scored tweets from the Earlybird Search Index and UTEG service. | ### Recommended Notifications @@ -54,7 +54,7 @@ The core components of Recommended Notifications included in this repository are | Type | Component | Description | |------------|------------|------------| -| Service | [pushservice](pushservice/README.md) | Main recommendation service at Twitter used to surface recommendations to our users via notifications. +| Service | [pushservice](pushservice/README.md) | Main recommendation service at ExTwitter used to surface recommendations to our users via notifications. | Ranking | [pushservice-light-ranker](pushservice/src/main/python/models/light_ranking/README.md) | Light Ranker model used by pushservice to rank Tweets. Bridges candidate generation and heavy ranking by pre-selecting highly-relevant candidates from the initial huge candidate pool. | | | [pushservice-heavy-ranker](pushservice/src/main/python/models/heavy_ranking/README.md) | Multi-task learning model to predict the probabilities that the target users will open and engage with the sent notifications. | @@ -64,6 +64,6 @@ We include Bazel BUILD files for most components, but not a top-level BUILD or W ## Contributing -We invite the community to submit GitHub issues and pull requests for suggestions on improving the recommendation algorithm. We are working on tools to manage these suggestions and sync changes to our internal repository. Any security concerns or issues should be routed to our official [bug bounty program](https://hackerone.com/twitter) through HackerOne. We hope to benefit from the collective intelligence and expertise of the global community in helping us identify issues and suggest improvements, ultimately leading to a better Twitter. +We invite the community to submit GitHub issues and pull requests for suggestions on improving the recommendation algorithm. We are working on tools to manage these suggestions and sync changes to our internal repository. Any security concerns or issues should be routed to our official [bug bounty program](https://hackerone.com/ExTwitter) through HackerOne. We hope to benefit from the collective intelligence and expertise of the global community in helping us identify issues and suggest improvements, ultimately leading to a better ExTwitter. -Read our blog on the open source initiative [here](https://blog.twitter.com/en_us/topics/company/2023/a-new-era-of-transparency-for-twitter). +Read our blog on the open source initiative [here](https://blog.ExTwitter.com/en_us/topics/company/2023/a-new-era-of-transparency-for-ExTwitter). diff --git a/RETREIVAL_SIGNALS.md b/RETREIVAL_SIGNALS.md index 6f064bc46..53970eb00 100644 --- a/RETREIVAL_SIGNALS.md +++ b/RETREIVAL_SIGNALS.md @@ -2,7 +2,7 @@ ## Overview -The candidate sourcing stage within the Twitter Recommendation algorithm serves to significantly narrow down the item size from approximately 1 billion to just a few thousand. This process utilizes Twitter user behavior as the primary input for the algorithm. This document comprehensively enumerates all the signals during the candidate sourcing phase. +The candidate sourcing stage within the ExTwitter Recommendation algorithm serves to significantly narrow down the item size from approximately 1 billion to just a few thousand. This process utilizes ExTwitter user behavior as the primary input for the algorithm. This document comprehensively enumerates all the signals during the candidate sourcing phase. | Signals | Description | | :-------------------- | :-------------------------------------------------------------------- | @@ -27,7 +27,7 @@ The candidate sourcing stage within the Twitter Recommendation algorithm serves ## Usage Details -Twitter uses these user signals as training labels and/or ML features in the each candidate sourcing algorithms. The following tables shows how they are used in the each components. +ExTwitter uses these user signals as training labels and/or ML features in the each candidate sourcing algorithms. The following tables shows how they are used in the each components. | Signals | USS | SimClusters | TwHin | UTEG | FRS | Light Ranking | | :-------------------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- | diff --git a/ann/src/main/java/com/twitter/ann/faiss/BUILD b/ann/src/main/java/com/twitter/ann/faiss/BUILD index 2320a1dae..ff459a2d8 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/BUILD +++ b/ann/src/main/java/com/twitter/ann/faiss/BUILD @@ -1,7 +1,7 @@ target( name = "faiss", dependencies = [ - "ann/src/main/java/com/twitter/ann/faiss/swig:swig-artifactory", + "ann/src/main/java/com/ExTwitter/ann/faiss/swig:swig-artifactory", ], ) diff --git a/ann/src/main/java/com/twitter/ann/faiss/NativeUtils.java b/ann/src/main/java/com/twitter/ann/faiss/NativeUtils.java index 424d28890..61929c59a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/NativeUtils.java +++ b/ann/src/main/java/com/twitter/ann/faiss/NativeUtils.java @@ -1,4 +1,4 @@ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; import java.io.File; import java.io.FileNotFoundException; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableFloat32.java b/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableFloat32.java index 9758bd20d..e06e5516e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableFloat32.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableFloat32.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class AlignedTableFloat32 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint16.java b/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint16.java index 1ce3c67f7..98cc0f100 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint16.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint16.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class AlignedTableUint16 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint8.java index f1640baa8..b6956044e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/AlignedTableUint8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class AlignedTableUint8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ArrayInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ArrayInvertedLists.java index 8536e6549..81c17e738 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ArrayInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ArrayInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ArrayInvertedLists extends InvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/AutoTuneCriterion.java b/ann/src/main/java/com/twitter/ann/faiss/swig/AutoTuneCriterion.java index c9df33f9f..5d8569c78 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/AutoTuneCriterion.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/AutoTuneCriterion.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class AutoTuneCriterion { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/BUILD b/ann/src/main/java/com/twitter/ann/faiss/swig/BUILD index b8b12773a..22d46d5b9 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/BUILD +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/BUILD @@ -8,8 +8,8 @@ java_library( "bazel-only", ], dependencies = [ - "ann/src/main/java/com/twitter/ann/faiss:swig-native-utils", - "ann/src/main/java/com/twitter/ann/faiss/swig/resources", + "ann/src/main/java/com/ExTwitter/ann/faiss:swig-native-utils", + "ann/src/main/java/com/ExTwitter/ann/faiss/swig/resources", ], ) @@ -20,7 +20,7 @@ java_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/ann/faiss/swig:resources", - "ann/src/main/java/com/twitter/ann/faiss:swig-native-utils", + "3rdparty/jvm/com/ExTwitter/ann/faiss/swig:resources", + "ann/src/main/java/com/ExTwitter/ann/faiss:swig-native-utils", ], ) diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringReader.java b/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringReader.java index 042789dca..09a3759e2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringReader.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringReader.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class BitstringReader { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringWriter.java b/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringWriter.java index 8fc18d9c2..74d113bf3 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringWriter.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/BitstringWriter.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class BitstringWriter { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/BufferList.java b/ann/src/main/java/com/twitter/ann/faiss/swig/BufferList.java index 256fc1edd..b85fc4a62 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/BufferList.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/BufferList.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class BufferList { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVector.java index f439dfa72..343c3baec 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ByteVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVectorVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVectorVector.java index fa0b3a7cc..d45508295 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVectorVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ByteVectorVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ByteVectorVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/CenteringTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/CenteringTransform.java index e9abaf61a..6af4e6969 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/CenteringTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/CenteringTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class CenteringTransform extends VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/CharVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/CharVector.java index e1b91127c..d6af6edda 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/CharVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/CharVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class CharVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering.java b/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering.java index d8fe51728..2ba173678 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class Clustering extends ClusteringParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering1D.java b/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering1D.java index 8d4bc658c..e1d172b78 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering1D.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/Clustering1D.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class Clustering1D extends Clustering { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringIterationStats.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringIterationStats.java index b0fcb5d09..ed0de7d9e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringIterationStats.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringIterationStats.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ClusteringIterationStats { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringParameters.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringParameters.java index 3c52d810f..54111c7b5 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringParameters.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ClusteringParameters.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ClusteringParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/DistanceComputer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/DistanceComputer.java index 251ede16f..0f12d1d89 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/DistanceComputer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/DistanceComputer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class DistanceComputer { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/DoubleVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/DoubleVector.java index c58001498..a7775bb51 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/DoubleVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/DoubleVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class DoubleVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVector.java index 7374ce3a2..79141f482 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class FloatVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVectorVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVectorVector.java index 2aa7afbd2..2315a9043 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVectorVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/FloatVectorVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class FloatVectorVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer16.java b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer16.java index 2986d07de..0b46b517a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer16.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer16.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class GenHammingComputer16 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer32.java b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer32.java index 284a6ac8c..beaebdb4d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer32.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer32.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class GenHammingComputer32 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer8.java index 063b873df..d564df206 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputer8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class GenHammingComputer8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputerM8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputerM8.java index 89ba44588..f0966e295 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputerM8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/GenHammingComputerM8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class GenHammingComputerM8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HNSW.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HNSW.java index 5be46f042..21d5e7dc1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HNSW.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HNSW.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HNSW { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HNSWStats.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HNSWStats.java index baf388f5a..7efb1431b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HNSWStats.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HNSWStats.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HNSWStats { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HStackInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HStackInvertedLists.java index 52e5c3b8c..5c6f2fbc1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HStackInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HStackInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HStackInvertedLists extends ReadOnlyInvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer16.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer16.java index 14727d083..8dda3580d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer16.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer16.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputer16 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer20.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer20.java index 68857db2b..39acb171b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer20.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer20.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputer20 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer32.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer32.java index 78207d8eb..b6baf356b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer32.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer32.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputer32 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer4.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer4.java index 3f8b67605..42ab7aaca 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer4.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer4.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputer4 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer64.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer64.java index d1962d367..8475f1f6a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer64.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer64.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputer64 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer8.java index 16c7eb8a9..87cbf892a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputer8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputer8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerDefault.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerDefault.java index b569f8ed0..1dd7bfefa 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerDefault.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerDefault.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputerDefault { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM4.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM4.java index 386fbda61..10b36c954 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM4.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM4.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputerM4 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM8.java index 24a520476..3c36b611b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/HammingComputerM8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class HammingComputerM8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelector.java index 893f28bb2..84be4482d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IDSelector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorArray.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorArray.java index 42c4860f2..65e89447e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorArray.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorArray.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IDSelectorArray extends IDSelector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorBatch.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorBatch.java index 69988c1be..badc5b640 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorBatch.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorBatch.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IDSelectorBatch extends IDSelector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorRange.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorRange.java index c8f49eb88..cf2645e27 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorRange.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IDSelectorRange.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IDSelectorRange extends IDSelector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ITQMatrix.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ITQMatrix.java index 333577c44..457aacc72 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ITQMatrix.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ITQMatrix.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ITQMatrix extends LinearTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ITQTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ITQTransform.java index 42196648d..c3dcad2a9 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ITQTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ITQTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ITQTransform extends VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IVFPQSearchParameters.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IVFPQSearchParameters.java index 2146f2f56..4a6e0ccb7 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IVFPQSearchParameters.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IVFPQSearchParameters.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IVFPQSearchParameters extends IVFSearchParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IVFSearchParameters.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IVFSearchParameters.java index c5c21dfd7..2d20987d7 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IVFSearchParameters.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IVFSearchParameters.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IVFSearchParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/Index.java b/ann/src/main/java/com/twitter/ann/faiss/swig/Index.java index a2f04c194..fdc1e743d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/Index.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/Index.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/Index2Layer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/Index2Layer.java index 6045797ad..e14bbc7c2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/Index2Layer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/Index2Layer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class Index2Layer extends IndexFlatCodes { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinary.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinary.java index c60ea69ab..3462e954b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinary.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinary.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexBinary { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFlat.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFlat.java index 84be3becd..ecffb1c7b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFlat.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFlat.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexBinaryFlat extends IndexBinary { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFromFloat.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFromFloat.java index c55ac683b..7da2aefb6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFromFloat.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryFromFloat.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexBinaryFromFloat extends IndexBinary { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryHNSW.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryHNSW.java index f10306136..e2b620c67 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryHNSW.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryHNSW.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexBinaryHNSW extends IndexBinary { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryIVF.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryIVF.java index 0da7053a4..441557eb2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryIVF.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexBinaryIVF.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexBinaryIVF extends IndexBinary { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat.java index 2408455f2..8f854f2d2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexFlat extends IndexFlatCodes { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat1D.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat1D.java index 8104181b4..80772cd60 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat1D.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlat1D.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexFlat1D extends IndexFlatL2 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatCodes.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatCodes.java index 62448b542..0ca1de4c1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatCodes.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatCodes.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexFlatCodes extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatIP.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatIP.java index d1cb9c9ff..918fc0348 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatIP.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatIP.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexFlatIP extends IndexFlat { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatL2.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatL2.java index 9bd6ae092..1c49bd50f 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatL2.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexFlatL2.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexFlatL2 extends IndexFlat { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW.java index b5be7d13c..bcf1e67ac 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexHNSW extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW2Level.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW2Level.java index 9f1544ca1..4be9047c7 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW2Level.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSW2Level.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexHNSW2Level extends IndexHNSW { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWFlat.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWFlat.java index c632b4fb6..cd82bac1c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWFlat.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWFlat.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexHNSWFlat extends IndexHNSW { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWPQ.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWPQ.java index cc761d9c8..25a877153 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWPQ.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWPQ.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexHNSWPQ extends IndexHNSW { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWSQ.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWSQ.java index ee08aa9bb..3801a9009 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWSQ.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexHNSWSQ.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexHNSWSQ extends IndexHNSW { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIDMap.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIDMap.java index 72c5574f9..9ed22cf28 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIDMap.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIDMap.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIDMap extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVF.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVF.java index 04c22067a..1b9f2e7e1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVF.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVF.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVF extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlat.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlat.java index f2e412026..3c2aff9e0 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlat.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlat.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVFFlat extends IndexIVF { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlatDedup.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlatDedup.java index 7efd00537..43ec9a763 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlatDedup.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFFlatDedup.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVFFlatDedup extends IndexIVFFlat { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQ.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQ.java index ba5514a0f..49812253e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQ.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQ.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVFPQ extends IndexIVF { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQStats.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQStats.java index 81c829363..839c1febc 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQStats.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFPQStats.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVFPQStats { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFScalarQuantizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFScalarQuantizer.java index 8e72059de..6604576ec 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFScalarQuantizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFScalarQuantizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVFScalarQuantizer extends IndexIVF { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFStats.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFStats.java index b70bb07aa..447d3d5e9 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFStats.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexIVFStats.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexIVFStats { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexLSH.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexLSH.java index 77c1cb855..0c5cc2e5b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexLSH.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexLSH.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexLSH extends IndexFlatCodes { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQ.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQ.java index b0e874cbc..c46cd0171 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQ.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQ.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexPQ extends IndexFlatCodes { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQStats.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQStats.java index c5e0b9d2b..6977f155d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQStats.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexPQStats.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexPQStats { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefine.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefine.java index f0e1269d8..1e95dc916 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefine.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefine.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexRefine extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefineFlat.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefineFlat.java index 5b4b43b03..5abeb816e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefineFlat.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexRefineFlat.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexRefineFlat extends IndexRefine { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexScalarQuantizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexScalarQuantizer.java index 0d7e862e5..4ede937c1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexScalarQuantizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexScalarQuantizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexScalarQuantizer extends IndexFlatCodes { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexShards.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexShards.java index a86d128f9..27d3ed71d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexShards.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexShards.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexShards { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexSplitVectors.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexSplitVectors.java index 701d89919..52ad53c38 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IndexSplitVectors.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IndexSplitVectors.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IndexSplitVectors extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IntVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IntVector.java index 712ea3718..d0c9ee9e6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IntVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IntVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IntVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/InterruptCallback.java b/ann/src/main/java/com/twitter/ann/faiss/swig/InterruptCallback.java index 3213696de..7b196f2ca 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/InterruptCallback.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/InterruptCallback.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class InterruptCallback { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/IntersectionCriterion.java b/ann/src/main/java/com/twitter/ann/faiss/swig/IntersectionCriterion.java index 80f44e1d2..d70b1d40e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/IntersectionCriterion.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/IntersectionCriterion.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class IntersectionCriterion extends AutoTuneCriterion { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedLists.java index d7311cc75..62325cac7 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class InvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedListsPtrVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedListsPtrVector.java index 4c9a14b74..97e384b54 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedListsPtrVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/InvertedListsPtrVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class InvertedListsPtrVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/Level1Quantizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/Level1Quantizer.java index 9de2d8c44..da02ed78b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/Level1Quantizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/Level1Quantizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class Level1Quantizer { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/LinearTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/LinearTransform.java index 6353fb0c2..8687ec812 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/LinearTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/LinearTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class LinearTransform extends VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/LongVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/LongVector.java index 89c5cdf5a..61e21bc9a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/LongVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/LongVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class LongVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/LongVectorVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/LongVectorVector.java index 485573bac..b16c921ac 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/LongVectorVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/LongVectorVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class LongVectorVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/MapLong2Long.java b/ann/src/main/java/com/twitter/ann/faiss/swig/MapLong2Long.java index 0ecaaf053..b9872404d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/MapLong2Long.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/MapLong2Long.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class MapLong2Long { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/MaskedInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/MaskedInvertedLists.java index 70dbb1a72..e8fae05dc 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/MaskedInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/MaskedInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class MaskedInvertedLists extends ReadOnlyInvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/MetricType.java b/ann/src/main/java/com/twitter/ann/faiss/swig/MetricType.java index 5382e1544..5eebba82d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/MetricType.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/MetricType.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public final class MetricType { public final static MetricType METRIC_INNER_PRODUCT = new MetricType("METRIC_INNER_PRODUCT", swigfaissJNI.METRIC_INNER_PRODUCT_get()); diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer.java index b0ee9c3c4..3e7d84f91 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class MultiIndexQuantizer extends Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer2.java b/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer2.java index 519c123c4..acbafab18 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer2.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/MultiIndexQuantizer2.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class MultiIndexQuantizer2 extends MultiIndexQuantizer { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/NormalizationTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/NormalizationTransform.java index aaa38642c..166ab38e2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/NormalizationTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/NormalizationTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class NormalizationTransform extends VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OPQMatrix.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OPQMatrix.java index fafaf07d9..326383663 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OPQMatrix.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OPQMatrix.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OPQMatrix extends LinearTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedLists.java index 94d13f522..b7aec696c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OnDiskInvertedLists extends InvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedListsIOHook.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedListsIOHook.java index 15a2138ee..235b0c033 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedListsIOHook.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskInvertedListsIOHook.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OnDiskInvertedListsIOHook { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskOneList.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskOneList.java index acc2cfae7..28b56f1a1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskOneList.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OnDiskOneList.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OnDiskOneList { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OneRecallAtRCriterion.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OneRecallAtRCriterion.java index f57214205..acb8dd5cb 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OneRecallAtRCriterion.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OneRecallAtRCriterion.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OneRecallAtRCriterion extends AutoTuneCriterion { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoint.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoint.java index ed0f71f5d..030691766 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoint.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoint.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OperatingPoint { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPointVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPointVector.java index 42fab072b..7cfa7de84 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPointVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPointVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OperatingPointVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoints.java b/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoints.java index 036e6730d..85d8ba7d1 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoints.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/OperatingPoints.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class OperatingPoints { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PCAMatrix.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PCAMatrix.java index caa7864a0..0be0f1c8a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PCAMatrix.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PCAMatrix.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PCAMatrix extends LinearTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder16.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder16.java index f40c70814..dba7e4262 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder16.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder16.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PQDecoder16 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder8.java index ee384cdaf..814385d1a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoder8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PQDecoder8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoderGeneric.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoderGeneric.java index 487b48a0f..da2779efd 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoderGeneric.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PQDecoderGeneric.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PQDecoderGeneric { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder16.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder16.java index 56727e772..a55054fbf 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder16.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder16.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PQEncoder16 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder8.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder8.java index fdb0fac47..d530849a3 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder8.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoder8.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PQEncoder8 { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoderGeneric.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoderGeneric.java index 682f526cf..e45409bfc 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoderGeneric.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PQEncoderGeneric.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PQEncoderGeneric { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterRange.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterRange.java index 4f6643dae..de6768cf8 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterRange.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterRange.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ParameterRange { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterSpace.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterSpace.java index 210509c38..9b85d1188 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterSpace.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ParameterSpace.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ParameterSpace { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PartitionStats.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PartitionStats.java index ea9038771..ded4e0046 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PartitionStats.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PartitionStats.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PartitionStats { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PermutationObjective.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PermutationObjective.java index 5a6d0b54c..b0a88995f 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PermutationObjective.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PermutationObjective.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PermutationObjective { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/PolysemousTraining.java b/ann/src/main/java/com/twitter/ann/faiss/swig/PolysemousTraining.java index d65dcfeb8..b831459b6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/PolysemousTraining.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/PolysemousTraining.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class PolysemousTraining extends SimulatedAnnealingParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ProductQuantizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ProductQuantizer.java index 0249e29e3..14bc294c9 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ProductQuantizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ProductQuantizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ProductQuantizer { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClustering.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClustering.java index 2fbd8e406..8cc041ed3 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClustering.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClustering.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ProgressiveDimClustering extends ProgressiveDimClusteringParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClusteringParameters.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClusteringParameters.java index 927c92c18..8e24dc454 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClusteringParameters.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimClusteringParameters.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ProgressiveDimClusteringParameters extends ClusteringParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimIndexFactory.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimIndexFactory.java index d01483ca9..4db052264 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimIndexFactory.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ProgressiveDimIndexFactory.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ProgressiveDimIndexFactory { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/RandomRotationMatrix.java b/ann/src/main/java/com/twitter/ann/faiss/swig/RandomRotationMatrix.java index 104487d46..fc0df164c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/RandomRotationMatrix.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/RandomRotationMatrix.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class RandomRotationMatrix extends LinearTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/RangeQueryResult.java b/ann/src/main/java/com/twitter/ann/faiss/swig/RangeQueryResult.java index 83fb5e284..cfec1daea 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/RangeQueryResult.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/RangeQueryResult.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class RangeQueryResult { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchPartialResult.java b/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchPartialResult.java index b7348762a..e90b17851 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchPartialResult.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchPartialResult.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class RangeSearchPartialResult extends BufferList { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchResult.java b/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchResult.java index 0779b6d70..ea5e66179 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchResult.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/RangeSearchResult.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class RangeSearchResult { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ReadOnlyInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ReadOnlyInvertedLists.java index 8e85a70bc..48935a44f 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ReadOnlyInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ReadOnlyInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ReadOnlyInvertedLists extends InvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ReconstructFromNeighbors.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ReconstructFromNeighbors.java index 31eaab625..c5317d208 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ReconstructFromNeighbors.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ReconstructFromNeighbors.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ReconstructFromNeighbors { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/RemapDimensionsTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/RemapDimensionsTransform.java index 3b1af9df9..774f383e2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/RemapDimensionsTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/RemapDimensionsTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class RemapDimensionsTransform extends VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/ReproduceDistancesObjective.java b/ann/src/main/java/com/twitter/ann/faiss/swig/ReproduceDistancesObjective.java index 19b762d7e..3c34dda2c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/ReproduceDistancesObjective.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/ReproduceDistancesObjective.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class ReproduceDistancesObjective extends PermutationObjective { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_32_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_32_t.java index c2ca5d995..cb9ea9979 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_32_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_32_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_AlignedTableT_float_32_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_t.java index f77626d23..5d620dabf 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_AlignedTableT_float_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_AlignedTableT_float_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap.java index d4a2f0015..2a43b39f9 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_DirectMap { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap__Type.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap__Type.java index 94763e8df..525b533b0 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap__Type.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_DirectMap__Type.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_DirectMap__Type { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_FILE.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_FILE.java index 7e2733107..b63301fe5 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_FILE.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_FILE.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_FILE { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOReader.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOReader.java index e4003ea9c..cc8345907 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOReader.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOReader.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_IOReader { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOWriter.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOWriter.java index c618a7728..2005e0083 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOWriter.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_IOWriter.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_IOWriter { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer.java index aa797717e..a483f1ba0 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_ScalarQuantizer { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer__QuantizerType.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer__QuantizerType.java index 79c1e62c4..8504906df 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer__QuantizerType.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_ScalarQuantizer__QuantizerType.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_ScalarQuantizer__QuantizerType { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_double.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_double.java index 3fc49d14e..f69c5034c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_double.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_double.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_double { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t.java index bef0e5fd1..4c14107ab 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t.java index 0c63b2e1c..2a7b2e55d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__AlignedTableTightAllocT_uint16_t_32_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t.java index a347de470..353a63ff5 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__AlignedTableTightAllocT_unsigned_char_32_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__BinaryInvertedListScanner.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__BinaryInvertedListScanner.java index 9c0c3af14..e41865fc8 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__BinaryInvertedListScanner.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__BinaryInvertedListScanner.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__BinaryInvertedListScanner { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.java index 8f084c126..180ad5a07 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_float_int64_t_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t.java index 2200ff2f0..94891b318 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__HeapArrayT_faiss__CMaxT_int_int64_t_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.java index e8582625f..8c1926bd6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__HeapArrayT_faiss__CMinT_float_int64_t_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOReader.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOReader.java index 26aa9a153..c7c9f3134 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOReader.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOReader.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__IOReader { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOWriter.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOWriter.java index 7733421c1..390358587 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOWriter.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__IOWriter.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__IOWriter { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__InvertedListScanner.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__InvertedListScanner.java index c94ea8604..7379e81de 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__InvertedListScanner.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__InvertedListScanner.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__InvertedListScanner { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__LockLevels.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__LockLevels.java index 6f709e65b..e1edf3f40 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__LockLevels.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__LockLevels.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__LockLevels { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch.java index 49c0a423f..da349470b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__OnDiskInvertedLists__OngoingPrefetch { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__RandomGenerator.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__RandomGenerator.java index 6c3a98878..89c23c589 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__RandomGenerator.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_faiss__RandomGenerator.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_faiss__RandomGenerator { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_float.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_float.java index e4856b983..8aa7d018b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_float.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_float.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_float { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_int.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_int.java index b3df7335d..456e8810c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_int.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_int.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_int { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long.java index 4f8fa7370..ab3d9649a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_long { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long_long.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long_long.java index e3eda3886..fcfe14c04 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long_long.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_long_long.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_long_long { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_omp_lock_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_omp_lock_t.java index dd051ae05..486a2d571 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_omp_lock_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_omp_lock_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_omp_lock_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__Index.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__Index.java index 6521ff457..7bb4a3370 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__Index.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__Index.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_p_faiss__Index { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__InvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__InvertedLists.java index f59b0d9ca..d338a9d24 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__InvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__InvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_p_faiss__InvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__VectorTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__VectorTransform.java index 7868f49b5..414bc528d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__VectorTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_p_faiss__VectorTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_p_faiss__VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t.java index a57effe96..06061ec87 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__listT_faiss__OnDiskInvertedLists__Slot_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__pairT_float_int_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__pairT_float_int_t.java index e168f768c..acaba8896 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__pairT_float_int_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__pairT_float_int_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__pairT_float_int_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t.java index e36ee5f13..6ebd7c6d6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__priority_queueT_faiss__HNSW__NodeDistFarther_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t.java index 582f8a1c5..26fb4e282 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__priority_queueT_std__pairT_float_int_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_mapT_long_long_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_mapT_long_long_t.java index 2d3e1688d..dbce3f708 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_mapT_long_long_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_mapT_long_long_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__unordered_mapT_long_long_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t.java index 443e100db..2712fbb10 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__unordered_multimapT_int64_t_int64_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t.java index 0e65925c3..35eb7e56e 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__BufferList__Buffer_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t.java index c0eaa547f..5d4b81e89 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__ClusteringIterationStats_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t.java index 52c8371c7..1484595de 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__HNSW__NodeDistFarther_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__Index_p_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__Index_p_t.java index f79e29ad6..7891fb5e6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__Index_p_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__Index_p_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__Index_p_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t.java index 2e14f35c5..f5d79cfb8 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__InvertedLists_const_p_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t.java index 9d79a184c..bac505f9d 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__OnDiskOneList_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t.java index 99e3adabf..f4f3fec62 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__ParameterRange_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t.java index 64a1711ab..aba621bf0 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__RangeQueryResult_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.java index 67cd2d26a..344676731 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_faiss__RangeSearchPartialResult_p_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_int64_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_int64_t_t.java index 06db35e07..8a328060c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_int64_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_int64_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_int64_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_long_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_long_t.java index 4ad496dc7..cfcdc3ea2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_long_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_long_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_long_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_omp_lock_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_omp_lock_t_t.java index 81c9e88a1..b6181c00a 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_omp_lock_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_omp_lock_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_omp_lock_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t.java index 7e5504484..de659bebc 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_std__vectorT_int64_t_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t.java index dbd515dcc..a630be3f3 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_long_t_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint16_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint16_t.java index 5ac22962a..e75126ca2 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint16_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint16_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_uint16_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint32_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint32_t.java index 3f2db2873..cb6e01028 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint32_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_uint32_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_uint32_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_char.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_char.java index c34696c2c..050b8e8b4 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_char.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_char.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_unsigned_char { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_long.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_long.java index f303bca61..7cce0efe8 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_long.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_unsigned_long.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_unsigned_long { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_void.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_void.java index 2ec4d574c..5c848af20 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_void.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SWIGTYPE_p_void.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SWIGTYPE_p_void { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingOptimizer.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingOptimizer.java index e3b2af66c..a41c510c6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingOptimizer.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingOptimizer.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SimulatedAnnealingOptimizer extends SimulatedAnnealingParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingParameters.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingParameters.java index 612d9be4e..a3b185678 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingParameters.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SimulatedAnnealingParameters.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SimulatedAnnealingParameters { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SliceInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SliceInvertedLists.java index 6a551db14..38a74e2ac 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SliceInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SliceInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SliceInvertedLists extends ReadOnlyInvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/SlidingIndexWindow.java b/ann/src/main/java/com/twitter/ann/faiss/swig/SlidingIndexWindow.java index c866e2fa2..7ce1eb30f 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/SlidingIndexWindow.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/SlidingIndexWindow.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class SlidingIndexWindow { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/StopWordsInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/StopWordsInvertedLists.java index d951d207d..9bc8e53cb 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/StopWordsInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/StopWordsInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class StopWordsInvertedLists extends ReadOnlyInvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/Uint64Vector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/Uint64Vector.java index cd9b40be7..7713aae58 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/Uint64Vector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/Uint64Vector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class Uint64Vector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/VStackInvertedLists.java b/ann/src/main/java/com/twitter/ann/faiss/swig/VStackInvertedLists.java index 127a4a953..a753e0cd6 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/VStackInvertedLists.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/VStackInvertedLists.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class VStackInvertedLists extends ReadOnlyInvertedLists { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransform.java b/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransform.java index e17ad0f4d..1fb301b5c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransform.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransform.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class VectorTransform { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransformVector.java b/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransformVector.java index d7a1a6f6f..9541c6fef 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransformVector.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/VectorTransformVector.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class VectorTransformVector { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/VisitedTable.java b/ann/src/main/java/com/twitter/ann/faiss/swig/VisitedTable.java index 69b1108a4..e75d7d48b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/VisitedTable.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/VisitedTable.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class VisitedTable { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/doubleArray.java b/ann/src/main/java/com/twitter/ann/faiss/swig/doubleArray.java index f37b56e4a..e7cc15669 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/doubleArray.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/doubleArray.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class doubleArray { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/floatArray.java b/ann/src/main/java/com/twitter/ann/faiss/swig/floatArray.java index 641dc844b..64b8198ee 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/floatArray.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/floatArray.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class floatArray { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/float_maxheap_array_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/float_maxheap_array_t.java index 875ef1c4a..33ff215a5 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/float_maxheap_array_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/float_maxheap_array_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class float_maxheap_array_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/float_minheap_array_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/float_minheap_array_t.java index 5944f2cc9..8eca94987 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/float_minheap_array_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/float_minheap_array_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class float_minheap_array_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/intArray.java b/ann/src/main/java/com/twitter/ann/faiss/swig/intArray.java index 9774521a1..fcee4f5b7 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/intArray.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/intArray.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class intArray { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/int_maxheap_array_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/int_maxheap_array_t.java index 07bf7a570..9069112ee 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/int_maxheap_array_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/int_maxheap_array_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class int_maxheap_array_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/int_minheap_array_t.java b/ann/src/main/java/com/twitter/ann/faiss/swig/int_minheap_array_t.java index 0a6064876..1d91c8a9c 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/int_minheap_array_t.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/int_minheap_array_t.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class int_minheap_array_t { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/longArray.java b/ann/src/main/java/com/twitter/ann/faiss/swig/longArray.java index 6d51d8fae..554a6f83b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/longArray.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/longArray.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class longArray { private transient long swigCPtr; diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaiss.java b/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaiss.java index d55793a69..1e654135b 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaiss.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaiss.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public class swigfaiss implements swigfaissConstants { public static void bitvec_print(SWIGTYPE_p_unsigned_char b, long d) { diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissConstants.java b/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissConstants.java index 30ba6abc3..b8e905e27 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissConstants.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissConstants.java @@ -6,7 +6,7 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; +package com.ExTwitter.ann.faiss; public interface swigfaissConstants { public final static int FAISS_VERSION_MAJOR = swigfaissJNI.FAISS_VERSION_MAJOR_get(); diff --git a/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissJNI.java b/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissJNI.java index 9a5c19bea..64bb0ae90 100644 --- a/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissJNI.java +++ b/ann/src/main/java/com/twitter/ann/faiss/swig/swigfaissJNI.java @@ -6,21 +6,21 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ -package com.twitter.ann.faiss; -import com.twitter.ann.faiss.NativeUtils; +package com.ExTwitter.ann.faiss; +import com.ExTwitter.ann.faiss.NativeUtils; public class swigfaissJNI { static { try { if (NativeUtils.getOperatingSystemType() == NativeUtils.OSType.MacOS) { - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/swigfaiss.dylib"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/swigfaiss.dylib"); } else { - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/libstdc++.so.6"); - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/libgcc_s.so.1"); - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/libgomp.so.1"); - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/libquadmath.so.0"); - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/libgfortran.so.5"); - NativeUtils.loadLibraryFromJar("/com/twitter/ann/faiss/swig/resources/swigfaiss.so"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/libstdc++.so.6"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/libgcc_s.so.1"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/libgomp.so.1"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/libquadmath.so.0"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/libgfortran.so.5"); + NativeUtils.loadLibraryFromJar("/com/ExTwitter/ann/faiss/swig/resources/swigfaiss.so"); } } catch (Exception e) { System.err.println("Native code library failed to load. \n" + e); diff --git a/ann/src/main/java/com/twitter/ann/hnsw/BUILD b/ann/src/main/java/com/twitter/ann/hnsw/BUILD index b7534c6e7..d3b1faaeb 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/BUILD +++ b/ann/src/main/java/com/twitter/ann/hnsw/BUILD @@ -6,13 +6,13 @@ java_library( dependencies = [ "3rdparty/jvm/com/google/guava", "3rdparty/jvm/com/google/inject:guice", - "3rdparty/jvm/com/twitter/bijection:core", + "3rdparty/jvm/com/ExTwitter/bijection:core", "3rdparty/jvm/commons-lang", "3rdparty/jvm/org/apache/thrift", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-java", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-java", "mediaservices/commons/src/main/scala:futuretracker", "scrooge/scrooge-core", - "src/java/com/twitter/search/common/file", + "src/java/com/ExTwitter/search/common/file", ], ) diff --git a/ann/src/main/java/com/twitter/ann/hnsw/DistanceFunction.java b/ann/src/main/java/com/twitter/ann/hnsw/DistanceFunction.java index a7adf126f..f5d11062d 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/DistanceFunction.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/DistanceFunction.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; public interface DistanceFunction { /** diff --git a/ann/src/main/java/com/twitter/ann/hnsw/DistancedItem.java b/ann/src/main/java/com/twitter/ann/hnsw/DistancedItem.java index cc3fb6a7a..7cfcedbd0 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/DistancedItem.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/DistancedItem.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; /** * An item associated with a float distance diff --git a/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java b/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java index f77f9c2b2..266b671c3 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; import java.util.ArrayList; import java.util.Comparator; diff --git a/ann/src/main/java/com/twitter/ann/hnsw/HnswIndex.java b/ann/src/main/java/com/twitter/ann/hnsw/HnswIndex.java index 2f9c91409..c98448384 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/HnswIndex.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/HnswIndex.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; import java.io.IOException; import java.nio.ByteBuffer; @@ -26,12 +26,12 @@ import com.google.common.collect.ImmutableList; import org.apache.thrift.TException; -import com.twitter.ann.common.IndexOutputFile; -import com.twitter.ann.common.thriftjava.HnswInternalIndexMetadata; -import com.twitter.bijection.Injection; -import com.twitter.logging.Logger; -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec; -import com.twitter.search.common.file.AbstractFile; +import com.ExTwitter.ann.common.IndexOutputFile; +import com.ExTwitter.ann.common.thriftjava.HnswInternalIndexMetadata; +import com.ExTwitter.bijection.Injection; +import com.ExTwitter.logging.Logger; +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec; +import com.ExTwitter.search.common.file.AbstractFile; /** * Typed multithreaded HNSW implementation supporting creation/querying of approximate nearest neighbour diff --git a/ann/src/main/java/com/twitter/ann/hnsw/HnswIndexIOUtil.java b/ann/src/main/java/com/twitter/ann/hnsw/HnswIndexIOUtil.java index fba2dc55a..690b69fc1 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/HnswIndexIOUtil.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/HnswIndexIOUtil.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; import java.io.IOException; import java.io.InputStream; @@ -20,11 +20,11 @@ import org.apache.thrift.protocol.TProtocol; import org.apache.thrift.transport.TIOStreamTransport; import org.apache.thrift.transport.TTransportException; -import com.twitter.ann.common.thriftjava.HnswGraphEntry; -import com.twitter.ann.common.thriftjava.HnswInternalIndexMetadata; -import com.twitter.bijection.Injection; -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec; -import com.twitter.search.common.file.AbstractFile; +import com.ExTwitter.ann.common.thriftjava.HnswGraphEntry; +import com.ExTwitter.ann.common.thriftjava.HnswInternalIndexMetadata; +import com.ExTwitter.bijection.Injection; +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec; +import com.ExTwitter.search.common.file.AbstractFile; public final class HnswIndexIOUtil { private HnswIndexIOUtil() { diff --git a/ann/src/main/java/com/twitter/ann/hnsw/HnswMeta.java b/ann/src/main/java/com/twitter/ann/hnsw/HnswMeta.java index c990c4bbc..adab9ee3e 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/HnswMeta.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/HnswMeta.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; import java.util.Objects; import java.util.Optional; diff --git a/ann/src/main/java/com/twitter/ann/hnsw/HnswNode.java b/ann/src/main/java/com/twitter/ann/hnsw/HnswNode.java index 95819214c..152610e77 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/HnswNode.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/HnswNode.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; diff --git a/ann/src/main/java/com/twitter/ann/hnsw/IllegalDuplicateInsertException.java b/ann/src/main/java/com/twitter/ann/hnsw/IllegalDuplicateInsertException.java index 634dc63f6..a48613e02 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/IllegalDuplicateInsertException.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/IllegalDuplicateInsertException.java @@ -1,4 +1,4 @@ -package com.twitter.ann.hnsw; +package com.ExTwitter.ann.hnsw; public class IllegalDuplicateInsertException extends Exception { public IllegalDuplicateInsertException(String message) { diff --git a/ann/src/main/python/dataflow/BUILD.bazel b/ann/src/main/python/dataflow/BUILD.bazel index 44eeb72e2..ca2728d87 100644 --- a/ann/src/main/python/dataflow/BUILD.bazel +++ b/ann/src/main/python/dataflow/BUILD.bazel @@ -18,7 +18,7 @@ python3_library( "3rdparty/python/pandas:default", "3rdparty/python/pandas-gbq:default", "3rdparty/python/pyarrow:default", - "src/python/twitter/ml/common/apache_beam", + "src/python/ExTwitter/ml/common/apache_beam", ], ) diff --git a/ann/src/main/python/dataflow/faiss_index_bq_dataset.py b/ann/src/main/python/dataflow/faiss_index_bq_dataset.py index dd45070db..4e0572c0f 100644 --- a/ann/src/main/python/dataflow/faiss_index_bq_dataset.py +++ b/ann/src/main/python/dataflow/faiss_index_bq_dataset.py @@ -17,7 +17,7 @@ def parse_d6w_config(argv=None): """ parser = argparse.ArgumentParser( - description="See https://docbird.twitter.biz/d6w/model.html for any parameters inherited from d6w job config" + description="See https://docbird.ExTwitter.biz/d6w/model.html for any parameters inherited from d6w job config" ) parser.add_argument("--job_name", dest="job_name", required=True, help="d6w attribute") parser.add_argument("--project", dest="project", required=True, help="d6w attribute") @@ -59,15 +59,15 @@ def parse_d6w_config(argv=None): d6w_config["metric"] = parse_metric(d6w_config) """ - WARNING: Currently, d6w (a Twitter tool used to deploy Dataflow jobs to GCP) and - PipelineOptions.for_dataflow_runner (a helper method in twitter.ml.common.apache_beam) do not + WARNING: Currently, d6w (a ExTwitter tool used to deploy Dataflow jobs to GCP) and + PipelineOptions.for_dataflow_runner (a helper method in ExTwitter.ml.common.apache_beam) do not play nicely together. The helper method will overwrite some of the config specified in the d6w - file using the defaults in https://sourcegraph.twitter.biz/git.twitter.biz/source/-/blob/src/python/twitter/ml/common/apache_beam/__init__.py?L24.' + file using the defaults in https://sourcegraph.ExTwitter.biz/git.ExTwitter.biz/source/-/blob/src/python/ExTwitter/ml/common/apache_beam/__init__.py?L24.' However, the d6w output message will still report that the config specified in the d6w file was used. """ logging.warning( f"The following d6w config parameters will be overwritten by the defaults in " - f"https://sourcegraph.twitter.biz/git.twitter.biz/source/-/blob/src/python/twitter/ml/common/apache_beam/__init__.py?L24\n" + f"https://sourcegraph.ExTwitter.biz/git.ExTwitter.biz/source/-/blob/src/python/ExTwitter/ml/common/apache_beam/__init__.py?L24\n" f"{str(unknown_args)}" ) return d6w_config diff --git a/ann/src/main/scala/com/twitter/ann/annoy/AnnoyCommon.scala b/ann/src/main/scala/com/twitter/ann/annoy/AnnoyCommon.scala index ffe035c48..4a05ae595 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/AnnoyCommon.scala +++ b/ann/src/main/scala/com/twitter/ann/annoy/AnnoyCommon.scala @@ -1,10 +1,10 @@ -package com.twitter.ann.annoy +package com.ExTwitter.ann.annoy -import com.twitter.ann.common.RuntimeParams -import com.twitter.ann.common.thriftscala.AnnoyIndexMetadata -import com.twitter.bijection.Injection -import com.twitter.mediaservices.commons.codec.ThriftByteBufferCodec -import com.twitter.ann.common.thriftscala.{AnnoyRuntimeParam, RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.ann.common.thriftscala.AnnoyIndexMetadata +import com.ExTwitter.bijection.Injection +import com.ExTwitter.mediaservices.commons.codec.ThriftByteBufferCodec +import com.ExTwitter.ann.common.thriftscala.{AnnoyRuntimeParam, RuntimeParams => ServiceRuntimeParams} import scala.util.{Failure, Success, Try} object AnnoyCommon { diff --git a/ann/src/main/scala/com/twitter/ann/annoy/BUILD b/ann/src/main/scala/com/twitter/ann/annoy/BUILD index fb882dac2..331d312f3 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/BUILD +++ b/ann/src/main/scala/com/twitter/ann/annoy/BUILD @@ -6,18 +6,18 @@ scala_library( dependencies = [ "3rdparty/jvm/com/spotify:annoy-java", "3rdparty/jvm/com/spotify:annoy-snapshot", - "3rdparty/jvm/com/twitter/storehaus:core", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/file_store", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "3rdparty/jvm/com/ExTwitter/storehaus:core", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/file_store", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "mediaservices/commons", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", ], exports = [ - "ann/src/main/scala/com/twitter/ann/common", - "src/java/com/twitter/common_internal/hadoop", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "ann/src/main/scala/com/ExTwitter/ann/common", + "src/java/com/ExTwitter/common_internal/hadoop", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyIndexBuilder.scala b/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyIndexBuilder.scala index d1f889a96..7763baf45 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyIndexBuilder.scala +++ b/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyIndexBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.annoy +package com.ExTwitter.ann.annoy import com.spotify.annoy.jni.base.{Annoy => AnnoyLib} -import com.twitter.ann.annoy.AnnoyCommon.IndexFileName -import com.twitter.ann.annoy.AnnoyCommon.MetaDataFileName -import com.twitter.ann.annoy.AnnoyCommon.MetadataCodec -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.AnnoyIndexMetadata -import com.twitter.concurrent.AsyncSemaphore -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.LocalFile -import com.twitter.util.Future -import com.twitter.util.FuturePool +import com.ExTwitter.ann.annoy.AnnoyCommon.IndexFileName +import com.ExTwitter.ann.annoy.AnnoyCommon.MetaDataFileName +import com.ExTwitter.ann.annoy.AnnoyCommon.MetadataCodec +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.AnnoyIndexMetadata +import com.ExTwitter.concurrent.AsyncSemaphore +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.LocalFile +import com.ExTwitter.util.Future +import com.ExTwitter.util.FuturePool import java.io.File import java.nio.file.Files import org.apache.beam.sdk.io.fs.ResourceId diff --git a/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyQueryIndex.scala b/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyQueryIndex.scala index 9fc65ddf7..54be869e4 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyQueryIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/annoy/RawAnnoyQueryIndex.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.annoy +package com.ExTwitter.ann.annoy import com.spotify.annoy.{ANNIndex, IndexType} -import com.twitter.ann.annoy.AnnoyCommon._ -import com.twitter.ann.common._ -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.search.common.file.{AbstractFile, LocalFile} -import com.twitter.util.{Future, FuturePool} +import com.ExTwitter.ann.annoy.AnnoyCommon._ +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.search.common.file.{AbstractFile, LocalFile} +import com.ExTwitter.util.{Future, FuturePool} import java.io.File import scala.collection.JavaConverters._ diff --git a/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndex.scala b/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndex.scala index e686bbe5e..88a3bf6ef 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndex.scala @@ -1,9 +1,9 @@ -package com.twitter.ann.annoy +package com.ExTwitter.ann.annoy -import com.twitter.ann.common._ -import com.twitter.bijection.Injection -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.FuturePool +import com.ExTwitter.ann.common._ +import com.ExTwitter.bijection.Injection +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.FuturePool // Class to provide Annoy based ann index. object TypedAnnoyIndex { diff --git a/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndexBuilderWithFile.scala b/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndexBuilderWithFile.scala index 1dd07ae38..c4c94d77d 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndexBuilderWithFile.scala +++ b/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyIndexBuilderWithFile.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.annoy +package com.ExTwitter.ann.annoy -import com.twitter.ann.annoy.AnnoyCommon.IndexIdMappingFileName -import com.twitter.ann.common._ -import com.twitter.ann.file_store.WritableIndexIdFileStore -import com.twitter.bijection.Injection -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.Future -import com.twitter.util.FuturePool +import com.ExTwitter.ann.annoy.AnnoyCommon.IndexIdMappingFileName +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.file_store.WritableIndexIdFileStore +import com.ExTwitter.bijection.Injection +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.Future +import com.ExTwitter.util.FuturePool import org.apache.beam.sdk.io.fs.ResourceId private[annoy] object TypedAnnoyIndexBuilderWithFile { diff --git a/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyQueryIndexWithFile.scala b/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyQueryIndexWithFile.scala index b72839765..33235d2f8 100644 --- a/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyQueryIndexWithFile.scala +++ b/ann/src/main/scala/com/twitter/ann/annoy/TypedAnnoyQueryIndexWithFile.scala @@ -1,11 +1,11 @@ -package com.twitter.ann.annoy +package com.ExTwitter.ann.annoy -import com.twitter.ann.annoy.AnnoyCommon._ -import com.twitter.ann.common._ -import com.twitter.ann.file_store.ReadableIndexIdFileStore -import com.twitter.bijection.Injection -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.FuturePool +import com.ExTwitter.ann.annoy.AnnoyCommon._ +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.file_store.ReadableIndexIdFileStore +import com.ExTwitter.bijection.Injection +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.FuturePool private[annoy] object TypedAnnoyQueryIndexWithFile { private[annoy] def apply[T, D <: Distance[D]]( diff --git a/ann/src/main/scala/com/twitter/ann/brute_force/BUILD b/ann/src/main/scala/com/twitter/ann/brute_force/BUILD index 4f06431c8..537eeb175 100644 --- a/ann/src/main/scala/com/twitter/ann/brute_force/BUILD +++ b/ann/src/main/scala/com/twitter/ann/brute_force/BUILD @@ -4,9 +4,9 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/thrift/com/twitter/ann/serialization:serialization-scala", - "src/java/com/twitter/search/common/file", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/thrift/com/ExTwitter/ann/serialization:serialization-scala", + "src/java/com/ExTwitter/search/common/file", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceDeserialization.scala b/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceDeserialization.scala index 615c39c95..c5164451b 100644 --- a/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceDeserialization.scala +++ b/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceDeserialization.scala @@ -1,11 +1,11 @@ -package com.twitter.ann.brute_force +package com.ExTwitter.ann.brute_force import com.google.common.annotations.VisibleForTesting -import com.twitter.ann.common.{Distance, EntityEmbedding, Metric, QueryableDeserialization} -import com.twitter.ann.serialization.{PersistedEmbeddingInjection, ThriftIteratorIO} -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.search.common.file.{AbstractFile, LocalFile} -import com.twitter.util.FuturePool +import com.ExTwitter.ann.common.{Distance, EntityEmbedding, Metric, QueryableDeserialization} +import com.ExTwitter.ann.serialization.{PersistedEmbeddingInjection, ThriftIteratorIO} +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.search.common.file.{AbstractFile, LocalFile} +import com.ExTwitter.util.FuturePool import java.io.File /** diff --git a/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala b/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala index d737f57b7..7b2780e9b 100644 --- a/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala @@ -1,21 +1,21 @@ -package com.twitter.ann.brute_force +package com.ExTwitter.ann.brute_force -import com.twitter.ann.common.Appendable -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.IndexOutputFile -import com.twitter.ann.common.Metric -import com.twitter.ann.common.NeighborWithDistance -import com.twitter.ann.common.Queryable -import com.twitter.ann.common.RuntimeParams -import com.twitter.ann.common.Serialization -import com.twitter.ann.serialization.PersistedEmbeddingInjection -import com.twitter.ann.serialization.ThriftIteratorIO -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.Future -import com.twitter.util.FuturePool +import com.ExTwitter.ann.common.Appendable +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.IndexOutputFile +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.common.NeighborWithDistance +import com.ExTwitter.ann.common.Queryable +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.ann.common.Serialization +import com.ExTwitter.ann.serialization.PersistedEmbeddingInjection +import com.ExTwitter.ann.serialization.ThriftIteratorIO +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.Future +import com.ExTwitter.util.FuturePool import java.util.concurrent.ConcurrentLinkedQueue import org.apache.beam.sdk.io.fs.ResourceId import scala.collection.JavaConverters._ diff --git a/ann/src/main/scala/com/twitter/ann/common/AnnInjections.scala b/ann/src/main/scala/com/twitter/ann/common/AnnInjections.scala index 44ecbb49e..cb4d3ee06 100644 --- a/ann/src/main/scala/com/twitter/ann/common/AnnInjections.scala +++ b/ann/src/main/scala/com/twitter/ann/common/AnnInjections.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.bijection.{Bijection, Injection} +import com.ExTwitter.bijection.{Bijection, Injection} // Class providing commonly used injections that can be used directly with ANN apis. // Injection prefixed with `J` can be used in java directly with ANN apis. diff --git a/ann/src/main/scala/com/twitter/ann/common/Api.scala b/ann/src/main/scala/com/twitter/ann/common/Api.scala index 5873c1bbb..0d875d8c5 100644 --- a/ann/src/main/scala/com/twitter/ann/common/Api.scala +++ b/ann/src/main/scala/com/twitter/ann/common/Api.scala @@ -1,10 +1,10 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.api.embedding.EmbeddingMath -import com.twitter.ml.api.embedding.EmbeddingSerDe -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.api.embedding.EmbeddingMath +import com.ExTwitter.ml.api.embedding.EmbeddingSerDe +import com.ExTwitter.util.Future object EmbeddingType { type EmbeddingVector = Embedding[Float] diff --git a/ann/src/main/scala/com/twitter/ann/common/BUILD b/ann/src/main/scala/com/twitter/ann/common/BUILD index 49e1a987e..b194a23ef 100644 --- a/ann/src/main/scala/com/twitter/ann/common/BUILD +++ b/ann/src/main/scala/com/twitter/ann/common/BUILD @@ -5,17 +5,17 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/com/google/guava", - "3rdparty/jvm/com/twitter/bijection:core", - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/bijection:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/org/apache/beam:beam-sdks-java-io-google-cloud-platform", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "finatra/inject/inject-mdc/src/main/scala", "mediaservices/commons/src/main/scala:futuretracker", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", "stitch/stitch-core", ], exports = [ - "3rdparty/jvm/com/twitter/bijection:core", + "3rdparty/jvm/com/ExTwitter/bijection:core", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/common/EmbeddingProducer.scala b/ann/src/main/scala/com/twitter/ann/common/EmbeddingProducer.scala index 1b99ed9c4..671483e0b 100644 --- a/ann/src/main/scala/com/twitter/ann/common/EmbeddingProducer.scala +++ b/ann/src/main/scala/com/twitter/ann/common/EmbeddingProducer.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.stitch.Stitch +import com.ExTwitter.stitch.Stitch trait EmbeddingProducer[T] { diff --git a/ann/src/main/scala/com/twitter/ann/common/IndexOutputFile.scala b/ann/src/main/scala/com/twitter/ann/common/IndexOutputFile.scala index 0e71a317a..850a81dbe 100644 --- a/ann/src/main/scala/com/twitter/ann/common/IndexOutputFile.scala +++ b/ann/src/main/scala/com/twitter/ann/common/IndexOutputFile.scala @@ -1,10 +1,10 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common import com.google.common.io.ByteStreams -import com.twitter.ann.common.thriftscala.AnnIndexMetadata -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.mediaservices.commons.codec.ThriftByteBufferCodec -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.thriftscala.AnnIndexMetadata +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.mediaservices.commons.codec.ThriftByteBufferCodec +import com.ExTwitter.search.common.file.AbstractFile import java.io.IOException import java.io.InputStream import java.io.OutputStream diff --git a/ann/src/main/scala/com/twitter/ann/common/IndexTransformer.scala b/ann/src/main/scala/com/twitter/ann/common/IndexTransformer.scala index b096e2a57..c5b776482 100644 --- a/ann/src/main/scala/com/twitter/ann/common/IndexTransformer.scala +++ b/ann/src/main/scala/com/twitter/ann/common/IndexTransformer.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.storehaus.{ReadableStore, Store} -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.storehaus.{ReadableStore, Store} +import com.ExTwitter.util.Future // Utility to transform raw index to typed index using Store object IndexTransformer { diff --git a/ann/src/main/scala/com/twitter/ann/common/MemoizedInEpochs.scala b/ann/src/main/scala/com/twitter/ann/common/MemoizedInEpochs.scala index 267aee636..ec7037144 100644 --- a/ann/src/main/scala/com/twitter/ann/common/MemoizedInEpochs.scala +++ b/ann/src/main/scala/com/twitter/ann/common/MemoizedInEpochs.scala @@ -1,9 +1,9 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging // Memoization with a twist // New epoch reuse K:V pairs from previous and recycle everything else diff --git a/ann/src/main/scala/com/twitter/ann/common/Metric.scala b/ann/src/main/scala/com/twitter/ann/common/Metric.scala index 1c2c95aa9..a552391bc 100644 --- a/ann/src/main/scala/com/twitter/ann/common/Metric.scala +++ b/ann/src/main/scala/com/twitter/ann/common/Metric.scala @@ -1,14 +1,14 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common import com.google.common.collect.ImmutableBiMap -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.common.thriftscala.DistanceMetric -import com.twitter.ann.common.thriftscala.{CosineDistance => ServiceCosineDistance} -import com.twitter.ann.common.thriftscala.{Distance => ServiceDistance} -import com.twitter.ann.common.thriftscala.{InnerProductDistance => ServiceInnerProductDistance} -import com.twitter.ann.common.thriftscala.{EditDistance => ServiceEditDistance} -import com.twitter.ann.common.thriftscala.{L2Distance => ServiceL2Distance} -import com.twitter.bijection.Injection +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common.thriftscala.DistanceMetric +import com.ExTwitter.ann.common.thriftscala.{CosineDistance => ServiceCosineDistance} +import com.ExTwitter.ann.common.thriftscala.{Distance => ServiceDistance} +import com.ExTwitter.ann.common.thriftscala.{InnerProductDistance => ServiceInnerProductDistance} +import com.ExTwitter.ann.common.thriftscala.{EditDistance => ServiceEditDistance} +import com.ExTwitter.ann.common.thriftscala.{L2Distance => ServiceL2Distance} +import com.ExTwitter.bijection.Injection import scala.util.Failure import scala.util.Success import scala.util.Try diff --git a/ann/src/main/scala/com/twitter/ann/common/QueryableById.scala b/ann/src/main/scala/com/twitter/ann/common/QueryableById.scala index 0f1c8cfe2..af52fa009 100644 --- a/ann/src/main/scala/com/twitter/ann/common/QueryableById.scala +++ b/ann/src/main/scala/com/twitter/ann/common/QueryableById.scala @@ -1,10 +1,10 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.stitch.Stitch +import com.ExTwitter.stitch.Stitch /** * This is a trait that allows you to query for nearest neighbors given an arbitrary type T1. This is - * in contrast to a regular com.twitter.ann.common.Appendable, which takes an embedding as the input + * in contrast to a regular com.ExTwitter.ann.common.Appendable, which takes an embedding as the input * argument. * * This interface uses the Stitch API for batching. See go/stitch for details on how to use it. diff --git a/ann/src/main/scala/com/twitter/ann/common/QueryableByIdImplementation.scala b/ann/src/main/scala/com/twitter/ann/common/QueryableByIdImplementation.scala index 479414eb9..9153e7dfd 100644 --- a/ann/src/main/scala/com/twitter/ann/common/QueryableByIdImplementation.scala +++ b/ann/src/main/scala/com/twitter/ann/common/QueryableByIdImplementation.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.stitch.Stitch +import com.ExTwitter.stitch.Stitch /** * Implementation of QueryableById that composes an EmbeddingProducer and a Queryable so that we diff --git a/ann/src/main/scala/com/twitter/ann/common/QueryableOperations.scala b/ann/src/main/scala/com/twitter/ann/common/QueryableOperations.scala index 9cd72b066..524cfdea8 100644 --- a/ann/src/main/scala/com/twitter/ann/common/QueryableOperations.scala +++ b/ann/src/main/scala/com/twitter/ann/common/QueryableOperations.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.util.Future object QueryableOperations { implicit class Map[T, P <: RuntimeParams, D <: Distance[D]]( diff --git a/ann/src/main/scala/com/twitter/ann/common/ReadWriteFuturePool.scala b/ann/src/main/scala/com/twitter/ann/common/ReadWriteFuturePool.scala index 5c6c2ba70..d986ee359 100644 --- a/ann/src/main/scala/com/twitter/ann/common/ReadWriteFuturePool.scala +++ b/ann/src/main/scala/com/twitter/ann/common/ReadWriteFuturePool.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common import com.google.common.annotations.VisibleForTesting -import com.twitter.util.{Future, FuturePool} +import com.ExTwitter.util.{Future, FuturePool} trait ReadWriteFuturePool { def read[T](f: => T): Future[T] diff --git a/ann/src/main/scala/com/twitter/ann/common/Serialization.scala b/ann/src/main/scala/com/twitter/ann/common/Serialization.scala index 155042d07..56074871f 100644 --- a/ann/src/main/scala/com/twitter/ann/common/Serialization.scala +++ b/ann/src/main/scala/com/twitter/ann/common/Serialization.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.AbstractFile import org.apache.beam.sdk.io.fs.ResourceId /** diff --git a/ann/src/main/scala/com/twitter/ann/common/ServiceClientQueryable.scala b/ann/src/main/scala/com/twitter/ann/common/ServiceClientQueryable.scala index 6b4893aef..5d02f69fd 100644 --- a/ann/src/main/scala/com/twitter/ann/common/ServiceClientQueryable.scala +++ b/ann/src/main/scala/com/twitter/ann/common/ServiceClientQueryable.scala @@ -1,16 +1,16 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.common.thriftscala.{ +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common.thriftscala.{ NearestNeighborQuery, NearestNeighborResult, Distance => ServiceDistance, RuntimeParams => ServiceRuntimeParams } -import com.twitter.bijection.Injection -import com.twitter.finagle.Service -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.util.Future +import com.ExTwitter.bijection.Injection +import com.ExTwitter.finagle.Service +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.util.Future class ServiceClientQueryable[T, P <: RuntimeParams, D <: Distance[D]]( service: Service[NearestNeighborQuery, NearestNeighborResult], diff --git a/ann/src/main/scala/com/twitter/ann/common/ShardApi.scala b/ann/src/main/scala/com/twitter/ann/common/ShardApi.scala index 9351bd418..e5c739473 100644 --- a/ann/src/main/scala/com/twitter/ann/common/ShardApi.scala +++ b/ann/src/main/scala/com/twitter/ann/common/ShardApi.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.util.Future import scala.util.Random trait ShardFunction[T] { diff --git a/ann/src/main/scala/com/twitter/ann/common/ShardedSerialization.scala b/ann/src/main/scala/com/twitter/ann/common/ShardedSerialization.scala index 9b9cda264..664096271 100644 --- a/ann/src/main/scala/com/twitter/ann/common/ShardedSerialization.scala +++ b/ann/src/main/scala/com/twitter/ann/common/ShardedSerialization.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.AbstractFile.Filter -import com.twitter.util.Future +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.AbstractFile.Filter +import com.ExTwitter.util.Future import org.apache.beam.sdk.io.fs.ResourceId import scala.collection.JavaConverters._ diff --git a/ann/src/main/scala/com/twitter/ann/common/Task.scala b/ann/src/main/scala/com/twitter/ann/common/Task.scala index eaad03a88..6fa9f2b91 100644 --- a/ann/src/main/scala/com/twitter/ann/common/Task.scala +++ b/ann/src/main/scala/com/twitter/ann/common/Task.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.common +package com.ExTwitter.ann.common -import com.twitter.finagle.stats.CategorizingExceptionStatsHandler -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.DefaultTracer -import com.twitter.finagle.tracing.Trace -import com.twitter.finagle.util.DefaultTimer -import com.twitter.finagle.util.Rng -import com.twitter.inject.logging.MDCKeys -import com.twitter.util.Closable -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time -import com.twitter.util.Timer -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.CategorizingExceptionStatsHandler +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.DefaultTracer +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.finagle.util.Rng +import com.ExTwitter.inject.logging.MDCKeys +import com.ExTwitter.util.Closable +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time +import com.ExTwitter.util.Timer +import com.ExTwitter.util.logging.Logging import java.util.concurrent.atomic.AtomicInteger import org.slf4j.MDC @@ -46,7 +46,7 @@ trait Task extends Closable { self: Logging => val runningTask = // Setup a new trace root for this task. We also want logs to contain // the same trace information finatra populates for requests. - // See com.twitter.finatra.thrift.filters.TraceIdMDCFilter + // See com.ExTwitter.finatra.thrift.filters.TraceIdMDCFilter Trace.letTracerAndNextId(DefaultTracer) { val trace = Trace() MDC.put(MDCKeys.TraceId, trace.id.traceId.toString) diff --git a/ann/src/main/scala/com/twitter/ann/dataflow/offline/ANNIndexBuilderBeamJob.scala b/ann/src/main/scala/com/twitter/ann/dataflow/offline/ANNIndexBuilderBeamJob.scala index 64ab583ab..f0d19cf70 100644 --- a/ann/src/main/scala/com/twitter/ann/dataflow/offline/ANNIndexBuilderBeamJob.scala +++ b/ann/src/main/scala/com/twitter/ann/dataflow/offline/ANNIndexBuilderBeamJob.scala @@ -1,43 +1,43 @@ -package com.twitter.ann.dataflow.offline +package com.ExTwitter.ann.dataflow.offline import com.spotify.scio.ScioContext import com.spotify.scio.ScioMetrics -import com.twitter.ann.annoy.TypedAnnoyIndex -import com.twitter.ann.brute_force.SerializableBruteForceIndex -import com.twitter.ann.common.thriftscala.AnnIndexMetadata -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Cosine -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.IndexOutputFile -import com.twitter.ann.common.Metric -import com.twitter.ann.common.ReadWriteFuturePool -import com.twitter.ann.faiss.FaissIndexer -import com.twitter.ann.hnsw.TypedHnswIndex -import com.twitter.ann.serialization.PersistedEmbeddingInjection -import com.twitter.ann.serialization.ThriftIteratorIO -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.ann.util.IndexBuilderUtils -import com.twitter.beam.io.bigquery.BigQueryIO -import com.twitter.beam.io.dal.DalObservedDatasetRegistration -import com.twitter.beam.job.DateRange -import com.twitter.beam.job.DateRangeOptions -import com.twitter.cortex.ml.embeddings.common._ -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.api.embedding.EmbeddingMath -import com.twitter.ml.api.embedding.EmbeddingSerDe -import com.twitter.ml.api.thriftscala.{Embedding => TEmbedding} -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.SemanticCoreId -import com.twitter.ml.featurestore.lib.TfwId -import com.twitter.ml.featurestore.lib.TweetId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.scalding.DateOps -import com.twitter.scalding.RichDate -import com.twitter.scio_internal.job.ScioBeamJob -import com.twitter.statebird.v2.thriftscala.{Environment => StatebirdEnvironment} -import com.twitter.util.Await -import com.twitter.util.FuturePool -import com.twitter.wtf.beam.bq_embedding_export.BQQueryUtils +import com.ExTwitter.ann.annoy.TypedAnnoyIndex +import com.ExTwitter.ann.brute_force.SerializableBruteForceIndex +import com.ExTwitter.ann.common.thriftscala.AnnIndexMetadata +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Cosine +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.IndexOutputFile +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.common.ReadWriteFuturePool +import com.ExTwitter.ann.faiss.FaissIndexer +import com.ExTwitter.ann.hnsw.TypedHnswIndex +import com.ExTwitter.ann.serialization.PersistedEmbeddingInjection +import com.ExTwitter.ann.serialization.ThriftIteratorIO +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.ann.util.IndexBuilderUtils +import com.ExTwitter.beam.io.bigquery.BigQueryIO +import com.ExTwitter.beam.io.dal.DalObservedDatasetRegistration +import com.ExTwitter.beam.job.DateRange +import com.ExTwitter.beam.job.DateRangeOptions +import com.ExTwitter.cortex.ml.embeddings.common._ +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.api.embedding.EmbeddingMath +import com.ExTwitter.ml.api.embedding.EmbeddingSerDe +import com.ExTwitter.ml.api.thriftscala.{Embedding => TEmbedding} +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.SemanticCoreId +import com.ExTwitter.ml.featurestore.lib.TfwId +import com.ExTwitter.ml.featurestore.lib.TweetId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.scalding.DateOps +import com.ExTwitter.scalding.RichDate +import com.ExTwitter.scio_internal.job.ScioBeamJob +import com.ExTwitter.statebird.v2.thriftscala.{Environment => StatebirdEnvironment} +import com.ExTwitter.util.Await +import com.ExTwitter.util.FuturePool +import com.ExTwitter.wtf.beam.bq_embedding_export.BQQueryUtils import java.time.Instant import java.util.TimeZone import java.util.concurrent.Executors diff --git a/ann/src/main/scala/com/twitter/ann/dataflow/offline/BUILD b/ann/src/main/scala/com/twitter/ann/dataflow/offline/BUILD index b88ee213e..32b6946f3 100644 --- a/ann/src/main/scala/com/twitter/ann/dataflow/offline/BUILD +++ b/ann/src/main/scala/com/twitter/ann/dataflow/offline/BUILD @@ -7,21 +7,21 @@ scala_library( dependencies = [ "3rdparty/jvm/com/spotify:scio-core", "3rdparty/jvm/org/apache/beam:beam-sdks-java-core", - "ann/src/main/java/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/annoy", - "ann/src/main/scala/com/twitter/ann/brute_force", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/scala/com/twitter/ann/util", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", - "beam-internal/src/main/scala/com/twitter/beam/io/bigquery", - "beam-internal/src/main/scala/com/twitter/beam/io/dal", - "beam-internal/src/main/scala/com/twitter/beam/job", - "beam-internal/src/main/scala/com/twitter/scio_internal/runner/dataflow", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/wtf/beam/bq_embedding_export:bq_embedding_export_lib", + "ann/src/main/java/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/annoy", + "ann/src/main/scala/com/ExTwitter/ann/brute_force", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/scala/com/ExTwitter/ann/util", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", + "beam-internal/src/main/scala/com/ExTwitter/beam/io/bigquery", + "beam-internal/src/main/scala/com/ExTwitter/beam/io/dal", + "beam-internal/src/main/scala/com/ExTwitter/beam/job", + "beam-internal/src/main/scala/com/ExTwitter/scio_internal/runner/dataflow", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/wtf/beam/bq_embedding_export:bq_embedding_export_lib", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/dataflow/offline/BaseEmbeddingData.scala b/ann/src/main/scala/com/twitter/ann/dataflow/offline/BaseEmbeddingData.scala index a9a291d07..ec32275a4 100644 --- a/ann/src/main/scala/com/twitter/ann/dataflow/offline/BaseEmbeddingData.scala +++ b/ann/src/main/scala/com/twitter/ann/dataflow/offline/BaseEmbeddingData.scala @@ -1,4 +1,4 @@ -package com.twitter.ann.dataflow.offline +package com.ExTwitter.ann.dataflow.offline trait BaseEmbeddingData { val entityId: Option[Long] diff --git a/ann/src/main/scala/com/twitter/ann/dataflow/offline/FlatEmbeddingData.scala b/ann/src/main/scala/com/twitter/ann/dataflow/offline/FlatEmbeddingData.scala index ad211fb68..8a10c0e9a 100644 --- a/ann/src/main/scala/com/twitter/ann/dataflow/offline/FlatEmbeddingData.scala +++ b/ann/src/main/scala/com/twitter/ann/dataflow/offline/FlatEmbeddingData.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.dataflow.offline +package com.ExTwitter.ann.dataflow.offline -import com.twitter.beam.schemas.SchemaFieldName +import com.ExTwitter.beam.schemas.SchemaFieldName case class FlatEmbeddingData( @SchemaFieldName("entityId") entityId: Option[Long], diff --git a/ann/src/main/scala/com/twitter/ann/dataflow/offline/GroupedEmbeddingData.scala b/ann/src/main/scala/com/twitter/ann/dataflow/offline/GroupedEmbeddingData.scala index 63342272f..d43f278b0 100644 --- a/ann/src/main/scala/com/twitter/ann/dataflow/offline/GroupedEmbeddingData.scala +++ b/ann/src/main/scala/com/twitter/ann/dataflow/offline/GroupedEmbeddingData.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.dataflow.offline +package com.ExTwitter.ann.dataflow.offline -import com.twitter.beam.schemas.SchemaFieldName +import com.ExTwitter.beam.schemas.SchemaFieldName case class GroupedEmbeddingData( @SchemaFieldName("entityId") entityId: Option[Long], diff --git a/ann/src/main/scala/com/twitter/ann/experimental/BUILD.bazel b/ann/src/main/scala/com/twitter/ann/experimental/BUILD.bazel index 8335984c1..2b60e7e54 100644 --- a/ann/src/main/scala/com/twitter/ann/experimental/BUILD.bazel +++ b/ann/src/main/scala/com/twitter/ann/experimental/BUILD.bazel @@ -5,17 +5,17 @@ scala_library( platform = "java8", tags = ["bazel-only"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/annoy", - "ann/src/main/scala/com/twitter/ann/brute_force", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/annoy", + "ann/src/main/scala/com/ExTwitter/ann/brute_force", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", ], ) hadoop_binary( name = "benchmarking", basename = "benchmarking", - main = "com.twitter.ann.experimental.Runner", + main = "com.ExTwitter.ann.experimental.Runner", platform = "java8", runtime_platform = "java8", tags = [ diff --git a/ann/src/main/scala/com/twitter/ann/experimental/Runner.scala b/ann/src/main/scala/com/twitter/ann/experimental/Runner.scala index da0d5e3ee..55836b703 100644 --- a/ann/src/main/scala/com/twitter/ann/experimental/Runner.scala +++ b/ann/src/main/scala/com/twitter/ann/experimental/Runner.scala @@ -1,13 +1,13 @@ -package com.twitter.ann.experimental +package com.ExTwitter.ann.experimental -import com.twitter.ann.annoy.{AnnoyRuntimeParams, TypedAnnoyIndex} -import com.twitter.ann.brute_force.{BruteForceIndex, BruteForceRuntimeParams} -import com.twitter.ann.common.{Cosine, CosineDistance, EntityEmbedding, ReadWriteFuturePool} -import com.twitter.ann.hnsw.{HnswParams, TypedHnswIndex} -import com.twitter.bijection.Injection -import com.twitter.ml.api.embedding.Embedding -import com.twitter.search.common.file.LocalFile -import com.twitter.util.{Await, Future, FuturePool} +import com.ExTwitter.ann.annoy.{AnnoyRuntimeParams, TypedAnnoyIndex} +import com.ExTwitter.ann.brute_force.{BruteForceIndex, BruteForceRuntimeParams} +import com.ExTwitter.ann.common.{Cosine, CosineDistance, EntityEmbedding, ReadWriteFuturePool} +import com.ExTwitter.ann.hnsw.{HnswParams, TypedHnswIndex} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.search.common.file.LocalFile +import com.ExTwitter.util.{Await, Future, FuturePool} import java.nio.file.Files import java.util import java.util.concurrent.Executors diff --git a/ann/src/main/scala/com/twitter/ann/faiss/BUILD b/ann/src/main/scala/com/twitter/ann/faiss/BUILD index dd09cbbae..80d97d8d0 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/BUILD +++ b/ann/src/main/scala/com/twitter/ann/faiss/BUILD @@ -5,19 +5,19 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/org/mapdb", - "ann/src/main/java/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "ann/src/main/java/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "mediaservices/commons/src/main/scala:futuretracker", - "src/java/com/twitter/common_internal/hadoop", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "src/java/com/ExTwitter/common_internal/hadoop", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", ], exports = [ - "ann/src/main/scala/com/twitter/ann/common", - "src/java/com/twitter/common_internal/hadoop", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "ann/src/main/scala/com/ExTwitter/ann/common", + "src/java/com/ExTwitter/common_internal/hadoop", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/faiss/FaissCommon.scala b/ann/src/main/scala/com/twitter/ann/faiss/FaissCommon.scala index 96f40708e..8985bec29 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/FaissCommon.scala +++ b/ann/src/main/scala/com/twitter/ann/faiss/FaissCommon.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.faiss +package com.ExTwitter.ann.faiss -import com.twitter.ann.common.thriftscala.FaissRuntimeParam -import com.twitter.bijection.Injection +import com.ExTwitter.ann.common.thriftscala.FaissRuntimeParam +import com.ExTwitter.bijection.Injection import scala.util.Failure import scala.util.Success import scala.util.Try -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.search.common.file.AbstractFile object FaissCommon { val RuntimeParamsInjection: Injection[FaissParams, ServiceRuntimeParams] = diff --git a/ann/src/main/scala/com/twitter/ann/faiss/FaissIndex.scala b/ann/src/main/scala/com/twitter/ann/faiss/FaissIndex.scala index 63930247a..738498b03 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/FaissIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/faiss/FaissIndex.scala @@ -1,9 +1,9 @@ -package com.twitter.ann.faiss +package com.ExTwitter.ann.faiss -import com.twitter.ann.common.Queryable -import com.twitter.ann.common._ -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.Queryable +import com.ExTwitter.ann.common._ +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.logging.Logging case class FaissParams( nprobe: Option[Int], diff --git a/ann/src/main/scala/com/twitter/ann/faiss/FaissIndexer.scala b/ann/src/main/scala/com/twitter/ann/faiss/FaissIndexer.scala index bb6cae0b5..9ef65d7db 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/FaissIndexer.scala +++ b/ann/src/main/scala/com/twitter/ann/faiss/FaissIndexer.scala @@ -1,19 +1,19 @@ -package com.twitter.ann.faiss +package com.ExTwitter.ann.faiss import com.google.common.base.Preconditions -import com.twitter.ann.common.Cosine -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.IndexOutputFile -import com.twitter.ann.common.InnerProduct -import com.twitter.ann.common.L2 -import com.twitter.ann.common.Metric -import com.twitter.ml.api.embedding.EmbeddingMath -import com.twitter.scalding.Execution -import com.twitter.scalding.TypedPipe -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.Cosine +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.IndexOutputFile +import com.ExTwitter.ann.common.InnerProduct +import com.ExTwitter.ann.common.L2 +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ml.api.embedding.EmbeddingMath +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding.TypedPipe +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.logging.Logging import java.io.File import scala.util.Random diff --git a/ann/src/main/scala/com/twitter/ann/faiss/HourlyDirectoryWithSuccessFileListing.scala b/ann/src/main/scala/com/twitter/ann/faiss/HourlyDirectoryWithSuccessFileListing.scala index 938ee80ed..37eba90e1 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/HourlyDirectoryWithSuccessFileListing.scala +++ b/ann/src/main/scala/com/twitter/ann/faiss/HourlyDirectoryWithSuccessFileListing.scala @@ -1,13 +1,13 @@ -package com.twitter.ann.faiss +package com.ExTwitter.ann.faiss -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Time -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging import java.util.Locale object HourlyDirectoryWithSuccessFileListing extends Logging { diff --git a/ann/src/main/scala/com/twitter/ann/faiss/HourlyShardedIndex.scala b/ann/src/main/scala/com/twitter/ann/faiss/HourlyShardedIndex.scala index 9d8d94218..7c180425f 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/HourlyShardedIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/faiss/HourlyShardedIndex.scala @@ -1,16 +1,16 @@ -package com.twitter.ann.faiss +package com.ExTwitter.ann.faiss -import com.twitter.ann.common.Distance -import com.twitter.ann.common.MemoizedInEpochs -import com.twitter.ann.common.Metric -import com.twitter.ann.common.Task -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.MemoizedInEpochs +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.common.Task +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging import java.util.concurrent.atomic.AtomicReference object HourlyShardedIndex { diff --git a/ann/src/main/scala/com/twitter/ann/faiss/QueryableIndexAdapter.scala b/ann/src/main/scala/com/twitter/ann/faiss/QueryableIndexAdapter.scala index 642e7d208..d471ad152 100644 --- a/ann/src/main/scala/com/twitter/ann/faiss/QueryableIndexAdapter.scala +++ b/ann/src/main/scala/com/twitter/ann/faiss/QueryableIndexAdapter.scala @@ -1,16 +1,16 @@ -package com.twitter.ann.faiss +package com.ExTwitter.ann.faiss -import com.twitter.ann.common.Cosine -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.Metric -import com.twitter.ann.common.NeighborWithDistance -import com.twitter.ann.common.Queryable -import com.twitter.ml.api.embedding.EmbeddingMath -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.util.Future -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.Cosine +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.common.NeighborWithDistance +import com.ExTwitter.ann.common.Queryable +import com.ExTwitter.ml.api.embedding.EmbeddingMath +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.Future +import com.ExTwitter.util.logging.Logging import java.io.File import java.util.concurrent.locks.ReentrantReadWriteLock diff --git a/ann/src/main/scala/com/twitter/ann/featurestore/BUILD b/ann/src/main/scala/com/twitter/ann/featurestore/BUILD index 959745b92..8267ee805 100644 --- a/ann/src/main/scala/com/twitter/ann/featurestore/BUILD +++ b/ann/src/main/scala/com/twitter/ann/featurestore/BUILD @@ -3,8 +3,8 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/common", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/ml/featurestore/lib/online", + "ann/src/main/scala/com/ExTwitter/ann/common", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/ml/featurestore/lib/online", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/featurestore/FeatureStoreEmbeddingProducer.scala b/ann/src/main/scala/com/twitter/ann/featurestore/FeatureStoreEmbeddingProducer.scala index d71720ea4..18a6f2142 100644 --- a/ann/src/main/scala/com/twitter/ann/featurestore/FeatureStoreEmbeddingProducer.scala +++ b/ann/src/main/scala/com/twitter/ann/featurestore/FeatureStoreEmbeddingProducer.scala @@ -1,20 +1,20 @@ -package com.twitter.ann.featurestore +package com.ExTwitter.ann.featurestore -import com.twitter.ann.common.EmbeddingProducer -import com.twitter.finagle.stats.{InMemoryStatsReceiver, StatsReceiver} -import com.twitter.ml.api.embedding.{Embedding, EmbeddingSerDe} -import com.twitter.ml.api.thriftscala -import com.twitter.ml.api.thriftscala.{Embedding => TEmbedding} -import com.twitter.ml.featurestore.lib.dataset.online.VersionedOnlineAccessDataset -import com.twitter.ml.featurestore.lib.{EntityId, RawFloatTensor} -import com.twitter.ml.featurestore.lib.dataset.DatasetParams -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.{BoundFeature, BoundFeatureSet} -import com.twitter.ml.featurestore.lib.online.{FeatureStoreClient, FeatureStoreRequest} -import com.twitter.ml.featurestore.lib.params.FeatureStoreParams -import com.twitter.stitch.Stitch -import com.twitter.strato.opcontext.Attribution -import com.twitter.strato.client.Client +import com.ExTwitter.ann.common.EmbeddingProducer +import com.ExTwitter.finagle.stats.{InMemoryStatsReceiver, StatsReceiver} +import com.ExTwitter.ml.api.embedding.{Embedding, EmbeddingSerDe} +import com.ExTwitter.ml.api.thriftscala +import com.ExTwitter.ml.api.thriftscala.{Embedding => TEmbedding} +import com.ExTwitter.ml.featurestore.lib.dataset.online.VersionedOnlineAccessDataset +import com.ExTwitter.ml.featurestore.lib.{EntityId, RawFloatTensor} +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetParams +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.{BoundFeature, BoundFeatureSet} +import com.ExTwitter.ml.featurestore.lib.online.{FeatureStoreClient, FeatureStoreRequest} +import com.ExTwitter.ml.featurestore.lib.params.FeatureStoreParams +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.opcontext.Attribution +import com.ExTwitter.strato.client.Client object FeatureStoreEmbeddingProducer { def apply[T <: EntityId]( diff --git a/ann/src/main/scala/com/twitter/ann/file_store/BUILD b/ann/src/main/scala/com/twitter/ann/file_store/BUILD index 1b7ca6f81..ea3801f12 100644 --- a/ann/src/main/scala/com/twitter/ann/file_store/BUILD +++ b/ann/src/main/scala/com/twitter/ann/file_store/BUILD @@ -4,9 +4,9 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "3rdparty/jvm/com/ExTwitter/storehaus:core", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "mediaservices/commons/src/main/scala", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/file_store/ReadableIndexIdFileStore.scala b/ann/src/main/scala/com/twitter/ann/file_store/ReadableIndexIdFileStore.scala index 8886abaa8..1bd03f773 100644 --- a/ann/src/main/scala/com/twitter/ann/file_store/ReadableIndexIdFileStore.scala +++ b/ann/src/main/scala/com/twitter/ann/file_store/ReadableIndexIdFileStore.scala @@ -1,10 +1,10 @@ -package com.twitter.ann.file_store +package com.ExTwitter.ann.file_store -import com.twitter.ann.common.thriftscala.FileBasedIndexIdStore -import com.twitter.bijection.Injection -import com.twitter.mediaservices.commons.codec.{ArrayByteBufferCodec, ThriftByteBufferCodec} -import com.twitter.search.common.file.AbstractFile -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.ann.common.thriftscala.FileBasedIndexIdStore +import com.ExTwitter.bijection.Injection +import com.ExTwitter.mediaservices.commons.codec.{ArrayByteBufferCodec, ThriftByteBufferCodec} +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.storehaus.ReadableStore import java.nio.ByteBuffer object ReadableIndexIdFileStore { diff --git a/ann/src/main/scala/com/twitter/ann/file_store/WritableIndexIdFileStore.scala b/ann/src/main/scala/com/twitter/ann/file_store/WritableIndexIdFileStore.scala index cddf77d2c..1464cff5f 100644 --- a/ann/src/main/scala/com/twitter/ann/file_store/WritableIndexIdFileStore.scala +++ b/ann/src/main/scala/com/twitter/ann/file_store/WritableIndexIdFileStore.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.file_store +package com.ExTwitter.ann.file_store -import com.twitter.ann.common.IndexOutputFile -import com.twitter.ann.common.thriftscala.FileBasedIndexIdStore -import com.twitter.bijection.Injection -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.mediaservices.commons.codec.ThriftByteBufferCodec -import com.twitter.storehaus.Store -import com.twitter.util.Future +import com.ExTwitter.ann.common.IndexOutputFile +import com.ExTwitter.ann.common.thriftscala.FileBasedIndexIdStore +import com.ExTwitter.bijection.Injection +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.mediaservices.commons.codec.ThriftByteBufferCodec +import com.ExTwitter.storehaus.Store +import com.ExTwitter.util.Future import java.util.concurrent.{ConcurrentHashMap => JConcurrentHashMap} import scala.collection.JavaConverters._ diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/BUILD b/ann/src/main/scala/com/twitter/ann/hnsw/BUILD index 9783b461d..a3c2e36df 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/BUILD +++ b/ann/src/main/scala/com/twitter/ann/hnsw/BUILD @@ -5,19 +5,19 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/org/mapdb", - "ann/src/main/java/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "ann/src/main/java/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "mediaservices/commons/src/main/scala:futuretracker", - "src/java/com/twitter/common_internal/hadoop", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "src/java/com/ExTwitter/common_internal/hadoop", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", ], exports = [ - "ann/src/main/scala/com/twitter/ann/common", - "src/java/com/twitter/common_internal/hadoop", - "src/java/com/twitter/search/common/file", - "src/scala/com/twitter/ml/api/embedding", + "ann/src/main/scala/com/ExTwitter/ann/common", + "src/java/com/ExTwitter/common_internal/hadoop", + "src/java/com/ExTwitter/search/common/file", + "src/scala/com/ExTwitter/ml/api/embedding", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/DistanceFunctionGenerator.scala b/ann/src/main/scala/com/twitter/ann/hnsw/DistanceFunctionGenerator.scala index a512fad1f..54f86c874 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/DistanceFunctionGenerator.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/DistanceFunctionGenerator.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.{Cosine, Distance, InnerProduct, Metric} +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.{Cosine, Distance, InnerProduct, Metric} private[hnsw] object DistanceFunctionGenerator { def apply[T, D <: Distance[D]]( diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/Hnsw.scala b/ann/src/main/scala/com/twitter/ann/hnsw/Hnsw.scala index 38666eb20..8c62b9af5 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/Hnsw.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/Hnsw.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw import com.google.common.annotations.VisibleForTesting -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.common.Metric.toThrift -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.DistanceMetric -import com.twitter.ann.hnsw.HnswIndex.RandomProvider -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common.Metric.toThrift +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.DistanceMetric +import com.ExTwitter.ann.hnsw.HnswIndex.RandomProvider +import com.ExTwitter.util.Future import java.util.Random import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.ThreadLocalRandom diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/HnswCommon.scala b/ann/src/main/scala/com/twitter/ann/hnsw/HnswCommon.scala index 1c0a65fd2..692eb6987 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/HnswCommon.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/HnswCommon.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw -import com.twitter.ann.common.RuntimeParams -import com.twitter.ann.common.thriftscala.HnswIndexMetadata -import com.twitter.ann.common.thriftscala.HnswRuntimeParam -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.bijection.Injection -import com.twitter.mediaservices.commons.codec.ThriftByteBufferCodec -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.ann.common.thriftscala.HnswIndexMetadata +import com.ExTwitter.ann.common.thriftscala.HnswRuntimeParam +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.mediaservices.commons.codec.ThriftByteBufferCodec +import com.ExTwitter.search.common.file.AbstractFile import scala.util.Failure import scala.util.Success import scala.util.Try diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/HnswIOUtil.scala b/ann/src/main/scala/com/twitter/ann/hnsw/HnswIOUtil.scala index 6d7a1d06b..fc2e1e505 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/HnswIOUtil.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/HnswIOUtil.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw import com.google.common.annotations.VisibleForTesting -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.thriftscala.HnswIndexMetadata -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.Metric -import com.twitter.ann.hnsw.HnswCommon._ -import com.twitter.ann.serialization.PersistedEmbeddingInjection -import com.twitter.ann.serialization.ThriftIteratorIO -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.bijection.Injection -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.thriftscala.HnswIndexMetadata +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.hnsw.HnswCommon._ +import com.ExTwitter.ann.serialization.PersistedEmbeddingInjection +import com.ExTwitter.ann.serialization.ThriftIteratorIO +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.bijection.Injection +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.search.common.file.AbstractFile import java.io.BufferedInputStream import java.io.BufferedOutputStream import java.io.OutputStream diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/IdEmbeddingMap.scala b/ann/src/main/scala/com/twitter/ann/hnsw/IdEmbeddingMap.scala index e60f17088..231869617 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/IdEmbeddingMap.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/IdEmbeddingMap.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw -import com.twitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common.EmbeddingType._ import java.io.OutputStream trait IdEmbeddingMap[T] { diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/JMapBasedIdEmbeddingMap.scala b/ann/src/main/scala/com/twitter/ann/hnsw/JMapBasedIdEmbeddingMap.scala index bc305dbc4..b715f6631 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/JMapBasedIdEmbeddingMap.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/JMapBasedIdEmbeddingMap.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.bijection.Injection -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.bijection.Injection +import com.ExTwitter.search.common.file.AbstractFile import java.io.OutputStream import java.util.concurrent.ConcurrentHashMap import scala.collection.JavaConverters._ diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/MapDbBasedIdEmbeddingMap.scala b/ann/src/main/scala/com/twitter/ann/hnsw/MapDbBasedIdEmbeddingMap.scala index 620f0554e..c45af23b0 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/MapDbBasedIdEmbeddingMap.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/MapDbBasedIdEmbeddingMap.scala @@ -1,9 +1,9 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.bijection.Injection -import com.twitter.ml.api.embedding.Embedding -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.bijection.Injection +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.search.common.file.AbstractFile import java.io.OutputStream import org.mapdb.DBMaker import org.mapdb.HTreeMap diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/SerializableHnsw.scala b/ann/src/main/scala/com/twitter/ann/hnsw/SerializableHnsw.scala index 65ffa0e5d..a2cd1a641 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/SerializableHnsw.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/SerializableHnsw.scala @@ -1,15 +1,15 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw import com.google.common.annotations.VisibleForTesting -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.HnswIndexMetadata -import com.twitter.ann.hnsw.HnswCommon._ -import com.twitter.ann.hnsw.HnswIndex.RandomProvider -import com.twitter.bijection.Injection -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.HnswIndexMetadata +import com.ExTwitter.ann.hnsw.HnswCommon._ +import com.ExTwitter.ann.hnsw.HnswIndex.RandomProvider +import com.ExTwitter.bijection.Injection +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.Future import java.io.IOException import java.util.concurrent.ThreadLocalRandom import java.util.Random diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala b/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala index 6bf99a61b..1cd71c055 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala @@ -1,15 +1,15 @@ -package com.twitter.ann.hnsw +package com.ExTwitter.ann.hnsw -import com.twitter.ann.common._ -import com.twitter.bijection.Injection -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common._ +import com.ExTwitter.bijection.Injection +import com.ExTwitter.search.common.file.AbstractFile // Class to provide HNSW based approximate nearest neighbour index object TypedHnswIndex { /** * Creates in-memory HNSW based index which supports querying/addition/updates of the entity embeddings. - * See https://docbird.twitter.biz/ann/hnsw.html to check information about arguments. + * See https://docbird.ExTwitter.biz/ann/hnsw.html to check information about arguments. * * @param dimension Dimension of the embedding to be indexed * @param metric Distance metric (InnerProduct/Cosine/L2) @@ -55,7 +55,7 @@ object TypedHnswIndex { /** * Creates in-memory HNSW based index which supports querying/addition/updates of the entity embeddings. * It can be serialized to a directory (HDFS/Local file system) - * See https://docbird.twitter.biz/ann/hnsw.html to check information about arguments. + * See https://docbird.ExTwitter.biz/ann/hnsw.html to check information about arguments. * * @param dimension Dimension of the embedding to be indexed * @param metric Distance metric (InnerProduct/Cosine/L2) diff --git a/ann/src/main/scala/com/twitter/ann/manhattan/BUILD b/ann/src/main/scala/com/twitter/ann/manhattan/BUILD index 6b0387d6f..f0aa1527a 100644 --- a/ann/src/main/scala/com/twitter/ann/manhattan/BUILD +++ b/ann/src/main/scala/com/twitter/ann/manhattan/BUILD @@ -3,10 +3,10 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:core", - "3rdparty/jvm/com/twitter/bijection:scrooge", - "ann/src/main/scala/com/twitter/ann/common", - "src/scala/com/twitter/ml/api/embedding", + "3rdparty/jvm/com/ExTwitter/bijection:core", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "ann/src/main/scala/com/ExTwitter/ann/common", + "src/scala/com/ExTwitter/ml/api/embedding", "storage/clients/manhattan", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/manhattan/ManhattanEmbeddingProducer.scala b/ann/src/main/scala/com/twitter/ann/manhattan/ManhattanEmbeddingProducer.scala index e8b2f6429..9e9ce54f1 100644 --- a/ann/src/main/scala/com/twitter/ann/manhattan/ManhattanEmbeddingProducer.scala +++ b/ann/src/main/scala/com/twitter/ann/manhattan/ManhattanEmbeddingProducer.scala @@ -1,15 +1,15 @@ -package com.twitter.ann.manhattan +package com.ExTwitter.ann.manhattan -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.{EmbeddingProducer, EmbeddingType} -import com.twitter.bijection.Injection -import com.twitter.ml.api.embedding.{EmbeddingBijection, EmbeddingSerDe} -import com.twitter.ml.api.{thriftscala => thrift} -import com.twitter.stitch.Stitch -import com.twitter.storage.client.manhattan.bijections.Bijections -import com.twitter.storage.client.manhattan.bijections.Bijections.BinaryScalaInjection -import com.twitter.storage.client.manhattan.kv.ManhattanKVEndpoint -import com.twitter.storage.client.manhattan.kv.impl.{ +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.{EmbeddingProducer, EmbeddingType} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.ml.api.embedding.{EmbeddingBijection, EmbeddingSerDe} +import com.ExTwitter.ml.api.{thriftscala => thrift} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.storage.client.manhattan.bijections.Bijections +import com.ExTwitter.storage.client.manhattan.bijections.Bijections.BinaryScalaInjection +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVEndpoint +import com.ExTwitter.storage.client.manhattan.kv.impl.{ DescriptorP1L0, ReadOnlyKeyDescriptor, ValueDescriptor diff --git a/ann/src/main/scala/com/twitter/ann/scalding/benchmark/BUILD b/ann/src/main/scala/com/twitter/ann/scalding/benchmark/BUILD index 4ad971d3d..eb40d77e0 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/benchmark/BUILD +++ b/ann/src/main/scala/com/twitter/ann/scalding/benchmark/BUILD @@ -10,21 +10,21 @@ scala_library( ], dependencies = [ ":user_item_knn-scala", - "3rdparty/src/jvm/com/twitter/scalding:args", - "3rdparty/src/jvm/com/twitter/scalding:core", - "3rdparty/src/jvm/com/twitter/scalding:date", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/scalding/offline", - "src/scala/com/twitter/scalding_internal/dalv2", - "src/scala/com/twitter/scalding_internal/job", - "src/scala/com/twitter/scalding_internal/job/analytics_batch", - "src/scala/com/twitter/scalding_internal/multiformat/format", + "3rdparty/src/jvm/com/ExTwitter/scalding:args", + "3rdparty/src/jvm/com/ExTwitter/scalding:core", + "3rdparty/src/jvm/com/ExTwitter/scalding:date", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/scalding/offline", + "src/scala/com/ExTwitter/scalding_internal/dalv2", + "src/scala/com/ExTwitter/scalding_internal/job", + "src/scala/com/ExTwitter/scalding_internal/job/analytics_batch", + "src/scala/com/ExTwitter/scalding_internal/multiformat/format", ], ) hadoop_binary( name = "benchmark-adhoc", - main = "com.twitter.scalding.Tool", + main = "com.ExTwitter.scalding.Tool", platform = "java8", runtime_platform = "java8", tags = [ @@ -41,16 +41,16 @@ hadoop_binary( create_datasets( base_name = "user_item_knn", description = "List of the top recommendations per search entity (user)", - java_schema = "com.twitter.ann.knn.thriftjava.Knn", + java_schema = "com.ExTwitter.ann.knn.thriftjava.Knn", platform = "java8", role = "cortex-mlx", - scala_schema = "com.twitter.ann.knn.thriftscala.Knn", + scala_schema = "com.ExTwitter.ann.knn.thriftscala.Knn", segment_type = "partitioned", tags = ["bazel-compatible"], java_dependencies = [ - "ann/src/main/thrift/com/twitter/ann/knn:thrift-java", + "ann/src/main/thrift/com/ExTwitter/ann/knn:thrift-java", ], scala_dependencies = [ - "ann/src/main/thrift/com/twitter/ann/knn:thrift-scala", + "ann/src/main/thrift/com/ExTwitter/ann/knn:thrift-scala", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/scalding/benchmark/Knn.scala b/ann/src/main/scala/com/twitter/ann/scalding/benchmark/Knn.scala index 72daf3fec..827631b95 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/benchmark/Knn.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/benchmark/Knn.scala @@ -1,26 +1,26 @@ -package com.twitter.ann.scalding.offline.com.twitter.ann.scalding.benchmark +package com.ExTwitter.ann.scalding.offline.com.ExTwitter.ann.scalding.benchmark /* This job will generate KNN ground truth based user and item embeddings. */ -import com.twitter.scalding.typed.TypedPipe -import com.twitter.scalding._ -import com.twitter.scalding_internal.dalv2.DALWrite.D -import com.twitter.ann.knn.thriftscala.Knn -import com.twitter.ann.knn.thriftscala.Neighbor -import com.twitter.ann.scalding.offline.IndexingStrategy -import com.twitter.ann.scalding.offline.KnnHelper -import com.twitter.ann.common.Distance -import com.twitter.ml.featurestore.lib.embedding.EmbeddingWithEntity -import com.twitter.cortex.ml.embeddings.common.EmbeddingFormatArgsParser -import com.twitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.scalding.typed.TypedPipe +import com.ExTwitter.scalding._ +import com.ExTwitter.scalding_internal.dalv2.DALWrite.D +import com.ExTwitter.ann.knn.thriftscala.Knn +import com.ExTwitter.ann.knn.thriftscala.Neighbor +import com.ExTwitter.ann.scalding.offline.IndexingStrategy +import com.ExTwitter.ann.scalding.offline.KnnHelper +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ml.featurestore.lib.embedding.EmbeddingWithEntity +import com.ExTwitter.cortex.ml.embeddings.common.EmbeddingFormatArgsParser +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind import java.util.TimeZone -import com.twitter.scalding_internal.dalv2.DALWrite._ -import com.twitter.ann.scalding.benchmark.UserItemKnnScalaDataset -import com.twitter.scalding_internal.job.TwitterExecutionApp -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.UserId +import com.ExTwitter.scalding_internal.dalv2.DALWrite._ +import com.ExTwitter.ann.scalding.benchmark.UserItemKnnScalaDataset +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.UserId /** * This job will take consumer and item embeddings(either url or tweet) and output Knn entities (user id, (distance, item id)). @@ -28,12 +28,12 @@ import com.twitter.ml.featurestore.lib.UserId * Example command to run this adhoc job: * * scalding remote run \ - * --target ann/src/main/scala/com/twitter/ann/scalding/benchmark:benchmark-adhoc \ + * --target ann/src/main/scala/com/ExTwitter/ann/scalding/benchmark:benchmark-adhoc \ * --hadoop-properties "mapreduce.map.memory.mb=8192 mapreduce.map.java.opts='-Xmx7618M' mapreduce.reduce.memory.mb=8192 mapreduce.reduce.java.opts='-Xmx7618M' mapred.task.timeout=0" \ - * --submitter hadoopnest3.smf1.twitter.com \ + * --submitter hadoopnest3.smf1.ExTwitter.com \ * --user cortex-mlx \ * --submitter-memory 8000.megabyte \ - * --main-class com.twitter.ann.scalding.offline.com.twitter.ann.scalding.benchmark.KnnJob -- \ + * --main-class com.ExTwitter.ann.scalding.offline.com.ExTwitter.ann.scalding.benchmark.KnnJob -- \ * --dalEnvironment Prod \ * --search_space_entity_type user \ * --user.feature_store_embedding ConsumerFollowEmbedding300Dataset \ @@ -104,7 +104,7 @@ trait KnnJobBase { } } -object KnnJob extends TwitterExecutionApp with KnnJobBase { +object KnnJob extends ExTwitterExecutionApp with KnnJobBase { val KnnPathSuffix: String = "/user/cortex-mlx/qualatative_analysis/knn_ground_truth/" val partitionKey: String = "version" diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/BUILD.bazel b/ann/src/main/scala/com/twitter/ann/scalding/offline/BUILD.bazel index eeb124aeb..2ac186b48 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/BUILD.bazel +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/BUILD.bazel @@ -7,29 +7,29 @@ scala_library( "bazel-only", ], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:scrooge", - "3rdparty/src/jvm/com/twitter/scalding:args", - "3rdparty/src/jvm/com/twitter/scalding:commons", - "3rdparty/src/jvm/com/twitter/scalding:core", - "ann/src/main/scala/com/twitter/ann/brute_force", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/util", - "cortex-core/entity-embeddings/src/thrift/com/twitter/entityembeddings/neighbors:embeddings-knn-thrift-scala", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers-deploy", - "src/scala/com/twitter/pluck/source/core_workflows/user_model:condensed_user_state-scala", - "src/scala/com/twitter/scalding_internal/dalv2", - "src/scala/com/twitter/scalding_internal/job", - "src/scala/com/twitter/scalding_internal/multiformat/format", - "src/scala/com/twitter/scalding_internal/parquet_thrift", - "usersource/snapshot/src/main/scala/com/twitter/usersource/snapshot/flat:usersource_flat-scala", - "usersource/snapshot/src/main/thrift/com/twitter/usersource/snapshot/flat:flat-scala", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "3rdparty/src/jvm/com/ExTwitter/scalding:args", + "3rdparty/src/jvm/com/ExTwitter/scalding:commons", + "3rdparty/src/jvm/com/ExTwitter/scalding:core", + "ann/src/main/scala/com/ExTwitter/ann/brute_force", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/util", + "cortex-core/entity-embeddings/src/thrift/com/ExTwitter/entityembeddings/neighbors:embeddings-knn-thrift-scala", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers-deploy", + "src/scala/com/ExTwitter/pluck/source/core_workflows/user_model:condensed_user_state-scala", + "src/scala/com/ExTwitter/scalding_internal/dalv2", + "src/scala/com/ExTwitter/scalding_internal/job", + "src/scala/com/ExTwitter/scalding_internal/multiformat/format", + "src/scala/com/ExTwitter/scalding_internal/parquet_thrift", + "usersource/snapshot/src/main/scala/com/ExTwitter/usersource/snapshot/flat:usersource_flat-scala", + "usersource/snapshot/src/main/thrift/com/ExTwitter/usersource/snapshot/flat:flat-scala", ], ) hadoop_binary( name = "ann-offline-deploy", - main = "com.twitter.scalding.Tool", + main = "com.ExTwitter.scalding.Tool", platform = "java8", runtime_platform = "java8", tags = [ diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/IndexingStrategy.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/IndexingStrategy.scala index cde35ccfb..919070c6e 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/IndexingStrategy.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/IndexingStrategy.scala @@ -1,12 +1,12 @@ -package com.twitter.ann.scalding.offline +package com.ExTwitter.ann.scalding.offline -import com.twitter.ann.brute_force.{BruteForceIndex, BruteForceRuntimeParams} -import com.twitter.ann.common.{Distance, EntityEmbedding, Metric, ReadWriteFuturePool} -import com.twitter.ann.hnsw.{HnswParams, TypedHnswIndex} -import com.twitter.ann.util.IndexBuilderUtils -import com.twitter.scalding.Args -import com.twitter.util.logging.Logger -import com.twitter.util.{Await, FuturePool} +import com.ExTwitter.ann.brute_force.{BruteForceIndex, BruteForceRuntimeParams} +import com.ExTwitter.ann.common.{Distance, EntityEmbedding, Metric, ReadWriteFuturePool} +import com.ExTwitter.ann.hnsw.{HnswParams, TypedHnswIndex} +import com.ExTwitter.ann.util.IndexBuilderUtils +import com.ExTwitter.scalding.Args +import com.ExTwitter.util.logging.Logger +import com.ExTwitter.util.{Await, FuturePool} /** * IndexingStrategy is used for determining how we will build the index when doing a KNN in diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnDebug.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnDebug.scala index c0b4ae598..1e3536194 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnDebug.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnDebug.scala @@ -1,15 +1,15 @@ -package com.twitter.ann.scalding.offline +package com.ExTwitter.ann.scalding.offline -import com.twitter.core_workflows.user_model.thriftscala.CondensedUserState -import com.twitter.cortex.ml.embeddings.common.{DataSourceManager, GraphEdge, Helpers, UserKind} -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.entityembeddings.neighbors.thriftscala.{EntityKey, NearestNeighbors} -import com.twitter.pluck.source.core_workflows.user_model.CondensedUserStateScalaDataset -import com.twitter.scalding._ -import com.twitter.scalding.typed.TypedPipe -import com.twitter.scalding_internal.dalv2.DAL -import com.twitter.usersource.snapshot.flat.UsersourceFlatScalaDataset -import com.twitter.usersource.snapshot.flat.thriftscala.FlatUser +import com.ExTwitter.core_workflows.user_model.thriftscala.CondensedUserState +import com.ExTwitter.cortex.ml.embeddings.common.{DataSourceManager, GraphEdge, Helpers, UserKind} +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.entityembeddings.neighbors.thriftscala.{EntityKey, NearestNeighbors} +import com.ExTwitter.pluck.source.core_workflows.user_model.CondensedUserStateScalaDataset +import com.ExTwitter.scalding._ +import com.ExTwitter.scalding.typed.TypedPipe +import com.ExTwitter.scalding_internal.dalv2.DAL +import com.ExTwitter.usersource.snapshot.flat.UsersourceFlatScalaDataset +import com.ExTwitter.usersource.snapshot.flat.thriftscala.FlatUser case class ConsumerAssoc(consumerId: UserId, assoc: List[String]) diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnEntityRecoDebugJob.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnEntityRecoDebugJob.scala index 9a6849d46..13c157bd5 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnEntityRecoDebugJob.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnEntityRecoDebugJob.scala @@ -1,17 +1,17 @@ -package com.twitter.ann.scalding.offline -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Metric -import com.twitter.cortex.ml.embeddings.common.EntityKind -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.scalding.typed.TypedPipe -import com.twitter.scalding._ -import com.twitter.scalding_internal.job.TwitterExecutionApp +package com.ExTwitter.ann.scalding.offline +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.scalding.typed.TypedPipe +import com.ExTwitter.scalding._ +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp /** * This job do an exhaustive search for nearest neighbours helpful for debugging recommendations * for a given list of sample queryIds and entity embeddings for the recos to be made. * Sample job script: - ./bazel bundle ann/src/main/scala/com/twitter/ann/scalding/offline:ann-offline-deploy + ./bazel bundle ann/src/main/scala/com/ExTwitter/ann/scalding/offline:ann-offline-deploy oscar hdfs \ --screen --tee log.txt \ @@ -19,8 +19,8 @@ import com.twitter.scalding_internal.job.TwitterExecutionApp --hadoop-properties "yarn.app.mapreduce.am.resource.mb=6000;yarn.app.mapreduce.am.command-opts='-Xmx7500m';mapreduce.map.memory.mb=7500;mapreduce.reduce.java.opts='-Xmx6000m';mapreduce.reduce.memory.mb=7500;mapred.task.timeout=36000000;" \ --bundle ann-offline-deploy \ --min-split-size 284217728 \ - --host hadoopnest1.smf1.twitter.com \ - --tool com.twitter.ann.scalding.offline.KnnEntityRecoDebugJob -- \ + --host hadoopnest1.smf1.ExTwitter.com \ + --tool com.ExTwitter.ann.scalding.offline.KnnEntityRecoDebugJob -- \ --neighbors 10 \ --metric InnerProduct \ --query_entity_kind user \ @@ -33,7 +33,7 @@ import com.twitter.scalding_internal.job.TwitterExecutionApp --output_path /user/apoorvs/adhochadoop/test \ --reducers 100 */ -object KnnEntityRecoDebugJob extends TwitterExecutionApp { +object KnnEntityRecoDebugJob extends ExTwitterExecutionApp { override def job: Execution[Unit] = Execution.withId { implicit uniqueId => Execution.getArgs.flatMap { args: Args => val queryEntityKind = EntityKind.getEntityKind(args("query_entity_kind")) diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnHelper.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnHelper.scala index fe12fe156..a5b15ba8d 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnHelper.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnHelper.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.scalding.offline +package com.ExTwitter.ann.scalding.offline -import com.twitter.ann.common._ -import com.twitter.ann.hnsw.{HnswParams, TypedHnswIndex} -import com.twitter.bijection.Injection -import com.twitter.cortex.ml.embeddings.common.{EntityKind, Helpers, UserKind} -import com.twitter.entityembeddings.neighbors.thriftscala.{EntityKey, NearestNeighbors, Neighbor} -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.api.embedding.EmbeddingMath.{Float => math} -import com.twitter.ml.featurestore.lib.embedding.EmbeddingWithEntity -import com.twitter.ml.featurestore.lib.{EntityId, UserId} -import com.twitter.scalding.typed.{TypedPipe, UnsortedGrouped} -import com.twitter.scalding.{Args, DateRange, Stat, TextLine, UniqueID} -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.{Await, FuturePool} +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.hnsw.{HnswParams, TypedHnswIndex} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.cortex.ml.embeddings.common.{EntityKind, Helpers, UserKind} +import com.ExTwitter.entityembeddings.neighbors.thriftscala.{EntityKey, NearestNeighbors, Neighbor} +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.api.embedding.EmbeddingMath.{Float => math} +import com.ExTwitter.ml.featurestore.lib.embedding.EmbeddingWithEntity +import com.ExTwitter.ml.featurestore.lib.{EntityId, UserId} +import com.ExTwitter.scalding.typed.{TypedPipe, UnsortedGrouped} +import com.ExTwitter.scalding.{Args, DateRange, Stat, TextLine, UniqueID} +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.{Await, FuturePool} import scala.util.Random case class Index[T, D <: Distance[D]]( diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnOfflineJob.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnOfflineJob.scala index 87b6aacf8..7da60c28c 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnOfflineJob.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnOfflineJob.scala @@ -1,23 +1,23 @@ -package com.twitter.ann.scalding.offline +package com.ExTwitter.ann.scalding.offline -import com.twitter.ann.common.Metric -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.embedding.EmbeddingWithEntity -import com.twitter.cortex.ml.embeddings.common.EntityKind -import com.twitter.entityembeddings.neighbors.thriftscala.{EntityKey, NearestNeighbors} -import com.twitter.scalding.commons.source.VersionedKeyValSource -import com.twitter.scalding.typed.TypedPipe -import com.twitter.scalding.{Args, DateOps, DateParser, DateRange, Execution, TypedTsv, UniqueID} -import com.twitter.scalding_internal.job.TwitterExecutionApp -import com.twitter.search.common.file.{AbstractFile, LocalFile} +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.embedding.EmbeddingWithEntity +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.entityembeddings.neighbors.thriftscala.{EntityKey, NearestNeighbors} +import com.ExTwitter.scalding.commons.source.VersionedKeyValSource +import com.ExTwitter.scalding.typed.TypedPipe +import com.ExTwitter.scalding.{Args, DateOps, DateParser, DateRange, Execution, TypedTsv, UniqueID} +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp +import com.ExTwitter.search.common.file.{AbstractFile, LocalFile} import java.util.TimeZone /** * Generates the nearest neighbour for users and store them in Manhattan format i.e sequence files. * See README for oscar usage. */ -object KnnOfflineJob extends TwitterExecutionApp { +object KnnOfflineJob extends ExTwitterExecutionApp { override def job: Execution[Unit] = Execution.withId { implicit uniqueId => Execution.getArgs.flatMap { args: Args => val knnDirectoryOpt: Option[String] = args.optional("knn_directory") diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnTruthSetGenerator.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnTruthSetGenerator.scala index 23b064fc3..2467ab6dc 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnTruthSetGenerator.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/KnnTruthSetGenerator.scala @@ -1,21 +1,21 @@ -package com.twitter.ann.scalding.offline +package com.ExTwitter.ann.scalding.offline -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Metric -import com.twitter.ann.scalding.offline.KnnHelper.nearestNeighborsToString -import com.twitter.cortex.ml.embeddings.common.EntityKind -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.scalding.source.TypedText -import com.twitter.scalding.Args -import com.twitter.scalding.Execution -import com.twitter.scalding.UniqueID -import com.twitter.scalding_internal.job.TwitterExecutionApp +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.scalding.offline.KnnHelper.nearestNeighborsToString +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.scalding.source.TypedText +import com.ExTwitter.scalding.Args +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding.UniqueID +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp /** * This job reads index embedding data, query embeddings data, and split into index set, query set and true nearest neigbor set * from query to index. */ -object KnnTruthSetGenerator extends TwitterExecutionApp { +object KnnTruthSetGenerator extends ExTwitterExecutionApp { override def job: Execution[Unit] = Execution.withId { implicit uniqueId => Execution.getArgs.flatMap { args: Args => val queryEntityKind = EntityKind.getEntityKind(args("query_entity_kind")) diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/ParameterlessQueryable.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/ParameterlessQueryable.scala index e66a834b5..caf7ed528 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/ParameterlessQueryable.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/ParameterlessQueryable.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.scalding.offline +package com.ExTwitter.ann.scalding.offline -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.{Distance, NeighborWithDistance, Queryable, RuntimeParams} -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.{Distance, NeighborWithDistance, Queryable, RuntimeParams} +import com.ExTwitter.util.Future private[offline] case class ParameterlessQueryable[T, P <: RuntimeParams, D <: Distance[D]]( queryable: Queryable[T, P, D], diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/BUILD.bazel b/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/BUILD.bazel index c35a1658e..4fd2e07eb 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/BUILD.bazel +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/BUILD.bazel @@ -7,22 +7,22 @@ scala_library( "bazel-only", ], dependencies = [ - "3rdparty/src/jvm/com/twitter/scalding:args", - "3rdparty/src/jvm/com/twitter/scalding:core", - "ann/src/main/scala/com/twitter/ann/annoy", - "ann/src/main/scala/com/twitter/ann/brute_force", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/scala/com/twitter/ann/util", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/scalding_internal/job", + "3rdparty/src/jvm/com/ExTwitter/scalding:args", + "3rdparty/src/jvm/com/ExTwitter/scalding:core", + "ann/src/main/scala/com/ExTwitter/ann/annoy", + "ann/src/main/scala/com/ExTwitter/ann/brute_force", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/scala/com/ExTwitter/ann/util", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/scalding_internal/job", ], ) hadoop_binary( name = "faissindexbuilder-deploy", - main = "com.twitter.ann.scalding.offline.faissindexbuilder.IndexBuilderApp", + main = "com.ExTwitter.ann.scalding.offline.faissindexbuilder.IndexBuilderApp", platform = "java11", runtime_platform = "java11", tags = [ diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilder.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilder.scala index 879736b13..98784715b 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilder.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.ann.scalding.offline.faissindexbuilder +package com.ExTwitter.ann.scalding.offline.faissindexbuilder -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.Metric -import com.twitter.ann.faiss.FaissIndexer -import com.twitter.cortex.ml.embeddings.common.EmbeddingFormat -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.scalding.Execution -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.faiss.FaissIndexer +import com.ExTwitter.cortex.ml.embeddings.common.EmbeddingFormat +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.scalding.Execution +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.logging.Logging object IndexBuilder extends FaissIndexer with Logging { def run[T <: UserId, D <: Distance[D]]( diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilderApp.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilderApp.scala index 985757271..28d8a2dec 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilderApp.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/faissindexbuilder/IndexBuilderApp.scala @@ -1,17 +1,17 @@ -package com.twitter.ann.scalding.offline.faissindexbuilder +package com.ExTwitter.ann.scalding.offline.faissindexbuilder -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Metric -import com.twitter.cortex.ml.embeddings.common._ -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.scalding.Args -import com.twitter.scalding.DateOps -import com.twitter.scalding.DateParser -import com.twitter.scalding.DateRange -import com.twitter.scalding.Execution -import com.twitter.scalding_internal.job.TwitterExecutionApp -import com.twitter.search.common.file.FileUtils -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.cortex.ml.embeddings.common._ +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.scalding.Args +import com.ExTwitter.scalding.DateOps +import com.ExTwitter.scalding.DateParser +import com.ExTwitter.scalding.DateRange +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.logging.Logging import java.util.Calendar import java.util.TimeZone @@ -68,7 +68,7 @@ trait IndexBuilderExecutable extends Logging { } } -object IndexBuilderApp extends TwitterExecutionApp with IndexBuilderExecutable { +object IndexBuilderApp extends ExTwitterExecutionApp with IndexBuilderExecutable { override def job: Execution[Unit] = Execution.getArgs.flatMap { args: Args => indexBuilderExecution(args) } diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/BUILD.bazel b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/BUILD.bazel index bd421443e..329859d23 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/BUILD.bazel +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/BUILD.bazel @@ -7,22 +7,22 @@ scala_library( "bazel-only", ], dependencies = [ - "3rdparty/src/jvm/com/twitter/scalding:args", - "3rdparty/src/jvm/com/twitter/scalding:core", - "ann/src/main/scala/com/twitter/ann/annoy", - "ann/src/main/scala/com/twitter/ann/brute_force", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/scala/com/twitter/ann/util", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/scalding_internal/job", + "3rdparty/src/jvm/com/ExTwitter/scalding:args", + "3rdparty/src/jvm/com/ExTwitter/scalding:core", + "ann/src/main/scala/com/ExTwitter/ann/annoy", + "ann/src/main/scala/com/ExTwitter/ann/brute_force", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/scala/com/ExTwitter/ann/util", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/scalding_internal/job", ], ) hadoop_binary( name = "indexbuilder-deploy", - main = "com.twitter.ann.scalding.offline.indexbuilder.IndexBuilderApp", + main = "com.ExTwitter.ann.scalding.offline.indexbuilder.IndexBuilderApp", platform = "java8", runtime_platform = "java8", tags = [ diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilder.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilder.scala index 9e4d49da7..0c68b9379 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilder.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.ann.scalding.offline.indexbuilder +package com.ExTwitter.ann.scalding.offline.indexbuilder -import com.twitter.ann.common.Appendable -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.Serialization -import com.twitter.ann.util.IndexBuilderUtils -import com.twitter.cortex.ml.embeddings.common.EmbeddingFormat -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.scalding.Execution -import com.twitter.scalding_internal.job.FutureHelper -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.logging.Logger +import com.ExTwitter.ann.common.Appendable +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.Serialization +import com.ExTwitter.ann.util.IndexBuilderUtils +import com.ExTwitter.cortex.ml.embeddings.common.EmbeddingFormat +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding_internal.job.FutureHelper +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.logging.Logger object IndexBuilder { private[this] val Log = Logger.apply[IndexBuilder.type] diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilderApp.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilderApp.scala index 9ab98d30c..9e7d0c0b8 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilderApp.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/IndexBuilderApp.scala @@ -1,21 +1,21 @@ -package com.twitter.ann.scalding.offline.indexbuilder +package com.ExTwitter.ann.scalding.offline.indexbuilder -import com.twitter.ann.annoy.TypedAnnoyIndex -import com.twitter.ann.brute_force.SerializableBruteForceIndex -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Metric -import com.twitter.ann.common.ReadWriteFuturePool -import com.twitter.ann.hnsw.TypedHnswIndex -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.ann.serialization.PersistedEmbeddingInjection -import com.twitter.ann.serialization.ThriftIteratorIO -import com.twitter.cortex.ml.embeddings.common._ -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.scalding.Args -import com.twitter.scalding.Execution -import com.twitter.scalding_internal.job.TwitterExecutionApp -import com.twitter.search.common.file.FileUtils -import com.twitter.util.FuturePool +import com.ExTwitter.ann.annoy.TypedAnnoyIndex +import com.ExTwitter.ann.brute_force.SerializableBruteForceIndex +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.common.ReadWriteFuturePool +import com.ExTwitter.ann.hnsw.TypedHnswIndex +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.ann.serialization.PersistedEmbeddingInjection +import com.ExTwitter.ann.serialization.ThriftIteratorIO +import com.ExTwitter.cortex.ml.embeddings.common._ +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.scalding.Args +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.FuturePool import java.util.concurrent.Executors trait IndexBuilderExecutable { @@ -84,7 +84,7 @@ trait IndexBuilderExecutable { } } -object IndexBuilderApp extends TwitterExecutionApp with IndexBuilderExecutable { +object IndexBuilderApp extends ExTwitterExecutionApp with IndexBuilderExecutable { override def job: Execution[Unit] = Execution.getArgs.flatMap { args: Args => indexBuilderExecution(args) } diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/README.rst b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/README.rst index c58e9620a..d15b275f3 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/README.rst +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder/README.rst @@ -78,7 +78,7 @@ General arguments (specified as **--profile.{options}**): - tweet - tfwId -- **embedding_args** Embedding format args. See the documentation in `com.twitter.cortex.ml.embeddings.common.EmbeddingFormatArgsParser` for a full explanation of the input options. Possible options: +- **embedding_args** Embedding format args. See the documentation in `com.ExTwitter.cortex.ml.embeddings.common.EmbeddingFormatArgsParser` for a full explanation of the input options. Possible options: 1. **input.embedding_format** Format of the serialized embedding. @@ -91,7 +91,7 @@ General arguments (specified as **--profile.{options}**): 3. **input.{feature_store_args}** For feature store related args like `feature_store_embedding`, `feature_store_major_version`, `date_range`: -- **output_dir** Where to save the produced serialized ann index. Save to HDFS by specifying the full URI. e.g `hdfs://hadoop-dw2-nn.smf1.twitter.com/user//index_file` or using the default cluster `hdfs:///user//index_file`. +- **output_dir** Where to save the produced serialized ann index. Save to HDFS by specifying the full URI. e.g `hdfs://hadoop-dw2-nn.smf1.ExTwitter.com/user//index_file` or using the default cluster `hdfs:///user//index_file`. - **num_dimensions** Dimension of embedding in the input data. An exception will be thrown if any entry does not have a number of dimensions equal to this number. - **metric** Distance metric (InnerProduct/Cosine/L2) - **concurrency_level** Specifies how many parallel inserts happen to the index. This should probably be set to the number of cores on the machine. @@ -122,7 +122,7 @@ You can create job bundle locally, upload to packer and then it can be used with .. code-block:: bash - ./bazel bundle ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilder:indexbuilder-deploy \ + ./bazel bundle ann/src/main/scala/com/ExTwitter/ann/scalding/offline/indexbuilder:indexbuilder-deploy \ --bundle-jvm-archive=zip .. code-block:: bash diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/BUILD.bazel b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/BUILD.bazel index 992325fa2..e467c0fb7 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/BUILD.bazel +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/BUILD.bazel @@ -7,23 +7,23 @@ scala_library( "bazel-only", ], dependencies = [ - "3rdparty/src/jvm/com/twitter/scalding:args", - "3rdparty/src/jvm/com/twitter/scalding:core", - "ann/src/main/scala/com/twitter/ann/annoy", - "ann/src/main/scala/com/twitter/ann/brute_force", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/serialization", - "ann/src/main/scala/com/twitter/ann/util", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/scalding_internal/bigquery", - "src/scala/com/twitter/scalding_internal/job", + "3rdparty/src/jvm/com/ExTwitter/scalding:args", + "3rdparty/src/jvm/com/ExTwitter/scalding:core", + "ann/src/main/scala/com/ExTwitter/ann/annoy", + "ann/src/main/scala/com/ExTwitter/ann/brute_force", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/serialization", + "ann/src/main/scala/com/ExTwitter/ann/util", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/scalding_internal/bigquery", + "src/scala/com/ExTwitter/scalding_internal/job", ], ) hadoop_binary( name = "ann-index-builder", - main = "com.twitter.ann.scalding.offline.indexbuilderfrombq.IndexBuilderFromBQApp", + main = "com.ExTwitter.ann.scalding.offline.indexbuilderfrombq.IndexBuilderFromBQApp", platform = "java8", runtime_platform = "java8", tags = [ diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQ.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQ.scala index fe82a0792..38182269d 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQ.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQ.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.scalding.offline.indexbuilderfrombq +package com.ExTwitter.ann.scalding.offline.indexbuilderfrombq -import com.twitter.ann.common.Appendable -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.Serialization -import com.twitter.ann.util.IndexBuilderUtils -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.featurestore.lib.embedding.EmbeddingWithEntity -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.scalding.Execution -import com.twitter.scalding.TypedPipe -import com.twitter.scalding_internal.job.FutureHelper -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.logging.Logger +import com.ExTwitter.ann.common.Appendable +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.Serialization +import com.ExTwitter.ann.util.IndexBuilderUtils +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.featurestore.lib.embedding.EmbeddingWithEntity +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding.TypedPipe +import com.ExTwitter.scalding_internal.job.FutureHelper +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.logging.Logger object IndexBuilder { private[this] val Log = Logger.apply[IndexBuilder.type] diff --git a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQApp.scala b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQApp.scala index 18079ac96..6d725c8da 100644 --- a/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQApp.scala +++ b/ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq/IndexBuilderFromBQApp.scala @@ -1,30 +1,30 @@ -package com.twitter.ann.scalding.offline.indexbuilderfrombq +package com.ExTwitter.ann.scalding.offline.indexbuilderfrombq import com.google.auth.oauth2.ServiceAccountCredentials import com.google.cloud.bigquery.BigQueryOptions import com.google.cloud.bigquery.QueryJobConfiguration -import com.twitter.ann.annoy.TypedAnnoyIndex -import com.twitter.ann.brute_force.SerializableBruteForceIndex -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Metric -import com.twitter.ann.common.ReadWriteFuturePool -import com.twitter.ann.hnsw.TypedHnswIndex -import com.twitter.ann.serialization.PersistedEmbeddingInjection -import com.twitter.ann.serialization.ThriftIteratorIO -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.cortex.ml.embeddings.common._ -import com.twitter.ml.api.embedding.Embedding -import com.twitter.ml.featurestore.lib._ -import com.twitter.ml.featurestore.lib.embedding.EmbeddingWithEntity -import com.twitter.scalding.Args -import com.twitter.scalding.Execution -import com.twitter.scalding.typed.TypedPipe -import com.twitter.scalding_internal.bigquery.BigQueryConfig -import com.twitter.scalding_internal.bigquery.BigQuerySource -import com.twitter.scalding_internal.job.TwitterExecutionApp -import com.twitter.scalding_internal.multiformat.format.keyval.KeyVal -import com.twitter.search.common.file.FileUtils -import com.twitter.util.FuturePool +import com.ExTwitter.ann.annoy.TypedAnnoyIndex +import com.ExTwitter.ann.brute_force.SerializableBruteForceIndex +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Metric +import com.ExTwitter.ann.common.ReadWriteFuturePool +import com.ExTwitter.ann.hnsw.TypedHnswIndex +import com.ExTwitter.ann.serialization.PersistedEmbeddingInjection +import com.ExTwitter.ann.serialization.ThriftIteratorIO +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.cortex.ml.embeddings.common._ +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.ml.featurestore.lib._ +import com.ExTwitter.ml.featurestore.lib.embedding.EmbeddingWithEntity +import com.ExTwitter.scalding.Args +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding.typed.TypedPipe +import com.ExTwitter.scalding_internal.bigquery.BigQueryConfig +import com.ExTwitter.scalding_internal.bigquery.BigQuerySource +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp +import com.ExTwitter.scalding_internal.multiformat.format.keyval.KeyVal +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.FuturePool import java.io.FileInputStream import java.time.LocalDateTime import java.time.ZoneOffset @@ -42,7 +42,7 @@ import scala.collection.JavaConverters._ * * Command for running the app (from source repo root): * scalding remote run \ - * --target ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq:ann-index-builder-binary + * --target ann/src/main/scala/com/ExTwitter/ann/scalding/offline/indexbuilderfrombq:ann-index-builder-binary */ trait IndexBuilderFromBQExecutable { // This method is used to cast the entityKind and the metric to have parameters. @@ -185,9 +185,9 @@ trait IndexBuilderFromBQExecutable { /* scalding remote run \ ---target ann/src/main/scala/com/twitter/ann/scalding/offline/indexbuilderfrombq:ann-index-builder-binary +--target ann/src/main/scala/com/ExTwitter/ann/scalding/offline/indexbuilderfrombq:ann-index-builder-binary */ -object IndexBuilderFromBQApp extends TwitterExecutionApp with IndexBuilderFromBQExecutable { +object IndexBuilderFromBQApp extends ExTwitterExecutionApp with IndexBuilderFromBQExecutable { override def job: Execution[Unit] = Execution.getArgs.flatMap { args: Args => indexBuilderExecution(args) } diff --git a/ann/src/main/scala/com/twitter/ann/serialization/BUILD b/ann/src/main/scala/com/twitter/ann/serialization/BUILD index d2d6bf754..3c64e8398 100644 --- a/ann/src/main/scala/com/twitter/ann/serialization/BUILD +++ b/ann/src/main/scala/com/twitter/ann/serialization/BUILD @@ -4,11 +4,11 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:core", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/thrift/com/twitter/ann/serialization:serialization-scala", + "3rdparty/jvm/com/ExTwitter/bijection:core", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/thrift/com/ExTwitter/ann/serialization:serialization-scala", "mediaservices/commons", "scrooge/scrooge-core", - "src/scala/com/twitter/scalding_internal/multiformat/format", + "src/scala/com/ExTwitter/scalding_internal/multiformat/format", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/serialization/DummyANNIndexInjection.scala b/ann/src/main/scala/com/twitter/ann/serialization/DummyANNIndexInjection.scala index c93747234..3d7fa193b 100644 --- a/ann/src/main/scala/com/twitter/ann/serialization/DummyANNIndexInjection.scala +++ b/ann/src/main/scala/com/twitter/ann/serialization/DummyANNIndexInjection.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.serialization +package com.ExTwitter.ann.serialization -import com.twitter.scalding_internal.multiformat.format.keyval.KeyValInjection -import com.twitter.scalding_internal.multiformat.format.keyval.KeyValInjection.Long2BigEndian +import com.ExTwitter.scalding_internal.multiformat.format.keyval.KeyValInjection +import com.ExTwitter.scalding_internal.multiformat.format.keyval.KeyValInjection.Long2BigEndian /** Dummy injection required to writeup dummy dal dataset to ANN folder. diff --git a/ann/src/main/scala/com/twitter/ann/serialization/PersistedEmbeddingInjection.scala b/ann/src/main/scala/com/twitter/ann/serialization/PersistedEmbeddingInjection.scala index 50917fe56..a3afbb855 100644 --- a/ann/src/main/scala/com/twitter/ann/serialization/PersistedEmbeddingInjection.scala +++ b/ann/src/main/scala/com/twitter/ann/serialization/PersistedEmbeddingInjection.scala @@ -1,10 +1,10 @@ -package com.twitter.ann.serialization +package com.ExTwitter.ann.serialization -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.serialization.thriftscala.PersistedEmbedding -import com.twitter.bijection.Injection -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.serialization.thriftscala.PersistedEmbedding +import com.ExTwitter.bijection.Injection +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec import java.nio.ByteBuffer import scala.util.Try diff --git a/ann/src/main/scala/com/twitter/ann/serialization/ThriftIteratorIO.scala b/ann/src/main/scala/com/twitter/ann/serialization/ThriftIteratorIO.scala index 6f7389723..58d465b2c 100644 --- a/ann/src/main/scala/com/twitter/ann/serialization/ThriftIteratorIO.scala +++ b/ann/src/main/scala/com/twitter/ann/serialization/ThriftIteratorIO.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.serialization +package com.ExTwitter.ann.serialization -import com.twitter.scrooge.{ThriftStruct, ThriftStructCodec} +import com.ExTwitter.scrooge.{ThriftStruct, ThriftStructCodec} import java.io.{InputStream, OutputStream} import org.apache.thrift.protocol.TBinaryProtocol import org.apache.thrift.transport.{TIOStreamTransport, TTransportException} diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTest.scala b/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTest.scala index ed7754b1b..0cf27006d 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTest.scala +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTest.scala @@ -1,9 +1,9 @@ -package com.twitter.ann.service.loadtest +package com.ExTwitter.ann.service.loadtest -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.{Appendable, Distance, EntityEmbedding, Queryable, RuntimeParams} -import com.twitter.util.logging.Logger -import com.twitter.util.{Duration, Future} +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.{Appendable, Distance, EntityEmbedding, Queryable, RuntimeParams} +import com.ExTwitter.util.logging.Logger +import com.ExTwitter.util.{Duration, Future} class AnnIndexQueryLoadTest( worker: AnnLoadTestWorker = new AnnLoadTestWorker()) { diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestMain.scala b/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestMain.scala index 23f18d7af..bb56c23fe 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestMain.scala +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestMain.scala @@ -1,31 +1,31 @@ -package com.twitter.ann.service.loadtest +package com.ExTwitter.ann.service.loadtest -import com.twitter.ann.annoy.AnnoyCommon -import com.twitter.ann.annoy.AnnoyRuntimeParams -import com.twitter.ann.annoy.TypedAnnoyIndex -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.{Distance => ServiceDistance} -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.ann.faiss.FaissCommon -import com.twitter.ann.faiss.FaissParams -import com.twitter.ann.hnsw.HnswCommon -import com.twitter.ann.hnsw.HnswParams -import com.twitter.ann.hnsw.TypedHnswIndex -import com.twitter.bijection.Injection -import com.twitter.cortex.ml.embeddings.common.EntityKind -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.util.DefaultTimer -import com.twitter.finatra.mtls.modules.ServiceIdentifierModule -import com.twitter.inject.server.TwitterServer -import com.twitter.util._ +import com.ExTwitter.ann.annoy.AnnoyCommon +import com.ExTwitter.ann.annoy.AnnoyRuntimeParams +import com.ExTwitter.ann.annoy.TypedAnnoyIndex +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.{Distance => ServiceDistance} +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.ann.faiss.FaissCommon +import com.ExTwitter.ann.faiss.FaissParams +import com.ExTwitter.ann.hnsw.HnswCommon +import com.ExTwitter.ann.hnsw.HnswParams +import com.ExTwitter.ann.hnsw.TypedHnswIndex +import com.ExTwitter.bijection.Injection +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.finatra.mtls.modules.ServiceIdentifierModule +import com.ExTwitter.inject.server.ExTwitterServer +import com.ExTwitter.util._ import java.util.concurrent.TimeUnit /** * To build and upload: - * $ ./bazel bundle ann/src/main/scala/com/twitter/ann/service/loadtest:bin --bundle-jvm-archive=zip + * $ ./bazel bundle ann/src/main/scala/com/ExTwitter/ann/service/loadtest:bin --bundle-jvm-archive=zip * $ packer add_version --cluster=smf1 $USER ann-loadtest dist/ann-loadtest.zip */ -object AnnLoadTestMain extends TwitterServer { +object AnnLoadTestMain extends ExTwitterServer { private[this] val algo = flag[String]("algo", "load test server types: [annoy/hnsw]") private[this] val targetQPS = diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestWorker.scala b/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestWorker.scala index 87ed6a1b3..fbd90abc2 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestWorker.scala +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/AnnLoadTestWorker.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.service.loadtest +package com.ExTwitter.ann.service.loadtest import com.google.common.annotations.VisibleForTesting -import com.twitter.ann.common.Distance -import com.twitter.ann.common.Queryable -import com.twitter.ann.common.RuntimeParams -import com.twitter.concurrent.AsyncMeter -import com.twitter.concurrent.AsyncStream -import com.twitter.finagle.util.DefaultTimer -import com.twitter.logging.Logger -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Stopwatch -import com.twitter.util.Timer -import com.twitter.util.Try +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.Queryable +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.concurrent.AsyncMeter +import com.ExTwitter.concurrent.AsyncStream +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.logging.Logger +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Stopwatch +import com.ExTwitter.util.Timer +import com.ExTwitter.util.Try import java.util.concurrent.atomic.AtomicInteger object QueryTimeConfiguration { diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/BUILD b/ann/src/main/scala/com/twitter/ann/service/loadtest/BUILD index 9aa698242..ef6c645b5 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/BUILD +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/BUILD @@ -5,15 +5,15 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "ann/src/main/resources", - "ann/src/main/scala/com/twitter/ann/annoy", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/util", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "ann/src/main/scala/com/ExTwitter/ann/annoy", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/util", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "finatra/inject/inject-server/src/main/scala", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "twitter-server-internal/src/main/scala", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "ExTwitter-server-internal/src/main/scala", "util/util-logging/src/main/scala", ], ) @@ -21,11 +21,11 @@ scala_library( jvm_binary( name = "bin", basename = "ann-loadtest", - main = "com.twitter.ann.service.loadtest.AnnLoadTestMain", + main = "com.ExTwitter.ann.service.loadtest.AnnLoadTestMain", runtime_platform = "java11", dependencies = [ ":loadtest", "3rdparty/jvm/org/slf4j:slf4j-jdk14", - "twitter-server/slf4j-jdk14/src/main/scala", + "ExTwitter-server/slf4j-jdk14/src/main/scala", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/EmbeddingIndexer.scala b/ann/src/main/scala/com/twitter/ann/service/loadtest/EmbeddingIndexer.scala index b963c3eb7..f22a2f005 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/EmbeddingIndexer.scala +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/EmbeddingIndexer.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.service.loadtest +package com.ExTwitter.ann.service.loadtest -import com.twitter.ann.common.{Appendable, Distance, EntityEmbedding, Queryable, RuntimeParams} -import com.twitter.ann.util.IndexBuilderUtils -import com.twitter.util.{Future, Stopwatch} +import com.ExTwitter.ann.common.{Appendable, Distance, EntityEmbedding, Queryable, RuntimeParams} +import com.ExTwitter.ann.util.IndexBuilderUtils +import com.ExTwitter.util.{Future, Stopwatch} class EmbeddingIndexer { // Index embeddings into Appendable and return the (appendable, latency) pair diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestRecorder.scala b/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestRecorder.scala index 0bcdc9be8..8b1ad5a73 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestRecorder.scala +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestRecorder.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.service.loadtest +package com.ExTwitter.ann.service.loadtest import com.google.common.util.concurrent.AtomicDouble -import com.twitter.finagle.stats.{MetricsBucketedHistogram, Snapshot, StatsReceiver} -import com.twitter.util.{Duration, Stopwatch} +import com.ExTwitter.finagle.stats.{MetricsBucketedHistogram, Snapshot, StatsReceiver} +import com.ExTwitter.util.{Duration, Stopwatch} import java.util.concurrent.atomic.{AtomicInteger, AtomicReference} trait LoadTestQueryRecorder[T] { diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestUtils.scala b/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestUtils.scala index b1009cc62..5101d6a94 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestUtils.scala +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/LoadTestUtils.scala @@ -1,33 +1,33 @@ -package com.twitter.ann.service.loadtest +package com.ExTwitter.ann.service.loadtest import com.google.common.annotations.VisibleForTesting -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.ann.common.thriftscala.NearestNeighborQuery -import com.twitter.ann.common.thriftscala.NearestNeighborResult -import com.twitter.ann.common.thriftscala.{Distance => ServiceDistance} -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.ann.common.Distance -import com.twitter.ann.common.EntityEmbedding -import com.twitter.ann.common.Queryable -import com.twitter.ann.common.RuntimeParams -import com.twitter.ann.common.ServiceClientQueryable -import com.twitter.bijection.Injection -import com.twitter.cortex.ml.embeddings.common.EntityKind -import com.twitter.finagle.builder.ClientBuilder -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient.MtlsThriftMuxClientSyntax -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.Service -import com.twitter.finagle.ThriftMux -import com.twitter.ml.api.embedding.Embedding -import com.twitter.search.common.file.AbstractFile.Filter -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.search.common.file.LocalFile -import com.twitter.util.Future -import com.twitter.util.logging.Logger +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.ann.common.thriftscala.NearestNeighborQuery +import com.ExTwitter.ann.common.thriftscala.NearestNeighborResult +import com.ExTwitter.ann.common.thriftscala.{Distance => ServiceDistance} +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.EntityEmbedding +import com.ExTwitter.ann.common.Queryable +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.ann.common.ServiceClientQueryable +import com.ExTwitter.bijection.Injection +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.finagle.builder.ClientBuilder +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient.MtlsThriftMuxClientSyntax +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.Service +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.search.common.file.AbstractFile.Filter +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.search.common.file.LocalFile +import com.ExTwitter.util.Future +import com.ExTwitter.util.logging.Logger import java.io.File import scala.collection.JavaConversions._ import scala.collection.mutable diff --git a/ann/src/main/scala/com/twitter/ann/service/loadtest/README.md b/ann/src/main/scala/com/twitter/ann/service/loadtest/README.md index b668788ea..12791c848 100644 --- a/ann/src/main/scala/com/twitter/ann/service/loadtest/README.md +++ b/ann/src/main/scala/com/twitter/ann/service/loadtest/README.md @@ -131,7 +131,7 @@ Sample queries can be generated from the embeddings dataset and can be used dire To generate sample queries `EmbeddingSamplingJob` can be used as follows. ```bash -$ ./bazel bundle cortex-core/entity-embeddings/src/scala/main/com/twitter/scalding/util/EmbeddingFormat:embeddingformat-deploy +$ ./bazel bundle cortex-core/entity-embeddings/src/scala/main/com/ExTwitter/scalding/util/EmbeddingFormat:embeddingformat-deploy $ export INPUT_PATH=/user/cortex/embeddings/user/tfwproducersg/embedding_datarecords_on_data/2018/05/01 $ export ENTITY_KIND=user @@ -145,8 +145,8 @@ $ oscar hdfs \ --hadoop-properties "yarn.app.mapreduce.am.resource.mb=6000;yarn.app.mapreduce.am.command-opts='-Xmx7500m';mapreduce.map.memory.mb=7500;mapreduce.reduce.java.opts='-Xmx6000m';mapreduce.reduce.memory.mb=7500;mapred.task.timeout=36000000;" \ --min-split-size 284217728 \ --bundle embeddingformat-deploy \ - --host hadoopnest1.smf1.twitter.com \ - --tool com.twitter.scalding.entityembeddings.util.EmbeddingFormat.EmbeddingSamplingJob -- \ + --host hadoopnest1.smf1.ExTwitter.com \ + --tool com.ExTwitter.scalding.entityembeddings.util.EmbeddingFormat.EmbeddingSamplingJob -- \ --entity_kind $ENTITY_KIND \ --input.embedding_path $INPUT_PATH \ --input.embedding_format $EMBEDDING_INPUT_FORMAT \ @@ -170,7 +170,7 @@ And also you need to figure out the dimension for your embedding vectors. KnnTruthSetGenerator can help to prepare data sets: ```bash -$ ./bazel bundle ann/src/main/scala/com/twitter/ann/scalding/offline:ann-offline-deploy +$ ./bazel bundle ann/src/main/scala/com/ExTwitter/ann/scalding/offline:ann-offline-deploy $ export QUERY_EMBEDDINGS_PATH=/user/cortex-mlx/official_examples/ann/non_pii_random_user_embeddings_tab_format $ export INDEX_EMBEDDINGS_PATH=/user/cortex-mlx/official_examples/ann/non_pii_random_user_embeddings_tab_format @@ -188,8 +188,8 @@ $ oscar hdfs \ --hadoop-properties "yarn.app.mapreduce.am.resource.mb=6000;yarn.app.mapreduce.am.command-opts='-Xmx7500m';mapreduce.map.memory.mb=7500;mapreduce.reduce.java.opts='-Xmx6000m';mapreduce.reduce.memory.mb=7500;mapred.task.timeout=36000000;" \ --bundle ann-offline-deploy \ --min-split-size 284217728 \ - --host hadoopnest1.smf1.twitter.com \ - --tool com.twitter.ann.scalding.offline.KnnTruthSetGenerator -- \ + --host hadoopnest1.smf1.ExTwitter.com \ + --tool com.ExTwitter.ann.scalding.offline.KnnTruthSetGenerator -- \ --neighbors $NEIGHBOURS \ --metric $METRIC \ --query_entity_kind $QUERY_ENTITY_KIND \ @@ -215,4 +215,4 @@ Set `--reducers` according to the embeddings dataset size. # FAQ There are multiple type of `query_id_type` and `index_id_type` that can be used. Some native types like string/int/long or related to entity embeddings -like tweet/word/user/url... for more info: [Link](https://cgit.twitter.biz/source/tree/src/scala/com/twitter/cortex/ml/embeddings/common/EntityKind.scala#n8) +like tweet/word/user/url... for more info: [Link](https://cgit.ExTwitter.biz/source/tree/src/scala/com/ExTwitter/cortex/ml/embeddings/common/EntityKind.scala#n8) diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/BUILD b/ann/src/main/scala/com/twitter/ann/service/query_server/common/BUILD index 026be5699..4da000d47 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/BUILD +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/BUILD @@ -17,8 +17,8 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/javax/inject:javax.inject", "3rdparty/jvm/net/codingwell:scala-guice", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "finagle/finagle-core/src/main", "finagle/finagle-zipkin-scribe", "finatra-internal/decider", @@ -26,7 +26,7 @@ scala_library( "finatra/inject/inject-core/src/main/scala", "mediaservices/commons", "scrooge/scrooge-core/src/main/scala", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", "util/util-app/src/main/scala", "util/util-logging/src/main/scala", ], @@ -41,10 +41,10 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/hnsw", - "src/java/com/twitter/search/common/file", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "src/java/com/ExTwitter/search/common/file", "util/util-logging/src/main/scala", - "util/util-stats/src/main/scala/com/twitter/finagle/stats", + "util/util-stats/src/main/scala/com/ExTwitter/finagle/stats", ], ) @@ -55,9 +55,9 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ ":index_path_provider", - "ann/src/main/scala/com/twitter/ann/faiss", - "src/java/com/twitter/search/common/file", + "ann/src/main/scala/com/ExTwitter/ann/faiss", + "src/java/com/ExTwitter/search/common/file", "util/util-logging/src/main/scala", - "util/util-stats/src/main/scala/com/twitter/finagle/stats", + "util/util-stats/src/main/scala/com/ExTwitter/finagle/stats", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/BaseQueryIndexServer.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/BaseQueryIndexServer.scala index bac537d27..0b18e48ce 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/BaseQueryIndexServer.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/BaseQueryIndexServer.scala @@ -1,20 +1,20 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common import com.google.inject.Module -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.app.Flag -import com.twitter.finatra.decider.modules.DeciderModule -import com.twitter.finatra.thrift.ThriftServer -import com.twitter.finatra.mtls.thriftmux.Mtls -import com.twitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule -import com.twitter.finatra.thrift.filters.{ +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.app.Flag +import com.ExTwitter.finatra.decider.modules.DeciderModule +import com.ExTwitter.finatra.thrift.ThriftServer +import com.ExTwitter.finatra.mtls.thriftmux.Mtls +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule +import com.ExTwitter.finatra.thrift.filters.{ AccessLoggingFilter, LoggingMDCFilter, StatsFilter, ThriftMDCFilter, TraceIdMDCFilter } -import com.twitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.finatra.thrift.routing.ThriftRouter /** * This class provides most of the configuration needed for logging, stats, deciders etc. diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/Exceptions.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/Exceptions.scala index 60c585e33..56e783166 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/Exceptions.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/Exceptions.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common -import com.twitter.ann.common.thriftscala.BadRequest -import com.twitter.mediaservices.commons._ +import com.ExTwitter.ann.common.thriftscala.BadRequest +import com.ExTwitter.mediaservices.commons._ object RuntimeExceptionTransform extends ExceptionTransformer { override def transform = { diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/FaissIndexPathProvider.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/FaissIndexPathProvider.scala index 0286023c7..93a6b928a 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/FaissIndexPathProvider.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/FaissIndexPathProvider.scala @@ -1,8 +1,8 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.logging.Logger -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.search.common.file.AbstractFile case class FaissIndexPathProvider( override val minIndexSizeBytes: Long, diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/IndexPathProvider.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/IndexPathProvider.scala index b6193b90a..efed223b1 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/IndexPathProvider.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/IndexPathProvider.scala @@ -1,13 +1,13 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common -import com.twitter.ann.common.IndexOutputFile -import com.twitter.ann.hnsw.HnswCommon._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.logging.Logger -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.AbstractFile.Filter -import com.twitter.search.common.file.PathUtils -import com.twitter.util.Try +import com.ExTwitter.ann.common.IndexOutputFile +import com.ExTwitter.ann.hnsw.HnswCommon._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.AbstractFile.Filter +import com.ExTwitter.search.common.file.PathUtils +import com.ExTwitter.util.Try import java.io.IOException import java.util.concurrent.atomic.AtomicReference import scala.collection.JavaConverters._ diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryIndexThriftController.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryIndexThriftController.scala index 4a1050019..77737ae57 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryIndexThriftController.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryIndexThriftController.scala @@ -1,18 +1,18 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common -import com.twitter.ann.common._ -import com.twitter.ann.common.EmbeddingType._ -import com.twitter.ann.common.thriftscala.AnnQueryService.Query -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.ann.common.thriftscala.NearestNeighbor -import com.twitter.ann.common.thriftscala.NearestNeighborResult -import com.twitter.ann.common.thriftscala.{Distance => ServiceDistance} -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.bijection.Injection -import com.twitter.finagle.Service -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.thrift.Controller -import com.twitter.mediaservices.commons.{ThriftServer => TServer} +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.EmbeddingType._ +import com.ExTwitter.ann.common.thriftscala.AnnQueryService.Query +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.ann.common.thriftscala.NearestNeighbor +import com.ExTwitter.ann.common.thriftscala.NearestNeighborResult +import com.ExTwitter.ann.common.thriftscala.{Distance => ServiceDistance} +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.finagle.Service +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.thrift.Controller +import com.ExTwitter.mediaservices.commons.{ThriftServer => TServer} import java.nio.ByteBuffer import javax.inject.Inject diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryServerUtil.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryServerUtil.scala index 5aef64a54..8121cfc70 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryServerUtil.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryServerUtil.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common -import com.twitter.logging.Logger -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.logging.Logger +import com.ExTwitter.search.common.file.AbstractFile import scala.collection.JavaConverters._ object QueryServerUtil { diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryableProvider.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryableProvider.scala index 0c579c591..93bbb3bc9 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryableProvider.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/QueryableProvider.scala @@ -1,7 +1,7 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common -import com.twitter.ann.common.{Distance, Queryable, RuntimeParams} -import com.twitter.search.common.file.AbstractFile +import com.ExTwitter.ann.common.{Distance, Queryable, RuntimeParams} +import com.ExTwitter.search.common.file.AbstractFile trait QueryableProvider[T, P <: RuntimeParams, D <: Distance[D]] { def provideQueryable(indexDir: AbstractFile): Queryable[T, P, D] diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/RefreshableQueryable.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/RefreshableQueryable.scala index 1ce301c5e..56e734772 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/RefreshableQueryable.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/RefreshableQueryable.scala @@ -1,19 +1,19 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common import com.google.common.annotations.VisibleForTesting import com.google.common.util.concurrent.ThreadFactoryBuilder -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ann.common.Distance -import com.twitter.ann.common.NeighborWithDistance -import com.twitter.ann.common.Queryable -import com.twitter.ann.common.QueryableGrouped -import com.twitter.ann.common.RuntimeParams -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.logging.Logger -import com.twitter.search.common.file.AbstractFile -import com.twitter.util.Duration -import com.twitter.util.Future +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.NeighborWithDistance +import com.ExTwitter.ann.common.Queryable +import com.ExTwitter.ann.common.QueryableGrouped +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future import java.util.concurrent.atomic.AtomicReference import java.util.concurrent.Executors import java.util.concurrent.TimeUnit diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/UnsafeQueryIndexServer.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/UnsafeQueryIndexServer.scala index a50dd53e6..2f0830a49 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/UnsafeQueryIndexServer.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/UnsafeQueryIndexServer.scala @@ -1,14 +1,14 @@ -package com.twitter.ann.service.query_server.common +package com.ExTwitter.ann.service.query_server.common import com.google.common.util.concurrent.MoreExecutors import com.google.inject.Module -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.{Distance => ServiceDistance} -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.app.Flag -import com.twitter.bijection.Injection -import com.twitter.cortex.ml.embeddings.common.EntityKind -import com.twitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.{Distance => ServiceDistance} +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.app.Flag +import com.ExTwitter.bijection.Injection +import com.ExTwitter.cortex.ml.embeddings.common.EntityKind +import com.ExTwitter.finatra.thrift.routing.ThriftRouter import java.util.concurrent.ExecutorService import java.util.concurrent.Executors import java.util.concurrent.ThreadPoolExecutor diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/AuroraCPUStatsReader.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/AuroraCPUStatsReader.scala index 5b461ca1d..4033389d8 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/AuroraCPUStatsReader.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/AuroraCPUStatsReader.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.service.query_server.common.throttling +package com.ExTwitter.ann.service.query_server.common.throttling -import com.twitter.server.filter.CgroupsCpu +import com.ExTwitter.server.filter.CgroupsCpu class AuroraCPUStatsReader() { diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/BUILD b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/BUILD index 5d0776d7a..a03a9007f 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/BUILD +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/BUILD @@ -3,10 +3,10 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/hnsw", - "twitter-server-internal/src/main/scala", - "util/util-stats/src/main/scala/com/twitter/finagle/stats", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ExTwitter-server-internal/src/main/scala", + "util/util-stats/src/main/scala/com/ExTwitter/finagle/stats", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/ThrottlingBasedQualityTask.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/ThrottlingBasedQualityTask.scala index 35d893f8d..d89947fbe 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/ThrottlingBasedQualityTask.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/ThrottlingBasedQualityTask.scala @@ -1,15 +1,15 @@ -package com.twitter.ann.service.query_server.common.throttling +package com.ExTwitter.ann.service.query_server.common.throttling -import com.twitter.ann.common.RuntimeParams -import com.twitter.ann.common.Task -import com.twitter.ann.faiss.FaissParams -import com.twitter.ann.hnsw.HnswParams -import com.twitter.ann.service.query_server.common.throttling.ThrottlingBasedQualityTask.SAMPLING_INTERVAL -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.RuntimeParams +import com.ExTwitter.ann.common.Task +import com.ExTwitter.ann.faiss.FaissParams +import com.ExTwitter.ann.hnsw.HnswParams +import com.ExTwitter.ann.service.query_server.common.throttling.ThrottlingBasedQualityTask.SAMPLING_INTERVAL +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.logging.Logging object ThrottlingBasedQualityTask { private[throttling] val SAMPLING_INTERVAL = 100.milliseconds diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedStats.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedStats.scala index 71971574e..a8ed3cbf4 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedStats.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedStats.scala @@ -1,4 +1,4 @@ -package com.twitter.ann.service.query_server.common.throttling +package com.ExTwitter.ann.service.query_server.common.throttling /** * A simple ring buffer that keeps track of long values over `window`. diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedThrottlingInstrument.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedThrottlingInstrument.scala index 59ec936e9..d1fc0403d 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedThrottlingInstrument.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling/WindowedThrottlingInstrument.scala @@ -1,6 +1,6 @@ -package com.twitter.ann.service.query_server.common.throttling +package com.ExTwitter.ann.service.query_server.common.throttling -import com.twitter.util.Duration +import com.ExTwitter.util.Duration trait ThrottlingInstrument { def sample(): Unit diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/BUILD b/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/BUILD index 84706056b..dc1f86826 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/BUILD +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/BUILD @@ -3,8 +3,8 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/common", "util/util-core:scala", - "util/util-slf4j-api/src/main/scala/com/twitter/util/logging", + "util/util-slf4j-api/src/main/scala/com/ExTwitter/util/logging", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/Warmup.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/Warmup.scala index 349bc262e..8b0ce1dc3 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/Warmup.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup/Warmup.scala @@ -1,14 +1,14 @@ -package com.twitter.ann.service.query_server.common.warmup +package com.ExTwitter.ann.service.query_server.common.warmup -import com.twitter.ann.common.EmbeddingType.EmbeddingVector -import com.twitter.ml.api.embedding.Embedding -import com.twitter.util.Await -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.ann.common.EmbeddingType.EmbeddingVector +import com.ExTwitter.ml.api.embedding.Embedding +import com.ExTwitter.util.Await +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging import scala.annotation.tailrec import scala.util.Random diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/BUILD b/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/BUILD index ffdb2eb9c..afe6da375 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/BUILD +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/BUILD @@ -4,20 +4,20 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/java/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/faiss", - "ann/src/main/scala/com/twitter/ann/service/query_server/common", - "ann/src/main/scala/com/twitter/ann/service/query_server/common:faiss_index_path_provider", - "ann/src/main/scala/com/twitter/ann/service/query_server/common/throttling", - "ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup", - "src/java/com/twitter/search/common/file", + "ann/src/main/java/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/faiss", + "ann/src/main/scala/com/ExTwitter/ann/service/query_server/common", + "ann/src/main/scala/com/ExTwitter/ann/service/query_server/common:faiss_index_path_provider", + "ann/src/main/scala/com/ExTwitter/ann/service/query_server/common/throttling", + "ann/src/main/scala/com/ExTwitter/ann/service/query_server/common/warmup", + "src/java/com/ExTwitter/search/common/file", ], ) jvm_binary( name = "faiss-query-server", - main = "com.twitter.ann.service.query_server.faiss.FaissQueryIndexServer", + main = "com.ExTwitter.ann.service.query_server.faiss.FaissQueryIndexServer", compiler_option_sets = ["fatal_warnings"], runtime_platform = "java11", tags = ["bazel-compatible"], @@ -28,6 +28,6 @@ jvm_binary( "3rdparty/jvm/org/slf4j:jul-to-slf4j", "3rdparty/jvm/org/slf4j:log4j-over-slf4j", "ann/src/main/resources", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/FaissQueryIndexServer.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/FaissQueryIndexServer.scala index 3ca46f8e4..013037a10 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/FaissQueryIndexServer.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/faiss/FaissQueryIndexServer.scala @@ -1,24 +1,24 @@ -package com.twitter.ann.service.query_server.faiss +package com.ExTwitter.ann.service.query_server.faiss -import com.twitter.ann.common.Distance -import com.twitter.ann.common.QueryableOperations.Map -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.ann.faiss.FaissCommon -import com.twitter.ann.faiss.FaissIndex -import com.twitter.ann.faiss.FaissParams -import com.twitter.ann.faiss.HourlyShardedIndex -import com.twitter.ann.service.query_server.common.QueryableProvider -import com.twitter.ann.service.query_server.common.RefreshableQueryable -import com.twitter.ann.service.query_server.common.UnsafeQueryIndexServer -import com.twitter.ann.service.query_server.common.FaissIndexPathProvider -import com.twitter.ann.service.query_server.common.throttling.ThrottlingBasedQualityTask -import com.twitter.ann.service.query_server.common.warmup.Warmup -import com.twitter.bijection.Injection -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.util.Duration +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common.QueryableOperations.Map +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.ann.faiss.FaissCommon +import com.ExTwitter.ann.faiss.FaissIndex +import com.ExTwitter.ann.faiss.FaissParams +import com.ExTwitter.ann.faiss.HourlyShardedIndex +import com.ExTwitter.ann.service.query_server.common.QueryableProvider +import com.ExTwitter.ann.service.query_server.common.RefreshableQueryable +import com.ExTwitter.ann.service.query_server.common.UnsafeQueryIndexServer +import com.ExTwitter.ann.service.query_server.common.FaissIndexPathProvider +import com.ExTwitter.ann.service.query_server.common.throttling.ThrottlingBasedQualityTask +import com.ExTwitter.ann.service.query_server.common.warmup.Warmup +import com.ExTwitter.bijection.Injection +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.Duration import java.util.concurrent.TimeUnit object FaissQueryIndexServer extends FaissQueryableServer diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/BUILD b/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/BUILD index a67bf445d..6697c363d 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/BUILD +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/BUILD @@ -4,17 +4,17 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/common", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/scala/com/twitter/ann/service/query_server/common", - "ann/src/main/scala/com/twitter/ann/service/query_server/common/warmup", - "src/java/com/twitter/search/common/file", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/scala/com/ExTwitter/ann/service/query_server/common", + "ann/src/main/scala/com/ExTwitter/ann/service/query_server/common/warmup", + "src/java/com/ExTwitter/search/common/file", ], ) jvm_binary( name = "hnsw-query-server", - main = "com.twitter.ann.service.query_server.hnsw.HnswQueryIndexServer", + main = "com.ExTwitter.ann.service.query_server.hnsw.HnswQueryIndexServer", compiler_option_sets = ["fatal_warnings"], runtime_platform = "java11", tags = [ @@ -27,6 +27,6 @@ jvm_binary( "3rdparty/jvm/org/slf4j:jul-to-slf4j", "3rdparty/jvm/org/slf4j:log4j-over-slf4j", "ann/src/main/resources", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/HnswQueryIndexServer.scala b/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/HnswQueryIndexServer.scala index 3c0efde40..a777953ff 100644 --- a/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/HnswQueryIndexServer.scala +++ b/ann/src/main/scala/com/twitter/ann/service/query_server/hnsw/HnswQueryIndexServer.scala @@ -1,22 +1,22 @@ -package com.twitter.ann.service.query_server.hnsw +package com.ExTwitter.ann.service.query_server.hnsw -import com.twitter.ann.common.Distance -import com.twitter.ann.common._ -import com.twitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} -import com.twitter.ann.hnsw.HnswCommon -import com.twitter.ann.hnsw.HnswParams -import com.twitter.ann.hnsw.TypedHnswIndex -import com.twitter.ann.service.query_server.common.QueryableProvider -import com.twitter.ann.service.query_server.common.RefreshableQueryable -import com.twitter.ann.service.query_server.common.UnsafeQueryIndexServer -import com.twitter.ann.service.query_server.common.ValidatedIndexPathProvider -import com.twitter.ann.service.query_server.common.warmup.Warmup -import com.twitter.bijection.Injection -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.search.common.file.AbstractFile -import com.twitter.search.common.file.FileUtils -import com.twitter.util.Duration -import com.twitter.util.FuturePool +import com.ExTwitter.ann.common.Distance +import com.ExTwitter.ann.common._ +import com.ExTwitter.ann.common.thriftscala.{RuntimeParams => ServiceRuntimeParams} +import com.ExTwitter.ann.hnsw.HnswCommon +import com.ExTwitter.ann.hnsw.HnswParams +import com.ExTwitter.ann.hnsw.TypedHnswIndex +import com.ExTwitter.ann.service.query_server.common.QueryableProvider +import com.ExTwitter.ann.service.query_server.common.RefreshableQueryable +import com.ExTwitter.ann.service.query_server.common.UnsafeQueryIndexServer +import com.ExTwitter.ann.service.query_server.common.ValidatedIndexPathProvider +import com.ExTwitter.ann.service.query_server.common.warmup.Warmup +import com.ExTwitter.bijection.Injection +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.search.common.file.AbstractFile +import com.ExTwitter.search.common.file.FileUtils +import com.ExTwitter.util.Duration +import com.ExTwitter.util.FuturePool // Creating a separate hnsw query server object, since unit test require non singleton server. object HnswQueryIndexServer extends HnswQueryableServer diff --git a/ann/src/main/scala/com/twitter/ann/util/BUILD b/ann/src/main/scala/com/twitter/ann/util/BUILD index 6635d2333..fa61c8991 100644 --- a/ann/src/main/scala/com/twitter/ann/util/BUILD +++ b/ann/src/main/scala/com/twitter/ann/util/BUILD @@ -3,7 +3,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "ann/src/main/scala/com/twitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/common", "util/util-logging", ], ) diff --git a/ann/src/main/scala/com/twitter/ann/util/IndexBuilderUtils.scala b/ann/src/main/scala/com/twitter/ann/util/IndexBuilderUtils.scala index b0245f48a..ef96cfb36 100644 --- a/ann/src/main/scala/com/twitter/ann/util/IndexBuilderUtils.scala +++ b/ann/src/main/scala/com/twitter/ann/util/IndexBuilderUtils.scala @@ -1,9 +1,9 @@ -package com.twitter.ann.util +package com.ExTwitter.ann.util -import com.twitter.ann.common.{Appendable, EntityEmbedding} -import com.twitter.concurrent.AsyncStream -import com.twitter.logging.Logger -import com.twitter.util.Future +import com.ExTwitter.ann.common.{Appendable, EntityEmbedding} +import com.ExTwitter.concurrent.AsyncStream +import com.ExTwitter.logging.Logger +import com.ExTwitter.util.Future import java.util.concurrent.atomic.AtomicInteger object IndexBuilderUtils { diff --git a/ann/src/main/thrift/com/twitter/ann/common/BUILD b/ann/src/main/thrift/com/twitter/ann/common/BUILD index 5a0b1897c..0c63be7e6 100644 --- a/ann/src/main/thrift/com/twitter/ann/common/BUILD +++ b/ann/src/main/thrift/com/twitter/ann/common/BUILD @@ -5,7 +5,7 @@ create_thrift_libraries( tags = ["bazel-compatible"], dependency_roots = [ "mediaservices/commons/src/main/thrift", - "src/thrift/com/twitter/ml/api:embedding", + "src/thrift/com/ExTwitter/ml/api:embedding", ], generate_languages = [ "java", diff --git a/ann/src/main/thrift/com/twitter/ann/common/ann_common.thrift b/ann/src/main/thrift/com/twitter/ann/common/ann_common.thrift index b39629f18..6b75c2ca4 100644 --- a/ann/src/main/thrift/com/twitter/ann/common/ann_common.thrift +++ b/ann/src/main/thrift/com/twitter/ann/common/ann_common.thrift @@ -1,10 +1,10 @@ -namespace java com.twitter.ann.common.thriftjava -#@namespace scala com.twitter.ann.common.thriftscala -#@namespace strato com.twitter.ann.common -namespace py gen.twitter.ann.common +namespace java com.ExTwitter.ann.common.thriftjava +#@namespace scala com.ExTwitter.ann.common.thriftscala +#@namespace strato com.ExTwitter.ann.common +namespace py gen.ExTwitter.ann.common -include "com/twitter/mediaservices/commons/ServerCommon.thrift" -include "com/twitter/ml/api/embedding.thrift" +include "com/ExTwitter/mediaservices/commons/ServerCommon.thrift" +include "com/ExTwitter/ml/api/embedding.thrift" /** * Thrift schema for storing file based Index mapping diff --git a/ann/src/main/thrift/com/twitter/ann/knn/BUILD b/ann/src/main/thrift/com/twitter/ann/knn/BUILD index 5c7c1c784..c3fec2ea5 100644 --- a/ann/src/main/thrift/com/twitter/ann/knn/BUILD +++ b/ann/src/main/thrift/com/twitter/ann/knn/BUILD @@ -3,7 +3,7 @@ create_thrift_libraries( sources = ["*.thrift"], platform = "java8", tags = ["bazel-compatible"], - dependency_roots = ["src/thrift/com/twitter/ml/featurestore:ml-feature-store"], + dependency_roots = ["src/thrift/com/ExTwitter/ml/featurestore:ml-feature-store"], generate_languages = [ "java", "scala", diff --git a/ann/src/main/thrift/com/twitter/ann/knn/knn.thrift b/ann/src/main/thrift/com/twitter/ann/knn/knn.thrift index bf4aba184..95f1e735c 100644 --- a/ann/src/main/thrift/com/twitter/ann/knn/knn.thrift +++ b/ann/src/main/thrift/com/twitter/ann/knn/knn.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.ann.knn.thriftjava -#@namespace scala com.twitter.ann.knn.thriftscala -namespace py gen.twitter.ann.knn +namespace java com.ExTwitter.ann.knn.thriftjava +#@namespace scala com.ExTwitter.ann.knn.thriftscala +namespace py gen.ExTwitter.ann.knn -include "com/twitter/ml/featurestore/entity.thrift" +include "com/ExTwitter/ml/featurestore/entity.thrift" struct Neighbor { 1: required double distance diff --git a/ann/src/main/thrift/com/twitter/ann/serialization/BUILD b/ann/src/main/thrift/com/twitter/ann/serialization/BUILD index aa3539532..812767058 100644 --- a/ann/src/main/thrift/com/twitter/ann/serialization/BUILD +++ b/ann/src/main/thrift/com/twitter/ann/serialization/BUILD @@ -4,7 +4,7 @@ create_thrift_libraries( platform = "java8", tags = ["bazel-compatible"], dependency_roots = [ - "src/thrift/com/twitter/ml/api:embedding", + "src/thrift/com/ExTwitter/ml/api:embedding", ], generate_languages = [ "java", diff --git a/ann/src/main/thrift/com/twitter/ann/serialization/serialization.thrift b/ann/src/main/thrift/com/twitter/ann/serialization/serialization.thrift index fcfa47a56..724b1fc7d 100644 --- a/ann/src/main/thrift/com/twitter/ann/serialization/serialization.thrift +++ b/ann/src/main/thrift/com/twitter/ann/serialization/serialization.thrift @@ -1,6 +1,6 @@ -#@namespace scala com.twitter.ann.serialization.thriftscala +#@namespace scala com.ExTwitter.ann.serialization.thriftscala -include "com/twitter/ml/api/embedding.thrift" +include "com/ExTwitter/ml/api/embedding.thrift" /** * Thrift schema for storing embeddings in a file */ diff --git a/cr-mixer/BUILD.bazel b/cr-mixer/BUILD.bazel index 75890d133..d49fabb99 100644 --- a/cr-mixer/BUILD.bazel +++ b/cr-mixer/BUILD.bazel @@ -1,17 +1,17 @@ jvm_binary( name = "bin", basename = "cr-mixer", - main = "com.twitter.cr_mixer.CrMixerServerMain", + main = "com.ExTwitter.cr_mixer.CrMixerServerMain", runtime_platform = "java11", tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/ch/qos/logback:logback-classic", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer", "finagle/finagle-zipkin-scribe/src/main/scala", "finatra/inject/inject-logback/src/main/scala", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", - "twitter-server-internal/src/main/scala", - "twitter-server/logback-classic/src/main/scala", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", + "ExTwitter-server-internal/src/main/scala", + "ExTwitter-server/logback-classic/src/main/scala", ], ) diff --git a/cr-mixer/README.md b/cr-mixer/README.md index 0037f7e69..d6d2507ff 100644 --- a/cr-mixer/README.md +++ b/cr-mixer/README.md @@ -1,6 +1,6 @@ # CR-Mixer -CR-Mixer is a candidate generation service proposed as part of the Personalization Strategy vision for Twitter. Its aim is to speed up the iteration and development of candidate generation and light ranking. The service acts as a lightweight coordinating layer that delegates candidate generation tasks to underlying compute services. It focuses on Twitter's candidate generation use cases and offers a centralized platform for fetching, mixing, and managing candidate sources and light rankers. The overarching goal is to increase the speed and ease of testing and developing candidate generation pipelines, ultimately delivering more value to Twitter users. +CR-Mixer is a candidate generation service proposed as part of the Personalization Strategy vision for ExTwitter. Its aim is to speed up the iteration and development of candidate generation and light ranking. The service acts as a lightweight coordinating layer that delegates candidate generation tasks to underlying compute services. It focuses on ExTwitter's candidate generation use cases and offers a centralized platform for fetching, mixing, and managing candidate sources and light rankers. The overarching goal is to increase the speed and ease of testing and developing candidate generation pipelines, ultimately delivering more value to ExTwitter users. CR-Mixer acts as a configurator and delegator, providing abstractions for the challenging parts of candidate generation and handling performance issues. It will offer a 1-stop-shop for fetching and mixing candidate sources, a managed and shared performant platform, a light ranking layer, a common filtering layer, a version control system, a co-owned feature switch set, and peripheral tooling. diff --git a/cr-mixer/server/src/main/resources/config/decider.yml b/cr-mixer/server/src/main/resources/config/decider.yml index a0d55b9b4..8ea94a13a 100644 --- a/cr-mixer/server/src/main/resources/config/decider.yml +++ b/cr-mixer/server/src/main/resources/config/decider.yml @@ -1,5 +1,5 @@ # The keys in this file correspond to the DeciderValues defined in -# https://sourcegraph.twitter.biz/git.twitter.biz/source/-/blob/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/DeciderKey.scala +# https://sourcegraph.ExTwitter.biz/git.ExTwitter.biz/source/-/blob/cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider/DeciderKey.scala dark_traffic_filter: comment: Proportion of the requests that are forwarded as dark traffic to the proxy diff --git a/cr-mixer/server/src/main/resources/logback.xml b/cr-mixer/server/src/main/resources/logback.xml index 24e7fd57e..58958197a 100644 --- a/cr-mixer/server/src/main/resources/logback.xml +++ b/cr-mixer/server/src/main/resources/logback.xml @@ -56,7 +56,7 @@ - + true ${log.lens.category} ${log.lens.index} @@ -67,7 +67,7 @@ - + true ${log.lens.category} ${log.lens.index} @@ -99,31 +99,31 @@ - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} @@ -134,13 +134,13 @@ - - - - - - - + + + + + + + @@ -151,7 +151,7 @@ - @@ -159,7 +159,7 @@ - diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/BUILD.bazel b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/BUILD.bazel index 533a86c1f..f331eae95 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/BUILD.bazel +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/BUILD.bazel @@ -9,14 +9,14 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "cr-mixer/server/src/main/resources", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/candidate_generation", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/controller", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/featureswitch", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/logging", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/module", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/scribe", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/similarity_engine", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", "finagle/finagle-core/src/main", @@ -24,23 +24,23 @@ scala_library( "finagle/finagle-thriftmux/src/main/scala", "finatra-internal/mtls-http/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", - "finatra/http-core/src/main/java/com/twitter/finatra/http", + "finatra/http-core/src/main/java/com/ExTwitter/finatra/http", "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-server/src/main/scala", "finatra/inject/inject-utils/src/main/scala", - "finatra/utils/src/main/java/com/twitter/finatra/annotations", - "hydra/common/libraries/src/main/scala/com/twitter/hydra/common/model_config", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/controllers", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "relevance-platform/src/main/scala/com/twitter/relevance_platform/common/filters", - "src/thrift/com/twitter/timelines/render:thrift-scala", - "thrift-web-forms/src/main/scala/com/twitter/thriftwebforms", - "thrift-web-forms/src/main/scala/com/twitter/thriftwebforms/view", - "timelines/src/main/scala/com/twitter/timelines/features/app", - "twitter-server-internal", - "twitter-server/server/src/main/scala", + "finatra/utils/src/main/java/com/ExTwitter/finatra/annotations", + "hydra/common/libraries/src/main/scala/com/ExTwitter/hydra/common/model_config", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/controllers", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "relevance-platform/src/main/scala/com/ExTwitter/relevance_platform/common/filters", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", + "thrift-web-forms/src/main/scala/com/ExTwitter/thriftwebforms", + "thrift-web-forms/src/main/scala/com/ExTwitter/thriftwebforms/view", + "timelines/src/main/scala/com/ExTwitter/timelines/features/app", + "ExTwitter-server-internal", + "ExTwitter-server/server/src/main/scala", "util/util-app/src/main/scala", "util/util-core:scala", "util/util-slf4j-api/src/main/scala", diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerHttpServerWarmupHandler.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerHttpServerWarmupHandler.scala index 85e302d2a..aa7658c9d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerHttpServerWarmupHandler.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerHttpServerWarmupHandler.scala @@ -1,10 +1,10 @@ -package com.twitter.cr_mixer +package com.ExTwitter.cr_mixer -import com.twitter.finatra.http.routing.HttpWarmup -import com.twitter.finatra.httpclient.RequestBuilder._ -import com.twitter.inject.Logging -import com.twitter.inject.utils.Handler -import com.twitter.util.Try +import com.ExTwitter.finatra.http.routing.HttpWarmup +import com.ExTwitter.finatra.httpclient.RequestBuilder._ +import com.ExTwitter.inject.Logging +import com.ExTwitter.inject.utils.Handler +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerServer.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerServer.scala index 887aab83f..26be55006 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerServer.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerServer.scala @@ -1,102 +1,102 @@ -package com.twitter.cr_mixer +package com.ExTwitter.cr_mixer import com.google.inject.Module -import com.twitter.cr_mixer.controller.CrMixerThriftController -import com.twitter.cr_mixer.featureswitch.SetImpressedBucketsLocalContextFilter -import com.twitter.cr_mixer.module.ActivePromotedTweetStoreModule -import com.twitter.cr_mixer.module.CertoStratoStoreModule -import com.twitter.cr_mixer.module.CrMixerParamConfigModule -import com.twitter.cr_mixer.module.EmbeddingStoreModule -import com.twitter.cr_mixer.module.FrsStoreModule -import com.twitter.cr_mixer.module.MHMtlsParamsModule -import com.twitter.cr_mixer.module.OfflineCandidateStoreModule -import com.twitter.cr_mixer.module.RealGraphStoreMhModule -import com.twitter.cr_mixer.module.RealGraphOonStoreModule -import com.twitter.cr_mixer.module.RepresentationManagerModule -import com.twitter.cr_mixer.module.RepresentationScorerModule -import com.twitter.cr_mixer.module.TweetInfoStoreModule -import com.twitter.cr_mixer.module.TweetRecentEngagedUserStoreModule -import com.twitter.cr_mixer.module.TweetRecommendationResultsStoreModule -import com.twitter.cr_mixer.module.TripCandidateStoreModule -import com.twitter.cr_mixer.module.TwhinCollabFilterStratoStoreModule -import com.twitter.cr_mixer.module.UserSignalServiceColumnModule -import com.twitter.cr_mixer.module.UserSignalServiceStoreModule -import com.twitter.cr_mixer.module.UserStateStoreModule -import com.twitter.cr_mixer.module.core.ABDeciderModule -import com.twitter.cr_mixer.module.core.CrMixerFlagModule -import com.twitter.cr_mixer.module.core.CrMixerLoggingABDeciderModule -import com.twitter.cr_mixer.module.core.FeatureContextBuilderModule -import com.twitter.cr_mixer.module.core.FeatureSwitchesModule -import com.twitter.cr_mixer.module.core.KafkaProducerModule -import com.twitter.cr_mixer.module.core.LoggerFactoryModule -import com.twitter.cr_mixer.module.similarity_engine.ConsumerEmbeddingBasedTripSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ConsumerEmbeddingBasedTwHINSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ConsumersBasedUserAdGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ConsumersBasedUserVideoGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ProducerBasedUserAdGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ProducerBasedUserTweetGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ProducerBasedUnifiedSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.SimClustersANNSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TweetBasedUnifiedSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TweetBasedQigSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TweetBasedTwHINSimlarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TweetBasedUserAdGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TweetBasedUserTweetGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TweetBasedUserVideoGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.TwhinCollabFilterLookupSimilarityEngineModule -import com.twitter.cr_mixer.module.ConsumersBasedUserAdGraphStoreModule -import com.twitter.cr_mixer.module.ConsumersBasedUserTweetGraphStoreModule -import com.twitter.cr_mixer.module.ConsumersBasedUserVideoGraphStoreModule -import com.twitter.cr_mixer.module.DiffusionStoreModule -import com.twitter.cr_mixer.module.EarlybirdRecencyBasedCandidateStoreModule -import com.twitter.cr_mixer.module.TwiceClustersMembersStoreModule -import com.twitter.cr_mixer.module.StrongTiePredictionStoreModule -import com.twitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule -import com.twitter.cr_mixer.module.thrift_client.EarlybirdSearchClientModule -import com.twitter.cr_mixer.module.thrift_client.FrsClientModule -import com.twitter.cr_mixer.module.thrift_client.QigServiceClientModule -import com.twitter.cr_mixer.module.thrift_client.SimClustersAnnServiceClientModule -import com.twitter.cr_mixer.module.thrift_client.TweetyPieClientModule -import com.twitter.cr_mixer.module.thrift_client.UserTweetGraphClientModule -import com.twitter.cr_mixer.module.thrift_client.UserTweetGraphPlusClientModule -import com.twitter.cr_mixer.module.thrift_client.UserVideoGraphClientModule -import com.twitter.cr_mixer.{thriftscala => st} -import com.twitter.finagle.Filter -import com.twitter.finatra.annotations.DarkTrafficFilterType -import com.twitter.finatra.decider.modules.DeciderModule -import com.twitter.finatra.http.HttpServer -import com.twitter.finatra.http.routing.HttpRouter -import com.twitter.finatra.jackson.modules.ScalaObjectMapperModule -import com.twitter.finatra.mtls.http.{Mtls => HttpMtls} -import com.twitter.finatra.mtls.thriftmux.Mtls -import com.twitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule -import com.twitter.finatra.thrift.ThriftServer -import com.twitter.finatra.thrift.filters._ -import com.twitter.finatra.thrift.routing.ThriftRouter -import com.twitter.hydra.common.model_config.{ConfigModule => HydraConfigModule} -import com.twitter.inject.thrift.modules.ThriftClientIdModule -import com.twitter.product_mixer.core.module.LoggingThrowableExceptionMapper -import com.twitter.product_mixer.core.module.StratoClientModule -import com.twitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule -import com.twitter.relevance_platform.common.filters.ClientStatsFilter -import com.twitter.relevance_platform.common.filters.DarkTrafficFilterModule -import com.twitter.cr_mixer.module.SimClustersANNServiceNameToClientMapper -import com.twitter.cr_mixer.module.SkitStratoStoreModule -import com.twitter.cr_mixer.module.BlueVerifiedAnnotationStoreModule -import com.twitter.cr_mixer.module.core.TimeoutConfigModule -import com.twitter.cr_mixer.module.grpc_client.NaviGRPCClientModule -import com.twitter.cr_mixer.module.similarity_engine.CertoTopicTweetSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.ConsumerBasedWalsSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.DiffusionBasedSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.EarlybirdSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.SkitTopicTweetSimilarityEngineModule -import com.twitter.cr_mixer.module.similarity_engine.UserTweetEntityGraphSimilarityEngineModule -import com.twitter.cr_mixer.module.thrift_client.HydraPartitionClientModule -import com.twitter.cr_mixer.module.thrift_client.HydraRootClientModule -import com.twitter.cr_mixer.module.thrift_client.UserAdGraphClientModule -import com.twitter.cr_mixer.module.thrift_client.UserTweetEntityGraphClientModule -import com.twitter.thriftwebforms.MethodOptions +import com.ExTwitter.cr_mixer.controller.CrMixerThriftController +import com.ExTwitter.cr_mixer.featureswitch.SetImpressedBucketsLocalContextFilter +import com.ExTwitter.cr_mixer.module.ActivePromotedTweetStoreModule +import com.ExTwitter.cr_mixer.module.CertoStratoStoreModule +import com.ExTwitter.cr_mixer.module.CrMixerParamConfigModule +import com.ExTwitter.cr_mixer.module.EmbeddingStoreModule +import com.ExTwitter.cr_mixer.module.FrsStoreModule +import com.ExTwitter.cr_mixer.module.MHMtlsParamsModule +import com.ExTwitter.cr_mixer.module.OfflineCandidateStoreModule +import com.ExTwitter.cr_mixer.module.RealGraphStoreMhModule +import com.ExTwitter.cr_mixer.module.RealGraphOonStoreModule +import com.ExTwitter.cr_mixer.module.RepresentationManagerModule +import com.ExTwitter.cr_mixer.module.RepresentationScorerModule +import com.ExTwitter.cr_mixer.module.TweetInfoStoreModule +import com.ExTwitter.cr_mixer.module.TweetRecentEngagedUserStoreModule +import com.ExTwitter.cr_mixer.module.TweetRecommendationResultsStoreModule +import com.ExTwitter.cr_mixer.module.TripCandidateStoreModule +import com.ExTwitter.cr_mixer.module.TwhinCollabFilterStratoStoreModule +import com.ExTwitter.cr_mixer.module.UserSignalServiceColumnModule +import com.ExTwitter.cr_mixer.module.UserSignalServiceStoreModule +import com.ExTwitter.cr_mixer.module.UserStateStoreModule +import com.ExTwitter.cr_mixer.module.core.ABDeciderModule +import com.ExTwitter.cr_mixer.module.core.CrMixerFlagModule +import com.ExTwitter.cr_mixer.module.core.CrMixerLoggingABDeciderModule +import com.ExTwitter.cr_mixer.module.core.FeatureContextBuilderModule +import com.ExTwitter.cr_mixer.module.core.FeatureSwitchesModule +import com.ExTwitter.cr_mixer.module.core.KafkaProducerModule +import com.ExTwitter.cr_mixer.module.core.LoggerFactoryModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ConsumerEmbeddingBasedTripSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ConsumerEmbeddingBasedTwHINSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ConsumersBasedUserAdGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ConsumersBasedUserVideoGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ProducerBasedUserAdGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ProducerBasedUserTweetGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ProducerBasedUnifiedSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.SimClustersANNSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TweetBasedUnifiedSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TweetBasedQigSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TweetBasedTwHINSimlarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TweetBasedUserAdGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TweetBasedUserTweetGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TweetBasedUserVideoGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.TwhinCollabFilterLookupSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.ConsumersBasedUserAdGraphStoreModule +import com.ExTwitter.cr_mixer.module.ConsumersBasedUserTweetGraphStoreModule +import com.ExTwitter.cr_mixer.module.ConsumersBasedUserVideoGraphStoreModule +import com.ExTwitter.cr_mixer.module.DiffusionStoreModule +import com.ExTwitter.cr_mixer.module.EarlybirdRecencyBasedCandidateStoreModule +import com.ExTwitter.cr_mixer.module.TwiceClustersMembersStoreModule +import com.ExTwitter.cr_mixer.module.StrongTiePredictionStoreModule +import com.ExTwitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.EarlybirdSearchClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.FrsClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.QigServiceClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.SimClustersAnnServiceClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.TweetyPieClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.UserTweetGraphClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.UserTweetGraphPlusClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.UserVideoGraphClientModule +import com.ExTwitter.cr_mixer.{thriftscala => st} +import com.ExTwitter.finagle.Filter +import com.ExTwitter.finatra.annotations.DarkTrafficFilterType +import com.ExTwitter.finatra.decider.modules.DeciderModule +import com.ExTwitter.finatra.http.HttpServer +import com.ExTwitter.finatra.http.routing.HttpRouter +import com.ExTwitter.finatra.jackson.modules.ScalaObjectMapperModule +import com.ExTwitter.finatra.mtls.http.{Mtls => HttpMtls} +import com.ExTwitter.finatra.mtls.thriftmux.Mtls +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule +import com.ExTwitter.finatra.thrift.ThriftServer +import com.ExTwitter.finatra.thrift.filters._ +import com.ExTwitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.hydra.common.model_config.{ConfigModule => HydraConfigModule} +import com.ExTwitter.inject.thrift.modules.ThriftClientIdModule +import com.ExTwitter.product_mixer.core.module.LoggingThrowableExceptionMapper +import com.ExTwitter.product_mixer.core.module.StratoClientModule +import com.ExTwitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule +import com.ExTwitter.relevance_platform.common.filters.ClientStatsFilter +import com.ExTwitter.relevance_platform.common.filters.DarkTrafficFilterModule +import com.ExTwitter.cr_mixer.module.SimClustersANNServiceNameToClientMapper +import com.ExTwitter.cr_mixer.module.SkitStratoStoreModule +import com.ExTwitter.cr_mixer.module.BlueVerifiedAnnotationStoreModule +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule +import com.ExTwitter.cr_mixer.module.grpc_client.NaviGRPCClientModule +import com.ExTwitter.cr_mixer.module.similarity_engine.CertoTopicTweetSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.ConsumerBasedWalsSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.DiffusionBasedSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.EarlybirdSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.SkitTopicTweetSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.similarity_engine.UserTweetEntityGraphSimilarityEngineModule +import com.ExTwitter.cr_mixer.module.thrift_client.HydraPartitionClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.HydraRootClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.UserAdGraphClientModule +import com.ExTwitter.cr_mixer.module.thrift_client.UserTweetEntityGraphClientModule +import com.ExTwitter.thriftwebforms.MethodOptions object CrMixerServerMain extends CrMixerServer diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerThriftServerWarmupHandler.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerThriftServerWarmupHandler.scala index 46c46c92b..0546e367d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerThriftServerWarmupHandler.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/CrMixerThriftServerWarmupHandler.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer +package com.ExTwitter.cr_mixer -import com.twitter.finagle.thrift.ClientId -import com.twitter.finatra.thrift.routing.ThriftWarmup -import com.twitter.inject.Logging -import com.twitter.inject.utils.Handler -import com.twitter.product_mixer.core.{thriftscala => pt} -import com.twitter.cr_mixer.{thriftscala => st} -import com.twitter.scrooge.Request -import com.twitter.scrooge.Response -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finatra.thrift.routing.ThriftWarmup +import com.ExTwitter.inject.Logging +import com.ExTwitter.inject.utils.Handler +import com.ExTwitter.product_mixer.core.{thriftscala => pt} +import com.ExTwitter.cr_mixer.{thriftscala => st} +import com.ExTwitter.scrooge.Request +import com.ExTwitter.scrooge.Response +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/AdsBlender.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/AdsBlender.scala index 4e8f0a41d..c25b2a05a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/AdsBlender.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/AdsBlender.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.cr_mixer.model.BlendedAdsCandidate -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.InitialAdsCandidate -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.BlendedAdsCandidate +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.InitialAdsCandidate +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton import scala.collection.mutable diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BUILD index 604e35f99..0c1004443 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BUILD @@ -4,17 +4,17 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:thrift-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BlendedCandidatesBuilder.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BlendedCandidatesBuilder.scala index 1a864a6c2..77ead29e1 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BlendedCandidatesBuilder.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/BlendedCandidatesBuilder.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.simclusters_v2.common.TweetId +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.simclusters_v2.common.TweetId import scala.collection.mutable object BlendedCandidatesBuilder { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/ContentSignalBlender.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/ContentSignalBlender.scala index 9ef81009b..25f443132 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/ContentSignalBlender.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/ContentSignalBlender.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.BlenderParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.BlenderParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Inject case class ContentSignalBlender @Inject() (globalStats: StatsReceiver) { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/CountWeightedInterleaveBlender.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/CountWeightedInterleaveBlender.scala index 4c5dd07c3..c92354b2c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/CountWeightedInterleaveBlender.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/CountWeightedInterleaveBlender.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.BlenderParams -import com.twitter.cr_mixer.util.CountWeightedInterleaveUtil -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.BlenderParams +import com.ExTwitter.cr_mixer.util.CountWeightedInterleaveUtil +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/InterleaveBlender.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/InterleaveBlender.scala index 92cdfe092..d53320b47 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/InterleaveBlender.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/InterleaveBlender.scala @@ -1,10 +1,10 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SourceTypeBackFillBlender.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SourceTypeBackFillBlender.scala index 14e93d53d..cc6b7ca64 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SourceTypeBackFillBlender.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SourceTypeBackFillBlender.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.cr_mixer.blender.ImplicitSignalBackFillBlender.BackFillSourceTypes -import com.twitter.cr_mixer.blender.ImplicitSignalBackFillBlender.BackFillSourceTypesWithVideo -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.BlenderParams -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.blender.ImplicitSignalBackFillBlender.BackFillSourceTypes +import com.ExTwitter.cr_mixer.blender.ImplicitSignalBackFillBlender.BackFillSourceTypesWithVideo +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.BlenderParams +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future import javax.inject.Inject case class SourceTypeBackFillBlender @Inject() (globalStats: StatsReceiver) { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SwitchBlender.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SwitchBlender.scala index 7052a71a5..e81a938ab 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SwitchBlender.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender/SwitchBlender.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.blender +package com.ExTwitter.cr_mixer.blender -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.BlenderParams -import com.twitter.cr_mixer.param.BlenderParams.BlendingAlgorithmEnum -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.BlenderParams +import com.ExTwitter.cr_mixer.param.BlenderParams.BlendingAlgorithmEnum +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateGenerator.scala index e240ebf2d..c6741cee6 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateGenerator.scala @@ -1,21 +1,21 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.cr_mixer.blender.AdsBlender -import com.twitter.cr_mixer.logging.AdsRecommendationsScribeLogger -import com.twitter.cr_mixer.model.AdsCandidateGeneratorQuery -import com.twitter.cr_mixer.model.BlendedAdsCandidate -import com.twitter.cr_mixer.model.InitialAdsCandidate -import com.twitter.cr_mixer.model.RankedAdsCandidate -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.param.AdsParams -import com.twitter.cr_mixer.param.ConsumersBasedUserAdGraphParams -import com.twitter.cr_mixer.source_signal.RealGraphInSourceGraphFetcher -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.source_signal.UssSourceSignalFetcher -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.blender.AdsBlender +import com.ExTwitter.cr_mixer.logging.AdsRecommendationsScribeLogger +import com.ExTwitter.cr_mixer.model.AdsCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.BlendedAdsCandidate +import com.ExTwitter.cr_mixer.model.InitialAdsCandidate +import com.ExTwitter.cr_mixer.model.RankedAdsCandidate +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.param.AdsParams +import com.ExTwitter.cr_mixer.param.ConsumersBasedUserAdGraphParams +import com.ExTwitter.cr_mixer.source_signal.RealGraphInSourceGraphFetcher +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.source_signal.UssSourceSignalFetcher +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateSourcesRouter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateSourcesRouter.scala index 69ef31b74..8e311b4e8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateSourcesRouter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/AdsCandidateSourcesRouter.scala @@ -1,46 +1,46 @@ - package com.twitter.cr_mixer.candidate_generation + package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.InitialAdsCandidate -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.ConsumersBasedUserAdGraphParams -import com.twitter.cr_mixer.param.ConsumerBasedWalsParams -import com.twitter.cr_mixer.param.ConsumerEmbeddingBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.InterestedInParams -import com.twitter.cr_mixer.param.ProducerBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.SimClustersANNParams -import com.twitter.cr_mixer.param.TweetBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ConsumersBasedUserAdGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.FilterUtil -import com.twitter.cr_mixer.similarity_engine.HnswANNEngineQuery -import com.twitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUserAdGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine.Query -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUserAdGraphSimilarityEngine -import com.twitter.cr_mixer.thriftscala.LineItemInfo -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.ModelVersions -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.InitialAdsCandidate +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.ConsumersBasedUserAdGraphParams +import com.ExTwitter.cr_mixer.param.ConsumerBasedWalsParams +import com.ExTwitter.cr_mixer.param.ConsumerEmbeddingBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.InterestedInParams +import com.ExTwitter.cr_mixer.param.ProducerBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.SimClustersANNParams +import com.ExTwitter.cr_mixer.param.TweetBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ConsumersBasedUserAdGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.FilterUtil +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNEngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUserAdGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine.Query +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUserAdGraphSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.LineItemInfo +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.ModelVersions +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/BUILD index f1b6e6980..a77ad4a5d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/BUILD @@ -4,48 +4,48 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:thrift-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/blender", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/blender", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/config", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/filter", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/logging", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/ranker", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/similarity_engine", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/source_signal", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", "cuad/projects/hashspace/thrift:thrift-scala", "decider/src/main/scala", "finatra/inject/inject-core/src/main/scala", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "frigate/frigate-common:base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/candidate", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/util:stats_util", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/constants", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/model", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/candidate", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/util:stats_util", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model", "simclusters-ann/thrift/src/main/thrift:thrift-scala", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/frigate/data_pipeline/scalding:blue_verified_annotations-scala", - "src/thrift/com/twitter/ml/api:embedding-scala", - "src/thrift/com/twitter/recos/user_tweet_graph:user_tweet_graph-scala", - "src/thrift/com/twitter/recos/user_tweet_graph_plus:user_tweet_graph_plus-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/query_interaction_graph/service:qig-service-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/frigate/data_pipeline/scalding:blue_verified_annotations-scala", + "src/thrift/com/ExTwitter/ml/api:embedding-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_graph:user_tweet_graph-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_graph_plus:user_tweet_graph_plus-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/query_interaction_graph/service:qig-service-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "strato/config/columns/cuad/hashspace:hashspace-strato-client", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CandidateSourcesRouter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CandidateSourcesRouter.scala index 49cc37bde..57d6dbf0a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CandidateSourcesRouter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CandidateSourcesRouter.scala @@ -1,44 +1,44 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.model.TripTweetWithScore -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.model.TweetWithScoreAndSocialProof -import com.twitter.cr_mixer.param.ConsumerBasedWalsParams -import com.twitter.cr_mixer.param.ConsumerEmbeddingBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.ConsumersBasedUserVideoGraphParams -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.similarity_engine.ConsumersBasedUserVideoGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTripSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTwHINSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTwoTowerSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.EngineQuery -import com.twitter.cr_mixer.similarity_engine.FilterUtil -import com.twitter.cr_mixer.similarity_engine.HnswANNEngineQuery -import com.twitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUnifiedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TripEngineQuery -import com.twitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.UserTweetEntityGraphSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.model.TripTweetWithScore +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.model.TweetWithScoreAndSocialProof +import com.ExTwitter.cr_mixer.param.ConsumerBasedWalsParams +import com.ExTwitter.cr_mixer.param.ConsumerEmbeddingBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.ConsumersBasedUserVideoGraphParams +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.similarity_engine.ConsumersBasedUserVideoGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTripSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTwHINSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTwoTowerSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.EngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.FilterUtil +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNEngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUnifiedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TripEngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.UserTweetEntityGraphSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CrCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CrCandidateGenerator.scala index c69d0c4f2..7d8aeff1a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CrCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CrCandidateGenerator.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.cr_mixer.blender.SwitchBlender -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.filter.PostRankFilterRunner -import com.twitter.cr_mixer.filter.PreRankFilterRunner -import com.twitter.cr_mixer.logging.CrMixerScribeLogger -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.param.RankerParams -import com.twitter.cr_mixer.param.RecentNegativeSignalParams -import com.twitter.cr_mixer.ranker.SwitchRanker -import com.twitter.cr_mixer.source_signal.SourceInfoRouter -import com.twitter.cr_mixer.source_signal.UssStore.EnabledNegativeSourceTypes -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.util.Future -import com.twitter.util.JavaTimer -import com.twitter.util.Timer +import com.ExTwitter.cr_mixer.blender.SwitchBlender +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.filter.PostRankFilterRunner +import com.ExTwitter.cr_mixer.filter.PreRankFilterRunner +import com.ExTwitter.cr_mixer.logging.CrMixerScribeLogger +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.param.RankerParams +import com.ExTwitter.cr_mixer.param.RecentNegativeSignalParams +import com.ExTwitter.cr_mixer.ranker.SwitchRanker +import com.ExTwitter.cr_mixer.source_signal.SourceInfoRouter +import com.ExTwitter.cr_mixer.source_signal.UssStore.EnabledNegativeSourceTypes +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.util.Future +import com.ExTwitter.util.JavaTimer +import com.ExTwitter.util.Timer import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CustomizedRetrievalCandidateGeneration.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CustomizedRetrievalCandidateGeneration.scala index 427dd9b74..e4a4685be 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CustomizedRetrievalCandidateGeneration.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/CustomizedRetrievalCandidateGeneration.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.cr_mixer.candidate_generation.CustomizedRetrievalCandidateGeneration.Query -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.CustomizedRetrievalBasedCandidateGenerationParams._ -import com.twitter.cr_mixer.param.CustomizedRetrievalBasedTwhinParams._ -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.similarity_engine.DiffusionBasedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.LookupEngineQuery -import com.twitter.cr_mixer.similarity_engine.LookupSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.base.CandidateSource -import com.twitter.frigate.common.base.Stats -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.timelines.configapi -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.candidate_generation.CustomizedRetrievalCandidateGeneration.Query +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.CustomizedRetrievalBasedCandidateGenerationParams._ +import com.ExTwitter.cr_mixer.param.CustomizedRetrievalBasedTwhinParams._ +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.similarity_engine.DiffusionBasedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.LookupEngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.LookupSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.base.CandidateSource +import com.ExTwitter.frigate.common.base.Stats +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/FrsTweetCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/FrsTweetCandidateGenerator.scala index 0c5334c28..2af763d0d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/FrsTweetCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/FrsTweetCandidateGenerator.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.FrsTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithAuthor -import com.twitter.cr_mixer.param.FrsParams -import com.twitter.cr_mixer.similarity_engine.EarlybirdSimilarityEngineRouter -import com.twitter.cr_mixer.source_signal.FrsStore -import com.twitter.cr_mixer.source_signal.FrsStore.FrsQueryResult -import com.twitter.cr_mixer.thriftscala.FrsTweet -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.hermit.constants.AlgorithmFeedbackTokens -import com.twitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap -import com.twitter.hermit.model.Algorithm -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.FrsTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithAuthor +import com.ExTwitter.cr_mixer.param.FrsParams +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdSimilarityEngineRouter +import com.ExTwitter.cr_mixer.source_signal.FrsStore +import com.ExTwitter.cr_mixer.source_signal.FrsStore.FrsQueryResult +import com.ExTwitter.cr_mixer.thriftscala.FrsTweet +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton @@ -193,8 +193,8 @@ class FrsTweetCandidateGenerator @Inject() ( frsCandidateSourceScores = frsQueryResult.flatMap { result => result.sourceWithScores.map { _.collect { - // see TokenStrToAlgorithmMap @ https://sourcegraph.twitter.biz/git.twitter.biz/source/-/blob/hermit/hermit-core/src/main/scala/com/twitter/hermit/constants/AlgorithmFeedbackTokens.scala - // see Algorithm @ https://sourcegraph.twitter.biz/git.twitter.biz/source/-/blob/hermit/hermit-core/src/main/scala/com/twitter/hermit/model/Algorithm.scala + // see TokenStrToAlgorithmMap @ https://sourcegraph.ExTwitter.biz/git.ExTwitter.biz/source/-/blob/hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants/AlgorithmFeedbackTokens.scala + // see Algorithm @ https://sourcegraph.ExTwitter.biz/git.ExTwitter.biz/source/-/blob/hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model/Algorithm.scala case (candidateSourceAlgoStr, score) if AlgorithmFeedbackTokens.TokenStrToAlgorithmMap.contains( candidateSourceAlgoStr) => diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedTweetCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedTweetCandidateGenerator.scala index 45a919a57..aee9e6819 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedTweetCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedTweetCandidateGenerator.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.filter.PreRankFilterRunner -import com.twitter.cr_mixer.logging.RelatedTweetScribeLogger -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUnifiedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.filter.PreRankFilterRunner +import com.ExTwitter.cr_mixer.logging.RelatedTweetScribeLogger +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUnifiedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedVideoTweetCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedVideoTweetCandidateGenerator.scala index cc7f55859..0a6cb20eb 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedVideoTweetCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/RelatedVideoTweetCandidateGenerator.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.filter.PreRankFilterRunner -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RelatedVideoTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.filter.PreRankFilterRunner +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RelatedVideoTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/SimClustersInterestedInCandidateGeneration.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/SimClustersInterestedInCandidateGeneration.scala index a40901a58..91aa3996b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/SimClustersInterestedInCandidateGeneration.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/SimClustersInterestedInCandidateGeneration.scala @@ -1,25 +1,25 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.InterestedInParams -import com.twitter.cr_mixer.param.SimClustersANNParams -import com.twitter.cr_mixer.similarity_engine.EngineQuery -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.base.CandidateSource -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.ModelVersions -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.InterestedInParams +import com.ExTwitter.cr_mixer.param.SimClustersANNParams +import com.ExTwitter.cr_mixer.similarity_engine.EngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.base.CandidateSource +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.ModelVersions +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton import javax.inject.Named -import com.twitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.ModuleNames /** * This store looks for similar tweets for a given UserId that generates UserInterestedIn diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/TopicTweetCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/TopicTweetCandidateGenerator.scala index 690fda482..9a8424fde 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/TopicTweetCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/TopicTweetCandidateGenerator.scala @@ -1,29 +1,29 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TopicTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.TopicTweetWithScore -import com.twitter.cr_mixer.param.TopicTweetParams -import com.twitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SkitHighPrecisionTopicTweetSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.TopicTweet -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.servo.util.MemoizingStatsReceiver -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TopicTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.TopicTweetWithScore +import com.ExTwitter.cr_mixer.param.TopicTweetParams +import com.ExTwitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SkitHighPrecisionTopicTweetSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.TopicTweet +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.servo.util.MemoizingStatsReceiver +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/UtegTweetCandidateGenerator.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/UtegTweetCandidateGenerator.scala index ecf0bb98e..70f194e30 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/UtegTweetCandidateGenerator.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation/UtegTweetCandidateGenerator.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.candidate_generation +package com.ExTwitter.cr_mixer.candidate_generation -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.logging.UtegTweetScribeLogger -import com.twitter.cr_mixer.filter.UtegFilterRunner -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScoreAndSocialProof -import com.twitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.similarity_engine.UserTweetEntityGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.source_signal.RealGraphInSourceGraphFetcher -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.logging.UtegTweetScribeLogger +import com.ExTwitter.cr_mixer.filter.UtegFilterRunner +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScoreAndSocialProof +import com.ExTwitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.similarity_engine.UserTweetEntityGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.source_signal.RealGraphInSourceGraphFetcher +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/BUILD index 11b558321..d16582e2b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/BUILD @@ -4,10 +4,10 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "configapi/configapi-core", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/exception", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/exception", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", "finatra/inject/inject-core/src/main/scala", "simclusters-ann/thrift/src/main/thrift:thrift-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/SimClustersANNConfig.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/SimClustersANNConfig.scala index dbf3ad6fd..a5bd11e31 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/SimClustersANNConfig.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/SimClustersANNConfig.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.config +package com.ExTwitter.cr_mixer.config -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.exception.InvalidSANNConfigException -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclustersann.thriftscala.ScoringAlgorithm -import com.twitter.simclustersann.thriftscala.{SimClustersANNConfig => ThriftSimClustersANNConfig} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.exception.InvalidSANNConfigException +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclustersann.thriftscala.ScoringAlgorithm +import com.ExTwitter.simclustersann.thriftscala.{SimClustersANNConfig => ThriftSimClustersANNConfig} +import com.ExTwitter.util.Duration case class SimClustersANNConfig( maxNumResults: Int, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/TimeoutConfig.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/TimeoutConfig.scala index 46e32990b..dcf8b22ab 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/TimeoutConfig.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config/TimeoutConfig.scala @@ -1,6 +1,6 @@ -package com.twitter.cr_mixer.config +package com.ExTwitter.cr_mixer.config -import com.twitter.util.Duration +import com.ExTwitter.util.Duration case class TimeoutConfig( /* Default timeouts for candidate generator */ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/BUILD.bazel b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/BUILD.bazel index b2f7d2f7d..faf357c32 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/BUILD.bazel +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/BUILD.bazel @@ -4,45 +4,45 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "content-recommender/thrift/src/main/thrift:content-recommender-common-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/debug", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/candidate_generation", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/debug", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/featureswitch", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/logging", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/similarity_engine", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/source_signal", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", "finagle/finagle-base-http/src/main", "finagle/finagle-core/src/main", "finagle/finagle-http/src/main/scala", - "finatra/http-server/src/main/scala/com/twitter/finatra/http:controller", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift:controller", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/store/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", + "finatra/http-server/src/main/scala/com/ExTwitter/finatra/http:controller", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift:controller", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/store/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", "simclusters-ann/thrift/src/main/thrift:thrift-scala", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/ads/schema:common-scala", - "src/thrift/com/twitter/context:twitter-context-scala", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/frigate/data_pipeline/scalding:blue_verified_annotations-scala", - "src/thrift/com/twitter/onboarding/relevance/coldstart_lookalike:coldstartlookalike-thrift-scala", - "src/thrift/com/twitter/recos:recos-common-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "src/thrift/com/twitter/timelines/render:thrift-scala", - "src/thrift/com/twitter/timelines/timeline_logging:thrift-scala", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/ads/schema:common-scala", + "src/thrift/com/ExTwitter/context:ExTwitter-context-scala", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/frigate/data_pipeline/scalding:blue_verified_annotations-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/coldstart_lookalike:coldstartlookalike-thrift-scala", + "src/thrift/com/ExTwitter/recos:recos-common-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", + "src/thrift/com/ExTwitter/timelines/timeline_logging:thrift-scala", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "stringcenter/client", - "timelines/src/main/scala/com/twitter/timelines/tracing/lensview", - "timelines/src/main/scala/com/twitter/timelines/tracing/lensview/funnelseries", - "twitter-context/src/main/scala", + "timelines/src/main/scala/com/ExTwitter/timelines/tracing/lensview", + "timelines/src/main/scala/com/ExTwitter/timelines/tracing/lensview/funnelseries", + "ExTwitter-context/src/main/scala", "user-signal-service/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/CrMixerThriftController.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/CrMixerThriftController.scala index c16d76de8..c041c0d2a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/CrMixerThriftController.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/controller/CrMixerThriftController.scala @@ -1,73 +1,73 @@ -package com.twitter.cr_mixer.controller +package com.ExTwitter.cr_mixer.controller -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.cr_mixer.candidate_generation.AdsCandidateGenerator -import com.twitter.cr_mixer.candidate_generation.CrCandidateGenerator -import com.twitter.cr_mixer.candidate_generation.FrsTweetCandidateGenerator -import com.twitter.cr_mixer.candidate_generation.RelatedTweetCandidateGenerator -import com.twitter.cr_mixer.candidate_generation.RelatedVideoTweetCandidateGenerator -import com.twitter.cr_mixer.candidate_generation.TopicTweetCandidateGenerator -import com.twitter.cr_mixer.candidate_generation.UtegTweetCandidateGenerator -import com.twitter.cr_mixer.featureswitch.ParamsBuilder -import com.twitter.cr_mixer.logging.CrMixerScribeLogger -import com.twitter.cr_mixer.logging.RelatedTweetScribeLogger -import com.twitter.cr_mixer.logging.AdsRecommendationsScribeLogger -import com.twitter.cr_mixer.logging.RelatedTweetScribeMetadata -import com.twitter.cr_mixer.logging.ScribeMetadata -import com.twitter.cr_mixer.logging.UtegTweetScribeLogger -import com.twitter.cr_mixer.model.AdsCandidateGeneratorQuery -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.FrsTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RankedAdsCandidate -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.RelatedVideoTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.TopicTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.TweetWithScoreAndSocialProof -import com.twitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.param.AdsParams -import com.twitter.cr_mixer.param.FrsParams.FrsBasedCandidateGenerationMaxCandidatesNumParam -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.RelatedTweetGlobalParams -import com.twitter.cr_mixer.param.RelatedVideoTweetGlobalParams -import com.twitter.cr_mixer.param.TopicTweetParams -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.param.decider.EndpointLoadShedder -import com.twitter.cr_mixer.thriftscala.AdTweetRecommendation -import com.twitter.cr_mixer.thriftscala.AdsRequest -import com.twitter.cr_mixer.thriftscala.AdsResponse -import com.twitter.cr_mixer.thriftscala.CrMixerTweetRequest -import com.twitter.cr_mixer.thriftscala.CrMixerTweetResponse -import com.twitter.cr_mixer.thriftscala.FrsTweetRequest -import com.twitter.cr_mixer.thriftscala.FrsTweetResponse -import com.twitter.cr_mixer.thriftscala.RelatedTweet -import com.twitter.cr_mixer.thriftscala.RelatedTweetRequest -import com.twitter.cr_mixer.thriftscala.RelatedTweetResponse -import com.twitter.cr_mixer.thriftscala.RelatedVideoTweet -import com.twitter.cr_mixer.thriftscala.RelatedVideoTweetRequest -import com.twitter.cr_mixer.thriftscala.RelatedVideoTweetResponse -import com.twitter.cr_mixer.thriftscala.TopicTweet -import com.twitter.cr_mixer.thriftscala.TopicTweetRequest -import com.twitter.cr_mixer.thriftscala.TopicTweetResponse -import com.twitter.cr_mixer.thriftscala.TweetRecommendation -import com.twitter.cr_mixer.thriftscala.UtegTweet -import com.twitter.cr_mixer.thriftscala.UtegTweetRequest -import com.twitter.cr_mixer.thriftscala.UtegTweetResponse -import com.twitter.cr_mixer.util.MetricTagUtil -import com.twitter.cr_mixer.util.SignalTimestampStatsUtil -import com.twitter.cr_mixer.{thriftscala => t} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.thrift.Controller -import com.twitter.hermit.store.common.ReadableWritableStore -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.timeline_logging.{thriftscala => thriftlog} -import com.twitter.timelines.tracing.lensview.funnelseries.TweetScoreFunnelSeries -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.cr_mixer.candidate_generation.AdsCandidateGenerator +import com.ExTwitter.cr_mixer.candidate_generation.CrCandidateGenerator +import com.ExTwitter.cr_mixer.candidate_generation.FrsTweetCandidateGenerator +import com.ExTwitter.cr_mixer.candidate_generation.RelatedTweetCandidateGenerator +import com.ExTwitter.cr_mixer.candidate_generation.RelatedVideoTweetCandidateGenerator +import com.ExTwitter.cr_mixer.candidate_generation.TopicTweetCandidateGenerator +import com.ExTwitter.cr_mixer.candidate_generation.UtegTweetCandidateGenerator +import com.ExTwitter.cr_mixer.featureswitch.ParamsBuilder +import com.ExTwitter.cr_mixer.logging.CrMixerScribeLogger +import com.ExTwitter.cr_mixer.logging.RelatedTweetScribeLogger +import com.ExTwitter.cr_mixer.logging.AdsRecommendationsScribeLogger +import com.ExTwitter.cr_mixer.logging.RelatedTweetScribeMetadata +import com.ExTwitter.cr_mixer.logging.ScribeMetadata +import com.ExTwitter.cr_mixer.logging.UtegTweetScribeLogger +import com.ExTwitter.cr_mixer.model.AdsCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.FrsTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RankedAdsCandidate +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.RelatedVideoTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.TopicTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.TweetWithScoreAndSocialProof +import com.ExTwitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.param.AdsParams +import com.ExTwitter.cr_mixer.param.FrsParams.FrsBasedCandidateGenerationMaxCandidatesNumParam +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.RelatedTweetGlobalParams +import com.ExTwitter.cr_mixer.param.RelatedVideoTweetGlobalParams +import com.ExTwitter.cr_mixer.param.TopicTweetParams +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.param.decider.EndpointLoadShedder +import com.ExTwitter.cr_mixer.thriftscala.AdTweetRecommendation +import com.ExTwitter.cr_mixer.thriftscala.AdsRequest +import com.ExTwitter.cr_mixer.thriftscala.AdsResponse +import com.ExTwitter.cr_mixer.thriftscala.CrMixerTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.CrMixerTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.FrsTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.FrsTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweet +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.RelatedVideoTweet +import com.ExTwitter.cr_mixer.thriftscala.RelatedVideoTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.RelatedVideoTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.TopicTweet +import com.ExTwitter.cr_mixer.thriftscala.TopicTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.TopicTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.TweetRecommendation +import com.ExTwitter.cr_mixer.thriftscala.UtegTweet +import com.ExTwitter.cr_mixer.thriftscala.UtegTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.UtegTweetResponse +import com.ExTwitter.cr_mixer.util.MetricTagUtil +import com.ExTwitter.cr_mixer.util.SignalTimestampStatsUtil +import com.ExTwitter.cr_mixer.{thriftscala => t} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.thrift.Controller +import com.ExTwitter.hermit.store.common.ReadableWritableStore +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.timeline_logging.{thriftscala => thriftlog} +import com.ExTwitter.timelines.tracing.lensview.funnelseries.TweetScoreFunnelSeries +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import java.util.UUID import javax.inject.Inject import org.apache.commons.lang.exception.ExceptionUtils diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/exception/InvalidSANNConfigException.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/exception/InvalidSANNConfigException.scala index a8ada7abf..b9c8ed151 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/exception/InvalidSANNConfigException.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/exception/InvalidSANNConfigException.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer +package com.ExTwitter.cr_mixer package exception case class InvalidSANNConfigException(msg: String) extends Exception(msg) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/BUILD index d728980f6..9eb3137e9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/BUILD @@ -9,27 +9,27 @@ scala_library( "configapi/configapi-abdecider", "configapi/configapi-core", "configapi/configapi-featureswitches:v2", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", - "discovery-common/src/main/scala/com/twitter/discovery/common/configapi", + "discovery-common/src/main/scala/com/ExTwitter/discovery/common/configapi", "featureswitches/featureswitches-core", - "featureswitches/featureswitches-core/src/main/scala/com/twitter/featureswitches/v2/builder", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/authentication", + "featureswitches/featureswitches-core/src/main/scala/com/ExTwitter/featureswitches/v2/builder", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/authentication", "frigate/frigate-common:util", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/candidate", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/health", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/interests", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/strato", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/util", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "scribelib/marshallers/src/main/scala/com/twitter/scribelib/marshallers", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/frigate:frigate-common-thrift-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/candidate", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/health", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/interests", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/strato", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/util", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "scribelib/marshallers/src/main/scala/com/ExTwitter/scribelib/marshallers", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/frigate:frigate-common-thrift-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/CrMixerLoggingABDecider.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/CrMixerLoggingABDecider.scala index 20195921e..c93994a65 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/CrMixerLoggingABDecider.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/CrMixerLoggingABDecider.scala @@ -1,18 +1,18 @@ -package com.twitter.cr_mixer +package com.ExTwitter.cr_mixer package featureswitch -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.abdecider.LoggingABDecider -import com.twitter.abdecider.Recipient -import com.twitter.abdecider.Bucket -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.util.Local +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.abdecider.LoggingABDecider +import com.ExTwitter.abdecider.Recipient +import com.ExTwitter.abdecider.Bucket +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.util.Local import scala.collection.concurrent.{Map => ConcurrentMap} /** * Wraps a LoggingABDecider, so all impressed buckets are recorded to a 'LocalContext' on a given request. * - * Contexts (https://twitter.github.io/finagle/guide/Contexts.html) are Finagle's mechanism for + * Contexts (https://ExTwitter.github.io/finagle/guide/Contexts.html) are Finagle's mechanism for * storing state/variables without having to pass these variables all around the request. * * In order for this class to be used the [[SetImpressedBucketsLocalContextFilter]] must be applied diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/ParamsBuilder.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/ParamsBuilder.scala index c322c456e..1e8366ca5 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/ParamsBuilder.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/ParamsBuilder.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.featureswitch +package com.ExTwitter.cr_mixer.featureswitch -import com.twitter.abdecider.LoggingABDecider -import com.twitter.abdecider.UserRecipient -import com.twitter.cr_mixer.{thriftscala => t} -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.discovery.common.configapi.FeatureContextBuilder -import com.twitter.featureswitches.FSRecipient -import com.twitter.featureswitches.UserAgent -import com.twitter.featureswitches.{Recipient => FeatureSwitchRecipient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.product_mixer.core.thriftscala.ClientContext -import com.twitter.timelines.configapi.Config -import com.twitter.timelines.configapi.FeatureValue -import com.twitter.timelines.configapi.ForcedFeatureContext -import com.twitter.timelines.configapi.OrElseFeatureContext -import com.twitter.timelines.configapi.Params -import com.twitter.timelines.configapi.RequestContext -import com.twitter.timelines.configapi.abdecider.LoggingABDeciderExperimentContext +import com.ExTwitter.abdecider.LoggingABDecider +import com.ExTwitter.abdecider.UserRecipient +import com.ExTwitter.cr_mixer.{thriftscala => t} +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.discovery.common.configapi.FeatureContextBuilder +import com.ExTwitter.featureswitches.FSRecipient +import com.ExTwitter.featureswitches.UserAgent +import com.ExTwitter.featureswitches.{Recipient => FeatureSwitchRecipient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.product_mixer.core.thriftscala.ClientContext +import com.ExTwitter.timelines.configapi.Config +import com.ExTwitter.timelines.configapi.FeatureValue +import com.ExTwitter.timelines.configapi.ForcedFeatureContext +import com.ExTwitter.timelines.configapi.OrElseFeatureContext +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.timelines.configapi.RequestContext +import com.ExTwitter.timelines.configapi.abdecider.LoggingABDeciderExperimentContext import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/SetImpressedBucketsLocalContextFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/SetImpressedBucketsLocalContextFilter.scala index 905c99bea..8597653b2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/SetImpressedBucketsLocalContextFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch/SetImpressedBucketsLocalContextFilter.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.featureswitch +package com.ExTwitter.cr_mixer.featureswitch -import com.twitter.finagle.Filter +import com.ExTwitter.finagle.Filter import javax.inject.Inject import javax.inject.Singleton import scala.collection.concurrent.TrieMap -import com.twitter.abdecider.Bucket -import com.twitter.finagle.Service +import com.ExTwitter.abdecider.Bucket +import com.ExTwitter.finagle.Service @Singleton class SetImpressedBucketsLocalContextFilter @Inject() () extends Filter.TypeAgnostic { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/BUILD index e9db59798..0db07cf2a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/BUILD @@ -4,19 +4,19 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:thrift-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", "cr-mixer/thrift/src/main/thrift:thrift-scala", "finagle/finagle-core/src/main", "frigate/frigate-common:util", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/FilterBase.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/FilterBase.scala index 1be4ebbaa..e70ca6ff0 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/FilterBase.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/FilterBase.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.util.Future trait FilterBase { def name: String diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ImpressedTweetlistFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ImpressedTweetlistFilter.scala index 41c9b7742..7196e35f0 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ImpressedTweetlistFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ImpressedTweetlistFilter.scala @@ -1,10 +1,10 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/InNetworkFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/InNetworkFilter.scala index 62f4ddba5..0aa3fc6df 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/InNetworkFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/InNetworkFilter.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.param.UtegTweetGlobalParams -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.param.UtegTweetGlobalParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq import javax.inject.Inject import javax.inject.Named diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PostRankFilterRunner.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PostRankFilterRunner.scala index 483f3d956..22cd1f2c2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PostRankFilterRunner.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PostRankFilterRunner.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Future +package com.ExTwitter.cr_mixer.filter +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PreRankFilterRunner.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PreRankFilterRunner.scala index 7626acc7c..398d4505c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PreRankFilterRunner.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/PreRankFilterRunner.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ReplyFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ReplyFilter.scala index d4d37a7da..1d936632e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ReplyFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/ReplyFilter.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/RetweetFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/RetweetFilter.scala index 38eefadd9..1008ae965 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/RetweetFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/RetweetFilter.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.UtegTweetGlobalParams -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.UtegTweetGlobalParams +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetAgeFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetAgeFilter.scala index d7c8889e1..2c4f39ad3 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetAgeFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetAgeFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Singleton -import com.twitter.conversions.DurationOps._ +import com.ExTwitter.conversions.DurationOps._ @Singleton case class TweetAgeFilter() extends FilterBase { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetInfoHealthFilterBase.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetInfoHealthFilterBase.scala index 5ea248424..0438fc9fd 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetInfoHealthFilterBase.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/TweetInfoHealthFilterBase.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.HealthThreshold -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.HealthThreshold +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegFilterRunner.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegFilterRunner.scala index 463e026b9..ad64020d1 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegFilterRunner.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegFilterRunner.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegHealthFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegHealthFilter.scala index 4a327b161..90493be5c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegHealthFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/UtegHealthFilter.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.param.UtegTweetGlobalParams -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.param.UtegTweetGlobalParams +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/VideoTweetFilter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/VideoTweetFilter.scala index 755ba8ac7..dae3f2ff8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/VideoTweetFilter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/filter/VideoTweetFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.filter +package com.ExTwitter.cr_mixer.filter -import com.twitter.cr_mixer.filter.VideoTweetFilter.FilterConfig -import com.twitter.cr_mixer.model.CandidateGeneratorQuery -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.RelatedVideoTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.param.VideoTweetFilterParams -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.filter.VideoTweetFilter.FilterConfig +import com.ExTwitter.cr_mixer.model.CandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.RelatedVideoTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.param.VideoTweetFilterParams +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/AdsRecommendationsScribeLogger.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/AdsRecommendationsScribeLogger.scala index f786bd586..b9cc062c1 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/AdsRecommendationsScribeLogger.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/AdsRecommendationsScribeLogger.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.logging +package com.ExTwitter.cr_mixer.logging -import com.twitter.cr_mixer.model.AdsCandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialAdsCandidate -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.logging.ScribeLoggerUtils._ -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.thriftscala.AdsRecommendationTopLevelApiResult -import com.twitter.cr_mixer.thriftscala.AdsRecommendationsResult -import com.twitter.cr_mixer.thriftscala.AdsRequest -import com.twitter.cr_mixer.thriftscala.AdsResponse -import com.twitter.cr_mixer.thriftscala.FetchCandidatesResult -import com.twitter.cr_mixer.thriftscala.GetAdsRecommendationsScribe -import com.twitter.cr_mixer.thriftscala.PerformanceMetrics -import com.twitter.cr_mixer.thriftscala.TweetCandidateWithMetadata -import com.twitter.cr_mixer.util.CandidateGenerationKeyUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.Trace -import com.twitter.logging.Logger -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Future -import com.twitter.util.Stopwatch +import com.ExTwitter.cr_mixer.model.AdsCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialAdsCandidate +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.logging.ScribeLoggerUtils._ +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.thriftscala.AdsRecommendationTopLevelApiResult +import com.ExTwitter.cr_mixer.thriftscala.AdsRecommendationsResult +import com.ExTwitter.cr_mixer.thriftscala.AdsRequest +import com.ExTwitter.cr_mixer.thriftscala.AdsResponse +import com.ExTwitter.cr_mixer.thriftscala.FetchCandidatesResult +import com.ExTwitter.cr_mixer.thriftscala.GetAdsRecommendationsScribe +import com.ExTwitter.cr_mixer.thriftscala.PerformanceMetrics +import com.ExTwitter.cr_mixer.thriftscala.TweetCandidateWithMetadata +import com.ExTwitter.cr_mixer.util.CandidateGenerationKeyUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.logging.Logger +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Future +import com.ExTwitter.util.Stopwatch import javax.inject.Inject import javax.inject.Named diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/BUILD index edf0b77f0..947fe0962 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/BUILD @@ -7,28 +7,28 @@ scala_library( "3rdparty/jvm/javax/inject:javax.inject", "abdecider/src/main/scala", "content-recommender/thrift/src/main/thrift:content-recommender-common-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/featureswitch", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/scribe", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", "featureswitches/featureswitches-core/src/main/scala:experimentation-settings", "finagle/finagle-core/src/main", "frigate/frigate-common:base", "frigate/frigate-common:util", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", "kafka/finagle-kafka/finatra-kafka/src/main/scala", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "scribelib/marshallers/src/main/scala/com/twitter/scribelib/marshallers", - "scribelib/validators/src/main/scala/com/twitter/scribelib/validators", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "scribelib/marshallers/src/main/scala/com/ExTwitter/scribelib/marshallers", + "scribelib/validators/src/main/scala/com/ExTwitter/scribelib/validators", "scrooge/scrooge-serializer/src/main/scala", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/ml/api:data-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "timelines/src/main/scala/com/twitter/timelines/clientevent", - "util-internal/scribe/src/main/scala/com/twitter/logging", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/ml/api:data-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "timelines/src/main/scala/com/ExTwitter/timelines/clientevent", + "util-internal/scribe/src/main/scala/com/ExTwitter/logging", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/CrMixerScribeLogger.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/CrMixerScribeLogger.scala index 024dcf55b..202655a50 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/CrMixerScribeLogger.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/CrMixerScribeLogger.scala @@ -1,49 +1,49 @@ -package com.twitter.cr_mixer.logging +package com.ExTwitter.cr_mixer.logging import com.google.common.base.CaseFormat -import com.twitter.abdecider.ScribingABDeciderUtil -import com.twitter.scribelib.marshallers.ClientDataProvider -import com.twitter.scribelib.marshallers.ScribeSerialization -import com.twitter.timelines.clientevent.MinimalClientDataProvider -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.logging.ScribeLoggerUtils._ -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.scribe.ScribeCategories -import com.twitter.cr_mixer.thriftscala.CrMixerTweetRequest -import com.twitter.cr_mixer.thriftscala.CrMixerTweetResponse -import com.twitter.cr_mixer.thriftscala.FetchCandidatesResult -import com.twitter.cr_mixer.thriftscala.FetchSignalSourcesResult -import com.twitter.cr_mixer.thriftscala.GetTweetsRecommendationsScribe -import com.twitter.cr_mixer.thriftscala.InterleaveResult -import com.twitter.cr_mixer.thriftscala.PerformanceMetrics -import com.twitter.cr_mixer.thriftscala.PreRankFilterResult -import com.twitter.cr_mixer.thriftscala.Product -import com.twitter.cr_mixer.thriftscala.RankResult -import com.twitter.cr_mixer.thriftscala.Result -import com.twitter.cr_mixer.thriftscala.SourceSignal -import com.twitter.cr_mixer.thriftscala.TopLevelApiResult -import com.twitter.cr_mixer.thriftscala.TweetCandidateWithMetadata -import com.twitter.cr_mixer.thriftscala.VITTweetCandidateScribe -import com.twitter.cr_mixer.thriftscala.VITTweetCandidatesScribe -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.util.CandidateGenerationKeyUtil -import com.twitter.cr_mixer.util.MetricTagUtil -import com.twitter.decider.SimpleRecipient -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.Trace -import com.twitter.finatra.kafka.producers.KafkaProducerBase -import com.twitter.logging.Logger -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.util.Future -import com.twitter.util.Stopwatch -import com.twitter.util.Time +import com.ExTwitter.abdecider.ScribingABDeciderUtil +import com.ExTwitter.scribelib.marshallers.ClientDataProvider +import com.ExTwitter.scribelib.marshallers.ScribeSerialization +import com.ExTwitter.timelines.clientevent.MinimalClientDataProvider +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.logging.ScribeLoggerUtils._ +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.scribe.ScribeCategories +import com.ExTwitter.cr_mixer.thriftscala.CrMixerTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.CrMixerTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.FetchCandidatesResult +import com.ExTwitter.cr_mixer.thriftscala.FetchSignalSourcesResult +import com.ExTwitter.cr_mixer.thriftscala.GetTweetsRecommendationsScribe +import com.ExTwitter.cr_mixer.thriftscala.InterleaveResult +import com.ExTwitter.cr_mixer.thriftscala.PerformanceMetrics +import com.ExTwitter.cr_mixer.thriftscala.PreRankFilterResult +import com.ExTwitter.cr_mixer.thriftscala.Product +import com.ExTwitter.cr_mixer.thriftscala.RankResult +import com.ExTwitter.cr_mixer.thriftscala.Result +import com.ExTwitter.cr_mixer.thriftscala.SourceSignal +import com.ExTwitter.cr_mixer.thriftscala.TopLevelApiResult +import com.ExTwitter.cr_mixer.thriftscala.TweetCandidateWithMetadata +import com.ExTwitter.cr_mixer.thriftscala.VITTweetCandidateScribe +import com.ExTwitter.cr_mixer.thriftscala.VITTweetCandidatesScribe +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.util.CandidateGenerationKeyUtil +import com.ExTwitter.cr_mixer.util.MetricTagUtil +import com.ExTwitter.decider.SimpleRecipient +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.finatra.kafka.producers.KafkaProducerBase +import com.ExTwitter.logging.Logger +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.util.Future +import com.ExTwitter.util.Stopwatch +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Named diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/RelatedTweetScribeLogger.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/RelatedTweetScribeLogger.scala index b2b36f43c..fbc8fc957 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/RelatedTweetScribeLogger.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/RelatedTweetScribeLogger.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.logging +package com.ExTwitter.cr_mixer.logging -import com.twitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.logging.ScribeLoggerUtils._ -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.thriftscala.FetchCandidatesResult -import com.twitter.cr_mixer.thriftscala.GetRelatedTweetsScribe -import com.twitter.cr_mixer.thriftscala.PerformanceMetrics -import com.twitter.cr_mixer.thriftscala.PreRankFilterResult -import com.twitter.cr_mixer.thriftscala.RelatedTweetRequest -import com.twitter.cr_mixer.thriftscala.RelatedTweetResponse -import com.twitter.cr_mixer.thriftscala.RelatedTweetResult -import com.twitter.cr_mixer.thriftscala.RelatedTweetTopLevelApiResult -import com.twitter.cr_mixer.thriftscala.TweetCandidateWithMetadata -import com.twitter.cr_mixer.util.CandidateGenerationKeyUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.Trace -import com.twitter.logging.Logger -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Future -import com.twitter.util.Stopwatch +import com.ExTwitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.logging.ScribeLoggerUtils._ +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.thriftscala.FetchCandidatesResult +import com.ExTwitter.cr_mixer.thriftscala.GetRelatedTweetsScribe +import com.ExTwitter.cr_mixer.thriftscala.PerformanceMetrics +import com.ExTwitter.cr_mixer.thriftscala.PreRankFilterResult +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweetResult +import com.ExTwitter.cr_mixer.thriftscala.RelatedTweetTopLevelApiResult +import com.ExTwitter.cr_mixer.thriftscala.TweetCandidateWithMetadata +import com.ExTwitter.cr_mixer.util.CandidateGenerationKeyUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.logging.Logger +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Future +import com.ExTwitter.util.Stopwatch import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeLoggerUtils.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeLoggerUtils.scala index 3b30c3f10..9a121cc7a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeLoggerUtils.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeLoggerUtils.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.logging +package com.ExTwitter.cr_mixer.logging -import com.twitter.cr_mixer.featureswitch.CrMixerImpressedBuckets -import com.twitter.cr_mixer.thriftscala.ImpressesedBucketInfo -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.logging.Logger -import com.twitter.scrooge.BinaryThriftStructSerializer -import com.twitter.scrooge.ThriftStruct -import com.twitter.scrooge.ThriftStructCodec +import com.ExTwitter.cr_mixer.featureswitch.CrMixerImpressedBuckets +import com.ExTwitter.cr_mixer.thriftscala.ImpressesedBucketInfo +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.logging.Logger +import com.ExTwitter.scrooge.BinaryThriftStructSerializer +import com.ExTwitter.scrooge.ThriftStruct +import com.ExTwitter.scrooge.ThriftStructCodec object ScribeLoggerUtils { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeMetadata.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeMetadata.scala index 8c0444e38..0db78e670 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeMetadata.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/ScribeMetadata.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.logging +package com.ExTwitter.cr_mixer.logging -import com.twitter.cr_mixer.model.AdsCandidateGeneratorQuery -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.thriftscala.Product -import com.twitter.product_mixer.core.thriftscala.ClientContext -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.cr_mixer.model.AdsCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.RelatedTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.thriftscala.Product +import com.ExTwitter.product_mixer.core.thriftscala.ClientContext +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId case class ScribeMetadata( requestUUID: Long, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/TopLevelDdgMetricsMetadata.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/TopLevelDdgMetricsMetadata.scala index 3dd07e58e..e61fb2c18 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/TopLevelDdgMetricsMetadata.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/TopLevelDdgMetricsMetadata.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer +package com.ExTwitter.cr_mixer package logging -import com.twitter.cr_mixer.thriftscala.CrMixerTweetRequest -import com.twitter.cr_mixer.thriftscala.Product +import com.ExTwitter.cr_mixer.thriftscala.CrMixerTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.Product case class TopLevelDdgMetricsMetadata( userId: Option[Long], diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/UtegTweetScribeLogger.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/UtegTweetScribeLogger.scala index fb01a419b..cbede1ff5 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/UtegTweetScribeLogger.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/logging/UtegTweetScribeLogger.scala @@ -1,25 +1,25 @@ -package com.twitter.cr_mixer.logging +package com.ExTwitter.cr_mixer.logging -import com.twitter.cr_mixer.logging.ScribeLoggerUtils._ -import com.twitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScoreAndSocialProof -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.thriftscala.UtegTweetRequest -import com.twitter.cr_mixer.thriftscala.UtegTweetResponse -import com.twitter.cr_mixer.thriftscala.FetchCandidatesResult -import com.twitter.cr_mixer.thriftscala.GetUtegTweetsScribe -import com.twitter.cr_mixer.thriftscala.PerformanceMetrics -import com.twitter.cr_mixer.thriftscala.UtegTweetResult -import com.twitter.cr_mixer.thriftscala.UtegTweetTopLevelApiResult -import com.twitter.cr_mixer.thriftscala.TweetCandidateWithMetadata -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.Trace -import com.twitter.logging.Logger -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Future -import com.twitter.util.Stopwatch +import com.ExTwitter.cr_mixer.logging.ScribeLoggerUtils._ +import com.ExTwitter.cr_mixer.model.UtegTweetCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScoreAndSocialProof +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.thriftscala.UtegTweetRequest +import com.ExTwitter.cr_mixer.thriftscala.UtegTweetResponse +import com.ExTwitter.cr_mixer.thriftscala.FetchCandidatesResult +import com.ExTwitter.cr_mixer.thriftscala.GetUtegTweetsScribe +import com.ExTwitter.cr_mixer.thriftscala.PerformanceMetrics +import com.ExTwitter.cr_mixer.thriftscala.UtegTweetResult +import com.ExTwitter.cr_mixer.thriftscala.UtegTweetTopLevelApiResult +import com.ExTwitter.cr_mixer.thriftscala.TweetCandidateWithMetadata +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.logging.Logger +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Future +import com.ExTwitter.util.Stopwatch import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/BUILD index 87c714254..7204d30ca 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/BUILD @@ -7,10 +7,10 @@ scala_library( "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:thrift-scala", "cr-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/recos:recos-common-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/recos:recos-common-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/Candidate.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/Candidate.scala index c357c9472..cf9a3cd03 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/Candidate.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/Candidate.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.cr_mixer.thriftscala.LineItemInfo -import com.twitter.simclusters_v2.common.TweetId +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.cr_mixer.thriftscala.LineItemInfo +import com.ExTwitter.simclusters_v2.common.TweetId sealed trait Candidate { val tweetId: TweetId diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGenerationInfo.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGenerationInfo.scala index 879c96b66..7234a4326 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGenerationInfo.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGenerationInfo.scala @@ -1,10 +1,10 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.util.Time /*** * Tweet-level attributes. Represents the source used in candidate generation diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGeneratorQuery.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGeneratorQuery.scala index 084cbb042..1a2d341ba 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGeneratorQuery.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/CandidateGeneratorQuery.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.cr_mixer.thriftscala.Product -import com.twitter.product_mixer.core.thriftscala.ClientContext -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.timelines.configapi.Params +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.cr_mixer.thriftscala.Product +import com.ExTwitter.product_mixer.core.thriftscala.ClientContext +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.timelines.configapi.Params sealed trait CandidateGeneratorQuery { val product: Product diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/EarlybirdSimilarityEngineType.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/EarlybirdSimilarityEngineType.scala index aa3040373..15c584662 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/EarlybirdSimilarityEngineType.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/EarlybirdSimilarityEngineType.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model sealed trait EarlybirdSimilarityEngineType object EarlybirdSimilarityEngineType_RecencyBased extends EarlybirdSimilarityEngineType diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/HealthThreshold.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/HealthThreshold.scala index 0249798bd..2eaf4b8c5 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/HealthThreshold.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/HealthThreshold.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model object HealthThreshold { object Enum extends Enumeration { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModelConfig.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModelConfig.scala index 26db7898b..100fdbc13 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModelConfig.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModelConfig.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model /** * A Configuration class for all Model Based Candidate Sources. diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModuleNames.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModuleNames.scala index 6aec7b052..e87a74c3c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModuleNames.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/ModuleNames.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model /** * Define name annotated module names here diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TopicTweetWithScore.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TopicTweetWithScore.scala index e9a0cf173..d709b4cee 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TopicTweetWithScore.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TopicTweetWithScore.scala @@ -1,7 +1,7 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.simclusters_v2.common.TweetId +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.simclusters_v2.common.TweetId /*** * Bind a tweetId with a raw score generated from one single Similarity Engine diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithAuthor.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithAuthor.scala index 16a506a4c..ad50a84c7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithAuthor.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithAuthor.scala @@ -1,6 +1,6 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId case class TweetWithAuthor(tweetId: TweetId, authorId: UserId) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScore.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScore.scala index ad8866912..8e3942406 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScore.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScore.scala @@ -1,6 +1,6 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.TweetId /*** * Bind a tweetId with a raw score generated from one single Similarity Engine diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScoreAndSocialProof.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScoreAndSocialProof.scala index 94e430d8e..2cc96cc34 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScoreAndSocialProof.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model/TweetWithScoreAndSocialProof.scala @@ -1,7 +1,7 @@ -package com.twitter.cr_mixer.model +package com.ExTwitter.cr_mixer.model -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.recos.recos_common.thriftscala.SocialProofType +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.recos.recos_common.thriftscala.SocialProofType /*** * Bind a tweetId with a raw score and social proofs by type diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ActivePromotedTweetStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ActivePromotedTweetStoreModule.scala index d6529531a..cc858a8d1 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ActivePromotedTweetStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ActivePromotedTweetStoreModule.scala @@ -1,39 +1,39 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.bijection.thrift.CompactThriftCodec -import com.twitter.ads.entities.db.thriftscala.LineItemObjective -import com.twitter.bijection.Injection -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.thriftscala.LineItemInfo -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.store.common.ObservedCachedReadableStore -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.DataType -import com.twitter.ml.api.Feature -import com.twitter.ml.api.GeneralTensor -import com.twitter.ml.api.RichDataRecord -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.manhattan.Revenue -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.storehaus_internal.util.HDFSPath -import com.twitter.util.Future +import com.ExTwitter.bijection.thrift.CompactThriftCodec +import com.ExTwitter.ads.entities.db.thriftscala.LineItemObjective +import com.ExTwitter.bijection.Injection +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.thriftscala.LineItemInfo +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.store.common.ObservedCachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.DataType +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.GeneralTensor +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.manhattan.Revenue +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.util.Future import javax.inject.Named import scala.collection.JavaConverters._ -object ActivePromotedTweetStoreModule extends TwitterModule { +object ActivePromotedTweetStoreModule extends ExTwitterModule { case class ActivePromotedTweetStore( activePromotedTweetMHStore: ReadableStore[String, DataRecord], diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BUILD.bazel b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BUILD.bazel index 6773b526c..a83b16a3b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BUILD.bazel +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BUILD.bazel @@ -11,10 +11,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:core", - "3rdparty/jvm/com/twitter/bijection:scrooge", - "3rdparty/jvm/com/twitter/storehaus:core", - "3rdparty/jvm/com/twitter/storehaus:memcache", + "3rdparty/jvm/com/ExTwitter/bijection:core", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "3rdparty/jvm/com/ExTwitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:memcache", "3rdparty/jvm/io/grpc:grpc-api", "3rdparty/jvm/io/grpc:grpc-auth", "3rdparty/jvm/io/grpc:grpc-core", @@ -23,108 +23,108 @@ scala_library( "3rdparty/jvm/io/grpc:grpc-stub", "3rdparty/jvm/javax/inject:javax.inject", "3rdparty/jvm/org/scalanlp:breeze", - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "abdecider/src/main/scala", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "configapi/configapi-abdecider", "configapi/configapi-core", "configapi/configapi-featureswitches:v2", - "content-recommender/server/src/main/scala/com/twitter/contentrecommender:cr-mixer-deps", + "content-recommender/server/src/main/scala/com/ExTwitter/contentrecommender:cr-mixer-deps", "content-recommender/thrift/src/main/thrift:thrift-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/candidate_generation", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/featureswitch", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/candidate_generation", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/config", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/featureswitch", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/ranker", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/scribe", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/similarity_engine", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/source_signal", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", - "discovery-common/src/main/scala/com/twitter/discovery/common/configapi", + "discovery-common/src/main/scala/com/ExTwitter/discovery/common/configapi", "featureswitches/featureswitches-core", - "featureswitches/featureswitches-core/src/main/scala/com/twitter/featureswitches/v2/builder", + "featureswitches/featureswitches-core/src/main/scala/com/ExTwitter/featureswitches/v2/builder", "finagle-internal/finagle-grpc/src/main/scala", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/authentication", - "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/authentication", + "finatra-internal/kafka/src/main/scala/com/ExTwitter/finatra/kafka/consumers", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-modules/src/main/scala", "finatra/inject/inject-thrift-client", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "frigate/frigate-common:util", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/candidate", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/health", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/interests", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/strato", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/store/common", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/candidate", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/health", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/interests", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/strato", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/store/common", "hydra/partition/thrift/src/main/thrift:thrift-scala", "hydra/root/thrift/src/main/thrift:thrift-scala", "mediaservices/commons/src/main/scala:futuretracker", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", "qig-ranker/thrift/src/main/thrift:thrift-scala", - "relevance-platform/src/main/scala/com/twitter/relevance_platform/common/health_store", - "relevance-platform/src/main/scala/com/twitter/relevance_platform/common/injection", + "relevance-platform/src/main/scala/com/ExTwitter/relevance_platform/common/health_store", + "relevance-platform/src/main/scala/com/ExTwitter/relevance_platform/common/injection", "relevance-platform/thrift/src/main/thrift:thrift-scala", - "representation-manager/client/src/main/scala/com/twitter/representation_manager", - "representation-manager/client/src/main/scala/com/twitter/representation_manager/config", - "representation-manager/server/src/main/scala/com/twitter/representation_manager/migration", + "representation-manager/client/src/main/scala/com/ExTwitter/representation_manager", + "representation-manager/client/src/main/scala/com/ExTwitter/representation_manager/config", + "representation-manager/server/src/main/scala/com/ExTwitter/representation_manager/migration", "representation-manager/server/src/main/thrift:thrift-scala", "representation-scorer/server/src/main/thrift:thrift-scala", "servo/decider", "servo/util/src/main/scala", "simclusters-ann/thrift/src/main/thrift:thrift-scala", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/ml/api:api-base", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/scala/com/twitter/algebird_internal/injection", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/ml/api/embedding", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/scalding_internal/multiformat/format", - "src/scala/com/twitter/simclusters_v2/candidate_source", - "src/scala/com/twitter/simclusters_v2/common", - "src/scala/com/twitter/storehaus_internal/manhattan", - "src/scala/com/twitter/storehaus_internal/manhattan/config", - "src/scala/com/twitter/storehaus_internal/memcache", - "src/scala/com/twitter/storehaus_internal/memcache/config", - "src/scala/com/twitter/storehaus_internal/offline", - "src/scala/com/twitter/storehaus_internal/util", - "src/scala/com/twitter/topic_recos/stores", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/frigate:frigate-common-thrift-scala", - "src/thrift/com/twitter/frigate:frigate-thrift-scala", - "src/thrift/com/twitter/frigate/data_pipeline/scalding:blue_verified_annotations-scala", - "src/thrift/com/twitter/hermit/stp:hermit-stp-scala", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/ml/api:embedding-scala", - "src/thrift/com/twitter/ml/featurestore:ml-feature-store-embedding-scala", - "src/thrift/com/twitter/onboarding/relevance/coldstart_lookalike:coldstartlookalike-thrift-scala", - "src/thrift/com/twitter/recos:recos-common-scala", - "src/thrift/com/twitter/recos/user_ad_graph:user_ad_graph-scala", - "src/thrift/com/twitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", - "src/thrift/com/twitter/recos/user_tweet_graph:user_tweet_graph-scala", - "src/thrift/com/twitter/recos/user_tweet_graph_plus:user_tweet_graph_plus-scala", - "src/thrift/com/twitter/recos/user_video_graph:user_video_graph-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/query_interaction_graph/service:qig-service-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "src/thrift/com/twitter/topic_recos:topic_recos-thrift-scala", - "src/thrift/com/twitter/trends/trip_v1:trip-tweets-thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/twistly:twistly-scala", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/ml/api:api-base", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/scala/com/ExTwitter/algebird_internal/injection", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/ml/api/embedding", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/scalding_internal/multiformat/format", + "src/scala/com/ExTwitter/simclusters_v2/candidate_source", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/scala/com/ExTwitter/storehaus_internal/manhattan", + "src/scala/com/ExTwitter/storehaus_internal/manhattan/config", + "src/scala/com/ExTwitter/storehaus_internal/memcache", + "src/scala/com/ExTwitter/storehaus_internal/memcache/config", + "src/scala/com/ExTwitter/storehaus_internal/offline", + "src/scala/com/ExTwitter/storehaus_internal/util", + "src/scala/com/ExTwitter/topic_recos/stores", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/frigate:frigate-common-thrift-scala", + "src/thrift/com/ExTwitter/frigate:frigate-thrift-scala", + "src/thrift/com/ExTwitter/frigate/data_pipeline/scalding:blue_verified_annotations-scala", + "src/thrift/com/ExTwitter/hermit/stp:hermit-stp-scala", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/ml/api:embedding-scala", + "src/thrift/com/ExTwitter/ml/featurestore:ml-feature-store-embedding-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/coldstart_lookalike:coldstartlookalike-thrift-scala", + "src/thrift/com/ExTwitter/recos:recos-common-scala", + "src/thrift/com/ExTwitter/recos/user_ad_graph:user_ad_graph-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_graph:user_tweet_graph-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_graph_plus:user_tweet_graph_plus-scala", + "src/thrift/com/ExTwitter/recos/user_video_graph:user_video_graph-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/query_interaction_graph/service:qig-service-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/topic_recos:topic_recos-thrift-scala", + "src/thrift/com/ExTwitter/trends/trip_v1:trip-tweets-thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/twistly:twistly-scala", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "stitch/stitch-storehaus", "stitch/stitch-tweetypie/src/main/scala", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "user-signal-service/thrift/src/main/thrift:thrift-scala", - "util-internal/scribe/src/main/scala/com/twitter/logging", + "util-internal/scribe/src/main/scala/com/ExTwitter/logging", "util/util-hashing", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BlueVerifiedAnnotationStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BlueVerifiedAnnotationStoreModule.scala index 21769d3fa..4fbd93e53 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BlueVerifiedAnnotationStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/BlueVerifiedAnnotationStoreModule.scala @@ -1,25 +1,25 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.inject.TwitterModule -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.data_pipeline.scalding.thriftscala.BlueVerifiedAnnotationsV2 -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.Athena -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.storehaus_internal.util.HDFSPath -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.hermit.store.common.ObservedCachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.data_pipeline.scalding.thriftscala.BlueVerifiedAnnotationsV2 +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.Athena +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.hermit.store.common.ObservedCachedReadableStore -object BlueVerifiedAnnotationStoreModule extends TwitterModule { +object BlueVerifiedAnnotationStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CertoStratoStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CertoStratoStoreModule.scala index 9908aa702..b52a856f8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CertoStratoStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CertoStratoStoreModule.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.store.common.ObservedCachedReadableStore -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.Client -import com.twitter.topic_recos.stores.CertoTopicTopKTweetsStore -import com.twitter.topic_recos.thriftscala.TweetWithScores +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.store.common.ObservedCachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.Client +import com.ExTwitter.topic_recos.stores.CertoTopicTopKTweetsStore +import com.ExTwitter.topic_recos.thriftscala.TweetWithScores -object CertoStratoStoreModule extends TwitterModule { +object CertoStratoStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserAdGraphStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserAdGraphStoreModule.scala index 33a0d33fc..a4db077c9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserAdGraphStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserAdGraphStoreModule.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest -import com.twitter.recos.user_ad_graph.thriftscala.RelatedAdResponse -import com.twitter.recos.user_ad_graph.thriftscala.UserAdGraph -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest +import com.ExTwitter.recos.user_ad_graph.thriftscala.RelatedAdResponse +import com.ExTwitter.recos.user_ad_graph.thriftscala.UserAdGraph +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Named import javax.inject.Singleton -object ConsumersBasedUserAdGraphStoreModule extends TwitterModule { +object ConsumersBasedUserAdGraphStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserTweetGraphStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserTweetGraphStoreModule.scala index ab027744a..69c9e8360 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserTweetGraphStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserTweetGraphStoreModule.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_tweet_graph.thriftscala.ConsumersBasedRelatedTweetRequest -import com.twitter.recos.user_tweet_graph.thriftscala.RelatedTweetResponse -import com.twitter.recos.user_tweet_graph.thriftscala.UserTweetGraph -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_tweet_graph.thriftscala.ConsumersBasedRelatedTweetRequest +import com.ExTwitter.recos.user_tweet_graph.thriftscala.RelatedTweetResponse +import com.ExTwitter.recos.user_tweet_graph.thriftscala.UserTweetGraph +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Named import javax.inject.Singleton -object ConsumersBasedUserTweetGraphStoreModule extends TwitterModule { +object ConsumersBasedUserTweetGraphStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserVideoGraphStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserVideoGraphStoreModule.scala index 05cf496d8..c29f77cc9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserVideoGraphStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/ConsumersBasedUserVideoGraphStoreModule.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest -import com.twitter.recos.user_video_graph.thriftscala.RelatedTweetResponse -import com.twitter.recos.user_video_graph.thriftscala.UserVideoGraph -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest +import com.ExTwitter.recos.user_video_graph.thriftscala.RelatedTweetResponse +import com.ExTwitter.recos.user_video_graph.thriftscala.UserVideoGraph +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Named import javax.inject.Singleton -object ConsumersBasedUserVideoGraphStoreModule extends TwitterModule { +object ConsumersBasedUserVideoGraphStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CrMixerParamConfigModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CrMixerParamConfigModule.scala index baece7947..a661c6a64 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CrMixerParamConfigModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/CrMixerParamConfigModule.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.timelines.configapi.Config -import com.twitter.cr_mixer.param.CrMixerParamConfig -import com.twitter.inject.TwitterModule +import com.ExTwitter.timelines.configapi.Config +import com.ExTwitter.cr_mixer.param.CrMixerParamConfig +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton -object CrMixerParamConfigModule extends TwitterModule { +object CrMixerParamConfigModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/DiffusionStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/DiffusionStoreModule.scala index dc95f07f5..90cc0be8a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/DiffusionStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/DiffusionStoreModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.bijection.Injection -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.TweetsWithScore -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.Apollo -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.bijection.Injection +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.TweetsWithScore +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.Apollo +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.storehaus_internal.util.HDFSPath import javax.inject.Named import javax.inject.Singleton -object DiffusionStoreModule extends TwitterModule { +object DiffusionStoreModule extends ExTwitterModule { type UserId = Long implicit val longCodec = implicitly[Injection[Long, Array[Byte]]] implicit val tweetRecsInjection: Injection[TweetsWithScore, Array[Byte]] = diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EarlybirdRecencyBasedCandidateStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EarlybirdRecencyBasedCandidateStoreModule.scala index c0fe025f0..551f10bff 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EarlybirdRecencyBasedCandidateStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EarlybirdRecencyBasedCandidateStoreModule.scala @@ -1,34 +1,34 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.EarlybirdClientId -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.FacetsToFetch -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.GetCollectorTerminationParams -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.GetEarlybirdQuery -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.MetadataOptions -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.SeqLongInjection -import com.twitter.hashing.KeyHasher -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.search.common.query.thriftjava.thriftscala.CollectorParams -import com.twitter.search.earlybird.thriftscala.EarlybirdRequest -import com.twitter.search.earlybird.thriftscala.EarlybirdResponseCode -import com.twitter.search.earlybird.thriftscala.EarlybirdService -import com.twitter.search.earlybird.thriftscala.ThriftSearchQuery -import com.twitter.search.earlybird.thriftscala.ThriftSearchRankingMode -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Duration -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.EarlybirdClientId +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.FacetsToFetch +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.GetCollectorTerminationParams +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.GetEarlybirdQuery +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.MetadataOptions +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.SeqLongInjection +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.search.common.query.thriftjava.thriftscala.CollectorParams +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdRequest +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdResponseCode +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdService +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchQuery +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchRankingMode +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future import javax.inject.Named -object EarlybirdRecencyBasedCandidateStoreModule extends TwitterModule { +object EarlybirdRecencyBasedCandidateStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EmbeddingStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EmbeddingStoreModule.scala index 26d9f8ad1..7607601b7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EmbeddingStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/EmbeddingStoreModule.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.bijection.Injection -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.scrooge.CompactScalaCodec -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.inject.TwitterModule -import com.twitter.ml.api.{thriftscala => api} -import com.twitter.simclusters_v2.thriftscala.CandidateTweetsList -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.Apollo -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.bijection.Injection +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.scrooge.CompactScalaCodec +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.ml.api.{thriftscala => api} +import com.ExTwitter.simclusters_v2.thriftscala.CandidateTweetsList +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.Apollo +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.storehaus_internal.util.HDFSPath import javax.inject.Named import javax.inject.Singleton -object EmbeddingStoreModule extends TwitterModule { +object EmbeddingStoreModule extends ExTwitterModule { type UserId = Long implicit val mbcgUserEmbeddingInjection: Injection[api.Embedding, Array[Byte]] = CompactScalaCodec(api.Embedding) @@ -123,7 +123,7 @@ object EmbeddingStoreModule extends TwitterModule { def debuggerDemoUserEmbeddingStore( serviceIdentifier: ServiceIdentifier ): ReadableStore[InternalId, api.Embedding] = { - // This dataset is from src/scala/com/twitter/wtf/beam/bq_embedding_export/sql/MlfExperimentalUserEmbeddingScalaDataset.sql + // This dataset is from src/scala/com/ExTwitter/wtf/beam/bq_embedding_export/sql/MlfExperimentalUserEmbeddingScalaDataset.sql // Change the above sql if you want to use a diff embedding val manhattanROConfig = ManhattanROConfig( HDFSPath(""), // not needed @@ -141,7 +141,7 @@ object EmbeddingStoreModule extends TwitterModule { def debuggerDemoTweetEmbeddingStore( serviceIdentifier: ServiceIdentifier ): ReadableStore[InternalId, api.Embedding] = { - // This dataset is from src/scala/com/twitter/wtf/beam/bq_embedding_export/sql/MlfExperimentalTweetEmbeddingScalaDataset.sql + // This dataset is from src/scala/com/ExTwitter/wtf/beam/bq_embedding_export/sql/MlfExperimentalTweetEmbeddingScalaDataset.sql // Change the above sql if you want to use a diff embedding val manhattanROConfig = ManhattanROConfig( HDFSPath(""), // not needed diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/FrsStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/FrsStoreModule.scala index cfe044afd..31922c65c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/FrsStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/FrsStoreModule.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.source_signal.FrsStore -import com.twitter.cr_mixer.source_signal.FrsStore.FrsQueryResult -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.source_signal.FrsStore +import com.ExTwitter.cr_mixer.source_signal.FrsStore.FrsQueryResult +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named -object FrsStoreModule extends TwitterModule { +object FrsStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/MHMtlsParamsModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/MHMtlsParamsModule.scala index 339d0330a..bffa70239 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/MHMtlsParamsModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/MHMtlsParamsModule.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.inject.TwitterModule -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams import javax.inject.Singleton -object MHMtlsParamsModule extends TwitterModule { +object MHMtlsParamsModule extends ExTwitterModule { @Singleton @Provides def providesManhattanMtlsParams( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/OfflineCandidateStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/OfflineCandidateStoreModule.scala index db4a3fa5e..125a5b24c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/OfflineCandidateStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/OfflineCandidateStoreModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.bijection.Injection -import com.twitter.bijection.scrooge.CompactScalaCodec -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.CandidateTweetsList -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.Apollo -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.bijection.Injection +import com.ExTwitter.bijection.scrooge.CompactScalaCodec +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.CandidateTweetsList +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.Apollo +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.storehaus_internal.util.HDFSPath import javax.inject.Named import javax.inject.Singleton -object OfflineCandidateStoreModule extends TwitterModule { +object OfflineCandidateStoreModule extends ExTwitterModule { type UserId = Long implicit val tweetCandidatesInjection: Injection[CandidateTweetsList, Array[Byte]] = CompactScalaCodec(CandidateTweetsList) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphOonStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphOonStoreModule.scala index 3d9a71a1c..f3d15bc2b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphOonStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphOonStoreModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.app.Flag -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq -object RealGraphOonStoreModule extends TwitterModule { +object RealGraphOonStoreModule extends ExTwitterModule { private val userRealGraphOonColumnPath: Flag[String] = flag[String]( name = "crMixer.userRealGraphOonColumnPath", diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphStoreMhModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphStoreMhModule.scala index 0cd1a3ad7..b8d655960 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphStoreMhModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RealGraphStoreMhModule.scala @@ -1,30 +1,30 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.UserId -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.Apollo -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.storehaus_internal.util.HDFSPath -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.cr_mixer.param.decider.DeciderKey -import com.twitter.hermit.store.common.DeciderableReadableStore -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.Apollo +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.cr_mixer.param.decider.DeciderKey +import com.ExTwitter.hermit.store.common.DeciderableReadableStore +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq -object RealGraphStoreMhModule extends TwitterModule { +object RealGraphStoreMhModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationManagerModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationManagerModule.scala index 227e5fff3..733e37bcc 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationManagerModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationManagerModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.SimClustersEmbedding -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.representation_manager.thriftscala.SimClustersEmbeddingView -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.ModelVersion +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.SimClustersEmbedding +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.representation_manager.thriftscala.SimClustersEmbeddingView +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.ModelVersion import com.google.inject.Provides import com.google.inject.Singleton import javax.inject.Named -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.simclusters_v2.thriftscala.{SimClustersEmbedding => ThriftSimClustersEmbedding} +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.simclusters_v2.thriftscala.{SimClustersEmbedding => ThriftSimClustersEmbedding} -object RepresentationManagerModule extends TwitterModule { +object RepresentationManagerModule extends ExTwitterModule { private val ColPathPrefix = "recommendations/representation_manager/" private val SimclustersTweetColPath = ColPathPrefix + "simClustersEmbedding.Tweet" private val SimclustersUserColPath = ColPathPrefix + "simClustersEmbedding.User" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationScorerModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationScorerModule.scala index 7db6474cc..e20221ace 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationScorerModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/RepresentationScorerModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.simclusters_v2.thriftscala.ModelVersion -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.storehaus.ReadableStore -import com.twitter.simclusters_v2.thriftscala.ScoringAlgorithm +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.simclusters_v2.thriftscala.ModelVersion +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.simclusters_v2.thriftscala.ScoringAlgorithm import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore import javax.inject.Named -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.representationscorer.thriftscala.ListScoreId +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.representationscorer.thriftscala.ListScoreId -object RepresentationScorerModule extends TwitterModule { +object RepresentationScorerModule extends ExTwitterModule { private val rsxColumnPath = "recommendations/representation_scorer/listScore" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SampleSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SampleSimilarityEngineModule.scala index 98c3f4af6..c157f4509 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SampleSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SampleSimilarityEngineModule.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.LookupSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.LookupSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Singleton /** * In this example we build a [[StandardSimilarityEngine]] to wrap a dummy store */ -object SimpleSimilarityEngineModule extends TwitterModule { +object SimpleSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton def providesSimpleSimilarityEngine( @@ -50,7 +50,7 @@ object SimpleSimilarityEngineModule extends TwitterModule { /** * In this example we build a [[LookupSimilarityEngine]] to wrap a dummy store with 2 versions */ -object LookupSimilarityEngineModule extends TwitterModule { +object LookupSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton def providesLookupSimilarityEngine( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SimClustersANNServiceNameToClientMapper.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SimClustersANNServiceNameToClientMapper.scala index 305839816..c07606289 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SimClustersANNServiceNameToClientMapper.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SimClustersANNServiceNameToClientMapper.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.inject.TwitterModule -import com.twitter.simclustersann.thriftscala.SimClustersANNService +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclustersann.thriftscala.SimClustersANNService import javax.inject.Named -object SimClustersANNServiceNameToClientMapper extends TwitterModule { +object SimClustersANNServiceNameToClientMapper extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SkitStratoStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SkitStratoStoreModule.scala index 318c2ed00..9d730b623 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SkitStratoStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/SkitStratoStoreModule.scala @@ -1,30 +1,30 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedCachedReadableStore -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.Client -import com.twitter.topic_recos.thriftscala.TopicTopTweets -import com.twitter.topic_recos.thriftscala.TopicTweet -import com.twitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedCachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.Client +import com.ExTwitter.topic_recos.thriftscala.TopicTopTweets +import com.ExTwitter.topic_recos.thriftscala.TopicTweet +import com.ExTwitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey /** * Strato store that wraps the topic top tweets pipeline indexed from a Summingbird job */ -object SkitStratoStoreModule extends TwitterModule { +object SkitStratoStoreModule extends ExTwitterModule { val column = "recommendations/topic_recos/topicTopTweets" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/StrongTiePredictionStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/StrongTiePredictionStoreModule.scala index 51d556077..a09c47094 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/StrongTiePredictionStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/StrongTiePredictionStoreModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.app.Flag -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.UserId -import com.twitter.hermit.stp.thriftscala.STPResult -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.hermit.stp.thriftscala.STPResult +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} import javax.inject.Named -object StrongTiePredictionStoreModule extends TwitterModule { +object StrongTiePredictionStoreModule extends ExTwitterModule { private val strongTiePredictionColumnPath: Flag[String] = flag[String]( name = "crMixer.strongTiePredictionColumnPath", diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TripCandidateStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TripCandidateStoreModule.scala index 802d5c986..d5a4bcdf4 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TripCandidateStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TripCandidateStoreModule.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripTweet -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripTweets -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripDomain +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripTweet +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripTweets +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripDomain import javax.inject.Named -object TripCandidateStoreModule extends TwitterModule { +object TripCandidateStoreModule extends ExTwitterModule { private val stratoColumn = "trends/trip/tripTweetsDataflowProd" @Provides diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetInfoStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetInfoStoreModule.scala index a3a794e8e..344e59e5f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetInfoStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetInfoStoreModule.scala @@ -1,49 +1,49 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.contentrecommender.thriftscala.TweetInfo -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.frigate.common.store.health.TweetHealthModelStore -import com.twitter.frigate.common.store.health.TweetHealthModelStore.TweetHealthModelStoreConfig -import com.twitter.frigate.common.store.health.UserHealthModelStore -import com.twitter.frigate.thriftscala.TweetHealthScores -import com.twitter.frigate.thriftscala.UserAgathaScores -import com.twitter.hermit.store.common.DeciderableReadableStore -import com.twitter.hermit.store.common.ObservedCachedReadableStore -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.contentrecommender.store.TweetInfoStore -import com.twitter.contentrecommender.store.TweetyPieFieldsStore -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderKey -import com.twitter.frigate.data_pipeline.scalding.thriftscala.BlueVerifiedAnnotationsV2 -import com.twitter.recos.user_tweet_graph_plus.thriftscala.UserTweetGraphPlus -import com.twitter.recos.user_tweet_graph_plus.thriftscala.TweetEngagementScores -import com.twitter.relevance_platform.common.health_store.UserMediaRepresentationHealthStore -import com.twitter.relevance_platform.common.health_store.MagicRecsRealTimeAggregatesStore -import com.twitter.relevance_platform.thriftscala.MagicRecsRealTimeAggregatesScores -import com.twitter.relevance_platform.thriftscala.UserMediaRepresentationScores -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.tweetypie.thriftscala.TweetService -import com.twitter.util.Future -import com.twitter.util.JavaTimer -import com.twitter.util.Timer +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.contentrecommender.thriftscala.TweetInfo +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.frigate.common.store.health.TweetHealthModelStore +import com.ExTwitter.frigate.common.store.health.TweetHealthModelStore.TweetHealthModelStoreConfig +import com.ExTwitter.frigate.common.store.health.UserHealthModelStore +import com.ExTwitter.frigate.thriftscala.TweetHealthScores +import com.ExTwitter.frigate.thriftscala.UserAgathaScores +import com.ExTwitter.hermit.store.common.DeciderableReadableStore +import com.ExTwitter.hermit.store.common.ObservedCachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.contentrecommender.store.TweetInfoStore +import com.ExTwitter.contentrecommender.store.TweetyPieFieldsStore +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderKey +import com.ExTwitter.frigate.data_pipeline.scalding.thriftscala.BlueVerifiedAnnotationsV2 +import com.ExTwitter.recos.user_tweet_graph_plus.thriftscala.UserTweetGraphPlus +import com.ExTwitter.recos.user_tweet_graph_plus.thriftscala.TweetEngagementScores +import com.ExTwitter.relevance_platform.common.health_store.UserMediaRepresentationHealthStore +import com.ExTwitter.relevance_platform.common.health_store.MagicRecsRealTimeAggregatesStore +import com.ExTwitter.relevance_platform.thriftscala.MagicRecsRealTimeAggregatesScores +import com.ExTwitter.relevance_platform.thriftscala.UserMediaRepresentationScores +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.tweetypie.thriftscala.TweetService +import com.ExTwitter.util.Future +import com.ExTwitter.util.JavaTimer +import com.ExTwitter.util.Timer import javax.inject.Named -object TweetInfoStoreModule extends TwitterModule { +object TweetInfoStoreModule extends ExTwitterModule { implicit val timer: Timer = new JavaTimer(true) override def modules: Seq[Module] = Seq(UnifiedCacheClient) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecentEngagedUserStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecentEngagedUserStoreModule.scala index 2e379e545..8f4b7a8d7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecentEngagedUserStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecentEngagedUserStoreModule.scala @@ -1,18 +1,18 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.app.Flag -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.app.Flag +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers -object TweetRecentEngagedUserStoreModule extends TwitterModule { +object TweetRecentEngagedUserStoreModule extends ExTwitterModule { private val tweetRecentEngagedUsersStoreDefaultVersion = 0 // DefaultVersion for tweetEngagedUsersStore, whose key = (tweetId, DefaultVersion) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecommendationResultsStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecommendationResultsStoreModule.scala index 04c03eda6..d2283066c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecommendationResultsStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TweetRecommendationResultsStoreModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.thriftscala.CrMixerTweetResponse -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.hermit.store.common.ReadableWritableStore -import com.twitter.hermit.store.common.ObservedReadableWritableMemcacheStore -import com.twitter.simclusters_v2.common.UserId +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.thriftscala.CrMixerTweetResponse +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.hermit.store.common.ReadableWritableStore +import com.ExTwitter.hermit.store.common.ObservedReadableWritableMemcacheStore +import com.ExTwitter.simclusters_v2.common.UserId import javax.inject.Named -object TweetRecommendationResultsStoreModule extends TwitterModule { +object TweetRecommendationResultsStoreModule extends ExTwitterModule { @Provides @Singleton def providesTweetRecommendationResultsStore( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwhinCollabFilterStratoStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwhinCollabFilterStratoStoreModule.scala index 4275ad2a8..569a3c808 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwhinCollabFilterStratoStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwhinCollabFilterStratoStoreModule.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.inject.TwitterModule -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine.TwhinCollabFilterView -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine.TwhinCollabFilterView +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named -object TwhinCollabFilterStratoStoreModule extends TwitterModule { +object TwhinCollabFilterStratoStoreModule extends ExTwitterModule { val stratoColumnPath: String = "cuad/twhin/getCollabFilterTweetCandidatesProd.User" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwiceClustersMembersStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwiceClustersMembersStoreModule.scala index a15e2549a..6baa5d5fd 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwiceClustersMembersStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/TwiceClustersMembersStoreModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.app.Flag -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.simclusters_v2.thriftscala.OrderedClustersAndMembers +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.simclusters_v2.thriftscala.OrderedClustersAndMembers import javax.inject.Named -object TwiceClustersMembersStoreModule extends TwitterModule { +object TwiceClustersMembersStoreModule extends ExTwitterModule { private val twiceClustersMembersColumnPath: Flag[String] = flag[String]( name = "crMixer.twiceClustersMembersColumnPath", diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UnifiedCacheClient.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UnifiedCacheClient.scala index 3b48f4c02..500386c0d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UnifiedCacheClient.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UnifiedCacheClient.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.app.Flag -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.memcached.Client -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus_internal.memcache.MemcacheStore -import com.twitter.storehaus_internal.util.ClientName -import com.twitter.storehaus_internal.util.ZkEndPoint +import com.ExTwitter.app.Flag +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.memcached.Client +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus_internal.memcache.MemcacheStore +import com.ExTwitter.storehaus_internal.util.ClientName +import com.ExTwitter.storehaus_internal.util.ZkEndPoint import javax.inject.Named -object UnifiedCacheClient extends TwitterModule { +object UnifiedCacheClient extends ExTwitterModule { private val TIME_OUT = 20.milliseconds diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceColumnModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceColumnModule.scala index b15ebe0fe..4649874b0 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceColumnModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceColumnModule.scala @@ -1,18 +1,18 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.usersignalservice.thriftscala.BatchSignalRequest -import com.twitter.usersignalservice.thriftscala.BatchSignalResponse +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.usersignalservice.thriftscala.BatchSignalRequest +import com.ExTwitter.usersignalservice.thriftscala.BatchSignalResponse import javax.inject.Named -object UserSignalServiceColumnModule extends TwitterModule { +object UserSignalServiceColumnModule extends ExTwitterModule { private val UssColumnPath = "recommendations/user-signal-service/signals" @Provides diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceStoreModule.scala index cc55f0e9a..c9d28a3c6 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserSignalServiceStoreModule.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore -import com.twitter.strato.client.{Client => StratoClient} -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.source_signal.UssStore -import com.twitter.cr_mixer.source_signal.UssStore.Query -import com.twitter.frigate.common.store.strato.StratoFetchableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.usersignalservice.thriftscala.BatchSignalRequest -import com.twitter.usersignalservice.thriftscala.BatchSignalResponse -import com.twitter.usersignalservice.thriftscala.SignalType -import com.twitter.usersignalservice.thriftscala.{Signal => UssSignal} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.strato.client.{Client => StratoClient} +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.source_signal.UssStore +import com.ExTwitter.cr_mixer.source_signal.UssStore.Query +import com.ExTwitter.frigate.common.store.strato.StratoFetchableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.usersignalservice.thriftscala.BatchSignalRequest +import com.ExTwitter.usersignalservice.thriftscala.BatchSignalResponse +import com.ExTwitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.usersignalservice.thriftscala.{Signal => UssSignal} import javax.inject.Named -object UserSignalServiceStoreModule extends TwitterModule { +object UserSignalServiceStoreModule extends ExTwitterModule { private val UssColumnPath = "recommendations/user-signal-service/signals" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserStateStoreModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserStateStoreModule.scala index 6db2c38fd..529e1eb31 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserStateStoreModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/UserStateStoreModule.scala @@ -1,41 +1,41 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.bijection.Bufferable -import com.twitter.bijection.Injection -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.UserId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.ManhattanRO -import com.twitter.storehaus_internal.manhattan.ManhattanROConfig -import com.twitter.storehaus_internal.util.HDFSPath -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.core_workflows.user_model.thriftscala.CondensedUserState -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderKey -import com.twitter.hermit.store.common.DeciderableReadableStore -import com.twitter.storehaus_internal.manhattan.Apollo -import com.twitter.storehaus_internal.util.ApplicationID -import com.twitter.storehaus_internal.util.DatasetName -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.JavaTimer -import com.twitter.util.Time -import com.twitter.util.TimeoutException -import com.twitter.util.Timer +import com.ExTwitter.bijection.Bufferable +import com.ExTwitter.bijection.Injection +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.ManhattanRO +import com.ExTwitter.storehaus_internal.manhattan.ManhattanROConfig +import com.ExTwitter.storehaus_internal.util.HDFSPath +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.core_workflows.user_model.thriftscala.CondensedUserState +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderKey +import com.ExTwitter.hermit.store.common.DeciderableReadableStore +import com.ExTwitter.storehaus_internal.manhattan.Apollo +import com.ExTwitter.storehaus_internal.util.ApplicationID +import com.ExTwitter.storehaus_internal.util.DatasetName +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.JavaTimer +import com.ExTwitter.util.Time +import com.ExTwitter.util.TimeoutException +import com.ExTwitter.util.Timer import javax.inject.Named -object UserStateStoreModule extends TwitterModule { +object UserStateStoreModule extends ExTwitterModule { implicit val timer: Timer = new JavaTimer(true) final val NewUserCreateDaysThreshold = 7 final val DefaultUnknownUserStateValue = 100 diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/ABDeciderModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/ABDeciderModule.scala index 9d981f4f3..97b53970d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/ABDeciderModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/ABDeciderModule.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core import com.google.inject.Provides import com.google.inject.name.Named -import com.twitter.abdecider.ABDeciderFactory -import com.twitter.abdecider.LoggingABDecider -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.logging.Logger +import com.ExTwitter.abdecider.ABDeciderFactory +import com.ExTwitter.abdecider.LoggingABDecider +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logging.Logger import javax.inject.Singleton -object ABDeciderModule extends TwitterModule { +object ABDeciderModule extends ExTwitterModule { flag( name = "abdecider.path", diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerFlagModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerFlagModule.scala index 9e7b9938a..573212c21 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerFlagModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerFlagModule.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core -import com.twitter.inject.TwitterModule +import com.ExTwitter.inject.ExTwitterModule object CrMixerFlagName { val SERVICE_FLAG = "cr_mixer.flag" val DarkTrafficFilterDeciderKey = "thrift.dark.traffic.filter.decider_key" } -object CrMixerFlagModule extends TwitterModule { +object CrMixerFlagModule extends ExTwitterModule { import CrMixerFlagName._ flag[Boolean](name = SERVICE_FLAG, default = false, help = "This is a CR Mixer flag") diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerLoggingABDeciderModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerLoggingABDeciderModule.scala index 6b674495f..9e3399286 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerLoggingABDeciderModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/CrMixerLoggingABDeciderModule.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core import com.google.inject.Provides -import com.twitter.abdecider.LoggingABDecider -import com.twitter.cr_mixer.featureswitch.CrMixerLoggingABDecider -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule +import com.ExTwitter.abdecider.LoggingABDecider +import com.ExTwitter.cr_mixer.featureswitch.CrMixerLoggingABDecider +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton -object CrMixerLoggingABDeciderModule extends TwitterModule { +object CrMixerLoggingABDeciderModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureContextBuilderModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureContextBuilderModule.scala index 18d262c54..b31f4d59f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureContextBuilderModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureContextBuilderModule.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core import com.google.inject.Provides -import com.twitter.discovery.common.configapi.FeatureContextBuilder -import com.twitter.featureswitches.v2.FeatureSwitches -import com.twitter.inject.TwitterModule +import com.ExTwitter.discovery.common.configapi.FeatureContextBuilder +import com.ExTwitter.featureswitches.v2.FeatureSwitches +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton -object FeatureContextBuilderModule extends TwitterModule { +object FeatureContextBuilderModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureSwitchesModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureSwitchesModule.scala index a87d1f54b..1643b1537 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureSwitchesModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/FeatureSwitchesModule.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core import com.google.inject.Provides -import com.twitter.cr_mixer.featureswitch.CrMixerLoggingABDecider -import com.twitter.featureswitches.v2.FeatureSwitches -import com.twitter.featureswitches.v2.builder.FeatureSwitchesBuilder -import com.twitter.featureswitches.v2.experimentation.NullBucketImpressor -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.util.Duration +import com.ExTwitter.cr_mixer.featureswitch.CrMixerLoggingABDecider +import com.ExTwitter.featureswitches.v2.FeatureSwitches +import com.ExTwitter.featureswitches.v2.builder.FeatureSwitchesBuilder +import com.ExTwitter.featureswitches.v2.experimentation.NullBucketImpressor +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.util.Duration import javax.inject.Singleton -object FeatureSwitchesModule extends TwitterModule { +object FeatureSwitchesModule extends ExTwitterModule { flag( name = "featureswitches.path", diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/KafkaProducerModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/KafkaProducerModule.scala index 770ad1e7e..f91bb1c42 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/KafkaProducerModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/KafkaProducerModule.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core import com.google.inject.Provides -import com.twitter.cr_mixer.thriftscala.GetTweetsRecommendationsScribe -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finatra.kafka.producers.FinagleKafkaProducerBuilder -import com.twitter.finatra.kafka.producers.KafkaProducerBase -import com.twitter.finatra.kafka.producers.NullKafkaProducer -import com.twitter.finatra.kafka.serde.ScalaSerdes -import com.twitter.inject.TwitterModule +import com.ExTwitter.cr_mixer.thriftscala.GetTweetsRecommendationsScribe +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finatra.kafka.producers.FinagleKafkaProducerBuilder +import com.ExTwitter.finatra.kafka.producers.KafkaProducerBase +import com.ExTwitter.finatra.kafka.producers.NullKafkaProducer +import com.ExTwitter.finatra.kafka.serde.ScalaSerdes +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton import org.apache.kafka.clients.CommonClientConfigs import org.apache.kafka.common.config.SaslConfigs @@ -16,7 +16,7 @@ import org.apache.kafka.common.record.CompressionType import org.apache.kafka.common.security.auth.SecurityProtocol import org.apache.kafka.common.serialization.Serdes -object KafkaProducerModule extends TwitterModule { +object KafkaProducerModule extends ExTwitterModule { @Provides @Singleton @@ -31,7 +31,7 @@ object KafkaProducerFactory { private val jaasConfig = """com.sun.security.auth.module.Krb5LoginModule |required - |principal="cr-mixer@TWITTER.BIZ" + |principal="cr-mixer@ExTwitter.BIZ" |debug=true |useKeyTab=true |storeKey=true diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/LoggerFactoryModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/LoggerFactoryModule.scala index 877ed4bb2..c3640503b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/LoggerFactoryModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/LoggerFactoryModule.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.scribe.ScribeCategories -import com.twitter.cr_mixer.scribe.ScribeCategory -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.logging.BareFormatter -import com.twitter.logging.Level -import com.twitter.logging.Logger -import com.twitter.logging.NullHandler -import com.twitter.logging.QueueingHandler -import com.twitter.logging.ScribeHandler -import com.twitter.logging.{LoggerFactory => TwitterLoggerFactory} +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.scribe.ScribeCategories +import com.ExTwitter.cr_mixer.scribe.ScribeCategory +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.logging.BareFormatter +import com.ExTwitter.logging.Level +import com.ExTwitter.logging.Logger +import com.ExTwitter.logging.NullHandler +import com.ExTwitter.logging.QueueingHandler +import com.ExTwitter.logging.ScribeHandler +import com.ExTwitter.logging.{LoggerFactory => ExTwitterLoggerFactory} import javax.inject.Named import javax.inject.Singleton -object LoggerFactoryModule extends TwitterModule { +object LoggerFactoryModule extends ExTwitterModule { private val DefaultQueueSize = 10000 @@ -123,10 +123,10 @@ object LoggerFactoryModule extends TwitterModule { category: ScribeCategory, environment: String, statsReceiver: StatsReceiver - ): TwitterLoggerFactory = { + ): ExTwitterLoggerFactory = { environment match { case "prod" => - TwitterLoggerFactory( + ExTwitterLoggerFactory( node = category.getProdLoggerFactoryNode, level = Some(Level.INFO), useParents = false, @@ -142,7 +142,7 @@ object LoggerFactoryModule extends TwitterModule { ) ) case _ => - TwitterLoggerFactory( + ExTwitterLoggerFactory( node = category.getStagingLoggerFactoryNode, level = Some(Level.DEBUG), useParents = false, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/MemoizingStatsReceiverModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/MemoizingStatsReceiverModule.scala index ee94cf166..bab0c77f2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/MemoizingStatsReceiverModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/MemoizingStatsReceiverModule.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core -import com.twitter.finagle.stats.LoadedStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.servo.util.MemoizingStatsReceiver +import com.ExTwitter.finagle.stats.LoadedStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.servo.util.MemoizingStatsReceiver -object MemoizingStatsReceiverModule extends TwitterModule { +object MemoizingStatsReceiverModule extends ExTwitterModule { override def configure(): Unit = { bind[StatsReceiver].toInstance(new MemoizingStatsReceiver(LoadedStatsReceiver)) } diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/TimeoutConfigModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/TimeoutConfigModule.scala index 1b6200812..3450d60de 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/TimeoutConfigModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/core/TimeoutConfigModule.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.module.core +package com.ExTwitter.cr_mixer.module.core -import com.twitter.inject.TwitterModule +import com.ExTwitter.inject.ExTwitterModule import com.google.inject.Provides import javax.inject.Singleton -import com.twitter.util.Duration -import com.twitter.app.Flag -import com.twitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.util.Duration +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.config.TimeoutConfig /** * All timeout settings in CrMixer. * Timeout numbers are defined in source/cr-mixer/server/config/deploy.aurora */ -object TimeoutConfigModule extends TwitterModule { +object TimeoutConfigModule extends ExTwitterModule { /** * Flag names for client timeout diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/grpc_client/NaviGRPCClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/grpc_client/NaviGRPCClientModule.scala index 418f44747..7e477cc9d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/grpc_client/NaviGRPCClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/grpc_client/NaviGRPCClientModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module.grpc_client +package com.ExTwitter.cr_mixer.module.grpc_client import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.finagle.Http -import com.twitter.finagle.grpc.FinagleChannelBuilder -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient.MtlsStackClientSyntax -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.util.Duration +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.finagle.Http +import com.ExTwitter.finagle.grpc.FinagleChannelBuilder +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient.MtlsStackClientSyntax +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.util.Duration import io.grpc.ManagedChannel import javax.inject.Named import javax.inject.Singleton -object NaviGRPCClientModule extends TwitterModule { +object NaviGRPCClientModule extends ExTwitterModule { val maxRetryAttempts = 3 diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/CertoTopicTweetSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/CertoTopicTweetSimilarityEngineModule.scala index 6c82329b0..3d107cc04 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/CertoTopicTweetSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/CertoTopicTweetSimilarityEngineModule.scala @@ -1,28 +1,28 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TopicTweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine.Query -import com.twitter.cr_mixer.similarity_engine.EngineQuery -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.storehaus.ReadableStore -import com.twitter.topic_recos.thriftscala.TweetWithScores +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TopicTweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine.Query +import com.ExTwitter.cr_mixer.similarity_engine.EngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.topic_recos.thriftscala.TweetWithScores import javax.inject.Named import javax.inject.Singleton -object CertoTopicTweetSimilarityEngineModule extends TwitterModule { +object CertoTopicTweetSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerBasedWalsSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerBasedWalsSimilarityEngineModule.scala index e09f8b639..0fc87f7a4 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerBasedWalsSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerBasedWalsSimilarityEngineModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule import io.grpc.ManagedChannel import javax.inject.Named -object ConsumerBasedWalsSimilarityEngineModule extends TwitterModule { +object ConsumerBasedWalsSimilarityEngineModule extends ExTwitterModule { @Provides @Named(ModuleNames.ConsumerBasedWalsSimilarityEngine) def providesConsumerBasedWalsSimilarityEngine( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngineModule.scala index 8d209798b..ccbdbd7a7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngineModule.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TripTweetWithScore -import com.twitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTripSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TripEngineQuery -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.common.SimClustersEmbedding -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripTweet -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripDomain +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TripTweetWithScore +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerEmbeddingBasedTripSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TripEngineQuery +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.common.SimClustersEmbedding +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripTweet +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripDomain import javax.inject.Named -object ConsumerEmbeddingBasedTripSimilarityEngineModule extends TwitterModule { +object ConsumerEmbeddingBasedTripSimilarityEngineModule extends ExTwitterModule { @Provides @Named(ModuleNames.ConsumerEmbeddingBasedTripSimilarityEngine) def providesConsumerEmbeddingBasedTripSimilarityEngineModule( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngineModule.scala index 289d052b4..b0970df62 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngineModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.module.EmbeddingStoreModule -import com.twitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule -import com.twitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.module.EmbeddingStoreModule +import com.ExTwitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named -import com.twitter.ml.api.{thriftscala => api} -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.ml.api.{thriftscala => api} +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType -object ConsumerEmbeddingBasedTwHINSimilarityEngineModule extends TwitterModule { +object ConsumerEmbeddingBasedTwHINSimilarityEngineModule extends ExTwitterModule { @Provides @Named(ModuleNames.ConsumerEmbeddingBasedTwHINANNSimilarityEngine) def providesConsumerEmbeddingBasedTwHINANNSimilarityEngine( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule.scala index 704093e36..b17212d1f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule.scala @@ -1,25 +1,25 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module package similarity_engine import com.google.inject.Provides -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.module.EmbeddingStoreModule -import com.twitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule -import com.twitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.module.EmbeddingStoreModule +import com.ExTwitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named -import com.twitter.ml.api.{thriftscala => api} -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.ml.api.{thriftscala => api} +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType -object ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule extends TwitterModule { +object ConsumerEmbeddingBasedTwoTowerSimilarityEngineModule extends ExTwitterModule { @Provides @Named(ModuleNames.ConsumerEmbeddingBasedTwoTowerANNSimilarityEngine) def providesConsumerEmbeddingBasedTwoTowerANNSimilarityEngine( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngineModule.scala index e66a48a87..d757c782f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngineModule.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.ConsumersBasedUserAdGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest -import com.twitter.recos.user_ad_graph.thriftscala.RelatedAdResponse -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.ConsumersBasedUserAdGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest +import com.ExTwitter.recos.user_ad_graph.thriftscala.RelatedAdResponse +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton -object ConsumersBasedUserAdGraphSimilarityEngineModule extends TwitterModule { +object ConsumersBasedUserAdGraphSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngineModule.scala index 977a90f25..dc28daaba 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngineModule.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.ConsumersBasedUserVideoGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest -import com.twitter.recos.user_video_graph.thriftscala.RelatedTweetResponse -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.ConsumersBasedUserVideoGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest +import com.ExTwitter.recos.user_video_graph.thriftscala.RelatedTweetResponse +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton -object ConsumersBasedUserVideoGraphSimilarityEngineModule extends TwitterModule { +object ConsumersBasedUserVideoGraphSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/DiffusionBasedSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/DiffusionBasedSimilarityEngineModule.scala index f48521085..670ed676f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/DiffusionBasedSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/DiffusionBasedSimilarityEngineModule.scala @@ -1,25 +1,25 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module package similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.simclusters_v2.thriftscala.TweetsWithScore -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.similarity_engine.DiffusionBasedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.DiffusionBasedSimilarityEngine.Query -import com.twitter.cr_mixer.similarity_engine.LookupSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.simclusters_v2.thriftscala.TweetsWithScore +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.similarity_engine.DiffusionBasedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.DiffusionBasedSimilarityEngine.Query +import com.ExTwitter.cr_mixer.similarity_engine.LookupSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton -object DiffusionBasedSimilarityEngineModule extends TwitterModule { +object DiffusionBasedSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton @Named(ModuleNames.DiffusionBasedSimilarityEngine) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/EarlybirdSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/EarlybirdSimilarityEngineModule.scala index 6cdabfce4..b822c252b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/EarlybirdSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/EarlybirdSimilarityEngineModule.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.EarlybirdModelBasedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.EarlybirdRecencyBasedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.EarlybirdSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.EarlybirdTensorflowBasedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdModelBasedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdRecencyBasedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdTensorflowBasedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton -object EarlybirdSimilarityEngineModule extends TwitterModule { +object EarlybirdSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUnifiedSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUnifiedSimilarityEngineModule.scala index b16d59924..9752970f3 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUnifiedSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUnifiedSimilarityEngineModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUserTweetGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUnifiedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUserTweetGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUnifiedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton -object ProducerBasedUnifiedSimilarityEngineModule extends TwitterModule { +object ProducerBasedUnifiedSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserAdGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserAdGraphSimilarityEngineModule.scala index d221a58a9..64524456e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserAdGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserAdGraphSimilarityEngineModule.scala @@ -1,28 +1,28 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUserAdGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine._ -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_ad_graph.thriftscala.UserAdGraph +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUserAdGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine._ +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_ad_graph.thriftscala.UserAdGraph import javax.inject.Named import javax.inject.Singleton -object ProducerBasedUserAdGraphSimilarityEngineModule extends TwitterModule { +object ProducerBasedUserAdGraphSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngineModule.scala index a5821d01c..81ba22807 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngineModule.scala @@ -1,28 +1,28 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.ProducerBasedUserTweetGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine._ -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_tweet_graph.thriftscala.UserTweetGraph +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.ProducerBasedUserTweetGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine._ +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_tweet_graph.thriftscala.UserTweetGraph import javax.inject.Named import javax.inject.Singleton -object ProducerBasedUserTweetGraphSimilarityEngineModule extends TwitterModule { +object ProducerBasedUserTweetGraphSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SimClustersANNSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SimClustersANNSimilarityEngineModule.scala index 7af68327d..8e39fe0c6 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SimClustersANNSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SimClustersANNSimilarityEngineModule.scala @@ -1,32 +1,32 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine.Query -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hashing.KeyHasher -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.hermit.store.common.ObservedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.simclusters_v2.candidate_source.SimClustersANNCandidateSource.CacheableShortTTLEmbeddingTypes -import com.twitter.simclustersann.thriftscala.SimClustersANNService -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine.Query +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.hermit.store.common.ObservedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.simclusters_v2.candidate_source.SimClustersANNCandidateSource.CacheableShortTTLEmbeddingTypes +import com.ExTwitter.simclustersann.thriftscala.SimClustersANNService +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Named import javax.inject.Singleton -object SimClustersANNSimilarityEngineModule extends TwitterModule { +object SimClustersANNSimilarityEngineModule extends ExTwitterModule { private val keyHasher: KeyHasher = KeyHasher.FNV1A_64 diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SkitTopicTweetSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SkitTopicTweetSimilarityEngineModule.scala index 4de20fcfe..26a16a89e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SkitTopicTweetSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/SkitTopicTweetSimilarityEngineModule.scala @@ -1,29 +1,29 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TopicTweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.EngineQuery -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.SkitHighPrecisionTopicTweetSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine.Query -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore -import com.twitter.topic_recos.thriftscala.TopicTweet -import com.twitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TopicTweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.EngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.SkitHighPrecisionTopicTweetSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine.Query +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.topic_recos.thriftscala.TopicTweet +import com.ExTwitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey import javax.inject.Named import javax.inject.Singleton -object SkitTopicTweetSimilarityEngineModule extends TwitterModule { +object SkitTopicTweetSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedQigSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedQigSimilarityEngineModule.scala index 06d9a2186..dd7dbabca 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedQigSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedQigSimilarityEngineModule.scala @@ -1,28 +1,28 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine._ -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedQigSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.qig_ranker.thriftscala.QigRanker +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine._ +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.keyHasher +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedQigSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.qig_ranker.thriftscala.QigRanker import javax.inject.Named import javax.inject.Singleton -object TweetBasedQigSimilarityEngineModule extends TwitterModule { +object TweetBasedQigSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedTwHINSimlarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedTwHINSimlarityEngineModule.scala index cc9da4772..6c25936fd 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedTwHINSimlarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedTwHINSimlarityEngineModule.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.module.EmbeddingStoreModule -import com.twitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule -import com.twitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.module.EmbeddingStoreModule +import com.ExTwitter.cr_mixer.module.thrift_client.AnnQueryServiceClientModule +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named -import com.twitter.ml.api.{thriftscala => api} -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.HnswANNEngineQuery -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.ml.api.{thriftscala => api} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNEngineQuery +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} -object TweetBasedTwHINSimlarityEngineModule extends TwitterModule { +object TweetBasedTwHINSimlarityEngineModule extends ExTwitterModule { @Provides @Named(ModuleNames.TweetBasedTwHINANNSimilarityEngine) def providesTweetBasedTwHINANNSimilarityEngine( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUnifiedSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUnifiedSimilarityEngineModule.scala index aa54bf071..4fc97080f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUnifiedSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUnifiedSimilarityEngineModule.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedQigSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUserTweetGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUserVideoGraphSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.HnswANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimClustersANNSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedQigSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUnifiedSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUserTweetGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUserVideoGraphSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton -object TweetBasedUnifiedSimilarityEngineModule extends TwitterModule { +object TweetBasedUnifiedSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserAdGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserAdGraphSimilarityEngineModule.scala index 7288e603f..1f11fd72c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserAdGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserAdGraphSimilarityEngineModule.scala @@ -1,33 +1,33 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUserAdGraphSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hashing.KeyHasher -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_ad_graph.thriftscala.UserAdGraph -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storehaus.ReadableStore -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUserAdGraphSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_ad_graph.thriftscala.UserAdGraph +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers import javax.inject.Named import javax.inject.Singleton -object TweetBasedUserAdGraphSimilarityEngineModule extends TwitterModule { +object TweetBasedUserAdGraphSimilarityEngineModule extends ExTwitterModule { private val keyHasher: KeyHasher = KeyHasher.FNV1A_64 diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserTweetGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserTweetGraphSimilarityEngineModule.scala index a7a388199..cff9706fe 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserTweetGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserTweetGraphSimilarityEngineModule.scala @@ -1,34 +1,34 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module package similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUserTweetGraphSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hashing.KeyHasher -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_tweet_graph.thriftscala.UserTweetGraph -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storehaus.ReadableStore -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUserTweetGraphSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_tweet_graph.thriftscala.UserTweetGraph +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers import javax.inject.Named import javax.inject.Singleton -object TweetBasedUserTweetGraphSimilarityEngineModule extends TwitterModule { +object TweetBasedUserTweetGraphSimilarityEngineModule extends ExTwitterModule { private val keyHasher: KeyHasher = KeyHasher.FNV1A_64 diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserVideoGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserVideoGraphSimilarityEngineModule.scala index efc354d21..43cace74d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserVideoGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TweetBasedUserVideoGraphSimilarityEngineModule.scala @@ -1,33 +1,33 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TweetBasedUserVideoGraphSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hashing.KeyHasher -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_video_graph.thriftscala.UserVideoGraph -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storehaus.ReadableStore -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TweetBasedUserVideoGraphSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_video_graph.thriftscala.UserVideoGraph +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers import javax.inject.Named import javax.inject.Singleton -object TweetBasedUserVideoGraphSimilarityEngineModule extends TwitterModule { +object TweetBasedUserVideoGraphSimilarityEngineModule extends ExTwitterModule { private val keyHasher: KeyHasher = KeyHasher.FNV1A_64 diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TwhinCollabFilterLookupSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TwhinCollabFilterLookupSimilarityEngineModule.scala index 4f7c909e3..988b34afa 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TwhinCollabFilterLookupSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/TwhinCollabFilterLookupSimilarityEngineModule.scala @@ -1,21 +1,21 @@ -package com.twitter.cr_mixer.module +package com.ExTwitter.cr_mixer.module package similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.similarity_engine.LookupSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine.Query -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.similarity_engine.LookupSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine.Query +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.TwhinCollabFilterSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Named import javax.inject.Singleton @@ -24,7 +24,7 @@ import javax.inject.Singleton * twhin based candidate store which follow the same pattern as TwHIN Collaborative Filtering. */ -object TwhinCollabFilterLookupSimilarityEngineModule extends TwitterModule { +object TwhinCollabFilterLookupSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton @Named(ModuleNames.TwhinCollabFilterSimilarityEngine) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/UserTweetEntityGraphSimilarityEngineModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/UserTweetEntityGraphSimilarityEngineModule.scala index cf2093208..555ba1c4d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/UserTweetEntityGraphSimilarityEngineModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/similarity_engine/UserTweetEntityGraphSimilarityEngineModule.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.module.similarity_engine +package com.ExTwitter.cr_mixer.module.similarity_engine import com.google.inject.Provides -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithScoreAndSocialProof -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.similarity_engine.UserTweetEntityGraphSimilarityEngine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.similarity_engine.StandardSimilarityEngine -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityGraph +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithScoreAndSocialProof +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.similarity_engine.UserTweetEntityGraphSimilarityEngine +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.DeciderConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.GatingConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.similarity_engine.StandardSimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityGraph import javax.inject.Named import javax.inject.Singleton -object UserTweetEntityGraphSimilarityEngineModule extends TwitterModule { +object UserTweetEntityGraphSimilarityEngineModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/AnnQueryServiceClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/AnnQueryServiceClientModule.scala index 17dbfcae5..b50788af0 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/AnnQueryServiceClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/AnnQueryServiceClientModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client import com.google.inject.Provides -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.inject.TwitterModule +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Named import javax.inject.Singleton -object AnnQueryServiceClientModule extends TwitterModule { +object AnnQueryServiceClientModule extends ExTwitterModule { final val DebuggerDemoAnnServiceClientName = "DebuggerDemoAnnServiceClient" @Provides @@ -26,7 +26,7 @@ object AnnQueryServiceClientModule extends TwitterModule { statsReceiver: StatsReceiver, timeoutConfig: TimeoutConfig, ): AnnQueryService.MethodPerEndpoint = { - // This ANN is built from the embeddings in src/scala/com/twitter/wtf/beam/bq_embedding_export/sql/MlfExperimentalTweetEmbeddingScalaDataset.sql + // This ANN is built from the embeddings in src/scala/com/ExTwitter/wtf/beam/bq_embedding_export/sql/MlfExperimentalTweetEmbeddingScalaDataset.sql // Change the above sql if you want to build the index from a diff embedding val dest = "/s/cassowary/mlf-experimental-ann-service" val label = "experimental-ann" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/EarlybirdSearchClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/EarlybirdSearchClientModule.scala index c399a5a37..55e7a70e4 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/EarlybirdSearchClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/EarlybirdSearchClientModule.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.finagle.ThriftMux -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.search.earlybird.thriftscala.EarlybirdService -import com.twitter.inject.Injector -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.EarlybirdClientTimeoutFlagName -import com.twitter.finagle.service.RetryBudget -import com.twitter.util.Duration +package com.ExTwitter.cr_mixer.module.thrift_client +import com.ExTwitter.app.Flag +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdService +import com.ExTwitter.inject.Injector +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.EarlybirdClientTimeoutFlagName +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.util.Duration import org.apache.thrift.protocol.TCompactProtocol object EarlybirdSearchClientModule diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/FrsClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/FrsClientModule.scala index 1084f2c1a..bec485c15 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/FrsClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/FrsClientModule.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.finagle.ThriftMux -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.FrsClientTimeoutFlagName -import com.twitter.finagle.service.RetryBudget -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration +import com.ExTwitter.app.Flag +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.FrsClientTimeoutFlagName +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration object FrsClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraPartitionClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraPartitionClientModule.scala index c208e111c..acad746f4 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraPartitionClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraPartitionClientModule.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.hydra.partition.{thriftscala => ht} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.hydra.partition.{thriftscala => ht} object HydraPartitionClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraRootClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraRootClientModule.scala index 28d5b1767..f5c5a1139 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraRootClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/HydraRootClientModule.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.hydra.root.{thriftscala => ht} -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.hydra.root.{thriftscala => ht} +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule object HydraRootClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/QigServiceClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/QigServiceClientModule.scala index 86675e349..0c95b6c7b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/QigServiceClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/QigServiceClientModule.scala @@ -1,18 +1,18 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.QigRankerClientTimeoutFlagName -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.qig_ranker.thriftscala.QigRanker -import com.twitter.util.Duration -import com.twitter.util.Throw +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.QigRankerClientTimeoutFlagName +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.qig_ranker.thriftscala.QigRanker +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw object QigServiceClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/SimClustersAnnServiceClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/SimClustersAnnServiceClientModule.scala index 7504ab6c3..a131b6a46 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/SimClustersAnnServiceClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/SimClustersAnnServiceClientModule.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client import com.google.inject.Provides -import com.twitter.conversions.PercentOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.inject.TwitterModule -import com.twitter.simclustersann.{thriftscala => t} +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.simclustersann.{thriftscala => t} import javax.inject.Named import javax.inject.Singleton -object SimClustersAnnServiceClientModule extends TwitterModule { +object SimClustersAnnServiceClientModule extends ExTwitterModule { @Provides @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/TweetyPieClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/TweetyPieClientModule.scala index 610ccc95a..ccefbe4d6 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/TweetyPieClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/TweetyPieClientModule.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client import com.google.inject.Provides -import com.twitter.app.Flag -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.TweetypieClientTimeoutFlagName -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.service.RetryBudget -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.stitch.tweetypie.{TweetyPie => STweetyPie} -import com.twitter.tweetypie.thriftscala.TweetService -import com.twitter.util.Duration -import com.twitter.util.Throw +import com.ExTwitter.app.Flag +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.TweetypieClientTimeoutFlagName +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.stitch.tweetypie.{TweetyPie => STweetyPie} +import com.ExTwitter.tweetypie.thriftscala.TweetService +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw import javax.inject.Singleton object TweetyPieClientModule diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserAdGraphClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserAdGraphClientModule.scala index 4c1f337ab..aaf81c920 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserAdGraphClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserAdGraphClientModule.scala @@ -1,21 +1,21 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.UserAdGraphClientTimeoutFlagName -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient.MtlsThriftMuxClientSyntax -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.service.RetryBudget -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.recos.user_ad_graph.thriftscala.UserAdGraph -import com.twitter.util.Duration -import com.twitter.util.Throw +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.UserAdGraphClientTimeoutFlagName +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient.MtlsThriftMuxClientSyntax +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.recos.user_ad_graph.thriftscala.UserAdGraph +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw object UserAdGraphClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetEntityGraphClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetEntityGraphClientModule.scala index 337f943f7..0bc230e81 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetEntityGraphClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetEntityGraphClientModule.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.UtegClientTimeoutFlagName -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.service.RetryBudget -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityGraph -import com.twitter.util.Duration -import com.twitter.util.Throw +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.UtegClientTimeoutFlagName +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityGraph +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw object UserTweetEntityGraphClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphClientModule.scala index 572786fd1..ca1392c9c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphClientModule.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.recos.user_tweet_graph.thriftscala.UserTweetGraph -import com.twitter.util.Duration -import com.twitter.util.Throw -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.UserTweetGraphClientTimeoutFlagName -import com.twitter.finagle.service.RetryBudget +import com.ExTwitter.app.Flag +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.recos.user_tweet_graph.thriftscala.UserTweetGraph +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.UserTweetGraphClientTimeoutFlagName +import com.ExTwitter.finagle.service.RetryBudget object UserTweetGraphClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphPlusClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphPlusClientModule.scala index 41ae96e53..670de6981 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphPlusClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserTweetGraphPlusClientModule.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.UserTweetGraphPlusClientTimeoutFlagName -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.service.RetryBudget -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.recos.user_tweet_graph_plus.thriftscala.UserTweetGraphPlus -import com.twitter.util.Duration -import com.twitter.util.Throw +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.UserTweetGraphPlusClientTimeoutFlagName +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.recos.user_tweet_graph_plus.thriftscala.UserTweetGraphPlus +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw object UserTweetGraphPlusClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserVideoGraphClientModule.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserVideoGraphClientModule.scala index 7c311cbfa..e9c35f199 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserVideoGraphClientModule.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/module/thrift_client/UserVideoGraphClientModule.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.module.thrift_client +package com.ExTwitter.cr_mixer.module.thrift_client -import com.twitter.app.Flag -import com.twitter.cr_mixer.module.core.TimeoutConfigModule.UserVideoGraphClientTimeoutFlagName -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.service.ReqRep -import com.twitter.finagle.service.ResponseClass -import com.twitter.finagle.service.RetryBudget -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.recos.user_video_graph.thriftscala.UserVideoGraph -import com.twitter.util.Duration -import com.twitter.util.Throw +import com.ExTwitter.app.Flag +import com.ExTwitter.cr_mixer.module.core.TimeoutConfigModule.UserVideoGraphClientTimeoutFlagName +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.service.ReqRep +import com.ExTwitter.finagle.service.ResponseClass +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.recos.user_video_graph.thriftscala.UserVideoGraph +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Throw object UserVideoGraphClientModule extends ThriftMethodBuilderClientModule[ diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/AdsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/AdsParams.scala index 880f1b27c..f6de1e81d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/AdsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/AdsParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object AdsParams { object AdsCandidateGenerationMaxCandidatesNumParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BUILD index b24a21394..dee5e3a63 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BUILD @@ -9,19 +9,19 @@ scala_library( "configapi/configapi-abdecider", "configapi/configapi-core", "configapi/configapi-featureswitches:v2", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", - "discovery-common/src/main/scala/com/twitter/discovery/common/configapi", + "discovery-common/src/main/scala/com/ExTwitter/discovery/common/configapi", "featureswitches/featureswitches-core", - "featureswitches/featureswitches-core/src/main/scala/com/twitter/featureswitches/v2/builder", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/authentication", + "featureswitches/featureswitches-core/src/main/scala/com/ExTwitter/featureswitches/v2/builder", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/authentication", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "scribelib/marshallers/src/main/scala/com/twitter/scribelib/marshallers", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "scribelib/marshallers/src/main/scala/com/ExTwitter/scribelib/marshallers", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", "user-signal-service/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BlenderParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BlenderParams.scala index 185fc4440..a49056ce8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BlenderParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BlenderParams.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object BlenderParams { object BlendingAlgorithmEnum extends Enumeration { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BypassInterleaveAndRankParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BypassInterleaveAndRankParams.scala index 20cbc369a..9b8041611 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BypassInterleaveAndRankParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/BypassInterleaveAndRankParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object BypassInterleaveAndRankParams { object EnableTwhinCollabFilterBypassParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerBasedWalsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerBasedWalsParams.scala index 15f4d36ab..a54013d30 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerBasedWalsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerBasedWalsParams.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object ConsumerBasedWalsParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedCandidateGenerationParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedCandidateGenerationParams.scala index bedbaf0b9..6aeb6c7c7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedCandidateGenerationParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedCandidateGenerationParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ConsumerEmbeddingBasedCandidateGenerationParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTripParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTripParams.scala index 4b43d42ab..d05165ffc 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTripParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTripParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ConsumerEmbeddingBasedTripParams { object SourceIdParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwHINParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwHINParams.scala index bda14d5d4..9d742454f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwHINParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwHINParams.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil object ConsumerEmbeddingBasedTwHINParams { object ModelIdParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwoTowerParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwoTowerParams.scala index 2a6474adc..33f163807 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwoTowerParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumerEmbeddingBasedTwoTowerParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig.TwoTowerFavALL20220808 -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.cr_mixer.model.ModelConfig.TwoTowerFavALL20220808 +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ConsumerEmbeddingBasedTwoTowerParams { object ModelIdParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserAdGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserAdGraphParams.scala index a730e0994..b44968d93 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserAdGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserAdGraphParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ConsumersBasedUserAdGraphParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserTweetGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserTweetGraphParams.scala index 47c67887f..694d6503d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserTweetGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserTweetGraphParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param /** * ConsumersBasedUserTweetGraph Params, there are multiple ways (e.g. FRS, RealGraphOon) to generate consumersSeedSet for ConsumersBasedUserTweetGraph diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserVideoGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserVideoGraphParams.scala index ab0133632..10a2f5f6a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserVideoGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ConsumersBasedUserVideoGraphParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param /** * ConsumersBasedUserVideoGraph Params: there are multiple ways (e.g. FRS, RealGraphIn) to generate consumersSeedSet for ConsumersBasedUserTweetGraph diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CrMixerParamConfig.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CrMixerParamConfig.scala index ada50d965..019ea1d9a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CrMixerParamConfig.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CrMixerParamConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.CompositeConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.CompositeConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param object CrMixerParamConfig { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedCandidateGenerationParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedCandidateGenerationParams.scala index 966048b0f..4c5b611e7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedCandidateGenerationParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedCandidateGenerationParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object CustomizedRetrievalBasedCandidateGenerationParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedFTROfflineInterestedInParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedFTROfflineInterestedInParams.scala index d6d1b0430..39ae82af5 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedFTROfflineInterestedInParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedFTROfflineInterestedInParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +package com.ExTwitter.cr_mixer.param +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object CustomizedRetrievalBasedFTROfflineInterestedInParams { object CustomizedRetrievalBasedFTROfflineInterestedInSource diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedOfflineInterestedInParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedOfflineInterestedInParams.scala index d5244e135..517dbdf6f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedOfflineInterestedInParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedOfflineInterestedInParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object CustomizedRetrievalBasedOfflineInterestedInParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedTwhinParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedTwhinParams.scala index 646cdb163..a14a56fbb 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedTwhinParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/CustomizedRetrievalBasedTwhinParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object CustomizedRetrievalBasedTwhinParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/EarlybirdFrsBasedCandidateGenerationParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/EarlybirdFrsBasedCandidateGenerationParams.scala index 2a9ffb424..93d23b571 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/EarlybirdFrsBasedCandidateGenerationParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/EarlybirdFrsBasedCandidateGenerationParams.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType_ModelBased -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType_RecencyBased -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType_TensorflowBased -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType_ModelBased +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType_RecencyBased +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType_TensorflowBased +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object EarlybirdFrsBasedCandidateGenerationParams { object CandidateGenerationEarlybirdSimilarityEngineType extends Enumeration { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/FrsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/FrsParams.scala index 18bf1d474..a458fad62 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/FrsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/FrsParams.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param -import com.twitter.follow_recommendations.thriftscala.DisplayLocation -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.logging.Logger -import com.twitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.thriftscala.DisplayLocation +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.logging.Logger +import com.ExTwitter.finagle.stats.NullStatsReceiver object FrsParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GlobalParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GlobalParams.scala index 77def9a2a..a457c266f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GlobalParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GlobalParams.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.simclusters_v2.common.ModelVersions -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.simclusters_v2.common.ModelVersions +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration /** * Instantiate Params that do not relate to a specific product. * The params in this file correspond to config repo file - * [[https://sourcegraph.twitter.biz/config-git.twitter.biz/config/-/blob/features/cr-mixer/main/twistly_core.yml]] + * [[https://sourcegraph.ExTwitter.biz/config-git.ExTwitter.biz/config/-/blob/features/cr-mixer/main/twistly_core.yml]] */ object GlobalParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodProfileClickParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodProfileClickParams.scala index 175dccfac..5773b7e6c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodProfileClickParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodProfileClickParams.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param -import com.twitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.usersignalservice.thriftscala.SignalType object GoodProfileClickParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodTweetClickParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodTweetClickParams.scala index 949048821..b0f680e3b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodTweetClickParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/GoodTweetClickParams.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param -import com.twitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.usersignalservice.thriftscala.SignalType object GoodTweetClickParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/InterestedInParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/InterestedInParams.scala index 503469ac3..564adcd58 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/InterestedInParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/InterestedInParams.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.simclusters_v2.thriftscala.{EmbeddingType => SimClustersEmbeddingType} -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.simclusters_v2.thriftscala.{EmbeddingType => SimClustersEmbeddingType} +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object InterestedInParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedCandidateGenerationParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedCandidateGenerationParams.scala index e9ae7feaa..8176bd1d8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedCandidateGenerationParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedCandidateGenerationParams.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ProducerBasedCandidateGenerationParams { // Source params. Not being used. It is always set to true in prod diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserAdGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserAdGraphParams.scala index 197db074a..45f83bf88 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserAdGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserAdGraphParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ProducerBasedUserAdGraphParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserTweetGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserTweetGraphParams.scala index 0747d0afd..06bccd856 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserTweetGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/ProducerBasedUserTweetGraphParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object ProducerBasedUserTweetGraphParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RankerParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RankerParams.scala index e7785ffb8..9e25b5b68 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RankerParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RankerParams.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RankerParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphInParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphInParams.scala index 7614ca0eb..beaae7cb7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphInParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphInParams.scala @@ -1,6 +1,6 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi._ +import com.ExTwitter.timelines.configapi._ object RealGraphInParams { object EnableSourceGraphParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphOonParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphOonParams.scala index 8b303c55b..4648e65d4 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphOonParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RealGraphOonParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RealGraphOonParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentFollowsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentFollowsParams.scala index ecb75c82f..b06124375 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentFollowsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentFollowsParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentFollowsParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNegativeSignalParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNegativeSignalParams.scala index 429d6daba..fb348ff16 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNegativeSignalParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNegativeSignalParams.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentNegativeSignalParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNotificationsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNotificationsParams.scala index 641118a05..c290d374d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNotificationsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentNotificationsParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentNotificationsParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentOriginalTweetsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentOriginalTweetsParams.scala index 5b485e61f..03bb937c9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentOriginalTweetsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentOriginalTweetsParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentOriginalTweetsParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentReplyTweetsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentReplyTweetsParams.scala index 7e6617c6d..7dce6e517 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentReplyTweetsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentReplyTweetsParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentReplyTweetsParams { // Source params diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentRetweetsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentRetweetsParams.scala index 93c1fe356..280706491 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentRetweetsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentRetweetsParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentRetweetsParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentTweetFavoritesParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentTweetFavoritesParams.scala index 22d0d6a70..0ca704c43 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentTweetFavoritesParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RecentTweetFavoritesParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RecentTweetFavoritesParams { // Source params diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetGlobalParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetGlobalParams.scala index f5e5ee21e..56d2042a1 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetGlobalParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetGlobalParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RelatedTweetGlobalParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetProducerBasedParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetProducerBasedParams.scala index 3851f6144..95c1322a2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetProducerBasedParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetProducerBasedParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RelatedTweetProducerBasedParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetTweetBasedParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetTweetBasedParams.scala index 10d01a5d1..94ca08c6b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetTweetBasedParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedTweetTweetBasedParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RelatedTweetTweetBasedParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetGlobalParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetGlobalParams.scala index eeed18e6c..1dfa1f0f3 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetGlobalParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetGlobalParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RelatedVideoTweetGlobalParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetTweetBasedParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetTweetBasedParams.scala index 3b40653bc..1f89e50ab 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetTweetBasedParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RelatedVideoTweetTweetBasedParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RelatedVideoTweetTweetBasedParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RepeatedProfileVisitsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RepeatedProfileVisitsParams.scala index 4cb205de9..2e343d91e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RepeatedProfileVisitsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/RepeatedProfileVisitsParams.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.usersignalservice.thriftscala.SignalType -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object RepeatedProfileVisitsParams { object ProfileMinVisitParam extends Enumeration { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/SimClustersANNParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/SimClustersANNParams.scala index b650d5123..252826318 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/SimClustersANNParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/SimClustersANNParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object SimClustersANNParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TopicTweetParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TopicTweetParams.scala index 3ef683f52..ef50da56b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TopicTweetParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TopicTweetParams.scala @@ -1,18 +1,18 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object TopicTweetParams { object MaxTweetAge diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedCandidateGenerationParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedCandidateGenerationParams.scala index 7f94d2e41..c24c1872f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedCandidateGenerationParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedCandidateGenerationParams.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object TweetBasedCandidateGenerationParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedTwHINParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedTwHINParams.scala index c4ecfc6fb..b96bf3192 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedTwHINParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedTwHINParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.cr_mixer.model.ModelConfig -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.cr_mixer.model.ModelConfig +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object TweetBasedTwHINParams { object ModelIdParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserAdGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserAdGraphParams.scala index 9e994b16b..d5f7d67e9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserAdGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserAdGraphParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object TweetBasedUserAdGraphParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserTweetGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserTweetGraphParams.scala index 8cc42f81f..ef3ef72bb 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserTweetGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserTweetGraphParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object TweetBasedUserTweetGraphParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserVideoGraphParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserVideoGraphParams.scala index 0de5d2df7..6bf10fe64 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserVideoGraphParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetBasedUserVideoGraphParams.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object TweetBasedUserVideoGraphParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetSharesParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetSharesParams.scala index 1602441b0..c97a36b27 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetSharesParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/TweetSharesParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param object TweetSharesParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedSETweetCombinationMethod.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedSETweetCombinationMethod.scala index f5b92f138..0553970a5 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedSETweetCombinationMethod.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedSETweetCombinationMethod.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param import scala.language.implicitConversions diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedUSSSignalParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedUSSSignalParams.scala index 071cabc0c..f8a37a187 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedUSSSignalParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UnifiedUSSSignalParams.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param -import com.twitter.usersignalservice.thriftscala.SignalType +package com.ExTwitter.cr_mixer.param +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.usersignalservice.thriftscala.SignalType import scala.language.implicitConversions object UnifiedUSSSignalParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UtegTweetGlobalParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UtegTweetGlobalParams.scala index 29f5a7818..99bc5acdf 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UtegTweetGlobalParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/UtegTweetGlobalParams.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object UtegTweetGlobalParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoTweetFilterParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoTweetFilterParams.scala index 3a93d0a1a..94a41b5a7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoTweetFilterParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoTweetFilterParams.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param object VideoTweetFilterParams { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoViewTweetsParams.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoViewTweetsParams.scala index 44f508d89..c8853ba5f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoViewTweetsParams.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/VideoViewTweetsParams.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.param +package com.ExTwitter.cr_mixer.param -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfig -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil -import com.twitter.timelines.configapi.Param -import com.twitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfig +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.usersignalservice.thriftscala.SignalType object VideoViewTweetsParams { object EnableSourceParam diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/BUILD index 730986d64..1e9a67c3b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/BUILD @@ -11,6 +11,6 @@ scala_library( "finagle/finagle-core/src/main", "finagle/finagle-http/src/main/scala", "servo/decider", - "src/scala/com/twitter/simclusters_v2/common", + "src/scala/com/ExTwitter/simclusters_v2/common", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/CrMixerDecider.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/CrMixerDecider.scala index 8c909ca05..f972f80b2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/CrMixerDecider.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/CrMixerDecider.scala @@ -1,10 +1,10 @@ -package com.twitter.cr_mixer.param.decider +package com.ExTwitter.cr_mixer.param.decider -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.decider.Recipient -import com.twitter.decider.SimpleRecipient -import com.twitter.simclusters_v2.common.DeciderGateBuilderWithIdHashing +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.decider.Recipient +import com.ExTwitter.decider.SimpleRecipient +import com.ExTwitter.simclusters_v2.common.DeciderGateBuilderWithIdHashing import javax.inject.Inject case class CrMixerDecider @Inject() (decider: Decider) { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/DeciderKey.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/DeciderKey.scala index 518ea53db..530d18fd9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/DeciderKey.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/DeciderKey.scala @@ -1,6 +1,6 @@ -package com.twitter.cr_mixer.param.decider +package com.ExTwitter.cr_mixer.param.decider -import com.twitter.servo.decider.DeciderKeyEnum +import com.ExTwitter.servo.decider.DeciderKeyEnum object DeciderConstants { val enableHealthSignalsScoreDeciderKey = "enable_tweet_health_score" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/EndpointLoadShedder.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/EndpointLoadShedder.scala index a53e629a9..060aee39e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/EndpointLoadShedder.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider/EndpointLoadShedder.scala @@ -1,9 +1,9 @@ -package com.twitter.cr_mixer.param.decider +package com.ExTwitter.cr_mixer.param.decider -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Future +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Future import javax.inject.Inject import scala.util.control.NoStackTrace diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/BUILD index 139ecd4c7..896ba80e6 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/BUILD @@ -4,27 +4,27 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:content-recommender-common-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/config", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", "frigate/frigate-common:base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/util:stats_util", - "hydra/common/libraries/src/main/scala/com/twitter/hydra/common/model_config", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/util:stats_util", + "hydra/common/libraries/src/main/scala/com/ExTwitter/hydra/common/model_config", "hydra/partition/thrift/src/main/thrift:thrift-scala", "hydra/root/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/ml/api:data-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/ml/api:data-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/DefaultRanker.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/DefaultRanker.scala index 2ae91642b..6aa6df7f3 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/DefaultRanker.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/DefaultRanker.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.ranker +package com.ExTwitter.cr_mixer.ranker -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.util.Future import javax.inject.Singleton /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/SwitchRanker.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/SwitchRanker.scala index da44f664e..0c45fd556 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/SwitchRanker.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/ranker/SwitchRanker.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.ranker +package com.ExTwitter.cr_mixer.ranker -import com.twitter.cr_mixer.model.BlendedCandidate -import com.twitter.cr_mixer.model.CrCandidateGeneratorQuery -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Future -import com.twitter.util.JavaTimer -import com.twitter.util.Time -import com.twitter.util.Timer +import com.ExTwitter.cr_mixer.model.BlendedCandidate +import com.ExTwitter.cr_mixer.model.CrCandidateGeneratorQuery +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Future +import com.ExTwitter.util.JavaTimer +import com.ExTwitter.util.Time +import com.ExTwitter.util.Timer import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/BUILD index 8e6ae5049..f2c12ef8e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/BUILD @@ -8,15 +8,15 @@ scala_library( "configapi/configapi-core", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/authentication", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/authentication", "finagle/finagle-core/src/main", "frigate/frigate-common:base", "frigate/frigate-common:util", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", "scrooge/scrooge-serializer/src/main/scala", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "util-internal/scribe/src/main/scala/com/twitter/logging", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "util-internal/scribe/src/main/scala/com/ExTwitter/logging", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/ScribeCategory.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/ScribeCategory.scala index b86c9174f..a36767b56 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/ScribeCategory.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/scribe/ScribeCategory.scala @@ -1,4 +1,4 @@ -package com.twitter.cr_mixer.scribe +package com.ExTwitter.cr_mixer.scribe /** * Categories define scribe categories used in cr-mixer service. @@ -54,7 +54,7 @@ object ScribeCategories { * Category represents each scribe log data. * * @param loggerFactoryNode loggerFactory node name in cr-mixer associated with this scribe category - * @param scribeCategory scribe category name (globally unique at Twitter) + * @param scribeCategory scribe category name (globally unique at ExTwitter) */ case class ScribeCategory( loggerFactoryNode: String, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/BUILD.bazel b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/BUILD.bazel index 8fa46c772..cdd2fa8fd 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/BUILD.bazel +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/BUILD.bazel @@ -7,9 +7,9 @@ scala_library( "3rdparty/jvm/javax/inject:javax.inject", "configapi/configapi-core", "cr-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/registry", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/registry", "stitch/stitch-core", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/CrMixerAlertNotificationConfig.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/CrMixerAlertNotificationConfig.scala index df0572ef1..907dbd1a7 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/CrMixerAlertNotificationConfig.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/service/CrMixerAlertNotificationConfig.scala @@ -1,7 +1,7 @@ -package com.twitter.cr_mixer.service +package com.ExTwitter.cr_mixer.service -import com.twitter.product_mixer.core.functional_component.common.alert.Destination -import com.twitter.product_mixer.core.functional_component.common.alert.NotificationGroup +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Destination +import com.ExTwitter.product_mixer.core.functional_component.common.alert.NotificationGroup /** * Notifications (email, pagerduty, etc) can be specific per-alert but it is common for multiple @@ -16,11 +16,11 @@ import com.twitter.product_mixer.core.functional_component.common.alert.Notifica * * * For more information about how to get a PagerDuty key, see: - * https://docbird.twitter.biz/mon/how-to-guides.html?highlight=notificationgroup#set-up-email-pagerduty-and-slack-notifications + * https://docbird.ExTwitter.biz/mon/how-to-guides.html?highlight=notificationgroup#set-up-email-pagerduty-and-slack-notifications */ object CrMixerAlertNotificationConfig { val DefaultNotificationGroup: NotificationGroup = NotificationGroup( - warn = Destination(emails = Seq("no-reply@twitter.com")), - critical = Destination(emails = Seq("no-reply@twitter.com")) + warn = Destination(emails = Seq("no-reply@ExTwitter.com")), + critical = Destination(emails = Seq("no-reply@ExTwitter.com")) ) } diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/BUILD index c7ae7c752..158efa8a8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/BUILD @@ -6,8 +6,8 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", - "3rdparty/jvm/com/twitter/storehaus:memcache", + "3rdparty/jvm/com/ExTwitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:memcache", "3rdparty/jvm/io/grpc:grpc-api", "3rdparty/jvm/io/grpc:grpc-auth", "3rdparty/jvm/io/grpc:grpc-core", @@ -16,59 +16,59 @@ scala_library( "3rdparty/jvm/io/grpc:grpc-stub", "3rdparty/jvm/io/opil:tensorflow-serving-client", "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "ann/src/main/scala/com/twitter/ann/hnsw", - "ann/src/main/thrift/com/twitter/ann/common:ann-common-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:thrift-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/exception", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/config", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/exception", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/source_signal", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/util", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", "finagle-internal/finagle-grpc/src/main/scala", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/client", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/client", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "frigate/frigate-common:base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/candidate", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/strato", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/util", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/util:stats_util", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/store/common", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/candidate", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/strato", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/util", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/util:stats_util", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/store/common", "mediaservices/commons/src/main/scala:futuretracker", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", "qig-ranker/thrift/src/main/thrift:thrift-scala", - "relevance-platform/src/main/scala/com/twitter/relevance_platform/common/injection", - "relevance-platform/src/main/scala/com/twitter/relevance_platform/simclustersann/multicluster", + "relevance-platform/src/main/scala/com/ExTwitter/relevance_platform/common/injection", + "relevance-platform/src/main/scala/com/ExTwitter/relevance_platform/simclustersann/multicluster", "simclusters-ann/thrift/src/main/thrift:thrift-scala", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/search/common/schema/base", - "src/java/com/twitter/search/common/schema/earlybird", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/ml/api:embedding-scala", - "src/thrift/com/twitter/recos:recos-common-scala", - "src/thrift/com/twitter/recos/user_ad_graph:user_ad_graph-scala", - "src/thrift/com/twitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", - "src/thrift/com/twitter/recos/user_tweet_graph:user_tweet_graph-scala", - "src/thrift/com/twitter/recos/user_video_graph:user_video_graph-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:ranking-scala", - "src/thrift/com/twitter/search/query_interaction_graph/service:qig-service-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "src/thrift/com/twitter/topic_recos:topic_recos-thrift-scala", - "src/thrift/com/twitter/trends/trip_v1:trip-tweets-thrift-scala", - "src/thrift/com/twitter/twistly:twistly-scala", - "strato/src/main/scala/com/twitter/strato/client", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/search/common/schema/base", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/scala/com/ExTwitter/cortex/ml/embeddings/common:Helpers", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/ml/api:embedding-scala", + "src/thrift/com/ExTwitter/recos:recos-common-scala", + "src/thrift/com/ExTwitter/recos/user_ad_graph:user_ad_graph-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_graph:user_tweet_graph-scala", + "src/thrift/com/ExTwitter/recos/user_video_graph:user_video_graph-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:ranking-scala", + "src/thrift/com/ExTwitter/search/query_interaction_graph/service:qig-service-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/topic_recos:topic_recos-thrift-scala", + "src/thrift/com/ExTwitter/trends/trip_v1:trip-tweets-thrift-scala", + "src/thrift/com/ExTwitter/twistly:twistly-scala", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/CertoTopicTweetSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/CertoTopicTweetSimilarityEngine.scala index a57085d0f..6d4899706 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/CertoTopicTweetSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/CertoTopicTweetSimilarityEngine.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine import com.google.inject.Inject import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TopicTweetWithScore -import com.twitter.cr_mixer.param.TopicTweetParams -import com.twitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine._ -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.topic_recos.thriftscala._ -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TopicTweetWithScore +import com.ExTwitter.cr_mixer.param.TopicTweetParams +import com.ExTwitter.cr_mixer.similarity_engine.CertoTopicTweetSimilarityEngine._ +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.topic_recos.thriftscala._ +import com.ExTwitter.util.Future @Singleton case class CertoTopicTweetSimilarityEngine @Inject() ( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerBasedWalsSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerBasedWalsSimilarityEngine.scala index 599704fa7..71d490122 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerBasedWalsSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerBasedWalsSimilarityEngine.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.ConsumerBasedWalsParams -import com.twitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine.Query -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.ConsumerBasedWalsParams +import com.ExTwitter.cr_mixer.similarity_engine.ConsumerBasedWalsSimilarityEngine.Query +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import io.grpc.ManagedChannel import tensorflow.serving.Predict.PredictRequest import tensorflow.serving.Predict.PredictResponse @@ -25,11 +25,11 @@ import tensorflow.serving.Model import org.tensorflow.framework.TensorProto import org.tensorflow.framework.DataType import org.tensorflow.framework.TensorShapeProto -import com.twitter.finagle.grpc.FutureConverters +import com.ExTwitter.finagle.grpc.FutureConverters import java.util.ArrayList import java.lang -import com.twitter.util.Return -import com.twitter.util.Throw +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw import java.util.concurrent.ConcurrentHashMap import scala.jdk.CollectionConverters._ @@ -112,7 +112,7 @@ case class ConsumerBasedWalsSimilarityEngine( val inferRequest = getModelInput(query) FutureConverters - .RichListenableFuture(stub.predict(inferRequest)).toTwitter + .RichListenableFuture(stub.predict(inferRequest)).toExTwitter .transform { case Return(resp) => stats.onSuccess(startTimeMs) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngine.scala index 82a074208..727b5fabf 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTripSimilarityEngine.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.TripTweetWithScore -import com.twitter.cr_mixer.param.ConsumerEmbeddingBasedTripParams -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.ClusterId -import com.twitter.simclusters_v2.common.SimClustersEmbedding -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.timelines.configapi.Params -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.Cluster -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.ClusterDomain -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripTweet -import com.twitter.trends.trip_v1.trip_tweets.thriftscala.TripDomain -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.TripTweetWithScore +import com.ExTwitter.cr_mixer.param.ConsumerEmbeddingBasedTripParams +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.ClusterId +import com.ExTwitter.simclusters_v2.common.SimClustersEmbedding +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.Cluster +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.ClusterDomain +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripTweet +import com.ExTwitter.trends.trip_v1.trip_tweets.thriftscala.TripDomain +import com.ExTwitter.util.Future case class TripEngineQuery( modelId: String, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngine.scala index ed722f3eb..f27882d5e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwHINSimilarityEngine.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.param.ConsumerEmbeddingBasedTwHINParams -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.timelines.configapi +import com.ExTwitter.cr_mixer.param.ConsumerEmbeddingBasedTwHINParams +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.timelines.configapi object ConsumerEmbeddingBasedTwHINSimilarityEngine { def fromParams( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngine.scala index c63d517d6..901198e8e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumerEmbeddingBasedTwoTowerSimilarityEngine.scala @@ -1,8 +1,8 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.param.ConsumerEmbeddingBasedTwoTowerParams -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.timelines.configapi +import com.ExTwitter.cr_mixer.param.ConsumerEmbeddingBasedTwoTowerParams +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.timelines.configapi object ConsumerEmbeddingBasedTwoTowerSimilarityEngine { def fromParams( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngine.scala index 585edc584..8437a839e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserAdGraphSimilarityEngine.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.ConsumersBasedUserAdGraphParams -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest -import com.twitter.recos.user_ad_graph.thriftscala.RelatedAdResponse -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.ConsumersBasedUserAdGraphParams +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest +import com.ExTwitter.recos.user_ad_graph.thriftscala.RelatedAdResponse +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Singleton /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngine.scala index 633f5ee6d..2b0aada2e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ConsumersBasedUserVideoGraphSimilarityEngine.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.ConsumersBasedUserVideoGraphParams -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest -import com.twitter.recos.user_video_graph.thriftscala.RelatedTweetResponse -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.ConsumersBasedUserVideoGraphParams +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest +import com.ExTwitter.recos.user_video_graph.thriftscala.RelatedTweetResponse +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Singleton /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/DiffusionBasedSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/DiffusionBasedSimilarityEngine.scala index a1bc0e248..59bcad047 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/DiffusionBasedSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/DiffusionBasedSimilarityEngine.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.simclusters_v2.thriftscala.TweetsWithScore -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.simclusters_v2.thriftscala.TweetsWithScore +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdModelBasedSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdModelBasedSimilarityEngine.scala index da82b4eb1..7734b262f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdModelBasedSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdModelBasedSimilarityEngine.scala @@ -1,21 +1,21 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.EarlybirdModelBasedSimilarityEngine.EarlybirdModelBasedSearchQuery -import com.twitter.cr_mixer.similarity_engine.EarlybirdSimilarityEngineBase._ -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.EarlybirdClientId -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.FacetsToFetch -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.MetadataOptions -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.Trace -import com.twitter.search.common.ranking.thriftscala.ThriftRankingParams -import com.twitter.search.common.ranking.thriftscala.ThriftScoringFunctionType -import com.twitter.search.earlybird.thriftscala.EarlybirdRequest -import com.twitter.search.earlybird.thriftscala.EarlybirdService -import com.twitter.search.earlybird.thriftscala.ThriftSearchQuery -import com.twitter.search.earlybird.thriftscala.ThriftSearchRankingMode -import com.twitter.search.earlybird.thriftscala.ThriftSearchRelevanceOptions -import com.twitter.simclusters_v2.common.UserId +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdModelBasedSimilarityEngine.EarlybirdModelBasedSearchQuery +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdSimilarityEngineBase._ +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.EarlybirdClientId +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.FacetsToFetch +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.MetadataOptions +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.search.common.ranking.thriftscala.ThriftRankingParams +import com.ExTwitter.search.common.ranking.thriftscala.ThriftScoringFunctionType +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdRequest +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdService +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchQuery +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchRankingMode +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchRelevanceOptions +import com.ExTwitter.simclusters_v2.common.UserId import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdRecencyBasedSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdRecencyBasedSimilarityEngine.scala index 988d666a4..231820313 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdRecencyBasedSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdRecencyBasedSimilarityEngine.scala @@ -1,17 +1,17 @@ -package com.twitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TweetWithAuthor -import com.twitter.cr_mixer.similarity_engine.EarlybirdRecencyBasedSimilarityEngine.EarlybirdRecencyBasedSearchQuery -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +package com.ExTwitter.cr_mixer.similarity_engine +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TweetWithAuthor +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdRecencyBasedSimilarityEngine.EarlybirdRecencyBasedSearchQuery +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngine.scala index be23134eb..fde63f34d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngine.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.TweetWithAuthor -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.TweetWithAuthor +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future class EarlybirdSimilarityEngine[ Query, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineBase.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineBase.scala index ab4eb408e..56aaab0a0 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineBase.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineBase.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.TweetWithAuthor -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.search.earlybird.thriftscala.EarlybirdRequest -import com.twitter.search.earlybird.thriftscala.EarlybirdResponseCode -import com.twitter.search.earlybird.thriftscala.EarlybirdService -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.TweetWithAuthor +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdRequest +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdResponseCode +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdService +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future /** * This trait is a base trait for Earlybird similarity engines. All Earlybird similarity diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineRouter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineRouter.scala index 3237f13f8..057d9e41e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineRouter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdSimilarityEngineRouter.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType_ModelBased -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType_RecencyBased -import com.twitter.cr_mixer.model.EarlybirdSimilarityEngineType_TensorflowBased -import com.twitter.cr_mixer.model.TweetWithAuthor -import com.twitter.cr_mixer.param.EarlybirdFrsBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.EarlybirdFrsBasedCandidateGenerationParams.FrsBasedCandidateGenerationEarlybirdSimilarityEngineTypeParam -import com.twitter.cr_mixer.param.FrsParams.FrsBasedCandidateGenerationMaxCandidatesNumParam -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType_ModelBased +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType_RecencyBased +import com.ExTwitter.cr_mixer.model.EarlybirdSimilarityEngineType_TensorflowBased +import com.ExTwitter.cr_mixer.model.TweetWithAuthor +import com.ExTwitter.cr_mixer.param.EarlybirdFrsBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.EarlybirdFrsBasedCandidateGenerationParams.FrsBasedCandidateGenerationEarlybirdSimilarityEngineTypeParam +import com.ExTwitter.cr_mixer.param.FrsParams.FrsBasedCandidateGenerationMaxCandidatesNumParam +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdTensorflowBasedSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdTensorflowBasedSimilarityEngine.scala index 8df6ec711..a6fa76fc2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdTensorflowBasedSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/EarlybirdTensorflowBasedSimilarityEngine.scala @@ -1,29 +1,29 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.search.earlybird.thriftscala.EarlybirdRequest -import com.twitter.search.earlybird.thriftscala.EarlybirdService -import com.twitter.search.earlybird.thriftscala.ThriftSearchQuery -import com.twitter.util.Time -import com.twitter.search.common.query.thriftjava.thriftscala.CollectorParams -import com.twitter.search.common.ranking.thriftscala.ThriftRankingParams -import com.twitter.search.common.ranking.thriftscala.ThriftScoringFunctionType -import com.twitter.search.earlybird.thriftscala.ThriftSearchRelevanceOptions +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdRequest +import com.ExTwitter.search.earlybird.thriftscala.EarlybirdService +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchQuery +import com.ExTwitter.util.Time +import com.ExTwitter.search.common.query.thriftjava.thriftscala.CollectorParams +import com.ExTwitter.search.common.ranking.thriftscala.ThriftRankingParams +import com.ExTwitter.search.common.ranking.thriftscala.ThriftScoringFunctionType +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchRelevanceOptions import javax.inject.Inject import javax.inject.Singleton import EarlybirdSimilarityEngineBase._ -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.similarity_engine.EarlybirdTensorflowBasedSimilarityEngine.EarlybirdTensorflowBasedSearchQuery -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.EarlybirdClientId -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.FacetsToFetch -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.GetCollectorTerminationParams -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.GetEarlybirdQuery -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.MetadataOptions -import com.twitter.cr_mixer.util.EarlybirdSearchUtil.GetNamedDisjunctions -import com.twitter.search.earlybird.thriftscala.ThriftSearchRankingMode -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Duration +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.similarity_engine.EarlybirdTensorflowBasedSimilarityEngine.EarlybirdTensorflowBasedSearchQuery +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.EarlybirdClientId +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.FacetsToFetch +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.GetCollectorTerminationParams +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.GetEarlybirdQuery +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.MetadataOptions +import com.ExTwitter.cr_mixer.util.EarlybirdSearchUtil.GetNamedDisjunctions +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchRankingMode +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Duration @Singleton case class EarlybirdTensorflowBasedSimilarityEngine @Inject() ( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/FilterUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/FilterUtil.scala index 4cd94d2bb..3aa333072 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/FilterUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/FilterUtil.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time object FilterUtil { @@ -17,7 +17,7 @@ object FilterUtil { // Tweet IDs are approximately chronological (see http://go/snowflake), // so we are building the earliest tweet id once // The per-candidate logic here then be candidate.tweetId > earliestPermittedTweetId, which is far cheaper. - // See @cyao's phab on CrMixer generic age filter for reference https://phabricator.twitter.biz/D903188 + // See @cyao's phab on CrMixer generic age filter for reference https://phabricator.ExTwitter.biz/D903188 val earliestTweetId = SnowflakeId.firstIdFor(Time.now - maxTweetAgeHours) candidates.filter { candidate => candidate.tweetId >= earliestTweetId } } diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/HnswANNSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/HnswANNSimilarityEngine.scala index 4a1422ce9..922e54b12 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/HnswANNSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/HnswANNSimilarityEngine.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.ann.common.thriftscala.Distance -import com.twitter.ann.common.thriftscala.NearestNeighborQuery -import com.twitter.ann.hnsw.HnswCommon -import com.twitter.ann.hnsw.HnswParams -import com.twitter.bijection.Injection -import com.twitter.cortex.ml.embeddings.common.TweetKind -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.MemCacheConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.ml.api.thriftscala.{Embedding => ThriftEmbedding} -import com.twitter.ml.featurestore.lib -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.ann.common.thriftscala.Distance +import com.ExTwitter.ann.common.thriftscala.NearestNeighborQuery +import com.ExTwitter.ann.hnsw.HnswCommon +import com.ExTwitter.ann.hnsw.HnswParams +import com.ExTwitter.bijection.Injection +import com.ExTwitter.cortex.ml.embeddings.common.TweetKind +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.MemCacheConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.ml.api.thriftscala.{Embedding => ThriftEmbedding} +import com.ExTwitter.ml.featurestore.lib +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future case class HnswANNEngineQuery( modelId: String, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/LookupSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/LookupSimilarityEngine.scala index c4e469899..a7d477b1c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/LookupSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/LookupSimilarityEngine.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.MemCacheConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.MemCacheConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future case class LookupEngineQuery[Query]( storeQuery: Query, // the actual Query type of the underlying store diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ModelBasedANNStore.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ModelBasedANNStore.scala index 064bb8b1a..ec6eb6c22 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ModelBasedANNStore.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ModelBasedANNStore.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.ann.common.thriftscala.AnnQueryService -import com.twitter.ann.common.thriftscala.Distance -import com.twitter.ann.common.thriftscala.NearestNeighborQuery -import com.twitter.ann.common.thriftscala.NearestNeighborResult -import com.twitter.ann.hnsw.HnswCommon -import com.twitter.ann.hnsw.HnswParams -import com.twitter.bijection.Injection -import com.twitter.conversions.DurationOps._ -import com.twitter.cortex.ml.embeddings.common.TweetKind -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.mediaservices.commons.codec.ArrayByteBufferCodec -import com.twitter.ml.api.thriftscala.{Embedding => ThriftEmbedding} -import com.twitter.ml.featurestore.lib -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Duration -import com.twitter.util.Future +import com.ExTwitter.ann.common.thriftscala.AnnQueryService +import com.ExTwitter.ann.common.thriftscala.Distance +import com.ExTwitter.ann.common.thriftscala.NearestNeighborQuery +import com.ExTwitter.ann.common.thriftscala.NearestNeighborResult +import com.ExTwitter.ann.hnsw.HnswCommon +import com.ExTwitter.ann.hnsw.HnswParams +import com.ExTwitter.bijection.Injection +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cortex.ml.embeddings.common.TweetKind +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.mediaservices.commons.codec.ArrayByteBufferCodec +import com.ExTwitter.ml.api.thriftscala.{Embedding => ThriftEmbedding} +import com.ExTwitter.ml.featurestore.lib +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future import javax.inject.Singleton /** @@ -105,7 +105,7 @@ object ModelBasedANNStore { val TweetIdByteInjection: Injection[lib.TweetId, Array[Byte]] = TweetKind.byteInjection - // For more information about HNSW algorithm: https://docbird.twitter.biz/ann/hnsw.html + // For more information about HNSW algorithm: https://docbird.ExTwitter.biz/ann/hnsw.html case class Query( sourceId: InternalId, modelId: String, diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUnifiedSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUnifiedSimilarityEngine.scala index f782ae037..3ceb2cbd5 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUnifiedSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUnifiedSimilarityEngine.scala @@ -1,28 +1,28 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.ProducerBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.UnifiedSETweetCombinationMethod -import com.twitter.cr_mixer.param.RelatedTweetProducerBasedParams -import com.twitter.cr_mixer.param.SimClustersANNParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.ModelVersions -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Duration -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.ProducerBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.UnifiedSETweetCombinationMethod +import com.ExTwitter.cr_mixer.param.RelatedTweetProducerBasedParams +import com.ExTwitter.cr_mixer.param.SimClustersANNParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.ModelVersions +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future import javax.inject.Named import javax.inject.Singleton import scala.collection.mutable.ArrayBuffer diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserAdGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserAdGraphSimilarityEngine.scala index c9ebc91e7..a85ab692a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserAdGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserAdGraphSimilarityEngine.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.ProducerBasedUserAdGraphParams -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.recos.user_ad_graph.thriftscala.ProducerBasedRelatedAdRequest -import com.twitter.recos.user_ad_graph.thriftscala.UserAdGraph -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.ProducerBasedUserAdGraphParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.recos.user_ad_graph.thriftscala.ProducerBasedRelatedAdRequest +import com.ExTwitter.recos.user_ad_graph.thriftscala.UserAdGraph +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Singleton -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.timelines.configapi +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.timelines.configapi /** * This store looks for similar tweets from UserAdGraph for a Source ProducerId diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngine.scala index 6e7ca95bd..228d3a796 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/ProducerBasedUserTweetGraphSimilarityEngine.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.ProducerBasedUserTweetGraphParams -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.recos.user_tweet_graph.thriftscala.ProducerBasedRelatedTweetRequest -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.ProducerBasedUserTweetGraphParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.recos.user_tweet_graph.thriftscala.ProducerBasedRelatedTweetRequest +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Singleton -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.timelines.configapi -import com.twitter.recos.user_tweet_graph.thriftscala.UserTweetGraph +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.timelines.configapi +import com.ExTwitter.recos.user_tweet_graph.thriftscala.UserTweetGraph /** * This store looks for similar tweets from UserTweetGraph for a Source ProducerId diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimClustersANNSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimClustersANNSimilarityEngine.scala index 228627c87..afbe9566b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimClustersANNSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimClustersANNSimilarityEngine.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.config.SimClustersANNConfig -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.simclusters_v2.thriftscala.ModelVersion -import com.twitter.simclusters_v2.thriftscala.SimClustersEmbeddingId -import com.twitter.simclustersann.thriftscala.SimClustersANNService -import com.twitter.simclustersann.thriftscala.{Query => SimClustersANNQuery} -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.config.SimClustersANNConfig +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.simclusters_v2.thriftscala.ModelVersion +import com.ExTwitter.simclusters_v2.thriftscala.SimClustersEmbeddingId +import com.ExTwitter.simclustersann.thriftscala.SimClustersANNService +import com.ExTwitter.simclustersann.thriftscala.{Query => SimClustersANNQuery} +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Singleton -import com.twitter.cr_mixer.exception.InvalidSANNConfigException -import com.twitter.relevance_platform.simclustersann.multicluster.ServiceNameMapper +import com.ExTwitter.cr_mixer.exception.InvalidSANNConfigException +import com.ExTwitter.relevance_platform.simclustersann.multicluster.ServiceNameMapper @Singleton case class SimClustersANNSimilarityEngine( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilarityEngine.scala index 6bc332f75..38eeaa075 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilarityEngine.scala @@ -1,24 +1,24 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.GlobalRequestTimeoutException -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.memcached.Client -import com.twitter.finagle.mux.ServerApplicationError -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.hashing.KeyHasher -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.relevance_platform.common.injection.LZ4Injection -import com.twitter.relevance_platform.common.injection.SeqObjectInjection -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Params -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.TimeoutException -import com.twitter.util.logging.Logging +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.GlobalRequestTimeoutException +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.memcached.Client +import com.ExTwitter.finagle.mux.ServerApplicationError +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.relevance_platform.common.injection.LZ4Injection +import com.ExTwitter.relevance_platform.common.injection.SeqObjectInjection +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.TimeoutException +import com.ExTwitter.util.logging.Logging import org.apache.thrift.TApplicationException /** @@ -131,7 +131,7 @@ object SimilarityEngine extends Logging { ) } - private val timer = com.twitter.finagle.util.DefaultTimer + private val timer = com.ExTwitter.finagle.util.DefaultTimer /** * Applies runtime configs, like stats, timeouts, exception handling, onto fn diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilaritySourceOrderingUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilaritySourceOrderingUtil.scala index b3da2b631..5afd8c3d1 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilaritySourceOrderingUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SimilaritySourceOrderingUtil.scala @@ -1,7 +1,7 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.simclusters_v2.common.TweetId +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.simclusters_v2.common.TweetId import scala.collection.mutable import scala.collection.mutable.ArrayBuffer diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitHighPrecisionTopicTweetSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitHighPrecisionTopicTweetSimilarityEngine.scala index 37701e79e..6776f8a5a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitHighPrecisionTopicTweetSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitHighPrecisionTopicTweetSimilarityEngine.scala @@ -1,23 +1,23 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine import com.google.inject.Inject import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.contentrecommender.thriftscala.AlgorithmType -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TopicTweetWithScore -import com.twitter.cr_mixer.param.TopicTweetParams -import com.twitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine._ -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.topic_recos.thriftscala.TopicTweet -import com.twitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.AlgorithmType +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TopicTweetWithScore +import com.ExTwitter.cr_mixer.param.TopicTweetParams +import com.ExTwitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine._ +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.topic_recos.thriftscala.TopicTweet +import com.ExTwitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey +import com.ExTwitter.util.Future @Singleton case class SkitHighPrecisionTopicTweetSimilarityEngine @Inject() ( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitTopicTweetSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitTopicTweetSimilarityEngine.scala index 44bb4b319..bf2a55a5f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitTopicTweetSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/SkitTopicTweetSimilarityEngine.scala @@ -1,27 +1,27 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine import com.google.inject.Inject import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.contentrecommender.thriftscala.AlgorithmType -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.TopicTweetWithScore -import com.twitter.cr_mixer.param.TopicTweetParams -import com.twitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine._ -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.ModelVersion -import com.twitter.simclusters_v2.thriftscala.TopicId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.topic_recos.thriftscala.TopicTweet -import com.twitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey -import com.twitter.util.Duration -import com.twitter.util.Future +import com.ExTwitter.contentrecommender.thriftscala.AlgorithmType +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.TopicTweetWithScore +import com.ExTwitter.cr_mixer.param.TopicTweetParams +import com.ExTwitter.cr_mixer.similarity_engine.SkitTopicTweetSimilarityEngine._ +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.ModelVersion +import com.ExTwitter.simclusters_v2.thriftscala.TopicId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.topic_recos.thriftscala.TopicTweet +import com.ExTwitter.topic_recos.thriftscala.TopicTweetPartitionFlatKey +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future @Singleton case class SkitTopicTweetSimilarityEngine @Inject() ( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/StandardSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/StandardSimilarityEngine.scala index ae71c3736..59bf541ae 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/StandardSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/StandardSimilarityEngine.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.MemCacheConfig -import com.twitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi.Params -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.MemCacheConfig +import com.ExTwitter.cr_mixer.similarity_engine.SimilarityEngine.SimilarityEngineConfig +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Future /** * @tparam Query ReadableStore's input type. diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedQigSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedQigSimilarityEngine.scala index 317f09727..f7ed49f8b 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedQigSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedQigSimilarityEngine.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.base.Stats -import com.twitter.product_mixer.core.thriftscala.ClientContext -import com.twitter.qig_ranker.thriftscala.Product -import com.twitter.qig_ranker.thriftscala.ProductContext -import com.twitter.qig_ranker.thriftscala.QigRanker -import com.twitter.qig_ranker.thriftscala.QigRankerProductResponse -import com.twitter.qig_ranker.thriftscala.QigRankerRequest -import com.twitter.qig_ranker.thriftscala.QigRankerResponse -import com.twitter.qig_ranker.thriftscala.TwistlySimilarTweetsProductContext -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.base.Stats +import com.ExTwitter.product_mixer.core.thriftscala.ClientContext +import com.ExTwitter.qig_ranker.thriftscala.Product +import com.ExTwitter.qig_ranker.thriftscala.ProductContext +import com.ExTwitter.qig_ranker.thriftscala.QigRanker +import com.ExTwitter.qig_ranker.thriftscala.QigRankerProductResponse +import com.ExTwitter.qig_ranker.thriftscala.QigRankerRequest +import com.ExTwitter.qig_ranker.thriftscala.QigRankerResponse +import com.ExTwitter.qig_ranker.thriftscala.TwistlySimilarTweetsProductContext +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Singleton /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUnifiedSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUnifiedSimilarityEngine.scala index 6b84e2f67..69d4fdba4 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUnifiedSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUnifiedSimilarityEngine.scala @@ -1,31 +1,31 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.model.TweetWithCandidateGenerationInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.RelatedTweetTweetBasedParams -import com.twitter.cr_mixer.param.RelatedVideoTweetTweetBasedParams -import com.twitter.cr_mixer.param.SimClustersANNParams -import com.twitter.cr_mixer.param.TweetBasedCandidateGenerationParams -import com.twitter.cr_mixer.param.TweetBasedTwHINParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.cr_mixer.util.InterleaveUtil -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.ModelVersions -import com.twitter.simclusters_v2.thriftscala.EmbeddingType -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.model.TweetWithCandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.RelatedTweetTweetBasedParams +import com.ExTwitter.cr_mixer.param.RelatedVideoTweetTweetBasedParams +import com.ExTwitter.cr_mixer.param.SimClustersANNParams +import com.ExTwitter.cr_mixer.param.TweetBasedCandidateGenerationParams +import com.ExTwitter.cr_mixer.param.TweetBasedTwHINParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.util.InterleaveUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.ModelVersions +import com.ExTwitter.simclusters_v2.thriftscala.EmbeddingType +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Named import javax.inject.Singleton import scala.collection.mutable.ArrayBuffer diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserAdGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserAdGraphSimilarityEngine.scala index 365bead35..3a798340a 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserAdGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserAdGraphSimilarityEngine.scala @@ -1,21 +1,21 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.TweetBasedUserAdGraphParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest -import com.twitter.recos.user_ad_graph.thriftscala.RelatedAdResponse -import com.twitter.recos.user_ad_graph.thriftscala.UserAdGraph -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.TweetBasedUserAdGraphParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.recos.user_ad_graph.thriftscala.ConsumersBasedRelatedAdRequest +import com.ExTwitter.recos.user_ad_graph.thriftscala.RelatedAdResponse +import com.ExTwitter.recos.user_ad_graph.thriftscala.UserAdGraph +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.util.Future import javax.inject.Singleton /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserTweetGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserTweetGraphSimilarityEngine.scala index 316f980a7..8280ac7ab 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserTweetGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserTweetGraphSimilarityEngine.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.TweetBasedUserTweetGraphParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.recos.user_tweet_graph.thriftscala.RelatedTweetResponse -import com.twitter.recos.user_tweet_graph.thriftscala.TweetBasedRelatedTweetRequest -import com.twitter.recos.user_tweet_graph.thriftscala.ConsumersBasedRelatedTweetRequest -import com.twitter.recos.user_tweet_graph.thriftscala.UserTweetGraph -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.TweetBasedUserTweetGraphParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.recos.user_tweet_graph.thriftscala.RelatedTweetResponse +import com.ExTwitter.recos.user_tweet_graph.thriftscala.TweetBasedRelatedTweetRequest +import com.ExTwitter.recos.user_tweet_graph.thriftscala.ConsumersBasedRelatedTweetRequest +import com.ExTwitter.recos.user_tweet_graph.thriftscala.UserTweetGraph +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.util.Future import javax.inject.Singleton -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.timelines.configapi -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import scala.concurrent.duration.HOURS /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserVideoGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserVideoGraphSimilarityEngine.scala index 6190cd4fb..442f94d7d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserVideoGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TweetBasedUserVideoGraphSimilarityEngine.scala @@ -1,26 +1,26 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.TweetBasedUserVideoGraphParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.recos.user_video_graph.thriftscala.RelatedTweetResponse -import com.twitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest -import com.twitter.recos.user_video_graph.thriftscala.TweetBasedRelatedTweetRequest -import com.twitter.recos.user_video_graph.thriftscala.UserVideoGraph -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.timelines.configapi -import com.twitter.twistly.thriftscala.TweetRecentEngagedUsers -import com.twitter.util.Duration +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.TweetBasedUserVideoGraphParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.recos.user_video_graph.thriftscala.RelatedTweetResponse +import com.ExTwitter.recos.user_video_graph.thriftscala.ConsumersBasedRelatedTweetRequest +import com.ExTwitter.recos.user_video_graph.thriftscala.TweetBasedRelatedTweetRequest +import com.ExTwitter.recos.user_video_graph.thriftscala.UserVideoGraph +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.timelines.configapi +import com.ExTwitter.twistly.thriftscala.TweetRecentEngagedUsers +import com.ExTwitter.util.Duration import javax.inject.Singleton -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import scala.concurrent.duration.HOURS /** diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TwhinCollabFilterSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TwhinCollabFilterSimilarityEngine.scala index eccab6aa3..bd345f4c0 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TwhinCollabFilterSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/TwhinCollabFilterSimilarityEngine.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.cr_mixer.model.TweetWithScore -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.cr_mixer.model.TweetWithScore +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/UserTweetEntityGraphSimilarityEngine.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/UserTweetEntityGraphSimilarityEngine.scala index 9c61b3d1c..2955ba3e8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/UserTweetEntityGraphSimilarityEngine.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/similarity_engine/UserTweetEntityGraphSimilarityEngine.scala @@ -1,22 +1,22 @@ -package com.twitter.cr_mixer.similarity_engine +package com.ExTwitter.cr_mixer.similarity_engine -import com.twitter.recos.recos_common.thriftscala.SocialProofType -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.TweetWithScoreAndSocialProof -import com.twitter.cr_mixer.param.UtegTweetGlobalParams -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.recos.user_tweet_entity_graph.thriftscala.TweetEntityDisplayLocation -import com.twitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityGraph -import com.twitter.recos.user_tweet_entity_graph.thriftscala.RecommendTweetEntityRequest -import com.twitter.recos.user_tweet_entity_graph.thriftscala.RecommendationType -import com.twitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityRecommendationUnion.TweetRec -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.configapi -import com.twitter.util.Duration -import com.twitter.util.Future +import com.ExTwitter.recos.recos_common.thriftscala.SocialProofType +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.TweetWithScoreAndSocialProof +import com.ExTwitter.cr_mixer.param.UtegTweetGlobalParams +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.TweetEntityDisplayLocation +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityGraph +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.RecommendTweetEntityRequest +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.RecommendationType +import com.ExTwitter.recos.user_tweet_entity_graph.thriftscala.UserTweetEntityRecommendationUnion.TweetRec +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/BUILD index 37b0a7585..43b7440b8 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/BUILD @@ -4,14 +4,14 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "configapi/configapi-core", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param/decider", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/config", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param/decider", "cr-mixer/thrift/src/main/thrift:thrift-scala", "decider/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", @@ -19,14 +19,14 @@ scala_library( "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "frigate/frigate-common:base", "frigate/frigate-common:util", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/base", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/candidate", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/hermit/stp:hermit-stp-scala", - "src/thrift/com/twitter/onboarding/relevance/coldstart_lookalike:coldstartlookalike-thrift-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/base", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/candidate", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/hermit/stp:hermit-stp-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/coldstart_lookalike:coldstartlookalike-thrift-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "user-signal-service/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceGraphFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceGraphFetcher.scala index 16162c67d..aa77225cf 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceGraphFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceGraphFetcher.scala @@ -1,15 +1,15 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.param.FrsParams -import com.twitter.cr_mixer.source_signal.FrsStore.FrsQueryResult -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.param.FrsParams +import com.ExTwitter.cr_mixer.source_signal.FrsStore.FrsQueryResult +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceSignalFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceSignalFetcher.scala index 4e9069376..fbe8e3037 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceSignalFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsSourceSignalFetcher.scala @@ -1,18 +1,18 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.param.FrsParams -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.source_signal.FrsStore.FrsQueryResult -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.param.FrsParams +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.source_signal.FrsStore.FrsQueryResult +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Singleton import javax.inject.Inject import javax.inject.Named diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsStore.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsStore.scala index 0221bc318..902e7e938 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsStore.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/FrsStore.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.param.decider.CrMixerDecider -import com.twitter.cr_mixer.param.decider.DeciderConstants -import com.twitter.cr_mixer.source_signal.FrsStore.Query -import com.twitter.cr_mixer.source_signal.FrsStore.FrsQueryResult -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.thriftscala.ClientContext -import com.twitter.follow_recommendations.thriftscala.DisplayLocation -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.follow_recommendations.thriftscala.Recommendation -import com.twitter.follow_recommendations.thriftscala.RecommendationRequest -import com.twitter.storehaus.ReadableStore +import com.ExTwitter.cr_mixer.param.decider.CrMixerDecider +import com.ExTwitter.cr_mixer.param.decider.DeciderConstants +import com.ExTwitter.cr_mixer.source_signal.FrsStore.Query +import com.ExTwitter.cr_mixer.source_signal.FrsStore.FrsQueryResult +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.thriftscala.ClientContext +import com.ExTwitter.follow_recommendations.thriftscala.DisplayLocation +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.follow_recommendations.thriftscala.Recommendation +import com.ExTwitter.follow_recommendations.thriftscala.RecommendationRequest +import com.ExTwitter.storehaus.ReadableStore import javax.inject.Singleton -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Future +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Future @Singleton case class FrsStore( diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphInSourceGraphFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphInSourceGraphFetcher.scala index ac708d0bb..960d5af1d 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphInSourceGraphFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphInSourceGraphFetcher.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.param.RealGraphInParams -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.param.RealGraphInParams +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphOonSourceGraphFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphOonSourceGraphFetcher.scala index e03d140a4..4faaf6a7f 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphOonSourceGraphFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/RealGraphOonSourceGraphFetcher.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.param.RealGraphOonParams -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.param.RealGraphOonParams +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceFetcher.scala index 4fa4dfb93..211f6a15e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceFetcher.scala @@ -1,20 +1,20 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.simclusters_v2.common.UserId -import com.twitter.timelines.configapi.Params -import com.twitter.cr_mixer.thriftscala.{Product => TProduct} -import com.twitter.finagle.GlobalRequestTimeoutException -import com.twitter.finagle.mux.ClientDiscardedRequestException -import com.twitter.finagle.mux.ServerApplicationError -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future -import com.twitter.util.TimeoutException +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.cr_mixer.thriftscala.{Product => TProduct} +import com.ExTwitter.finagle.GlobalRequestTimeoutException +import com.ExTwitter.finagle.mux.ClientDiscardedRequestException +import com.ExTwitter.finagle.mux.ServerApplicationError +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future +import com.ExTwitter.util.TimeoutException import org.apache.thrift.TApplicationException -import com.twitter.util.logging.Logging +import com.ExTwitter.util.logging.Logging /** * A SourceFetcher is a trait which, given a [[FetcherQuery]], returns [[ResultType]] @@ -27,7 +27,7 @@ import com.twitter.util.logging.Logging */ trait SourceFetcher[ResultType] extends ReadableStore[FetcherQuery, ResultType] with Logging { - protected final val timer = com.twitter.finagle.util.DefaultTimer + protected final val timer = com.ExTwitter.finagle.util.DefaultTimer protected final def identifier: String = this.getClass.getSimpleName protected def stats: StatsReceiver protected def timeoutConfig: TimeoutConfig diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceGraphFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceGraphFetcher.scala index ac33d91e9..079fa704e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceGraphFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceGraphFetcher.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.simclusters_v2.common.UserId -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.util.Future /*** * A SourceGraphFetcher is a trait that extends from `SourceFetcher` diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceInfoRouter.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceInfoRouter.scala index 5942fb8e4..6c2d8c42e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceInfoRouter.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceInfoRouter.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.cr_mixer.model.GraphSourceInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.cr_mixer.thriftscala.{Product => TProduct} -import com.twitter.simclusters_v2.common.UserId -import com.twitter.timelines.configapi -import com.twitter.util.Future +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.cr_mixer.model.GraphSourceInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.thriftscala.{Product => TProduct} +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.timelines.configapi +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceSignalFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceSignalFetcher.scala index 01d302661..31766280c 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceSignalFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/SourceSignalFetcher.scala @@ -1,10 +1,10 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.frigate.common.util.StatsUtil -import com.twitter.util.Future +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.frigate.common.util.StatsUtil +import com.ExTwitter.util.Future /*** * A SourceSignalFetcher is a trait that extends from `SourceFetcher` diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssSourceSignalFetcher.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssSourceSignalFetcher.scala index dcce3e94e..901d8e870 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssSourceSignalFetcher.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssSourceSignalFetcher.scala @@ -1,19 +1,19 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.config.TimeoutConfig -import com.twitter.cr_mixer.model.ModuleNames -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.storehaus.ReadableStore -import com.twitter.usersignalservice.thriftscala.{Signal => UssSignal} -import com.twitter.usersignalservice.thriftscala.SignalType -import com.twitter.frigate.common.util.StatsUtil.Size -import com.twitter.frigate.common.util.StatsUtil.Success -import com.twitter.frigate.common.util.StatsUtil.Empty -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.config.TimeoutConfig +import com.ExTwitter.cr_mixer.model.ModuleNames +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.source_signal.SourceFetcher.FetcherQuery +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.usersignalservice.thriftscala.{Signal => UssSignal} +import com.ExTwitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.frigate.common.util.StatsUtil.Size +import com.ExTwitter.frigate.common.util.StatsUtil.Success +import com.ExTwitter.frigate.common.util.StatsUtil.Empty +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import javax.inject.Singleton import javax.inject.Inject import javax.inject.Named diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssStore.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssStore.scala index 02f0287f5..758fc02d9 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssStore.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/source_signal/UssStore.scala @@ -1,36 +1,36 @@ -package com.twitter.cr_mixer.source_signal +package com.ExTwitter.cr_mixer.source_signal -import com.twitter.cr_mixer.param.GlobalParams -import com.twitter.cr_mixer.param.GoodProfileClickParams -import com.twitter.cr_mixer.param.GoodTweetClickParams -import com.twitter.cr_mixer.param.RealGraphOonParams -import com.twitter.cr_mixer.param.RecentFollowsParams -import com.twitter.cr_mixer.param.RecentNegativeSignalParams -import com.twitter.cr_mixer.param.RecentNotificationsParams -import com.twitter.cr_mixer.param.RecentOriginalTweetsParams -import com.twitter.cr_mixer.param.RecentReplyTweetsParams -import com.twitter.cr_mixer.param.RecentRetweetsParams -import com.twitter.cr_mixer.param.RecentTweetFavoritesParams -import com.twitter.cr_mixer.param.RepeatedProfileVisitsParams -import com.twitter.cr_mixer.param.TweetSharesParams -import com.twitter.cr_mixer.param.UnifiedUSSSignalParams -import com.twitter.cr_mixer.param.VideoViewTweetsParams -import com.twitter.cr_mixer.source_signal.UssStore.Query -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.simclusters_v2.common.UserId -import com.twitter.storehaus.ReadableStore -import com.twitter.usersignalservice.thriftscala.{Signal => UssSignal} -import com.twitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.cr_mixer.param.GlobalParams +import com.ExTwitter.cr_mixer.param.GoodProfileClickParams +import com.ExTwitter.cr_mixer.param.GoodTweetClickParams +import com.ExTwitter.cr_mixer.param.RealGraphOonParams +import com.ExTwitter.cr_mixer.param.RecentFollowsParams +import com.ExTwitter.cr_mixer.param.RecentNegativeSignalParams +import com.ExTwitter.cr_mixer.param.RecentNotificationsParams +import com.ExTwitter.cr_mixer.param.RecentOriginalTweetsParams +import com.ExTwitter.cr_mixer.param.RecentReplyTweetsParams +import com.ExTwitter.cr_mixer.param.RecentRetweetsParams +import com.ExTwitter.cr_mixer.param.RecentTweetFavoritesParams +import com.ExTwitter.cr_mixer.param.RepeatedProfileVisitsParams +import com.ExTwitter.cr_mixer.param.TweetSharesParams +import com.ExTwitter.cr_mixer.param.UnifiedUSSSignalParams +import com.ExTwitter.cr_mixer.param.VideoViewTweetsParams +import com.ExTwitter.cr_mixer.source_signal.UssStore.Query +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.usersignalservice.thriftscala.{Signal => UssSignal} +import com.ExTwitter.usersignalservice.thriftscala.SignalType import javax.inject.Singleton -import com.twitter.timelines.configapi -import com.twitter.timelines.configapi.Params -import com.twitter.usersignalservice.thriftscala.BatchSignalRequest -import com.twitter.usersignalservice.thriftscala.BatchSignalResponse -import com.twitter.usersignalservice.thriftscala.SignalRequest -import com.twitter.util.Future -import com.twitter.cr_mixer.thriftscala.Product -import com.twitter.usersignalservice.thriftscala.ClientIdentifier +import com.ExTwitter.timelines.configapi +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.usersignalservice.thriftscala.BatchSignalRequest +import com.ExTwitter.usersignalservice.thriftscala.BatchSignalResponse +import com.ExTwitter.usersignalservice.thriftscala.SignalRequest +import com.ExTwitter.util.Future +import com.ExTwitter.cr_mixer.thriftscala.Product +import com.ExTwitter.usersignalservice.thriftscala.ClientIdentifier @Singleton case class UssStore( @@ -38,7 +38,7 @@ case class UssStore( statsReceiver: StatsReceiver) extends ReadableStore[Query, Seq[(SignalType, Seq[UssSignal])]] { - import com.twitter.cr_mixer.source_signal.UssStore._ + import com.ExTwitter.cr_mixer.source_signal.UssStore._ override def get(query: Query): Future[Option[Seq[(SignalType, Seq[UssSignal])]]] = { val ussClientIdentifier = query.product match { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/BUILD b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/BUILD index 46c71420a..0124e2750 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/BUILD +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/BUILD @@ -4,26 +4,26 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/org/lz4:lz4-java", - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "configapi/configapi-core", "content-recommender/thrift/src/main/thrift:thrift-scala", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/config", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/model", - "cr-mixer/server/src/main/scala/com/twitter/cr_mixer/param", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/config", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/model", + "cr-mixer/server/src/main/scala/com/ExTwitter/cr_mixer/param", "cr-mixer/thrift/src/main/thrift:thrift-scala", "finatra/inject/inject-core/src/main/scala", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/util:stats_util", - "relevance-platform/src/main/scala/com/twitter/relevance_platform/common/stats", - "src/java/com/twitter/search/common/schema/base", - "src/java/com/twitter/search/common/schema/earlybird", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/scala/com/twitter/simclusters_v2/common", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:ranking-scala", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift-scala", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/util:stats_util", + "relevance-platform/src/main/scala/com/ExTwitter/relevance_platform/common/stats", + "src/java/com/ExTwitter/search/common/schema/base", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/scala/com/ExTwitter/simclusters_v2/common", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:ranking-scala", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift-scala", ], ) diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CandidateGenerationKeyUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CandidateGenerationKeyUtil.scala index fd698f6d9..325bffef2 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CandidateGenerationKeyUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CandidateGenerationKeyUtil.scala @@ -1,13 +1,13 @@ -package com.twitter.cr_mixer.util +package com.ExTwitter.cr_mixer.util -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.thriftscala.CandidateGenerationKey -import com.twitter.cr_mixer.thriftscala.SimilarityEngine -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.simclusters_v2.common.UserId -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.util.Time +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.thriftscala.CandidateGenerationKey +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngine +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.simclusters_v2.common.UserId +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.util.Time object CandidateGenerationKeyUtil { private val PlaceholderUserId = 0L // this default value will not be used diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CountWeightedInterleaveUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CountWeightedInterleaveUtil.scala index bfae90057..3c9b7dd96 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CountWeightedInterleaveUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/CountWeightedInterleaveUtil.scala @@ -1,12 +1,12 @@ -package com.twitter.cr_mixer.util +package com.ExTwitter.cr_mixer.util -import com.twitter.cr_mixer.model.Candidate -import com.twitter.cr_mixer.model.InitialCandidate -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.param.BlenderParams.BlendGroupingMethodEnum -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.cr_mixer.model.Candidate +import com.ExTwitter.cr_mixer.model.InitialCandidate +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.param.BlenderParams.BlendGroupingMethodEnum +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.simclusters_v2.thriftscala.InternalId object CountWeightedInterleaveUtil { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/EarlybirdSearchUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/EarlybirdSearchUtil.scala index 6ddd358dc..b905fb7bb 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/EarlybirdSearchUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/EarlybirdSearchUtil.scala @@ -1,16 +1,16 @@ -package com.twitter.cr_mixer.util +package com.ExTwitter.cr_mixer.util -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant -import com.twitter.search.queryparser.query.search.SearchOperator -import com.twitter.search.queryparser.query.search.SearchOperatorConstants -import com.twitter.search.queryparser.query.{Query => EbQuery} -import com.twitter.search.queryparser.query.Conjunction +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant +import com.ExTwitter.search.queryparser.query.search.SearchOperator +import com.ExTwitter.search.queryparser.query.search.SearchOperatorConstants +import com.ExTwitter.search.queryparser.query.{Query => EbQuery} +import com.ExTwitter.search.queryparser.query.Conjunction import scala.collection.JavaConverters._ -import com.twitter.search.earlybird.thriftscala.ThriftSearchResultMetadataOptions -import com.twitter.simclusters_v2.common.TweetId -import com.twitter.search.queryparser.query.Query -import com.twitter.util.Duration -import com.twitter.search.common.query.thriftjava.thriftscala.CollectorTerminationParams +import com.ExTwitter.search.earlybird.thriftscala.ThriftSearchResultMetadataOptions +import com.ExTwitter.simclusters_v2.common.TweetId +import com.ExTwitter.search.queryparser.query.Query +import com.ExTwitter.util.Duration +import com.ExTwitter.search.common.query.thriftjava.thriftscala.CollectorTerminationParams object EarlybirdSearchUtil { val EarlybirdClientId: String = "cr-mixer.prod" diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/InterleaveUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/InterleaveUtil.scala index c75abde2e..ed65872ed 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/InterleaveUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/InterleaveUtil.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.util +package com.ExTwitter.cr_mixer.util -import com.twitter.cr_mixer.model.Candidate -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.simclusters_v2.common.TweetId +import com.ExTwitter.cr_mixer.model.Candidate +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.simclusters_v2.common.TweetId import scala.collection.mutable import scala.collection.mutable.ArrayBuffer diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/MetricTagUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/MetricTagUtil.scala index caa6d9f07..1a71f8e5e 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/MetricTagUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/MetricTagUtil.scala @@ -1,11 +1,11 @@ -package com.twitter.cr_mixer.util +package com.ExTwitter.cr_mixer.util -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.SimilarityEngineInfo -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.thriftscala.MetricTag -import com.twitter.cr_mixer.thriftscala.SimilarityEngineType -import com.twitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.SimilarityEngineInfo +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.thriftscala.MetricTag +import com.ExTwitter.cr_mixer.thriftscala.SimilarityEngineType +import com.ExTwitter.cr_mixer.thriftscala.SourceType object MetricTagUtil { diff --git a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/SignalTimestampStatsUtil.scala b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/SignalTimestampStatsUtil.scala index ae2789432..c5db233c3 100644 --- a/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/SignalTimestampStatsUtil.scala +++ b/cr-mixer/server/src/main/scala/com/twitter/cr_mixer/util/SignalTimestampStatsUtil.scala @@ -1,14 +1,14 @@ -package com.twitter.cr_mixer.util +package com.ExTwitter.cr_mixer.util -import com.twitter.cr_mixer.model.CandidateGenerationInfo -import com.twitter.cr_mixer.model.RankedCandidate -import com.twitter.cr_mixer.model.SourceInfo -import com.twitter.cr_mixer.thriftscala.SourceType -import com.twitter.cr_mixer.thriftscala.TweetRecommendation +import com.ExTwitter.cr_mixer.model.CandidateGenerationInfo +import com.ExTwitter.cr_mixer.model.RankedCandidate +import com.ExTwitter.cr_mixer.model.SourceInfo +import com.ExTwitter.cr_mixer.thriftscala.SourceType +import com.ExTwitter.cr_mixer.thriftscala.TweetRecommendation import javax.inject.Inject -import com.twitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver import javax.inject.Singleton -import com.twitter.relevance_platform.common.stats.BucketTimestampStats +import com.ExTwitter.relevance_platform.common.stats.BucketTimestampStats @Singleton class SignalTimestampStatsUtil @Inject() (statsReceiver: StatsReceiver) { diff --git a/cr-mixer/thrift/src/main/thrift/BUILD b/cr-mixer/thrift/src/main/thrift/BUILD index 3ccb85681..ed80dad24 100644 --- a/cr-mixer/thrift/src/main/thrift/BUILD +++ b/cr-mixer/thrift/src/main/thrift/BUILD @@ -5,15 +5,15 @@ create_thrift_libraries( tags = ["bazel-compatible"], dependency_roots = [ "finatra-internal/thrift/src/main/thrift", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift", - "src/thrift/com/twitter/ads/schema:common", - "src/thrift/com/twitter/ml/api:data", - "src/thrift/com/twitter/recos:recos-common", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift", - "src/thrift/com/twitter/timelines/render:thrift", - "strato/config/src/thrift/com/twitter/strato/graphql", - "strato/config/src/thrift/com/twitter/strato/graphql:api-media-graphql", - "strato/config/src/thrift/com/twitter/strato/graphql:topics-graphql", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift", + "src/thrift/com/ExTwitter/ads/schema:common", + "src/thrift/com/ExTwitter/ml/api:data", + "src/thrift/com/ExTwitter/recos:recos-common", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift", + "src/thrift/com/ExTwitter/timelines/render:thrift", + "strato/config/src/thrift/com/ExTwitter/strato/graphql", + "strato/config/src/thrift/com/ExTwitter/strato/graphql:api-media-graphql", + "strato/config/src/thrift/com/ExTwitter/strato/graphql:topics-graphql", ], generate_languages = [ "java", @@ -30,13 +30,13 @@ create_thrift_libraries( tags = ["bazel-compatible"], dependency_roots = [ "finatra-internal/thrift/src/main/thrift", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift", - "src/thrift/com/twitter/ads/schema:common", - "src/thrift/com/twitter/ml/api:data", - "src/thrift/com/twitter/recos:recos-common", - "src/thrift/com/twitter/simclusters_v2:simclusters_v2-thrift", - "src/thrift/com/twitter/timelines/render:thrift", - "strato/config/src/thrift/com/twitter/strato/graphql", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift", + "src/thrift/com/ExTwitter/ads/schema:common", + "src/thrift/com/ExTwitter/ml/api:data", + "src/thrift/com/ExTwitter/recos:recos-common", + "src/thrift/com/ExTwitter/simclusters_v2:simclusters_v2-thrift", + "src/thrift/com/ExTwitter/timelines/render:thrift", + "strato/config/src/thrift/com/ExTwitter/strato/graphql", ], generate_languages = [ "java", diff --git a/cr-mixer/thrift/src/main/thrift/ads.thrift b/cr-mixer/thrift/src/main/thrift/ads.thrift index 70d4ad562..532486c13 100644 --- a/cr-mixer/thrift/src/main/thrift/ads.thrift +++ b/cr-mixer/thrift/src/main/thrift/ads.thrift @@ -1,12 +1,12 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "product.thrift" include "product_context.thrift" -include "com/twitter/product_mixer/core/client_context.thrift" -include "com/twitter/ads/schema/shared.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/ads/schema/shared.thrift" struct AdsRequest { 1: required client_context.ClientContext clientContext diff --git a/cr-mixer/thrift/src/main/thrift/candidate_generation_key.thrift b/cr-mixer/thrift/src/main/thrift/candidate_generation_key.thrift index 4f2a4a9ee..cafd6481a 100644 --- a/cr-mixer/thrift/src/main/thrift/candidate_generation_key.thrift +++ b/cr-mixer/thrift/src/main/thrift/candidate_generation_key.thrift @@ -1,9 +1,9 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "source_type.thrift" -include "com/twitter/simclusters_v2/identifier.thrift" +include "com/ExTwitter/simclusters_v2/identifier.thrift" struct SimilarityEngine { 1: required source_type.SimilarityEngineType similarityEngineType diff --git a/cr-mixer/thrift/src/main/thrift/cr_mixer.thrift b/cr-mixer/thrift/src/main/thrift/cr_mixer.thrift index 2fddf1cf8..63087893e 100644 --- a/cr-mixer/thrift/src/main/thrift/cr_mixer.thrift +++ b/cr-mixer/thrift/src/main/thrift/cr_mixer.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "ads.thrift" include "candidate_generation_key.thrift" @@ -14,10 +14,10 @@ include "frs_based_tweet.thrift" include "related_video_tweet.thrift" include "topic_tweet.thrift" -include "com/twitter/product_mixer/core/client_context.thrift" -include "com/twitter/timelines/render/response.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/timelines/render/response.thrift" include "finatra-thrift/finatra_thrift_exceptions.thrift" -include "com/twitter/strato/graphql/slice.thrift" +include "com/ExTwitter/strato/graphql/slice.thrift" struct CrMixerTweetRequest { 1: required client_context.ClientContext clientContext diff --git a/cr-mixer/thrift/src/main/thrift/frs_based_tweet.thrift b/cr-mixer/thrift/src/main/thrift/frs_based_tweet.thrift index bb83397b6..b149f2de7 100644 --- a/cr-mixer/thrift/src/main/thrift/frs_based_tweet.thrift +++ b/cr-mixer/thrift/src/main/thrift/frs_based_tweet.thrift @@ -1,10 +1,10 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "product.thrift" include "product_context.thrift" -include "com/twitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" struct FrsTweetRequest { 1: required client_context.ClientContext clientContext @@ -23,7 +23,7 @@ struct FrsTweet { # frsPrimarySource - which FRS candidate source is the primary one to generate this author 4: optional i32 frsPrimarySource # frsCandidateSourceScores - FRS candidate sources and the scores for this author -# for i32 to algorithm mapping, see https://sourcegraph.twitter.biz/git.twitter.biz/source/-/blob/hermit/hermit-core/src/main/scala/com/twitter/hermit/constants/AlgorithmFeedbackTokens.scala?L12 +# for i32 to algorithm mapping, see https://sourcegraph.ExTwitter.biz/git.ExTwitter.biz/source/-/blob/hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants/AlgorithmFeedbackTokens.scala?L12 5: optional map frsCandidateSourceScores # frsPrimaryScore - the score of the FRS primary candidate source 6: optional double frsAuthorScore diff --git a/cr-mixer/thrift/src/main/thrift/metric_tags.thrift b/cr-mixer/thrift/src/main/thrift/metric_tags.thrift index dd4fb5012..1344347fd 100644 --- a/cr-mixer/thrift/src/main/thrift/metric_tags.thrift +++ b/cr-mixer/thrift/src/main/thrift/metric_tags.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer // NOTE: DO NOT depend on MetricTags for important ML Features or business logic. diff --git a/cr-mixer/thrift/src/main/thrift/product.thrift b/cr-mixer/thrift/src/main/thrift/product.thrift index 6e23a1092..d7d11e2b1 100644 --- a/cr-mixer/thrift/src/main/thrift/product.thrift +++ b/cr-mixer/thrift/src/main/thrift/product.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer # In CrMixer, one org should only have one Product enum Product { diff --git a/cr-mixer/thrift/src/main/thrift/product_context.thrift b/cr-mixer/thrift/src/main/thrift/product_context.thrift index 29e2d9687..cc920be0f 100644 --- a/cr-mixer/thrift/src/main/thrift/product_context.thrift +++ b/cr-mixer/thrift/src/main/thrift/product_context.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer struct HomeContext { 2: optional i32 maxResults // enabled for QuaityFactor related DDGs only diff --git a/cr-mixer/thrift/src/main/thrift/related_tweet.thrift b/cr-mixer/thrift/src/main/thrift/related_tweet.thrift index 04e797b1b..27f15f47b 100644 --- a/cr-mixer/thrift/src/main/thrift/related_tweet.thrift +++ b/cr-mixer/thrift/src/main/thrift/related_tweet.thrift @@ -1,10 +1,10 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "product.thrift" -include "com/twitter/product_mixer/core/client_context.thrift" -include "com/twitter/simclusters_v2/identifier.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/simclusters_v2/identifier.thrift" struct RelatedTweetRequest { 1: required identifier.InternalId internalId diff --git a/cr-mixer/thrift/src/main/thrift/related_video_tweet.thrift b/cr-mixer/thrift/src/main/thrift/related_video_tweet.thrift index 18a987e7d..a90d76d20 100644 --- a/cr-mixer/thrift/src/main/thrift/related_video_tweet.thrift +++ b/cr-mixer/thrift/src/main/thrift/related_video_tweet.thrift @@ -1,10 +1,10 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "product.thrift" -include "com/twitter/product_mixer/core/client_context.thrift" -include "com/twitter/simclusters_v2/identifier.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/simclusters_v2/identifier.thrift" struct RelatedVideoTweetRequest { 1: required identifier.InternalId internalId diff --git a/cr-mixer/thrift/src/main/thrift/scribe.thrift b/cr-mixer/thrift/src/main/thrift/scribe.thrift index 61fdb5eb9..484c9db84 100644 --- a/cr-mixer/thrift/src/main/thrift/scribe.thrift +++ b/cr-mixer/thrift/src/main/thrift/scribe.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "ads.thrift" include "candidate_generation_key.thrift" @@ -10,8 +10,8 @@ include "product.thrift" include "related_tweet.thrift" include "source_type.thrift" include "uteg.thrift" -include "com/twitter/ml/api/data.thrift" -include "com/twitter/simclusters_v2/identifier.thrift" +include "com/ExTwitter/ml/api/data.thrift" +include "com/ExTwitter/simclusters_v2/identifier.thrift" struct VITTweetCandidatesScribe { 1: required i64 uuid (personalDataType = 'UniversallyUniqueIdentifierUuid') # RequestUUID - unique scribe id for every request that comes in. Same request but different stages of scribe log (FetchCandidate, Filter, etc) share the same uuid diff --git a/cr-mixer/thrift/src/main/thrift/source_type.thrift b/cr-mixer/thrift/src/main/thrift/source_type.thrift index 913739fa3..395ae8b27 100644 --- a/cr-mixer/thrift/src/main/thrift/source_type.thrift +++ b/cr-mixer/thrift/src/main/thrift/source_type.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer // Due to legacy reason, SourceType used to represent both SourceSignalType and SimilarityEngineType // Hence, you can see several SourceType such as UserInterestedIn, HashSpace, etc. diff --git a/cr-mixer/thrift/src/main/thrift/topic_tweet.thrift b/cr-mixer/thrift/src/main/thrift/topic_tweet.thrift index 46552d454..3e772ce17 100644 --- a/cr-mixer/thrift/src/main/thrift/topic_tweet.thrift +++ b/cr-mixer/thrift/src/main/thrift/topic_tweet.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer -include "com/twitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" include "product.thrift" include "product_context.thrift" include "source_type.thrift" diff --git a/cr-mixer/thrift/src/main/thrift/uteg.thrift b/cr-mixer/thrift/src/main/thrift/uteg.thrift index 2f5c4198d..e481a5620 100644 --- a/cr-mixer/thrift/src/main/thrift/uteg.thrift +++ b/cr-mixer/thrift/src/main/thrift/uteg.thrift @@ -1,12 +1,12 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer include "product.thrift" include "product_context.thrift" -include "com/twitter/product_mixer/core/client_context.thrift" -include "com/twitter/recos/recos_common.thrift" +include "com/ExTwitter/product_mixer/core/client_context.thrift" +include "com/ExTwitter/recos/recos_common.thrift" struct UtegTweetRequest { 1: required client_context.ClientContext clientContext diff --git a/cr-mixer/thrift/src/main/thrift/validation.thrift b/cr-mixer/thrift/src/main/thrift/validation.thrift index 96a04be3c..c6e3f58c8 100644 --- a/cr-mixer/thrift/src/main/thrift/validation.thrift +++ b/cr-mixer/thrift/src/main/thrift/validation.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.cr_mixer.thriftjava -#@namespace scala com.twitter.cr_mixer.thriftscala -#@namespace strato com.twitter.cr_mixer +namespace java com.ExTwitter.cr_mixer.thriftjava +#@namespace scala com.ExTwitter.cr_mixer.thriftscala +#@namespace strato com.ExTwitter.cr_mixer // ValidationErrorCode is used to identify classes of client errors returned from a Product Mixer // service. Use [[PipelineFailureExceptionMapper]] to adapt pipeline failures into thrift errors. diff --git a/follow-recommendations-service/BUILD b/follow-recommendations-service/BUILD index 5210cbd88..75c4f7257 100644 --- a/follow-recommendations-service/BUILD +++ b/follow-recommendations-service/BUILD @@ -7,15 +7,15 @@ alias( target( name = "follow-recommendations-service_lib", dependencies = [ - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", ], ) jvm_binary( name = "bin", basename = "follow-recommendations-service", - main = "com.twitter.follow_recommendations.FollowRecommendationsServiceThriftServerMain", + main = "com.ExTwitter.follow_recommendations.FollowRecommendationsServiceThriftServerMain", runtime_platform = "java11", tags = ["bazel-compatible"], dependencies = [ @@ -23,9 +23,9 @@ jvm_binary( "3rdparty/jvm/ch/qos/logback:logback-classic", "finagle/finagle-zipkin-scribe/src/main/scala", "finatra/inject/inject-logback/src/main/scala", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", - "twitter-server-internal/src/main/scala", - "twitter-server/logback-classic/src/main/scala", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", + "ExTwitter-server-internal/src/main/scala", + "ExTwitter-server/logback-classic/src/main/scala", ], ) diff --git a/follow-recommendations-service/CONFIG.ini b/follow-recommendations-service/CONFIG.ini index c8173efa8..8638be344 100644 --- a/follow-recommendations-service/CONFIG.ini +++ b/follow-recommendations-service/CONFIG.ini @@ -1,5 +1,5 @@ [code-coverage] -package = com.twitter.follow_recommendations +package = com.ExTwitter.follow_recommendations [docbird] project_name = follow-recommendations-service diff --git a/follow-recommendations-service/README.md b/follow-recommendations-service/README.md index 1640184a5..acc72fe91 100644 --- a/follow-recommendations-service/README.md +++ b/follow-recommendations-service/README.md @@ -1,14 +1,14 @@ # Follow Recommendations Service ## Introduction to the Follow Recommendations Service (FRS) -The Follow Recommendations Service (FRS) is a robust recommendation engine designed to provide users with personalized suggestions for accounts to follow. At present, FRS supports Who-To-Follow (WTF) module recommendations across a variety of Twitter product interfaces. Additionally, by suggesting tweet authors, FRS also delivers FutureGraph tweet recommendations, which consist of tweets from accounts that users may be interested in following in the future. +The Follow Recommendations Service (FRS) is a robust recommendation engine designed to provide users with personalized suggestions for accounts to follow. At present, FRS supports Who-To-Follow (WTF) module recommendations across a variety of ExTwitter product interfaces. Additionally, by suggesting tweet authors, FRS also delivers FutureGraph tweet recommendations, which consist of tweets from accounts that users may be interested in following in the future. ## Design -The system is tailored to accommodate diverse use cases, such as Post New-User-Experience (NUX), advertisements, FutureGraph tweets, and more. Each use case features a unique display location identifier. To view all display locations, refer to the following path: `follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala`. +The system is tailored to accommodate diverse use cases, such as Post New-User-Experience (NUX), advertisements, FutureGraph tweets, and more. Each use case features a unique display location identifier. To view all display locations, refer to the following path: `follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models/DisplayLocation.scala`. -Recommendation steps are customized according to each display location. Common and high-level steps are encapsulated within the "RecommendationFlow," which includes operations like candidate generation, ranker selection, filtering, transformation, and beyond. To explore all flows, refer to this path: `follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows`. +Recommendation steps are customized according to each display location. Common and high-level steps are encapsulated within the "RecommendationFlow," which includes operations like candidate generation, ranker selection, filtering, transformation, and beyond. To explore all flows, refer to this path: `follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows`. -For each product (corresponding to a display location), one or multiple flows can be selected to generate candidates based on code and configurations. To view all products, refer to the following path: `follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs`. +For each product (corresponding to a display location), one or multiple flows can be selected to generate candidates based on code and configurations. To view all products, refer to the following path: `follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/home_timeline_tweet_recs`. The FRS overview diagram is depicted below: @@ -16,25 +16,25 @@ The FRS overview diagram is depicted below: ### Candidate Generation -During this step, FRS utilizes various user signals and algorithms to identify candidates from all Twitter accounts. The candidate source folder is located at `follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/`, with a README file provided within each candidate source folder. +During this step, FRS utilizes various user signals and algorithms to identify candidates from all ExTwitter accounts. The candidate source folder is located at `follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/`, with a README file provided within each candidate source folder. ### Filtering -In this phase, FRS applies different filtering logic after generating account candidates to improve quality and health. Filtering may occur before and/or after the ranking step, with heavier filtering logic (e.g., higher latency) typically applied after the ranking step. The filters' folder is located at `follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates`. +In this phase, FRS applies different filtering logic after generating account candidates to improve quality and health. Filtering may occur before and/or after the ranking step, with heavier filtering logic (e.g., higher latency) typically applied after the ranking step. The filters' folder is located at `follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates`. ### Ranking During this step, FRS employs both Machine Learning (ML) and heuristic rule-based candidate ranking. For the ML ranker, ML features are fetched beforehand (i.e., feature hydration), -and a DataRecord (the Twitter-standard Machine Learning data format used to represent feature data, labels, and predictions when training or serving) is constructed for each pair. +and a DataRecord (the ExTwitter-standard Machine Learning data format used to represent feature data, labels, and predictions when training or serving) is constructed for each pair. These pairs are then sent to a separate ML prediction service, which houses the ML model trained offline. The ML prediction service returns a prediction score, representing the probability that a user will follow and engage with the candidate. This score is a weighted sum of p(follow|recommendation) and p(positive engagement|follow), and FRS uses this score to rank the candidates. -The rankers' folder is located at `follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers`. +The rankers' folder is located at `follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers`. ### Transform In this phase, the sequence of candidates undergoes necessary transformations, such as deduplication, attaching social proof (i.e., "followed by XX user"), adding tracking tokens, and more. -The transformers' folder can be found at `follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms`. +The transformers' folder can be found at `follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms`. ### Truncation During this final step, FRS trims the candidate pool to a specified size. This process ensures that only the most relevant and engaging candidates are presented to users while maintaining an optimal user experience. -By implementing these comprehensive steps and adapting to various use cases, the Follow Recommendations Service (FRS) effectively curates tailored suggestions for Twitter users, enhancing their overall experience and promoting meaningful connections within the platform. +By implementing these comprehensive steps and adapting to various use cases, the Follow Recommendations Service (FRS) effectively curates tailored suggestions for ExTwitter users, enhancing their overall experience and promoting meaningful connections within the platform. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/BUILD index d02506a85..eeef9adf2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/BUILD @@ -4,15 +4,15 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/com/google/guava", - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", "finagle/finagle-core/src/main", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/recommendation", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/recommendation", "stitch/stitch-core", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/recommendation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/recommendation", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/CandidateSourceRegistry.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/CandidateSourceRegistry.scala index ee9cfbbe5..0aaa6c2bd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/CandidateSourceRegistry.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/CandidateSourceRegistry.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.EnrichedCandidateSource.toEnriched -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.EnrichedCandidateSource.toEnriched +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier // a helper structure to register and select candidate sources based on identifiers trait CandidateSourceRegistry[Target, Candidate] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/EnrichedCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/EnrichedCandidateSource.scala index 9d8507528..0f4aa5a02 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/EnrichedCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/EnrichedCandidateSource.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.stitch.Stitch -import com.twitter.util.Duration -import com.twitter.util.TimeoutException +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Duration +import com.ExTwitter.util.TimeoutException import scala.language.implicitConversions class EnrichedCandidateSource[Target, Candidate](original: CandidateSource[Target, Candidate]) { @@ -119,7 +119,7 @@ class EnrichedCandidateSource[Target, Candidate](original: CandidateSource[Targe override def apply(target: Target): Stitch[Seq[Candidate]] = { original .apply(target) - .within(candidateTimeout)(com.twitter.finagle.util.DefaultTimer) + .within(candidateTimeout)(com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => timeoutCounter.incr() @@ -142,7 +142,7 @@ class EnrichedCandidateSource[Target, Candidate](original: CandidateSource[Targe override def apply(target: Target): Stitch[Seq[Candidate]] = { original .apply(target) - .within(candidateTimeout)(com.twitter.finagle.util.DefaultTimer) + .within(candidateTimeout)(com.ExTwitter.finagle.util.DefaultTimer) .handle { case _: TimeoutException => timeoutCounter.incr() diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/ParamPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/ParamPredicate.scala index f457527bc..ac55f790f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/ParamPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/ParamPredicate.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.follow_recommendations.common.models.FilterReason.ParamReason -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.common.models.FilterReason.ParamReason +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Param case class ParamPredicate[Request <: HasParams](param: Param[Boolean]) extends Predicate[Request] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Predicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Predicate.scala index e5b40ed82..1ccb9d467 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Predicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Predicate.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.stitch.Arrow -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.stitch.Arrow +import com.ExTwitter.stitch.Stitch trait Predicate[-Q] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/PredicateResult.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/PredicateResult.scala index 002e90275..6b9dfba07 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/PredicateResult.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/PredicateResult.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.models.FilterReason sealed trait PredicateResult { def value: Boolean diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Ranker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Ranker.scala index 27eb50457..5e27dffa9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Ranker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Ranker.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.stitch.Stitch -import com.twitter.util.Duration -import com.twitter.util.TimeoutException +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Duration +import com.ExTwitter.util.TimeoutException /** * Ranker is a special kind of transform that would only change the order of a list of items. @@ -57,7 +57,7 @@ trait Ranker[Target, Candidate] extends Transform[Target, Candidate] { ranker => override def rank(target: Target, candidates: Seq[Candidate]): Stitch[Seq[Candidate]] = { original .rank(target, candidates) - .within(timeout)(com.twitter.finagle.util.DefaultTimer) + .within(timeout)(com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => timeoutCounter.incr() diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/RecommendationFlow.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/RecommendationFlow.scala index 6bddc9751..e45be63a2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/RecommendationFlow.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/RecommendationFlow.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier -import com.twitter.product_mixer.core.pipeline.recommendation.RecommendationPipelineResult -import com.twitter.product_mixer.core.quality_factor.QualityFactorObserver -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.recommendation.RecommendationPipelineResult +import com.ExTwitter.product_mixer.core.quality_factor.QualityFactorObserver +import com.ExTwitter.stitch.Stitch /** * configs for results generated from the recommendation flow diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/SideEffectsUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/SideEffectsUtil.scala index 2c922f580..f52e6ccea 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/SideEffectsUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/SideEffectsUtil.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.stitch.Stitch /** * SideEffectsUtil applies side effects to the intermediate candidate results from a recommendation flow pipeline. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/StatsUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/StatsUtil.scala index eb99a909e..075d7e808 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/StatsUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/StatsUtil.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.base -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.product_mixer.core.quality_factor.QualityFactorObserver -import com.twitter.stitch.Arrow -import com.twitter.stitch.Stitch -import com.twitter.util.Stopwatch +package com.ExTwitter.follow_recommendations.common.base +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.product_mixer.core.quality_factor.QualityFactorObserver +import com.ExTwitter.stitch.Arrow +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Stopwatch import java.util.concurrent.TimeUnit import scala.util.control.NonFatal diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Transform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Transform.scala index c870db2f6..f744d652c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Transform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base/Transform.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.base +package com.ExTwitter.follow_recommendations.common.base -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Param /** * transform a or a list of candidate for target T diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/AddressBookParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/AddressBookParams.scala index f93a60d1b..2a76c9df7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/AddressBookParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/AddressBookParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.candidate_sources.addressbook +package com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object AddressBookParams { // Used by display locations that want only to read from the ABV2 Client and ignore Manhattan diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/BUILD index ddbabad19..84f7fed1c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/BUILD @@ -8,20 +8,20 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", - "src/thrift/com/twitter/hermit/usercontacts:hermit-usercontacts-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/addressbook", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/email_storage_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/gizmoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/phone_storage_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", + "src/thrift/com/ExTwitter/hermit/usercontacts:hermit-usercontacts-scala", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardEmailBookSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardEmailBookSource.scala index d291459ce..40ca583a6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardEmailBookSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardEmailBookSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.candidate_sources.addressbook +package com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.AddressBookParams.ReadFromABV2Only -import com.twitter.follow_recommendations.common.clients.addressbook.AddressbookClient -import com.twitter.follow_recommendations.common.clients.addressbook.models.EdgeType -import com.twitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.ForwardEmailBookClientColumn -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.AddressBookParams.ReadFromABV2Only +import com.ExTwitter.follow_recommendations.common.clients.addressbook.AddressbookClient +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.EdgeType +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.ForwardEmailBookClientColumn +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardPhoneBookSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardPhoneBookSource.scala index bb1f61f05..3499de6f0 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardPhoneBookSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ForwardPhoneBookSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.candidate_sources.addressbook +package com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.AddressBookParams.ReadFromABV2Only -import com.twitter.follow_recommendations.common.clients.addressbook.AddressbookClient -import com.twitter.follow_recommendations.common.clients.addressbook.models.EdgeType -import com.twitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.ForwardPhoneContactsClientColumn -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.AddressBookParams.ReadFromABV2Only +import com.ExTwitter.follow_recommendations.common.clients.addressbook.AddressbookClient +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.EdgeType +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.ForwardPhoneContactsClientColumn +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReverseEmailBookSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReverseEmailBookSource.scala index 6e89f8c24..2a80df6eb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReverseEmailBookSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReverseEmailBookSource.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.candidate_sources.addressbook +package com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook -import com.twitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.addressbook.AddressbookClient -import com.twitter.follow_recommendations.common.clients.addressbook.models.EdgeType -import com.twitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier -import com.twitter.follow_recommendations.common.clients.email_storage_service.EmailStorageServiceClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueOptionalWithStats -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.ReverseEmailContactsClientColumn -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.addressbook.AddressbookClient +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.EdgeType +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier +import com.ExTwitter.follow_recommendations.common.clients.email_storage_service.EmailStorageServiceClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueOptionalWithStats +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.ReverseEmailContactsClientColumn +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReversePhoneBookSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReversePhoneBookSource.scala index 4dbe5a617..c284ba264 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReversePhoneBookSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook/ReversePhoneBookSource.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.candidate_sources.addressbook +package com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook -import com.twitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.addressbook.AddressbookClient -import com.twitter.follow_recommendations.common.clients.addressbook.models.EdgeType -import com.twitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier -import com.twitter.follow_recommendations.common.clients.phone_storage_service.PhoneStorageServiceClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.ReversePhoneContactsClientColumn -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.addressbook.AddressbookClient +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.EdgeType +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier +import com.ExTwitter.follow_recommendations.common.clients.phone_storage_service.PhoneStorageServiceClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.ReversePhoneContactsClientColumn +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/BUILD index 275137bf9..164023713 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/BUILD @@ -8,16 +8,16 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "content-recommender/thrift/src/main/thrift:thrift-scala", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "src/scala/com/twitter/onboarding/relevance/features/ymbii", - "strato/src/main/scala/com/twitter/strato/client", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/modify_social_proof", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/scala/com/ExTwitter/onboarding/relevance/features/ymbii", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/CachedCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/CachedCandidateSource.scala index c0196c304..78d31985d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/CachedCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/CachedCandidateSource.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.stats.StatsReceiver -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.util.Duration +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Duration class CachedCandidateSource[K <: Object, V <: Object]( candidateSource: CandidateSource[K, V], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/ExperimentalCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/ExperimentalCandidateSource.scala index 9e2b0e6e9..b5009c1e5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/ExperimentalCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/ExperimentalCandidateSource.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Param -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +package com.ExTwitter.follow_recommendations.common.candidate_sources.base +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier /** * A wrapper of CandidateSource to make it easier to do experimentation diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/RealGraphExpansionRepository.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/RealGraphExpansionRepository.scala index 8add11fa6..a62001a2f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/RealGraphExpansionRepository.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/RealGraphExpansionRepository.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.follow_recommendations.common.candidate_sources.base.RealGraphExpansionRepository.DefaultScore -import com.twitter.follow_recommendations.common.candidate_sources.base.RealGraphExpansionRepository.MaxNumIntermediateNodesToKeep -import com.twitter.follow_recommendations.common.candidate_sources.base.RealGraphExpansionRepository.FirstDegreeCandidatesTimeout -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models._ -import com.twitter.onboarding.relevance.features.ymbii.ExpansionCandidateScores -import com.twitter.onboarding.relevance.features.ymbii.RawYMBIICandidateFeatures -import com.twitter.onboarding.relevance.store.thriftscala.CandidatesFollowedV1 -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.strato.client.Fetcher -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.RealGraphExpansionRepository.DefaultScore +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.RealGraphExpansionRepository.MaxNumIntermediateNodesToKeep +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.RealGraphExpansionRepository.FirstDegreeCandidatesTimeout +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models._ +import com.ExTwitter.onboarding.relevance.features.ymbii.ExpansionCandidateScores +import com.ExTwitter.onboarding.relevance.features.ymbii.RawYMBIICandidateFeatures +import com.ExTwitter.onboarding.relevance.store.thriftscala.CandidatesFollowedV1 +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.util.Duration import scala.collection.immutable import scala.util.control.NonFatal diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderParams.scala index a4a0c9784..c597cfc01 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object SimilarUserExpanderParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderRepository.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderRepository.scala index 336902b34..8b04f0cd7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderRepository.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SimilarUserExpanderRepository.scala @@ -1,28 +1,28 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.DefaultEnableImplicitEngagedExpansion -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.DefaultExpansionInputCount -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.DefaultFinalCandidatesReturnedCount -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.EnableNonDirectFollowExpansion -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.EnableSimsExpandSeedAccountsSort -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderRepository.DefaultCandidateBuilder -import com.twitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderRepository.DefaultScore -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.EngagementType -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.follow_recommendations.common.models.SimilarToProof -import com.twitter.follow_recommendations.common.models.UserCandidateSourceDetails -import com.twitter.hermit.candidate.thriftscala.Candidates -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.strato.client.Fetcher -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.DefaultEnableImplicitEngagedExpansion +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.DefaultExpansionInputCount +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.DefaultFinalCandidatesReturnedCount +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.EnableNonDirectFollowExpansion +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderParams.EnableSimsExpandSeedAccountsSort +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderRepository.DefaultCandidateBuilder +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SimilarUserExpanderRepository.DefaultScore +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.EngagementType +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.follow_recommendations.common.models.SimilarToProof +import com.ExTwitter.follow_recommendations.common.models.UserCandidateSourceDetails +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params case class SecondDegreeCandidate(userId: Long, score: Double, socialProof: Option[Seq[Long]]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSource.scala index f650c9f6d..317983fad 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSource.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.transforms.modify_social_proof.ModifySocialProof -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.transforms.modify_social_proof.ModifySocialProof +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration abstract class SocialProofEnforcedCandidateSource( candidateSource: CandidateSource[HasClientContext with HasParams, CandidateUser], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceFSConfig.scala index a74164f28..6278fcff1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceFSConfig.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceParams.scala index 36e50e59f..e0ca3bb41 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/SocialProofEnforcedCandidateSourceParams.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration object SocialProofEnforcedCandidateSourceParams { case object MustCallSgs diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherSource.scala index ea6fa57fa..5d6a8f86b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherSource.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.follow_recommendations.common.models.CandidateUser -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.strato.client.Fetcher +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher abstract class StratoFetcherSource[K, U, V]( fetcher: Fetcher[K, U, V], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherWithUnitViewSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherWithUnitViewSource.scala index 1f1572ee6..eb157518b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherWithUnitViewSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/StratoFetcherWithUnitViewSource.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher abstract class StratoFetcherWithUnitViewSource[K, V]( fetcher: Fetcher[K, Unit, V], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TweetAuthorsCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TweetAuthorsCandidateSource.scala index 541b24837..3964e17a2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TweetAuthorsCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TweetAuthorsCandidateSource.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.follow_recommendations.common.models.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.models.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.stitch.Stitch /** * base trait for tweet authors based algorithms, e.g. topical tweet authors, twistly, ... diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TwoHopExpansionCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TwoHopExpansionCandidateSource.scala index 40c699d22..99f8bd663 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TwoHopExpansionCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base/TwoHopExpansionCandidateSource.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.base +package com.ExTwitter.follow_recommendations.common.candidate_sources.base -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.stitch.Stitch /** * base trait for two-hop expansion based algorithms, e.g. online_stp, phonebook_prediction, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/BUILD index de3bc0a6b..8fe2127b1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/BUILD @@ -5,18 +5,18 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/com/google/inject:guice", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "src/thrift/com/twitter/onboarding/relevance/crowd_search_accounts:crowd_search_accounts-scala", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/geoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/onboarding/relevance/crowd_search_accounts:crowd_search_accounts-scala", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", - "util/util-core/src/main/scala/com/twitter/conversions", + "strato/src/main/scala/com/ExTwitter/strato/client", + "util/util-core/src/main/scala/com/ExTwitter/conversions", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsFSConfig.scala index 520983b60..61466fe8c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsParams.scala index a167b7768..0362076ea 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumSeqParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumSeqParam +import com.ExTwitter.timelines.configapi.FSParam object CrowdSearchAccountsParams { // whether or not to fetch CrowdSearchAccounts candidate sources diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsSource.scala index 6d3e903a1..b3d2d6fd7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts/CrowdSearchAccountsSource.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsParams.AccountsFilteringAndRankingLogics -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsParams.CandidateSourceEnabled -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasGeohashAndCountryCode -import com.twitter.hermit.model.Algorithm -import com.twitter.onboarding.relevance.crowd_search_accounts.thriftscala.CrowdSearchAccounts -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.CrowdSearchAccountsClientColumn -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration -import com.twitter.util.logging.Logging +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsParams.AccountsFilteringAndRankingLogics +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsParams.CandidateSourceEnabled +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasGeohashAndCountryCode +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.onboarding.relevance.crowd_search_accounts.thriftscala.CrowdSearchAccounts +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.CrowdSearchAccountsClientColumn +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BUILD index 2493a4a93..d2a8a1ce2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BUILD @@ -8,16 +8,16 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/thrift/com/twitter/hermit/pop_geo:hermit-pop-geo-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/geoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/thrift/com/ExTwitter/hermit/pop_geo:hermit-pop-geo-scala", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BasePopGeoHashSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BasePopGeoHashSource.scala index 862046bbc..921a01893 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BasePopGeoHashSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/BasePopGeoHashSource.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo import com.google.inject.Singleton -import com.twitter.finagle.stats.Counter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasGeohashAndCountryCode -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.Counter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasGeohashAndCountryCode +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountryBackFillSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountryBackFillSource.scala index e2a5f9baf..62ddf65bb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountryBackFillSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountryBackFillSource.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountrySource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountrySource.scala index de6377df6..96c7738bb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountrySource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopCountrySource.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo import com.google.inject.Singleton -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.finagle.stats.Counter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasGeohashAndCountryCode -import com.twitter.follow_recommendations.common.models.HasUserState -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.finagle.stats.Counter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasGeohashAndCountryCode +import com.ExTwitter.follow_recommendations.common.models.HasUserState +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSource.scala index ad473a282..c7d223195 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSource.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo import com.google.inject.Singleton -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.PopularInGeoProof -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.hermit.model.Algorithm -import com.twitter.hermit.pop_geo.thriftscala.PopUsersInPlace -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.strato.generated.client.onboarding.userrecs.UniquePopQualityFollowUsersInPlaceClientColumn -import com.twitter.util.Duration +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.PopularInGeoProof +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.hermit.pop_geo.thriftscala.PopUsersInPlace +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.UniquePopQualityFollowUsersInPlaceClientColumn +import com.ExTwitter.util.Duration import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceFSConfig.scala index 4d8577522..ea85ea2e1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceParams.scala index dac92df52..352dda256 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object PopGeoQualityFollowSourceParams { case object CandidateSourceEnabled diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSource.scala index 2db13ed69..7cbb09151 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.base.CachedCandidateSource -import com.twitter.follow_recommendations.common.candidate_sources.base.StratoFetcherWithUnitViewSource -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.PopularInGeoProof -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.hermit.pop_geo.thriftscala.PopUsersInPlace -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.CachedCandidateSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.StratoFetcherWithUnitViewSource +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.PopularInGeoProof +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.hermit.pop_geo.thriftscala.PopUsersInPlace +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.util.Duration import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceFSConfig.scala index ea3f6ce38..230b9debd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceParams.scala index a63e320b4..763aaa243 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoSourceParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object PopGeoSourceParams { case object PopGeoSourceGeoHashMinPrecision diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeohashSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeohashSource.scala index 9447b4867..ca4608b6a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeohashSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeohashSource.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.geo +package com.ExTwitter.follow_recommendations.common.candidate_sources.geo import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/BUILD index 0ff68490c..009318e7f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/BUILD @@ -8,16 +8,16 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", "strato/config/columns/onboarding:onboarding-strato-client", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSource.scala index e22fb465d..d02c78b2e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow +package com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSourceParams.CandidateSourceEnabled -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSourceParams.LocaleToExcludeFromRecommendation -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSourceParams.CandidateSourceEnabled +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSourceParams.LocaleToExcludeFromRecommendation +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton -import com.twitter.strato.generated.client.onboarding.UserPreferredLanguagesOnUserClientColumn -import com.twitter.strato.generated.client.onboarding.userrecs.LocaleFollowPpmiClientColumn -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.strato.generated.client.onboarding.UserPreferredLanguagesOnUserClientColumn +import com.ExTwitter.strato.generated.client.onboarding.userrecs.LocaleFollowPpmiClientColumn +import com.ExTwitter.timelines.configapi.HasParams /** * Fetches candidates based on the Positive Pointwise Mutual Information (PPMI) statistic diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceFSConfig.scala index 8a40ca92d..56d9880a0 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow +package com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceParams.scala index 18aac545d..aacf36de1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow/PPMILocaleFollowSourceParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow +package com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam class PPMILocaleFollowSourceParams {} object PPMILocaleFollowSourceParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/BUILD index 27caedd22..8770d36d7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/BUILD @@ -2,10 +2,10 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/adserver", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/PromotedAccountsCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/PromotedAccountsCandidateSource.scala index ff2ad4cd9..cbcdc424f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/PromotedAccountsCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts/PromotedAccountsCandidateSource.scala @@ -1,19 +1,19 @@ -package com.twitter.follow_recommendations.common.candidate_sources.promoted_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.promoted_accounts -import com.twitter.adserver.thriftscala.AdServerException -import com.twitter.adserver.{thriftscala => adthrift} -import com.twitter.finagle.TimeoutException -import com.twitter.finagle.stats.Counter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.adserver.AdRequest -import com.twitter.follow_recommendations.common.clients.adserver.AdserverClient -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.hermit.model.Algorithm -import com.twitter.inject.Logging -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.ExTwitter.adserver.thriftscala.AdServerException +import com.ExTwitter.adserver.{thriftscala => adthrift} +import com.ExTwitter.finagle.TimeoutException +import com.ExTwitter.finagle.stats.Counter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.adserver.AdRequest +import com.ExTwitter.follow_recommendations.common.clients.adserver.AdserverClient +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.inject.Logging +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/BUILD index 07c3c6665..21be25430 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/BUILD @@ -8,17 +8,17 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/real_time_real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/stores", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "strato/config/columns/onboarding/realGraph:realGraph-strato-client", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", "strato/config/columns/recommendations/twistly:twistly-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/README.md b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/README.md index 4ba5a8c11..c6101d073 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/README.md +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/README.md @@ -3,4 +3,4 @@ Provides out-of-network RealGraph candidates for a given user. RealGraph is a us RealGraph comprises two components: a real-time pipeline that tracks various counts and relationships between user-user edges (such as the number of favorites, replies, retweets, clicks, whether followed, muted, or blocked), and an offline pipeline of a larger set of such user-user edge counts and relationships. Currently, the top k in-network scores have been exported for use by various teams. -The RealGraph dataset is used to predict user interactions at Twitter, and is based on the paper "[Realgraph: User interaction prediction at Twitter](http://www.ueo-workshop.com/wp-content/uploads/2014/04/sig-alternate.pdf)" by the UEO workshop at KDD'14. +The RealGraph dataset is used to predict user interactions at ExTwitter, and is based on the paper "[Realgraph: User interaction prediction at ExTwitter](http://www.ueo-workshop.com/wp-content/uploads/2014/04/sig-alternate.pdf)" by the UEO workshop at KDD'14. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonFSConfig.scala index df9c8ac68..1aa31fe32 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.real_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonParams.scala index feaa1d7c7..fa09034b1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.real_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object RealGraphOonParams { case object IncludeRealGraphOonCandidates diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonV2Source.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonV2Source.scala index 3c709770c..04f801093 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonV2Source.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphOonV2Source.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.real_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.realGraph.UserRealgraphOonV2ClientColumn -import com.twitter.timelines.configapi.HasParams -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.realGraph.UserRealgraphOonV2ClientColumn +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphSource.scala index 7aa2aa8af..8eae9ebc1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph/RealGraphSource.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.candidate_sources.real_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/BUILD index b2764c42e..325cbf414 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/BUILD @@ -7,23 +7,23 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "discovery-ds/src/main/thrift/com/twitter/dds/jobs/repeated_profile_visits:profile_visit-scala", + "discovery-ds/src/main/thrift/com/ExTwitter/dds/jobs/repeated_profile_visits:profile_visit-scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/identifier", - "src/thrift/com/twitter/experiments/general_metrics:general_metrics-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims_expansion", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/real_time_real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/identifier", + "src/thrift/com/ExTwitter/experiments/general_metrics:general_metrics-scala", "strato/config/columns/rux:rux-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementDirectFollowSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementDirectFollowSource.scala index edfaac5e6..97959f299 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementDirectFollowSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementDirectFollowSource.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.recent_engagement +package com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -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.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementNonDirectFollowSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementNonDirectFollowSource.scala index 46572da71..bbcce5434 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementNonDirectFollowSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RecentEngagementNonDirectFollowSource.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.recent_engagement +package com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -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.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsFSConfig.scala index 5aaccae2b..1cad4a091 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.recent_engagement +package com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsParams.scala index 5402d38f4..e2989bc1e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.recent_engagement +package com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object RepeatedProfileVisitsParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsSource.scala index c4b4aa3e7..47ceccbe2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement/RepeatedProfileVisitsSource.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.candidate_sources.recent_engagement +package com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.dds.jobs.repeated_profile_visits.thriftscala.ProfileVisitorInfo -import com.twitter.experiments.general_metrics.thriftscala.IdType -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.Engagement -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params -import com.twitter.hermit.model.Algorithm -import com.twitter.inject.Logging -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.rux.RepeatedProfileVisitsAggregateClientColumn +import com.ExTwitter.dds.jobs.repeated_profile_visits.thriftscala.ProfileVisitorInfo +import com.ExTwitter.experiments.general_metrics.thriftscala.IdType +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.Engagement +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.inject.Logging +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.rux.RepeatedProfileVisitsAggregateClientColumn @Singleton class RepeatedProfileVisitsSource @Inject() ( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/BUILD index 78a5729e2..85cf1a805 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/BUILD @@ -8,14 +8,14 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "src/thrift/com/twitter/onboarding/relevance/candidates:candidates-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/real_time_real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "src/thrift/com/ExTwitter/onboarding/relevance/candidates:candidates-scala", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/RecentEngagementDirectFollowSalsaExpansionSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/RecentEngagementDirectFollowSalsaExpansionSource.scala index 91fbba2ba..ea0ed1310 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/RecentEngagementDirectFollowSalsaExpansionSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/RecentEngagementDirectFollowSalsaExpansionSource.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.salsa +package com.ExTwitter.follow_recommendations.common.candidate_sources.salsa -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpander.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpander.scala index a9390826e..50b542ddd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpander.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpander.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.salsa +package com.ExTwitter.follow_recommendations.common.candidate_sources.salsa -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.strato.generated.client.onboarding.userrecs.SalsaFirstDegreeOnUserClientColumn -import com.twitter.strato.generated.client.onboarding.userrecs.SalsaSecondDegreeOnUserClientColumn -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.stitch.Stitch -import com.twitter.wtf.candidate.thriftscala.Candidate +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.strato.generated.client.onboarding.userrecs.SalsaFirstDegreeOnUserClientColumn +import com.ExTwitter.strato.generated.client.onboarding.userrecs.SalsaSecondDegreeOnUserClientColumn +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.wtf.candidate.thriftscala.Candidate import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpansionBasedCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpansionBasedCandidateSource.scala index b299b966d..5221f50bc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpansionBasedCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa/SalsaExpansionBasedCandidateSource.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.salsa +package com.ExTwitter.follow_recommendations.common.candidate_sources.salsa -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.stitch.Stitch abstract class SalsaExpansionBasedCandidateSource[Target](salsaExpander: SalsaExpander) extends CandidateSource[Target, CandidateUser] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/BUILD index 15c4eb94d..ac6747865 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/BUILD @@ -8,17 +8,17 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", "strato/config/columns/recommendations/follow2vec:follow2vec-strato-client", "strato/config/columns/recommendations/similarity:similarity-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/CacheBasedSimsStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/CacheBasedSimsStore.scala index 03894b533..618cbf360 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/CacheBasedSimsStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/CacheBasedSimsStore.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.hermit.candidate.thriftscala.Candidates -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.strato.client.Fetcher -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration import java.lang.{Long => JLong} diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsRefreshStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsRefreshStore.scala index 3d59e6e0d..31f72dde6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsRefreshStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsRefreshStore.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.generated.client.onboarding.userrecs.NewSimsRefreshOnUserClientColumn -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.generated.client.onboarding.userrecs.NewSimsRefreshOnUserClientColumn +import com.ExTwitter.util.Duration import javax.inject.Inject diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsStore.scala index ae291eddc..5bf612bba 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/DBV2SimsStore.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.hermit.candidate.thriftscala.Candidates -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.util.Duration import javax.inject.Inject diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/Follow2vecNearestNeighborsStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/Follow2vecNearestNeighborsStore.scala index 14131ffd3..2246fad0d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/Follow2vecNearestNeighborsStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/Follow2vecNearestNeighborsStore.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.candidate_sources.sims.Follow2vecNearestNeighborsStore.NearestNeighborParamsType -import com.twitter.hermit.candidate.thriftscala.Candidate -import com.twitter.hermit.candidate.thriftscala.Candidates -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch -import com.twitter.strato.catalog.Fetch -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.recommendations.follow2vec.LinearRegressionFollow2vecNearestNeighborsClientColumn -import com.twitter.util.Return -import com.twitter.util.Throw +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.Follow2vecNearestNeighborsStore.NearestNeighborParamsType +import com.ExTwitter.hermit.candidate.thriftscala.Candidate +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.catalog.Fetch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.recommendations.follow2vec.LinearRegressionFollow2vecNearestNeighborsClientColumn +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/README.md b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/README.md index 97bab500a..9a0a02532 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/README.md +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/README.md @@ -10,7 +10,7 @@ With over 700 million users to consider, there are multiple ways to define simil **CosineFollow** (based on user-user follow graph): The similarity between two users is defined as the cosine similarity between their followers. Despite sounding simple, computing all-pair similarity on the entire follow graph is computationally challenging. We are currently using the WHIMP algorithm to find the top 1000 similar users for each user ID. This candidate source has the largest coverage, as it can find similar user candidates for more than 700 million users. -**CosineList** (based on user-list membership graph): The similarity between two users is defined as the cosine similarity between the lists they are included as members (e.g., [here](https://twitter.com/jack/lists/memberships) are the lists that @jack is on). The same algorithm as CosineFollow is used. +**CosineList** (based on user-list membership graph): The similarity between two users is defined as the cosine similarity between the lists they are included as members (e.g., [here](https://ExTwitter.com/jack/lists/memberships) are the lists that @jack is on). The same algorithm as CosineFollow is used. **Follow2Vec** (essentially Word2Vec on user-user follow graph): We first train the Word2Vec model on follow sequence data to obtain users' embeddings and then find the most similar users based on the similarity of the embeddings. However, we need enough data for each user to learn a meaningful embedding for them, so we can only obtain embeddings for the top 10 million users (currently in production, testing 30 million users). Furthermore, Word2Vec model training is limited by memory and computation as it is trained on a single machine. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsExperimentalStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsExperimentalStore.scala index d144640c7..361fbfda9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsExperimentalStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsExperimentalStore.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.generated.client.recommendations.similarity.SimilarUsersBySimsExperimentalOnUserClientColumn -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.generated.client.recommendations.similarity.SimilarUsersBySimsExperimentalOnUserClientColumn +import com.ExTwitter.util.Duration import javax.inject.Inject diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceFSConfig.scala index 0bacb339f..770edf324 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceParams.scala index e96775a6a..66dd45ccb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsSourceParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object SimsSourceParams { case object EnableDBV2SimsStore extends FSParam[Boolean]("sims_source_enable_dbv2_source", false) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsStore.scala index 98a00a9a4..f2d36325f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SimsStore.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.hermit.candidate.thriftscala.Candidates -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.util.Duration import javax.inject.Inject diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSource.scala index 6d862c849..181f34613 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSource.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims -import com.twitter.follow_recommendations.common.candidate_sources.base.StratoFetcherSource -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.follow_recommendations.common.models.SimilarToProof -import com.twitter.hermit.candidate.thriftscala.Candidates -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.StratoFetcherSource +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.follow_recommendations.common.models.SimilarToProof +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher abstract class StratoBasedSimsCandidateSource[U]( fetcher: Fetcher[Long, U, Candidates], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSourceWithUnitView.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSourceWithUnitView.scala index af1133893..57cc68e2b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSourceWithUnitView.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/StratoBasedSimsCandidateSourceWithUnitView.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims -import com.twitter.hermit.candidate.thriftscala.Candidates -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher +import com.ExTwitter.hermit.candidate.thriftscala.Candidates +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher abstract class StratoBasedSimsCandidateSourceWithUnitView( fetcher: Fetcher[Long, Unit, Candidates], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SwitchingSimsSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SwitchingSimsSource.scala index 0d297a806..65cf086d8 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SwitchingSimsSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/SwitchingSimsSource.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.hermit.model.Algorithm -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.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/BUILD index f5ccb66e7..a22f08293 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/BUILD @@ -8,16 +8,16 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "strato/src/main/scala/com/twitter/strato/client", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/real_time_real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/DBV2SimsExpansionParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/DBV2SimsExpansionParams.scala index c323ad1f3..e67f97317 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/DBV2SimsExpansionParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/DBV2SimsExpansionParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object DBV2SimsExpansionParams { // Theses divisors are used to calibrate DBv2Sims extension candidates scores diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/README.md b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/README.md index 6143d5868..c0d5fd6ab 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/README.md +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/README.md @@ -3,4 +3,4 @@ provides similar accounts based on the Sims algorithm for a given set of account This is a 2nd-hop expansion, meaning that the input accounts could be a user's recently engaged, followed, or algorithm-generated (such as RealGraph) accounts. -For more information on Sims and how it is utilized in the Follow Recommendations Service, please refer to the `follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims/README.md` file. +For more information on Sims and how it is utilized in the Follow Recommendations Service, please refer to the `follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims/README.md` file. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersFSConfig.scala index 5642f5852..a8cd3306f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersFSConfig.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersParams.scala index 4b1729702..f85735dbc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSParam object RecentEngagementSimilarUsersParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersSource.scala index 0d99c2dc2..c9d923c6d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentEngagementSimilarUsersSource.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.follow_recommendations.common.models.SimilarToProof -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.follow_recommendations.common.models.SimilarToProof +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersParams.scala index 44b1378d4..bb5d47d53 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object RecentFollowingSimilarUsersParams { case object MaxFirstDegreeNodes diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersSource.scala index b5a187fc5..91cc2f17b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentFollowingSimilarUsersSource.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext import javax.inject.Inject object RecentFollowingSimilarUsersSource { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentStrongEngagementDirectFollowSimilarUsersSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentStrongEngagementDirectFollowSimilarUsersSource.scala index 0898aabfb..3db239309 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentStrongEngagementDirectFollowSimilarUsersSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/RecentStrongEngagementDirectFollowSimilarUsersSource.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionBasedCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionBasedCandidateSource.scala index 018fe413b..e985709f4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionBasedCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionBasedCandidateSource.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.follow_recommendations.common.candidate_sources.base.TwoHopExpansionCandidateSource -import com.twitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.follow_recommendations.common.models.SimilarToProof -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.TwoHopExpansionCandidateSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.follow_recommendations.common.models.SimilarToProof +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import scala.math._ case class SimilarUser(candidateId: Long, similarTo: Long, score: Double) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionFSConfig.scala index b145ee607..dacd5fbc1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionSourceParams.scala index f03ccceea..c703286c7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion/SimsExpansionSourceParams.scala @@ -1,5 +1,5 @@ -package com.twitter.follow_recommendations.common.candidate_sources.sims_expansion -import com.twitter.timelines.configapi.FSEnumParam +package com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion +import com.ExTwitter.timelines.configapi.FSEnumParam object SimsExpansionSourceParams { case object Aggregator diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/BUILD index e0392df45..6d6c423a0 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/BUILD @@ -8,11 +8,11 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/README.md b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/README.md index bfdbacd25..ea630f57f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/README.md +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/README.md @@ -1,6 +1,6 @@ # Social Graph Candidate Source -Provides candidate expansion based on the Twitter social graph. +Provides candidate expansion based on the ExTwitter social graph. Currently, the expansion is mainly based on the "follow" social graph edge, which allows the service to identify recent following accounts for a given set of accounts. The input accounts could be a user's recent following, engaged, or other related accounts. -In summary, the Social Graph Candidate Source utilizes the Twitter social graph to provide candidate expansion, primarily focusing on recent following accounts. +In summary, the Social Graph Candidate Source utilizes the ExTwitter social graph to provide candidate expansion, primarily focusing on recent following accounts. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSource.scala index 577213cc1..57c091757 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.candidate_sources.socialgraph +package com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.base.TwoHopExpansionCandidateSource -import com.twitter.follow_recommendations.common.clients.socialgraph.RecentEdgesQuery -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.hermit.model.Algorithm -import com.twitter.inject.Logging -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.socialgraph.thriftscala.RelationshipType -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.TwoHopExpansionCandidateSource +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.RecentEdgesQuery +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.inject.Logging +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.socialgraph.thriftscala.RelationshipType +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceFSConfig.scala index ac6403ebe..b8c404aac 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.socialgraph +package com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceParams.scala index 4c51233ad..d3d6c7985 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph/RecentFollowingRecentFollowingExpansionSourceParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.candidate_sources.socialgraph +package com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object RecentFollowingRecentFollowingExpansionSourceParams { object CallSgsCachedColumn diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BUILD index e89bade43..0bd2e89be 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BUILD @@ -8,21 +8,21 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/scala/com/twitter/onboarding/relevance/features/strongtie", - "src/thrift/com/twitter/search/account_search/extended_network:extended_network_users-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/addressbook", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/real_time_real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/stores", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/scala/com/ExTwitter/onboarding/relevance/features/strongtie", + "src/thrift/com/ExTwitter/search/account_search/extended_network:extended_network_users-scala", "strato/config/columns/hub:hub-strato-client", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", "strato/config/columns/search/account_search:account_search-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BaseOnlineSTPSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BaseOnlineSTPSource.scala index 9f4365642..e0c79099a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BaseOnlineSTPSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/BaseOnlineSTPSource.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.STPGraph -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.logging.Logging -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.STPFeatureGenerator -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.STPGraph +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.STPFeatureGenerator +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord abstract class BaseOnlineSTPSource( stpGraphBuilder: STPGraphBuilder, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/Dbv2StpScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/Dbv2StpScorer.scala index 82308282a..fe06bb04f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/Dbv2StpScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/Dbv2StpScorer.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.cortex.deepbird.runtime.prediction_engine.TensorflowPredictionEngine -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.ml.api.Feature.Continuous -import com.twitter.ml.api.util.SRichDataRecord -import com.twitter.ml.prediction_service.PredictionRequest -import com.twitter.stitch.Stitch -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.STPRecordAdapter +import com.ExTwitter.cortex.deepbird.runtime.prediction_engine.TensorflowPredictionEngine +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.ml.api.Feature.Continuous +import com.ExTwitter.ml.api.util.SRichDataRecord +import com.ExTwitter.ml.prediction_service.PredictionRequest +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.STPRecordAdapter import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/EpStpScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/EpStpScorer.scala index d02259575..469ffb807 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/EpStpScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/EpStpScorer.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.thrift.BinaryThriftCodec -import com.twitter.relevance.ep_model.scorer.EPScorer -import com.twitter.relevance.ep_model.scorer.ScorerUtil -import com.twitter.relevance.ep_model.thrift -import com.twitter.relevance.ep_model.thriftscala.EPScoringOptions -import com.twitter.relevance.ep_model.thriftscala.EPScoringRequest -import com.twitter.relevance.ep_model.thriftscala.EPScoringResponse -import com.twitter.relevance.ep_model.thriftscala.Record -import com.twitter.stitch.Stitch -import com.twitter.util.Future +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.thrift.BinaryThriftCodec +import com.ExTwitter.relevance.ep_model.scorer.EPScorer +import com.ExTwitter.relevance.ep_model.scorer.ScorerUtil +import com.ExTwitter.relevance.ep_model.thrift +import com.ExTwitter.relevance.ep_model.thriftscala.EPScoringOptions +import com.ExTwitter.relevance.ep_model.thriftscala.EPScoringRequest +import com.ExTwitter.relevance.ep_model.thriftscala.EPScoringResponse +import com.ExTwitter.relevance.ep_model.thriftscala.Record +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton import scala.collection.JavaConverters._ diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/MutualFollowStrongTiePredictionSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/MutualFollowStrongTiePredictionSource.scala index 10a269931..62a3d7709 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/MutualFollowStrongTiePredictionSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/MutualFollowStrongTiePredictionSource.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.follow_recommendations.common.clients.socialgraph.RecentEdgesQuery -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.socialgraph.thriftscala.RelationshipType -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.StrongTiePredictionFeaturesOnUserClientColumn +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.RecentEdgesQuery +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.socialgraph.thriftscala.RelationshipType +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.StrongTiePredictionFeaturesOnUserClientColumn import javax.inject.Singleton import javax.inject.Inject diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineMutualFollowExpansionSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineMutualFollowExpansionSource.scala index 37981f843..82680fb87 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineMutualFollowExpansionSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineMutualFollowExpansionSource.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp import com.google.inject.Singleton -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.generated.client.onboarding.userrecs.MutualFollowExpansionClientColumn +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.generated.client.onboarding.userrecs.MutualFollowExpansionClientColumn import javax.inject.Inject /** diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceFsConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceFsConfig.scala index 152fc97a6..8009215ab 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceFsConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceFsConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceParams.scala index fb1672cdb..3bef8c259 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object OfflineStpSourceParams { // If enabled, we use the new, denser version of PMI matrix to generate OfflineSTP candidates. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithDensePmiMatrix.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithDensePmiMatrix.scala index 6a37ff222..6d24dc2bf 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithDensePmiMatrix.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithDensePmiMatrix.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp import com.google.inject.Singleton -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.generated.client.hub.PpmiDenseMatrixCandidatesClientColumn +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.generated.client.hub.PpmiDenseMatrixCandidatesClientColumn import javax.inject.Inject /** diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithLegacyPmiMatrix.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithLegacyPmiMatrix.scala index 7e17b2e8a..18c4c313d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithLegacyPmiMatrix.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStpSourceWithLegacyPmiMatrix.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp import com.google.inject.Singleton -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.generated.client.onboarding.userrecs.StrongTiePredictionClientColumn +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.generated.client.onboarding.userrecs.StrongTiePredictionClientColumn import javax.inject.Inject /** diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionBaseSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionBaseSource.scala index a46d49662..cccbec0ac 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionBaseSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionBaseSource.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.hermit.stp.thriftscala.STPResult -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.hermit.stp.thriftscala.STPResult +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.timelines.configapi.HasParams /** Base class that all variants of our offline stp dataset can extend. Assumes the same STPResult * value in the key and converts the result into the necessary internal model. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionSource.scala index 6a1cb3983..7061a17af 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OfflineStrongTiePredictionSource.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStpSourceParams.UseDenserPmiMatrix -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.util.logging.Logging -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStpSourceParams.UseDenserPmiMatrix +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject object OfflineStpScore extends Feature[UserCandidate, Option[Double]] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceFSConfig.scala index ff61cc29c..95592be11 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceParams.scala index e6224d359..2076a157d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param object OnlineSTPSourceParams { // This replaces the old scorer module, located at EpStpScorer.scala, with the new scorer, located diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceScorer.scala index 16bc60776..cf1c3d432 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceScorer.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithDeepbirdV2Scorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithDeepbirdV2Scorer.scala index b8f348fea..88241916e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithDeepbirdV2Scorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithDeepbirdV2Scorer.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.onboarding.relevance.features.strongtie.{ +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.onboarding.relevance.features.strongtie.{ StrongTieFeatures => StrongTieFeaturesWrapper } -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithEPScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithEPScorer.scala index 1c6163852..1c75b0ab0 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithEPScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/OnlineSTPSourceWithEPScorer.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.stp.OnlineSTPSourceParams.SetPredictionDetails -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.onboarding.relevance.features.strongtie.{ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OnlineSTPSourceParams.SetPredictionDetails +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.onboarding.relevance.features.strongtie.{ StrongTieFeatures => StrongTieFeaturesWrapper } -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.logging.Logging -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.STPRecord import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/README.md b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/README.md index f3d415d3a..e4cde6ab5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/README.md +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/README.md @@ -30,14 +30,14 @@ Features used for the lightweight ranker: * isReversePhonebook: whether the user is in the candidate's phone book * numMutualFollowPath: number of mutual follow path between the user and the candidate * numLowTweepcredFollowPath: number of mutual low TweepCred path between the user and the candidate - * Tweepcred is a social network analysis tool that calculates the influence of Twitter users based on their interactions with other users. The tool uses the PageRank algorithm to rank users based on their influence. + * Tweepcred is a social network analysis tool that calculates the influence of ExTwitter users based on their interactions with other users. The tool uses the PageRank algorithm to rank users based on their influence. * hasForwardEmailPath: is there a third user x in the user's email book that connect user -> x -> candidate? * hasReverseEmailPath: is there a third user x in the user's reverse email book that connect user -> x -> candidate? * hasForwardPhonebookPath: is there a third user x in the user's phonebook that connect user -> x -> candidate? * hasReversePhonebookPath: is there a third user x in the user's reverse phonebook that connect user -> x -> candidate? ### Offline STP -Offline STP is powered by Pointwise Mutual Information, which measures the association between two users based on Twitter's mutual follow graph. +Offline STP is powered by Pointwise Mutual Information, which measures the association between two users based on ExTwitter's mutual follow graph. An offline job generates candidates based on the overlap between their Mutual and Addressbook Follows and that of the target user. Candidates are then made available online. Candidates in OfflineSTP are "accounts that have a high overlap of mutually-followed accounts with an account in your follow graph." This can potentially mean that OfflineSTP has a bigger reach than OnlineSTP. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPFirstDegreeFetcher.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPFirstDegreeFetcher.scala index 477e19eb5..cc81c5496 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPFirstDegreeFetcher.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPFirstDegreeFetcher.scala @@ -1,26 +1,26 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource -import com.twitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.PotentialFirstDegreeEdge -import com.twitter.follow_recommendations.common.stores.LowTweepCredFollowStore -import com.twitter.hermit.model.Algorithm -import com.twitter.hermit.model.Algorithm.Algorithm -import com.twitter.inject.Logging -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration -import com.twitter.util.Timer -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdge -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdgeInfo -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdgeInfoMonoid +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource +import com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph.RealTimeRealGraphClient +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.PotentialFirstDegreeEdge +import com.ExTwitter.follow_recommendations.common.stores.LowTweepCredFollowStore +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.hermit.model.Algorithm.Algorithm +import com.ExTwitter.inject.Logging +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Timer +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdge +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdgeInfo +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdgeInfoMonoid import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPGraphBuilder.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPGraphBuilder.scala index 0d2fe7ffc..3a9fb63c0 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPGraphBuilder.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPGraphBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.STPGraph -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.STPGraph +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPSecondDegreeFetcher.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPSecondDegreeFetcher.scala index b7e996ab3..a5403930a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPSecondDegreeFetcher.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/STPSecondDegreeFetcher.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp -import com.twitter.follow_recommendations.common.models.IntermediateSecondDegreeEdge -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.StrongTiePredictionFeaturesOnUserClientColumn -import com.twitter.timelines.configapi.HasParams -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdge -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.SecondDegreeEdge -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.SecondDegreeEdgeInfo +import com.ExTwitter.follow_recommendations.common.models.IntermediateSecondDegreeEdge +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.StrongTiePredictionFeaturesOnUserClientColumn +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdge +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.SecondDegreeEdge +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.SecondDegreeEdgeInfo import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/SocialProofEnforcedOfflineStrongTiePredictionSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/SocialProofEnforcedOfflineStrongTiePredictionSource.scala index 140b8b156..2b7a815f6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/SocialProofEnforcedOfflineStrongTiePredictionSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp/SocialProofEnforcedOfflineStrongTiePredictionSource.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.candidate_sources.stp +package com.ExTwitter.follow_recommendations.common.candidate_sources.stp import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.base.SocialProofEnforcedCandidateSource -import com.twitter.follow_recommendations.common.transforms.modify_social_proof.ModifySocialProof -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SocialProofEnforcedCandidateSource +import com.ExTwitter.follow_recommendations.common.transforms.modify_social_proof.ModifySocialProof +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier import javax.inject.Inject @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/BUILD index 37d604a8f..18afa57b8 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/BUILD @@ -5,18 +5,18 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/com/google/inject:guice", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "src/thrift/com/twitter/onboarding/relevance/organic_follows_accounts:organic_follows_accounts-scala", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/geoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/onboarding/relevance/organic_follows_accounts:organic_follows_accounts-scala", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", - "util/util-core/src/main/scala/com/twitter/conversions", + "strato/src/main/scala/com/ExTwitter/strato/client", + "util/util-core/src/main/scala/com/ExTwitter/conversions", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsFSConfig.scala index 8a179529b..23a21355d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsParams.scala index 36778748e..e44cf9194 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumSeqParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumSeqParam +import com.ExTwitter.timelines.configapi.FSParam object TopOrganicFollowsAccountsParams { // whether or not to fetch TopOrganicFollowsAccounts candidate sources diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsSource.scala index b7f60ece9..33b413aef 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts/TopOrganicFollowsAccountsSource.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts +package com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsParams.AccountsFilteringAndRankingLogics -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsParams.CandidateSourceEnabled -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasGeohashAndCountryCode -import com.twitter.hermit.model.Algorithm -import com.twitter.onboarding.relevance.organic_follows_accounts.thriftscala.OrganicFollowsAccounts -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.OrganicFollowsAccountsClientColumn -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration -import com.twitter.util.logging.Logging +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsParams.AccountsFilteringAndRankingLogics +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsParams.CandidateSourceEnabled +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasGeohashAndCountryCode +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.onboarding.relevance.organic_follows_accounts.thriftscala.OrganicFollowsAccounts +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.OrganicFollowsAccountsClientColumn +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/BUILD index f69443cf6..a7e4affb7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/BUILD @@ -8,14 +8,14 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsFSConfig.scala index 444fecd0e..00d2881e9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.triangular_loops +package com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsParams.scala index 9fb80235e..c8c42b98a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.candidate_sources.triangular_loops +package com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object TriangularLoopsParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsSource.scala index 73e187ba4..63cebdd70 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops/TriangularLoopsSource.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.common.candidate_sources.triangular_loops +package com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.HasRecentFollowedByUserIds -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.TriangularLoopsV2OnUserClientColumn -import com.twitter.timelines.configapi.HasParams -import com.twitter.wtf.triangular_loop.thriftscala.Candidates +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedByUserIds +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.TriangularLoopsV2OnUserClientColumn +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.wtf.triangular_loop.thriftscala.Candidates import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/BUILD index ad7d6805e..403e12a17 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/BUILD @@ -8,13 +8,13 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", - "strato/src/main/scala/com/twitter/strato/client", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/TwoHopRandomWalkSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/TwoHopRandomWalkSource.scala index 5ce2fee70..65872800e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/TwoHopRandomWalkSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk/TwoHopRandomWalkSource.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.candidate_sources.two_hop_random_walk +package com.ExTwitter.follow_recommendations.common.candidate_sources.two_hop_random_walk -import com.twitter.follow_recommendations.common.candidate_sources.base.StratoFetcherWithUnitViewSource -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.wtf.candidate.thriftscala.{CandidateSeq => TCandidateSeq} +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.StratoFetcherWithUnitViewSource +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.wtf.candidate.thriftscala.{CandidateSeq => TCandidateSeq} import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/BUILD index 63b10be6c..b944eff7e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/BUILD @@ -8,11 +8,11 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/thrift/com/twitter/recos/user_user_graph:user_user_graph-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/thrift/com/ExTwitter/recos/user_user_graph:user_user_graph-scala", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphCandidateSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphCandidateSource.scala index 4571f1471..5727d23ba 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphCandidateSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphCandidateSource.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.candidate_sources.user_user_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph -import com.twitter.finagle.stats.Counter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.models._ -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.recos.recos_common.thriftscala.UserSocialProofType -import com.twitter.recos.user_user_graph.thriftscala.RecommendUserDisplayLocation -import com.twitter.recos.user_user_graph.thriftscala.RecommendUserRequest -import com.twitter.recos.user_user_graph.thriftscala.RecommendUserResponse -import com.twitter.recos.user_user_graph.thriftscala.RecommendedUser -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.Counter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.models._ +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.recos.recos_common.thriftscala.UserSocialProofType +import com.ExTwitter.recos.user_user_graph.thriftscala.RecommendUserDisplayLocation +import com.ExTwitter.recos.user_user_graph.thriftscala.RecommendUserRequest +import com.ExTwitter.recos.user_user_graph.thriftscala.RecommendUserResponse +import com.ExTwitter.recos.user_user_graph.thriftscala.RecommendedUser +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphFSConfig.scala index 3d3015a36..b3a6a5ca2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.candidate_sources.user_user_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphParams.scala index d146c3459..7cf13c98b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph/UserUserGraphParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.candidate_sources.user_user_graph +package com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param object UserUserGraphParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookClient.scala index 6fe1cee6f..33b28da76 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookClient.scala @@ -1,23 +1,23 @@ -package com.twitter.follow_recommendations.common.clients.addressbook +package com.ExTwitter.follow_recommendations.common.clients.addressbook -import com.twitter.addressbook.datatypes.thriftscala.QueryType -import com.twitter.addressbook.thriftscala.AddressBookGetRequest -import com.twitter.addressbook.thriftscala.AddressBookGetResponse -import com.twitter.addressbook.thriftscala.Addressbook2 -import com.twitter.addressbook.thriftscala.ClientInfo -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.wtf.scalding.jobs.addressbook.thriftscala.STPResultFeature -import com.twitter.follow_recommendations.common.clients.addressbook.models.Contact -import com.twitter.follow_recommendations.common.clients.addressbook.models.EdgeType -import com.twitter.follow_recommendations.common.clients.addressbook.models.QueryOption -import com.twitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier -import com.twitter.wtf.scalding.jobs.address_book.ABUtil.hashContact -import com.twitter.wtf.scalding.jobs.address_book.ABUtil.normalizeEmail -import com.twitter.wtf.scalding.jobs.address_book.ABUtil.normalizePhoneNumber -import com.twitter.hermit.usercontacts.thriftscala.{UserContacts => tUserContacts} -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher +import com.ExTwitter.addressbook.datatypes.thriftscala.QueryType +import com.ExTwitter.addressbook.thriftscala.AddressBookGetRequest +import com.ExTwitter.addressbook.thriftscala.AddressBookGetResponse +import com.ExTwitter.addressbook.thriftscala.Addressbook2 +import com.ExTwitter.addressbook.thriftscala.ClientInfo +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.wtf.scalding.jobs.addressbook.thriftscala.STPResultFeature +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.Contact +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.EdgeType +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.QueryOption +import com.ExTwitter.follow_recommendations.common.clients.addressbook.models.RecordIdentifier +import com.ExTwitter.wtf.scalding.jobs.address_book.ABUtil.hashContact +import com.ExTwitter.wtf.scalding.jobs.address_book.ABUtil.normalizeEmail +import com.ExTwitter.wtf.scalding.jobs.address_book.ABUtil.normalizePhoneNumber +import com.ExTwitter.hermit.usercontacts.thriftscala.{UserContacts => tUserContacts} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookModule.scala index 97b841dd2..ef8b8eff5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/AddressbookModule.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.addressbook +package com.ExTwitter.follow_recommendations.common.clients.addressbook -import com.twitter.addressbook.thriftscala.Addressbook2 -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.addressbook.thriftscala.Addressbook2 +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule object AddressbookModule extends BaseClientModule[Addressbook2.MethodPerEndpoint] with MtlsClient { override val label = "addressbook" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/BUILD index b94cf3efe..8b2b90991 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/BUILD @@ -4,18 +4,18 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "addressbook/thrift/src/thrift/com/twitter/addressbook:thrift-scala", - "addressbook/thrift/src/thrift/com/twitter/addressbook/datatypes:thrift-scala", + "addressbook/thrift/src/thrift/com/ExTwitter/addressbook:thrift-scala", + "addressbook/thrift/src/thrift/com/ExTwitter/addressbook/datatypes:thrift-scala", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "src/scala/com/twitter/wtf/scalding/jobs/address_book:ab_util", - "src/thrift/com/twitter/hermit/usercontacts:hermit-usercontacts-scala", - "src/thrift/com/twitter/wtf/addressbook:addressbook-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/addressbook/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "src/scala/com/ExTwitter/wtf/scalding/jobs/address_book:ab_util", + "src/thrift/com/ExTwitter/hermit/usercontacts:hermit-usercontacts-scala", + "src/thrift/com/ExTwitter/wtf/addressbook:addressbook-scala", "stitch/stitch-core", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/BUILD index 885055e2c..3b10f77b2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/BUILD @@ -4,7 +4,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "addressbook/thrift/src/thrift/com/twitter/addressbook:thrift-scala", - "addressbook/thrift/src/thrift/com/twitter/addressbook/datatypes:thrift-scala", + "addressbook/thrift/src/thrift/com/ExTwitter/addressbook:thrift-scala", + "addressbook/thrift/src/thrift/com/ExTwitter/addressbook/datatypes:thrift-scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/Contact.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/Contact.scala index 3ff39fa32..d27783b36 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/Contact.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/Contact.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.clients.addressbook.models +package com.ExTwitter.follow_recommendations.common.clients.addressbook.models -import com.twitter.addressbook.{thriftscala => t} -import com.twitter.util.Time +import com.ExTwitter.addressbook.{thriftscala => t} +import com.ExTwitter.util.Time case class Contact( id: Long, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/EdgeType.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/EdgeType.scala index 6cfcd65cd..13c3462bc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/EdgeType.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/EdgeType.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.clients.addressbook.models +package com.ExTwitter.follow_recommendations.common.clients.addressbook.models -import com.twitter.addressbook.datatypes.{thriftscala => t} +import com.ExTwitter.addressbook.datatypes.{thriftscala => t} sealed trait EdgeType { def toThrift: t.EdgeType diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/QueryOption.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/QueryOption.scala index a17c163cb..5da579635 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/QueryOption.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/QueryOption.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.clients.addressbook.models +package com.ExTwitter.follow_recommendations.common.clients.addressbook.models -import com.twitter.addressbook.{thriftscala => t} +import com.ExTwitter.addressbook.{thriftscala => t} case class QueryOption( onlyDiscoverableInExpansion: Boolean, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/RecordIdentifier.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/RecordIdentifier.scala index 0154c71dc..415e6198f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/RecordIdentifier.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook/models/RecordIdentifier.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.clients.addressbook.models +package com.ExTwitter.follow_recommendations.common.clients.addressbook.models -import com.twitter.addressbook.datatypes.{thriftscala => t} +import com.ExTwitter.addressbook.datatypes.{thriftscala => t} case class RecordIdentifier( userId: Option[Long], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdRequest.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdRequest.scala index 07cfcdaf5..5d7a221df 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdRequest.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdRequest.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.adserver +package com.ExTwitter.follow_recommendations.common.clients.adserver -import com.twitter.adserver.{thriftscala => t} -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.adserver.{thriftscala => t} +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext case class AdRequest( clientContext: ClientContext, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverClient.scala index 927c0784c..6c11de5b3 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverClient.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.adserver +package com.ExTwitter.follow_recommendations.common.clients.adserver -import com.twitter.adserver.thriftscala.NewAdServer -import com.twitter.adserver.{thriftscala => t} -import com.twitter.stitch.Stitch +import com.ExTwitter.adserver.thriftscala.NewAdServer +import com.ExTwitter.adserver.{thriftscala => t} +import com.ExTwitter.stitch.Stitch import javax.inject.{Inject, Singleton} @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverModule.scala index 9a425c058..802c7ca42 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/AdserverModule.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.clients.adserver +package com.ExTwitter.follow_recommendations.common.clients.adserver -import com.twitter.adserver.thriftscala.NewAdServer -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.ThriftMux -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.adserver.thriftscala.NewAdServer +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule object AdserverModule extends BaseClientModule[NewAdServer.MethodPerEndpoint] with MtlsClient { override val label = "adserver" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/BUILD index c90656afe..938046ac3 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver/BUILD @@ -6,9 +6,9 @@ scala_library( dependencies = [ "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", "stitch/stitch-core", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheClient.scala index d00aef475..4ee646607 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheClient.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.common.clients.cache +package com.ExTwitter.follow_recommendations.common.clients.cache -import com.twitter.bijection.Bijection -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.Memcached.Client -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.io.Buf -import com.twitter.stitch.Stitch -import com.twitter.util.Duration -import com.twitter.util.Future -import com.twitter.util.Time +import com.ExTwitter.bijection.Bijection +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.Memcached.Client +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.io.Buf +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time import java.security.MessageDigest object MemcacheClient { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheModule.scala index e85d12f20..f4474169b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/MemcacheModule.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.common.clients.cache +package com.ExTwitter.follow_recommendations.common.clients.cache import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.Memcached -import com.twitter.finagle.Memcached.Client -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.service.Retries -import com.twitter.finagle.service.RetryPolicy -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.Memcached +import com.ExTwitter.finagle.Memcached.Client +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.service.Retries +import com.ExTwitter.finagle.service.RetryPolicy +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton -object MemcacheModule extends TwitterModule { +object MemcacheModule extends ExTwitterModule { @Provides @Singleton def provideMemcacheClient( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/ThriftBijection.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/ThriftBijection.scala index 62e36bc33..c4e5a2c94 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/ThriftBijection.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache/ThriftBijection.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.clients.cache +package com.ExTwitter.follow_recommendations.common.clients.cache -import com.twitter.bijection.Bijection -import com.twitter.io.Buf -import com.twitter.scrooge.CompactThriftSerializer -import com.twitter.scrooge.ThriftEnum -import com.twitter.scrooge.ThriftStruct +import com.ExTwitter.bijection.Bijection +import com.ExTwitter.io.Buf +import com.ExTwitter.scrooge.CompactThriftSerializer +import com.ExTwitter.scrooge.ThriftEnum +import com.ExTwitter.scrooge.ThriftStruct import java.nio.ByteBuffer abstract class ThriftBijection[T <: ThriftStruct] extends Bijection[Buf, T] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BUILD index 330981d80..de28aa4ee 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BUILD @@ -6,6 +6,6 @@ scala_library( dependencies = [ "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BaseClientModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BaseClientModule.scala index 43949ea19..bbb495377 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BaseClientModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common/BaseClientModule.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.clients.common +package com.ExTwitter.follow_recommendations.common.clients.common -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.thrift.Protocols -import com.twitter.follow_recommendations.common.constants.ServiceConstants._ -import com.twitter.inject.thrift.modules.ThriftClientModule +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.thrift.Protocols +import com.ExTwitter.follow_recommendations.common.constants.ServiceConstants._ +import com.ExTwitter.inject.thrift.modules.ThriftClientModule import scala.reflect.ClassTag /** diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/BUILD index daf4c63fa..e54b4a83a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/BUILD @@ -8,13 +8,13 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "cortex-deepbird/prediction/src/main/scala/com/twitter/cortex/deepbird/prediction", + "cortex-deepbird/prediction/src/main/scala/com/ExTwitter/cortex/deepbird/prediction", "cortex-deepbird/thrift/src/main/thrift:thrift-java", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "src/scala/com/twitter/ml/api/util", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "src/scala/com/ExTwitter/ml/api/util", "util/util-core:scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/DeepBirdV2PredictionServiceClientModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/DeepBirdV2PredictionServiceClientModule.scala index 8f707910b..95efdab92 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/DeepBirdV2PredictionServiceClientModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2/DeepBirdV2PredictionServiceClientModule.scala @@ -1,27 +1,27 @@ -package com.twitter.follow_recommendations.common.clients.deepbirdv2 +package com.ExTwitter.follow_recommendations.common.clients.deepbirdv2 import com.google.inject.Provides import com.google.inject.name.Named -import com.twitter.bijection.scrooge.TBinaryProtocol -import com.twitter.conversions.DurationOps._ -import com.twitter.cortex.deepbird.thriftjava.DeepbirdPredictionService -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.builder.ClientBuilder -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.thrift.RichClientParam -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.inject.TwitterModule +import com.ExTwitter.bijection.scrooge.TBinaryProtocol +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cortex.deepbird.thriftjava.DeepbirdPredictionService +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.builder.ClientBuilder +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.thrift.RichClientParam +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.inject.ExTwitterModule /** * Module that provides multiple deepbirdv2 prediction service clients * We use the java api since data records are native java objects and we want to reduce overhead * while serializing/deserializing data. */ -object DeepBirdV2PredictionServiceClientModule extends TwitterModule { +object DeepBirdV2PredictionServiceClientModule extends ExTwitterModule { val RequestTimeout = 300.millis diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/BUILD index 33d8ba841..a99130e22 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/BUILD @@ -9,11 +9,11 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "src/thrift/com/twitter/onboarding/relevance/store:store-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/store:store-scala", "util/util-core:scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/DismissStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/DismissStore.scala index 1c8c9f8fd..5516688fc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/DismissStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store/DismissStore.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.clients.dismiss_store +package com.ExTwitter.follow_recommendations.common.clients.dismiss_store -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.onboarding.relevance.store.thriftscala.WhoToFollowDismissEventDetails -import com.twitter.stitch.Stitch -import com.twitter.strato.catalog.Scan.Slice -import com.twitter.strato.client.Scanner -import com.twitter.util.logging.Logging +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.onboarding.relevance.store.thriftscala.WhoToFollowDismissEventDetails +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.catalog.Scan.Slice +import com.ExTwitter.strato.client.Scanner +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/BUILD index 78a06d536..0754cdaa6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/BUILD @@ -4,11 +4,11 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "emailstorage/server/src/main/thrift/com/twitter/emailstorage/api:email-storage-service-scala", + "emailstorage/server/src/main/thrift/com/ExTwitter/emailstorage/api:email-storage-service-scala", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "stitch/stitch-core", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceClient.scala index 4cf66c658..70d418492 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceClient.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.clients.email_storage_service +package com.ExTwitter.follow_recommendations.common.clients.email_storage_service -import com.twitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing -import com.twitter.emailstorage.api.thriftscala.EmailStorageService -import com.twitter.emailstorage.api.thriftscala.GetUsersEmailsRequest -import com.twitter.stitch.Stitch +import com.ExTwitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing +import com.ExTwitter.emailstorage.api.thriftscala.EmailStorageService +import com.ExTwitter.emailstorage.api.thriftscala.GetUsersEmailsRequest +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceModule.scala index 0a1be9d1b..81fc37e95 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service/EmailStorageServiceModule.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.email_storage_service +package com.ExTwitter.follow_recommendations.common.clients.email_storage_service -import com.twitter.emailstorage.api.thriftscala.EmailStorageService -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.emailstorage.api.thriftscala.EmailStorageService +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule object EmailStorageServiceModule extends BaseClientModule[EmailStorageService.MethodPerEndpoint] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/BUILD index d67fa01d8..9716117bc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/BUILD @@ -12,10 +12,10 @@ scala_library( "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "src/thrift/com/twitter/geoduck:geoduck-scala", - "src/thrift/com/twitter/geoduck:geoduckpartnerplaces-thrift-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "src/thrift/com/ExTwitter/geoduck:geoduck-scala", + "src/thrift/com/ExTwitter/geoduck:geoduckpartnerplaces-thrift-scala", "stitch/stitch-core", "util/util-core:scala", ], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceClient.scala index 69207537c..ef52f7d00 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceClient.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.clients.geoduck +package com.ExTwitter.follow_recommendations.common.clients.geoduck -import com.twitter.follow_recommendations.common.models.GeohashAndCountryCode -import com.twitter.geoduck.common.thriftscala.LocationSource -import com.twitter.geoduck.common.thriftscala.PlaceQuery -import com.twitter.geoduck.common.thriftscala.TransactionLocation -import com.twitter.geoduck.common.thriftscala.UserLocationRequest -import com.twitter.geoduck.thriftscala.LocationService -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.models.GeohashAndCountryCode +import com.ExTwitter.geoduck.common.thriftscala.LocationSource +import com.ExTwitter.geoduck.common.thriftscala.PlaceQuery +import com.ExTwitter.geoduck.common.thriftscala.TransactionLocation +import com.ExTwitter.geoduck.common.thriftscala.UserLocationRequest +import com.ExTwitter.geoduck.thriftscala.LocationService +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceModule.scala index a5fc79a80..eef2e616e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/LocationServiceModule.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.geoduck +package com.ExTwitter.follow_recommendations.common.clients.geoduck -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule -import com.twitter.geoduck.thriftscala.LocationService +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.geoduck.thriftscala.LocationService object LocationServiceModule extends BaseClientModule[LocationService.MethodPerEndpoint] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/ReverseGeocodeClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/ReverseGeocodeClient.scala index 576359128..6973fd0e1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/ReverseGeocodeClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/ReverseGeocodeClient.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.clients.geoduck +package com.ExTwitter.follow_recommendations.common.clients.geoduck -import com.twitter.follow_recommendations.common.models.GeohashAndCountryCode -import com.twitter.geoduck.common.thriftscala.Location -import com.twitter.geoduck.common.thriftscala.PlaceQuery -import com.twitter.geoduck.common.thriftscala.ReverseGeocodeIPRequest -import com.twitter.geoduck.service.thriftscala.GeoContext -import com.twitter.geoduck.thriftscala.ReverseGeocoder -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.models.GeohashAndCountryCode +import com.ExTwitter.geoduck.common.thriftscala.Location +import com.ExTwitter.geoduck.common.thriftscala.PlaceQuery +import com.ExTwitter.geoduck.common.thriftscala.ReverseGeocodeIPRequest +import com.ExTwitter.geoduck.service.thriftscala.GeoContext +import com.ExTwitter.geoduck.thriftscala.ReverseGeocoder +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/UserLocationFetcher.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/UserLocationFetcher.scala index 706ae5143..25af656c7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/UserLocationFetcher.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck/UserLocationFetcher.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.geoduck +package com.ExTwitter.follow_recommendations.common.clients.geoduck -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.GeohashAndCountryCode -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.GeohashAndCountryCode +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/BUILD index 77cb553c0..60e7faaf2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/BUILD @@ -12,9 +12,9 @@ scala_library( "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "src/thrift/com/twitter/gizmoduck:thrift-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", "stitch/stitch-gizmoduck", "util/util-core:scala", ], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckClient.scala index 25b5f0d75..47b7b147b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckClient.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.clients.gizmoduck +package com.ExTwitter.follow_recommendations.common.clients.gizmoduck -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.gizmoduck.thriftscala.LookupContext -import com.twitter.gizmoduck.thriftscala.PerspectiveEdge -import com.twitter.gizmoduck.thriftscala.QueryFields -import com.twitter.stitch.Stitch -import com.twitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.gizmoduck.thriftscala.LookupContext +import com.ExTwitter.gizmoduck.thriftscala.PerspectiveEdge +import com.ExTwitter.gizmoduck.thriftscala.QueryFields +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.gizmoduck.Gizmoduck import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckModule.scala index 9a5efea06..9e5a7341e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck/GizmoduckModule.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.clients.gizmoduck +package com.ExTwitter.follow_recommendations.common.clients.gizmoduck import com.google.inject.Provides -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule -import com.twitter.gizmoduck.thriftscala.QueryFields -import com.twitter.gizmoduck.thriftscala.UserService -import com.twitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.gizmoduck.thriftscala.QueryFields +import com.ExTwitter.gizmoduck.thriftscala.UserService +import com.ExTwitter.stitch.gizmoduck.Gizmoduck import javax.inject.Singleton object GizmoduckModule extends BaseClientModule[UserService.MethodPerEndpoint] with MtlsClient { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/BUILD index ec1139cfe..47523254b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/BUILD @@ -6,9 +6,9 @@ scala_library( dependencies = [ "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "graph-feature-service/src/main/thrift/com/twitter/graph_feature_service:graph_feature_service_thrift-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "graph-feature-service/src/main/thrift/com/ExTwitter/graph_feature_service:graph_feature_service_thrift-scala", "stitch/stitch-core", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureServiceClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureServiceClient.scala index f333d895f..19ecc01d9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureServiceClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureServiceClient.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.clients.graph_feature_service +package com.ExTwitter.follow_recommendations.common.clients.graph_feature_service -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.graph_feature_service.thriftscala.PresetFeatureTypes.WtfTwoHop -import com.twitter.graph_feature_service.thriftscala.EdgeType -import com.twitter.graph_feature_service.thriftscala.GfsIntersectionResponse -import com.twitter.graph_feature_service.thriftscala.GfsPresetIntersectionRequest -import com.twitter.graph_feature_service.thriftscala.{Server => GraphFeatureService} -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.graph_feature_service.thriftscala.PresetFeatureTypes.WtfTwoHop +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType +import com.ExTwitter.graph_feature_service.thriftscala.GfsIntersectionResponse +import com.ExTwitter.graph_feature_service.thriftscala.GfsPresetIntersectionRequest +import com.ExTwitter.graph_feature_service.thriftscala.{Server => GraphFeatureService} +import com.ExTwitter.stitch.Stitch import javax.inject.{Inject, Singleton} @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureStoreModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureStoreModule.scala index 8d15358cd..d555cd45d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureStoreModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service/GraphFeatureStoreModule.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.graph_feature_service +package com.ExTwitter.follow_recommendations.common.clients.graph_feature_service -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule -import com.twitter.graph_feature_service.thriftscala.{Server => GraphFeatureService} +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.graph_feature_service.thriftscala.{Server => GraphFeatureService} object GraphFeatureStoreModule extends BaseClientModule[GraphFeatureService.MethodPerEndpoint] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/BUILD index 7432ce040..fa29df8d6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/BUILD @@ -9,8 +9,8 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "stitch/stitch-socialgraph", "util/util-core:scala", diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/ImpressionStoreModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/ImpressionStoreModule.scala index 35b5d7885..21f1d2d84 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/ImpressionStoreModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/ImpressionStoreModule.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.clients.impression_store +package com.ExTwitter.follow_recommendations.common.clients.impression_store import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.follow_recommendations.thriftscala.DisplayLocation -import com.twitter.inject.TwitterModule -import com.twitter.strato.catalog.Scan.Slice -import com.twitter.strato.client.Client -import com.twitter.strato.thrift.ScroogeConvImplicits._ +import com.ExTwitter.follow_recommendations.thriftscala.DisplayLocation +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.strato.catalog.Scan.Slice +import com.ExTwitter.strato.client.Client +import com.ExTwitter.strato.thrift.ScroogeConvImplicits._ -object ImpressionStoreModule extends TwitterModule { +object ImpressionStoreModule extends ExTwitterModule { val columnPath: String = "onboarding/userrecs/wtfImpressionCountsStore" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/WtfImpressionStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/WtfImpressionStore.scala index 68692dc28..bc59abb93 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/WtfImpressionStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store/WtfImpressionStore.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.clients.impression_store +package com.ExTwitter.follow_recommendations.common.clients.impression_store -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.WtfImpression -import com.twitter.follow_recommendations.thriftscala.{DisplayLocation => TDisplayLocation} -import com.twitter.stitch.Stitch -import com.twitter.strato.catalog.Scan.Slice -import com.twitter.strato.client.Scanner -import com.twitter.util.Time -import com.twitter.util.logging.Logging +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.WtfImpression +import com.ExTwitter.follow_recommendations.thriftscala.{DisplayLocation => TDisplayLocation} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.catalog.Scan.Slice +import com.ExTwitter.strato.client.Scanner +import com.ExTwitter.util.Time +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/BUILD index 0835d840b..004e0efff 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/BUILD @@ -4,11 +4,11 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/store/interests", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/store/interests", "interests-service/thrift/src/main/thrift:thrift-scala", - "strato/src/main/scala/com/twitter/strato/catalog", - "strato/src/main/scala/com/twitter/strato/client", - "strato/src/main/scala/com/twitter/strato/data", - "strato/src/main/scala/com/twitter/strato/thrift", + "strato/src/main/scala/com/ExTwitter/strato/catalog", + "strato/src/main/scala/com/ExTwitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/data", + "strato/src/main/scala/com/ExTwitter/strato/thrift", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/InterestServiceClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/InterestServiceClient.scala index 3904cf515..aa9a52ddb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/InterestServiceClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service/InterestServiceClient.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.clients.interests_service +package com.ExTwitter.follow_recommendations.common.clients.interests_service import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.store.InterestedInInterestsFetchKey -import com.twitter.inject.Logging -import com.twitter.interests.thriftscala.InterestId -import com.twitter.interests.thriftscala.InterestRelationship -import com.twitter.interests.thriftscala.InterestedInInterestModel -import com.twitter.interests.thriftscala.UserInterest -import com.twitter.interests.thriftscala.UserInterestData -import com.twitter.interests.thriftscala.UserInterestsResponse -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Client -import com.twitter.strato.thrift.ScroogeConvImplicits._ +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.store.InterestedInInterestsFetchKey +import com.ExTwitter.inject.Logging +import com.ExTwitter.interests.thriftscala.InterestId +import com.ExTwitter.interests.thriftscala.InterestRelationship +import com.ExTwitter.interests.thriftscala.InterestedInInterestModel +import com.ExTwitter.interests.thriftscala.UserInterest +import com.ExTwitter.interests.thriftscala.UserInterestData +import com.ExTwitter.interests.thriftscala.UserInterestsResponse +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Client +import com.ExTwitter.strato.thrift.ScroogeConvImplicits._ @Singleton class InterestServiceClient @Inject() ( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/BUILD index 37a7f5906..6aada3a3d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/BUILD @@ -6,9 +6,9 @@ scala_library( dependencies = [ "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "phonestorage/server/src/main/thrift/com/twitter/phonestorage/api:phone-storage-service-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "phonestorage/server/src/main/thrift/com/ExTwitter/phonestorage/api:phone-storage-service-scala", "stitch/stitch-core", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceClient.scala index 46e76b162..1530a67ec 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceClient.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.clients.phone_storage_service +package com.ExTwitter.follow_recommendations.common.clients.phone_storage_service -import com.twitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing -import com.twitter.phonestorage.api.thriftscala.GetUserPhonesByUsersRequest -import com.twitter.phonestorage.api.thriftscala.PhoneStorageService -import com.twitter.stitch.Stitch +import com.ExTwitter.cds.contact_consent_state.thriftscala.PurposeOfProcessing +import com.ExTwitter.phonestorage.api.thriftscala.GetUserPhonesByUsersRequest +import com.ExTwitter.phonestorage.api.thriftscala.PhoneStorageService +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceModule.scala index 90767a509..6a66f1646 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service/PhoneStorageServiceModule.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.clients.phone_storage_service +package com.ExTwitter.follow_recommendations.common.clients.phone_storage_service -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule -import com.twitter.phonestorage.api.thriftscala.PhoneStorageService +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.phonestorage.api.thriftscala.PhoneStorageService object PhoneStorageServiceModule extends BaseClientModule[PhoneStorageService.MethodPerEndpoint] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/BUILD index f711bc3e7..c9a90383a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/BUILD @@ -8,13 +8,13 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "strato/config/columns/ml/featureStore:featureStore-strato-client", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/Engagement.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/Engagement.scala index 98c0555e7..ae4854ff9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/Engagement.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/Engagement.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.clients.real_time_real_graph +package com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph sealed trait EngagementType diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/EngagementScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/EngagementScorer.scala index c41fcc98e..7dd16ae9f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/EngagementScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/EngagementScorer.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.clients.real_time_real_graph +package com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph -import com.twitter.conversions.DurationOps._ -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.util.Time object EngagementScorer { private[real_time_real_graph] val MemoryDecayHalfLife = 24.hour diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/RealTimeRealGraphClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/RealTimeRealGraphClient.scala index 16fedc8a0..477029103 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/RealTimeRealGraphClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/real_time_real_graph/RealTimeRealGraphClient.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.clients.real_time_real_graph +package com.ExTwitter.follow_recommendations.common.clients.real_time_real_graph import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.conversions.DurationOps._ -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.ml.featureStore.TimelinesUserVertexOnUserClientColumn -import com.twitter.strato.generated.client.onboarding.userrecs.RealGraphScoresMhOnUserClientColumn -import com.twitter.util.Duration -import com.twitter.util.Time -import com.twitter.wtf.real_time_interaction_graph.thriftscala._ +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.ml.featureStore.TimelinesUserVertexOnUserClientColumn +import com.ExTwitter.strato.generated.client.onboarding.userrecs.RealGraphScoresMhOnUserClientColumn +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time +import com.ExTwitter.wtf.real_time_interaction_graph.thriftscala._ @Singleton class RealTimeRealGraphClient @Inject() ( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/BUILD index 58b5001fd..7ee13dd05 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/BUILD @@ -9,18 +9,18 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "socialgraph/server/src/main/scala/com/twitter/socialgraph/util", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "socialgraph/server/src/main/scala/com/ExTwitter/socialgraph/util", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", "stitch/stitch-socialgraph", "strato/config/columns/onboarding/socialGraphService:socialGraphService-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-core:scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphClient.scala index 3ad90b5ed..e50beaffb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphClient.scala @@ -1,27 +1,27 @@ -package com.twitter.follow_recommendations.common.clients.socialgraph +package com.ExTwitter.follow_recommendations.common.clients.socialgraph -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.common.models.UserIdWithTimestamp -import com.twitter.inject.Logging -import com.twitter.socialgraph.thriftscala.EdgesRequest -import com.twitter.socialgraph.thriftscala.IdsRequest -import com.twitter.socialgraph.thriftscala.IdsResult -import com.twitter.socialgraph.thriftscala.LookupContext -import com.twitter.socialgraph.thriftscala.OverCapacity -import com.twitter.socialgraph.thriftscala.PageRequest -import com.twitter.socialgraph.thriftscala.RelationshipType -import com.twitter.socialgraph.thriftscala.SrcRelationship -import com.twitter.socialgraph.util.ByteBufferUtil -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.onboarding.socialGraphService.IdsClientColumn -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.common.models.UserIdWithTimestamp +import com.ExTwitter.inject.Logging +import com.ExTwitter.socialgraph.thriftscala.EdgesRequest +import com.ExTwitter.socialgraph.thriftscala.IdsRequest +import com.ExTwitter.socialgraph.thriftscala.IdsResult +import com.ExTwitter.socialgraph.thriftscala.LookupContext +import com.ExTwitter.socialgraph.thriftscala.OverCapacity +import com.ExTwitter.socialgraph.thriftscala.PageRequest +import com.ExTwitter.socialgraph.thriftscala.RelationshipType +import com.ExTwitter.socialgraph.thriftscala.SrcRelationship +import com.ExTwitter.socialgraph.util.ByteBufferUtil +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.onboarding.socialGraphService.IdsClientColumn +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import java.nio.ByteBuffer import javax.inject.Inject import javax.inject.Singleton @@ -384,7 +384,7 @@ object SocialGraphClient { val MaxQuerySize: Int = 500 val MaxCacheSize: Int = 5000000 - // Ref: src/thrift/com/twitter/socialgraph/social_graph_service.thrift + // Ref: src/thrift/com/ExTwitter/socialgraph/social_graph_service.thrift val MaxNumInvalidRelationship: Int = 5000 val CacheTTL: Duration = Duration.fromHours(24) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphModule.scala index 5a97448d1..47f7f52b6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph/SocialGraphModule.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.clients.socialgraph +package com.ExTwitter.follow_recommendations.common.clients.socialgraph import com.google.inject.Provides -import com.twitter.finagle.ThriftMux -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.follow_recommendations.common.clients.common.BaseClientModule -import com.twitter.socialgraph.thriftscala.SocialGraphService -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.follow_recommendations.common.clients.common.BaseClientModule +import com.ExTwitter.socialgraph.thriftscala.SocialGraphService +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Singleton object SocialGraphModule diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/BUILD index 3661887c8..d3ca1d0b5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/BUILD @@ -8,23 +8,23 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "src/scala/com/twitter/onboarding/relevance/candidate_generation/utt/models", - "src/thrift/com/twitter/core_workflows/user_model:user_model-scala", - "src/thrift/com/twitter/frigate/data_pipeline:frigate-user-history-thrift-scala", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", - "src/thrift/com/twitter/hermit/pop_geo:hermit-pop-geo-scala", - "src/thrift/com/twitter/onboarding/relevance/relatable_accounts:relatable_accounts-scala", - "src/thrift/com/twitter/onboarding/relevance/store:store-scala", - "src/thrift/com/twitter/recos/user_user_graph:user_user_graph-scala", - "src/thrift/com/twitter/search/account_search/extended_network:extended_network_users-scala", - "src/thrift/com/twitter/service/metastore/gen:thrift-scala", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", - "src/thrift/com/twitter/wtf/ml:wtf-ml-output-thrift-scala", - "src/thrift/com/twitter/wtf/real_time_interaction_graph:wtf-real_time_interaction_graph-thrift-scala", - "src/thrift/com/twitter/wtf/triangular_loop:triangular_loop-scala", - "strato/src/main/scala/com/twitter/strato/client", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "src/scala/com/ExTwitter/onboarding/relevance/candidate_generation/utt/models", + "src/thrift/com/ExTwitter/core_workflows/user_model:user_model-scala", + "src/thrift/com/ExTwitter/frigate/data_pipeline:frigate-user-history-thrift-scala", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", + "src/thrift/com/ExTwitter/hermit/pop_geo:hermit-pop-geo-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/relatable_accounts:relatable_accounts-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/store:store-scala", + "src/thrift/com/ExTwitter/recos/user_user_graph:user_user_graph-scala", + "src/thrift/com/ExTwitter/search/account_search/extended_network:extended_network_users-scala", + "src/thrift/com/ExTwitter/service/metastore/gen:thrift-scala", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", + "src/thrift/com/ExTwitter/wtf/ml:wtf-ml-output-thrift-scala", + "src/thrift/com/ExTwitter/wtf/real_time_interaction_graph:wtf-real_time_interaction_graph-thrift-scala", + "src/thrift/com/ExTwitter/wtf/triangular_loop:triangular_loop-scala", + "strato/src/main/scala/com/ExTwitter/strato/client", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/StratoClientModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/StratoClientModule.scala index 4046ac754..4f367f077 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/StratoClientModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato/StratoClientModule.scala @@ -1,41 +1,41 @@ -package com.twitter.follow_recommendations.common.clients.strato +package com.ExTwitter.follow_recommendations.common.clients.strato import com.google.inject.name.Named import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.conversions.DurationOps._ -import com.twitter.core_workflows.user_model.thriftscala.CondensedUserState -import com.twitter.search.account_search.extended_network.thriftscala.ExtendedNetworkUserKey -import com.twitter.search.account_search.extended_network.thriftscala.ExtendedNetworkUserVal -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.thrift.Protocols -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.constants.ServiceConstants._ -import com.twitter.frigate.data_pipeline.candidate_generation.thriftscala.LatestEvents -import com.twitter.hermit.candidate.thriftscala.{Candidates => HermitCandidates} -import com.twitter.hermit.pop_geo.thriftscala.PopUsersInPlace -import com.twitter.onboarding.relevance.relatable_accounts.thriftscala.RelatableAccounts -import com.twitter.inject.TwitterModule -import com.twitter.onboarding.relevance.candidates.thriftscala.InterestBasedUserRecommendations -import com.twitter.onboarding.relevance.candidates.thriftscala.UTTInterest -import com.twitter.onboarding.relevance.store.thriftscala.WhoToFollowDismissEventDetails -import com.twitter.recos.user_user_graph.thriftscala.RecommendUserRequest -import com.twitter.recos.user_user_graph.thriftscala.RecommendUserResponse -import com.twitter.service.metastore.gen.thriftscala.UserRecommendabilityFeatures -import com.twitter.strato.catalog.Scan.Slice -import com.twitter.strato.client.Strato.{Client => StratoClient} -import com.twitter.strato.client.Client -import com.twitter.strato.client.Fetcher -import com.twitter.strato.client.Scanner -import com.twitter.strato.thrift.ScroogeConvImplicits._ -import com.twitter.wtf.candidate.thriftscala.CandidateSeq -import com.twitter.wtf.ml.thriftscala.CandidateFeatures -import com.twitter.wtf.real_time_interaction_graph.thriftscala.Interaction -import com.twitter.wtf.triangular_loop.thriftscala.{Candidates => TriangularLoopCandidates} -import com.twitter.strato.opcontext.Attribution._ +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.core_workflows.user_model.thriftscala.CondensedUserState +import com.ExTwitter.search.account_search.extended_network.thriftscala.ExtendedNetworkUserKey +import com.ExTwitter.search.account_search.extended_network.thriftscala.ExtendedNetworkUserVal +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.thrift.Protocols +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.constants.ServiceConstants._ +import com.ExTwitter.frigate.data_pipeline.candidate_generation.thriftscala.LatestEvents +import com.ExTwitter.hermit.candidate.thriftscala.{Candidates => HermitCandidates} +import com.ExTwitter.hermit.pop_geo.thriftscala.PopUsersInPlace +import com.ExTwitter.onboarding.relevance.relatable_accounts.thriftscala.RelatableAccounts +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.onboarding.relevance.candidates.thriftscala.InterestBasedUserRecommendations +import com.ExTwitter.onboarding.relevance.candidates.thriftscala.UTTInterest +import com.ExTwitter.onboarding.relevance.store.thriftscala.WhoToFollowDismissEventDetails +import com.ExTwitter.recos.user_user_graph.thriftscala.RecommendUserRequest +import com.ExTwitter.recos.user_user_graph.thriftscala.RecommendUserResponse +import com.ExTwitter.service.metastore.gen.thriftscala.UserRecommendabilityFeatures +import com.ExTwitter.strato.catalog.Scan.Slice +import com.ExTwitter.strato.client.Strato.{Client => StratoClient} +import com.ExTwitter.strato.client.Client +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.client.Scanner +import com.ExTwitter.strato.thrift.ScroogeConvImplicits._ +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.wtf.ml.thriftscala.CandidateFeatures +import com.ExTwitter.wtf.real_time_interaction_graph.thriftscala.Interaction +import com.ExTwitter.wtf.triangular_loop.thriftscala.{Candidates => TriangularLoopCandidates} +import com.ExTwitter.strato.opcontext.Attribution._ -object StratoClientModule extends TwitterModule { +object StratoClientModule extends ExTwitterModule { // column paths val CosineFollowPath = "recommendations/similarity/similarUsersByFollowGraph.User" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/BUILD index 16a82a302..14cbd1eb0 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/BUILD @@ -7,11 +7,11 @@ scala_library( "3rdparty/jvm/com/google/inject:guice", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/cache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", "stitch/stitch-core", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", "user-signal-service/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/UserStateClient.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/UserStateClient.scala index fe8101261..8ec3713bc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/UserStateClient.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state/UserStateClient.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.clients.user_state +package com.ExTwitter.follow_recommendations.common.clients.user_state import com.google.inject.name.Named -import com.twitter.conversions.DurationOps._ -import com.twitter.core_workflows.user_model.thriftscala.CondensedUserState -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.finagle.Memcached.Client -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.clients.cache.MemcacheClient -import com.twitter.follow_recommendations.common.clients.cache.ThriftEnumOptionBijection -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.core_workflows.user_model.thriftscala.CondensedUserState +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.finagle.Memcached.Client +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.clients.cache.MemcacheClient +import com.ExTwitter.follow_recommendations.common.clients.cache.ThriftEnumOptionBijection +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton import java.lang.{Long => JLong} diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/BUILD index dc9335d5b..5f0de0f8e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/BUILD @@ -3,7 +3,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "util/util-core/src/main/scala/com/twitter/conversions", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "util/util-core/src/main/scala/com/ExTwitter/conversions", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/CandidateAlgorithmTypeConstants.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/CandidateAlgorithmTypeConstants.scala index 7c7892c02..2ba4542f5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/CandidateAlgorithmTypeConstants.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/CandidateAlgorithmTypeConstants.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.constants +package com.ExTwitter.follow_recommendations.common.constants -import com.twitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap -import com.twitter.hermit.model.Algorithm._ -import com.twitter.follow_recommendations.common.models.AlgorithmType +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap +import com.ExTwitter.hermit.model.Algorithm._ +import com.ExTwitter.follow_recommendations.common.models.AlgorithmType object CandidateAlgorithmTypeConstants { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/GuiceNamedConstants.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/GuiceNamedConstants.scala index d3d61fa43..8e31d67bd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/GuiceNamedConstants.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/GuiceNamedConstants.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.constants +package com.ExTwitter.follow_recommendations.common.constants object GuiceNamedConstants { final val PRODUCER_SIDE_FEATURE_SWITCHES = "PRODUCER_SIDE_FEATURE_SWITCHES" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/ServiceConstants.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/ServiceConstants.scala index 6aade704c..6823781c1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/ServiceConstants.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants/ServiceConstants.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.constants +package com.ExTwitter.follow_recommendations.common.constants -import com.twitter.conversions.StorageUnitOps._ +import com.ExTwitter.conversions.StorageUnitOps._ object ServiceConstants { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/BUILD index b4afee590..b00a7283e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/BUILD @@ -15,15 +15,15 @@ target( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/org/slf4j:slf4j-api", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/onboarding/relevance/util/metadata", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/onboarding/relevance/util/metadata", "util/util-slf4j-api/src/main/scala", ], ) @@ -38,7 +38,7 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ ":common", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/constants", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants", ], ) @@ -52,7 +52,7 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ ":common", - "snowflake/src/main/scala/com/twitter/snowflake/id", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", ], ) @@ -65,7 +65,7 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ ":common", - "src/scala/com/twitter/ml/featurestore/catalog/features/customer_journey:post-nux-algorithm-aggregate", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/customer_journey:post-nux-algorithm-aggregate", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/CandidateAlgorithmAdapter.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/CandidateAlgorithmAdapter.scala index 7a487a95b..de6a0f300 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/CandidateAlgorithmAdapter.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/CandidateAlgorithmAdapter.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.feature_hydration.adapters +package com.ExTwitter.follow_recommendations.common.feature_hydration.adapters -import com.twitter.follow_recommendations.common.models.UserCandidateSourceDetails -import com.twitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap -import com.twitter.hermit.model.Algorithm -import com.twitter.hermit.model.Algorithm.Algorithm -import com.twitter.hermit.model.Algorithm.UttProducerOfflineMbcgV1 -import com.twitter.hermit.model.Algorithm.UttProducerOnlineMbcgV1 -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.Feature.SparseBinary -import com.twitter.ml.api.Feature.SparseContinuous -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.api.util.FDsl._ +import com.ExTwitter.follow_recommendations.common.models.UserCandidateSourceDetails +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.hermit.model.Algorithm.Algorithm +import com.ExTwitter.hermit.model.Algorithm.UttProducerOfflineMbcgV1 +import com.ExTwitter.hermit.model.Algorithm.UttProducerOnlineMbcgV1 +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.Feature.SparseBinary +import com.ExTwitter.ml.api.Feature.SparseContinuous +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.api.util.FDsl._ object CandidateAlgorithmAdapter extends IRecordOneToOneAdapter[Option[UserCandidateSourceDetails]] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/ClientContextAdapter.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/ClientContextAdapter.scala index 9aa4bdb0d..30a0895ce 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/ClientContextAdapter.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/ClientContextAdapter.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.feature_hydration.adapters +package com.ExTwitter.follow_recommendations.common.feature_hydration.adapters -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.ml.api.Feature.Binary -import com.twitter.ml.api.Feature.Continuous -import com.twitter.ml.api.Feature.Discrete -import com.twitter.ml.api.Feature.Text -import com.twitter.ml.api.util.FDsl._ -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.onboarding.relevance.util.metadata.LanguageUtil -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.snowflake.id.SnowflakeId +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.ml.api.Feature.Binary +import com.ExTwitter.ml.api.Feature.Continuous +import com.ExTwitter.ml.api.Feature.Discrete +import com.ExTwitter.ml.api.Feature.Text +import com.ExTwitter.ml.api.util.FDsl._ +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.onboarding.relevance.util.metadata.LanguageUtil +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.snowflake.id.SnowflakeId object ClientContextAdapter extends IRecordOneToOneAdapter[(ClientContext, DisplayLocation)] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PostNuxAlgorithmAdapter.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PostNuxAlgorithmAdapter.scala index e8fe745a0..22a384697 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PostNuxAlgorithmAdapter.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PostNuxAlgorithmAdapter.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.feature_hydration.adapters +package com.ExTwitter.follow_recommendations.common.feature_hydration.adapters -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.Feature -import com.twitter.ml.api.Feature.Continuous -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.api.util.FDsl._ -import com.twitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmFeatures -import com.twitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmIdAggregateFeatureGroup -import com.twitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmTypeAggregateFeatureGroup +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.Feature.Continuous +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.api.util.FDsl._ +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmFeatures +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmIdAggregateFeatureGroup +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmTypeAggregateFeatureGroup import scala.collection.JavaConverters._ object PostNuxAlgorithmIdAdapter extends PostNuxAlgorithmAdapter { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PreFetchedFeatureAdapter.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PreFetchedFeatureAdapter.scala index f24ed1efe..92acdc823 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PreFetchedFeatureAdapter.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters/PreFetchedFeatureAdapter.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.feature_hydration.adapters +package com.ExTwitter.follow_recommendations.common.feature_hydration.adapters -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.ml.api.Feature.Continuous -import com.twitter.ml.api.util.FDsl._ -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.util.Time +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.ml.api.Feature.Continuous +import com.ExTwitter.ml.api.util.FDsl._ +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.util.Time /** * This adapter mimics UserRecentWTFImpressionsAndFollowsAdapter (for user) and diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/BUILD index 93ddb1191..3552330c4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/BUILD @@ -8,11 +8,11 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "src/java/com/twitter/ml/api:api-base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "src/java/com/ExTwitter/ml/api:api-base", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSource.scala index 9d43f0c13..5030cce1f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSource.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.common.feature_hydration.common +package com.ExTwitter.follow_recommendations.common.feature_hydration.common -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams trait FeatureSource { def id: FeatureSourceId diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSourceId.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSourceId.scala index 66b883120..faba45096 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSourceId.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/FeatureSourceId.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.feature_hydration.common +package com.ExTwitter.follow_recommendations.common.feature_hydration.common sealed trait FeatureSourceId diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/HasPreFetchedFeature.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/HasPreFetchedFeature.scala index 8f4bae887..fcbf93c5a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/HasPreFetchedFeature.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common/HasPreFetchedFeature.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.feature_hydration.common +package com.ExTwitter.follow_recommendations.common.feature_hydration.common -import com.twitter.follow_recommendations.common.models.HasMutualFollowedUserIds -import com.twitter.follow_recommendations.common.models.HasWtfImpressions -import com.twitter.follow_recommendations.common.models.WtfImpression -import com.twitter.util.Time +import com.ExTwitter.follow_recommendations.common.models.HasMutualFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.HasWtfImpressions +import com.ExTwitter.follow_recommendations.common.models.WtfImpression +import com.ExTwitter.util.Time trait HasPreFetchedFeature extends HasMutualFollowedUserIds with HasWtfImpressions { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/BUILD index c0538240f..94f598ba2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/BUILD @@ -7,51 +7,51 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/adapters", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/constants", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/core:socialgraph", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/core:usersource", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/onboarding:mc-user-counting", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/onboarding:user-wtf-algorithm-aggregate", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/onboarding:wtf-impression", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/onboarding:wtf-post-nux", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/onboarding:wtf-user-algorithm-aggregate", - "src/scala/com/twitter/ml/featurestore/catalog/datasets/timelines:timelines-author-features", - "src/scala/com/twitter/ml/featurestore/catalog/entities/core", - "src/scala/com/twitter/ml/featurestore/catalog/entities/onboarding", - "src/scala/com/twitter/ml/featurestore/catalog/features/core:socialgraph", - "src/scala/com/twitter/ml/featurestore/catalog/features/core:user", - "src/scala/com/twitter/ml/featurestore/catalog/features/interests_discovery:user-topic-relationships", - "src/scala/com/twitter/ml/featurestore/catalog/features/magicrecs:non-mr-notif-summmaries", - "src/scala/com/twitter/ml/featurestore/catalog/features/magicrecs:non-mr-notif-summmary-aggregates", - "src/scala/com/twitter/ml/featurestore/catalog/features/magicrecs:nonmr-ntab-summaries", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:mc-user-counting", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:post-nux-offline", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:post-nux-offline-edge", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:ratio", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:simcluster-user-interested-in-candidate-known-for", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:user-wtf-algorithm-aggregate", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:wtf-impression", - "src/scala/com/twitter/ml/featurestore/catalog/features/onboarding:wtf-user-algorithm-aggregate", - "src/scala/com/twitter/ml/featurestore/catalog/features/rux:user-resurrection", - "src/scala/com/twitter/ml/featurestore/catalog/features/timelines:aggregate", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/ml/featurestore/lib/dynamic", - "src/scala/com/twitter/ml/featurestore/lib/embedding", - "src/scala/com/twitter/ml/featurestore/lib/feature", - "src/scala/com/twitter/ml/featurestore/lib/online", - "src/scala/com/twitter/ml/featurestore/lib/params", - "src/scala/com/twitter/onboarding/relevance/adapters/features/featurestore", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/adapters", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/core:socialgraph", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/core:usersource", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/onboarding:mc-user-counting", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/onboarding:user-wtf-algorithm-aggregate", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/onboarding:wtf-impression", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/onboarding:wtf-post-nux", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/onboarding:wtf-user-algorithm-aggregate", + "src/scala/com/ExTwitter/ml/featurestore/catalog/datasets/timelines:timelines-author-features", + "src/scala/com/ExTwitter/ml/featurestore/catalog/entities/core", + "src/scala/com/ExTwitter/ml/featurestore/catalog/entities/onboarding", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/core:socialgraph", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/core:user", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/interests_discovery:user-topic-relationships", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/magicrecs:non-mr-notif-summmaries", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/magicrecs:non-mr-notif-summmary-aggregates", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/magicrecs:nonmr-ntab-summaries", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:mc-user-counting", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:post-nux-offline", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:post-nux-offline-edge", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:ratio", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:simcluster-user-interested-in-candidate-known-for", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:user-wtf-algorithm-aggregate", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:wtf-impression", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/onboarding:wtf-user-algorithm-aggregate", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/rux:user-resurrection", + "src/scala/com/ExTwitter/ml/featurestore/catalog/features/timelines:aggregate", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/ml/featurestore/lib/dynamic", + "src/scala/com/ExTwitter/ml/featurestore/lib/embedding", + "src/scala/com/ExTwitter/ml/featurestore/lib/feature", + "src/scala/com/ExTwitter/ml/featurestore/lib/online", + "src/scala/com/ExTwitter/ml/featurestore/lib/params", + "src/scala/com/ExTwitter/onboarding/relevance/adapters/features/featurestore", "strato/config/columns/ml/featureStore:featureStore-strato-client", "strato/config/columns/ml/featureStore/onboarding:onboarding-strato-client", "util/util-slf4j-api/src/main/scala", diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/CandidateAlgorithmSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/CandidateAlgorithmSource.scala index 0838fb98d..bb0c6c42a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/CandidateAlgorithmSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/CandidateAlgorithmSource.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.google.inject.Inject import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.feature_hydration.adapters.CandidateAlgorithmAdapter -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.CandidateAlgorithmAdapter +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams /** * This source only takes features from the candidate's source, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/ClientContextSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/ClientContextSource.scala index 718502d44..dd2d713d4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/ClientContextSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/ClientContextSource.scala @@ -1,19 +1,19 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.feature_hydration.adapters.ClientContextAdapter -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.ClientContextAdapter +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams /** * This source only takes features from the request (e.g. client context, WTF display location) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFSConfig.scala index f78ec17cc..62ac090c5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFSConfig.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFeatureSwitchKeys.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFeatureSwitchKeys.scala index fb2232927..acfc35999 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFeatureSwitchKeys.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureHydrationSourcesFeatureSwitchKeys.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources object FeatureHydrationSourcesFeatureSwitchKeys { val EnableAlgorithmAggregateFeatures = "feature_store_source_enable_algorithm_aggregate_features" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreFeatures.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreFeatures.scala index 6c849f7a7..7b7b8b8d8 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreFeatures.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreFeatures.scala @@ -1,120 +1,120 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{Topic => TopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{User => UserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{UserCandidate => UserCandidateEntity} -import com.twitter.ml.featurestore.catalog.entities.onboarding.UserWtfAlgorithmEntity -import com.twitter.ml.featurestore.catalog.entities.onboarding.{ +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Topic => TopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{User => UserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{UserCandidate => UserCandidateEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.onboarding.UserWtfAlgorithmEntity +import com.ExTwitter.ml.featurestore.catalog.entities.onboarding.{ WtfAlgorithm => WtfAlgorithmIdEntity } -import com.twitter.ml.featurestore.catalog.entities.onboarding.{ +import com.ExTwitter.ml.featurestore.catalog.entities.onboarding.{ WtfAlgorithmType => WtfAlgorithmTypeEntity } -import com.twitter.ml.featurestore.catalog.features.core.UserClients.FullPrimaryClientVersion -import com.twitter.ml.featurestore.catalog.features.core.UserClients.NumClients -import com.twitter.ml.featurestore.catalog.features.core.UserClients.PrimaryClient -import com.twitter.ml.featurestore.catalog.features.core.UserClients.PrimaryClientVersion -import com.twitter.ml.featurestore.catalog.features.core.UserClients.PrimaryDeviceManufacturer -import com.twitter.ml.featurestore.catalog.features.core.UserClients.PrimaryMobileSdkVersion -import com.twitter.ml.featurestore.catalog.features.core.UserClients.SecondaryClient -import com.twitter.ml.featurestore.catalog.features.core.UserCounts.Favorites -import com.twitter.ml.featurestore.catalog.features.core.UserCounts.Followers -import com.twitter.ml.featurestore.catalog.features.core.UserCounts.Following -import com.twitter.ml.featurestore.catalog.features.core.UserCounts.Tweets -import com.twitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmIdAggregateFeatureGroup -import com.twitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmTypeAggregateFeatureGroup -import com.twitter.ml.featurestore.catalog.features.customer_journey.{Utils => FeatureGroupUtils} -import com.twitter.ml.featurestore.catalog.features.interests_discovery.UserTopicRelationships.FollowedTopics -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFavorites -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFavoritesReceived -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFollowBacks -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFollows -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFollowsReceived -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumLoginDays -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumLoginTweetImpressions -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumMuteBacks -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumMuted -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumOriginalTweets -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumQualityFollowReceived -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumQuoteRetweets -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumQuoteRetweetsReceived -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumReplies -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumRepliesReceived -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumRetweets -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumRetweetsReceived -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumSpamBlocked -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumSpamBlockedBacks -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumTweetImpressions -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumTweets -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumUnfollowBacks -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumUnfollows -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumUserActiveMinutes -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumWasMutualFollowed -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumWasMutualUnfollowed -import com.twitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumWasUnfollowed -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.Country -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.FollowersOverFollowingRatio -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.Language -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.MutualFollowsOverFollowersRatio -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.MutualFollowsOverFollowingRatio -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.NumFollowers -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.NumFollowings -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.NumMutualFollows -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.TweepCred -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.UserState -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.HaveSameCountry -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.HaveSameLanguage -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.HaveSameUserState -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.NumFollowersGap -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.NumFollowingsGap -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.NumMutualFollowsGap -import com.twitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.TweepCredGap -import com.twitter.ml.featurestore.catalog.features.onboarding.Ratio.FollowersFollowings -import com.twitter.ml.featurestore.catalog.features.onboarding.Ratio.MutualFollowsFollowing -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.HasIntersection -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionCandidateKnownForScore -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionClusterIds -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFavCandidateKnownForScore -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFavScore -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFollowCandidateKnownForScore -import com.twitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFollowScore -import com.twitter.ml.featurestore.catalog.features.onboarding.UserWtfAlgorithmAggregate -import com.twitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfCandidateCounts -import com.twitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfCandidateImpressionCounts -import com.twitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfCandidateImpressionLatestTimestamp -import com.twitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfLatestTimestamp -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowRate -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.Follows -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetFavRate -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetReplies -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetReplyRate -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetRetweetRate -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetRetweets -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsWithTweetFavs -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsWithTweetImpressions -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.HasAnyEngagements -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.HasForwardEngagements -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.HasReverseEngagements -import com.twitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.Impressions -import com.twitter.ml.featurestore.catalog.features.rux.UserResurrection.DaysSinceRecentResurrection -import com.twitter.ml.featurestore.catalog.features.timelines.AuthorTopicAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.EngagementsReceivedByAuthorRealTimeAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.NegativeEngagementsReceivedByAuthorRealTimeAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.OriginalAuthorAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.TopicEngagementRealTimeAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.TopicEngagementUserStateRealTimeAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.TopicNegativeEngagementUserStateRealTimeAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.UserEngagementAuthorUserStateRealTimeAggregates -import com.twitter.ml.featurestore.catalog.features.timelines.UserNegativeEngagementAuthorUserStateRealTimeAggregates -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.feature.BoundFeature -import com.twitter.ml.featurestore.lib.feature.Feature +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.FullPrimaryClientVersion +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.NumClients +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.PrimaryClient +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.PrimaryClientVersion +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.PrimaryDeviceManufacturer +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.PrimaryMobileSdkVersion +import com.ExTwitter.ml.featurestore.catalog.features.core.UserClients.SecondaryClient +import com.ExTwitter.ml.featurestore.catalog.features.core.UserCounts.Favorites +import com.ExTwitter.ml.featurestore.catalog.features.core.UserCounts.Followers +import com.ExTwitter.ml.featurestore.catalog.features.core.UserCounts.Following +import com.ExTwitter.ml.featurestore.catalog.features.core.UserCounts.Tweets +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmIdAggregateFeatureGroup +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.PostNuxAlgorithmTypeAggregateFeatureGroup +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.{Utils => FeatureGroupUtils} +import com.ExTwitter.ml.featurestore.catalog.features.interests_discovery.UserTopicRelationships.FollowedTopics +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFavorites +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFavoritesReceived +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFollowBacks +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFollows +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumFollowsReceived +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumLoginDays +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumLoginTweetImpressions +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumMuteBacks +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumMuted +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumOriginalTweets +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumQualityFollowReceived +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumQuoteRetweets +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumQuoteRetweetsReceived +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumReplies +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumRepliesReceived +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumRetweets +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumRetweetsReceived +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumSpamBlocked +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumSpamBlockedBacks +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumTweetImpressions +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumTweets +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumUnfollowBacks +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumUnfollows +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumUserActiveMinutes +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumWasMutualFollowed +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumWasMutualUnfollowed +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.MetricCenterUserCounts.NumWasUnfollowed +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.Country +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.FollowersOverFollowingRatio +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.Language +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.MutualFollowsOverFollowersRatio +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.MutualFollowsOverFollowingRatio +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.NumFollowers +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.NumFollowings +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.NumMutualFollows +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.TweepCred +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOffline.UserState +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.HaveSameCountry +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.HaveSameLanguage +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.HaveSameUserState +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.NumFollowersGap +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.NumFollowingsGap +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.NumMutualFollowsGap +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.PostNuxOfflineEdge.TweepCredGap +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.Ratio.FollowersFollowings +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.Ratio.MutualFollowsFollowing +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.HasIntersection +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionCandidateKnownForScore +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionClusterIds +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFavCandidateKnownForScore +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFavScore +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFollowCandidateKnownForScore +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.SimclusterUserInterestedInCandidateKnownFor.IntersectionUserFollowScore +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.UserWtfAlgorithmAggregate +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfCandidateCounts +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfCandidateImpressionCounts +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfCandidateImpressionLatestTimestamp +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WhoToFollowImpression.HomeTimelineWtfLatestTimestamp +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowRate +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.Follows +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetFavRate +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetReplies +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetReplyRate +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetRetweetRate +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsTweetRetweets +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsWithTweetFavs +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.FollowsWithTweetImpressions +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.HasAnyEngagements +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.HasForwardEngagements +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.HasReverseEngagements +import com.ExTwitter.ml.featurestore.catalog.features.onboarding.WtfUserAlgorithmAggregate.Impressions +import com.ExTwitter.ml.featurestore.catalog.features.rux.UserResurrection.DaysSinceRecentResurrection +import com.ExTwitter.ml.featurestore.catalog.features.timelines.AuthorTopicAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.EngagementsReceivedByAuthorRealTimeAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.NegativeEngagementsReceivedByAuthorRealTimeAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.OriginalAuthorAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.TopicEngagementRealTimeAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.TopicEngagementUserStateRealTimeAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.TopicNegativeEngagementUserStateRealTimeAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.UserEngagementAuthorUserStateRealTimeAggregates +import com.ExTwitter.ml.featurestore.catalog.features.timelines.UserNegativeEngagementAuthorUserStateRealTimeAggregates +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeature +import com.ExTwitter.ml.featurestore.lib.feature.Feature object FeatureStoreFeatures { import FeatureStoreRawFeatures._ diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreGizmoduckSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreGizmoduckSource.scala index bb6b58857..d51f2c22e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreGizmoduckSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreGizmoduckSource.scala @@ -1,50 +1,50 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.github.benmanes.caffeine.cache.Caffeine import com.google.inject.Inject -import com.twitter.finagle.TimeoutException -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.featurestore.catalog.datasets.core.UsersourceEntityDataset -import com.twitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{User => UserEntity} -import com.twitter.ml.featurestore.lib.EdgeEntityId -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.TopicId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.data.PredictionRecord -import com.twitter.ml.featurestore.lib.data.PredictionRecordAdapter -import com.twitter.ml.featurestore.lib.dataset.DatasetId -import com.twitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse -import com.twitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset -import com.twitter.ml.featurestore.lib.dynamic.ClientConfig -import com.twitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient -import com.twitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig -import com.twitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig -import com.twitter.ml.featurestore.lib.dynamic.GatedFeatures -import com.twitter.ml.featurestore.lib.feature.BoundFeature -import com.twitter.ml.featurestore.lib.feature.BoundFeatureSet -import com.twitter.ml.featurestore.lib.online.DatasetValuesCache -import com.twitter.ml.featurestore.lib.online.FeatureStoreRequest -import com.twitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.TimeoutException +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.featurestore.catalog.datasets.core.UsersourceEntityDataset +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{User => UserEntity} +import com.ExTwitter.ml.featurestore.lib.EdgeEntityId +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.TopicId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecord +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecordAdapter +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetId +import com.ExTwitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse +import com.ExTwitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset +import com.ExTwitter.ml.featurestore.lib.dynamic.ClientConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.GatedFeatures +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeature +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeatureSet +import com.ExTwitter.ml.featurestore.lib.online.DatasetValuesCache +import com.ExTwitter.ml.featurestore.lib.online.FeatureStoreRequest +import com.ExTwitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import java.util.concurrent.TimeUnit -import com.twitter.conversions.DurationOps._ -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext class FeatureStoreGizmoduckSource @Inject() ( serviceIdentifier: ServiceIdentifier, @@ -139,7 +139,7 @@ class FeatureStoreGizmoduckSource @Inject() ( Stitch .callFuture(candidateFeatureMap) .within(target.params(FeatureStoreSourceParams.GlobalFetchTimeout))( - com.twitter.finagle.util.DefaultTimer) + com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => Stitch.value(Map.empty[CandidateUser, DataRecord]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreParameters.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreParameters.scala index 468a15ff6..41dec3142 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreParameters.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreParameters.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources -import com.twitter.conversions.DurationOps._ -import com.twitter.ml.featurestore.catalog.datasets.core.UserMobileSdkDataset -import com.twitter.ml.featurestore.catalog.datasets.core.UsersourceEntityDataset -import com.twitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmIdAggregateDataset -import com.twitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmTypeAggregateDataset -import com.twitter.ml.featurestore.catalog.datasets.magicrecs.NotificationSummariesEntityDataset -import com.twitter.ml.featurestore.catalog.datasets.onboarding.MetricCenterUserCountingFeaturesDataset -import com.twitter.ml.featurestore.catalog.datasets.onboarding.UserWtfAlgorithmAggregateFeaturesDataset -import com.twitter.ml.featurestore.catalog.datasets.onboarding.WhoToFollowPostNuxFeaturesDataset -import com.twitter.ml.featurestore.catalog.datasets.rux.UserRecentReactivationTimeDataset -import com.twitter.ml.featurestore.catalog.datasets.timelines.AuthorFeaturesEntityDataset -import com.twitter.ml.featurestore.lib.dataset.DatasetParams -import com.twitter.ml.featurestore.lib.dataset.online.BatchingPolicy -import com.twitter.ml.featurestore.lib.params.FeatureStoreParams -import com.twitter.strato.opcontext.Attribution.ManhattanAppId -import com.twitter.strato.opcontext.ServeWithin +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.ml.featurestore.catalog.datasets.core.UserMobileSdkDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.core.UsersourceEntityDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmIdAggregateDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmTypeAggregateDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.magicrecs.NotificationSummariesEntityDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.onboarding.MetricCenterUserCountingFeaturesDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.onboarding.UserWtfAlgorithmAggregateFeaturesDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.onboarding.WhoToFollowPostNuxFeaturesDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.rux.UserRecentReactivationTimeDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.timelines.AuthorFeaturesEntityDataset +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetParams +import com.ExTwitter.ml.featurestore.lib.dataset.online.BatchingPolicy +import com.ExTwitter.ml.featurestore.lib.params.FeatureStoreParams +import com.ExTwitter.strato.opcontext.Attribution.ManhattanAppId +import com.ExTwitter.strato.opcontext.ServeWithin object FeatureStoreParameters { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStorePostNuxAlgorithmSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStorePostNuxAlgorithmSource.scala index 6821e6a5f..836a6a42b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStorePostNuxAlgorithmSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStorePostNuxAlgorithmSource.scala @@ -1,57 +1,57 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.github.benmanes.caffeine.cache.Caffeine import com.google.inject.Inject -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.TimeoutException -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.CandidateAlgorithmTypeConstants -import com.twitter.follow_recommendations.common.feature_hydration.adapters.CandidateAlgorithmAdapter.remapCandidateSource -import com.twitter.follow_recommendations.common.feature_hydration.adapters.PostNuxAlgorithmIdAdapter -import com.twitter.follow_recommendations.common.feature_hydration.adapters.PostNuxAlgorithmTypeAdapter -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.DataRecordMerger -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmIdAggregateDataset -import com.twitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmTypeAggregateDataset -import com.twitter.ml.featurestore.catalog.entities.onboarding.{WtfAlgorithm => OnboardingWtfAlgoId} -import com.twitter.ml.featurestore.catalog.entities.onboarding.{ +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.TimeoutException +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.CandidateAlgorithmTypeConstants +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.CandidateAlgorithmAdapter.remapCandidateSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.PostNuxAlgorithmIdAdapter +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.PostNuxAlgorithmTypeAdapter +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.DataRecordMerger +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmIdAggregateDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.customer_journey.PostNuxAlgorithmTypeAggregateDataset +import com.ExTwitter.ml.featurestore.catalog.entities.onboarding.{WtfAlgorithm => OnboardingWtfAlgoId} +import com.ExTwitter.ml.featurestore.catalog.entities.onboarding.{ WtfAlgorithmType => OnboardingWtfAlgoType } -import com.twitter.ml.featurestore.catalog.features.customer_journey.CombineAllFeaturesPolicy -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.WtfAlgorithmId -import com.twitter.ml.featurestore.lib.WtfAlgorithmType -import com.twitter.ml.featurestore.lib.data.PredictionRecord -import com.twitter.ml.featurestore.lib.data.PredictionRecordAdapter -import com.twitter.ml.featurestore.lib.dataset.DatasetId -import com.twitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse -import com.twitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset -import com.twitter.ml.featurestore.lib.dynamic.ClientConfig -import com.twitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient -import com.twitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig -import com.twitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig -import com.twitter.ml.featurestore.lib.dynamic.GatedFeatures -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.BoundFeature -import com.twitter.ml.featurestore.lib.feature.BoundFeatureSet -import com.twitter.ml.featurestore.lib.online.DatasetValuesCache -import com.twitter.ml.featurestore.lib.online.FeatureStoreRequest -import com.twitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.ml.featurestore.catalog.features.customer_journey.CombineAllFeaturesPolicy +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.WtfAlgorithmId +import com.ExTwitter.ml.featurestore.lib.WtfAlgorithmType +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecord +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecordAdapter +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetId +import com.ExTwitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse +import com.ExTwitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset +import com.ExTwitter.ml.featurestore.lib.dynamic.ClientConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.GatedFeatures +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeature +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeatureSet +import com.ExTwitter.ml.featurestore.lib.online.DatasetValuesCache +import com.ExTwitter.ml.featurestore.lib.online.FeatureStoreRequest +import com.ExTwitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import java.util.concurrent.TimeUnit import scala.collection.JavaConverters._ @@ -190,7 +190,7 @@ class FeatureStorePostNuxAlgorithmSource @Inject() ( Stitch .callFuture(candidateFeatureMap) .within(target.params(FeatureStoreSourceParams.GlobalFetchTimeout))( - com.twitter.finagle.util.DefaultTimer) + com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => Stitch.value(Map.empty[CandidateUser, DataRecord]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSource.scala index 991bdee86..47ad390a5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSource.scala @@ -1,59 +1,59 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.github.benmanes.caffeine.cache.Caffeine import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.TimeoutException -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.feature_hydration.adapters.CandidateAlgorithmAdapter.remapCandidateSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.featurestore.catalog.datasets.core.UsersourceEntityDataset -import com.twitter.ml.featurestore.catalog.datasets.magicrecs.NotificationSummariesEntityDataset -import com.twitter.ml.featurestore.catalog.datasets.onboarding.MetricCenterUserCountingFeaturesDataset -import com.twitter.ml.featurestore.catalog.datasets.timelines.AuthorFeaturesEntityDataset -import com.twitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{Topic => TopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{User => UserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{UserCandidate => UserCandidateEntity} -import com.twitter.ml.featurestore.catalog.entities.onboarding.UserWtfAlgorithmEntity -import com.twitter.ml.featurestore.lib.data.PredictionRecord -import com.twitter.ml.featurestore.lib.data.PredictionRecordAdapter -import com.twitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse -import com.twitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset -import com.twitter.ml.featurestore.lib.dataset.DatasetId -import com.twitter.ml.featurestore.lib.dynamic._ -import com.twitter.ml.featurestore.lib.feature._ -import com.twitter.ml.featurestore.lib.online.DatasetValuesCache -import com.twitter.ml.featurestore.lib.online.FeatureStoreRequest -import com.twitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats -import com.twitter.ml.featurestore.lib.EdgeEntityId -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.TopicId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.WtfAlgorithmId -import com.twitter.onboarding.relevance.adapters.features.featurestore.CandidateAuthorTopicAggregatesAdapter -import com.twitter.onboarding.relevance.adapters.features.featurestore.CandidateTopicEngagementRealTimeAggregatesAdapter -import com.twitter.onboarding.relevance.adapters.features.featurestore.CandidateTopicEngagementUserStateRealTimeAggregatesAdapter -import com.twitter.onboarding.relevance.adapters.features.featurestore.CandidateTopicNegativeEngagementUserStateRealTimeAggregatesAdapter -import com.twitter.onboarding.relevance.adapters.features.featurestore.FeatureStoreAdapter -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.TimeoutException +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.CandidateAlgorithmAdapter.remapCandidateSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.featurestore.catalog.datasets.core.UsersourceEntityDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.magicrecs.NotificationSummariesEntityDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.onboarding.MetricCenterUserCountingFeaturesDataset +import com.ExTwitter.ml.featurestore.catalog.datasets.timelines.AuthorFeaturesEntityDataset +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Topic => TopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{User => UserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{UserCandidate => UserCandidateEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.onboarding.UserWtfAlgorithmEntity +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecord +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecordAdapter +import com.ExTwitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse +import com.ExTwitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetId +import com.ExTwitter.ml.featurestore.lib.dynamic._ +import com.ExTwitter.ml.featurestore.lib.feature._ +import com.ExTwitter.ml.featurestore.lib.online.DatasetValuesCache +import com.ExTwitter.ml.featurestore.lib.online.FeatureStoreRequest +import com.ExTwitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats +import com.ExTwitter.ml.featurestore.lib.EdgeEntityId +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.TopicId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.WtfAlgorithmId +import com.ExTwitter.onboarding.relevance.adapters.features.featurestore.CandidateAuthorTopicAggregatesAdapter +import com.ExTwitter.onboarding.relevance.adapters.features.featurestore.CandidateTopicEngagementRealTimeAggregatesAdapter +import com.ExTwitter.onboarding.relevance.adapters.features.featurestore.CandidateTopicEngagementUserStateRealTimeAggregatesAdapter +import com.ExTwitter.onboarding.relevance.adapters.features.featurestore.CandidateTopicNegativeEngagementUserStateRealTimeAggregatesAdapter +import com.ExTwitter.onboarding.relevance.adapters.features.featurestore.FeatureStoreAdapter +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import java.util.concurrent.TimeUnit @@ -169,7 +169,7 @@ class FeatureStoreSource @Inject() ( Stitch .callFuture(candidateFeatureMap) .within(target.params(FeatureStoreSourceParams.GlobalFetchTimeout))( - com.twitter.finagle.util.DefaultTimer) + com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => Stitch.value(Map.empty[CandidateUser, DataRecord]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSourceParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSourceParams.scala index 15488ce90..f291bd440 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSourceParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreSourceParams.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration -import com.twitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ object FeatureStoreSourceParams { case object EnableTopicAggregateFeatures diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreTimelinesAuthorSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreTimelinesAuthorSource.scala index 179ae7081..5180963eb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreTimelinesAuthorSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreTimelinesAuthorSource.scala @@ -1,50 +1,50 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.github.benmanes.caffeine.cache.Caffeine import com.google.inject.Inject -import com.twitter.finagle.TimeoutException -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.featurestore.catalog.datasets.timelines.AuthorFeaturesEntityDataset -import com.twitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{User => UserEntity} -import com.twitter.ml.featurestore.lib.EdgeEntityId -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.TopicId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.data.PredictionRecord -import com.twitter.ml.featurestore.lib.data.PredictionRecordAdapter -import com.twitter.ml.featurestore.lib.dataset.DatasetId -import com.twitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse -import com.twitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset -import com.twitter.ml.featurestore.lib.dynamic.ClientConfig -import com.twitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient -import com.twitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig -import com.twitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig -import com.twitter.ml.featurestore.lib.dynamic.GatedFeatures -import com.twitter.ml.featurestore.lib.feature.BoundFeature -import com.twitter.ml.featurestore.lib.feature.BoundFeatureSet -import com.twitter.ml.featurestore.lib.online.DatasetValuesCache -import com.twitter.ml.featurestore.lib.online.FeatureStoreRequest -import com.twitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.TimeoutException +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.featurestore.catalog.datasets.timelines.AuthorFeaturesEntityDataset +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{User => UserEntity} +import com.ExTwitter.ml.featurestore.lib.EdgeEntityId +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.TopicId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecord +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecordAdapter +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetId +import com.ExTwitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse +import com.ExTwitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset +import com.ExTwitter.ml.featurestore.lib.dynamic.ClientConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.GatedFeatures +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeature +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeatureSet +import com.ExTwitter.ml.featurestore.lib.online.DatasetValuesCache +import com.ExTwitter.ml.featurestore.lib.online.FeatureStoreRequest +import com.ExTwitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import java.util.concurrent.TimeUnit -import com.twitter.conversions.DurationOps._ -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext class FeatureStoreTimelinesAuthorSource @Inject() ( serviceIdentifier: ServiceIdentifier, @@ -139,7 +139,7 @@ class FeatureStoreTimelinesAuthorSource @Inject() ( Stitch .callFuture(candidateFeatureMap) .within(target.params(FeatureStoreSourceParams.GlobalFetchTimeout))( - com.twitter.finagle.util.DefaultTimer) + com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => Stitch.value(Map.empty[CandidateUser, DataRecord]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreUserMetricCountsSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreUserMetricCountsSource.scala index 110985c92..43a8f2a2f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreUserMetricCountsSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/FeatureStoreUserMetricCountsSource.scala @@ -1,50 +1,50 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.github.benmanes.caffeine.cache.Caffeine import com.google.inject.Inject -import com.twitter.finagle.TimeoutException -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord -import com.twitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -import com.twitter.ml.featurestore.catalog.datasets.onboarding.MetricCenterUserCountingFeaturesDataset -import com.twitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} -import com.twitter.ml.featurestore.catalog.entities.core.{User => UserEntity} -import com.twitter.ml.featurestore.lib.EdgeEntityId -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.TopicId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.data.PredictionRecord -import com.twitter.ml.featurestore.lib.data.PredictionRecordAdapter -import com.twitter.ml.featurestore.lib.dataset.DatasetId -import com.twitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse -import com.twitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset -import com.twitter.ml.featurestore.lib.dynamic.ClientConfig -import com.twitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient -import com.twitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig -import com.twitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig -import com.twitter.ml.featurestore.lib.dynamic.GatedFeatures -import com.twitter.ml.featurestore.lib.feature.BoundFeature -import com.twitter.ml.featurestore.lib.feature.BoundFeatureSet -import com.twitter.ml.featurestore.lib.online.DatasetValuesCache -import com.twitter.ml.featurestore.lib.online.FeatureStoreRequest -import com.twitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.TimeoutException +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.adaptAdditionalFeaturesToDataRecord +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.Utils.randomizedTTL +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.featurestore.catalog.datasets.onboarding.MetricCenterUserCountingFeaturesDataset +import com.ExTwitter.ml.featurestore.catalog.entities.core.{Author => AuthorEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{AuthorTopic => AuthorTopicEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{CandidateUser => CandidateUserEntity} +import com.ExTwitter.ml.featurestore.catalog.entities.core.{User => UserEntity} +import com.ExTwitter.ml.featurestore.lib.EdgeEntityId +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.TopicId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecord +import com.ExTwitter.ml.featurestore.lib.data.PredictionRecordAdapter +import com.ExTwitter.ml.featurestore.lib.dataset.DatasetId +import com.ExTwitter.ml.featurestore.lib.dataset.online.Hydrator.HydrationResponse +import com.ExTwitter.ml.featurestore.lib.dataset.online.OnlineAccessDataset +import com.ExTwitter.ml.featurestore.lib.dynamic.ClientConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicFeatureStoreClient +import com.ExTwitter.ml.featurestore.lib.dynamic.DynamicHydrationConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.FeatureStoreParamsConfig +import com.ExTwitter.ml.featurestore.lib.dynamic.GatedFeatures +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeature +import com.ExTwitter.ml.featurestore.lib.feature.BoundFeatureSet +import com.ExTwitter.ml.featurestore.lib.online.DatasetValuesCache +import com.ExTwitter.ml.featurestore.lib.online.FeatureStoreRequest +import com.ExTwitter.ml.featurestore.lib.online.OnlineFeatureGenerationStats +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import java.util.concurrent.TimeUnit -import com.twitter.conversions.DurationOps._ -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext class FeatureStoreUserMetricCountsSource @Inject() ( serviceIdentifier: ServiceIdentifier, @@ -139,7 +139,7 @@ class FeatureStoreUserMetricCountsSource @Inject() ( Stitch .callFuture(candidateFeatureMap) .within(target.params(FeatureStoreSourceParams.GlobalFetchTimeout))( - com.twitter.finagle.util.DefaultTimer) + com.ExTwitter.finagle.util.DefaultTimer) .rescue { case _: TimeoutException => Stitch.value(Map.empty[CandidateUser, DataRecord]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/HydrationSourcesModule.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/HydrationSourcesModule.scala index 59e3ea186..c066f795f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/HydrationSourcesModule.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/HydrationSourcesModule.scala @@ -1,32 +1,32 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.stitch.Stitch -import com.twitter.storage.client.manhattan.bijections.Bijections.BinaryCompactScalaInjection -import com.twitter.storage.client.manhattan.bijections.Bijections.LongInjection -import com.twitter.storage.client.manhattan.kv.Guarantee -import com.twitter.storage.client.manhattan.kv.ManhattanKVClient -import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams -import com.twitter.storage.client.manhattan.kv.ManhattanKVEndpoint -import com.twitter.storage.client.manhattan.kv.ManhattanKVEndpointBuilder -import com.twitter.storage.client.manhattan.kv.impl.Component -import com.twitter.storage.client.manhattan.kv.impl.Component0 -import com.twitter.storage.client.manhattan.kv.impl.KeyDescriptor -import com.twitter.storage.client.manhattan.kv.impl.ValueDescriptor -import com.twitter.strato.generated.client.ml.featureStore.McUserCountingOnUserClientColumn -import com.twitter.strato.generated.client.ml.featureStore.onboarding.TimelinesAuthorFeaturesOnUserClientColumn -import com.twitter.timelines.author_features.v1.thriftscala.AuthorFeatures -import com.twitter.conversions.DurationOps._ -import com.twitter.onboarding.relevance.features.thriftscala.MCUserCountingFeatures +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.storage.client.manhattan.bijections.Bijections.BinaryCompactScalaInjection +import com.ExTwitter.storage.client.manhattan.bijections.Bijections.LongInjection +import com.ExTwitter.storage.client.manhattan.kv.Guarantee +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClient +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVEndpoint +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVEndpointBuilder +import com.ExTwitter.storage.client.manhattan.kv.impl.Component +import com.ExTwitter.storage.client.manhattan.kv.impl.Component0 +import com.ExTwitter.storage.client.manhattan.kv.impl.KeyDescriptor +import com.ExTwitter.storage.client.manhattan.kv.impl.ValueDescriptor +import com.ExTwitter.strato.generated.client.ml.featureStore.McUserCountingOnUserClientColumn +import com.ExTwitter.strato.generated.client.ml.featureStore.onboarding.TimelinesAuthorFeaturesOnUserClientColumn +import com.ExTwitter.timelines.author_features.v1.thriftscala.AuthorFeatures +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.onboarding.relevance.features.thriftscala.MCUserCountingFeatures import java.lang.{Long => JLong} import scala.util.Random -object HydrationSourcesModule extends TwitterModule { +object HydrationSourcesModule extends ExTwitterModule { val readFromManhattan = flag( "feature_hydration_enable_reading_from_manhattan", diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/PreFetchedFeatureSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/PreFetchedFeatureSource.scala index 51975c487..1e83bc589 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/PreFetchedFeatureSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/PreFetchedFeatureSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.google.inject.Inject import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.feature_hydration.adapters.PreFetchedFeatureAdapter -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.feature_hydration.adapters.PreFetchedFeatureAdapter +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams @Provides @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/UserScoringFeatureSource.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/UserScoringFeatureSource.scala index 155d9e442..addf958d2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/UserScoringFeatureSource.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/UserScoringFeatureSource.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources import com.google.inject.Inject import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSource -import com.twitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.DataRecordMerger -import com.twitter.ml.api.FeatureContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSource +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.FeatureSourceId +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.DataRecordMerger +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams /** * This source wraps around the separate sources that we hydrate features from diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/Utils.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/Utils.scala index 99bd71310..3dab872c8 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/Utils.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources/Utils.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.feature_hydration.sources +package com.ExTwitter.follow_recommendations.common.feature_hydration.sources -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.IRecordOneToOneAdapter import scala.util.Random /** diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/BUILD index b5ece498a..37eb01e2c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/BUILD @@ -3,7 +3,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/LocationFeature.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/LocationFeature.scala index 5325c6b56..ebd4da062 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/LocationFeature.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/LocationFeature.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.features +package com.ExTwitter.follow_recommendations.common.features -import com.twitter.follow_recommendations.common.models.GeohashAndCountryCode -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.follow_recommendations.common.models.GeohashAndCountryCode +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case object LocationFeature extends FeatureWithDefaultOnFailure[PipelineQuery, Option[GeohashAndCountryCode]] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/TrackingTokenFeature.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/TrackingTokenFeature.scala index 23571c8df..51d581bb9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/TrackingTokenFeature.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/TrackingTokenFeature.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.features +package com.ExTwitter.follow_recommendations.common.features -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case object TrackingTokenFeature extends FeatureWithDefaultOnFailure[PipelineQuery, Option[Int]] { override val defaultValue: Option[Int] = None diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/UserStateFeature.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/UserStateFeature.scala index 73072b295..df9b218fb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/UserStateFeature.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features/UserStateFeature.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.features +package com.ExTwitter.follow_recommendations.common.features -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case object UserStateFeature extends Feature[PipelineQuery, Option[UserState]] {} diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AddressBookMetadata.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AddressBookMetadata.scala index 303417d23..7c56fb6cd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AddressBookMetadata.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AddressBookMetadata.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier /** * contains information if a candidate is from a candidate source generated using the following signals. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AlgorithmType.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AlgorithmType.scala index b60afb8b3..8c533943c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AlgorithmType.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/AlgorithmType.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models /** * Each candidate source algorithm could be based on one, or more, of the 4 general type of * information we have on a user: - * 1. Social: the user's connections in Twitter's social graph. + * 1. Social: the user's connections in ExTwitter's social graph. * 2. Geo: the user's geographical information. * 3. Interest: information on the user's chosen interests. * 4. Activity: information on the user's past activity. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/BUILD index c4916b6d0..75d4c8e66 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/BUILD @@ -3,27 +3,27 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/constants", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/model", - "hermit/hermit-ml/src/main/scala/com/twitter/hermit/ml/models", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/identifier", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/model", + "hermit/hermit-ml/src/main/scala/com/ExTwitter/hermit/ml/models", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/identifier", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", "scrooge/scrooge-serializer/src/main/scala", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/wtf/scalding/jobs/strong_tie_prediction", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", - "src/thrift/com/twitter/timelines/author_features/user_health:thrift-scala", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/wtf/scalding/jobs/strong_tie_prediction", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", + "src/thrift/com/ExTwitter/timelines/author_features/user_health:thrift-scala", "user-signal-service/thrift/src/main/thrift:thrift-scala", - "util/util-slf4j-api/src/main/scala/com/twitter/util/logging", + "util/util-slf4j-api/src/main/scala/com/ExTwitter/util/logging", ], exports = [ - "util/util-slf4j-api/src/main/scala/com/twitter/util/logging", + "util/util-slf4j-api/src/main/scala/com/ExTwitter/util/logging", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/CandidateUser.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/CandidateUser.scala index 178f34b30..164e619a9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/CandidateUser.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/CandidateUser.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.hermit.constants.AlgorithmFeedbackTokens -import com.twitter.ml.api.thriftscala.{DataRecord => TDataRecord} -import com.twitter.ml.api.util.ScalaToJavaDataRecordConversions -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens +import com.ExTwitter.ml.api.thriftscala.{DataRecord => TDataRecord} +import com.ExTwitter.ml.api.util.ScalaToJavaDataRecordConversions +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier trait FollowableEntity extends UniversalNoun[Long] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/ClientContextConverter.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/ClientContextConverter.scala index ac601371c..7ec222ac5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/ClientContextConverter.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/ClientContextConverter.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => frs} -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => frs} +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext object ClientContextConverter { def toFRSOfflineClientContextThrift( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala index b49baf034..86c19acbf 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.adserver.thriftscala.{DisplayLocation => AdDisplayLocation} -import com.twitter.follow_recommendations.logging.thriftscala.{ +import com.ExTwitter.adserver.thriftscala.{DisplayLocation => AdDisplayLocation} +import com.ExTwitter.follow_recommendations.logging.thriftscala.{ OfflineDisplayLocation => TOfflineDisplayLocation } -import com.twitter.follow_recommendations.thriftscala.{DisplayLocation => TDisplayLocation} +import com.ExTwitter.follow_recommendations.thriftscala.{DisplayLocation => TDisplayLocation} sealed trait DisplayLocation { def toThrift: TDisplayLocation @@ -22,7 +22,7 @@ sealed trait DisplayLocation { * Make sure you add the new DL to the following files and redeploy our attribution jobs * - follow-recommendations-service/thrift/src/main/thrift/display_location.thrift * - follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift - * - follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala + * - follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models/DisplayLocation.scala */ object DisplayLocation { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/EngagementType.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/EngagementType.scala index b12a4404c..adf2b0ae8 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/EngagementType.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/EngagementType.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.thriftscala.{EngagementType => TEngagementType} -import com.twitter.follow_recommendations.logging.thriftscala.{ +import com.ExTwitter.follow_recommendations.thriftscala.{EngagementType => TEngagementType} +import com.ExTwitter.follow_recommendations.logging.thriftscala.{ EngagementType => OfflineEngagementType } sealed trait EngagementType { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FilterReason.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FilterReason.scala index 86b496776..5d56a1c30 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FilterReason.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FilterReason.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models sealed trait FilterReason { def reason: String diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowContext.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowContext.scala index 15e36321e..7a940df44 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowContext.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowContext.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class FlowContext(steps: Seq[RecommendationStep]) { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowRecommendation.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowRecommendation.scala index 118ff258d..3ed1b5046 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowRecommendation.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/FlowRecommendation.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class FlowRecommendation(userId: Long) { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/GeohashAndCountryCode.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/GeohashAndCountryCode.scala index 782d3fc9e..c5288441a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/GeohashAndCountryCode.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/GeohashAndCountryCode.scala @@ -1,3 +1,3 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models case class GeohashAndCountryCode(geohash: Option[String], countryCode: Option[String]) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasAdMetadata.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasAdMetadata.scala index 57979e376..a97f8b874 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasAdMetadata.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasAdMetadata.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.adserver.{thriftscala => t} +import com.ExTwitter.adserver.{thriftscala => t} case class AdMetadata( insertPosition: Int, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasByfSeedUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasByfSeedUserIds.scala index d4cbdcee8..42b2a9f3e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasByfSeedUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasByfSeedUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasByfSeedUserIds { def byfSeedUserIds: Option[Seq[Long]] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDataRecord.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDataRecord.scala index 4e7047b4e..d640a8b1a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDataRecord.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDataRecord.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.thriftscala.DebugDataRecord -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.follow_recommendations.thriftscala.DebugDataRecord +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging import scala.collection.convert.ImplicitConversions._ // contains the standard dataRecord struct, and the debug version if required diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDebugOptions.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDebugOptions.scala index 0956ca34e..eae072609 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDebugOptions.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDebugOptions.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.thriftscala.DebugParams +import com.ExTwitter.follow_recommendations.thriftscala.DebugParams case class DebugOptions( randomizationSeed: Option[Long] = None, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDismissedUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDismissedUserIds.scala index 3f2154992..ec3c569e1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDismissedUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDismissedUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasDismissedUserIds { // user ids that are recently followed by the target user diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDisplayLocation.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDisplayLocation.scala index e74ae83e1..3e6e2df86 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDisplayLocation.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasDisplayLocation.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasDisplayLocation { def displayLocation: DisplayLocation diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasEngagements.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasEngagements.scala index de59e4479..041e727c9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasEngagements.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasEngagements.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasEngagements { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasExcludedUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasExcludedUserIds.scala index 3addcef83..2387243f9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasExcludedUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasExcludedUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasExcludedUserIds { // user ids that are going to be excluded from recommendations diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasGeohashAndCountryCode.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasGeohashAndCountryCode.scala index a4364bbf4..6a5594a57 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasGeohashAndCountryCode.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasGeohashAndCountryCode.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasGeohashAndCountryCode { def geohashAndCountryCode: Option[GeohashAndCountryCode] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInfoPerRankingStage.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInfoPerRankingStage.scala index c4d277412..58abc8007 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInfoPerRankingStage.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInfoPerRankingStage.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasInfoPerRankingStage { def infoPerRankingStage: Option[scala.collection.Map[String, RankingInfo]] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInterestIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInterestIds.scala index 69f97b673..c0323136a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInterestIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInterestIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasCustomInterests { def customInterests: Option[Seq[String]] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInvalidRelationshipUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInvalidRelationshipUserIds.scala index 3cf3f66db..c8f55aeb5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInvalidRelationshipUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasInvalidRelationshipUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasInvalidRelationshipUserIds { // user ids that have invalid relationship with the target user diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasIsSoftUser.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasIsSoftUser.scala index 8cf1532ce..1c83b82f1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasIsSoftUser.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasIsSoftUser.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasIsSoftUser { def isSoftUser: Boolean diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasMutualFollowedUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasMutualFollowedUserIds.scala index c5e1e16cc..f67b6fed2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasMutualFollowedUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasMutualFollowedUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models // intersection of recent followers and followed by trait HasMutualFollowedUserIds extends HasRecentFollowedUserIds with HasRecentFollowedByUserIds { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasPreviousRecommendationsContext.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasPreviousRecommendationsContext.scala index 2480faaad..a26c3b3f2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasPreviousRecommendationsContext.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasPreviousRecommendationsContext.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasPreviousRecommendationsContext { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasProfileId.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasProfileId.scala index 10cd7c02f..24f06eaeb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasProfileId.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasProfileId.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasProfileId { def profileId: Long diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasQualityFactor.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasQualityFactor.scala index 96527b2ba..a096d2e62 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasQualityFactor.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasQualityFactor.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasQualityFactor { def qualityFactor: Option[Double] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedByUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedByUserIds.scala index bc15e8bd8..7f5b60b3f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedByUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedByUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasRecentFollowedByUserIds { // user ids that have recently followed the target user; target user has been "followed by" them. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIds.scala index 67ada7c66..a8bd31ae2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasRecentFollowedUserIds { // user ids that are recently followed by the target user diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIdsWithTime.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIdsWithTime.scala index 7e3cba4a7..0b0b1babf 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIdsWithTime.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentFollowedUserIdsWithTime.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasRecentFollowedUserIdsWithTime { // user ids that are recently followed by the target user diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentlyEngagedUserIds.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentlyEngagedUserIds.scala index 44420ec27..333851938 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentlyEngagedUserIds.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecentlyEngagedUserIds.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasRecentlyEngagedUserIds { val recentlyEngagedUserIds: Option[Seq[RecentlyEngagedUserId]] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecommendationFlowIdentifier.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecommendationFlowIdentifier.scala index 5706c7a29..71435184a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecommendationFlowIdentifier.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasRecommendationFlowIdentifier.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasRecommendationFlowIdentifier { def recommendationFlowIdentifier: Option[String] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasScores.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasScores.scala index e8a6698ee..e207f6496 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasScores.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasScores.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasScores { def scores: Option[Scores] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasSimilarToContext.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasSimilarToContext.scala index bbe2ac258..ad1944d2e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasSimilarToContext.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasSimilarToContext.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasSimilarToContext { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasTopicId.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasTopicId.scala index 4bd6e63e7..dcadfd291 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasTopicId.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasTopicId.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models trait HasTopicId { def topicId: Long diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserCandidateSourceDetails.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserCandidateSourceDetails.scala index e0e363449..79208702e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserCandidateSourceDetails.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserCandidateSourceDetails.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.hermit.ml.models.Feature -import com.twitter.hermit.model.Algorithm -import com.twitter.hermit.model.Algorithm.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.hermit.ml.models.Feature +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.hermit.model.Algorithm.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier /** * Used to keep track of a candidate's source not so much as a feature but for filtering candidate diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserState.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserState.scala index bf0df46f7..b4a691c85 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserState.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasUserState.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState trait HasUserState { def userState: Option[UserState] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasWtfImpressions.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasWtfImpressions.scala index d840ed6fd..5c7c84708 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasWtfImpressions.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/HasWtfImpressions.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.util.Time +import com.ExTwitter.util.Time trait HasWtfImpressions { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/OptimusRequest.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/OptimusRequest.scala index df4c228e1..862fd4f6d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/OptimusRequest.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/OptimusRequest.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.timelines.configapi.HasParams /** Convenience trait to group together all traits needed for optimus ranking diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Product.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Product.scala index f37cff56e..ca50d6a39 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Product.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Product.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.product_mixer.core.model.common.identifier.ProductIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.{Product => ProductMixerProduct} +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.{Product => ProductMixerProduct} object Product { case object MagicRecs extends ProductMixerProduct { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RankingInfo.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RankingInfo.scala index 02eb46b5a..573112750 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RankingInfo.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RankingInfo.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} case class RankingInfo( scores: Option[Scores], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Reason.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Reason.scala index b7c9c6c75..26a4deac4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Reason.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Reason.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} case class FollowProof(followedBy: Seq[Long], numIds: Int) { def toThrift: t.FollowProof = { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecentlyEngagedUserId.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecentlyEngagedUserId.scala index b20d5d6fb..764181ce1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecentlyEngagedUserId.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecentlyEngagedUserId.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class RecentlyEngagedUserId(id: Long, engagementType: EngagementType) { def toThrift: t.RecentlyEngagedUserId = diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecommendationStep.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecommendationStep.scala index 4fd4bc70e..54a35bb5e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecommendationStep.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/RecommendationStep.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} case class RecommendationStep( recommendations: Seq[FlowRecommendation], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/STPGraph.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/STPGraph.scala index 2d577e21d..81298521b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/STPGraph.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/STPGraph.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.hermit.model.Algorithm.Algorithm -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdge -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdgeInfo -import com.twitter.wtf.scalding.jobs.strong_tie_prediction.SecondDegreeEdge +import com.ExTwitter.hermit.model.Algorithm.Algorithm +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdge +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.FirstDegreeEdgeInfo +import com.ExTwitter.wtf.scalding.jobs.strong_tie_prediction.SecondDegreeEdge case class PotentialFirstDegreeEdge( userId: Long, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SafetyLevel.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SafetyLevel.scala index 10c21704a..c8c49cd75 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SafetyLevel.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SafetyLevel.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.spam.rtf.thriftscala.{SafetyLevel => ThriftSafetyLevel} +import com.ExTwitter.spam.rtf.thriftscala.{SafetyLevel => ThriftSafetyLevel} sealed trait SafetyLevel { def toThrift: ThriftSafetyLevel diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Score.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Score.scala index 1007c5827..c92969762 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Score.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Score.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.follow_recommendations.common.rankers.common.RankerId.RankerId -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId.RankerId +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} /** * Type of Score. This is used to differentiate scores. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Session.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Session.scala index 25ff00b48..ec3d5652b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Session.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/Session.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.finagle.tracing.Trace +import com.ExTwitter.finagle.tracing.Trace object Session { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SignalData.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SignalData.scala index 3af5c6e1d..ce49c8438 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SignalData.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/SignalData.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.simclusters_v2.thriftscala.InternalId -import com.twitter.usersignalservice.thriftscala.SignalType -import com.twitter.usersignalservice.thriftscala.Signal +import com.ExTwitter.simclusters_v2.thriftscala.InternalId +import com.ExTwitter.usersignalservice.thriftscala.SignalType +import com.ExTwitter.usersignalservice.thriftscala.Signal trait SignalData { val userId: Long diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TrackingToken.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TrackingToken.scala index 177e08f65..d10932a86 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TrackingToken.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TrackingToken.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.finagle.tracing.Trace -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.scrooge.BinaryThriftStructSerializer -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.util.Base64StringEncoder +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.scrooge.BinaryThriftStructSerializer +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.util.Base64StringEncoder /** * used for attribution per target-candidate pair diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TweetCandidate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TweetCandidate.scala index 1957e28cc..d05e2666e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TweetCandidate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/TweetCandidate.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models case class TweetCandidate( tweetId: Long, diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserCandidateSourceDetails.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserCandidateSourceDetails.scala index 73b766232..a8de6b30a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserCandidateSourceDetails.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserCandidateSourceDetails.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.hermit.constants.AlgorithmFeedbackTokens._ -import com.twitter.hermit.ml.models.Feature -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens._ +import com.ExTwitter.hermit.ml.models.Feature +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier /** * primaryCandidateSource param is showing the candidate source that responsible for generating this diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserIdAndTimestamp.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserIdAndTimestamp.scala index 74f33eb40..6fe2dd334 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserIdAndTimestamp.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/UserIdAndTimestamp.scala @@ -1,3 +1,3 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models case class UserIdWithTimestamp(userId: Long, timeInMs: Long) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/WtfImpression.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/WtfImpression.scala index 39e0561a2..c981f3211 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/WtfImpression.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/WtfImpression.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.models +package com.ExTwitter.follow_recommendations.common.models -import com.twitter.util.Time +import com.ExTwitter.util.Time /** * Domain model for representing impressions on wtf recommendations in the past 16 days diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/BUILD index ffcbe65a7..5a5ccdbea 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/BUILD @@ -7,15 +7,15 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/features", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/user_state", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/features", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/stores", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateParamPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateParamPredicate.scala index 0713f728f..92cc40926 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateParamPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateParamPredicate.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Param class CandidateParamPredicate[A <: HasParams]( param: Param[Boolean], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateSourceParamPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateSourceParamPredicate.scala index cf08f5623..4e35c6d31 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateSourceParamPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CandidateSourceParamPredicate.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * This predicate allows us to filter candidates given its source. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CuratedCompetitorListPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CuratedCompetitorListPredicate.scala index 16d76ce44..4781e90a2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CuratedCompetitorListPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/CuratedCompetitorListPredicate.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.models.FilterReason.CuratedAccountsCompetitorList -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.models.FilterReason.CuratedAccountsCompetitorList +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher import javax.inject.Inject import javax.inject.Singleton -import com.twitter.conversions.DurationOps._ -import com.twitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.escherbird.util.stitchcache.StitchCache @Singleton case class CuratedCompetitorListPredicate @Inject() ( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/ExcludedUserIdPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/ExcludedUserIdPredicate.scala index 01a5f96fd..f7fc9634b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/ExcludedUserIdPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/ExcludedUserIdPredicate.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.FilterReason.ExcludedId -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasExcludedUserIds -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.FilterReason.ExcludedId +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasExcludedUserIds +import com.ExTwitter.stitch.Stitch object ExcludedUserIdPredicate extends Predicate[(HasExcludedUserIds, CandidateUser)] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicate.scala index c77538a99..9e48d9a20 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicate.scala @@ -1,27 +1,27 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates import com.google.inject.name.Named -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.predicates.InactivePredicateParams._ -import com.twitter.service.metastore.gen.thriftscala.UserRecommendabilityFeatures -import com.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.predicates.InactivePredicateParams._ +import com.ExTwitter.service.metastore.gen.thriftscala.UserRecommendabilityFeatures +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton -import com.twitter.conversions.DurationOps._ -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.follow_recommendations.common.models.HasUserState -import com.twitter.follow_recommendations.common.predicates.InactivePredicateParams.DefaultInactivityThreshold -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.follow_recommendations.common.models.HasUserState +import com.ExTwitter.follow_recommendations.common.predicates.InactivePredicateParams.DefaultInactivityThreshold +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext import java.lang.{Long => JLong} diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicateParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicateParams.scala index 0bb52caa8..c3cd13fa3 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicateParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/InactivePredicateParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param object InactivePredicateParams { case object DefaultInactivityThreshold diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/PreviouslyRecommendedUserIdsPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/PreviouslyRecommendedUserIdsPredicate.scala index 7879860ac..95577c82c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/PreviouslyRecommendedUserIdsPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/PreviouslyRecommendedUserIdsPredicate.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.predicates +package com.ExTwitter.follow_recommendations.common.predicates -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.models.HasPreviousRecommendationsContext -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.models.HasPreviousRecommendationsContext +import com.ExTwitter.stitch.Stitch import javax.inject.Singleton @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/BUILD index 9d1ca9b40..eb7a45197 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/BUILD @@ -8,10 +8,10 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/dismiss_store", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/dismiss_store", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicate.scala index 550017b95..2c2a7640c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicate.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.predicates.dismiss +package com.ExTwitter.follow_recommendations.common.predicates.dismiss -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.FilterReason.DismissedId -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDismissedUserIds -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.FilterReason.DismissedId +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDismissedUserIds +import com.ExTwitter.stitch.Stitch import javax.inject.Singleton @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicateParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicateParams.scala index 7f1d51a07..bb52ceefa 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicateParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss/DismissedCandidatePredicateParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.predicates.dismiss +package com.ExTwitter.follow_recommendations.common.predicates.dismiss -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object DismissedCandidatePredicateParams { case object LookBackDuration extends Param[Duration](180.days) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/BUILD index a154121e6..08f9f29d6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/BUILD @@ -7,15 +7,15 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/cache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/gizmoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", "stitch/stitch-gizmoduck", "util/util-slf4j-api/src/main/scala", "util/util-thrift", diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicate.scala index 2ca3e2fc5..62be6472c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicate.scala @@ -1,38 +1,38 @@ -package com.twitter.follow_recommendations.common.predicates.gizmoduck +package com.ExTwitter.follow_recommendations.common.predicates.gizmoduck -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.escherbird.util.stitchcache.StitchCache -import com.twitter.finagle.Memcached.Client -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.clients.cache.MemcacheClient -import com.twitter.follow_recommendations.common.clients.cache.ThriftBijection -import com.twitter.follow_recommendations.common.models.FilterReason._ -import com.twitter.follow_recommendations.common.models.AddressBookMetadata -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate._ -import com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicateParams._ -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.gizmoduck.thriftscala.LabelValue.BlinkBad -import com.twitter.gizmoduck.thriftscala.LabelValue.BlinkWorst -import com.twitter.gizmoduck.thriftscala.LabelValue -import com.twitter.gizmoduck.thriftscala.LookupContext -import com.twitter.gizmoduck.thriftscala.QueryFields -import com.twitter.gizmoduck.thriftscala.User -import com.twitter.gizmoduck.thriftscala.UserResult -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.scrooge.CompactThriftSerializer -import com.twitter.spam.rtf.thriftscala.SafetyLevel -import com.twitter.stitch.Stitch -import com.twitter.stitch.gizmoduck.Gizmoduck -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Duration -import com.twitter.util.logging.Logging +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.escherbird.util.stitchcache.StitchCache +import com.ExTwitter.finagle.Memcached.Client +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.clients.cache.MemcacheClient +import com.ExTwitter.follow_recommendations.common.clients.cache.ThriftBijection +import com.ExTwitter.follow_recommendations.common.models.FilterReason._ +import com.ExTwitter.follow_recommendations.common.models.AddressBookMetadata +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate._ +import com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicateParams._ +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.gizmoduck.thriftscala.LabelValue.BlinkBad +import com.ExTwitter.gizmoduck.thriftscala.LabelValue.BlinkWorst +import com.ExTwitter.gizmoduck.thriftscala.LabelValue +import com.ExTwitter.gizmoduck.thriftscala.LookupContext +import com.ExTwitter.gizmoduck.thriftscala.QueryFields +import com.ExTwitter.gizmoduck.thriftscala.User +import com.ExTwitter.gizmoduck.thriftscala.UserResult +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.scrooge.CompactThriftSerializer +import com.ExTwitter.spam.rtf.thriftscala.SafetyLevel +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Duration +import com.ExTwitter.util.logging.Logging import java.lang.{Long => JLong} import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateCache.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateCache.scala index 36fb2f20f..d50fd0b59 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateCache.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateCache.scala @@ -1,19 +1,19 @@ -package com.twitter.follow_recommendations.common.predicates.gizmoduck +package com.ExTwitter.follow_recommendations.common.predicates.gizmoduck import java.util.concurrent.TimeUnit import com.google.common.base.Ticker import com.google.common.cache.CacheBuilder import com.google.common.cache.Cache -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.util.Time -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.util.Time +import com.ExTwitter.util.Duration /** * In-memory cache used for caching GizmoduckPredicate query calls in - * com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate. + * com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate. * - * References the cache implementation in com.twitter.escherbird.util.stitchcache, + * References the cache implementation in com.ExTwitter.escherbird.util.stitchcache, * but without the underlying Stitch call. */ object GizmoduckPredicateCache { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateFSConfig.scala index 447eac835..70d1fc82a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateFSConfig.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.predicates.gizmoduck +package com.ExTwitter.follow_recommendations.common.predicates.gizmoduck -import com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicateParams._ -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicateParams._ +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateParams.scala index 811897e27..4d6b276e2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck/GizmoduckPredicateParams.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.predicates.gizmoduck +package com.ExTwitter.follow_recommendations.common.predicates.gizmoduck -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration -import com.twitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ object GizmoduckPredicateParams { case object GizmoduckGetTimeout diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/BUILD index d0e9e1015..7060c8aec 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/BUILD @@ -7,13 +7,13 @@ scala_library( "3rdparty/jvm/com/google/inject/extensions:guice-assistedinject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", - "escherbird/src/scala/com/twitter/escherbird/util/stitchcache", + "escherbird/src/scala/com/ExTwitter/escherbird/util/stitchcache", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/cache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "strato/config/columns/hss/user_signals/api:api-strato-client", "util/util-slf4j-api/src/main/scala", "util/util-thrift", diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicate.scala index 7464be7df..c50dea098 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicate.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.predicates.hss +package com.ExTwitter.follow_recommendations.common.predicates.hss -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.models.FilterReason.FailOpen -import com.twitter.hss.api.thriftscala.SignalValue -import com.twitter.hss.api.thriftscala.UserHealthSignal.AgathaCseDouble -import com.twitter.hss.api.thriftscala.UserHealthSignal.NsfwAgathaUserScoreDouble -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.hss.user_signals.api.HealthSignalsOnUserClientColumn -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.logging.Logging -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.models.FilterReason.FailOpen +import com.ExTwitter.hss.api.thriftscala.SignalValue +import com.ExTwitter.hss.api.thriftscala.UserHealthSignal.AgathaCseDouble +import com.ExTwitter.hss.api.thriftscala.UserHealthSignal.NsfwAgathaUserScoreDouble +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.hss.user_signals.api.HealthSignalsOnUserClientColumn +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateFSConfig.scala index 8cc1620a9..51220fed3 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateFSConfig.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.predicates.hss +package com.ExTwitter.follow_recommendations.common.predicates.hss -import com.twitter.follow_recommendations.common.predicates.hss.HssPredicateParams._ -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.common.predicates.hss.HssPredicateParams._ +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateParams.scala index ac6e14bbe..71faba633 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health/HssPredicateParams.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.predicates.hss +package com.ExTwitter.follow_recommendations.common.predicates.hss -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration object HssPredicateParams { object HssCseScoreThreshold diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/BUILD index 0df7b245a..dae65feb3 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/BUILD @@ -8,12 +8,12 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/InvalidRelationshipPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/InvalidRelationshipPredicate.scala index 84b8bf7a6..66e4b0f8f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/InvalidRelationshipPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/InvalidRelationshipPredicate.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.predicates.sgs +package com.ExTwitter.follow_recommendations.common.predicates.sgs -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.models.HasInvalidRelationshipUserIds -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.models.HasInvalidRelationshipUserIds +import com.ExTwitter.stitch.Stitch import javax.inject.Singleton @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/RecentFollowingPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/RecentFollowingPredicate.scala index 60f0080b8..8d33f7a41 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/RecentFollowingPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/RecentFollowingPredicate.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.predicates.sgs +package com.ExTwitter.follow_recommendations.common.predicates.sgs -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.stitch.Stitch import javax.inject.Singleton @Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateFSConfig.scala index f661dbbab..be883f5e1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.predicates.sgs +package com.ExTwitter.follow_recommendations.common.predicates.sgs -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateParams.scala index dd615c47d..15ac6b850 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsPredicateParams.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.predicates.sgs +package com.ExTwitter.follow_recommendations.common.predicates.sgs -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration -import com.twitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ object SgsPredicateParams { case object SgsRelationshipsPredicateTimeout diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsByUserIdPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsByUserIdPredicate.scala index dec936e58..13ae744f6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsByUserIdPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsByUserIdPredicate.scala @@ -1,19 +1,19 @@ -package com.twitter.follow_recommendations.common.predicates.sgs +package com.ExTwitter.follow_recommendations.common.predicates.sgs import com.google.common.annotations.VisibleForTesting -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason.InvalidRelationshipTypes -import com.twitter.socialgraph.thriftscala.ExistsRequest -import com.twitter.socialgraph.thriftscala.ExistsResult -import com.twitter.socialgraph.thriftscala.LookupContext -import com.twitter.socialgraph.thriftscala.Relationship -import com.twitter.socialgraph.thriftscala.RelationshipType -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason.InvalidRelationshipTypes +import com.ExTwitter.socialgraph.thriftscala.ExistsRequest +import com.ExTwitter.socialgraph.thriftscala.ExistsResult +import com.ExTwitter.socialgraph.thriftscala.LookupContext +import com.ExTwitter.socialgraph.thriftscala.Relationship +import com.ExTwitter.socialgraph.thriftscala.RelationshipType +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsPredicate.scala index fdb88ad58..98dbed645 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs/SgsRelationshipsPredicate.scala @@ -1,25 +1,25 @@ -package com.twitter.follow_recommendations.common.predicates.sgs +package com.ExTwitter.follow_recommendations.common.predicates.sgs import com.google.common.annotations.VisibleForTesting -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasProfileId -import com.twitter.follow_recommendations.common.models.FilterReason.FailOpen -import com.twitter.follow_recommendations.common.models.FilterReason.InvalidRelationshipTypes -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.socialgraph.thriftscala.ExistsRequest -import com.twitter.socialgraph.thriftscala.ExistsResult -import com.twitter.socialgraph.thriftscala.LookupContext -import com.twitter.socialgraph.thriftscala.Relationship -import com.twitter.socialgraph.thriftscala.RelationshipType -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.TimeoutException -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasProfileId +import com.ExTwitter.follow_recommendations.common.models.FilterReason.FailOpen +import com.ExTwitter.follow_recommendations.common.models.FilterReason.InvalidRelationshipTypes +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.socialgraph.thriftscala.ExistsRequest +import com.ExTwitter.socialgraph.thriftscala.ExistsResult +import com.ExTwitter.socialgraph.thriftscala.LookupContext +import com.ExTwitter.socialgraph.thriftscala.Relationship +import com.ExTwitter.socialgraph.thriftscala.RelationshipType +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.TimeoutException +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton @@ -67,7 +67,7 @@ class SgsRelationshipsPredicate( PredicateResult.Valid } } - .within(timeout)(com.twitter.finagle.util.DefaultTimer) + .within(timeout)(com.ExTwitter.finagle.util.DefaultTimer) } // if no user id is present, return true by default .getOrElse(Stitch.value(PredicateResult.Valid)) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/BUILD index fe3df2d8b..050de29fd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/BUILD @@ -8,12 +8,12 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/cache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", "strato/config/columns/onboarding:onboarding-strato-client", "util/util-slf4j-api/src/main/scala", ], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicate.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicate.scala index e0fd6b42c..16eb679e2 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicate.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicate.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.predicates.user_activity +package com.ExTwitter.follow_recommendations.common.predicates.user_activity -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.finagle.Memcached.Client -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.PredicateResult -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.clients.cache.MemcacheClient -import com.twitter.follow_recommendations.common.clients.cache.ThriftEnumOptionBijection -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.UserRecommendabilityWithLongKeysOnUserClientColumn -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.finagle.Memcached.Client +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.PredicateResult +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.clients.cache.MemcacheClient +import com.ExTwitter.follow_recommendations.common.clients.cache.ThriftEnumOptionBijection +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.UserRecommendabilityWithLongKeysOnUserClientColumn +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicateParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicateParams.scala index 57e8d958b..701dc4d70 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicateParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity/UserActivityPredicateParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.predicates.user_activity +package com.ExTwitter.follow_recommendations.common.predicates.user_activity -import com.twitter.timelines.configapi.FSParam -import com.twitter.util.Duration +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.util.Duration object UserActivityPredicateParams { case object HeavyTweeterEnabled diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/AdhocScoreModificationType.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/AdhocScoreModificationType.scala index 23ccd6f4f..62aa08b5d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/AdhocScoreModificationType.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/AdhocScoreModificationType.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.rankers.common +package com.ExTwitter.follow_recommendations.common.rankers.common /** * To manage the extent of adhoc score modifications, we set a hard limit that from each of the diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/BUILD index 77d496dcf..eb90a7d56 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/BUILD @@ -4,7 +4,7 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/org/slf4j:slf4j-api", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/DedupCandidates.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/DedupCandidates.scala index bbbde2b58..b62c6b7e1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/DedupCandidates.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/DedupCandidates.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.rankers.common +package com.ExTwitter.follow_recommendations.common.rankers.common -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun import scala.collection.mutable object DedupCandidates { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/RankerId.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/RankerId.scala index f6fdb905a..6bfccb93c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/RankerId.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common/RankerId.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.rankers.common +package com.ExTwitter.follow_recommendations.common.rankers.common object RankerId extends Enumeration { type RankerId = Value diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/BUILD index 2fce8d77a..b3c71b77b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/BUILD @@ -3,11 +3,11 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/impression_store", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRanker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRanker.scala index 18ac0436b..260a19227 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRanker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRanker.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.common.rankers.fatigue_ranker +package com.ExTwitter.follow_recommendations.common.rankers.fatigue_ranker -import com.twitter.finagle.stats.Counter -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasWtfImpressions -import com.twitter.follow_recommendations.common.models.WtfImpression -import com.twitter.follow_recommendations.common.rankers.common.RankerId.RankerId -import com.twitter.follow_recommendations.common.rankers.utils.Utils -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.servo.util.MemoizingStatsReceiver -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Time +import com.ExTwitter.finagle.stats.Counter +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasWtfImpressions +import com.ExTwitter.follow_recommendations.common.models.WtfImpression +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.utils.Utils +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.servo.util.MemoizingStatsReceiver +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Time /** * Ranks candidates based on the given weights for each algorithm while preserving the ranks inside each algorithm. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerFSConfig.scala index 34fbbeb46..63a0da021 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerFSConfig.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.rankers.fatigue_ranker +package com.ExTwitter.follow_recommendations.common.rankers.fatigue_ranker -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerParams.scala index 075d78bf6..17b6d216a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker/ImpressionBasedFatigueRankerParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.rankers.fatigue_ranker +package com.ExTwitter.follow_recommendations.common.rankers.fatigue_ranker -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param object ImpressionBasedFatigueRankerParams { // Whether to enable hard dropping of impressed candidates diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/BUILD index 3de5523b1..d40270151 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/BUILD @@ -8,13 +8,13 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/utils", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRanker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRanker.scala index 8fbeafa25..6cde8ec3a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRanker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRanker.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.rankers.first_n_ranker +package com.ExTwitter.follow_recommendations.common.rankers.first_n_ranker import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasQualityFactor -import com.twitter.follow_recommendations.common.rankers.utils.Utils -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasQualityFactor +import com.ExTwitter.follow_recommendations.common.rankers.utils.Utils +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams /** * This class is meant to filter candidates between stages of our ranker by taking the first N diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFSConfig.scala index 484738dc1..7dc49420c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFSConfig.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.rankers.first_n_ranker +package com.ExTwitter.follow_recommendations.common.rankers.first_n_ranker import javax.inject.Inject import javax.inject.Singleton -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam @Singleton class FirstNRankerFSConfig @Inject() extends FeatureSwitchConfig { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFeatureSwitchKeys.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFeatureSwitchKeys.scala index 682b60fed..56aa741fc 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFeatureSwitchKeys.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerFeatureSwitchKeys.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.rankers.first_n_ranker +package com.ExTwitter.follow_recommendations.common.rankers.first_n_ranker object FirstNRankerFeatureSwitchKeys { val CandidatePoolSize = "first_n_ranker_candidate_pool_size" diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerParams.scala index ac65a6dde..ce1e9c54d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker/FirstNRankerParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.rankers.first_n_ranker +package com.ExTwitter.follow_recommendations.common.rankers.first_n_ranker -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param object FirstNRankerParams { case object CandidatesToRank diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/BUILD index e71d8a7ab..a3c879533 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/BUILD @@ -8,14 +8,14 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/ranking", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/utils", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRanker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRanker.scala index 973275f51..05f81c66b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRanker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRanker.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.common.rankers.interleave_ranker +package com.ExTwitter.follow_recommendations.common.rankers.interleave_ranker import com.google.common.annotations.VisibleForTesting import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.follow_recommendations.common.rankers.utils.Utils -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.utils.Utils +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams @Singleton class InterleaveRanker[Target <: HasParams] @Inject() ( diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerFSConfig.scala index 5a8c6de2a..c5adb0a06 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.rankers.interleave_ranker +package com.ExTwitter.follow_recommendations.common.rankers.interleave_ranker import javax.inject.Inject import javax.inject.Singleton -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSParam @Singleton class InterleaveRankerFSConfig @Inject() extends FeatureSwitchConfig { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerParams.scala index 84e6ea314..e86ee3f12 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker/InterleaveRankerParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.rankers.interleave_ranker +package com.ExTwitter.follow_recommendations.common.rankers.interleave_ranker -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object InterleaveRankerParams { case object ScribeRankingInfoInInterleaveRanker diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/BUILD index 0c277e005..d6132a888 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/BUILD @@ -8,16 +8,16 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "src/java/com/twitter/ml/api:api-base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/deepbirdv2", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/sources", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/scoring", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/utils", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "src/java/com/ExTwitter/ml/api:api-base", "util/util-slf4j-api/src/main/scala", ], ) @@ -31,7 +31,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "timelines/src/main/scala/com/twitter/timelines/config/configapi", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "timelines/src/main/scala/com/ExTwitter/timelines/config/configapi", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/HydrateFeaturesTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/HydrateFeaturesTransform.scala index 499a14b67..de9382cae 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/HydrateFeaturesTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/HydrateFeaturesTransform.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.GatedTransform -import com.twitter.follow_recommendations.common.base.StatsUtil.profileStitchMapResults -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.feature_hydration.sources.UserScoringFeatureSource -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDebugOptions -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasSimilarToContext -import com.twitter.follow_recommendations.common.models.RichDataRecord -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.GatedTransform +import com.ExTwitter.follow_recommendations.common.base.StatsUtil.profileStitchMapResults +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.UserScoringFeatureSource +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDebugOptions +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasSimilarToContext +import com.ExTwitter.follow_recommendations.common.models.RichDataRecord +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.logging.Logging /** * Hydrate features given target and candidates lists. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRanker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRanker.scala index 6344c348e..b508fb57e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRanker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRanker.scala @@ -1,29 +1,29 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking import com.google.common.annotations.VisibleForTesting import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.base.StatsUtil.profileSeqResults -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasDebugOptions -import com.twitter.follow_recommendations.common.models.Scores -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.follow_recommendations.common.rankers.common.RankerId.RankerId -import com.twitter.follow_recommendations.common.rankers.utils.Utils -import com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring.AdhocScorer -import com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring.Scorer -import com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring.ScorerFactory -import com.twitter.follow_recommendations.common.utils.CollectionUtil -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.base.StatsUtil.profileSeqResults +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasDebugOptions +import com.ExTwitter.follow_recommendations.common.models.Scores +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.utils.Utils +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring.AdhocScorer +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring.Scorer +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring.ScorerFactory +import com.ExTwitter.follow_recommendations.common.utils.CollectionUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.logging.Logging /** * This class has a rank function that will perform 4 steps: diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerFSConfig.scala index c69a32fc5..93ffb43aa 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking import javax.inject.Inject import javax.inject.Singleton -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSParam @Singleton class MlRankerFSConfig @Inject() extends FeatureSwitchConfig { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerParams.scala index 8463963a6..d6d3670e6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking/MlRankerParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSParam /** * When adding Producer side experiments, make sure to register the FS Key in [[ProducerFeatureFilter]] diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/AdhocScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/AdhocScorer.scala index 39921bb71..43a4a4522 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/AdhocScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/AdhocScorer.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring -import com.twitter.follow_recommendations.common.rankers.common.AdhocScoreModificationType.AdhocScoreModificationType -import com.twitter.follow_recommendations.common.models.Score -import com.twitter.ml.api.DataRecord -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.rankers.common.AdhocScoreModificationType.AdhocScoreModificationType +import com.ExTwitter.follow_recommendations.common.models.Score +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.stitch.Stitch trait AdhocScorer extends Scorer { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/BUILD index bbcd3c708..1755501d1 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/BUILD @@ -8,16 +8,16 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking:ml_ranker_params", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/pluck/source/core_workflows/user_model:condensed_user_state-scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/deepbirdv2", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/ranking:ml_ranker_params", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/pluck/source/core_workflows/user_model:condensed_user_state-scala", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/DeepbirdScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/DeepbirdScorer.scala index d27bc6e37..fa5db853c 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/DeepbirdScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/DeepbirdScorer.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring -import com.twitter.cortex.deepbird.thriftjava.DeepbirdPredictionService -import com.twitter.cortex.deepbird.thriftjava.ModelSelector -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDebugOptions -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.Score -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.Feature -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.prediction_service.{BatchPredictionRequest => JBatchPredictionRequest} -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Future -import com.twitter.util.TimeoutException +import com.ExTwitter.cortex.deepbird.thriftjava.DeepbirdPredictionService +import com.ExTwitter.cortex.deepbird.thriftjava.ModelSelector +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDebugOptions +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Score +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.prediction_service.{BatchPredictionRequest => JBatchPredictionRequest} +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Future +import com.ExTwitter.util.TimeoutException import scala.collection.JavaConversions._ import scala.collection.JavaConverters._ diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/PostnuxDeepbirdProdScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/PostnuxDeepbirdProdScorer.scala index 861d02fa7..4df211bb9 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/PostnuxDeepbirdProdScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/PostnuxDeepbirdProdScorer.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring -import com.twitter.cortex.deepbird.thriftjava.DeepbirdPredictionService -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.ml.api.Feature +import com.ExTwitter.cortex.deepbird.thriftjava.DeepbirdPredictionService +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.ml.api.Feature import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/RandomScorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/RandomScorer.scala index 92265cc6b..7c6ce3a63 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/RandomScorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/RandomScorer.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring -import com.twitter.cortex.deepbird.thriftjava.DeepbirdPredictionService -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.Feature -import com.twitter.util.Future +import com.ExTwitter.cortex.deepbird.thriftjava.DeepbirdPredictionService +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/Scorer.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/Scorer.scala index 2ca611535..74bb183b7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/Scorer.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/Scorer.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasDebugOptions -import com.twitter.follow_recommendations.common.models.Score -import com.twitter.follow_recommendations.common.models.ScoreType -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasDebugOptions +import com.ExTwitter.follow_recommendations.common.models.Score +import com.ExTwitter.follow_recommendations.common.models.ScoreType +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams trait Scorer { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/ScorerFactory.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/ScorerFactory.scala index a9ea0a21b..a556a08b4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/ScorerFactory.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring/ScorerFactory.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.rankers.ml_ranker.scoring +package com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.scoring -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.follow_recommendations.common.rankers.common.RankerId.RankerId +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId.RankerId import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/BUILD index 82e9fc7f4..457a3574a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/BUILD @@ -3,6 +3,6 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/Utils.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/Utils.scala index 29f00b698..75dbf55ee 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/Utils.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils/Utils.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.rankers.utils +package com.ExTwitter.follow_recommendations.common.rankers.utils -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.Score -import com.twitter.follow_recommendations.common.rankers.common.RankerId.RankerId +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.Score +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId.RankerId object Utils { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/BUILD index 3de5523b1..d40270151 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/BUILD @@ -8,13 +8,13 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/utils", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/CandidateShuffle.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/CandidateShuffle.scala index be281a582..98ae466ce 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/CandidateShuffle.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/CandidateShuffle.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker +package com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker -import com.twitter.follow_recommendations.common.utils.RandomUtil +import com.ExTwitter.follow_recommendations.common.utils.RandomUtil import scala.util.Random sealed trait CandidateShuffler[T] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightMethod.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightMethod.scala index 54e2ad549..ba2fbabe4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightMethod.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightMethod.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker +package com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker object WeightMethod extends Enumeration { type WeightMethod = Value diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceBaseRanker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceBaseRanker.scala index e348560db..b6f9671b4 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceBaseRanker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceBaseRanker.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker +package com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker -import com.twitter.follow_recommendations.common.utils.RandomUtil -import com.twitter.follow_recommendations.common.utils.MergeUtil -import com.twitter.follow_recommendations.common.utils.Weighted -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightMethod._ +import com.ExTwitter.follow_recommendations.common.utils.RandomUtil +import com.ExTwitter.follow_recommendations.common.utils.MergeUtil +import com.ExTwitter.follow_recommendations.common.utils.Weighted +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightMethod._ import scala.util.Random /** diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRanker.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRanker.scala index c6f55adbc..0cac8d51d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRanker.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRanker.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.rankers.common.DedupCandidates -import com.twitter.follow_recommendations.common.rankers.utils.Utils -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +package com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.rankers.common.DedupCandidates +import com.ExTwitter.follow_recommendations.common.rankers.utils.Utils +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams /** * Candidate Ranker that mixes and ranks multiple candidate lists from different candidate sources with the diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerFSConfig.scala index 58f0fde3e..bf14af67e 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerFSConfig.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker +package com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerParams.scala index ff4ecae4b..63a46c229 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker/WeightedCandidateSourceRankerParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker +package com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSParam object WeightedCandidateSourceRankerParams { case object ScribeRankingInfoInWeightedRanker diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/BUILD index 3b7a46db7..712b9d210 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/BUILD @@ -8,11 +8,11 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "strato/config/columns/onboarding/userrecs:userrecs-strato-client", "util/util-slf4j-api/src/main/scala", ], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/LowTweepCredFollowStore.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/LowTweepCredFollowStore.scala index d2f4e035b..966e780ef 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/LowTweepCredFollowStore.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/stores/LowTweepCredFollowStore.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.stores +package com.ExTwitter.follow_recommendations.common.stores -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.onboarding.userrecs.TweepCredOnUserClientColumn +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.onboarding.userrecs.TweepCredOnUserClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/BUILD index 35534b064..24f3f401f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/BUILD @@ -3,6 +3,6 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/DedupTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/DedupTransform.scala index 64f73d6ae..e5ee78bdd 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/DedupTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup/DedupTransform.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.transforms.dedup +package com.ExTwitter.follow_recommendations.common.transforms.dedup -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.stitch.Stitch import scala.collection.mutable class DedupTransform[Request, Candidate <: UniversalNoun[Long]]() diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/BUILD index 79da9c259..9ac57faaf 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/BUILD @@ -9,14 +9,14 @@ scala_library( "3rdparty/jvm/org/slf4j:slf4j-api", "configapi/configapi-core", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", - "snowflake/src/main/scala/com/twitter/snowflake/id", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/graph_feature_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/ModifySocialProofTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/ModifySocialProofTransform.scala index 306578a4d..cdb8c4d6b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/ModifySocialProofTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/ModifySocialProofTransform.scala @@ -1,24 +1,24 @@ -package com.twitter.follow_recommendations.common.transforms.modify_social_proof +package com.ExTwitter.follow_recommendations.common.transforms.modify_social_proof -import com.twitter.conversions.DurationOps._ -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.follow_recommendations.common.base.GatedTransform -import com.twitter.follow_recommendations.common.clients.graph_feature_service.GraphFeatureServiceClient -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FollowProof -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.graph_feature_service.thriftscala.EdgeType -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.logging.Logging -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.follow_recommendations.common.base.GatedTransform +import com.ExTwitter.follow_recommendations.common.clients.graph_feature_service.GraphFeatureServiceClient +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FollowProof +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/RemoveAccountProofTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/RemoveAccountProofTransform.scala index 8face1164..bede4ca8f 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/RemoveAccountProofTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof/RemoveAccountProofTransform.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.common.transforms.modify_social_proof +package com.ExTwitter.follow_recommendations.common.transforms.modify_social_proof -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.GatedTransform -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.GatedTransform +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/BUILD index d6dcd8522..6e61a969b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/BUILD @@ -8,12 +8,12 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/RandomRankerIdTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/RandomRankerIdTransform.scala index 03639da26..b2d2bcec3 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/RandomRankerIdTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id/RandomRankerIdTransform.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.common.transforms.ranker_id +package com.ExTwitter.follow_recommendations.common.transforms.ranker_id import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.base.GatedTransform -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.Score -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.base.GatedTransform +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.Score +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams /** * This class appends each candidate's rankerIds with the RandomRankerId. diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/AddRecommendationFlowIdentifierTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/AddRecommendationFlowIdentifierTransform.scala index 87c111a6c..dd17eaa0d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/AddRecommendationFlowIdentifierTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/AddRecommendationFlowIdentifierTransform.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.transforms.recommendation_flow_identifier +package com.ExTwitter.follow_recommendations.common.transforms.recommendation_flow_identifier import com.google.inject.Inject -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasRecommendationFlowIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasRecommendationFlowIdentifier +import com.ExTwitter.stitch.Stitch class AddRecommendationFlowIdentifierTransform @Inject() extends Transform[HasRecommendationFlowIdentifier, CandidateUser] { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/BUILD index 820e2df66..04476174d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/recommendation_flow_identifier/BUILD @@ -3,7 +3,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/BUILD index d9b257348..4a5f25662 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/BUILD @@ -8,11 +8,11 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/constants", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/TrackingTokenTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/TrackingTokenTransform.scala index 5a30c9cb1..0633769d6 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/TrackingTokenTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token/TrackingTokenTransform.scala @@ -1,17 +1,17 @@ -package com.twitter.follow_recommendations.common.transforms.tracking_token +package com.ExTwitter.follow_recommendations.common.transforms.tracking_token -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.Session -import com.twitter.follow_recommendations.common.models.TrackingToken -import com.twitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap -import com.twitter.hermit.model.Algorithm -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.stitch.Stitch -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Session +import com.ExTwitter.follow_recommendations.common.models.TrackingToken +import com.ExTwitter.hermit.constants.AlgorithmFeedbackTokens.AlgorithmToFeedbackTokenMap +import com.ExTwitter.hermit.model.Algorithm +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/BUILD index 606e8edfa..1330eee59 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/BUILD @@ -3,8 +3,8 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", ], ) diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransform.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransform.scala index 269a39a48..d39c5259d 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransform.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransform.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.common.transforms.weighted_sampling -import com.twitter.follow_recommendations.common.base.GatedTransform -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDebugOptions -import com.twitter.follow_recommendations.common.models.Score -import com.twitter.follow_recommendations.common.models.Scores -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.follow_recommendations.common.rankers.utils.Utils -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext +package com.ExTwitter.follow_recommendations.common.transforms.weighted_sampling +import com.ExTwitter.follow_recommendations.common.base.GatedTransform +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDebugOptions +import com.ExTwitter.follow_recommendations.common.models.Score +import com.ExTwitter.follow_recommendations.common.models.Scores +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.utils.Utils +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext import javax.inject.Inject import javax.inject.Singleton @@ -41,7 +41,7 @@ class SamplingTransform @Inject() () request) each of which has a score inputs accessed through feature switches, i.e. through target.params (see the following file: - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/ + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/ transforms/weighted_sampling/SamplingTransformParams.scala"): - topKFixed: the first k positions of the who-to-follow ranking correspond to the users with the k highest scores and are not sampled from the Placket-Luce distribution diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformFSConfig.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformFSConfig.scala index b97251f93..1df04d12b 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformFSConfig.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformFSConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.transforms.weighted_sampling +package com.ExTwitter.follow_recommendations.common.transforms.weighted_sampling -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformParams.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformParams.scala index 363487a9b..204c3c862 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformParams.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling/SamplingTransformParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.common.transforms.weighted_sampling +package com.ExTwitter.follow_recommendations.common.transforms.weighted_sampling -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object SamplingTransformParams { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/BUILD b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/BUILD index 7075167e3..ed2f759bb 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/BUILD +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/BUILD @@ -3,10 +3,10 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/request", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/request", "stitch/stitch-core", "util/util-slf4j-api/src/main/scala", ], diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/CollectionUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/CollectionUtil.scala index db9a1f9f5..278719b81 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/CollectionUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/CollectionUtil.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils object CollectionUtil { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/DisplayLocationProductConverterUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/DisplayLocationProductConverterUtil.scala index 2f6db39b6..31ef19b18 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/DisplayLocationProductConverterUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/DisplayLocationProductConverterUtil.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.Product -import com.twitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Product +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product object DisplayLocationProductConverterUtil { def productToDisplayLocation(product: Product): DisplayLocation = { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/MergeUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/MergeUtil.scala index 6aaee4c45..dc58f24c5 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/MergeUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/MergeUtil.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils object MergeUtil { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RandomUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RandomUtil.scala index 9d66e8deb..5dab35e2a 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RandomUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RandomUtil.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils import scala.util.Random object RandomUtil { diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RescueWithStatsUtils.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RescueWithStatsUtils.scala index 8275228d6..e74c6ca08 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RescueWithStatsUtils.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/RescueWithStatsUtils.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.stitch.Stitch -import com.twitter.util.Duration -import com.twitter.util.TimeoutException +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Duration +import com.ExTwitter.util.TimeoutException object RescueWithStatsUtils { def rescueWithStats[T]( @@ -36,7 +36,7 @@ object RescueWithStatsUtils { val hydratedScopeSource = stats.scope(source) StatsUtil .profileStitchSeqResults( - s.within(timeout)(com.twitter.finagle.util.DefaultTimer), + s.within(timeout)(com.ExTwitter.finagle.util.DefaultTimer), hydratedScopeSource) .rescue { case _: TimeoutException => diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/UserSignupUtil.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/UserSignupUtil.scala index 73d90a85b..18799eae7 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/UserSignupUtil.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/UserSignupUtil.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time object UserSignupUtil { def signupTime(hasClientContext: HasClientContext): Option[Time] = diff --git a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/Weighted.scala b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/Weighted.scala index adb95e5f5..3f38a7ea8 100644 --- a/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/Weighted.scala +++ b/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils/Weighted.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.common.utils +package com.ExTwitter.follow_recommendations.common.utils /** * Typeclass for any Recommendation type that has a weight diff --git a/follow-recommendations-service/server/src/main/resources/logback.xml b/follow-recommendations-service/server/src/main/resources/logback.xml index 96348c8e4..e1b6d02c1 100644 --- a/follow-recommendations-service/server/src/main/resources/logback.xml +++ b/follow-recommendations-service/server/src/main/resources/logback.xml @@ -52,7 +52,7 @@ - + true ${log.lens.category} ${log.lens.index} @@ -63,7 +63,7 @@ - + true ${log.lens.category} ${log.lens.index} @@ -80,25 +80,25 @@ - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} - + ${async_queue_size} ${async_max_flush_time} @@ -109,12 +109,12 @@ - - - - - - + + + + + + @@ -123,7 +123,7 @@ - diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/BUILD index 4dcbaab44..9d14b9004 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/BUILD @@ -6,41 +6,41 @@ scala_library( "finagle/finagle-http/src/main/scala", "finagle/finagle-thriftmux/src/main/scala", "finatra-internal/decider/src/main/scala", - "finatra-internal/international/src/main/scala/com/twitter/finatra/international/modules", + "finatra-internal/international/src/main/scala/com/ExTwitter/finatra/international/modules", "finatra-internal/mtls-http/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", - "finatra/http-core/src/main/java/com/twitter/finatra/http", + "finatra/http-core/src/main/java/com/ExTwitter/finatra/http", "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-server/src/main/scala", "finatra/inject/inject-thrift-client", - "finatra/jackson/src/main/scala/com/twitter/finatra/jackson/modules", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/addressbook", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/adserver", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/cache", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/email_storage_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/gizmoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/graph_feature_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/phone_storage_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/strato", + "finatra/jackson/src/main/scala/com/ExTwitter/finatra/jackson/modules", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/addressbook", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/adserver", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/cache", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/deepbirdv2", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/email_storage_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/geoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/gizmoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/graph_feature_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/phone_storage_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/strato", "follow-recommendations-service/server/src/main/resources", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/controllers", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/modules", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/services", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/services/exceptions", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "geoduck/service/src/main/scala/com/twitter/geoduck/service/common/clientmodules", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/controllers", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module/stringcenter", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "twitter-server/server/src/main/scala", + "geoduck/service/src/main/scala/com/ExTwitter/geoduck/service/common/clientmodules", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/controllers", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module/stringcenter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "ExTwitter-server/server/src/main/scala", "util/util-app/src/main/scala", "util/util-core:scala", "util/util-slf4j-api/src/main/scala", diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/FollowRecommendationsServiceThriftServer.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/FollowRecommendationsServiceThriftServer.scala index fba889c2f..67581d140 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/FollowRecommendationsServiceThriftServer.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/FollowRecommendationsServiceThriftServer.scala @@ -1,46 +1,46 @@ -package com.twitter.follow_recommendations +package com.ExTwitter.follow_recommendations import com.google.inject.Module -import com.twitter.finagle.ThriftMux -import com.twitter.finatra.decider.modules.DeciderModule -import com.twitter.finatra.http.HttpServer -import com.twitter.finatra.http.routing.HttpRouter -import com.twitter.finatra.international.modules.I18nFactoryModule -import com.twitter.finatra.international.modules.LanguagesModule -import com.twitter.finatra.jackson.modules.ScalaObjectMapperModule -import com.twitter.finatra.mtls.http.{Mtls => HttpMtls} -import com.twitter.finatra.mtls.thriftmux.Mtls -import com.twitter.finatra.thrift.ThriftServer -import com.twitter.finatra.thrift.filters._ -import com.twitter.finagle.thrift.Protocols -import com.twitter.finatra.thrift.routing.ThriftRouter -import com.twitter.follow_recommendations.common.clients.addressbook.AddressbookModule -import com.twitter.follow_recommendations.common.clients.adserver.AdserverModule -import com.twitter.follow_recommendations.common.clients.cache.MemcacheModule -import com.twitter.follow_recommendations.common.clients.deepbirdv2.DeepBirdV2PredictionServiceClientModule -import com.twitter.follow_recommendations.common.clients.email_storage_service.EmailStorageServiceModule -import com.twitter.follow_recommendations.common.clients.geoduck.LocationServiceModule -import com.twitter.follow_recommendations.common.clients.gizmoduck.GizmoduckModule -import com.twitter.follow_recommendations.common.clients.graph_feature_service.GraphFeatureStoreModule -import com.twitter.follow_recommendations.common.clients.impression_store.ImpressionStoreModule -import com.twitter.follow_recommendations.common.clients.phone_storage_service.PhoneStorageServiceModule -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphModule -import com.twitter.follow_recommendations.common.clients.strato.StratoClientModule -import com.twitter.follow_recommendations.common.constants.ServiceConstants._ -import com.twitter.follow_recommendations.common.feature_hydration.sources.HydrationSourcesModule -import com.twitter.follow_recommendations.controllers.ThriftController -import com.twitter.follow_recommendations.modules._ -import com.twitter.follow_recommendations.service.exceptions.UnknownLoggingExceptionMapper -import com.twitter.follow_recommendations.services.FollowRecommendationsServiceWarmupHandler -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.geoduck.service.common.clientmodules.ReverseGeocoderThriftClientModule -import com.twitter.inject.thrift.filters.DarkTrafficFilter -import com.twitter.inject.thrift.modules.ThriftClientIdModule -import com.twitter.product_mixer.core.controllers.ProductMixerController -import com.twitter.product_mixer.core.module.PipelineExecutionLoggerModule -import com.twitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule -import com.twitter.product_mixer.core.module.stringcenter.ProductScopeStringCenterModule -import com.twitter.product_mixer.core.product.guice.ProductScopeModule +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finatra.decider.modules.DeciderModule +import com.ExTwitter.finatra.http.HttpServer +import com.ExTwitter.finatra.http.routing.HttpRouter +import com.ExTwitter.finatra.international.modules.I18nFactoryModule +import com.ExTwitter.finatra.international.modules.LanguagesModule +import com.ExTwitter.finatra.jackson.modules.ScalaObjectMapperModule +import com.ExTwitter.finatra.mtls.http.{Mtls => HttpMtls} +import com.ExTwitter.finatra.mtls.thriftmux.Mtls +import com.ExTwitter.finatra.thrift.ThriftServer +import com.ExTwitter.finatra.thrift.filters._ +import com.ExTwitter.finagle.thrift.Protocols +import com.ExTwitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.follow_recommendations.common.clients.addressbook.AddressbookModule +import com.ExTwitter.follow_recommendations.common.clients.adserver.AdserverModule +import com.ExTwitter.follow_recommendations.common.clients.cache.MemcacheModule +import com.ExTwitter.follow_recommendations.common.clients.deepbirdv2.DeepBirdV2PredictionServiceClientModule +import com.ExTwitter.follow_recommendations.common.clients.email_storage_service.EmailStorageServiceModule +import com.ExTwitter.follow_recommendations.common.clients.geoduck.LocationServiceModule +import com.ExTwitter.follow_recommendations.common.clients.gizmoduck.GizmoduckModule +import com.ExTwitter.follow_recommendations.common.clients.graph_feature_service.GraphFeatureStoreModule +import com.ExTwitter.follow_recommendations.common.clients.impression_store.ImpressionStoreModule +import com.ExTwitter.follow_recommendations.common.clients.phone_storage_service.PhoneStorageServiceModule +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphModule +import com.ExTwitter.follow_recommendations.common.clients.strato.StratoClientModule +import com.ExTwitter.follow_recommendations.common.constants.ServiceConstants._ +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.HydrationSourcesModule +import com.ExTwitter.follow_recommendations.controllers.ThriftController +import com.ExTwitter.follow_recommendations.modules._ +import com.ExTwitter.follow_recommendations.service.exceptions.UnknownLoggingExceptionMapper +import com.ExTwitter.follow_recommendations.services.FollowRecommendationsServiceWarmupHandler +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.geoduck.service.common.clientmodules.ReverseGeocoderThriftClientModule +import com.ExTwitter.inject.thrift.filters.DarkTrafficFilter +import com.ExTwitter.inject.thrift.modules.ThriftClientIdModule +import com.ExTwitter.product_mixer.core.controllers.ProductMixerController +import com.ExTwitter.product_mixer.core.module.PipelineExecutionLoggerModule +import com.ExTwitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule +import com.ExTwitter.product_mixer.core.module.stringcenter.ProductScopeStringCenterModule +import com.ExTwitter.product_mixer.core.product.guice.ProductScopeModule object FollowRecommendationsServiceThriftServerMain extends FollowRecommendationsServiceThriftServer diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Action.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Action.scala index cd3d88967..3309e594f 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Action.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Action.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class Action(text: String, actionURL: String) { lazy val toThrift: t.Action = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/BUILD index 65d265480..88bd07bba 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/BUILD @@ -3,7 +3,7 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "stringcenter/client", ], diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Config.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Config.scala index 3346a05e1..b35bd451b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Config.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Config.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.stringcenter.client.core.ExternalString case class HeaderConfig(title: TitleConfig) case class TitleConfig(text: ExternalString) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/FeedbackAction.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/FeedbackAction.scala index 25caa933a..810b4962a 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/FeedbackAction.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/FeedbackAction.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.{thriftscala => t} trait FeedbackAction { def toThrift: t.FeedbackAction diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Footer.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Footer.scala index f62368431..58d271d9e 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Footer.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Footer.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class Footer(action: Option[Action]) { lazy val toThrift: t.Footer = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Header.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Header.scala index 58c60c789..6d41f9b13 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Header.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Header.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class Header(title: Title) { lazy val toThrift: t.Header = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Layout.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Layout.scala index f0dc9630a..fc5635d45 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Layout.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Layout.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models sealed trait Layout diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/RecommendationOptions.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/RecommendationOptions.scala index 72351e033..532ffcddb 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/RecommendationOptions.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/RecommendationOptions.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models sealed trait RecommendationOptions diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/SocialProof.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/SocialProof.scala index fd5878af8..d2ac3b870 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/SocialProof.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/SocialProof.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.stringcenter.client.core.ExternalString sealed trait SocialProof diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Title.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Title.scala index 3d128e7c8..bdca3b672 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Title.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/Title.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class Title(text: String) { lazy val toThrift: t.Title = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/WTFPresentation.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/WTFPresentation.scala index 7cfda1846..314db1c75 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/WTFPresentation.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models/WTFPresentation.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.assembler.models +package com.ExTwitter.follow_recommendations.assembler.models -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.{thriftscala => t} trait WTFPresentation { def toThrift: t.WTFPresentation diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/BUILD index 81d912a99..a20457e71 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/BUILD @@ -8,9 +8,9 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/PromotedAccountsBlender.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/PromotedAccountsBlender.scala index 8516de53d..dc136177b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/PromotedAccountsBlender.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders/PromotedAccountsBlender.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.blenders +package com.ExTwitter.follow_recommendations.blenders import com.google.common.annotations.VisibleForTesting -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.AdMetadata -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.inject.Logging -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.AdMetadata +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.inject.Logging +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton @@ -55,7 +55,7 @@ class PromotedAccountsBlender @Inject() (statsReceiver: StatsReceiver) * range, i.e, can not exceed the combined length if merge is successful, ok * to be at the last position, but not beyond. * For more detailed description of location position: - * http://confluence.local.twitter.com/display/ADS/Promoted+Tweets+in+Timeline+Design+Document + * http://confluence.local.ExTwitter.com/display/ADS/Promoted+Tweets+in+Timeline+Design+Document */ @VisibleForTesting private[blenders] def mergePromotedAccounts( diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/BUILD index f64fcda69..78d649375 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/BUILD @@ -9,20 +9,20 @@ scala_library( "configapi/configapi-featureswitches:v2", "featureswitches/featureswitches-core", "featureswitches/featureswitches-core:v2", - "featureswitches/featureswitches-core/src/main/scala/com/twitter/featureswitches/v2/builder", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products", + "featureswitches/featureswitches-core/src/main/scala/com/ExTwitter/featureswitches/v2/builder", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/recent_engagement", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/stp", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/triangular_loops", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/ranking", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/params", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/content_recommender_flow", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ConfigBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ConfigBuilder.scala index 818f4402c..0cbfab5ee 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ConfigBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ConfigBuilder.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi -import com.twitter.timelines.configapi.CompositeConfig -import com.twitter.timelines.configapi.Config +import com.ExTwitter.timelines.configapi.CompositeConfig +import com.ExTwitter.timelines.configapi.Config import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/DeciderConfigs.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/DeciderConfigs.scala index 0154a1703..f555093f9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/DeciderConfigs.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/DeciderConfigs.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi -import com.twitter.decider.Recipient -import com.twitter.decider.SimpleRecipient -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.follow_recommendations.configapi.deciders.DeciderParams -import com.twitter.follow_recommendations.products.home_timeline_tweet_recs.configapi.HomeTimelineTweetRecsParams -import com.twitter.servo.decider.DeciderGateBuilder -import com.twitter.timelines.configapi._ -import com.twitter.timelines.configapi.decider.DeciderSwitchOverrideValue -import com.twitter.timelines.configapi.decider.GuestRecipient -import com.twitter.timelines.configapi.decider.RecipientBuilder +import com.ExTwitter.decider.Recipient +import com.ExTwitter.decider.SimpleRecipient +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderParams +import com.ExTwitter.follow_recommendations.products.home_timeline_tweet_recs.configapi.HomeTimelineTweetRecsParams +import com.ExTwitter.servo.decider.DeciderGateBuilder +import com.ExTwitter.timelines.configapi._ +import com.ExTwitter.timelines.configapi.decider.DeciderSwitchOverrideValue +import com.ExTwitter.timelines.configapi.decider.GuestRecipient +import com.ExTwitter.timelines.configapi.decider.RecipientBuilder import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/FeatureSwitchConfigs.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/FeatureSwitchConfigs.scala index c7f7f6d9e..d64fabfe2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/FeatureSwitchConfigs.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/FeatureSwitchConfigs.scala @@ -1,33 +1,33 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.candidate_sources.base.SocialProofEnforcedCandidateSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeoQualityFollowSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeoSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.sims.SimsSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.SimsExpansionFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStpSourceFsConfig -import com.twitter.follow_recommendations.common.candidate_sources.stp.OnlineSTPSourceFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsFSConfig -import com.twitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphFSConfig -import com.twitter.follow_recommendations.common.feature_hydration.sources.FeatureHydrationSourcesFSConfig -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightedCandidateSourceRankerFSConfig -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.follow_recommendations.flows.content_recommender_flow.ContentRecommenderFlowFSConfig -import com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicateFSConfig -import com.twitter.follow_recommendations.common.predicates.hss.HssPredicateFSConfig -import com.twitter.follow_recommendations.common.predicates.sgs.SgsPredicateFSConfig -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlowFSConfig -import com.twitter.logging.Logger -import com.twitter.timelines.configapi.BaseConfigBuilder -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.candidate_sources.base.SocialProofEnforcedCandidateSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeoQualityFollowSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeoSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.SimsSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.SimsExpansionFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStpSourceFsConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OnlineSTPSourceFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsFSConfig +import com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphFSConfig +import com.ExTwitter.follow_recommendations.common.feature_hydration.sources.FeatureHydrationSourcesFSConfig +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightedCandidateSourceRankerFSConfig +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.follow_recommendations.flows.content_recommender_flow.ContentRecommenderFlowFSConfig +import com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicateFSConfig +import com.ExTwitter.follow_recommendations.common.predicates.hss.HssPredicateFSConfig +import com.ExTwitter.follow_recommendations.common.predicates.sgs.SgsPredicateFSConfig +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlowFSConfig +import com.ExTwitter.logging.Logger +import com.ExTwitter.timelines.configapi.BaseConfigBuilder +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/GlobalFeatureSwitchConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/GlobalFeatureSwitchConfig.scala index 537ed660c..77b112959 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/GlobalFeatureSwitchConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/GlobalFeatureSwitchConfig.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsParams.AccountsFilteringAndRankingLogics -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsParams.{ +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsParams.AccountsFilteringAndRankingLogics +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsParams.{ AccountsFilteringAndRankingLogics => OrganicAccountsFilteringAndRankingLogics } -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersParams -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.SimsExpansionSourceParams -import com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRankerParams.CandidateScorerIdParam -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.follow_recommendations.configapi.params.GlobalParams.CandidateSourcesToFilter -import com.twitter.follow_recommendations.configapi.params.GlobalParams.EnableCandidateParamHydrations -import com.twitter.follow_recommendations.configapi.params.GlobalParams.EnableGFSSocialProofTransform -import com.twitter.follow_recommendations.configapi.params.GlobalParams.EnableRecommendationFlowLogs -import com.twitter.follow_recommendations.configapi.params.GlobalParams.EnableWhoToFollowProducts -import com.twitter.follow_recommendations.configapi.params.GlobalParams.KeepSocialUserCandidate -import com.twitter.follow_recommendations.configapi.params.GlobalParams.KeepUserCandidate -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersParams +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.SimsExpansionSourceParams +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRankerParams.CandidateScorerIdParam +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.CandidateSourcesToFilter +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.EnableCandidateParamHydrations +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.EnableGFSSocialProofTransform +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.EnableRecommendationFlowLogs +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.EnableWhoToFollowProducts +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.KeepSocialUserCandidate +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.KeepUserCandidate +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ParamsFactory.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ParamsFactory.scala index 847d69962..9e58d0f53 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ParamsFactory.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ParamsFactory.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.servo.util.MemoizingStatsReceiver -import com.twitter.timelines.configapi.Config -import com.twitter.timelines.configapi.FeatureValue -import com.twitter.timelines.configapi.Params +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.servo.util.MemoizingStatsReceiver +import com.ExTwitter.timelines.configapi.Config +import com.ExTwitter.timelines.configapi.FeatureValue +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContext.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContext.scala index ebc8abf3c..6e6eeb46c 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContext.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContext.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi -import com.twitter.timelines.configapi.BaseRequestContext -import com.twitter.timelines.configapi.FeatureContext -import com.twitter.timelines.configapi.NullFeatureContext -import com.twitter.timelines.configapi.GuestId -import com.twitter.timelines.configapi.UserId -import com.twitter.timelines.configapi.WithFeatureContext -import com.twitter.timelines.configapi.WithGuestId -import com.twitter.timelines.configapi.WithUserId +import com.ExTwitter.timelines.configapi.BaseRequestContext +import com.ExTwitter.timelines.configapi.FeatureContext +import com.ExTwitter.timelines.configapi.NullFeatureContext +import com.ExTwitter.timelines.configapi.GuestId +import com.ExTwitter.timelines.configapi.UserId +import com.ExTwitter.timelines.configapi.WithFeatureContext +import com.ExTwitter.timelines.configapi.WithGuestId +import com.ExTwitter.timelines.configapi.WithUserId case class RequestContext( userId: Option[UserId], diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContextFactory.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContextFactory.scala index 89d8617a3..26eae79b1 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContextFactory.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/RequestContextFactory.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.configapi +package com.ExTwitter.follow_recommendations.configapi import com.google.common.annotations.VisibleForTesting import com.google.inject.Inject -import com.twitter.decider.Decider -import com.twitter.featureswitches.v2.FeatureSwitches -import com.twitter.featureswitches.{Recipient => FeatureSwitchRecipient} -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.timelines.configapi.FeatureContext -import com.twitter.timelines.configapi.FeatureValue -import com.twitter.timelines.configapi.ForcedFeatureContext -import com.twitter.timelines.configapi.OrElseFeatureContext -import com.twitter.timelines.configapi.featureswitches.v2.FeatureSwitchResultsFeatureContext +import com.ExTwitter.decider.Decider +import com.ExTwitter.featureswitches.v2.FeatureSwitches +import com.ExTwitter.featureswitches.{Recipient => FeatureSwitchRecipient} +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.timelines.configapi.FeatureContext +import com.ExTwitter.timelines.configapi.FeatureValue +import com.ExTwitter.timelines.configapi.ForcedFeatureContext +import com.ExTwitter.timelines.configapi.OrElseFeatureContext +import com.ExTwitter.timelines.configapi.featureswitches.v2.FeatureSwitchResultsFeatureContext import javax.inject.Singleton /* diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/BUILD index 5470c9bf4..0e9459351 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/BUILD @@ -9,10 +9,10 @@ scala_library( "configapi/configapi-featureswitches:v2", "featureswitches/featureswitches-core", "featureswitches/featureswitches-core:v2", - "featureswitches/featureswitches-core/src/main/scala/com/twitter/featureswitches/v2/builder", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params", + "featureswitches/featureswitches-core/src/main/scala/com/ExTwitter/featureswitches/v2/builder", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/params", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContext.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContext.scala index 6b954a911..b35f00ca8 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContext.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContext.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.configapi.candidates +package com.ExTwitter.follow_recommendations.configapi.candidates -import com.twitter.timelines.configapi.BaseRequestContext -import com.twitter.timelines.configapi.FeatureContext -import com.twitter.timelines.configapi.NullFeatureContext -import com.twitter.timelines.configapi.WithFeatureContext -import com.twitter.timelines.configapi.WithUserId +import com.ExTwitter.timelines.configapi.BaseRequestContext +import com.ExTwitter.timelines.configapi.FeatureContext +import com.ExTwitter.timelines.configapi.NullFeatureContext +import com.ExTwitter.timelines.configapi.WithFeatureContext +import com.ExTwitter.timelines.configapi.WithUserId /** * represent the context for a recommendation candidate (producer side) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContextFactory.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContextFactory.scala index 4f30cf17a..5229fc996 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContextFactory.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserContextFactory.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.configapi.candidates +package com.ExTwitter.follow_recommendations.configapi.candidates import com.google.common.annotations.VisibleForTesting import com.google.inject.Inject -import com.twitter.decider.Decider -import com.twitter.featureswitches.v2.FeatureSwitches -import com.twitter.featureswitches.{Recipient => FeatureSwitchRecipient} -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants.PRODUCER_SIDE_FEATURE_SWITCHES -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.timelines.configapi.FeatureContext -import com.twitter.timelines.configapi.featureswitches.v2.FeatureSwitchResultsFeatureContext +import com.ExTwitter.decider.Decider +import com.ExTwitter.featureswitches.v2.FeatureSwitches +import com.ExTwitter.featureswitches.{Recipient => FeatureSwitchRecipient} +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants.PRODUCER_SIDE_FEATURE_SWITCHES +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.timelines.configapi.FeatureContext +import com.ExTwitter.timelines.configapi.featureswitches.v2.FeatureSwitchResultsFeatureContext import javax.inject.Named import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserParamsFactory.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserParamsFactory.scala index 5afd09a63..2c8874823 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserParamsFactory.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/CandidateUserParamsFactory.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.configapi.candidates +package com.ExTwitter.follow_recommendations.configapi.candidates -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.configapi.params.GlobalParams -import com.twitter.servo.util.MemoizingStatsReceiver -import com.twitter.timelines.configapi.Config -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams +import com.ExTwitter.servo.util.MemoizingStatsReceiver +import com.ExTwitter.timelines.configapi.Config +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/HydrateCandidateParamsTransform.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/HydrateCandidateParamsTransform.scala index deadd1d70..7deb3b98b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/HydrateCandidateParamsTransform.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates/HydrateCandidateParamsTransform.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.configapi.candidates +package com.ExTwitter.follow_recommendations.configapi.candidates import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.logging.Logging +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.logging.Logging @Singleton class HydrateCandidateParamsTransform[Target <: HasParams with HasDisplayLocation] @Inject() ( diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common/FeatureSwitchConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common/FeatureSwitchConfig.scala index 798b02670..4e02f6d71 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common/FeatureSwitchConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common/FeatureSwitchConfig.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.configapi.common +package com.ExTwitter.follow_recommendations.configapi.common -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil.DefinedFeatureName -import com.twitter.timelines.configapi.FeatureSwitchOverrideUtil.ValueFeatureName -import com.twitter.timelines.configapi.BoundedParam -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.OptionalOverride -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil.DefinedFeatureName +import com.ExTwitter.timelines.configapi.FeatureSwitchOverrideUtil.ValueFeatureName +import com.ExTwitter.timelines.configapi.BoundedParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.OptionalOverride +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration trait FeatureSwitchConfig { def booleanFSParams: Seq[Param[Boolean] with FSName] = Nil diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderKey.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderKey.scala index f4c069a63..58981ae82 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderKey.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderKey.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.configapi.deciders +package com.ExTwitter.follow_recommendations.configapi.deciders -import com.twitter.servo.decider.DeciderKeyEnum +import com.ExTwitter.servo.decider.DeciderKeyEnum object DeciderKey extends DeciderKeyEnum { val EnableDiffyModuleDarkReading = Value("enable_diffy_module_dark_reading") diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderParams.scala index 07bf3e14d..d56197fbc 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders/DeciderParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.configapi.deciders +package com.ExTwitter.follow_recommendations.configapi.deciders -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.Param object DeciderParams { object EnableRecommendations extends Param[Boolean](false) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/BUILD index 1bb357b2c..cb3bb1585 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/BUILD @@ -7,7 +7,7 @@ scala_library( "configapi/configapi-core", "configapi/configapi-decider", "configapi/configapi-featureswitches:v2", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/GlobalParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/GlobalParams.scala index cf1905c41..a667481ab 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/GlobalParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params/GlobalParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.configapi.params +package com.ExTwitter.follow_recommendations.configapi.params -import com.twitter.follow_recommendations.models.CandidateSourceType -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.follow_recommendations.models.CandidateSourceType +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSParam /** * When adding Producer side experiments, make sure to register the FS Key in [[ProducerFeatureFilter]] diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/BUILD index 2a625d856..e7bfb145d 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/BUILD @@ -10,18 +10,18 @@ scala_library( "decider/src/main/scala", "finagle/finagle-core/src/main", "finatra/inject/inject-core/src/main/scala", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift:controller", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/exceptions", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/filters", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/modules", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/response", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/routing", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift:controller", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/exceptions", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/filters", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/modules", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/response", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/routing", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/services", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/service/debug_query", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/service/debug_query", "scrooge/scrooge-core/src/main/scala", "util/util-core:scala", "util/util-slf4j-api/src/main/scala", diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/CandidateUserDebugParamsBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/CandidateUserDebugParamsBuilder.scala index 1695c464d..a7831b335 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/CandidateUserDebugParamsBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/CandidateUserDebugParamsBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.controllers +package com.ExTwitter.follow_recommendations.controllers -import com.twitter.follow_recommendations.common.models._ -import com.twitter.follow_recommendations.configapi.ParamsFactory -import com.twitter.follow_recommendations.models.CandidateUserDebugParams -import com.twitter.follow_recommendations.models.FeatureValue -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.common.models._ +import com.ExTwitter.follow_recommendations.configapi.ParamsFactory +import com.ExTwitter.follow_recommendations.models.CandidateUserDebugParams +import com.ExTwitter.follow_recommendations.models.FeatureValue +import com.ExTwitter.follow_recommendations.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RecommendationRequestBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RecommendationRequestBuilder.scala index bc21fd6a3..53a9b2adc 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RecommendationRequestBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RecommendationRequestBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.controllers +package com.ExTwitter.follow_recommendations.controllers -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.ClientContextConverter -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.models.DebugParams -import com.twitter.follow_recommendations.models.DisplayContext -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.gizmoduck.thriftscala.UserType -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.ClientContextConverter +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.models.DebugParams +import com.ExTwitter.follow_recommendations.models.DisplayContext +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.gizmoduck.thriftscala.UserType +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RequestBuilderUserFetcher.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RequestBuilderUserFetcher.scala index 3953b5ef3..abc346998 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RequestBuilderUserFetcher.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/RequestBuilderUserFetcher.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.controllers +package com.ExTwitter.follow_recommendations.controllers -import com.twitter.decider.Decider -import com.twitter.decider.SimpleRecipient -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.gizmoduck.thriftscala.LookupContext -import com.twitter.gizmoduck.thriftscala.User -import com.twitter.stitch.Stitch -import com.twitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.SimpleRecipient +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.gizmoduck.thriftscala.LookupContext +import com.ExTwitter.gizmoduck.thriftscala.User +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.gizmoduck.Gizmoduck import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ScoringUserRequestBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ScoringUserRequestBuilder.scala index 4a45a19f7..a3f060cb2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ScoringUserRequestBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ScoringUserRequestBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.controllers +package com.ExTwitter.follow_recommendations.controllers -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.ClientContextConverter -import com.twitter.follow_recommendations.common.models.DebugOptions -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.models.DebugParams -import com.twitter.follow_recommendations.models.ScoringUserRequest -import com.twitter.timelines.configapi.Params +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.ClientContextConverter +import com.ExTwitter.follow_recommendations.common.models.DebugOptions +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.models.DebugParams +import com.ExTwitter.follow_recommendations.models.ScoringUserRequest +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.gizmoduck.thriftscala.UserType -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.gizmoduck.thriftscala.UserType +import com.ExTwitter.stitch.Stitch @Singleton class ScoringUserRequestBuilder @Inject() ( diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ThriftController.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ThriftController.scala index f3014982e..210ab5709 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ThriftController.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/controllers/ThriftController.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.controllers +package com.ExTwitter.follow_recommendations.controllers -import com.twitter.finatra.thrift.Controller -import com.twitter.follow_recommendations.configapi.ParamsFactory -import com.twitter.follow_recommendations.services.ProductPipelineSelector -import com.twitter.follow_recommendations.services.UserScoringService -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService._ -import com.twitter.stitch.Stitch +import com.ExTwitter.finatra.thrift.Controller +import com.ExTwitter.follow_recommendations.configapi.ParamsFactory +import com.ExTwitter.follow_recommendations.services.ProductPipelineSelector +import com.ExTwitter.follow_recommendations.services.UserScoringService +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService._ +import com.ExTwitter.stitch.Stitch import javax.inject.Inject class ThriftController @Inject() ( diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/BUILD index aa775c6a7..e748f391d 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/BUILD @@ -8,12 +8,12 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/promoted_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/promoted_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/tracking_token", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlow.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlow.scala index dd9372484..a194358dc 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlow.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlow.scala @@ -1,23 +1,23 @@ -package com.twitter.follow_recommendations.flows.ads +package com.ExTwitter.follow_recommendations.flows.ads -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.EnrichedCandidateSource -import com.twitter.follow_recommendations.common.base.IdentityRanker -import com.twitter.follow_recommendations.common.base.IdentityTransform -import com.twitter.follow_recommendations.common.base.ParamPredicate -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.base.RecommendationFlow -import com.twitter.follow_recommendations.common.base.RecommendationResultsConfig -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.base.TruePredicate -import com.twitter.follow_recommendations.common.candidate_sources.promoted_accounts.PromotedAccountsCandidateSource -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.predicates.ExcludedUserIdPredicate -import com.twitter.follow_recommendations.common.transforms.tracking_token.TrackingTokenTransform -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.util.Duration +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.EnrichedCandidateSource +import com.ExTwitter.follow_recommendations.common.base.IdentityRanker +import com.ExTwitter.follow_recommendations.common.base.IdentityTransform +import com.ExTwitter.follow_recommendations.common.base.ParamPredicate +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.base.RecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.RecommendationResultsConfig +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.base.TruePredicate +import com.ExTwitter.follow_recommendations.common.candidate_sources.promoted_accounts.PromotedAccountsCandidateSource +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.predicates.ExcludedUserIdPredicate +import com.ExTwitter.follow_recommendations.common.transforms.tracking_token.TrackingTokenTransform +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowParams.scala index 010aea509..259160bc6 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.flows.ads -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +package com.ExTwitter.follow_recommendations.flows.ads +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration abstract class PromotedAccountsFlowParams[A](default: A) extends Param[A](default) { override val statName: String = "ads/" + this.getClass.getSimpleName diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowRequest.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowRequest.scala index 61afb3049..752e5136c 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowRequest.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsFlowRequest.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.flows.ads -import com.twitter.follow_recommendations.common.clients.adserver.AdRequest -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasExcludedUserIds -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params +package com.ExTwitter.follow_recommendations.flows.ads +import com.ExTwitter.follow_recommendations.common.clients.adserver.AdRequest +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasExcludedUserIds +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params case class PromotedAccountsFlowRequest( override val clientContext: ClientContext, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsUtil.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsUtil.scala index 5327911c2..c0067af18 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsUtil.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads/PromotedAccountsUtil.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.flows.ads -import com.twitter.follow_recommendations.common.candidate_sources.promoted_accounts.PromotedCandidateUser -import com.twitter.follow_recommendations.common.models.AccountProof -import com.twitter.follow_recommendations.common.models.AdMetadata -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.Reason -import com.twitter.follow_recommendations.common.models.UserCandidateSourceDetails +package com.ExTwitter.follow_recommendations.flows.ads +import com.ExTwitter.follow_recommendations.common.candidate_sources.promoted_accounts.PromotedCandidateUser +import com.ExTwitter.follow_recommendations.common.models.AccountProof +import com.ExTwitter.follow_recommendations.common.models.AdMetadata +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.Reason +import com.ExTwitter.follow_recommendations.common.models.UserCandidateSourceDetails object PromotedAccountsUtil { def toCandidateUser(promotedCandidateUser: PromotedCandidateUser): CandidateUser = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/BUILD index 886c0fe5a..166de9dda 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/BUILD @@ -8,25 +8,25 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/addressbook", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/stp", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/user_user_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/gizmoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/sgs", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/dedup", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/tracking_token", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/candidates", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/params", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/utils", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlow.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlow.scala index 30dfa0d42..f23959ac7 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlow.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlow.scala @@ -1,33 +1,33 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.EnrichedCandidateSource -import com.twitter.follow_recommendations.common.base.GatedPredicateBase -import com.twitter.follow_recommendations.common.base.ParamPredicate -import com.twitter.follow_recommendations.common.base.Predicate -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.base.RecommendationFlow -import com.twitter.follow_recommendations.common.base.RecommendationResultsConfig -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.predicates.ExcludedUserIdPredicate -import com.twitter.follow_recommendations.common.predicates.InactivePredicate -import com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate -import com.twitter.follow_recommendations.common.predicates.sgs.InvalidRelationshipPredicate -import com.twitter.follow_recommendations.common.predicates.sgs.InvalidTargetCandidateRelationshipTypesPredicate -import com.twitter.follow_recommendations.common.predicates.sgs.RecentFollowingPredicate -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightedCandidateSourceRanker -import com.twitter.follow_recommendations.common.transforms.dedup.DedupTransform -import com.twitter.follow_recommendations.common.transforms.tracking_token.TrackingTokenTransform -import com.twitter.follow_recommendations.utils.CandidateSourceHoldbackUtil -import com.twitter.follow_recommendations.utils.RecommendationFlowBaseSideEffectsUtil -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.quality_factor.BoundsWithDefault -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactor -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorConfig -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorObserver -import com.twitter.product_mixer.core.quality_factor.QualityFactorObserver +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.EnrichedCandidateSource +import com.ExTwitter.follow_recommendations.common.base.GatedPredicateBase +import com.ExTwitter.follow_recommendations.common.base.ParamPredicate +import com.ExTwitter.follow_recommendations.common.base.Predicate +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.base.RecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.RecommendationResultsConfig +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.predicates.ExcludedUserIdPredicate +import com.ExTwitter.follow_recommendations.common.predicates.InactivePredicate +import com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate +import com.ExTwitter.follow_recommendations.common.predicates.sgs.InvalidRelationshipPredicate +import com.ExTwitter.follow_recommendations.common.predicates.sgs.InvalidTargetCandidateRelationshipTypesPredicate +import com.ExTwitter.follow_recommendations.common.predicates.sgs.RecentFollowingPredicate +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightedCandidateSourceRanker +import com.ExTwitter.follow_recommendations.common.transforms.dedup.DedupTransform +import com.ExTwitter.follow_recommendations.common.transforms.tracking_token.TrackingTokenTransform +import com.ExTwitter.follow_recommendations.utils.CandidateSourceHoldbackUtil +import com.ExTwitter.follow_recommendations.utils.RecommendationFlowBaseSideEffectsUtil +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.quality_factor.BoundsWithDefault +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactor +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorConfig +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorObserver +import com.ExTwitter.product_mixer.core.quality_factor.QualityFactorObserver import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceRegistry.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceRegistry.scala index 4a6c61042..698c4ae83 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceRegistry.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceRegistry.scala @@ -1,27 +1,27 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.CandidateSourceRegistry -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource -import com.twitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.CandidateSourceRegistry +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeights.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeights.scala index 845a6ec0a..cea214d4b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeights.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeights.scala @@ -1,25 +1,25 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource -import com.twitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource -import com.twitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSource -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource -import com.twitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource +import com.ExTwitter.timelines.configapi.Params object ContentRecommenderFlowCandidateSourceWeights { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeightsParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeightsParams.scala index 462de260b..a273fd3ff 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeightsParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowCandidateSourceWeightsParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSBoundedParam object ContentRecommenderFlowCandidateSourceWeightsParams { // Social based diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFSConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFSConfig.scala index a24032c84..93a634541 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFSConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFeatureSwitchKeys.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFeatureSwitchKeys.scala index ff51dc9f6..c71221d8e 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFeatureSwitchKeys.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderFlowFeatureSwitchKeys.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow object ContentRecommenderFlowFeatureSwitchKeys { val TargetUserEligible = "content_recommender_flow_target_eligible" diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderParams.scala index 6b43325af..b54167c28 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderParams.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param abstract class ContentRecommenderParams[A](default: A) extends Param[A](default) { override val statName: String = "content_recommender/" + this.getClass.getSimpleName diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequest.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequest.scala index 5952314e5..b762cec64 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequest.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequest.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.follow_recommendations.common.models.DebugOptions -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.GeohashAndCountryCode -import com.twitter.follow_recommendations.common.models.HasDebugOptions -import com.twitter.follow_recommendations.common.models.HasDisplayLocation -import com.twitter.follow_recommendations.common.models.HasExcludedUserIds -import com.twitter.follow_recommendations.common.models.HasGeohashAndCountryCode -import com.twitter.follow_recommendations.common.models.HasInvalidRelationshipUserIds -import com.twitter.follow_recommendations.common.models.HasRecentFollowedByUserIds -import com.twitter.follow_recommendations.common.models.HasRecentFollowedUserIds -import com.twitter.follow_recommendations.common.models.HasUserState -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.follow_recommendations.common.models.DebugOptions +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.GeohashAndCountryCode +import com.ExTwitter.follow_recommendations.common.models.HasDebugOptions +import com.ExTwitter.follow_recommendations.common.models.HasDisplayLocation +import com.ExTwitter.follow_recommendations.common.models.HasExcludedUserIds +import com.ExTwitter.follow_recommendations.common.models.HasGeohashAndCountryCode +import com.ExTwitter.follow_recommendations.common.models.HasInvalidRelationshipUserIds +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedByUserIds +import com.ExTwitter.follow_recommendations.common.models.HasRecentFollowedUserIds +import com.ExTwitter.follow_recommendations.common.models.HasUserState +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params case class ContentRecommenderRequest( override val params: Params, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequestBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequestBuilder.scala index 769f9ce51..d086be6a2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequestBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow/ContentRecommenderRequestBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.flows.content_recommender_flow +package com.ExTwitter.follow_recommendations.flows.content_recommender_flow -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.geoduck.UserLocationFetcher -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.clients.user_state.UserStateClient -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueOptionalWithStats -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStatsWithin -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.stitch.Stitch +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.geoduck.UserLocationFetcher +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.clients.user_state.UserStateClient +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueOptionalWithStats +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStatsWithin +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/BUILD index 9129e17b8..7c0b121f9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/BUILD @@ -8,51 +8,51 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/salsa", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/user_user_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/deepbirdv2", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/geoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/interests_service", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/user_state", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/dismiss", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/gizmoduck", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/health", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/user_activity", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/fatigue_ranker", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/first_n_ranker", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/interleave_ranker", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/dedup", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/ranker_id", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/tracking_token", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/weighted_sampling", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/candidates", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/addressbook", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/geo", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/recent_engagement", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/salsa", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims_expansion", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/stp", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/triangular_loops", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/two_hop_random_walk", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/user_user_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/deepbirdv2", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/geoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/impression_store", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/interests_service", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/user_state", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/sources", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/dismiss", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/gizmoduck", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/health", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/sgs", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/user_activity", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/fatigue_ranker", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/first_n_ranker", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/interleave_ranker", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/ranking", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/scoring", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/weighted_candidate_source_ranker", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/dedup", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/modify_social_proof", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/ranker_id", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/tracking_token", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/weighted_sampling", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/candidates", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/params", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/logging", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/utils", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceRegistry.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceRegistry.scala index ed15d566c..e1e8aeffb 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceRegistry.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceRegistry.scala @@ -1,32 +1,32 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.CandidateSourceRegistry -import com.twitter.follow_recommendations.common.base.EnrichedCandidateSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashQualityFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RecentEngagementNonDirectFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource -import com.twitter.follow_recommendations.common.candidate_sources.salsa.RecentEngagementDirectFollowSalsaExpansionSource -import com.twitter.follow_recommendations.common.candidate_sources.sims.LinearRegressionFollow2vecNearestNeighborsStore -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.OnlineSTPSourceScorer -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource -import com.twitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.CandidateSourceRegistry +import com.ExTwitter.follow_recommendations.common.base.EnrichedCandidateSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashQualityFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RecentEngagementNonDirectFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.salsa.RecentEngagementDirectFollowSalsaExpansionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.LinearRegressionFollow2vecNearestNeighborsStore +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OnlineSTPSourceScorer +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceWeightParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceWeightParams.scala index 9492747a4..f13afde20 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceWeightParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCandidateSourceWeightParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.Param abstract class PostNuxMlCandidateSourceWeightParams[A](default: A) extends Param[A](default) { override val statName: String = "post_nux_ml/" + this.getClass.getSimpleName diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCombinedRankerBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCombinedRankerBuilder.scala index 14e982a41..3da7570bc 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCombinedRankerBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlCombinedRankerBuilder.scala @@ -1,27 +1,27 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml import com.google.inject.Inject import com.google.inject.Singleton -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.IdentityRanker -import com.twitter.follow_recommendations.common.base.IdentityTransform -import com.twitter.follow_recommendations.common.base.Ranker -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models._ -import com.twitter.follow_recommendations.common.rankers.common.RankerId -import com.twitter.follow_recommendations.common.rankers.fatigue_ranker.ImpressionBasedFatigueRanker -import com.twitter.follow_recommendations.common.rankers.first_n_ranker.FirstNRanker -import com.twitter.follow_recommendations.common.rankers.first_n_ranker.FirstNRankerParams -import com.twitter.follow_recommendations.common.rankers.interleave_ranker.InterleaveRanker -import com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking.HydrateFeaturesTransform -import com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRanker -import com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRankerParams -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightedCandidateSourceRanker -import com.twitter.follow_recommendations.configapi.candidates.HydrateCandidateParamsTransform -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.IdentityRanker +import com.ExTwitter.follow_recommendations.common.base.IdentityTransform +import com.ExTwitter.follow_recommendations.common.base.Ranker +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models._ +import com.ExTwitter.follow_recommendations.common.rankers.common.RankerId +import com.ExTwitter.follow_recommendations.common.rankers.fatigue_ranker.ImpressionBasedFatigueRanker +import com.ExTwitter.follow_recommendations.common.rankers.first_n_ranker.FirstNRanker +import com.ExTwitter.follow_recommendations.common.rankers.first_n_ranker.FirstNRankerParams +import com.ExTwitter.follow_recommendations.common.rankers.interleave_ranker.InterleaveRanker +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking.HydrateFeaturesTransform +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRanker +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRankerParams +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.WeightedCandidateSourceRanker +import com.ExTwitter.follow_recommendations.configapi.candidates.HydrateCandidateParamsTransform +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.timelines.configapi.HasParams /** * Used to build the combined ranker comprising 4 stages of ranking: diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlow.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlow.scala index 092f07100..590e06270 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlow.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlow.scala @@ -1,52 +1,52 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.EnrichedCandidateSource._ -import com.twitter.follow_recommendations.common.base._ -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.FilterReason -import com.twitter.follow_recommendations.common.predicates.dismiss.DismissedCandidatePredicate -import com.twitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate -import com.twitter.follow_recommendations.common.transforms.ranker_id.RandomRankerIdTransform -import com.twitter.follow_recommendations.common.predicates.sgs.InvalidTargetCandidateRelationshipTypesPredicate -import com.twitter.follow_recommendations.common.predicates.sgs.RecentFollowingPredicate -import com.twitter.follow_recommendations.common.predicates.CandidateParamPredicate -import com.twitter.follow_recommendations.common.predicates.CandidateSourceParamPredicate -import com.twitter.follow_recommendations.common.predicates.CuratedCompetitorListPredicate -import com.twitter.follow_recommendations.common.predicates.ExcludedUserIdPredicate -import com.twitter.follow_recommendations.common.predicates.InactivePredicate -import com.twitter.follow_recommendations.common.predicates.PreviouslyRecommendedUserIdsPredicate -import com.twitter.follow_recommendations.common.predicates.user_activity.NonNearZeroUserActivityPredicate -import com.twitter.follow_recommendations.common.transforms.dedup.DedupTransform -import com.twitter.follow_recommendations.common.transforms.modify_social_proof.ModifySocialProofTransform -import com.twitter.follow_recommendations.common.transforms.tracking_token.TrackingTokenTransform -import com.twitter.follow_recommendations.common.transforms.weighted_sampling.SamplingTransform -import com.twitter.follow_recommendations.configapi.candidates.CandidateUserParamsFactory -import com.twitter.follow_recommendations.configapi.params.GlobalParams -import com.twitter.follow_recommendations.configapi.params.GlobalParams.EnableGFSSocialProofTransform -import com.twitter.follow_recommendations.utils.CandidateSourceHoldbackUtil -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.timelines.configapi.Params -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.EnrichedCandidateSource._ +import com.ExTwitter.follow_recommendations.common.base._ +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.FilterReason +import com.ExTwitter.follow_recommendations.common.predicates.dismiss.DismissedCandidatePredicate +import com.ExTwitter.follow_recommendations.common.predicates.gizmoduck.GizmoduckPredicate +import com.ExTwitter.follow_recommendations.common.transforms.ranker_id.RandomRankerIdTransform +import com.ExTwitter.follow_recommendations.common.predicates.sgs.InvalidTargetCandidateRelationshipTypesPredicate +import com.ExTwitter.follow_recommendations.common.predicates.sgs.RecentFollowingPredicate +import com.ExTwitter.follow_recommendations.common.predicates.CandidateParamPredicate +import com.ExTwitter.follow_recommendations.common.predicates.CandidateSourceParamPredicate +import com.ExTwitter.follow_recommendations.common.predicates.CuratedCompetitorListPredicate +import com.ExTwitter.follow_recommendations.common.predicates.ExcludedUserIdPredicate +import com.ExTwitter.follow_recommendations.common.predicates.InactivePredicate +import com.ExTwitter.follow_recommendations.common.predicates.PreviouslyRecommendedUserIdsPredicate +import com.ExTwitter.follow_recommendations.common.predicates.user_activity.NonNearZeroUserActivityPredicate +import com.ExTwitter.follow_recommendations.common.transforms.dedup.DedupTransform +import com.ExTwitter.follow_recommendations.common.transforms.modify_social_proof.ModifySocialProofTransform +import com.ExTwitter.follow_recommendations.common.transforms.tracking_token.TrackingTokenTransform +import com.ExTwitter.follow_recommendations.common.transforms.weighted_sampling.SamplingTransform +import com.ExTwitter.follow_recommendations.configapi.candidates.CandidateUserParamsFactory +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.EnableGFSSocialProofTransform +import com.ExTwitter.follow_recommendations.utils.CandidateSourceHoldbackUtil +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.predicates.hss.HssPredicate -import com.twitter.follow_recommendations.common.predicates.sgs.InvalidRelationshipPredicate -import com.twitter.follow_recommendations.common.transforms.modify_social_proof.RemoveAccountProofTransform -import com.twitter.follow_recommendations.logging.FrsLogger -import com.twitter.follow_recommendations.models.RecommendationFlowData -import com.twitter.follow_recommendations.utils.RecommendationFlowBaseSideEffectsUtil -import com.twitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier -import com.twitter.product_mixer.core.quality_factor.BoundsWithDefault -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactor -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorConfig -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorObserver -import com.twitter.product_mixer.core.quality_factor.QualityFactorObserver -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.predicates.hss.HssPredicate +import com.ExTwitter.follow_recommendations.common.predicates.sgs.InvalidRelationshipPredicate +import com.ExTwitter.follow_recommendations.common.transforms.modify_social_proof.RemoveAccountProofTransform +import com.ExTwitter.follow_recommendations.logging.FrsLogger +import com.ExTwitter.follow_recommendations.models.RecommendationFlowData +import com.ExTwitter.follow_recommendations.utils.RecommendationFlowBaseSideEffectsUtil +import com.ExTwitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier +import com.ExTwitter.product_mixer.core.quality_factor.BoundsWithDefault +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactor +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorConfig +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorObserver +import com.ExTwitter.product_mixer.core.quality_factor.QualityFactorObserver +import com.ExTwitter.stitch.Stitch /** * We use this flow for all post-nux display locations that would use a machine-learning-based-ranker diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeights.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeights.scala index edb447cba..0dd655193 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeights.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeights.scala @@ -1,31 +1,31 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource -import com.twitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource -import com.twitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashQualityFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RecentEngagementNonDirectFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource -import com.twitter.follow_recommendations.common.candidate_sources.salsa.RecentEngagementDirectFollowSalsaExpansionSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims.Follow2vecNearestNeighborsStore -import com.twitter.follow_recommendations.common.candidate_sources.stp.BaseOnlineSTPSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource -import com.twitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource -import com.twitter.follow_recommendations.common.candidate_sources.two_hop_random_walk.TwoHopRandomWalkSource -import com.twitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlCandidateSourceWeightParams._ -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ForwardPhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReverseEmailBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook.ReversePhoneBookSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.crowd_search_accounts.CrowdSearchAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashQualityFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.real_graph.RealGraphOonV2Source +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RecentEngagementNonDirectFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RepeatedProfileVisitsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.salsa.RecentEngagementDirectFollowSalsaExpansionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.Follow2vecNearestNeighborsStore +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.BaseOnlineSTPSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.top_organic_follows_accounts.TopOrganicFollowsAccountsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.two_hop_random_walk.TwoHopRandomWalkSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.user_user_graph.UserUserGraphCandidateSource +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlCandidateSourceWeightParams._ +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.timelines.configapi.Params object PostNuxMlFlowCandidateSourceWeights { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeightsFeatureSwitchKeys.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeightsFeatureSwitchKeys.scala index f329cbd13..b40ea5721 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeightsFeatureSwitchKeys.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowCandidateSourceWeightsFeatureSwitchKeys.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml object PostNuxMlFlowCandidateSourceWeightsFeatureSwitchKeys { val CandidateWeightCrowdSearch = "post_nux_ml_flow_candidate_source_weights_user_crowd_search" diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFSConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFSConfig.scala index 0dd059dad..56583a2df 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFSConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFSConfig.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.NoShuffle -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.RandomShuffler -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.NoShuffle +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.RandomShuffler +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFeatureSwitchKeys.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFeatureSwitchKeys.scala index 6a44c4bbb..48b6dd8e5 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFeatureSwitchKeys.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlFlowFeatureSwitchKeys.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml object PostNuxMlFlowFeatureSwitchKeys { val UseMlRanker = "post_nux_ml_flow_use_ml_ranker" diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlParams.scala index cb5cf3648..63eed96f6 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlParams.scala @@ -1,15 +1,15 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.conversions.DurationOps._ -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.CandidateShuffler -import com.twitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.ExponentialShuffler -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.CandidateShuffler +import com.ExTwitter.follow_recommendations.common.rankers.weighted_candidate_source_ranker.ExponentialShuffler +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration abstract class PostNuxMlParams[A](default: A) extends Param[A](default) { override val statName: String = "post_nux_ml/" + this.getClass.getSimpleName diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequest.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequest.scala index 2cb112638..a497e3717 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequest.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequest.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.core_workflows.user_model.thriftscala.UserState -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models._ -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params +import com.ExTwitter.core_workflows.user_model.thriftscala.UserState +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models._ +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params case class PostNuxMlRequest( override val params: Params, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilder.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilder.scala index aeb248b7f..8036ad408 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilder.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilder.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.clients.dismiss_store.DismissStore -import com.twitter.follow_recommendations.common.clients.geoduck.UserLocationFetcher -import com.twitter.follow_recommendations.common.clients.impression_store.WtfImpressionStore -import com.twitter.follow_recommendations.common.clients.interests_service.InterestServiceClient -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.clients.user_state.UserStateClient -import com.twitter.follow_recommendations.common.predicates.dismiss.DismissedCandidatePredicateParams -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils._ -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilderParams.DismissedIdScanBudget -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilderParams.TopicIdFetchBudget -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilderParams.WTFImpressionsScanBudget -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.inject.Logging -import com.twitter.stitch.Stitch -import com.twitter.util.Time +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.clients.dismiss_store.DismissStore +import com.ExTwitter.follow_recommendations.common.clients.geoduck.UserLocationFetcher +import com.ExTwitter.follow_recommendations.common.clients.impression_store.WtfImpressionStore +import com.ExTwitter.follow_recommendations.common.clients.interests_service.InterestServiceClient +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.clients.user_state.UserStateClient +import com.ExTwitter.follow_recommendations.common.predicates.dismiss.DismissedCandidatePredicateParams +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils._ +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilderParams.DismissedIdScanBudget +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilderParams.TopicIdFetchBudget +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilderParams.WTFImpressionsScanBudget +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.inject.Logging +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilderParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilderParams.scala index da60f0382..92a70bbfb 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilderParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml/PostNuxMlRequestBuilderParams.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.flows.post_nux_ml +package com.ExTwitter.follow_recommendations.flows.post_nux_ml -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.util.Duration -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion object PostNuxMlRequestBuilderParams { case object TopicIdFetchBudget diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/BUILD index a35992e93..d13154c36 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/BUILD @@ -8,11 +8,11 @@ scala_library( "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/params", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "scribelib/marshallers/src/main/scala/com/twitter/scribelib/marshallers", + "scribelib/marshallers/src/main/scala/com/ExTwitter/scribelib/marshallers", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/FrsLogger.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/FrsLogger.scala index 8b920c556..6fbf8e1f0 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/FrsLogger.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging/FrsLogger.scala @@ -1,25 +1,25 @@ -package com.twitter.follow_recommendations.logging +package com.ExTwitter.follow_recommendations.logging -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.follow_recommendations.common.models.HasIsSoftUser -import com.twitter.follow_recommendations.configapi.params.GlobalParams -import com.twitter.follow_recommendations.logging.thriftscala.RecommendationLog -import com.twitter.follow_recommendations.models.DebugParams -import com.twitter.follow_recommendations.models.RecommendationFlowData -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.follow_recommendations.models.RecommendationResponse -import com.twitter.follow_recommendations.models.ScoringUserRequest -import com.twitter.follow_recommendations.models.ScoringUserResponse -import com.twitter.inject.annotations.Flag -import com.twitter.logging.LoggerFactory -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.scribelib.marshallers.ClientDataProvider -import com.twitter.scribelib.marshallers.ExternalRefererDataProvider -import com.twitter.scribelib.marshallers.ScribeSerialization -import com.twitter.timelines.configapi.HasParams -import com.twitter.util.Time +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.follow_recommendations.common.models.HasIsSoftUser +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams +import com.ExTwitter.follow_recommendations.logging.thriftscala.RecommendationLog +import com.ExTwitter.follow_recommendations.models.DebugParams +import com.ExTwitter.follow_recommendations.models.RecommendationFlowData +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.follow_recommendations.models.RecommendationResponse +import com.ExTwitter.follow_recommendations.models.ScoringUserRequest +import com.ExTwitter.follow_recommendations.models.ScoringUserResponse +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logging.LoggerFactory +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.scribelib.marshallers.ClientDataProvider +import com.ExTwitter.scribelib.marshallers.ExternalRefererDataProvider +import com.ExTwitter.scribelib.marshallers.ScribeSerialization +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton @@ -128,7 +128,7 @@ object FrsLogger { /** The id of the guest, which is present in logged-in or loged-out states */ override val guestId: Option[Long] = clientContext.guestId - /** The personalization id (pid) of the user, used to personalize Twitter services */ + /** The personalization id (pid) of the user, used to personalize ExTwitter services */ override val personalizationId: Option[String] = None /** The id of the individual device the user is currently using. This id will be unique for different users' devices. */ @@ -149,14 +149,14 @@ object FrsLogger { /** The user-agent header used to identify the client browser or device that the user is currently active on */ override val userAgent: Option[String] = clientContext.userAgent - /** Whether the user is accessing Twitter via a secured connection */ + /** Whether the user is accessing ExTwitter via a secured connection */ override val isSsl: Option[Boolean] = Some(true) /** The referring URL to the current page for web-based clients, if applicable */ override val referer: Option[String] = None /** - * The external site, partner, or email that lead to the current Twitter application. Returned value consists of a + * The external site, partner, or email that lead to the current ExTwitter application. Returned value consists of a * tuple including the encrypted referral data and the type of referral */ override val externalReferer: Option[ExternalRefererDataProvider] = None diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/BUILD index 597ab76c4..f77d63c30 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/BUILD @@ -3,11 +3,11 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/common", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/common", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/assembler/models", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateSourceType.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateSourceType.scala index 38215c44b..fc7270cfb 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateSourceType.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateSourceType.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models object CandidateSourceType extends Enumeration { type CandidateSourceType = Value diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateUserDebugParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateUserDebugParams.scala index a5702b2b3..11c7ebe14 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateUserDebugParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/CandidateUserDebugParams.scala @@ -1,5 +1,5 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.timelines.configapi.Params +import com.ExTwitter.timelines.configapi.Params case class CandidateUserDebugParams(paramsMap: Map[Long, Params]) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DebugParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DebugParams.scala index dee7f9b6a..9f11bddc9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DebugParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DebugParams.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.models.DebugOptions -import com.twitter.follow_recommendations.common.models.DebugOptions.fromDebugParamsThrift -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.timelines.configapi.{FeatureValue => ConfigApiFeatureValue} +import com.ExTwitter.follow_recommendations.common.models.DebugOptions +import com.ExTwitter.follow_recommendations.common.models.DebugOptions.fromDebugParamsThrift +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.timelines.configapi.{FeatureValue => ConfigApiFeatureValue} case class DebugParams( featureOverrides: Option[Map[String, ConfigApiFeatureValue]], diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DisplayContext.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DisplayContext.scala index 59f0adfd7..5956d0217 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DisplayContext.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/DisplayContext.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.models.FlowContext -import com.twitter.follow_recommendations.common.models.RecentlyEngagedUserId -import com.twitter.follow_recommendations.logging.thriftscala.OfflineDisplayContext -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.common.models.FlowContext +import com.ExTwitter.follow_recommendations.common.models.RecentlyEngagedUserId +import com.ExTwitter.follow_recommendations.logging.thriftscala.OfflineDisplayContext +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} import scala.reflect.ClassTag import scala.reflect.classTag diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/FeatureValue.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/FeatureValue.scala index 66f0afafa..7b67c59ae 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/FeatureValue.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/FeatureValue.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.timelines.configapi._ +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.timelines.configapi._ object FeatureValue { def fromThrift(thriftFeatureValue: t.FeatureValue): FeatureValue = thriftFeatureValue match { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationFlowData.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationFlowData.scala index 06b19ac46..c43d28dad 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationFlowData.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationFlowData.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.ClientContextConverter -import com.twitter.follow_recommendations.common.models.HasUserState -import com.twitter.follow_recommendations.common.utils.UserSignupUtil -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.util.Time +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.ClientContextConverter +import com.ExTwitter.follow_recommendations.common.models.HasUserState +import com.ExTwitter.follow_recommendations.common.utils.UserSignupUtil +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.util.Time case class RecommendationFlowData[Target <: HasClientContext]( request: Target, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationRequest.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationRequest.scala index fa768b536..abb8eea7e 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationRequest.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationRequest.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.models.ClientContextConverter -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.follow_recommendations.common.models.ClientContextConverter +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext case class RecommendationRequest( clientContext: ClientContext, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationResponse.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationResponse.scala index fadff377b..dcc5f600c 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationResponse.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/RecommendationResponse.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.{thriftscala => t} -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling case class RecommendationResponse(recommendations: Seq[Recommendation]) extends HasMarshalling { lazy val toThrift: t.RecommendationResponse = diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/Request.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/Request.scala index a8798bda2..7c2fbd220 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/Request.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/Request.scala @@ -1,10 +1,10 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.product_mixer.core.model.marshalling.request -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.ProductContext -import com.twitter.product_mixer.core.model.marshalling.request.{Request => ProductMixerRequest} +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.product_mixer.core.model.marshalling.request +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.ProductContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.{Request => ProductMixerRequest} case class Request( override val maxResults: Option[Int], diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserRequest.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserRequest.scala index 84d9d3ee3..91d88144e 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserRequest.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserRequest.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature -import com.twitter.follow_recommendations.common.models._ -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.timelines.configapi.HasParams -import com.twitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.common.feature_hydration.common.HasPreFetchedFeature +import com.ExTwitter.follow_recommendations.common.models._ +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.timelines.configapi.HasParams +import com.ExTwitter.timelines.configapi.Params case class ScoringUserRequest( override val clientContext: ClientContext, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserResponse.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserResponse.scala index 4611386d3..fedad2d59 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserResponse.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/ScoringUserResponse.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.models +package com.ExTwitter.follow_recommendations.models -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.logging.{thriftscala => offline} -import com.twitter.follow_recommendations.{thriftscala => t} +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.logging.{thriftscala => offline} +import com.ExTwitter.follow_recommendations.{thriftscala => t} case class ScoringUserResponse(candidates: Seq[CandidateUser]) { lazy val toThrift: t.ScoringUserResponse = diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/BUILD index 4874d636e..1f7681d52 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/BUILD @@ -3,6 +3,6 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/pipeline_failure", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/pipeline_failure", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/TimeoutPipelineFailure.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/TimeoutPipelineFailure.scala index 023b4c63e..a8ba71a55 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/TimeoutPipelineFailure.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models/failures/TimeoutPipelineFailure.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.models.failures +package com.ExTwitter.follow_recommendations.models.failures -import com.twitter.product_mixer.core.pipeline.pipeline_failure.CandidateSourceTimeout -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.CandidateSourceTimeout +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure object TimeoutPipelineFailure { def apply(candidateSourceName: String): PipelineFailure = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ABDeciderModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ABDeciderModule.scala index b75b6753e..e93d5cf99 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ABDeciderModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ABDeciderModule.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides import com.google.inject.name.Named -import com.twitter.abdecider.ABDeciderFactory -import com.twitter.abdecider.LoggingABDecider -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.inject.TwitterModule -import com.twitter.logging.LoggerFactory +import com.ExTwitter.abdecider.ABDeciderFactory +import com.ExTwitter.abdecider.LoggingABDecider +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.logging.LoggerFactory import javax.inject.Singleton -object ABDeciderModule extends TwitterModule { +object ABDeciderModule extends ExTwitterModule { @Provides @Singleton def provideABDecider( diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/BUILD index e7fb68380..0989ec72b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/BUILD @@ -10,15 +10,15 @@ scala_library( "3rdparty/jvm/org/slf4j:slf4j-api", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/constants", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/transforms/modify_social_proof", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/constants", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/transforms/modify_social_proof", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/registry", - "twml/runtime/src/main/scala/com/twitter/deepbird/runtime/prediction_engine", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/registry", + "twml/runtime/src/main/scala/com/ExTwitter/deepbird/runtime/prediction_engine", "util/util-slf4j-api/src/main/scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ConfigApiModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ConfigApiModule.scala index ef3865bf2..adf27cf88 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ConfigApiModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ConfigApiModule.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides -import com.twitter.decider.Decider -import com.twitter.follow_recommendations.configapi.ConfigBuilder -import com.twitter.inject.TwitterModule -import com.twitter.servo.decider.DeciderGateBuilder -import com.twitter.timelines.configapi.Config +import com.ExTwitter.decider.Decider +import com.ExTwitter.follow_recommendations.configapi.ConfigBuilder +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.servo.decider.DeciderGateBuilder +import com.ExTwitter.timelines.configapi.Config import javax.inject.Singleton -object ConfigApiModule extends TwitterModule { +object ConfigApiModule extends ExTwitterModule { @Provides @Singleton def providesDeciderGateBuilder(decider: Decider): DeciderGateBuilder = diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/DiffyModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/DiffyModule.scala index 4ab0e4eba..337a94007 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/DiffyModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/DiffyModule.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.inject.annotations.Flag -import com.twitter.decider.RandomRecipient -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient.MtlsThriftMuxClientSyntax -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.finatra.annotations.DarkTrafficService -import com.twitter.follow_recommendations.configapi.deciders.DeciderKey -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.inject.TwitterModule -import com.twitter.inject.thrift.filters.DarkTrafficFilter -import com.twitter.servo.decider.DeciderGateBuilder +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient.MtlsThriftMuxClientSyntax +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finatra.annotations.DarkTrafficService +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderKey +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.thrift.filters.DarkTrafficFilter +import com.ExTwitter.servo.decider.DeciderGateBuilder -object DiffyModule extends TwitterModule { +object DiffyModule extends ExTwitterModule { // diffy.dest is defined in the Follow Recommendations Service aurora file // and points to the Dark Traffic Proxy server private val destFlag = diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FeatureSwitchesModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FeatureSwitchesModule.scala index 1600344b6..80a2d64b9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FeatureSwitchesModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FeatureSwitchesModule.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides -import com.twitter.abdecider.LoggingABDecider -import com.twitter.featureswitches.v2.Feature -import com.twitter.featureswitches.v2.FeatureFilter -import com.twitter.featureswitches.v2.FeatureSwitches -import com.twitter.featureswitches.v2.builder.FeatureSwitchesBuilder -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants.PRODUCER_SIDE_FEATURE_SWITCHES -import com.twitter.inject.TwitterModule +import com.ExTwitter.abdecider.LoggingABDecider +import com.ExTwitter.featureswitches.v2.Feature +import com.ExTwitter.featureswitches.v2.FeatureFilter +import com.ExTwitter.featureswitches.v2.FeatureSwitches +import com.ExTwitter.featureswitches.v2.builder.FeatureSwitchesBuilder +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants.PRODUCER_SIDE_FEATURE_SWITCHES +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Named import javax.inject.Singleton -object FeaturesSwitchesModule extends TwitterModule { +object FeaturesSwitchesModule extends ExTwitterModule { private val DefaultConfigRepoPath = "/usr/local/config" private val FeaturesPath = "/features/onboarding/follow-recommendations-service/main" val isLocal = flag("configrepo.local", false, "Is the server running locally or in a DC") diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FlagsModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FlagsModule.scala index f8ff5ae94..6686147b5 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FlagsModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/FlagsModule.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.modules -import com.twitter.inject.TwitterModule +package com.ExTwitter.follow_recommendations.modules +import com.ExTwitter.inject.ExTwitterModule -object FlagsModule extends TwitterModule { +object FlagsModule extends ExTwitterModule { flag[Boolean]( name = "fetch_prod_promoted_accounts", help = "Whether or not to fetch production promoted accounts (true / false)" diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ProductRegistryModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ProductRegistryModule.scala index 218f3b973..1f49ed591 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ProductRegistryModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ProductRegistryModule.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules -import com.twitter.follow_recommendations.products.ProdProductRegistry -import com.twitter.follow_recommendations.products.common.ProductRegistry -import com.twitter.inject.TwitterModule +import com.ExTwitter.follow_recommendations.products.ProdProductRegistry +import com.ExTwitter.follow_recommendations.products.common.ProductRegistry +import com.ExTwitter.inject.ExTwitterModule import javax.inject.Singleton -object ProductRegistryModule extends TwitterModule { +object ProductRegistryModule extends ExTwitterModule { override protected def configure(): Unit = { bind[ProductRegistry].to[ProdProductRegistry].in[Singleton] } diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScorerModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScorerModule.scala index 035cc04bf..004b84b1b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScorerModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScorerModule.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.inject.TwitterModule -import com.twitter.relevance.ep_model.common.CommonConstants -import com.twitter.relevance.ep_model.scorer.EPScorer -import com.twitter.relevance.ep_model.scorer.EPScorerBuilder +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.relevance.ep_model.common.CommonConstants +import com.ExTwitter.relevance.ep_model.scorer.EPScorer +import com.ExTwitter.relevance.ep_model.scorer.EPScorerBuilder import java.io.File import java.io.FileOutputStream import scala.language.postfixOps -object ScorerModule extends TwitterModule { +object ScorerModule extends ExTwitterModule { private val STPScorerPath = "/quality/stp_models/20141223" private def fileFromResource(resource: String): File = { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScribeModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScribeModule.scala index 35af77c1a..e3fd8fbc9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScribeModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/ScribeModule.scala @@ -1,20 +1,20 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides import com.google.inject.Singleton import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.constants.GuiceNamedConstants -import com.twitter.inject.TwitterModule -import com.twitter.logging.BareFormatter -import com.twitter.logging.HandlerFactory -import com.twitter.logging.Level -import com.twitter.logging.LoggerFactory -import com.twitter.logging.NullHandler -import com.twitter.logging.QueueingHandler -import com.twitter.logging.ScribeHandler +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.constants.GuiceNamedConstants +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.logging.BareFormatter +import com.ExTwitter.logging.HandlerFactory +import com.ExTwitter.logging.Level +import com.ExTwitter.logging.LoggerFactory +import com.ExTwitter.logging.NullHandler +import com.ExTwitter.logging.QueueingHandler +import com.ExTwitter.logging.ScribeHandler -object ScribeModule extends TwitterModule { +object ScribeModule extends ExTwitterModule { val useProdLogger = flag( name = "scribe.use_prod_loggers", default = false, diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/TimerModule.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/TimerModule.scala index 0572e43bf..a11fa95d9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/TimerModule.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/modules/TimerModule.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.modules +package com.ExTwitter.follow_recommendations.modules import com.google.inject.Provides import com.google.inject.Singleton -import com.twitter.finagle.memcached.ZookeeperStateMonitor.DefaultTimer -import com.twitter.inject.TwitterModule -import com.twitter.util.Timer +import com.ExTwitter.finagle.memcached.ZookeeperStateMonitor.DefaultTimer +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.util.Timer -object TimerModule extends TwitterModule { +object TimerModule extends ExTwitterModule { @Provides @Singleton def providesTimer: Timer = DefaultTimer diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/BUILD index 5840c0f2f..eab414441 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/BUILD @@ -6,11 +6,11 @@ scala_library( "3rdparty/jvm/org/slf4j:slf4j-api", "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/explore_tab", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/home_timeline", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/home_timeline_tweet_recs", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/sidebar", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/ProdProductRegistry.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/ProdProductRegistry.scala index 9a0dbb995..1a6367d22 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/ProdProductRegistry.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/ProdProductRegistry.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.products +package com.ExTwitter.follow_recommendations.products -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.products.common.ProductRegistry -import com.twitter.follow_recommendations.products.explore_tab.ExploreTabProduct -import com.twitter.follow_recommendations.products.home_timeline.HomeTimelineProduct -import com.twitter.follow_recommendations.products.home_timeline_tweet_recs.HomeTimelineTweetRecsProduct -import com.twitter.follow_recommendations.products.sidebar.SidebarProduct +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.products.common.ProductRegistry +import com.ExTwitter.follow_recommendations.products.explore_tab.ExploreTabProduct +import com.ExTwitter.follow_recommendations.products.home_timeline.HomeTimelineProduct +import com.ExTwitter.follow_recommendations.products.home_timeline_tweet_recs.HomeTimelineTweetRecsProduct +import com.ExTwitter.follow_recommendations.products.sidebar.SidebarProduct import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/BUILD index 4b32816e4..75efa08f9 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/BUILD @@ -4,9 +4,9 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Exceptions.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Exceptions.scala index c00d8c407..b319d8b02 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Exceptions.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Exceptions.scala @@ -1,4 +1,4 @@ -package com.twitter.follow_recommendations.products.common +package com.ExTwitter.follow_recommendations.products.common abstract class ProductException(message: String) extends Exception(message) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Product.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Product.scala index 28c348204..542502a41 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Product.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/Product.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.products.common +package com.ExTwitter.follow_recommendations.products.common -import com.twitter.follow_recommendations.assembler.models.Layout -import com.twitter.follow_recommendations.common.base.BaseRecommendationFlow -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.product_mixer.core.model.marshalling.request.{Product => ProductMixerProduct} -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.assembler.models.Layout +import com.ExTwitter.follow_recommendations.common.base.BaseRecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.product_mixer.core.model.marshalling.request.{Product => ProductMixerProduct} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Params trait Product { diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/ProductRegistry.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/ProductRegistry.scala index fbe486536..5e2aa8a25 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/ProductRegistry.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common/ProductRegistry.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.products.common +package com.ExTwitter.follow_recommendations.products.common -import com.twitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation trait ProductRegistry { def products: Seq[Product] diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/BUILD index 2f9412612..0c6e4e354 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/BUILD @@ -5,10 +5,10 @@ scala_library( dependencies = [ "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/blenders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/ads", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/post_nux_ml", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/explore_tab/configapi", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/ExploreTabProduct.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/ExploreTabProduct.scala index a49fccb45..56222148d 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/ExploreTabProduct.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/ExploreTabProduct.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.products.explore_tab +package com.ExTwitter.follow_recommendations.products.explore_tab -import com.twitter.follow_recommendations.common.base.BaseRecommendationFlow -import com.twitter.follow_recommendations.common.base.IdentityTransform -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlow -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilder -import com.twitter.follow_recommendations.products.common.Product -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.follow_recommendations.products.explore_tab.configapi.ExploreTabParams -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.BaseRecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.IdentityTransform +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlow +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilder +import com.ExTwitter.follow_recommendations.products.common.Product +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.follow_recommendations.products.explore_tab.configapi.ExploreTabParams +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/BUILD index 3bb732e35..36cbd8e82 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/BUILD @@ -4,6 +4,6 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabFSConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabFSConfig.scala index 092252aca..fe15cc0c2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabFSConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabFSConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.follow_recommendations.products.explore_tab.configapi +package com.ExTwitter.follow_recommendations.products.explore_tab.configapi -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.follow_recommendations.products.explore_tab.configapi.ExploreTabParams._ -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.follow_recommendations.products.explore_tab.configapi.ExploreTabParams._ +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabParams.scala index b9d9d3b87..483a893ad 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/explore_tab/configapi/ExploreTabParams.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.products.explore_tab.configapi +package com.ExTwitter.follow_recommendations.products.explore_tab.configapi -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.FSParam object ExploreTabParams { object EnableProduct extends Param[Boolean](false) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/BUILD index 4b0586ff7..550eba4be 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/BUILD @@ -5,10 +5,10 @@ scala_library( dependencies = [ "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/blenders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/ads", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/post_nux_ml", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/home_timeline/configapi", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HTLProductMixer.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HTLProductMixer.scala index a2051c150..0f6606e12 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HTLProductMixer.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HTLProductMixer.scala @@ -1,7 +1,7 @@ -package com.twitter.follow_recommendations.products.home_timeline +package com.ExTwitter.follow_recommendations.products.home_timeline -import com.twitter.product_mixer.core.model.common.identifier.ProductIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product case object HTLProductMixer extends Product { override val identifier: ProductIdentifier = ProductIdentifier("HomeTimeline") diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineProduct.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineProduct.scala index 590aab182..a545586b6 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineProduct.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineProduct.scala @@ -1,31 +1,31 @@ -package com.twitter.follow_recommendations.products.home_timeline +package com.ExTwitter.follow_recommendations.products.home_timeline -import com.twitter.follow_recommendations.assembler.models.ActionConfig -import com.twitter.follow_recommendations.assembler.models.FollowedByUsersProof -import com.twitter.follow_recommendations.assembler.models.FooterConfig -import com.twitter.follow_recommendations.assembler.models.GeoContextProof -import com.twitter.follow_recommendations.assembler.models.HeaderConfig -import com.twitter.follow_recommendations.assembler.models.Layout -import com.twitter.follow_recommendations.assembler.models.TitleConfig -import com.twitter.follow_recommendations.assembler.models.UserListLayout -import com.twitter.follow_recommendations.assembler.models.UserListOptions -import com.twitter.follow_recommendations.common.base.BaseRecommendationFlow -import com.twitter.follow_recommendations.common.base.IdentityTransform -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.flows.ads.PromotedAccountsFlow -import com.twitter.follow_recommendations.flows.ads.PromotedAccountsFlowRequest -import com.twitter.follow_recommendations.blenders.PromotedAccountsBlender -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlow -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilder -import com.twitter.follow_recommendations.products.common.Product -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.follow_recommendations.products.home_timeline.configapi.HomeTimelineParams._ -import com.twitter.inject.Injector -import com.twitter.product_mixer.core.model.marshalling.request -import com.twitter.product_mixer.core.product.guice.ProductScope -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.assembler.models.ActionConfig +import com.ExTwitter.follow_recommendations.assembler.models.FollowedByUsersProof +import com.ExTwitter.follow_recommendations.assembler.models.FooterConfig +import com.ExTwitter.follow_recommendations.assembler.models.GeoContextProof +import com.ExTwitter.follow_recommendations.assembler.models.HeaderConfig +import com.ExTwitter.follow_recommendations.assembler.models.Layout +import com.ExTwitter.follow_recommendations.assembler.models.TitleConfig +import com.ExTwitter.follow_recommendations.assembler.models.UserListLayout +import com.ExTwitter.follow_recommendations.assembler.models.UserListOptions +import com.ExTwitter.follow_recommendations.common.base.BaseRecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.IdentityTransform +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.flows.ads.PromotedAccountsFlow +import com.ExTwitter.follow_recommendations.flows.ads.PromotedAccountsFlowRequest +import com.ExTwitter.follow_recommendations.blenders.PromotedAccountsBlender +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlow +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilder +import com.ExTwitter.follow_recommendations.products.common.Product +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.follow_recommendations.products.home_timeline.configapi.HomeTimelineParams._ +import com.ExTwitter.inject.Injector +import com.ExTwitter.product_mixer.core.model.marshalling.request +import com.ExTwitter.product_mixer.core.product.guice.ProductScope +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton @@ -87,7 +87,7 @@ class HomeTimelineProduct @Inject() ( )), footer = Some( FooterConfig( - Some(ActionConfig(homeTimelineStrings.whoToFollowModuleFooter, "http://twitter.com")))) + Some(ActionConfig(homeTimelineStrings.whoToFollowModuleFooter, "http://ExTwitter.com")))) ) } } diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineStrings.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineStrings.scala index 75819555e..76690ffa2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineStrings.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/HomeTimelineStrings.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.products.home_timeline +package com.ExTwitter.follow_recommendations.products.home_timeline -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.ExternalStringRegistry -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.ExternalStringRegistry +import com.ExTwitter.stringcenter.client.core.ExternalString import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/BUILD index 3bb732e35..36cbd8e82 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/BUILD @@ -4,6 +4,6 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/common", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineFSConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineFSConfig.scala index 15e97b3a5..d55fa23c3 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineFSConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineFSConfig.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.products.home_timeline.configapi +package com.ExTwitter.follow_recommendations.products.home_timeline.configapi -import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig -import com.twitter.follow_recommendations.products.home_timeline.configapi.HomeTimelineParams._ -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSName -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.configapi.common.FeatureSwitchConfig +import com.ExTwitter.follow_recommendations.products.home_timeline.configapi.HomeTimelineParams._ +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSName +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineParams.scala index 65ab5ae23..b813841cf 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline/configapi/HomeTimelineParams.scala @@ -1,12 +1,12 @@ -package com.twitter.follow_recommendations.products.home_timeline.configapi +package com.ExTwitter.follow_recommendations.products.home_timeline.configapi -import com.twitter.conversions.DurationOps._ -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object HomeTimelineParams { object EnableProduct extends Param[Boolean](false) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/BUILD index 140cc928d..d283bbc7b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/BUILD @@ -5,9 +5,9 @@ scala_library( dependencies = [ "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/content_recommender_flow", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/blenders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/content_recommender_flow", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/home_timeline_tweet_recs/configapi", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/HomeTimelineTweetRecsProduct.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/HomeTimelineTweetRecsProduct.scala index a5586f296..07b608b87 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/HomeTimelineTweetRecsProduct.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/HomeTimelineTweetRecsProduct.scala @@ -1,16 +1,16 @@ -package com.twitter.follow_recommendations.products.home_timeline_tweet_recs +package com.ExTwitter.follow_recommendations.products.home_timeline_tweet_recs -import com.twitter.follow_recommendations.common.base.BaseRecommendationFlow -import com.twitter.follow_recommendations.common.base.IdentityTransform -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.follow_recommendations.flows.content_recommender_flow.ContentRecommenderFlow -import com.twitter.follow_recommendations.flows.content_recommender_flow.ContentRecommenderRequestBuilder -import com.twitter.follow_recommendations.products.common.Product -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.follow_recommendations.products.home_timeline_tweet_recs.configapi.HomeTimelineTweetRecsParams._ -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.BaseRecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.IdentityTransform +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.follow_recommendations.flows.content_recommender_flow.ContentRecommenderFlow +import com.ExTwitter.follow_recommendations.flows.content_recommender_flow.ContentRecommenderRequestBuilder +import com.ExTwitter.follow_recommendations.products.common.Product +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.follow_recommendations.products.home_timeline_tweet_recs.configapi.HomeTimelineTweetRecsParams._ +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/BUILD index 9be8d9647..b5ffb33cf 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/BUILD @@ -5,6 +5,6 @@ scala_library( dependencies = [ "configapi/configapi-core", "configapi/configapi-decider", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/HomeTimelineTweetRecsParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/HomeTimelineTweetRecsParams.scala index 319a51847..553bfe869 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/HomeTimelineTweetRecsParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/home_timeline_tweet_recs/configapi/HomeTimelineTweetRecsParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.products.home_timeline_tweet_recs.configapi +package com.ExTwitter.follow_recommendations.products.home_timeline_tweet_recs.configapi -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.Param object HomeTimelineTweetRecsParams { object EnableProduct extends Param[Boolean](false) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/BUILD index f469a4748..a6e423da8 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/BUILD @@ -5,10 +5,10 @@ scala_library( dependencies = [ "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/blenders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/ads", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/flows/post_nux_ml", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/common", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/configapi", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/blenders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/ads", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/flows/post_nux_ml", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/common", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products/sidebar/configapi", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/SidebarProduct.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/SidebarProduct.scala index 29f788011..b4f3654b5 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/SidebarProduct.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/SidebarProduct.scala @@ -1,19 +1,19 @@ -package com.twitter.follow_recommendations.products.sidebar +package com.ExTwitter.follow_recommendations.products.sidebar -import com.twitter.follow_recommendations.common.base.BaseRecommendationFlow -import com.twitter.follow_recommendations.common.base.IdentityTransform -import com.twitter.follow_recommendations.common.base.Transform -import com.twitter.follow_recommendations.flows.ads.PromotedAccountsFlow -import com.twitter.follow_recommendations.flows.ads.PromotedAccountsFlowRequest -import com.twitter.follow_recommendations.blenders.PromotedAccountsBlender -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlow -import com.twitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilder -import com.twitter.follow_recommendations.products.common.Product -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.follow_recommendations.products.sidebar.configapi.SidebarParams -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.BaseRecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.IdentityTransform +import com.ExTwitter.follow_recommendations.common.base.Transform +import com.ExTwitter.follow_recommendations.flows.ads.PromotedAccountsFlow +import com.ExTwitter.follow_recommendations.flows.ads.PromotedAccountsFlowRequest +import com.ExTwitter.follow_recommendations.blenders.PromotedAccountsBlender +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlFlow +import com.ExTwitter.follow_recommendations.flows.post_nux_ml.PostNuxMlRequestBuilder +import com.ExTwitter.follow_recommendations.products.common.Product +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.follow_recommendations.products.sidebar.configapi.SidebarParams +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/configapi/SidebarParams.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/configapi/SidebarParams.scala index bbd026495..c66347add 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/configapi/SidebarParams.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products/sidebar/configapi/SidebarParams.scala @@ -1,6 +1,6 @@ -package com.twitter.follow_recommendations.products.sidebar.configapi +package com.ExTwitter.follow_recommendations.products.sidebar.configapi -import com.twitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.Param object SidebarParams { object EnableProduct extends Param[Boolean](false) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/BUILD index fe29c22de..d9a68aad6 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/BUILD @@ -6,27 +6,27 @@ scala_library( "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-server/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/real_graph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/clients/impression_store", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/predicates/sgs", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/ranking", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/rankers/ml_ranker/scoring", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/utils", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/assembler/models", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/deciders", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/logging", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/products", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/crowd_search_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/real_graph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/recent_engagement", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/stp", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/top_organic_follows_accounts", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/clients/impression_store", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/sources", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/predicates/sgs", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/ranking", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/rankers/ml_ranker/scoring", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/utils", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/assembler/models", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/deciders", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/logging", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/products", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/registry", - "twitter-server/server/src/main/scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/registry", + "ExTwitter-server/server/src/main/scala", "util/util-app/src/main/scala", "util/util-core:scala", "util/util-slf4j-api/src/main/scala", diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala index 7567fe9ce..48c1aa25b 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala @@ -1,21 +1,21 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.finagle.thrift.ClientId -import com.twitter.finatra.thrift.routing.ThriftWarmup -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService.GetRecommendations -import com.twitter.follow_recommendations.thriftscala.ClientContext -import com.twitter.follow_recommendations.thriftscala.DebugParams -import com.twitter.follow_recommendations.thriftscala.DisplayContext -import com.twitter.follow_recommendations.thriftscala.DisplayLocation -import com.twitter.follow_recommendations.thriftscala.Profile -import com.twitter.follow_recommendations.thriftscala.RecommendationRequest -import com.twitter.inject.Logging -import com.twitter.inject.utils.Handler -import com.twitter.scrooge.Request -import com.twitter.scrooge.Response -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finatra.thrift.routing.ThriftWarmup +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService.GetRecommendations +import com.ExTwitter.follow_recommendations.thriftscala.ClientContext +import com.ExTwitter.follow_recommendations.thriftscala.DebugParams +import com.ExTwitter.follow_recommendations.thriftscala.DisplayContext +import com.ExTwitter.follow_recommendations.thriftscala.DisplayLocation +import com.ExTwitter.follow_recommendations.thriftscala.Profile +import com.ExTwitter.follow_recommendations.thriftscala.RecommendationRequest +import com.ExTwitter.inject.Logging +import com.ExTwitter.inject.utils.Handler +import com.ExTwitter.scrooge.Request +import com.ExTwitter.scrooge.Response +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductMixerRecommendationService.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductMixerRecommendationService.scala index daff9040d..4d6d09fa2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductMixerRecommendationService.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductMixerRecommendationService.scala @@ -1,22 +1,22 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.stats.StatsReceiver import javax.inject.Inject import javax.inject.Singleton -import com.twitter.timelines.configapi.Params -import com.twitter.follow_recommendations.common.utils.DisplayLocationProductConverterUtil -import com.twitter.follow_recommendations.configapi.deciders.DeciderParams -import com.twitter.follow_recommendations.logging.FrsLogger -import com.twitter.follow_recommendations.models.{DebugParams => FrsDebugParams} -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.follow_recommendations.models.RecommendationResponse -import com.twitter.follow_recommendations.models.Request -import com.twitter.product_mixer.core.model.marshalling.request.{ +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.common.utils.DisplayLocationProductConverterUtil +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderParams +import com.ExTwitter.follow_recommendations.logging.FrsLogger +import com.ExTwitter.follow_recommendations.models.{DebugParams => FrsDebugParams} +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.follow_recommendations.models.RecommendationResponse +import com.ExTwitter.follow_recommendations.models.Request +import com.ExTwitter.product_mixer.core.model.marshalling.request.{ DebugParams => ProductMixerDebugParams } -import com.twitter.product_mixer.core.product.registry.ProductPipelineRegistry -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineRequest -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.product.registry.ProductPipelineRegistry +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineRequest +import com.ExTwitter.stitch.Stitch @Singleton class ProductMixerRecommendationService @Inject() ( diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelector.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelector.scala index 1c949f03d..810bdd2bb 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelector.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelector.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.common.models.DebugOptions -import com.twitter.follow_recommendations.models.DebugParams -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.follow_recommendations.models.RecommendationResponse -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Params +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.common.models.DebugOptions +import com.ExTwitter.follow_recommendations.models.DebugParams +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.follow_recommendations.models.RecommendationResponse +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton import scala.util.Random diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelectorConfig.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelectorConfig.scala index a1cac3316..1921c2c6e 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelectorConfig.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductPipelineSelectorConfig.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.follow_recommendations.common.models.DisplayLocation -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param +import com.ExTwitter.follow_recommendations.common.models.DisplayLocation +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param import javax.inject.Singleton @Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductRecommenderService.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductRecommenderService.scala index 967790a08..16280880f 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductRecommenderService.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/ProductRecommenderService.scala @@ -1,14 +1,14 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil -import com.twitter.follow_recommendations.common.models.Recommendation -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.follow_recommendations.products.common.ProductRegistry -import com.twitter.follow_recommendations.products.common.ProductRequest -import com.twitter.stitch.Stitch -import com.twitter.follow_recommendations.configapi.params.GlobalParams.EnableWhoToFollowProducts -import com.twitter.timelines.configapi.Params +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil +import com.ExTwitter.follow_recommendations.common.models.Recommendation +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.follow_recommendations.products.common.ProductRegistry +import com.ExTwitter.follow_recommendations.products.common.ProductRequest +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams.EnableWhoToFollowProducts +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/RecommendationsService.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/RecommendationsService.scala index e4bc1e3c0..42ac52fc5 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/RecommendationsService.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/RecommendationsService.scala @@ -1,11 +1,11 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.follow_recommendations.configapi.deciders.DeciderParams -import com.twitter.follow_recommendations.logging.FrsLogger -import com.twitter.follow_recommendations.models.RecommendationRequest -import com.twitter.follow_recommendations.models.RecommendationResponse -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Params +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderParams +import com.ExTwitter.follow_recommendations.logging.FrsLogger +import com.ExTwitter.follow_recommendations.models.RecommendationRequest +import com.ExTwitter.follow_recommendations.models.RecommendationResponse +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/UserScoringService.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/UserScoringService.scala index b3a8c6664..de185ce73 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/UserScoringService.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/UserScoringService.scala @@ -1,18 +1,18 @@ -package com.twitter.follow_recommendations.services +package com.ExTwitter.follow_recommendations.services -import com.twitter.finagle.stats.Counter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.follow_recommendations.common.base.StatsUtil.profileStitchSeqResults -import com.twitter.follow_recommendations.common.clients.impression_store.WtfImpressionStore -import com.twitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient -import com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking.HydrateFeaturesTransform -import com.twitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRanker -import com.twitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats -import com.twitter.follow_recommendations.configapi.deciders.DeciderParams -import com.twitter.follow_recommendations.logging.FrsLogger -import com.twitter.follow_recommendations.models.ScoringUserRequest -import com.twitter.follow_recommendations.models.ScoringUserResponse -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.Counter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.follow_recommendations.common.base.StatsUtil.profileStitchSeqResults +import com.ExTwitter.follow_recommendations.common.clients.impression_store.WtfImpressionStore +import com.ExTwitter.follow_recommendations.common.clients.socialgraph.SocialGraphClient +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking.HydrateFeaturesTransform +import com.ExTwitter.follow_recommendations.common.rankers.ml_ranker.ranking.MlRanker +import com.ExTwitter.follow_recommendations.common.utils.RescueWithStatsUtils.rescueWithStats +import com.ExTwitter.follow_recommendations.configapi.deciders.DeciderParams +import com.ExTwitter.follow_recommendations.logging.FrsLogger +import com.ExTwitter.follow_recommendations.models.ScoringUserRequest +import com.ExTwitter.follow_recommendations.models.ScoringUserResponse +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/BUILD index 8b2c2d041..bc410bee2 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/BUILD @@ -3,12 +3,12 @@ scala_library( compiler_option_sets = ["fatal_warnings"], tags = ["bazel-compatible"], dependencies = [ - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift:controller", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/exceptions", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/filters", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/modules", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/response", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/routing", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift:controller", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/exceptions", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/filters", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/modules", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/response", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/routing", ], ) diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/UnknownExceptionMapper.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/UnknownExceptionMapper.scala index f3a09a6d7..51adfa099 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/UnknownExceptionMapper.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/exceptions/UnknownExceptionMapper.scala @@ -1,8 +1,8 @@ -package com.twitter.follow_recommendations.service.exceptions +package com.ExTwitter.follow_recommendations.service.exceptions -import com.twitter.finatra.thrift.exceptions.ExceptionMapper -import com.twitter.inject.Logging -import com.twitter.util.Future +import com.ExTwitter.finatra.thrift.exceptions.ExceptionMapper +import com.ExTwitter.inject.Logging +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/BUILD b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/BUILD index e92976ad8..d0323404a 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/BUILD +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/BUILD @@ -7,21 +7,21 @@ scala_library( "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-server/src/main/scala", "finatra/inject/inject-thrift-client", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/base", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/addressbook", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/recent_engagement", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/sims_expansion", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/socialgraph", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/stp", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/triangular_loops", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/two_hop_random_walk", - "follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/feature_hydration/sources", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/params", - "follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/models", - "twitter-server/server/src/main/scala", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/base", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/addressbook", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/geo", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/ppmi_locale_follow", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/recent_engagement", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/sims_expansion", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/socialgraph", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/stp", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/triangular_loops", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/candidate_sources/two_hop_random_walk", + "follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/feature_hydration/sources", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/configapi/params", + "follow-recommendations-service/server/src/main/scala/com/ExTwitter/follow_recommendations/models", + "ExTwitter-server/server/src/main/scala", "util/util-app/src/main/scala", "util/util-core:scala", "util/util-slf4j-api/src/main/scala", diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/CandidateSourceHoldbackUtil.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/CandidateSourceHoldbackUtil.scala index 60a28f1a8..98e1c9905 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/CandidateSourceHoldbackUtil.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/CandidateSourceHoldbackUtil.scala @@ -1,29 +1,29 @@ -package com.twitter.follow_recommendations.utils +package com.ExTwitter.follow_recommendations.utils -import com.twitter.follow_recommendations.common.candidate_sources.addressbook._ -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeoSource -import com.twitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource -import com.twitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.recent_engagement.RecentEngagementNonDirectFollowSource -import com.twitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentStrongEngagementDirectFollowSimilarUsersSource -import com.twitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.MutualFollowStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.BaseOnlineSTPSource -import com.twitter.follow_recommendations.common.candidate_sources.stp.SocialProofEnforcedOfflineStrongTiePredictionSource -import com.twitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource -import com.twitter.follow_recommendations.common.candidate_sources.two_hop_random_walk.TwoHopRandomWalkSource -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.follow_recommendations.configapi.params.GlobalParams -import com.twitter.follow_recommendations.models.CandidateSourceType -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.timelines.configapi.HasParams +import com.ExTwitter.follow_recommendations.common.candidate_sources.addressbook._ +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountrySource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopCountryBackFillSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeoSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.geo.PopGeohashSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.ppmi_locale_follow.PPMILocaleFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.recent_engagement.RecentEngagementNonDirectFollowSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims.SwitchingSimsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentEngagementSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentFollowingSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.sims_expansion.RecentStrongEngagementDirectFollowSimilarUsersSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.socialgraph.RecentFollowingRecentFollowingExpansionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.MutualFollowStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.OfflineStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.BaseOnlineSTPSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.stp.SocialProofEnforcedOfflineStrongTiePredictionSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.triangular_loops.TriangularLoopsSource +import com.ExTwitter.follow_recommendations.common.candidate_sources.two_hop_random_walk.TwoHopRandomWalkSource +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.follow_recommendations.configapi.params.GlobalParams +import com.ExTwitter.follow_recommendations.models.CandidateSourceType +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.timelines.configapi.HasParams trait CandidateSourceHoldbackUtil { import CandidateSourceHoldbackUtil._ diff --git a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/RecommendationFlowBaseSideEffectsUtil.scala b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/RecommendationFlowBaseSideEffectsUtil.scala index 9304fb398..68efe5496 100644 --- a/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/RecommendationFlowBaseSideEffectsUtil.scala +++ b/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/utils/RecommendationFlowBaseSideEffectsUtil.scala @@ -1,13 +1,13 @@ -package com.twitter.follow_recommendations.utils +package com.ExTwitter.follow_recommendations.utils -import com.twitter.follow_recommendations.common.base.RecommendationFlow -import com.twitter.follow_recommendations.common.base.SideEffectsUtil -import com.twitter.follow_recommendations.common.models.CandidateUser -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasClientContext -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.common.base.RecommendationFlow +import com.ExTwitter.follow_recommendations.common.base.SideEffectsUtil +import com.ExTwitter.follow_recommendations.common.models.CandidateUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasClientContext +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch trait RecommendationFlowBaseSideEffectsUtil[Target <: HasClientContext, Candidate <: CandidateUser] extends SideEffectsUtil[Target, Candidate] { diff --git a/follow-recommendations-service/thrift/src/main/thrift/BUILD b/follow-recommendations-service/thrift/src/main/thrift/BUILD index e5cbd19cf..41a900c9f 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/BUILD +++ b/follow-recommendations-service/thrift/src/main/thrift/BUILD @@ -6,10 +6,10 @@ create_thrift_libraries( dependency_roots = [ "finatra-internal/thrift/src/main/thrift", "follow-recommendations-service/thrift/src/main/thrift/logging:thrift", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift", - "src/thrift/com/twitter/ads/adserver:adserver_common", - "src/thrift/com/twitter/ml/api:data", - "src/thrift/com/twitter/suggests/controller_data", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common", + "src/thrift/com/ExTwitter/ml/api:data", + "src/thrift/com/ExTwitter/suggests/controller_data", ], generate_languages = [ "java", diff --git a/follow-recommendations-service/thrift/src/main/thrift/assembler.thrift b/follow-recommendations-service/thrift/src/main/thrift/assembler.thrift index eb782d0fe..55035ebec 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/assembler.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/assembler.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations struct Header { 1: required Title title diff --git a/follow-recommendations-service/thrift/src/main/thrift/client_context.thrift b/follow-recommendations-service/thrift/src/main/thrift/client_context.thrift index adbdc407a..63ecb9473 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/client_context.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/client_context.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations // Caller/Client level specific context (e.g, user id/guest id/app id). struct ClientContext { diff --git a/follow-recommendations-service/thrift/src/main/thrift/debug.thrift b/follow-recommendations-service/thrift/src/main/thrift/debug.thrift index a41c59114..1a645910a 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/debug.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/debug.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendation +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendation // These are broken into their own union // because we can have features that are diff --git a/follow-recommendations-service/thrift/src/main/thrift/display_context.thrift b/follow-recommendations-service/thrift/src/main/thrift/display_context.thrift index cfd613b71..3a2f776e1 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/display_context.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/display_context.thrift @@ -1,9 +1,9 @@ include "flows.thrift" include "recently_engaged_user_id.thrift" -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations struct Profile { 1: required i64 profileId(personalDataType='UserId') diff --git a/follow-recommendations-service/thrift/src/main/thrift/display_location.thrift b/follow-recommendations-service/thrift/src/main/thrift/display_location.thrift index d94b9842e..5cc375ef2 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/display_location.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/display_location.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations enum DisplayLocation { SIDEBAR = 0 @@ -22,7 +22,7 @@ enum DisplayLocation { * The display location should be added to the following files: * - follow-recommendations-service/thrift/src/main/thrift/display_location.thrift * - follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift - * - follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala + * - follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models/DisplayLocation.scala */ CAMPAIGN_FORM = 61 RUX_LANDING_PAGE = 62 diff --git a/follow-recommendations-service/thrift/src/main/thrift/engagementType.thrift b/follow-recommendations-service/thrift/src/main/thrift/engagementType.thrift index ef028d008..ef107befc 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/engagementType.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/engagementType.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations enum EngagementType { Click = 0 diff --git a/follow-recommendations-service/thrift/src/main/thrift/flows.thrift b/follow-recommendations-service/thrift/src/main/thrift/flows.thrift index 894ebf81e..090ad9897 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/flows.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/flows.thrift @@ -2,9 +2,9 @@ * This file defines additional thrift objects that should be specified in FRS request for context of recommendation, specifically the previous recommendations / new interactions in an interactive flow (series of follow steps). These typically are sent from OCF */ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations struct FlowRecommendation { 1: required i64 userId(personalDataType='UserId') diff --git a/follow-recommendations-service/thrift/src/main/thrift/follow-recommendations-service.thrift b/follow-recommendations-service/thrift/src/main/thrift/follow-recommendations-service.thrift index 40aadc0b6..904d9d57c 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/follow-recommendations-service.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/follow-recommendations-service.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations include "assembler.thrift" include "client_context.thrift" @@ -11,7 +11,7 @@ include "recommendations.thrift" include "recently_engaged_user_id.thrift" include "finatra-thrift/finatra_thrift_exceptions.thrift" -include "com/twitter/product_mixer/core/pipeline_execution_result.thrift" +include "com/ExTwitter/product_mixer/core/pipeline_execution_result.thrift" struct RecommendationRequest { 1: required client_context.ClientContext clientContext diff --git a/follow-recommendations-service/thrift/src/main/thrift/follow_recommendations_serving_history.thrift b/follow-recommendations-service/thrift/src/main/thrift/follow_recommendations_serving_history.thrift index 404b0ae29..207fb0474 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/follow_recommendations_serving_history.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/follow_recommendations_serving_history.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations // struct used for storing the history of computing and serving of recommendations to a user struct FollowRecommendationsServingHistory { diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/BUILD b/follow-recommendations-service/thrift/src/main/thrift/logging/BUILD index 2f769d498..0d4770a4c 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/BUILD +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/BUILD @@ -4,9 +4,9 @@ create_thrift_libraries( platform = "java8", tags = ["bazel-compatible"], dependency_roots = [ - "src/thrift/com/twitter/ads/adserver:adserver_common", - "src/thrift/com/twitter/ml/api:data", - "src/thrift/com/twitter/suggests/controller_data", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common", + "src/thrift/com/ExTwitter/ml/api:data", + "src/thrift/com/ExTwitter/suggests/controller_data", ], generate_languages = [ "java", diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/client_context.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/client_context.thrift index 2b6e454b2..733133ca7 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/client_context.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/client_context.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging // Offline equal of ClientContext struct OfflineClientContext { diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/debug.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/debug.thrift index 882dca005..2e896cfb7 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/debug.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/debug.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendation.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendation.logging // subset of DebugParams struct OfflineDebugParams { diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/display_context.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/display_context.thrift index c38850011..a20c081e9 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/display_context.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/display_context.thrift @@ -1,9 +1,9 @@ include "logging/flows.thrift" include "logging/recently_engaged_user_id.thrift" -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging // Offline equal of Profile DisplayContext struct OfflineProfile { diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift index a4dbbecd4..70900bc5e 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift @@ -1,12 +1,12 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging /** * Make sure you add the new DL to the following files and redeploy our attribution jobs * - follow-recommendations-service/thrift/src/main/thrift/display_location.thrift * - follow-recommendations-service/thrift/src/main/thrift/logging/display_location.thrift - * - follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/models/DisplayLocation.scala + * - follow-recommendations-service/common/src/main/scala/com/ExTwitter/follow_recommendations/common/models/DisplayLocation.scala */ // Offline equal of DisplayLocation diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/engagementType.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/engagementType.thrift index 75191f16f..86098b9fb 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/engagementType.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/engagementType.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging enum EngagementType { Click = 0 diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/flows.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/flows.thrift index 98551c08e..f5b61b3a1 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/flows.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/flows.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging struct OfflineFlowRecommendation { 1: required i64 userId(personalDataType='UserId') diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/logs.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/logs.thrift index 33f09cfb9..f2d442462 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/logs.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/logs.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging include "client_context.thrift" include "debug.thrift" diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/reasons.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/reasons.thrift index 6fc24d919..5900908dd 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/reasons.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/reasons.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging // Proof based on Follow relationship struct FollowProof { diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/recently_engaged_user_id.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/recently_engaged_user_id.thrift index f0af960b9..969234955 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/recently_engaged_user_id.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/recently_engaged_user_id.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging include "engagementType.thrift" diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/recommendations.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/recommendations.thrift index bf94e41b8..a18312e94 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/recommendations.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/recommendations.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging -include "com/twitter/ads/adserver/adserver_common.thrift" +include "com/ExTwitter/ads/adserver/adserver_common.thrift" include "reasons.thrift" include "tracking.thrift" include "scoring.thrift" diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/scoring.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/scoring.thrift index e1524662d..48004702b 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/scoring.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/scoring.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging -include "com/twitter/ml/api/data.thrift" +include "com/ExTwitter/ml/api/data.thrift" struct CandidateSourceDetails { 1: optional map candidateSourceScores diff --git a/follow-recommendations-service/thrift/src/main/thrift/logging/tracking.thrift b/follow-recommendations-service/thrift/src/main/thrift/logging/tracking.thrift index 067ba1a46..83220ac97 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/logging/tracking.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/logging/tracking.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.follow_recommendations.logging.thriftjava -#@namespace scala com.twitter.follow_recommendations.logging.thriftscala -#@namespace strato com.twitter.follow_recommendations.logging +namespace java com.ExTwitter.follow_recommendations.logging.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.logging.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations.logging -include "com/twitter/suggests/controller_data/controller_data.thrift" +include "com/ExTwitter/suggests/controller_data/controller_data.thrift" include "display_location.thrift" struct TrackingToken { diff --git a/follow-recommendations-service/thrift/src/main/thrift/reasons.thrift b/follow-recommendations-service/thrift/src/main/thrift/reasons.thrift index 299e88885..24a9a46aa 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/reasons.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/reasons.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations // Proof based on Follow relationship struct FollowProof { diff --git a/follow-recommendations-service/thrift/src/main/thrift/recently_engaged_user_id.thrift b/follow-recommendations-service/thrift/src/main/thrift/recently_engaged_user_id.thrift index 6a13bd31e..8b71eee5d 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/recently_engaged_user_id.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/recently_engaged_user_id.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations include "engagementType.thrift" diff --git a/follow-recommendations-service/thrift/src/main/thrift/recommendations.thrift b/follow-recommendations-service/thrift/src/main/thrift/recommendations.thrift index 1070bb11c..36b5c0f68 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/recommendations.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/recommendations.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations -include "com/twitter/ads/adserver/adserver_common.thrift" +include "com/ExTwitter/ads/adserver/adserver_common.thrift" include "debug.thrift" include "reasons.thrift" include "scoring.thrift" diff --git a/follow-recommendations-service/thrift/src/main/thrift/scoring.thrift b/follow-recommendations-service/thrift/src/main/thrift/scoring.thrift index 33111baf8..393e9c1d6 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/scoring.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/scoring.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations -include "com/twitter/ml/api/data.thrift" +include "com/ExTwitter/ml/api/data.thrift" struct CandidateSourceDetails { 1: optional map candidateSourceScores diff --git a/follow-recommendations-service/thrift/src/main/thrift/tracking.thrift b/follow-recommendations-service/thrift/src/main/thrift/tracking.thrift index 81111ead8..849a919e5 100644 --- a/follow-recommendations-service/thrift/src/main/thrift/tracking.thrift +++ b/follow-recommendations-service/thrift/src/main/thrift/tracking.thrift @@ -1,8 +1,8 @@ -namespace java com.twitter.follow_recommendations.thriftjava -#@namespace scala com.twitter.follow_recommendations.thriftscala -#@namespace strato com.twitter.follow_recommendations +namespace java com.ExTwitter.follow_recommendations.thriftjava +#@namespace scala com.ExTwitter.follow_recommendations.thriftscala +#@namespace strato com.ExTwitter.follow_recommendations -include "com/twitter/suggests/controller_data/controller_data.thrift" +include "com/ExTwitter/suggests/controller_data/controller_data.thrift" include "display_location.thrift" // struct used for tracking/attribution purposes in our offline pipelines diff --git a/graph-feature-service/BUILD.bazel b/graph-feature-service/BUILD.bazel index afad5ce5d..8b67c38cd 100644 --- a/graph-feature-service/BUILD.bazel +++ b/graph-feature-service/BUILD.bazel @@ -6,7 +6,7 @@ alias( target( name = "graph_feature_service-server_lib", dependencies = [ - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/server", ], ) @@ -18,37 +18,37 @@ alias( target( name = "graph_feature_service-worker_lib", dependencies = [ - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/worker", ], ) jvm_binary( name = "server-bin", basename = "graph_feature_service-server", - main = "com.twitter.graph_feature_service.server.Main", + main = "com.ExTwitter.graph_feature_service.server.Main", platform = "java8", tags = ["bazel-compatible"], dependencies = [ ":graph_feature_service-server", "3rdparty/jvm/ch/qos/logback:logback-classic", "finagle/finagle-zipkin-scribe/src/main/scala", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", - "twitter-server/logback-classic/src/main/scala", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", + "ExTwitter-server/logback-classic/src/main/scala", ], ) jvm_binary( name = "worker-bin", basename = "graph_feature_service-worker", - main = "com.twitter.graph_feature_service.worker.Main", + main = "com.ExTwitter.graph_feature_service.worker.Main", platform = "java8", tags = ["bazel-compatible"], dependencies = [ ":graph_feature_service-worker", "3rdparty/jvm/ch/qos/logback:logback-classic", "finagle/finagle-zipkin-scribe/src/main/scala", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", - "twitter-server/logback-classic/src/main/scala", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", + "ExTwitter-server/logback-classic/src/main/scala", ], ) diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/BUILD.bazel b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/BUILD.bazel index e6b2e92be..36362bb64 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/BUILD.bazel +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/BUILD.bazel @@ -4,5 +4,5 @@ scala_library( "bazel-compatible", "bazel-only", ], - dependencies = ["src/scala/com/twitter/storehaus_internal/util"], + dependencies = ["src/scala/com/ExTwitter/storehaus_internal/util"], ) diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/Configs.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/Configs.scala index 20647d68c..c468c55dd 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/Configs.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common/Configs.scala @@ -1,8 +1,8 @@ -package com.twitter.graph_feature_service.common +package com.ExTwitter.graph_feature_service.common -import com.twitter.conversions.DurationOps._ -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import java.nio.ByteBuffer import scala.util.hashing.MurmurHash3 diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/BUILD.bazel b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/BUILD.bazel index c20a5e04c..74881814a 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/BUILD.bazel +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/com/google/inject:guice", - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", "3rdparty/jvm/net/codingwell:scala-guice", "3rdparty/jvm/org/lz4:lz4-java", "3rdparty/jvm/org/slf4j:slf4j-api", - "discovery-common/src/main/scala/com/twitter/discovery/common/stats", + "discovery-common/src/main/scala/com/ExTwitter/discovery/common/stats", "finagle/finagle-http/src/main/scala", "finatra-internal/decider/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", @@ -18,17 +18,17 @@ scala_library( "finatra/inject/inject-server/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", "finatra/inject/inject-utils/src/main/scala", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift:controller", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/filters", - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/routing", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift:controller", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/filters", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift/routing", "graph-feature-service/src/main/resources", - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common", - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util", - "graph-feature-service/src/main/thrift/com/twitter/graph_feature_service:graph_feature_service_thrift-scala", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/store/common", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/common", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/util", + "graph-feature-service/src/main/thrift/com/ExTwitter/graph_feature_service:graph_feature_service_thrift-scala", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/store/common", "servo/request/src/main/scala", - "src/scala/com/twitter/storehaus_internal/memcache", + "src/scala/com/ExTwitter/storehaus_internal/memcache", "util/util-app/src/main/scala", "util/util-slf4j-api/src/main/scala", ], diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/Main.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/Main.scala index 5980afdf2..444ce0d7e 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/Main.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/Main.scala @@ -1,27 +1,27 @@ -package com.twitter.graph_feature_service.server +package com.ExTwitter.graph_feature_service.server import com.google.inject.Module -import com.twitter.finatra.decider.modules.DeciderModule -import com.twitter.finatra.mtls.thriftmux.Mtls -import com.twitter.finatra.thrift.ThriftServer -import com.twitter.finatra.thrift.filters.{ +import com.ExTwitter.finatra.decider.modules.DeciderModule +import com.ExTwitter.finatra.mtls.thriftmux.Mtls +import com.ExTwitter.finatra.thrift.ThriftServer +import com.ExTwitter.finatra.thrift.filters.{ AccessLoggingFilter, LoggingMDCFilter, StatsFilter, ThriftMDCFilter, TraceIdMDCFilter } -import com.twitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule -import com.twitter.finatra.thrift.routing.ThriftRouter -import com.twitter.graph_feature_service.server.controllers.ServerController -import com.twitter.graph_feature_service.server.handlers.ServerWarmupHandler -import com.twitter.graph_feature_service.server.modules.{ +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule +import com.ExTwitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.graph_feature_service.server.controllers.ServerController +import com.ExTwitter.graph_feature_service.server.handlers.ServerWarmupHandler +import com.ExTwitter.graph_feature_service.server.modules.{ GetIntersectionStoreModule, GraphFeatureServiceWorkerClientsModule, ServerFlagsModule } -import com.twitter.graph_feature_service.thriftscala -import com.twitter.inject.thrift.modules.ThriftClientIdModule +import com.ExTwitter.graph_feature_service.thriftscala +import com.ExTwitter.inject.thrift.modules.ThriftClientIdModule object Main extends ServerMain diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/controllers/ServerController.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/controllers/ServerController.scala index ca8973f05..72a1dccb3 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/controllers/ServerController.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/controllers/ServerController.scala @@ -1,15 +1,15 @@ -package com.twitter.graph_feature_service.server.controllers +package com.ExTwitter.graph_feature_service.server.controllers -import com.twitter.discovery.common.stats.DiscoveryStatsFilter -import com.twitter.finagle.Service -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.thrift.Controller -import com.twitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler.GetIntersectionRequest -import com.twitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler -import com.twitter.graph_feature_service.thriftscala -import com.twitter.graph_feature_service.thriftscala.Server.GetIntersection -import com.twitter.graph_feature_service.thriftscala.Server.GetPresetIntersection -import com.twitter.graph_feature_service.thriftscala._ +import com.ExTwitter.discovery.common.stats.DiscoveryStatsFilter +import com.ExTwitter.finagle.Service +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.thrift.Controller +import com.ExTwitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler.GetIntersectionRequest +import com.ExTwitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler +import com.ExTwitter.graph_feature_service.thriftscala +import com.ExTwitter.graph_feature_service.thriftscala.Server.GetIntersection +import com.ExTwitter.graph_feature_service.thriftscala.Server.GetPresetIntersection +import com.ExTwitter.graph_feature_service.thriftscala._ import javax.inject.Inject import javax.inject.Singleton diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerGetIntersectionHandler.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerGetIntersectionHandler.scala index 2c77c1f54..3cde61315 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerGetIntersectionHandler.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerGetIntersectionHandler.scala @@ -1,17 +1,17 @@ -package com.twitter.graph_feature_service.server.handlers +package com.ExTwitter.graph_feature_service.server.handlers -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler.GetIntersectionRequest -import com.twitter.graph_feature_service.server.stores.FeatureTypesEncoder -import com.twitter.graph_feature_service.server.stores.GetIntersectionStore.GetIntersectionQuery -import com.twitter.graph_feature_service.thriftscala.PresetFeatureTypes -import com.twitter.graph_feature_service.thriftscala._ -import com.twitter.graph_feature_service.util.FeatureTypesCalculator -import com.twitter.servo.request.RequestHandler -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future -import com.twitter.util.Memoize +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler.GetIntersectionRequest +import com.ExTwitter.graph_feature_service.server.stores.FeatureTypesEncoder +import com.ExTwitter.graph_feature_service.server.stores.GetIntersectionStore.GetIntersectionQuery +import com.ExTwitter.graph_feature_service.thriftscala.PresetFeatureTypes +import com.ExTwitter.graph_feature_service.thriftscala._ +import com.ExTwitter.graph_feature_service.util.FeatureTypesCalculator +import com.ExTwitter.servo.request.RequestHandler +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future +import com.ExTwitter.util.Memoize import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerWarmupHandler.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerWarmupHandler.scala index 3e31f2c8f..26b274d27 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerWarmupHandler.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/handlers/ServerWarmupHandler.scala @@ -1,15 +1,15 @@ -package com.twitter.graph_feature_service.server.handlers +package com.ExTwitter.graph_feature_service.server.handlers -import com.twitter.finatra.thrift.routing.ThriftWarmup -import com.twitter.graph_feature_service.thriftscala.EdgeType.FavoritedBy -import com.twitter.graph_feature_service.thriftscala.EdgeType.FollowedBy -import com.twitter.graph_feature_service.thriftscala.EdgeType.Following -import com.twitter.graph_feature_service.thriftscala.Server.GetIntersection -import com.twitter.graph_feature_service.thriftscala.FeatureType -import com.twitter.graph_feature_service.thriftscala.GfsIntersectionRequest -import com.twitter.inject.utils.Handler -import com.twitter.scrooge.Request -import com.twitter.util.logging.Logger +import com.ExTwitter.finatra.thrift.routing.ThriftWarmup +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType.FavoritedBy +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType.FollowedBy +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType.Following +import com.ExTwitter.graph_feature_service.thriftscala.Server.GetIntersection +import com.ExTwitter.graph_feature_service.thriftscala.FeatureType +import com.ExTwitter.graph_feature_service.thriftscala.GfsIntersectionRequest +import com.ExTwitter.inject.utils.Handler +import com.ExTwitter.scrooge.Request +import com.ExTwitter.util.logging.Logger import javax.inject.Inject import javax.inject.Singleton import scala.util.Random diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GetIntersectionStoreModule.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GetIntersectionStoreModule.scala index cae99b3a6..8aabc3609 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GetIntersectionStoreModule.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GetIntersectionStoreModule.scala @@ -1,28 +1,28 @@ -package com.twitter.graph_feature_service.server.modules +package com.ExTwitter.graph_feature_service.server.modules import com.google.inject.Provides -import com.twitter.bijection.scrooge.CompactScalaCodec -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.graph_feature_service.common.Configs._ -import com.twitter.graph_feature_service.server.stores.GetIntersectionStore -import com.twitter.graph_feature_service.server.stores.GetIntersectionStore.GetIntersectionQuery -import com.twitter.graph_feature_service.thriftscala.CachedIntersectionResult -import com.twitter.hermit.store.common.ObservedMemcachedReadableStore -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.memcache.MemcacheStore -import com.twitter.storehaus_internal.util.{ClientName, ZkEndPoint} -import com.twitter.util.Duration +import com.ExTwitter.bijection.scrooge.CompactScalaCodec +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.graph_feature_service.common.Configs._ +import com.ExTwitter.graph_feature_service.server.stores.GetIntersectionStore +import com.ExTwitter.graph_feature_service.server.stores.GetIntersectionStore.GetIntersectionQuery +import com.ExTwitter.graph_feature_service.thriftscala.CachedIntersectionResult +import com.ExTwitter.hermit.store.common.ObservedMemcachedReadableStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.memcache.MemcacheStore +import com.ExTwitter.storehaus_internal.util.{ClientName, ZkEndPoint} +import com.ExTwitter.util.Duration import javax.inject.{Named, Singleton} /** * Initialize the MemCache based GetIntersectionStore. * The Key of MemCache is UserId~CandidateId~FeatureTypes~IntersectionIdLimit. */ -object GetIntersectionStoreModule extends TwitterModule { +object GetIntersectionStoreModule extends ExTwitterModule { private[this] val requestTimeout: Duration = 25.millis private[this] val retries: Int = 0 diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GraphFeatureServiceWorkerClientsModule.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GraphFeatureServiceWorkerClientsModule.scala index a6f56827e..d866212d1 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GraphFeatureServiceWorkerClientsModule.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/GraphFeatureServiceWorkerClientsModule.scala @@ -1,21 +1,21 @@ -package com.twitter.graph_feature_service.server.modules +package com.ExTwitter.graph_feature_service.server.modules import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.service.RetryBudget -import com.twitter.graph_feature_service.thriftscala -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.util.{Await, Duration} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.service.RetryBudget +import com.ExTwitter.graph_feature_service.thriftscala +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.util.{Await, Duration} import javax.inject.Singleton case class GraphFeatureServiceWorkerClients( workers: Seq[thriftscala.Worker.MethodPerEndpoint]) -object GraphFeatureServiceWorkerClientsModule extends TwitterModule { +object GraphFeatureServiceWorkerClientsModule extends ExTwitterModule { private[this] val closeableGracePeriod: Duration = 1.second private[this] val requestTimeout: Duration = 25.millis diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/LZ4Injection.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/LZ4Injection.scala index 3018dcd9c..fcb8025ed 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/LZ4Injection.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/LZ4Injection.scala @@ -1,6 +1,6 @@ -package com.twitter.graph_feature_service.server.modules +package com.ExTwitter.graph_feature_service.server.modules -import com.twitter.bijection.Injection +import com.ExTwitter.bijection.Injection import scala.util.Try import net.jpountz.lz4.{LZ4CompressorWithLength, LZ4DecompressorWithLength, LZ4Factory} diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/ServerFlagModule.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/ServerFlagModule.scala index d38bfb24a..03fc988a3 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/ServerFlagModule.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/modules/ServerFlagModule.scala @@ -1,6 +1,6 @@ -package com.twitter.graph_feature_service.server.modules +package com.ExTwitter.graph_feature_service.server.modules -import com.twitter.inject.TwitterModule +import com.ExTwitter.inject.ExTwitterModule object ServerFlagNames { final val NumWorkers = "service.num_workers" @@ -15,7 +15,7 @@ object ServerFlagNames { * Initializes references to the flag values defined in the aurora.deploy file. * To check what the flag values are initialized in runtime, search FlagsModule in stdout */ -object ServerFlagsModule extends TwitterModule { +object ServerFlagsModule extends ExTwitterModule { import ServerFlagNames._ diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/FeatureTypesEncoder.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/FeatureTypesEncoder.scala index b8ad4d743..ff69a1392 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/FeatureTypesEncoder.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/FeatureTypesEncoder.scala @@ -1,7 +1,7 @@ -package com.twitter.graph_feature_service.server.stores +package com.ExTwitter.graph_feature_service.server.stores -import com.twitter.graph_feature_service.common.Configs.RandomSeed -import com.twitter.graph_feature_service.thriftscala.FeatureType +import com.ExTwitter.graph_feature_service.common.Configs.RandomSeed +import com.ExTwitter.graph_feature_service.thriftscala.FeatureType import scala.util.hashing.MurmurHash3 object FeatureTypesEncoder { diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/GetIntersectionStore.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/GetIntersectionStore.scala index 7824be511..6b34bd942 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/GetIntersectionStore.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/server/stores/GetIntersectionStore.scala @@ -1,14 +1,14 @@ -package com.twitter.graph_feature_service.server.stores +package com.ExTwitter.graph_feature_service.server.stores -import com.twitter.finagle.RequestTimeoutException -import com.twitter.finagle.stats.{Stat, StatsReceiver} -import com.twitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler.GetIntersectionRequest -import com.twitter.graph_feature_service.server.modules.GraphFeatureServiceWorkerClients -import com.twitter.graph_feature_service.server.stores.GetIntersectionStore.GetIntersectionQuery -import com.twitter.graph_feature_service.thriftscala._ -import com.twitter.inject.Logging -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.finagle.RequestTimeoutException +import com.ExTwitter.finagle.stats.{Stat, StatsReceiver} +import com.ExTwitter.graph_feature_service.server.handlers.ServerGetIntersectionHandler.GetIntersectionRequest +import com.ExTwitter.graph_feature_service.server.modules.GraphFeatureServiceWorkerClients +import com.ExTwitter.graph_feature_service.server.stores.GetIntersectionStore.GetIntersectionQuery +import com.ExTwitter.graph_feature_service.thriftscala._ +import com.ExTwitter.inject.Logging +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Singleton import scala.collection.mutable.ArrayBuffer diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/BUILD b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/BUILD index 7aa2bc51c..d06dd1226 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/BUILD +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/BUILD @@ -2,6 +2,6 @@ scala_library( platform = "java8", tags = ["bazel-compatible"], dependencies = [ - "graph-feature-service/src/main/thrift/com/twitter/graph_feature_service:graph_feature_service_thrift-scala", + "graph-feature-service/src/main/thrift/com/ExTwitter/graph_feature_service:graph_feature_service_thrift-scala", ], ) diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/FeatureTypesCalculator.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/FeatureTypesCalculator.scala index 86caad2bf..48b97f168 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/FeatureTypesCalculator.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/FeatureTypesCalculator.scala @@ -1,7 +1,7 @@ -package com.twitter.graph_feature_service.util +package com.ExTwitter.graph_feature_service.util -import com.twitter.graph_feature_service.thriftscala.EdgeType._ -import com.twitter.graph_feature_service.thriftscala.{FeatureType, PresetFeatureTypes} +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType._ +import com.ExTwitter.graph_feature_service.thriftscala.{FeatureType, PresetFeatureTypes} object FeatureTypesCalculator { diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/IntersectionValueCalculator.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/IntersectionValueCalculator.scala index 4e1376cc4..adfe86f1b 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/IntersectionValueCalculator.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util/IntersectionValueCalculator.scala @@ -1,6 +1,6 @@ -package com.twitter.graph_feature_service.util +package com.ExTwitter.graph_feature_service.util -import com.twitter.graph_feature_service.thriftscala.{ +import com.ExTwitter.graph_feature_service.thriftscala.{ FeatureType, IntersectionValue, WorkerIntersectionValue diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/BUILD.bazel b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/BUILD.bazel index 7f0d975d7..c0c70fb50 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/BUILD.bazel +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/BUILD.bazel @@ -6,7 +6,7 @@ scala_library( "3rdparty/jvm/com/google/inject:guice", "3rdparty/jvm/javax/inject:javax.inject", "3rdparty/jvm/net/codingwell:scala-guice", - "discovery-common/src/main/scala/com/twitter/discovery/common/stats", + "discovery-common/src/main/scala/com/ExTwitter/discovery/common/stats", "finatra-internal/decider/src/main/scala", "finatra-internal/gizmoduck/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", @@ -17,13 +17,13 @@ scala_library( "finatra/inject/inject-utils/src/main/scala", "frigate/frigate-common:constdb_util", "graph-feature-service/src/main/resources", - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common", - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/util", - "graph-feature-service/src/main/thrift/com/twitter/graph_feature_service:graph_feature_service_thrift-scala", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/store/common", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/common", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/util", + "graph-feature-service/src/main/thrift/com/ExTwitter/graph_feature_service:graph_feature_service_thrift-scala", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/store/common", "servo/request/src/main/scala", - "twitter-server-internal/src/main/scala", - "twitter-server/server/src/main/scala", + "ExTwitter-server-internal/src/main/scala", + "ExTwitter-server/server/src/main/scala", "util/util-app/src/main/scala", "util/util-slf4j-api/src/main/scala", ], diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/Main.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/Main.scala index 10e8ec0e2..0febbd457 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/Main.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/Main.scala @@ -1,28 +1,28 @@ -package com.twitter.graph_feature_service.worker +package com.ExTwitter.graph_feature_service.worker import com.google.inject.Module -import com.twitter.finatra.decider.modules.DeciderModule -import com.twitter.finatra.gizmoduck.modules.TimerModule -import com.twitter.finatra.mtls.thriftmux.Mtls -import com.twitter.finatra.thrift.ThriftServer -import com.twitter.finatra.thrift.filters.{ +import com.ExTwitter.finatra.decider.modules.DeciderModule +import com.ExTwitter.finatra.gizmoduck.modules.TimerModule +import com.ExTwitter.finatra.mtls.thriftmux.Mtls +import com.ExTwitter.finatra.thrift.ThriftServer +import com.ExTwitter.finatra.thrift.filters.{ LoggingMDCFilter, StatsFilter, ThriftMDCFilter, TraceIdMDCFilter } -import com.twitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule -import com.twitter.finatra.thrift.routing.ThriftRouter -import com.twitter.graph_feature_service.thriftscala -import com.twitter.graph_feature_service.worker.controllers.WorkerController -import com.twitter.graph_feature_service.worker.handlers.WorkerWarmupHandler -import com.twitter.graph_feature_service.worker.modules.{ +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule +import com.ExTwitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.graph_feature_service.thriftscala +import com.ExTwitter.graph_feature_service.worker.controllers.WorkerController +import com.ExTwitter.graph_feature_service.worker.handlers.WorkerWarmupHandler +import com.ExTwitter.graph_feature_service.worker.modules.{ GraphContainerProviderModule, WorkerFlagModule } -import com.twitter.graph_feature_service.worker.util.GraphContainer -import com.twitter.inject.thrift.modules.ThriftClientIdModule -import com.twitter.util.Await +import com.ExTwitter.graph_feature_service.worker.util.GraphContainer +import com.ExTwitter.inject.thrift.modules.ThriftClientIdModule +import com.ExTwitter.util.Await object Main extends WorkerMain diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/controllers/WorkerController.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/controllers/WorkerController.scala index f30305b2c..ab8878c31 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/controllers/WorkerController.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/controllers/WorkerController.scala @@ -1,13 +1,13 @@ -package com.twitter.graph_feature_service.worker.controllers +package com.ExTwitter.graph_feature_service.worker.controllers -import com.twitter.discovery.common.stats.DiscoveryStatsFilter -import com.twitter.finagle.Service -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.thrift.Controller -import com.twitter.graph_feature_service.thriftscala -import com.twitter.graph_feature_service.thriftscala.Worker.GetIntersection -import com.twitter.graph_feature_service.thriftscala._ -import com.twitter.graph_feature_service.worker.handlers._ +import com.ExTwitter.discovery.common.stats.DiscoveryStatsFilter +import com.ExTwitter.finagle.Service +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.thrift.Controller +import com.ExTwitter.graph_feature_service.thriftscala +import com.ExTwitter.graph_feature_service.thriftscala.Worker.GetIntersection +import com.ExTwitter.graph_feature_service.thriftscala._ +import com.ExTwitter.graph_feature_service.worker.handlers._ import javax.inject.Inject import javax.inject.Singleton diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerGetIntersectionHandler.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerGetIntersectionHandler.scala index 7acf8b1d3..67fa4f1b0 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerGetIntersectionHandler.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerGetIntersectionHandler.scala @@ -1,16 +1,16 @@ -package com.twitter.graph_feature_service.worker.handlers +package com.ExTwitter.graph_feature_service.worker.handlers -import com.twitter.finagle.stats.{Stat, StatsReceiver} -import com.twitter.graph_feature_service.thriftscala.{ +import com.ExTwitter.finagle.stats.{Stat, StatsReceiver} +import com.ExTwitter.graph_feature_service.thriftscala.{ WorkerIntersectionRequest, WorkerIntersectionResponse, WorkerIntersectionValue } -import com.twitter.graph_feature_service.util.{FeatureTypesCalculator, IntersectionValueCalculator} -import com.twitter.graph_feature_service.util.IntersectionValueCalculator._ -import com.twitter.graph_feature_service.worker.util.GraphContainer -import com.twitter.servo.request.RequestHandler -import com.twitter.util.Future +import com.ExTwitter.graph_feature_service.util.{FeatureTypesCalculator, IntersectionValueCalculator} +import com.ExTwitter.graph_feature_service.util.IntersectionValueCalculator._ +import com.ExTwitter.graph_feature_service.worker.util.GraphContainer +import com.ExTwitter.servo.request.RequestHandler +import com.ExTwitter.util.Future import java.nio.ByteBuffer import javax.inject.{Inject, Singleton} diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerWarmupHandler.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerWarmupHandler.scala index d89d215c1..1497dae35 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerWarmupHandler.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/handlers/WorkerWarmupHandler.scala @@ -1,8 +1,8 @@ -package com.twitter.graph_feature_service.worker.handlers +package com.ExTwitter.graph_feature_service.worker.handlers -import com.twitter.finatra.thrift.routing.ThriftWarmup -import com.twitter.inject.Logging -import com.twitter.inject.utils.Handler +import com.ExTwitter.finatra.thrift.routing.ThriftWarmup +import com.ExTwitter.inject.Logging +import com.ExTwitter.inject.utils.Handler import javax.inject.{Inject, Singleton} @Singleton diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/GraphContainerProviderModule.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/GraphContainerProviderModule.scala index 6c66922d4..177c83731 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/GraphContainerProviderModule.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/GraphContainerProviderModule.scala @@ -1,22 +1,22 @@ -package com.twitter.graph_feature_service.worker.modules +package com.ExTwitter.graph_feature_service.worker.modules import com.google.inject.Provides -import com.twitter.concurrent.AsyncSemaphore -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.graph_feature_service.common.Configs._ -import com.twitter.graph_feature_service.worker.util -import com.twitter.graph_feature_service.worker.util.AutoUpdatingGraph -import com.twitter.graph_feature_service.worker.util.FollowedByPartialValueGraph -import com.twitter.graph_feature_service.worker.util.FollowingPartialValueGraph -import com.twitter.graph_feature_service.worker.util.GraphContainer -import com.twitter.graph_feature_service.worker.util.GraphKey -import com.twitter.graph_feature_service.worker.util.MutualFollowPartialValueGraph -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.util.Timer +import com.ExTwitter.concurrent.AsyncSemaphore +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.graph_feature_service.common.Configs._ +import com.ExTwitter.graph_feature_service.worker.util +import com.ExTwitter.graph_feature_service.worker.util.AutoUpdatingGraph +import com.ExTwitter.graph_feature_service.worker.util.FollowedByPartialValueGraph +import com.ExTwitter.graph_feature_service.worker.util.FollowingPartialValueGraph +import com.ExTwitter.graph_feature_service.worker.util.GraphContainer +import com.ExTwitter.graph_feature_service.worker.util.GraphKey +import com.ExTwitter.graph_feature_service.worker.util.MutualFollowPartialValueGraph +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.util.Timer import javax.inject.Singleton -object GraphContainerProviderModule extends TwitterModule { +object GraphContainerProviderModule extends ExTwitterModule { @Provides @Singleton diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/WorkerFlagModule.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/WorkerFlagModule.scala index 2188d169b..169863bdd 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/WorkerFlagModule.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/modules/WorkerFlagModule.scala @@ -1,6 +1,6 @@ -package com.twitter.graph_feature_service.worker.modules +package com.ExTwitter.graph_feature_service.worker.modules -import com.twitter.inject.TwitterModule +import com.ExTwitter.inject.ExTwitterModule object WorkerFlagNames { final val ServiceRole = "service.role" @@ -15,7 +15,7 @@ object WorkerFlagNames { * Initializes references to the flag values defined in the aurora.deploy file. * To check what the flag values are initialized in runtime, search FlagsModule in stdout */ -object WorkerFlagModule extends TwitterModule { +object WorkerFlagModule extends ExTwitterModule { import WorkerFlagNames._ diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/AutoUpdatingGraph.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/AutoUpdatingGraph.scala index e5c1c367f..a551e9f5b 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/AutoUpdatingGraph.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/AutoUpdatingGraph.scala @@ -1,16 +1,16 @@ -package com.twitter.graph_feature_service.worker.util +package com.ExTwitter.graph_feature_service.worker.util -import com.twitter.bijection.Injection -import com.twitter.concurrent.AsyncSemaphore -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.frigate.common.constdb_util.{ +import com.ExTwitter.bijection.Injection +import com.ExTwitter.concurrent.AsyncSemaphore +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.frigate.common.constdb_util.{ AutoUpdatingReadOnlyGraph, ConstDBImporter, Injections } -import com.twitter.graph_feature_service.common.Configs -import com.twitter.util.{Duration, Future, Timer} +import com.ExTwitter.graph_feature_service.common.Configs +import com.ExTwitter.util.{Duration, Future, Timer} import java.nio.ByteBuffer /** diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GfsQuery.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GfsQuery.scala index e5d822e2b..0ec7d40c0 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GfsQuery.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GfsQuery.scala @@ -1,6 +1,6 @@ -package com.twitter.graph_feature_service.worker.util +package com.ExTwitter.graph_feature_service.worker.util -import com.twitter.graph_feature_service.thriftscala.EdgeType +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType sealed trait GfsQuery { def edgeType: EdgeType diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphContainer.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphContainer.scala index 9ac626bb9..e554d0862 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphContainer.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphContainer.scala @@ -1,7 +1,7 @@ -package com.twitter.graph_feature_service.worker.util +package com.ExTwitter.graph_feature_service.worker.util -import com.twitter.graph_feature_service.thriftscala.EdgeType -import com.twitter.util.Future +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType +import com.ExTwitter.util.Future case class GraphContainer( graphs: Map[GraphKey, AutoUpdatingGraph]) { diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphKey.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphKey.scala index 2b174eb8c..3eaea8238 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphKey.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphKey.scala @@ -1,7 +1,7 @@ -package com.twitter.graph_feature_service.worker.util +package com.ExTwitter.graph_feature_service.worker.util -import com.twitter.graph_feature_service.thriftscala.EdgeType -import com.twitter.graph_feature_service.thriftscala.EdgeType._ +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType +import com.ExTwitter.graph_feature_service.thriftscala.EdgeType._ sealed trait GraphKey { diff --git a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphType.scala b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphType.scala index a2a7634af..67c360949 100644 --- a/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphType.scala +++ b/graph-feature-service/src/main/scala/com/twitter/graph_feature_service/worker/util/GraphType.scala @@ -1,4 +1,4 @@ -package com.twitter.graph_feature_service.worker.util +package com.ExTwitter.graph_feature_service.worker.util //These classes are to help the GraphContainer choose the right data structure to answer queries sealed trait GraphType diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/BUILD.bazel b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/BUILD.bazel index 66e27fb7f..f40968c24 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/BUILD.bazel +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/BUILD.bazel @@ -5,21 +5,21 @@ scala_library( "bazel-only", ], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:core", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/constdb_util", - "graph-feature-service/src/main/scala/com/twitter/graph_feature_service/common", - "src/scala/com/twitter/interaction_graph/scio/agg_all:interaction_graph_history_aggregated_edge_snapshot-scala", - "src/scala/com/twitter/interaction_graph/scio/ml/scores:real_graph_in_scores-scala", - "src/scala/com/twitter/pluck/source/user_audits:user_audit_final-scala", - "src/scala/com/twitter/scalding_internal/dalv2", - "src/scala/com/twitter/scalding_internal/job", - "src/scala/com/twitter/scalding_internal/job/analytics_batch", + "3rdparty/jvm/com/ExTwitter/bijection:core", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/constdb_util", + "graph-feature-service/src/main/scala/com/ExTwitter/graph_feature_service/common", + "src/scala/com/ExTwitter/interaction_graph/scio/agg_all:interaction_graph_history_aggregated_edge_snapshot-scala", + "src/scala/com/ExTwitter/interaction_graph/scio/ml/scores:real_graph_in_scores-scala", + "src/scala/com/ExTwitter/pluck/source/user_audits:user_audit_final-scala", + "src/scala/com/ExTwitter/scalding_internal/dalv2", + "src/scala/com/ExTwitter/scalding_internal/job", + "src/scala/com/ExTwitter/scalding_internal/job/analytics_batch", ], ) scalding_job( name = "graph_feature_service_adhoc_job", - main = "com.twitter.graph_feature_service.scalding.GraphFeatureServiceAdhocApp", + main = "com.ExTwitter.graph_feature_service.scalding.GraphFeatureServiceAdhocApp", args = [ "--date 2022-10-24", ], @@ -29,7 +29,7 @@ scalding_job( ("hadoop.submitter.jvm.total-memory", "5120m"), ("submitter.tier", "preemptible"), ], - contact = "recos-platform-alerts@twitter.com", + contact = "recos-platform-alerts@ExTwitter.com", hadoop_cluster = "atla-proc", hadoop_properties = [("mapreduce.job.hdfs-servers", "/atla/proc/user/cassowary")], platform = "java8", @@ -44,14 +44,14 @@ scalding_job( scalding_job( name = "graph_feature_service_daily_job", - main = "com.twitter.graph_feature_service.scalding.GraphFeatureServiceScheduledApp", + main = "com.ExTwitter.graph_feature_service.scalding.GraphFeatureServiceScheduledApp", config = [ ("hadoop.map.jvm.total-memory", "3072m"), ("hadoop.reduce.jvm.total-memory", "3072m"), ("hadoop.submitter.jvm.total-memory", "5120m"), ("submitter.tier", "preemptible"), ], - contact = "recos-platform-alerts@twitter.com", + contact = "recos-platform-alerts@ExTwitter.com", cron = "01,31 * * * *", hadoop_cluster = "atla-proc", hadoop_properties = [("mapreduce.job.hdfs-servers", "/atla/proc/user/cassowary")], diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/EdgeFeature.scala b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/EdgeFeature.scala index 76005c3ae..147fc5818 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/EdgeFeature.scala +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/EdgeFeature.scala @@ -1,4 +1,4 @@ -package com.twitter.graph_feature_service.scalding +package com.ExTwitter.graph_feature_service.scalding case class EdgeFeature( realGraphScore: Float, diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceAppBase.scala b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceAppBase.scala index 993dc5a39..22dfb6422 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceAppBase.scala +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceAppBase.scala @@ -1,14 +1,14 @@ -package com.twitter.graph_feature_service.scalding +package com.ExTwitter.graph_feature_service.scalding -import com.twitter.scalding._ -import com.twitter.scalding_internal.job.TwitterExecutionApp -import com.twitter.scalding_internal.job.analytics_batch.{ +import com.ExTwitter.scalding._ +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp +import com.ExTwitter.scalding_internal.job.analytics_batch.{ AnalyticsBatchExecution, AnalyticsBatchExecutionArgs, BatchDescription, BatchFirstTime, BatchIncrement, - TwitterScheduledExecutionApp + ExTwitterScheduledExecutionApp } import java.util.TimeZone @@ -49,7 +49,7 @@ trait GraphFeatureServiceBaseJob { /** * Trait that wraps things about adhoc jobs. */ -trait GraphFeatureServiceAdhocBaseApp extends TwitterExecutionApp with GraphFeatureServiceBaseJob { +trait GraphFeatureServiceAdhocBaseApp extends ExTwitterExecutionApp with GraphFeatureServiceBaseJob { override def job: Execution[Unit] = Execution.withId { implicit uniqueId => Execution.getArgs.flatMap { args: Args => implicit val dateRange: DateRange = DateRange.parse(args.list("date"))(timeZone, dateParser) @@ -64,7 +64,7 @@ trait GraphFeatureServiceAdhocBaseApp extends TwitterExecutionApp with GraphFeat * A new daily app only needs to declare the starting date. */ trait GraphFeatureServiceScheduledBaseApp - extends TwitterScheduledExecutionApp + extends ExTwitterScheduledExecutionApp with GraphFeatureServiceBaseJob { def firstTime: RichDate // for example: RichDate("2018-02-21") diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceApps.scala b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceApps.scala index e6086526b..5fba75bab 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceApps.scala +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceApps.scala @@ -1,9 +1,9 @@ -package com.twitter.graph_feature_service.scalding +package com.ExTwitter.graph_feature_service.scalding -import com.twitter.scalding.DateRange -import com.twitter.scalding.Execution -import com.twitter.scalding.RichDate -import com.twitter.scalding.UniqueID +import com.ExTwitter.scalding.DateRange +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding.RichDate +import com.ExTwitter.scalding.UniqueID import java.util.Calendar import java.util.TimeZone import sun.util.calendar.BaseCalendar @@ -11,7 +11,7 @@ import sun.util.calendar.BaseCalendar /** * To launch an adhoc run: * - scalding remote run --target graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding:graph_feature_service_adhoc_job + scalding remote run --target graph-feature-service/src/main/scalding/com/ExTwitter/graph_feature_service/scalding:graph_feature_service_adhoc_job */ object GraphFeatureServiceAdhocApp extends GraphFeatureServiceMainJob @@ -19,7 +19,7 @@ object GraphFeatureServiceAdhocApp /** * To schedule the job, upload the workflows config (only required for the first time and subsequent config changes): - * scalding workflow upload --jobs graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding:graph_feature_service_daily_job --autoplay --build-cron-schedule "20 23 1 * *" + * scalding workflow upload --jobs graph-feature-service/src/main/scalding/com/ExTwitter/graph_feature_service/scalding:graph_feature_service_daily_job --autoplay --build-cron-schedule "20 23 1 * *" * You can then build from the UI by clicking "Build" and pasting in your remote branch, or leave it empty if you're redeploying from master. * The workflows config above should automatically trigger once each month. */ diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceMainJob.scala b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceMainJob.scala index f0446285c..1e2de5da6 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceMainJob.scala +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/GraphFeatureServiceMainJob.scala @@ -1,26 +1,26 @@ -package com.twitter.graph_feature_service.scalding +package com.ExTwitter.graph_feature_service.scalding -import com.twitter.bijection.Injection -import com.twitter.frigate.common.constdb_util.Injections -import com.twitter.frigate.common.constdb_util.ScaldingUtil -import com.twitter.graph_feature_service.common.Configs -import com.twitter.graph_feature_service.common.Configs._ -import com.twitter.interaction_graph.scio.agg_all.InteractionGraphHistoryAggregatedEdgeSnapshotScalaDataset -import com.twitter.interaction_graph.scio.ml.scores.RealGraphInScoresScalaDataset -import com.twitter.interaction_graph.thriftscala.FeatureName -import com.twitter.interaction_graph.thriftscala.{EdgeFeature => TEdgeFeature} -import com.twitter.pluck.source.user_audits.UserAuditFinalScalaDataset -import com.twitter.scalding.DateRange -import com.twitter.scalding.Days -import com.twitter.scalding.Execution -import com.twitter.scalding.Stat -import com.twitter.scalding.UniqueID -import com.twitter.scalding.typed.TypedPipe -import com.twitter.scalding_internal.dalv2.DAL -import com.twitter.scalding_internal.dalv2.remote_access.AllowCrossClusterSameDC -import com.twitter.scalding_internal.multiformat.format.keyval.KeyVal -import com.twitter.util.Time -import com.twitter.wtf.candidate.thriftscala.CandidateSeq +import com.ExTwitter.bijection.Injection +import com.ExTwitter.frigate.common.constdb_util.Injections +import com.ExTwitter.frigate.common.constdb_util.ScaldingUtil +import com.ExTwitter.graph_feature_service.common.Configs +import com.ExTwitter.graph_feature_service.common.Configs._ +import com.ExTwitter.interaction_graph.scio.agg_all.InteractionGraphHistoryAggregatedEdgeSnapshotScalaDataset +import com.ExTwitter.interaction_graph.scio.ml.scores.RealGraphInScoresScalaDataset +import com.ExTwitter.interaction_graph.thriftscala.FeatureName +import com.ExTwitter.interaction_graph.thriftscala.{EdgeFeature => TEdgeFeature} +import com.ExTwitter.pluck.source.user_audits.UserAuditFinalScalaDataset +import com.ExTwitter.scalding.DateRange +import com.ExTwitter.scalding.Days +import com.ExTwitter.scalding.Execution +import com.ExTwitter.scalding.Stat +import com.ExTwitter.scalding.UniqueID +import com.ExTwitter.scalding.typed.TypedPipe +import com.ExTwitter.scalding_internal.dalv2.DAL +import com.ExTwitter.scalding_internal.dalv2.remote_access.AllowCrossClusterSameDC +import com.ExTwitter.scalding_internal.multiformat.format.keyval.KeyVal +import com.ExTwitter.util.Time +import com.ExTwitter.wtf.candidate.thriftscala.CandidateSeq import java.nio.ByteBuffer import java.util.TimeZone diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/BUILD.bazel b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/BUILD.bazel index 6378b0a83..8eba931ec 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/BUILD.bazel +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/BUILD.bazel @@ -2,20 +2,20 @@ scala_library( platform = "java8", tags = ["bazel-only"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:core", - "3rdparty/jvm/com/twitter/bijection:scrooge", - "frigate/frigate-common/src/main/scala/com/twitter/frigate/common/constdb_util", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api:api-base", - "src/scala/com/twitter/scalding_internal/job", - "src/scala/com/twitter/scalding_internal/job/analytics_batch", - "src/thrift/com/twitter/ml/api:data-java", + "3rdparty/jvm/com/ExTwitter/bijection:core", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "frigate/frigate-common/src/main/scala/com/ExTwitter/frigate/common/constdb_util", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/scalding_internal/job", + "src/scala/com/ExTwitter/scalding_internal/job/analytics_batch", + "src/thrift/com/ExTwitter/ml/api:data-java", ], ) hadoop_binary( name = "gfs_random_request-adhoc", - main = "com.twitter.graph_feature_service.scalding.adhoc.RandomRequestGenerationApp", + main = "com.ExTwitter.graph_feature_service.scalding.adhoc.RandomRequestGenerationApp", platform = "java8", runtime_platform = "java8", tags = [ diff --git a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/RandomRequestGenerationApp.scala b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/RandomRequestGenerationApp.scala index 7163a96ac..06ec62529 100644 --- a/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/RandomRequestGenerationApp.scala +++ b/graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc/RandomRequestGenerationApp.scala @@ -1,11 +1,11 @@ -package com.twitter.graph_feature_service.scalding.adhoc +package com.ExTwitter.graph_feature_service.scalding.adhoc -import com.twitter.bijection.Injection -import com.twitter.frigate.common.constdb_util.Injections -import com.twitter.ml.api.Feature.Discrete -import com.twitter.ml.api.{DailySuffixFeatureSource, DataSetPipe, RichDataRecord} -import com.twitter.scalding._ -import com.twitter.scalding_internal.job.TwitterExecutionApp +import com.ExTwitter.bijection.Injection +import com.ExTwitter.frigate.common.constdb_util.Injections +import com.ExTwitter.ml.api.Feature.Discrete +import com.ExTwitter.ml.api.{DailySuffixFeatureSource, DataSetPipe, RichDataRecord} +import com.ExTwitter.scalding._ +import com.ExTwitter.scalding_internal.job.ExTwitterExecutionApp import java.nio.ByteBuffer import java.util.TimeZone @@ -54,15 +54,15 @@ object RandomRequestGenerationJob { } /** - * ./bazel bundle graph-feature-service/src/main/scalding/com/twitter/graph_feature_service/scalding/adhoc:all + * ./bazel bundle graph-feature-service/src/main/scalding/com/ExTwitter/graph_feature_service/scalding/adhoc:all * * oscar hdfs --screen --user cassowary --tee gfs_log --bundle gfs_random_request-adhoc \ - --tool com.twitter.graph_feature_service.scalding.adhoc.RandomRequestGenerationApp \ + --tool com.ExTwitter.graph_feature_service.scalding.adhoc.RandomRequestGenerationApp \ -- --date 2018-08-11 \ --input /atla/proc2/user/timelines/processed/suggests/recap/data_records \ --output /user/cassowary/gfs/adhoc/timeline_data */ -object RandomRequestGenerationApp extends TwitterExecutionApp { +object RandomRequestGenerationApp extends ExTwitterExecutionApp { import RandomRequestGenerationJob._ override def job: Execution[Unit] = Execution.withId { implicit uniqueId => Execution.getArgs.flatMap { args: Args => diff --git a/graph-feature-service/src/main/thrift/com/twitter/graph_feature_service/graph_feature_service.thrift b/graph-feature-service/src/main/thrift/com/twitter/graph_feature_service/graph_feature_service.thrift index 232f8488d..e81445056 100644 --- a/graph-feature-service/src/main/thrift/com/twitter/graph_feature_service/graph_feature_service.thrift +++ b/graph-feature-service/src/main/thrift/com/twitter/graph_feature_service/graph_feature_service.thrift @@ -1,6 +1,6 @@ -namespace java com.twitter.graph_feature_service.thriftjava -#@namespace scala com.twitter.graph_feature_service.thriftscala -#@namespace strato com.twitter.graph_feature_service.thriftscala +namespace java com.ExTwitter.graph_feature_service.thriftjava +#@namespace scala com.ExTwitter.graph_feature_service.thriftscala +#@namespace strato com.ExTwitter.graph_feature_service.thriftscala // edge type to differentiate different types of graphs (we can also add a lot of other types of edges) enum EdgeType { diff --git a/home-mixer/BUILD.bazel b/home-mixer/BUILD.bazel index ab7b358e7..b36fa205b 100644 --- a/home-mixer/BUILD.bazel +++ b/home-mixer/BUILD.bazel @@ -1,17 +1,17 @@ jvm_binary( name = "bin", basename = "home-mixer", - main = "com.twitter.home_mixer.HomeMixerServerMain", + main = "com.ExTwitter.home_mixer.HomeMixerServerMain", runtime_platform = "java11", tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/ch/qos/logback:logback-classic", "finagle/finagle-zipkin-scribe/src/main/scala", "finatra/inject/inject-logback/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer", - "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback", - "twitter-server-internal/src/main/scala", - "twitter-server/logback-classic/src/main/scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer", + "loglens/loglens-logback/src/main/scala/com/ExTwitter/loglens/logback", + "ExTwitter-server-internal/src/main/scala", + "ExTwitter-server/logback-classic/src/main/scala", ], ) diff --git a/home-mixer/README.md b/home-mixer/README.md index 20861d7a0..23675fb59 100644 --- a/home-mixer/README.md +++ b/home-mixer/README.md @@ -1,7 +1,7 @@ Home Mixer ========== -Home Mixer is the main service used to construct and serve Twitter's Home Timelines. It currently +Home Mixer is the main service used to construct and serve ExTwitter's Home Timelines. It currently powers: - For you - best Tweets from people you follow + recommended out-of-network content - Following - reverse chronological Tweets from people you follow diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/BUILD.bazel index 103e079da..d30728e47 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/BUILD.bazel @@ -13,37 +13,37 @@ scala_library( "finagle/finagle-thriftmux/src/main/scala", "finatra-internal/mtls-http/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", - "finatra/http-core/src/main/java/com/twitter/finatra/http", - "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations", + "finatra/http-core/src/main/java/com/ExTwitter/finatra/http", + "finatra/inject/inject-app/src/main/java/com/ExTwitter/inject/annotations", "finatra/inject/inject-app/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-server/src/main/scala", "finatra/inject/inject-utils/src/main/scala", "home-mixer/server/src/main/resources", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/controller", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/federated", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/module", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/controller", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/federated", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/module", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/controllers", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module/stringcenter", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "src/thrift/com/twitter/timelines/render:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/controllers", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module/stringcenter", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", "strato/config/columns/auth-context:auth-context-strato-client", "strato/config/columns/gizmoduck:gizmoduck-strato-client", - "strato/src/main/scala/com/twitter/strato/fed", - "strato/src/main/scala/com/twitter/strato/fed/server", + "strato/src/main/scala/com/ExTwitter/strato/fed", + "strato/src/main/scala/com/ExTwitter/strato/fed/server", "stringcenter/client", "stringcenter/client/src/main/java", - "stringcenter/client/src/main/scala/com/twitter/stringcenter/client", - "thrift-web-forms/src/main/scala/com/twitter/thriftwebforms/view", - "timelines/src/main/scala/com/twitter/timelines/config", - "timelines/src/main/scala/com/twitter/timelines/features/app", - "twitter-server-internal", - "twitter-server/server/src/main/scala", + "stringcenter/client/src/main/scala/com/ExTwitter/stringcenter/client", + "thrift-web-forms/src/main/scala/com/ExTwitter/thriftwebforms/view", + "timelines/src/main/scala/com/ExTwitter/timelines/config", + "timelines/src/main/scala/com/ExTwitter/timelines/features/app", + "ExTwitter-server-internal", + "ExTwitter-server/server/src/main/scala", "util/util-app/src/main/scala", "util/util-core:scala", "util/util-slf4j-api/src/main/scala", diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerHttpServerWarmupHandler.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerHttpServerWarmupHandler.scala index e27133b23..550b4d40e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerHttpServerWarmupHandler.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerHttpServerWarmupHandler.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer +package com.ExTwitter.home_mixer -import com.twitter.finatra.http.routing.HttpWarmup -import com.twitter.finatra.httpclient.RequestBuilder._ -import com.twitter.util.logging.Logging -import com.twitter.inject.utils.Handler -import com.twitter.util.Try +import com.ExTwitter.finatra.http.routing.HttpWarmup +import com.ExTwitter.finatra.httpclient.RequestBuilder._ +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.inject.utils.Handler +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerServer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerServer.scala index e635c7a68..3046c6468 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerServer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerServer.scala @@ -1,41 +1,41 @@ -package com.twitter.home_mixer +package com.ExTwitter.home_mixer import com.google.inject.Module -import com.twitter.finagle.Filter -import com.twitter.finatra.annotations.DarkTrafficFilterType -import com.twitter.finatra.http.HttpServer -import com.twitter.finatra.http.routing.HttpRouter -import com.twitter.finatra.mtls.http.{Mtls => HttpMtls} -import com.twitter.finatra.mtls.thriftmux.Mtls -import com.twitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule -import com.twitter.finatra.thrift.ThriftServer -import com.twitter.finatra.thrift.filters._ -import com.twitter.finatra.thrift.routing.ThriftRouter -import com.twitter.home_mixer.controller.HomeThriftController -import com.twitter.home_mixer.federated.HomeMixerColumn -import com.twitter.home_mixer.module._ -import com.twitter.home_mixer.param.GlobalParamConfigModule -import com.twitter.home_mixer.product.HomeMixerProductModule -import com.twitter.home_mixer.{thriftscala => st} -import com.twitter.product_mixer.component_library.module.AccountRecommendationsMixerModule -import com.twitter.product_mixer.component_library.module.DarkTrafficFilterModule -import com.twitter.product_mixer.component_library.module.EarlybirdModule -import com.twitter.product_mixer.component_library.module.ExploreRankerClientModule -import com.twitter.product_mixer.component_library.module.GizmoduckClientModule -import com.twitter.product_mixer.component_library.module.OnboardingTaskServiceModule -import com.twitter.product_mixer.component_library.module.SocialGraphServiceModule -import com.twitter.product_mixer.component_library.module.TimelineRankerClientModule -import com.twitter.product_mixer.component_library.module.TimelineScorerClientModule -import com.twitter.product_mixer.component_library.module.TimelineServiceClientModule -import com.twitter.product_mixer.component_library.module.TweetImpressionStoreModule -import com.twitter.product_mixer.component_library.module.TweetMixerClientModule -import com.twitter.product_mixer.component_library.module.UserSessionStoreModule -import com.twitter.product_mixer.core.controllers.ProductMixerController -import com.twitter.product_mixer.core.module.LoggingThrowableExceptionMapper -import com.twitter.product_mixer.core.module.ProductMixerModule -import com.twitter.product_mixer.core.module.stringcenter.ProductScopeStringCenterModule -import com.twitter.strato.fed.StratoFed -import com.twitter.strato.fed.server.StratoFedServer +import com.ExTwitter.finagle.Filter +import com.ExTwitter.finatra.annotations.DarkTrafficFilterType +import com.ExTwitter.finatra.http.HttpServer +import com.ExTwitter.finatra.http.routing.HttpRouter +import com.ExTwitter.finatra.mtls.http.{Mtls => HttpMtls} +import com.ExTwitter.finatra.mtls.thriftmux.Mtls +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsThriftWebFormsModule +import com.ExTwitter.finatra.thrift.ThriftServer +import com.ExTwitter.finatra.thrift.filters._ +import com.ExTwitter.finatra.thrift.routing.ThriftRouter +import com.ExTwitter.home_mixer.controller.HomeThriftController +import com.ExTwitter.home_mixer.federated.HomeMixerColumn +import com.ExTwitter.home_mixer.module._ +import com.ExTwitter.home_mixer.param.GlobalParamConfigModule +import com.ExTwitter.home_mixer.product.HomeMixerProductModule +import com.ExTwitter.home_mixer.{thriftscala => st} +import com.ExTwitter.product_mixer.component_library.module.AccountRecommendationsMixerModule +import com.ExTwitter.product_mixer.component_library.module.DarkTrafficFilterModule +import com.ExTwitter.product_mixer.component_library.module.EarlybirdModule +import com.ExTwitter.product_mixer.component_library.module.ExploreRankerClientModule +import com.ExTwitter.product_mixer.component_library.module.GizmoduckClientModule +import com.ExTwitter.product_mixer.component_library.module.OnboardingTaskServiceModule +import com.ExTwitter.product_mixer.component_library.module.SocialGraphServiceModule +import com.ExTwitter.product_mixer.component_library.module.TimelineRankerClientModule +import com.ExTwitter.product_mixer.component_library.module.TimelineScorerClientModule +import com.ExTwitter.product_mixer.component_library.module.TimelineServiceClientModule +import com.ExTwitter.product_mixer.component_library.module.TweetImpressionStoreModule +import com.ExTwitter.product_mixer.component_library.module.TweetMixerClientModule +import com.ExTwitter.product_mixer.component_library.module.UserSessionStoreModule +import com.ExTwitter.product_mixer.core.controllers.ProductMixerController +import com.ExTwitter.product_mixer.core.module.LoggingThrowableExceptionMapper +import com.ExTwitter.product_mixer.core.module.ProductMixerModule +import com.ExTwitter.product_mixer.core.module.stringcenter.ProductScopeStringCenterModule +import com.ExTwitter.strato.fed.StratoFed +import com.ExTwitter.strato.fed.server.StratoFedServer object HomeMixerServerMain extends HomeMixerServer diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerThriftServerWarmupHandler.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerThriftServerWarmupHandler.scala index 982b77487..544b956b5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerThriftServerWarmupHandler.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/HomeMixerThriftServerWarmupHandler.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer +package com.ExTwitter.home_mixer -import com.twitter.finagle.thrift.ClientId -import com.twitter.finatra.thrift.routing.ThriftWarmup -import com.twitter.home_mixer.{thriftscala => st} -import com.twitter.util.logging.Logging -import com.twitter.inject.utils.Handler -import com.twitter.product_mixer.core.{thriftscala => pt} -import com.twitter.scrooge.Request -import com.twitter.scrooge.Response -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finatra.thrift.routing.ThriftWarmup +import com.ExTwitter.home_mixer.{thriftscala => st} +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.inject.utils.Handler +import com.ExTwitter.product_mixer.core.{thriftscala => pt} +import com.ExTwitter.scrooge.Request +import com.ExTwitter.scrooge.Response +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/BUILD.bazel index 3f738bcb6..243f1c4c6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/BUILD.bazel @@ -4,23 +4,23 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/query_transformer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/tweetconvosvc", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/tweetconvosvc", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfig.scala index d26843193..08046e9df 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfig.scala @@ -1,36 +1,36 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter -import com.twitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter -import com.twitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSource -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSourceRequest -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.TweetWithConversationMetadata -import com.twitter.product_mixer.component_library.filter.FeatureFilter -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter +import com.ExTwitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter +import com.ExTwitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSource +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSourceRequest +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.TweetWithConversationMetadata +import com.ExTwitter.product_mixer.component_library.filter.FeatureFilter +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig /** * Candidate Pipeline Config that fetches tweets from the Conversation Service Candidate Source diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfigBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfigBuilder.scala index bb55f85e3..4172d5011 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfigBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceCandidatePipelineConfigBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceResponseFeatureTransformer.scala index 154c080ad..0914d065a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/ConversationServiceResponseFeatureTransformer.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.TweetWithConversationMetadata -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.TweetWithConversationMetadata +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType object ConversationServiceResponseFeatureTransformer extends CandidateFeatureTransformer[TweetWithConversationMetadata] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/EditedTweetsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/EditedTweetsCandidatePipelineConfig.scala index d9bb73695..38229097e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/EditedTweetsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/EditedTweetsCandidatePipelineConfig.scala @@ -1,26 +1,26 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.home_mixer.functional_component.candidate_source.StaleTweetsCacheCandidateSource -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator -import com.twitter.home_mixer.functional_component.query_transformer.EditedTweetsCandidatePipelineQueryTransformer -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.EmptyClientEventInfoBuilder -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineFocalTweetSafetyLevel -import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.home_mixer.functional_component.candidate_source.StaleTweetsCacheCandidateSource +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.query_transformer.EditedTweetsCandidatePipelineQueryTransformer +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.EmptyClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineFocalTweetSafetyLevel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/NewTweetsPillCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/NewTweetsPillCandidatePipelineConfig.scala index e1a92b9ca..e42cfba08 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/NewTweetsPillCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/NewTweetsPillCandidatePipelineConfig.scala @@ -1,40 +1,40 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.functional_component.gate.RequestContextNotGate -import com.twitter.home_mixer.model.HomeFeatures.GetNewerFeature -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert.DurationParamBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert.ShowAlertCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert.StaticShowAlertColorConfigurationBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert.StaticShowAlertDisplayLocationBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert.StaticShowAlertIconDisplayInfoBuilder -import com.twitter.product_mixer.component_library.gate.FeatureGate -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.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.candidate_source.StaticCandidateSource -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseDurationBuilder -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.NewTweets -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertColorConfiguration -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertIconDisplayInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.Top -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.UpArrow -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.TwitterBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.WhiteRosettaColor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.functional_component.gate.RequestContextNotGate +import com.ExTwitter.home_mixer.model.HomeFeatures.GetNewerFeature +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.alert.DurationParamBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.alert.ShowAlertCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.alert.StaticShowAlertColorConfigurationBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.alert.StaticShowAlertDisplayLocationBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.alert.StaticShowAlertIconDisplayInfoBuilder +import com.ExTwitter.product_mixer.component_library.gate.FeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.StaticCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseDurationBuilder +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.NewTweets +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertColorConfiguration +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertIconDisplayInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.Top +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.UpArrow +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.ExTwitterBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.WhiteRosettaColor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton @@ -109,7 +109,7 @@ class NewTweetsPillCandidatePipelineConfig[Query <: PipelineQuery with HasDevice object NewTweetsPillCandidatePipelineConfig { val DefaultColorConfig: ShowAlertColorConfiguration = ShowAlertColorConfiguration( - background = TwitterBlueRosettaColor, + background = ExTwitterBlueRosettaColor, text = WhiteRosettaColor, border = Some(WhiteRosettaColor) ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/TimelineServiceResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/TimelineServiceResponseFeatureTransformer.scala index 3f0a932c9..b31fb53bc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/TimelineServiceResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline/TimelineServiceResponseFeatureTransformer.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.{thriftscala => t} object TimelineServiceResponseFeatureTransformer extends CandidateFeatureTransformer[t.Tweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/BUILD.bazel index dfaff319d..14957288d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/BUILD.bazel @@ -4,14 +4,14 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "finatra/thrift/src/main/scala/com/twitter/finatra/thrift:controller", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", + "finatra/thrift/src/main/scala/com/ExTwitter/finatra/thrift:controller", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/controllers", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/service/debug_query", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/service/urt", - "snowflake/src/main/scala/com/twitter/snowflake/id", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/controllers", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/service/debug_query", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/service/urt", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/HomeThriftController.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/HomeThriftController.scala index fc1b7770e..ff1dbec8d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/HomeThriftController.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/controller/HomeThriftController.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.controller +package com.ExTwitter.home_mixer.controller -import com.twitter.finatra.thrift.Controller -import com.twitter.home_mixer.marshaller.request.HomeMixerRequestUnmarshaller -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.service.ScoredTweetsService -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.controllers.DebugTwitterContext -import com.twitter.product_mixer.core.functional_component.configapi.ParamsBuilder -import com.twitter.product_mixer.core.service.debug_query.DebugQueryService -import com.twitter.product_mixer.core.service.urt.UrtService -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Params +import com.ExTwitter.finatra.thrift.Controller +import com.ExTwitter.home_mixer.marshaller.request.HomeMixerRequestUnmarshaller +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.service.ScoredTweetsService +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.controllers.DebugExTwitterContext +import com.ExTwitter.product_mixer.core.functional_component.configapi.ParamsBuilder +import com.ExTwitter.product_mixer.core.service.debug_query.DebugQueryService +import com.ExTwitter.product_mixer.core.service.urt.UrtService +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject class HomeThriftController @Inject() ( @@ -20,7 +20,7 @@ class HomeThriftController @Inject() ( scoredTweetsService: ScoredTweetsService, paramsBuilder: ParamsBuilder) extends Controller(t.HomeMixer) - with DebugTwitterContext { + with DebugExTwitterContext { handle(t.HomeMixer.GetUrtResponse) { args: t.HomeMixer.GetUrtResponse.Args => val request = homeRequestUnmarshaller(args.request) @@ -31,7 +31,7 @@ class HomeThriftController @Inject() ( handle(t.HomeMixer.GetScoredTweetsResponse) { args: t.HomeMixer.GetScoredTweetsResponse.Args => val request = homeRequestUnmarshaller(args.request) val params = buildParams(request) - withDebugTwitterContext(request.clientContext) { + withDebugExTwitterContext(request.clientContext) { Stitch.run(scoredTweetsService.getScoredTweetsResponse[HomeMixerRequest](request, params)) } } diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/BUILD.bazel index 30ee81acc..e2965f499 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/BUILD.bazel @@ -4,21 +4,21 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/registry", - "product-mixer/core/src/main/thrift/com/twitter/product_mixer/core:thrift-scala", - "src/thrift/com/twitter/gizmoduck:thrift-scala", - "src/thrift/com/twitter/timelines/render:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/registry", + "product-mixer/core/src/main/thrift/com/ExTwitter/product_mixer/core:thrift-scala", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", "stitch/stitch-repo/src/main/scala", "strato/config/columns/auth-context:auth-context-strato-client", "strato/config/columns/gizmoduck:gizmoduck-strato-client", - "strato/config/src/thrift/com/twitter/strato/graphql/timelines:graphql-timelines-scala", - "strato/src/main/scala/com/twitter/strato/callcontext", - "strato/src/main/scala/com/twitter/strato/fed", - "strato/src/main/scala/com/twitter/strato/fed/server", + "strato/config/src/thrift/com/ExTwitter/strato/graphql/timelines:graphql-timelines-scala", + "strato/src/main/scala/com/ExTwitter/strato/callcontext", + "strato/src/main/scala/com/ExTwitter/strato/fed", + "strato/src/main/scala/com/ExTwitter/strato/fed/server", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/HomeMixerColumn.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/HomeMixerColumn.scala index 0ef27b7a0..c3e993681 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/HomeMixerColumn.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/federated/HomeMixerColumn.scala @@ -1,27 +1,27 @@ -package com.twitter.home_mixer.federated +package com.ExTwitter.home_mixer.federated -import com.twitter.gizmoduck.{thriftscala => gd} -import com.twitter.home_mixer.marshaller.request.HomeMixerRequestUnmarshaller -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.{thriftscala => hm} -import com.twitter.product_mixer.core.functional_component.configapi.ParamsBuilder -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineRequest -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineResult -import com.twitter.product_mixer.core.product.registry.ProductPipelineRegistry -import com.twitter.product_mixer.core.{thriftscala => pm} -import com.twitter.stitch.Arrow -import com.twitter.stitch.Stitch -import com.twitter.strato.callcontext.CallContext -import com.twitter.strato.catalog.OpMetadata -import com.twitter.strato.config._ -import com.twitter.strato.data._ -import com.twitter.strato.fed.StratoFed -import com.twitter.strato.generated.client.auth_context.AuditIpClientColumn -import com.twitter.strato.generated.client.gizmoduck.CompositeOnUserClientColumn -import com.twitter.strato.graphql.timelines.{thriftscala => gql} -import com.twitter.strato.thrift.ScroogeConv -import com.twitter.timelines.render.{thriftscala => tr} -import com.twitter.util.Try +import com.ExTwitter.gizmoduck.{thriftscala => gd} +import com.ExTwitter.home_mixer.marshaller.request.HomeMixerRequestUnmarshaller +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.{thriftscala => hm} +import com.ExTwitter.product_mixer.core.functional_component.configapi.ParamsBuilder +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineRequest +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineResult +import com.ExTwitter.product_mixer.core.product.registry.ProductPipelineRegistry +import com.ExTwitter.product_mixer.core.{thriftscala => pm} +import com.ExTwitter.stitch.Arrow +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.callcontext.CallContext +import com.ExTwitter.strato.catalog.OpMetadata +import com.ExTwitter.strato.config._ +import com.ExTwitter.strato.data._ +import com.ExTwitter.strato.fed.StratoFed +import com.ExTwitter.strato.generated.client.auth_context.AuditIpClientColumn +import com.ExTwitter.strato.generated.client.gizmoduck.CompositeOnUserClientColumn +import com.ExTwitter.strato.graphql.timelines.{thriftscala => gql} +import com.ExTwitter.strato.thrift.ScroogeConv +import com.ExTwitter.timelines.render.{thriftscala => tr} +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton @@ -79,7 +79,7 @@ class HomeMixerColumn @Inject() ( val populateUserRoles = Arrow .flatMap[(Key, View), Option[Set[String]]] { _ => Stitch.collect { - CallContext.twitterUserId.map { userId => + CallContext.ExTwitterUserId.map { userId => compositeOnUserClientColumn.fetcher .callStack(HomeMixerColumn.FetchCallstack) .fetch(userId, gizmoduckView).map(_.v) @@ -138,7 +138,7 @@ class HomeMixerColumn @Inject() ( } val clientContext = pm.ClientContext( - userId = CallContext.twitterUserId, + userId = CallContext.ExTwitterUserId, guestId = CallContext.guestId, guestIdAds = CallContext.guestIdAds, guestIdMarketing = CallContext.guestIdMarketing, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/BUILD.bazel index a40bd4030..d35313f78 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/BUILD.bazel @@ -7,13 +7,13 @@ scala_library( "3rdparty/jvm/javax/inject:javax.inject", "finagle/finagle-memcached/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/search:earlybird-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/search:earlybird-scala", "stitch/stitch-timelineservice/src/main/scala", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/EarlybirdCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/EarlybirdCandidateSource.scala index 2ddd05814..ef2270733 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/EarlybirdCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/EarlybirdCandidateSource.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.functional_component.candidate_source +package com.ExTwitter.home_mixer.functional_component.candidate_source -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.search.earlybird.{thriftscala => t} -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/StaleTweetsCacheCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/StaleTweetsCacheCandidateSource.scala index 9a346129d..98c60b0cd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/StaleTweetsCacheCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source/StaleTweetsCacheCandidateSource.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.functional_component.candidate_source +package com.ExTwitter.home_mixer.functional_component.candidate_source import com.google.inject.name.Named -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.home_mixer.param.HomeMixerInjectionNames.StaleTweetsCache -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.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.StaleTweetsCache +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/BUILD.bazel index 4df69c9f9..e4f7d1af3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/BUILD.bazel @@ -5,24 +5,24 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "finagle/finagle-core/src/main", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/java/com/twitter/product_mixer/core/product/guice/scope", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/scala/com/twitter/suggests/controller_data", - "src/thrift/com/twitter/suggests/controller_data:controller_data-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/suggests/logging:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/java/com/ExTwitter/product_mixer/core/product/guice/scope", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/scala/com/ExTwitter/suggests/controller_data", + "src/thrift/com/ExTwitter/suggests/controller_data:controller_data-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/suggests/logging:thrift-scala", "stringcenter/client", "stringcenter/client/src/main/java", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeConversationServiceCandidateDecorator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeConversationServiceCandidateDecorator.scala index d145391d4..ef0b06913 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeConversationServiceCandidateDecorator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeConversationServiceCandidateDecorator.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.functional_component.decorator +package com.ExTwitter.home_mixer.functional_component.decorator -import com.twitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder -import com.twitter.home_mixer.functional_component.decorator.builder.HomeTimelinesScoreInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeTimelinesScoreInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object HomeConversationServiceCandidateDecorator { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeQueryTypePredicates.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeQueryTypePredicates.scala index a79543269..59fe52ef7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeQueryTypePredicates.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeQueryTypePredicates.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.functional_component.decorator +package com.ExTwitter.home_mixer.functional_component.decorator -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap object HomeQueryTypePredicates { private[this] val QueryPredicates: Seq[(String, FeatureMap => Boolean)] = Seq( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/BUILD.bazel index cb59d1d73..007614a6b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/BUILD.bazel @@ -4,23 +4,23 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:scrooge", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", "finagle/finagle-core/src/main", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "joinkey/src/main/scala/com/twitter/joinkey/context", - "joinkey/src/main/thrift/com/twitter/joinkey/context:joinkey-context-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/scala/com/twitter/suggests/controller_data", - "src/thrift/com/twitter/suggests/controller_data:controller_data-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/suggests/logging:thrift-scala", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/model/candidate", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "joinkey/src/main/scala/com/ExTwitter/joinkey/context", + "joinkey/src/main/thrift/com/ExTwitter/joinkey/context:joinkey-context-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/scala/com/ExTwitter/suggests/controller_data", + "src/thrift/com/ExTwitter/suggests/controller_data:controller_data-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/suggests/logging:thrift-scala", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/model/candidate", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeAdsClientEventDetailsBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeAdsClientEventDetailsBuilder.scala index eb072f135..6ef81ad35 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeAdsClientEventDetailsBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeAdsClientEventDetailsBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.finagle.tracing.Trace -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.suggests.controller_data.home_tweets.v1.{thriftscala => v1ht} -import com.twitter.suggests.controller_data.home_tweets.{thriftscala => ht} -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.suggests.controller_data.home_tweets.v1.{thriftscala => v1ht} +import com.ExTwitter.suggests.controller_data.home_tweets.{thriftscala => ht} +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} case class HomeAdsClientEventDetailsBuilder(injectionType: Option[String]) extends BaseClientEventDetailsBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventDetailsBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventDetailsBuilder.scala index 2e4c60d25..42c970d67 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventDetailsBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventDetailsBuilder.scala @@ -1,25 +1,25 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.bijection.Base64String -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.{Injection => Serializer} -import com.twitter.finagle.tracing.Trace -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.PositionFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.joinkey.context.RequestJoinKeyContext -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.suggests.controller_data.Home -import com.twitter.suggests.controller_data.TweetTypeGenerator -import com.twitter.suggests.controller_data.home_tweets.v1.{thriftscala => v1ht} -import com.twitter.suggests.controller_data.home_tweets.{thriftscala => ht} -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} +import com.ExTwitter.bijection.Base64String +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.{Injection => Serializer} +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PositionFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.joinkey.context.RequestJoinKeyContext +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.suggests.controller_data.Home +import com.ExTwitter.suggests.controller_data.TweetTypeGenerator +import com.ExTwitter.suggests.controller_data.home_tweets.v1.{thriftscala => v1ht} +import com.ExTwitter.suggests.controller_data.home_tweets.{thriftscala => ht} +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} object HomeClientEventDetailsBuilder { implicit val ByteSerializer: Serializer[ControllerData, Array[Byte]] = diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventInfoBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventInfoBuilder.scala index f79b0d931..5004f196c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventInfoBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeClientEventInfoBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.home_mixer.model.HomeFeatures.EntityTokenFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.home_mixer.model.HomeFeatures.EntityTokenFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil /** * Sets the [[ClientEventInfo]] with the `component` field set to the Suggest Type assigned to each candidate diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeConversationModuleMetadataBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeConversationModuleMetadataBuilder.scala index dc6d51327..f09371025 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeConversationModuleMetadataBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeConversationModuleMetadataBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleConversationMetadata -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleMetadata -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleConversationMetadata +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleMetadata +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class HomeConversationModuleMetadataBuilder[ -Query <: PipelineQuery, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTimelinesScoreInfoBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTimelinesScoreInfoBuilder.scala index bc934414c..7f24a19d2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTimelinesScoreInfoBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTimelinesScoreInfoBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.param.HomeGlobalParams.EnableSendScoresToClient -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseTimelinesScoreInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TimelinesScoreInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableSendScoresToClient +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseTimelinesScoreInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TimelinesScoreInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object HomeTimelinesScoreInfoBuilder extends BaseTimelinesScoreInfoBuilder[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTweetTypePredicates.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTweetTypePredicates.scala index 7272c360d..587e1e8ac 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTweetTypePredicates.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/HomeTweetTypePredicates.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType -import com.twitter.timelinemixer.injection.model.candidate.SemanticCoreFeatures -import com.twitter.tweetypie.{thriftscala => tpt} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType +import com.ExTwitter.timelinemixer.injection.model.candidate.SemanticCoreFeatures +import com.ExTwitter.tweetypie.{thriftscala => tpt} object HomeTweetTypePredicates { @@ -85,7 +85,7 @@ object HomeTweetTypePredicates { "part_of_utt", _.getOrElse(EarlybirdFeature, None) .exists(_.semanticCoreAnnotations.exists(_.exists(annotation => - annotation.domainId == SemanticCoreFeatures.UnifiedTwitterTaxonomy)))), + annotation.domainId == SemanticCoreFeatures.UnifiedExTwitterTaxonomy)))), ( "has_home_latest_request_past_week", _.getOrElse(FollowingLastNonPollingTimeFeature, None).exists(_.untilNow < 7.days)), @@ -140,7 +140,7 @@ object HomeTweetTypePredicates { _.semanticCoreAnnotations.exists( _.exists(annotation => SemanticCoreFeatures.PoliticalDomains.contains(annotation.domainId) || - (annotation.domainId == SemanticCoreFeatures.UnifiedTwitterTaxonomy && + (annotation.domainId == SemanticCoreFeatures.UnifiedExTwitterTaxonomy && annotation.entityId == SemanticCoreFeatures.UttPoliticsEntityId))))), ( "is_dont_at_me_by_invitation", @@ -182,7 +182,7 @@ object HomeTweetTypePredicates { "has_us_political_annotation", _.getOrElse(EarlybirdFeature, None) .exists(_.semanticCoreAnnotations.exists(_.exists(annotation => - annotation.domainId == SemanticCoreFeatures.UnifiedTwitterTaxonomy && + annotation.domainId == SemanticCoreFeatures.UnifiedExTwitterTaxonomy && annotation.entityId == SemanticCoreFeatures.usPoliticalTweetEntityId && annotation.groupId == SemanticCoreFeatures.UsPoliticalTweetAnnotationGroupIds.BalancedV0)))), ( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/ListClientEventDetailsBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/ListClientEventDetailsBuilder.scala index cfffee0ca..100254e7f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/ListClientEventDetailsBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder/ListClientEventDetailsBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.functional_component.decorator.builder +package com.ExTwitter.home_mixer.functional_component.decorator.builder -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} case class ListClientEventDetailsBuilder(suggestType: st.SuggestType) extends BaseClientEventDetailsBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AddEntriesWithReplaceAndShowAlertAndShowCoverInstructionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AddEntriesWithReplaceAndShowAlertAndShowCoverInstructionBuilder.scala index dc3080eb5..141df09e7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AddEntriesWithReplaceAndShowAlertAndShowCoverInstructionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AddEntriesWithReplaceAndShowAlertAndShowCoverInstructionBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.AlwaysInclude -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.IncludeInstruction -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtInstructionBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.AddEntriesTimelineInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.Cover -import com.twitter.product_mixer.core.model.marshalling.response.urt.ShowAlert -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineEntry -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.AlwaysInclude +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.IncludeInstruction +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtInstructionBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.AddEntriesTimelineInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Cover +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ShowAlert +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineEntry +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder[Query <: PipelineQuery]( override val includeInstruction: IncludeInstruction[Query] = AlwaysInclude) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AuthorChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AuthorChildFeedbackActionBuilder.scala index dee273f5f..64c22808b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AuthorChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/AuthorChildFeedbackActionBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.service.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.service.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BUILD.bazel index 3a4f19592..e606faf80 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BUILD.bazel @@ -4,16 +4,16 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "src/thrift/com/twitter/timelines/service:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/model/candidate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "src/thrift/com/ExTwitter/timelines/service:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/model/candidate", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BlockUserChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BlockUserChildFeedbackActionBuilder.scala index a23b57dee..6fe83cfac 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BlockUserChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/BlockUserChildFeedbackActionBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.BottomSheet -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorBlockUser -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.BottomSheet +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorBlockUser +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/DontLikeFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/DontLikeFeedbackActionBuilder.scala index 9032b53d9..58ebd7e14 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/DontLikeFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/DontLikeFeedbackActionBuilder.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.param.HomeGlobalParams.EnableNahFeedbackInfoParam -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon.Frown -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.DontLike -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.common.{thriftscala => tlc} -import com.twitter.timelineservice.model.FeedbackInfo -import com.twitter.timelineservice.model.FeedbackMetadata -import com.twitter.timelineservice.{thriftscala => tls} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableNahFeedbackInfoParam +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon.Frown +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.DontLike +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.common.{thriftscala => tlc} +import com.ExTwitter.timelineservice.model.FeedbackInfo +import com.ExTwitter.timelineservice.model.FeedbackMetadata +import com.ExTwitter.timelineservice.{thriftscala => tls} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/EngagerSocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/EngagerSocialContextBuilder.scala index 950271e4a..455e00ec0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/EngagerSocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/EngagerSocialContextBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.RealNamesFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stringcenter.client.StringCenter -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.home_mixer.model.HomeFeatures.RealNamesFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.stringcenter.client.core.ExternalString private[decorator] case class SocialContextIdAndScreenName( socialContextId: Long, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ExtendedReplySocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ExtendedReplySocialContextBuilder.scala index 74576eae8..56bd99c58 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ExtendedReplySocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ExtendedReplySocialContextBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetInNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetRealNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetInNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetRealNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackStrings.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackStrings.scala index 8a9c214aa..eb7fc9457 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackStrings.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackStrings.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.ExternalStringRegistry +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.ExternalStringRegistry import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackUtil.scala index 08534f26e..64048e6b6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FeedbackUtil.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.conversions.DurationOps._ -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SeeFewer -import com.twitter.stringcenter.client.StringCenter -import com.twitter.stringcenter.client.core.ExternalString -import com.twitter.timelines.common.{thriftscala => tlc} -import com.twitter.timelines.service.{thriftscala => t} -import com.twitter.timelineservice.model.FeedbackInfo -import com.twitter.timelineservice.model.FeedbackMetadata -import com.twitter.timelineservice.suggests.{thriftscala => st} -import com.twitter.timelineservice.{thriftscala => tlst} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SeeFewer +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.stringcenter.client.core.ExternalString +import com.ExTwitter.timelines.common.{thriftscala => tlc} +import com.ExTwitter.timelines.service.{thriftscala => t} +import com.ExTwitter.timelineservice.model.FeedbackInfo +import com.ExTwitter.timelineservice.model.FeedbackMetadata +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.timelineservice.{thriftscala => tlst} object FeedbackUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FollowedBySocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FollowedBySocialContextBuilder.scala index 7554f7b36..5cc64f381 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FollowedBySocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/FollowedBySocialContextBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeFeedbackActionInfoBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeFeedbackActionInfoBuilder.scala index c932f6362..94d5928ee 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeFeedbackActionInfoBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeFeedbackActionInfoBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.param.HomeGlobalParams.EnableNahFeedbackInfoParam -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.service.{thriftscala => t} -import com.twitter.timelines.util.FeedbackMetadataSerializer +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableNahFeedbackInfoParam +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.service.{thriftscala => t} +import com.ExTwitter.timelines.util.FeedbackMetadataSerializer import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeTweetSocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeTweetSocialContextBuilder.scala index 5138f254a..414f5345b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeTweetSocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeTweetSocialContextBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleIdFeature -import com.twitter.home_mixer.param.HomeGlobalParams.EnableSocialContextParam -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleIdFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableSocialContextParam +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToFollowFeedbackActionInfoBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToFollowFeedbackActionInfoBuilder.scala index 49017e8cf..6754c0d56 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToFollowFeedbackActionInfoBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToFollowFeedbackActionInfoBuilder.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.WhoToFollowFeedbackActionInfoBuilder -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.WhoToFollowFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.service.{thriftscala => tl} -import com.twitter.timelines.util.FeedbackRequestSerializer -import com.twitter.timelineservice.suggests.thriftscala.SuggestType -import com.twitter.timelineservice.thriftscala.FeedbackType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.service.{thriftscala => tl} +import com.ExTwitter.timelines.util.FeedbackRequestSerializer +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.timelineservice.thriftscala.FeedbackType object HomeWhoToFollowFeedbackActionInfoBuilder { private val FeedbackMetadata = tl.FeedbackMetadata( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToSubscribeFeedbackActionInfoBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToSubscribeFeedbackActionInfoBuilder.scala index 270ea66f6..0537d13ea 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToSubscribeFeedbackActionInfoBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/HomeWhoToSubscribeFeedbackActionInfoBuilder.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.WhoToFollowFeedbackActionInfoBuilder -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.WhoToFollowFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.service.{thriftscala => tl} -import com.twitter.timelines.util.FeedbackRequestSerializer -import com.twitter.timelineservice.suggests.thriftscala.SuggestType -import com.twitter.timelineservice.thriftscala.FeedbackType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.service.{thriftscala => tl} +import com.ExTwitter.timelines.util.FeedbackRequestSerializer +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.timelineservice.thriftscala.FeedbackType object HomeWhoToSubscribeFeedbackActionInfoBuilder { private val FeedbackMetadata = tl.FeedbackMetadata( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/LikedBySocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/LikedBySocialContextBuilder.scala index fbc65be13..8f55cfdd1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/LikedBySocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/LikedBySocialContextBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.LikeGeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.LikeGeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ListsSocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ListsSocialContextBuilder.scala index e5e746223..5008d965e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ListsSocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ListsSocialContextBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.UserScreenNameFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelineservice.suggests.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.UserScreenNameFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelineservice.suggests.{thriftscala => t} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/MuteUserChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/MuteUserChildFeedbackActionBuilder.scala index 542ed8a67..a96dc5891 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/MuteUserChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/MuteUserChildFeedbackActionBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorToggleMuteUser -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorToggleMuteUser +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotInterestedTopicFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotInterestedTopicFeedbackActionBuilder.scala index 2ec520e11..4fbb8bac1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotInterestedTopicFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotInterestedTopicFeedbackActionBuilder.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorMarkNotInterestedTopic -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorMarkNotInterestedTopic +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotRelevantChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotRelevantChildFeedbackActionBuilder.scala index 39df781ce..2da3d202a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotRelevantChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/NotRelevantChildFeedbackActionBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.NotRelevant -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.common.{thriftscala => tlc} -import com.twitter.timelineservice.model.FeedbackInfo -import com.twitter.timelineservice.model.FeedbackMetadata -import com.twitter.timelineservice.{thriftscala => tlst} +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.NotRelevant +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.common.{thriftscala => tlc} +import com.ExTwitter.timelineservice.model.FeedbackInfo +import com.ExTwitter.timelineservice.model.FeedbackMetadata +import com.ExTwitter.timelineservice.{thriftscala => tlst} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularInYourAreaSocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularInYourAreaSocialContextBuilder.scala index 3782dd115..d5664840f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularInYourAreaSocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularInYourAreaSocialContextBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularVideoSocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularVideoSocialContextBuilder.scala index 7eef7f180..2bd78653e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularVideoSocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/PopularVideoSocialContextBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReceivedReplySocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReceivedReplySocialContextBuilder.scala index f1af07c98..f9a104953 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReceivedReplySocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReceivedReplySocialContextBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetInNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.RealNamesFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetInNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RealNamesFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReportTweetChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReportTweetChildFeedbackActionBuilder.scala index a4ef0cbb2..d932e035e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReportTweetChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/ReportTweetChildFeedbackActionBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorReportTweet -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorReportTweet +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/RetweeterChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/RetweeterChildFeedbackActionBuilder.scala index 006e93b58..29e2bae7d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/RetweeterChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/RetweeterChildFeedbackActionBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.service.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.service.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/TopicSocialContextBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/TopicSocialContextBuilder.scala index 7d01382c3..30100e916 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/TopicSocialContextBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/TopicSocialContextBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContext -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContext +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/UnfollowUserChildFeedbackActionBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/UnfollowUserChildFeedbackActionBuilder.scala index 864ee06d9..67bc2f2c2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/UnfollowUserChildFeedbackActionBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder/UnfollowUserChildFeedbackActionBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.decorator.urt.builder +package com.ExTwitter.home_mixer.functional_component.decorator.urt.builder -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorToggleFollowUser -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ChildFeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorToggleFollowUser +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/BUILD.bazel index 60c104143..0d45d8795 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/BUILD.bazel @@ -4,61 +4,61 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", "configapi/configapi-decider", "finatra/inject/inject-core/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie", - "joinkey/src/main/scala/com/twitter/joinkey/context", - "joinkey/src/main/thrift/com/twitter/joinkey/context:joinkey-context-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/util", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/search/common/util/lang", - "src/scala/com/twitter/timelines/prediction/adapters/request_context", - "src/thrift/com/twitter/gizmoduck:thrift-scala", - "src/thrift/com/twitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:constants-java", - "src/thrift/com/twitter/socialgraph:thrift-scala", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/timelineranker:thrift-scala", - "src/thrift/com/twitter/timelines/impression:thrift-scala", - "src/thrift/com/twitter/timelines/impression_bloom_filter:thrift-scala", - "src/thrift/com/twitter/timelines/real_graph:real_graph-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", - "src/thrift/com/twitter/user_session_store:thrift-java", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/tweetypie", + "joinkey/src/main/scala/com/ExTwitter/joinkey/context", + "joinkey/src/main/thrift/com/ExTwitter/joinkey/context:joinkey-context-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/timelines_impression_store", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/util", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/search/common/util/lang", + "src/scala/com/ExTwitter/timelines/prediction/adapters/request_context", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", + "src/thrift/com/ExTwitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:constants-java", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_bloom_filter:thrift-scala", + "src/thrift/com/ExTwitter/timelines/real_graph:real_graph-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", + "src/thrift/com/ExTwitter/user_session_store:thrift-java", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "stitch/stitch-core", "stitch/stitch-gizmoduck", "stitch/stitch-socialgraph", "stitch/stitch-timelineservice", "stitch/stitch-tweetypie", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/feedback", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/manhattan", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/persistence", - "timelines/src/main/scala/com/twitter/timelines/clients/manhattan/store", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/impressionbloomfilter", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/store", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", - "user_session_store/src/main/scala/com/twitter/user_session_store", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/feedback", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/manhattan", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/persistence", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/manhattan/store", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/impressionbloomfilter", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/store", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store", "util/util-core", ], exports = [ - "src/thrift/com/twitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/manhattan", + "src/thrift/com/ExTwitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/manhattan", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/DismissInfoQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/DismissInfoQueryFeatureHydrator.scala index 976cd1e30..c46e21c29 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/DismissInfoQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/DismissInfoQueryFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.DismissInfoFeature -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.timelinemixer.clients.manhattan.InjectionHistoryClient -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.manhattan.DismissInfo -import com.twitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.home_mixer.model.HomeFeatures.DismissInfoFeature +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.timelinemixer.clients.manhattan.InjectionHistoryClient +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.manhattan.DismissInfo +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/FeedbackHistoryQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/FeedbackHistoryQueryFeatureHydrator.scala index c0793be4b..a8505898d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/FeedbackHistoryQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/FeedbackHistoryQueryFeatureHydrator.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.feedback.FeedbackHistoryManhattanClient +import com.ExTwitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.feedback.FeedbackHistoryManhattanClient import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/GizmoduckUserQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/GizmoduckUserQueryFeatureHydrator.scala index 431711900..6a94cd5c8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/GizmoduckUserQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/GizmoduckUserQueryFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.gizmoduck.{thriftscala => gt} -import com.twitter.home_mixer.model.HomeFeatures.UserFollowingCountFeature -import com.twitter.home_mixer.model.HomeFeatures.UserScreenNameFeature -import com.twitter.home_mixer.model.HomeFeatures.UserTypeFeature -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.gizmoduck.{thriftscala => gt} +import com.ExTwitter.home_mixer.model.HomeFeatures.UserFollowingCountFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.UserScreenNameFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.UserTypeFeature +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.gizmoduck.Gizmoduck import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/ImpressionBloomFilterQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/ImpressionBloomFilterQueryFeatureHydrator.scala index 6ece16ce0..6cd783c22 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/ImpressionBloomFilterQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/ImpressionBloomFilterQueryFeatureHydrator.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.ImpressionBloomFilterFeature -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.param.HomeGlobalParams.ImpressionBloomFilterFalsePositiveRateParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.clients.manhattan.store.ManhattanStoreClient -import com.twitter.timelines.impressionbloomfilter.{thriftscala => blm} -import com.twitter.timelines.impressionstore.impressionbloomfilter.ImpressionBloomFilter +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.ImpressionBloomFilterFeature +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.param.HomeGlobalParams.ImpressionBloomFilterFalsePositiveRateParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.clients.manhattan.store.ManhattanStoreClient +import com.ExTwitter.timelines.impressionbloomfilter.{thriftscala => blm} +import com.ExTwitter.timelines.impressionstore.impressionbloomfilter.ImpressionBloomFilter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/InNetworkFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/InNetworkFeatureHydrator.scala index 55f002b1f..43a157bae 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/InNetworkFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/InNetworkFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object InNetworkFeatureHydrator extends BulkCandidateFeatureHydrator[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/LastNonPollingTimeQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/LastNonPollingTimeQueryFeatureHydrator.scala index 9f3049049..c6fed553d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/LastNonPollingTimeQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/LastNonPollingTimeQueryFeatureHydrator.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.FollowingLastNonPollingTimeFeature -import com.twitter.home_mixer.model.HomeFeatures.LastNonPollingTimeFeature -import com.twitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.user_session_store.ReadRequest -import com.twitter.user_session_store.ReadWriteUserSessionStore -import com.twitter.user_session_store.UserSessionDataset -import com.twitter.user_session_store.UserSessionDataset.UserSessionDataset -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowingLastNonPollingTimeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.LastNonPollingTimeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.user_session_store.ReadRequest +import com.ExTwitter.user_session_store.ReadWriteUserSessionStore +import com.ExTwitter.user_session_store.UserSessionDataset +import com.ExTwitter.user_session_store.UserSessionDataset.UserSessionDataset +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/NamesFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/NamesFeatureHydrator.scala index ede075e5c..604d8f1dd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/NamesFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/NamesFeatureHydrator.scala @@ -1,26 +1,26 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.gizmoduck.{thriftscala => gt} -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.RealNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.param.HomeGlobalParams.EnableNahFeedbackInfoParam -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.stitch.gizmoduck.Gizmoduck -import com.twitter.util.Return +import com.ExTwitter.gizmoduck.{thriftscala => gt} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RealNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableNahFeedbackInfoParam +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.util.Return import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PersistenceStoreQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PersistenceStoreQueryFeatureHydrator.scala index b7aae811b..b4c94c78f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PersistenceStoreQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PersistenceStoreQueryFeatureHydrator.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.conversions.DurationOps._ -import com.twitter.common_internal.analytics.twitter_client_user_agent_parser.UserAgent -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedTweetPreviewIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.WhoToFollowExcludedUserIdsFeature -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient -import com.twitter.timelinemixer.clients.persistence.TimelineResponseV3 -import com.twitter.timelines.util.client_info.ClientPlatform -import com.twitter.timelineservice.model.TimelineQuery -import com.twitter.timelineservice.model.core.TimelineKind -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.common_internal.analytics.ExTwitter_client_user_agent_parser.UserAgent +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedTweetPreviewIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.WhoToFollowExcludedUserIdsFeature +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseV3 +import com.ExTwitter.timelines.util.client_info.ClientPlatform +import com.ExTwitter.timelineservice.model.TimelineQuery +import com.ExTwitter.timelineservice.model.core.TimelineKind +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PerspectiveFilteredSocialContextFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PerspectiveFilteredSocialContextFeatureHydrator.scala index 602a8b2dc..c5ad6b86b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PerspectiveFilteredSocialContextFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/PerspectiveFilteredSocialContextFeatureHydrator.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.stitch.timelineservice.TimelineService -import com.twitter.stitch.timelineservice.TimelineService.GetPerspectives -import com.twitter.timelineservice.thriftscala.PerspectiveType -import com.twitter.timelineservice.thriftscala.PerspectiveType.Favorited +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.timelineservice.TimelineService +import com.ExTwitter.stitch.timelineservice.TimelineService.GetPerspectives +import com.ExTwitter.timelineservice.thriftscala.PerspectiveType +import com.ExTwitter.timelineservice.thriftscala.PerspectiveType.Favorited import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RealGraphInNetworkScoresQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RealGraphInNetworkScoresQueryFeatureHydrator.scala index 92ab90f2c..a43b82265 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RealGraphInNetworkScoresQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RealGraphInNetworkScoresQueryFeatureHydrator.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealGraphInNetworkScores -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.storehaus.ReadableStore -import com.twitter.wtf.candidate.{thriftscala => wtf} +import com.ExTwitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealGraphInNetworkScores +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.wtf.candidate.{thriftscala => wtf} import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RequestQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RequestQueryFeatureHydrator.scala index 3968c9532..b830b952c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RequestQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/RequestQueryFeatureHydrator.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.finagle.tracing.Annotation.BinaryAnnotation -import com.twitter.finagle.tracing.ForwardAnnotation -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.model.request.DeviceContext.RequestContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.joinkey.context.RequestJoinKeyContext -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.search.common.util.lang.ThriftLanguageUtil -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.adapters.request_context.RequestContextAdapter.dowFromTimestamp -import com.twitter.timelines.prediction.adapters.request_context.RequestContextAdapter.hourFromTimestamp +import com.ExTwitter.finagle.tracing.Annotation.BinaryAnnotation +import com.ExTwitter.finagle.tracing.ForwardAnnotation +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.model.request.DeviceContext.RequestContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.joinkey.context.RequestJoinKeyContext +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.search.common.util.lang.ThriftLanguageUtil +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.adapters.request_context.RequestContextAdapter.dowFromTimestamp +import com.ExTwitter.timelines.prediction.adapters.request_context.RequestContextAdapter.hourFromTimestamp import java.util.UUID import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/SGSValidSocialContextFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/SGSValidSocialContextFeatureHydrator.scala index 92c351ecf..8f5bddc25 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/SGSValidSocialContextFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/SGSValidSocialContextFeatureHydrator.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetImpressionsQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetImpressionsQueryFeatureHydrator.scala index 0fc6fd1f5..eb3c9387d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetImpressionsQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetImpressionsQueryFeatureHydrator.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.TweetImpressionsFeature -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.impression.{thriftscala => t} -import com.twitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClient -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetImpressionsFeature +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.impression.{thriftscala => t} +import com.ExTwitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClient +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetypieFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetypieFeatureHydrator.scala index f2effa1b2..4aa2ea39c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetypieFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator/TweetypieFeatureHydrator.scala @@ -1,40 +1,40 @@ -package com.twitter.home_mixer.functional_component.feature_hydrator +package com.ExTwitter.home_mixer.functional_component.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.IsNsfwFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetLanguageFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetTextFeature -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.ListTweetsProduct -import com.twitter.home_mixer.model.request.ScoredTweetsProduct -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.home_mixer.util.tweetypie.RequestFields -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_is_nsfw.IsNsfw -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_visibility_reason.VisibilityReason -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.spam.rtf.{thriftscala => rtf} -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.{thriftscala => tp} -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsNsfwFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetLanguageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetTextFeature +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.ListTweetsProduct +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.home_mixer.util.tweetypie.RequestFields +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_is_nsfw.IsNsfw +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_visibility_reason.VisibilityReason +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.spam.rtf.{thriftscala => rtf} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/BUILD.bazel index 59284224b..5bb73b80b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/BUILD.bazel @@ -4,26 +4,26 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/timelines/impression:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/timelines/impression:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-socialgraph", "stitch/stitch-tweetypie", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", "util/util-slf4j-api/src/main/scala", ], exports = [ - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/DropMaxCandidatesFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/DropMaxCandidatesFilter.scala index 94943fc4a..84056e4bd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/DropMaxCandidatesFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/DropMaxCandidatesFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.FSBoundedParam case class DropMaxCandidatesFilter[Candidate <: UniversalNoun[Any]]( maxCandidatesParam: FSBoundedParam[Int]) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/FeedbackFatigueFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/FeedbackFatigueFilter.scala index 582583e7f..c61c77c2f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/FeedbackFatigueFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/FeedbackFatigueFilter.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.common.thriftscala.FeedbackEntity -import com.twitter.timelineservice.model.FeedbackEntry -import com.twitter.timelineservice.{thriftscala => tls} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.common.thriftscala.FeedbackEntity +import com.ExTwitter.timelineservice.model.FeedbackEntry +import com.ExTwitter.timelineservice.{thriftscala => tls} object FeedbackFatigueFilter extends Filter[PipelineQuery, TweetCandidate] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidConversationModuleFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidConversationModuleFilter.scala index 0d3f1ca1f..d454baf12 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidConversationModuleFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidConversationModuleFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Exclude conversation modules where Tweets have been dropped by other filters diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidSubscriptionTweetFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidSubscriptionTweetFilter.scala index 285eec49f..c0ce8ff10 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidSubscriptionTweetFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/InvalidSubscriptionTweetFilter.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.tracing.Trace -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph -import com.twitter.util.logging.Logging +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PredicateGatedFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PredicateGatedFilter.scala index b263a87fc..6d4e6b0f3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PredicateGatedFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PredicateGatedFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch trait FilterPredicate[-Query <: PipelineQuery] { def apply(query: Query): Boolean diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslySeenTweetsFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslySeenTweetsFilter.scala index 047233a41..58b9e4d80 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslySeenTweetsFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslySeenTweetsFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.home_mixer.util.TweetImpressionsHelper -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.home_mixer.util.TweetImpressionsHelper +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Filter out users' previously seen tweets from 2 sources: diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedAncestorsFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedAncestorsFilter.scala index 42b0ad51a..a50b7fd95 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedAncestorsFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedAncestorsFilter.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.common_internal.analytics.twitter_client_user_agent_parser.UserAgent -import com.twitter.home_mixer.model.HomeFeatures.IsAncestorCandidateFeature -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.injection.store.persistence.TimelinePersistenceUtils -import com.twitter.timelines.util.client_info.ClientPlatform +import com.ExTwitter.common_internal.analytics.ExTwitter_client_user_agent_parser.UserAgent +import com.ExTwitter.home_mixer.model.HomeFeatures.IsAncestorCandidateFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.injection.store.persistence.TimelinePersistenceUtils +import com.ExTwitter.timelines.util.client_info.ClientPlatform object PreviouslyServedAncestorsFilter extends Filter[PipelineQuery, TweetCandidate] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetPreviewsFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetPreviewsFilter.scala index 0ff820479..91916ab99 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetPreviewsFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetPreviewsFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.model.HomeFeatures.ServedTweetPreviewIdsFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedTweetPreviewIdsFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object PreviouslyServedTweetPreviewsFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetsFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetsFilter.scala index 56b6a1c0b..5c42de635 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetsFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/PreviouslyServedTweetsFilter.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.model.HomeFeatures.GetOlderFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.GetOlderFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object PreviouslyServedTweetsFilter extends Filter[PipelineQuery, TweetCandidate] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RejectTweetFromViewerFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RejectTweetFromViewerFilter.scala index c25d9ec2b..bbfc4ef07 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RejectTweetFromViewerFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RejectTweetFromViewerFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object RejectTweetFromViewerFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/ReplyFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/ReplyFilter.scala index a1b99df66..c754830e5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/ReplyFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/ReplyFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object ReplyFilter extends Filter[PipelineQuery, TweetCandidate] { override val identifier: FilterIdentifier = FilterIdentifier("Reply") diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetDeduplicationFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetDeduplicationFilter.scala index 1e1f7f03a..ef329c7a3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetDeduplicationFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetDeduplicationFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch import scala.collection.mutable object RetweetDeduplicationFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetFilter.scala index 0ffc4b00c..9977dd9cb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter/RetweetFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.filter +package com.ExTwitter.home_mixer.functional_component.filter -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object RetweetFilter extends Filter[PipelineQuery, TweetCandidate] { override val identifier: FilterIdentifier = FilterIdentifier("Retweet") diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/BUILD.bazel index 6be06dee9..163ca09d9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/BUILD.bazel @@ -4,17 +4,17 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/gate", - "src/thrift/com/twitter/gizmoduck:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/gate", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", "stitch/stitch-socialgraph", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/DismissFatigueGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/DismissFatigueGate.scala index b35a6cda5..abc50947c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/DismissFatigueGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/DismissFatigueGate.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.gate +package com.ExTwitter.home_mixer.functional_component.gate -import com.twitter.conversions.DurationOps._ -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.manhattan.DismissInfo -import com.twitter.timelineservice.suggests.thriftscala.SuggestType -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.manhattan.DismissInfo +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.util.Duration object DismissFatigueGate { // how long a dismiss action from user needs to be respected diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/ExcludeSoftUserGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/ExcludeSoftUserGate.scala index a86159036..738489607 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/ExcludeSoftUserGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/ExcludeSoftUserGate.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.functional_component.gate +package com.ExTwitter.home_mixer.functional_component.gate -import com.twitter.gizmoduck.{thriftscala => t} -import com.twitter.home_mixer.model.HomeFeatures.UserTypeFeature -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.gizmoduck.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.UserTypeFeature +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A Soft User is a user who is in the gradual onboarding state. This gate can be diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextGate.scala index 0ffe6793e..810f76b13 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextGate.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.functional_component.gate +package com.ExTwitter.home_mixer.functional_component.gate -import com.twitter.home_mixer.model.request.DeviceContext.RequestContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.request.DeviceContext.RequestContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Gate that fetches the request context from the device context and diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextNotGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextNotGate.scala index c52f05f75..159e4101a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextNotGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/RequestContextNotGate.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.functional_component.gate +package com.ExTwitter.home_mixer.functional_component.gate -import com.twitter.home_mixer.model.request.DeviceContext.RequestContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.request.DeviceContext.RequestContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Gate that fetches the request context from the device context and diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/SupportedLanguagesGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/SupportedLanguagesGate.scala index 53b681236..7ae35ff9b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/SupportedLanguagesGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/SupportedLanguagesGate.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.functional_component.gate +package com.ExTwitter.home_mixer.functional_component.gate -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object SupportedLanguagesGate extends Gate[PipelineQuery] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/TimelinesPersistenceStoreLastInjectionGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/TimelinesPersistenceStoreLastInjectionGate.scala index 31fff2306..26b3b3733 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/TimelinesPersistenceStoreLastInjectionGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate/TimelinesPersistenceStoreLastInjectionGate.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.functional_component.gate +package com.ExTwitter.home_mixer.functional_component.gate -import com.twitter.common_internal.analytics.twitter_client_user_agent_parser.UserAgent -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.persistence.TimelineResponseV3 -import com.twitter.timelinemixer.injection.store.persistence.TimelinePersistenceUtils -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.util.client_info.ClientPlatform -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.common_internal.analytics.ExTwitter_client_user_agent_parser.UserAgent +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseV3 +import com.ExTwitter.timelinemixer.injection.store.persistence.TimelinePersistenceUtils +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.util.client_info.ClientPlatform +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time /** * Gate used to reduce the frequency of injections. Note that the actual interval between injections may be diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/BUILD.bazel index 67763235b..cc3f6f760 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "common-internal/analytics/twitter-client-user-agent-parser/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", + "common-internal/analytics/ExTwitter-client-user-agent-parser/src/main/scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", "timelineservice/common:model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/EditedTweetsCandidatePipelineQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/EditedTweetsCandidatePipelineQueryTransformer.scala index 8753f2f28..3dfe9af79 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/EditedTweetsCandidatePipelineQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/query_transformer/EditedTweetsCandidatePipelineQueryTransformer.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.query_transformer +package com.ExTwitter.home_mixer.functional_component.query_transformer -import com.twitter.common_internal.analytics.twitter_client_user_agent_parser.UserAgent -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelinemixer.clients.persistence.EntryWithItemIds -import com.twitter.timelines.persistence.thriftscala.RequestType -import com.twitter.timelines.util.client_info.ClientPlatform -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.util.Time +import com.ExTwitter.common_internal.analytics.ExTwitter_client_user_agent_parser.UserAgent +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelinemixer.clients.persistence.EntryWithItemIds +import com.ExTwitter.timelines.persistence.thriftscala.RequestType +import com.ExTwitter.timelines.util.client_info.ClientPlatform +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.util.Time object EditedTweetsCandidatePipelineQueryTransformer extends CandidatePipelineQueryTransformer[PipelineQuery, Seq[Long]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/BUILD.bazel index 99605204c..37f64d05c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/BUILD.bazel @@ -3,14 +3,14 @@ scala_library( compiler_option_sets = ["fatal_warnings"], strict_deps = True, dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "src/thrift/com/twitter/timelines/common:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "src/thrift/com/ExTwitter/timelines/common:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", "timelineservice/common:model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/FeedbackFatigueScorer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/FeedbackFatigueScorer.scala index ceb71139e..346822107 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/FeedbackFatigueScorer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/FeedbackFatigueScorer.scala @@ -1,27 +1,27 @@ -package com.twitter.home_mixer.functional_component.scorer +package com.ExTwitter.home_mixer.functional_component.scorer -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.util.CandidatesUtil -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.identifier.ScorerIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.common.{thriftscala => tl} -import com.twitter.timelineservice.model.FeedbackEntry -import com.twitter.timelineservice.{thriftscala => tls} -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.identifier.ScorerIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.common.{thriftscala => tl} +import com.ExTwitter.timelineservice.model.FeedbackEntry +import com.ExTwitter.timelineservice.{thriftscala => tls} +import com.ExTwitter.util.Time import scala.collection.mutable object FeedbackFatigueScorer diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/OONTweetScalingScorer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/OONTweetScalingScorer.scala index 4b1cec4a5..7a511fcb5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/OONTweetScalingScorer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer/OONTweetScalingScorer.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.scorer +package com.ExTwitter.home_mixer.functional_component.scorer -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.ScorerIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.ScorerIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Scales scores of each out-of-network tweet by the specified scale factor diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/BUILD.bazel index 3689de6ea..b5d281b64 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/BUILD.bazel @@ -4,21 +4,21 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/selector", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/identifier", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/scala/com/twitter/suggests/controller_data", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/selector", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/identifier", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/scala/com/ExTwitter/suggests/controller_data", "stringcenter/client", "stringcenter/client/src/main/java", ], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/DebunchCandidates.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/DebunchCandidates.scala index 648174273..1264080e6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/DebunchCandidates.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/DebunchCandidates.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.functional_component.selector +package com.ExTwitter.home_mixer.functional_component.selector -import com.twitter.home_mixer.functional_component.selector.DebunchCandidates.TrailingTweetsMinSize -import com.twitter.home_mixer.functional_component.selector.DebunchCandidates.TrailingTweetsPortionToKeep -import com.twitter.home_mixer.model.HomeFeatures.GetNewerFeature -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.common.CandidateScope.PartitionedCandidates -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.selector.SelectorResult -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.functional_component.selector.DebunchCandidates.TrailingTweetsMinSize +import com.ExTwitter.home_mixer.functional_component.selector.DebunchCandidates.TrailingTweetsPortionToKeep +import com.ExTwitter.home_mixer.model.HomeFeatures.GetNewerFeature +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope.PartitionedCandidates +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.selector.SelectorResult +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery trait MustDebunch { def apply(candidate: CandidateWithDetails): Boolean diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateConversationModuleId.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateConversationModuleId.scala index bbde0ed0d..57741f376 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateConversationModuleId.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateConversationModuleId.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.functional_component.selector +package com.ExTwitter.home_mixer.functional_component.selector -import com.twitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.common.CandidateScope.PartitionedCandidates -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.selector.SelectorResult -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope.PartitionedCandidates +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.selector.SelectorResult +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * This selector updates the id of the conversation modules to be the head of the module's id. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateHomeClientEventDetails.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateHomeClientEventDetails.scala index c7944b506..4244e900a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateHomeClientEventDetails.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateHomeClientEventDetails.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.functional_component.selector +package com.ExTwitter.home_mixer.functional_component.selector -import com.twitter.home_mixer.functional_component.decorator.builder.HomeClientEventDetailsBuilder -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.home_mixer.model.HomeFeatures.ConversationModule2DisplayedTweetsFeature -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleHasGapFeature -import com.twitter.home_mixer.model.HomeFeatures.HasRandomTweetFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRandomTweetAboveFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature -import com.twitter.home_mixer.model.HomeFeatures.PositionFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedInConversationModuleFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedSizeFeature -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.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.selector.SelectorResult -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeClientEventDetailsBuilder +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModule2DisplayedTweetsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleHasGapFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasRandomTweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRandomTweetAboveFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PositionFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedInConversationModuleFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedSizeFeature +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.selector.SelectorResult +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Builds serialized tweet type metrics controller data and updates Client Event Details diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateNewTweetsPillDecoration.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateNewTweetsPillDecoration.scala index a805ae1a7..46da7866b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateNewTweetsPillDecoration.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector/UpdateNewTweetsPillDecoration.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.functional_component.selector +package com.ExTwitter.home_mixer.functional_component.selector -import com.twitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration.NumAvatars -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.param.HomeGlobalParams.EnableNewTweetsPillAvatarsParam -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.ShowAlertCandidate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation -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.SelectorResult -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.ShowAlert -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stringcenter.client.StringCenter -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration.NumAvatars +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableNewTweetsPillAvatarsParam +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.selector.SelectorResult +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ShowAlert +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.stringcenter.client.core.ExternalString object UpdateNewTweetsPillDecoration { val NumAvatars = 3 diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/BUILD.bazel index f352ce63a..a5fbe709d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/BUILD.bazel @@ -5,43 +5,43 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "eventbus/client/src/main/scala/com/twitter/eventbus/client", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "eventbus/client/src/main/scala/com/ExTwitter/eventbus/client", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timeline_logging", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "kafka/finagle-kafka/finatra-kafka/src/main/scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_subscribe_module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "src/scala/com/twitter/timelines/prediction/common/adapters", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/thrift/com/twitter/timelines/impression:thrift-scala", - "src/thrift/com/twitter/timelines/impression_bloom_filter:thrift-scala", - "src/thrift/com/twitter/timelines/impression_store:thrift-scala", - "src/thrift/com/twitter/timelines/served_candidates_logging:served_candidates_logging-scala", - "src/thrift/com/twitter/timelines/suggests/common:poly_data_record-java", - "src/thrift/com/twitter/timelines/timeline_logging:thrift-scala", - "src/thrift/com/twitter/user_session_store:thrift-scala", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/who_to_subscribe_module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/thrift/com/ExTwitter/timelines/impression:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_bloom_filter:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_store:thrift-scala", + "src/thrift/com/ExTwitter/timelines/served_candidates_logging:served_candidates_logging-scala", + "src/thrift/com/ExTwitter/timelines/suggests/common:poly_data_record-java", + "src/thrift/com/ExTwitter/timelines/timeline_logging:thrift-scala", + "src/thrift/com/ExTwitter/user_session_store:thrift-scala", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", "timelines/ml:kafka", - "timelines/ml/cont_train/common/client/src/main/scala/com/twitter/timelines/ml/cont_train/common/client/kafka", - "timelines/ml/cont_train/common/domain/src/main/scala/com/twitter/timelines/ml/cont_train/common/domain/non_scalding", - "timelines/src/main/scala/com/twitter/timelines/clientconfig", - "timelines/src/main/scala/com/twitter/timelines/clients/manhattan/store", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/impressionbloomfilter", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/store", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "timelines/ml/cont_train/common/client/src/main/scala/com/ExTwitter/timelines/ml/cont_train/common/client/kafka", + "timelines/ml/cont_train/common/domain/src/main/scala/com/ExTwitter/timelines/ml/cont_train/common/domain/non_scalding", + "timelines/src/main/scala/com/ExTwitter/timelines/clientconfig", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/manhattan/store", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/impressionbloomfilter", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/store", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", "timelineservice/common:model", - "user_session_store/src/main/scala/com/twitter/user_session_store", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/ClientEventsBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/ClientEventsBuilder.scala index a5cf739d3..f961c520a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/ClientEventsBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/ClientEventsBuilder.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.functional_component.decorator.HomeQueryTypePredicates -import com.twitter.home_mixer.functional_component.decorator.builder.HomeTweetTypePredicates -import com.twitter.home_mixer.model.HomeFeatures.AccountAgeFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.VideoDurationMsFeature -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.ListTweetsProduct -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.product_mixer.component_library.side_effect.ScribeClientEventSideEffect.ClientEvent -import com.twitter.product_mixer.component_library.side_effect.ScribeClientEventSideEffect.EventNamespace -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.functional_component.decorator.HomeQueryTypePredicates +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeTweetTypePredicates +import com.ExTwitter.home_mixer.model.HomeFeatures.AccountAgeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.VideoDurationMsFeature +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.ListTweetsProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.product_mixer.component_library.side_effect.ScribeClientEventSideEffect.ClientEvent +import com.ExTwitter.product_mixer.component_library.side_effect.ScribeClientEventSideEffect.EventNamespace +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil private[side_effect] sealed trait ClientEventsBuilder { private val FollowingSection = Some("latest") diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeClientEventSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeClientEventSideEffect.scala index a8feef707..67cbff994 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeClientEventSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeClientEventSideEffect.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.clientapp.thriftscala.LogEvent -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.side_effect.ScribeClientEventSideEffect -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.clientapp.thriftscala.LogEvent +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.side_effect.ScribeClientEventSideEffect +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Side effect that logs served tweet metrics to Scribe as client events. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeServedCandidatesSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeServedCandidatesSideEffect.scala index 3f19dfc99..5345f7538 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeServedCandidatesSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/HomeScribeServedCandidatesSideEffect.scala @@ -1,47 +1,47 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.finagle.tracing.Trace -import com.twitter.home_mixer.marshaller.timeline_logging.PromotedTweetDetailsMarshaller -import com.twitter.home_mixer.marshaller.timeline_logging.TweetDetailsMarshaller -import com.twitter.home_mixer.marshaller.timeline_logging.WhoToFollowDetailsMarshaller -import com.twitter.home_mixer.model.HomeFeatures.GetInitialFeature -import com.twitter.home_mixer.model.HomeFeatures.GetMiddleFeature -import com.twitter.home_mixer.model.HomeFeatures.GetNewerFeature -import com.twitter.home_mixer.model.HomeFeatures.GetOlderFeature -import com.twitter.home_mixer.model.HomeFeatures.HasDarkRequestFeature -import com.twitter.home_mixer.model.HomeFeatures.RequestJoinIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature -import com.twitter.home_mixer.model.request.DeviceContext.RequestContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeServedCandidatesFlag -import com.twitter.home_mixer.param.HomeGlobalParams.EnableScribeServedCandidatesParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.component_library.model.candidate.BaseUserCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowCandidateDecorator -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidateDecorator -import com.twitter.product_mixer.component_library.side_effect.ScribeLogEventSideEffect -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.AddEntriesTimelineInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.ModuleItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.timeline_logging.{thriftscala => thrift} -import com.twitter.util.Time +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.home_mixer.marshaller.timeline_logging.PromotedTweetDetailsMarshaller +import com.ExTwitter.home_mixer.marshaller.timeline_logging.TweetDetailsMarshaller +import com.ExTwitter.home_mixer.marshaller.timeline_logging.WhoToFollowDetailsMarshaller +import com.ExTwitter.home_mixer.model.HomeFeatures.GetInitialFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.GetMiddleFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.GetNewerFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.GetOlderFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasDarkRequestFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RequestJoinIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature +import com.ExTwitter.home_mixer.model.request.DeviceContext.RequestContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeServedCandidatesFlag +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableScribeServedCandidatesParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseUserCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowCandidateDecorator +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidateDecorator +import com.ExTwitter.product_mixer.component_library.side_effect.ScribeLogEventSideEffect +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.AddEntriesTimelineInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ModuleItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.timeline_logging.{thriftscala => thrift} +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsEventBusSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsEventBusSideEffect.scala index c0437767e..ea66711c1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsEventBusSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsEventBusSideEffect.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.eventbus.client.EventBusPublisher -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.impressionstore.thriftscala.Impression -import com.twitter.timelines.impressionstore.thriftscala.ImpressionList -import com.twitter.timelines.impressionstore.thriftscala.PublishedImpressionList -import com.twitter.timelines.impressionstore.thriftscala.SurfaceArea -import com.twitter.util.Time +import com.ExTwitter.eventbus.client.EventBusPublisher +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.impressionstore.thriftscala.Impression +import com.ExTwitter.timelines.impressionstore.thriftscala.ImpressionList +import com.ExTwitter.timelines.impressionstore.thriftscala.PublishedImpressionList +import com.ExTwitter.timelines.impressionstore.thriftscala.SurfaceArea +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsManhattanSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsManhattanSideEffect.scala index bf365f1a6..de230f9c4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsManhattanSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishClientSentImpressionsManhattanSideEffect.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.home_mixer.model.HomeFeatures.TweetImpressionsFeature -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.impression.{thriftscala => t} -import com.twitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClient +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetImpressionsFeature +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.impression.{thriftscala => t} +import com.ExTwitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClient import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishImpressionBloomFilterSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishImpressionBloomFilterSideEffect.scala index f965bafac..5ebce826a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishImpressionBloomFilterSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/PublishImpressionBloomFilterSideEffect.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.home_mixer.model.HomeFeatures.ImpressionBloomFilterFeature -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.clients.manhattan.store.ManhattanStoreClient -import com.twitter.timelines.impressionbloomfilter.{thriftscala => blm} +import com.ExTwitter.home_mixer.model.HomeFeatures.ImpressionBloomFilterFeature +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.clients.manhattan.store.ManhattanStoreClient +import com.ExTwitter.timelines.impressionbloomfilter.{thriftscala => blm} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/TruncateTimelinesPersistenceStoreSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/TruncateTimelinesPersistenceStoreSideEffect.scala index 63855d3b8..e9812c719 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/TruncateTimelinesPersistenceStoreSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/TruncateTimelinesPersistenceStoreSideEffect.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.param.HomeGlobalParams.TimelinesPersistenceStoreMaxEntriesPerClient -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient -import com.twitter.timelinemixer.clients.persistence.TimelineResponseV3 -import com.twitter.timelineservice.model.TimelineQuery -import com.twitter.timelineservice.model.core.TimelineKind +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.param.HomeGlobalParams.TimelinesPersistenceStoreMaxEntriesPerClient +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseV3 +import com.ExTwitter.timelineservice.model.TimelineQuery +import com.ExTwitter.timelineservice.model.core.TimelineKind import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateLastNonPollingTimeSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateLastNonPollingTimeSideEffect.scala index 24199a79c..7a004716b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateLastNonPollingTimeSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateLastNonPollingTimeSideEffect.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.home_mixer.model.HomeFeatures.FollowingLastNonPollingTimeFeature -import com.twitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature -import com.twitter.home_mixer.model.HomeFeatures.PollingFeature -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.side_effect.UserSessionStoreUpdateSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelineservice.model.util.FinagleRequestContext -import com.twitter.user_session_store.ReadWriteUserSessionStore -import com.twitter.user_session_store.WriteRequest -import com.twitter.user_session_store.thriftscala.NonPollingTimestamps -import com.twitter.user_session_store.thriftscala.UserSessionField -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowingLastNonPollingTimeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PollingFeature +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.side_effect.UserSessionStoreUpdateSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelineservice.model.util.FinagleRequestContext +import com.ExTwitter.user_session_store.ReadWriteUserSessionStore +import com.ExTwitter.user_session_store.WriteRequest +import com.ExTwitter.user_session_store.thriftscala.NonPollingTimestamps +import com.ExTwitter.user_session_store.thriftscala.UserSessionField +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateTimelinesPersistenceStoreSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateTimelinesPersistenceStoreSideEffect.scala index 5a1bb0f6b..003116cbd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateTimelinesPersistenceStoreSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect/UpdateTimelinesPersistenceStoreSideEffect.scala @@ -1,38 +1,38 @@ -package com.twitter.home_mixer.functional_component.side_effect +package com.ExTwitter.home_mixer.functional_component.side_effect -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.HomeFeatures.IsTweetPreviewFeature -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowCandidateDecorator -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidateDecorator -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.AddEntriesTimelineInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.ReplaceEntryTimelineInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.ShowCoverInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinemixer.clients.persistence.EntryWithItemIds -import com.twitter.timelinemixer.clients.persistence.ItemIds -import com.twitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient -import com.twitter.timelinemixer.clients.persistence.TimelineResponseV3 -import com.twitter.timelines.persistence.thriftscala.TweetScoreV1 -import com.twitter.timelines.persistence.{thriftscala => persistence} -import com.twitter.timelineservice.model.TimelineQuery -import com.twitter.timelineservice.model.TimelineQueryOptions -import com.twitter.timelineservice.model.TweetScore -import com.twitter.timelineservice.model.core.TimelineKind -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.util.Time -import com.twitter.{timelineservice => tls} +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.HomeFeatures.IsTweetPreviewFeature +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowCandidateDecorator +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidateDecorator +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.AddEntriesTimelineInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ReplaceEntryTimelineInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ShowCoverInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinemixer.clients.persistence.EntryWithItemIds +import com.ExTwitter.timelinemixer.clients.persistence.ItemIds +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseV3 +import com.ExTwitter.timelines.persistence.thriftscala.TweetScoreV1 +import com.ExTwitter.timelines.persistence.{thriftscala => persistence} +import com.ExTwitter.timelineservice.model.TimelineQuery +import com.ExTwitter.timelineservice.model.TimelineQueryOptions +import com.ExTwitter.timelineservice.model.TweetScore +import com.ExTwitter.timelineservice.model.core.TimelineKind +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.util.Time +import com.ExTwitter.{timelineservice => tls} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/BUILD.bazel index fd35daeeb..a4f323ad3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/BUILD.bazel @@ -4,15 +4,15 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", ], exports = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/DeviceContextUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/DeviceContextUnmarshaller.scala index b2c6e6347..06c7732b4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/DeviceContextUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/DeviceContextUnmarshaller.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.marshaller.request +package com.ExTwitter.home_mixer.marshaller.request -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.{thriftscala => t} +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerDebugParamsUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerDebugParamsUnmarshaller.scala index 81a9abf2b..977c3a544 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerDebugParamsUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerDebugParamsUnmarshaller.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.marshaller.request +package com.ExTwitter.home_mixer.marshaller.request -import com.twitter.home_mixer.model.request.HomeMixerDebugOptions -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.functional_component.marshaller.request.FeatureValueUnmarshaller -import com.twitter.product_mixer.core.model.marshalling.request.DebugParams -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.request.HomeMixerDebugOptions +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.marshaller.request.FeatureValueUnmarshaller +import com.ExTwitter.product_mixer.core.model.marshalling.request.DebugParams +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductContextUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductContextUnmarshaller.scala index ec3a183b9..26b0e0547 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductContextUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductContextUnmarshaller.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.marshaller.request +package com.ExTwitter.home_mixer.marshaller.request -import com.twitter.home_mixer.model.request.FollowingProductContext -import com.twitter.home_mixer.model.request.ForYouProductContext -import com.twitter.home_mixer.model.request.ListRecommendedUsersProductContext -import com.twitter.home_mixer.model.request.ListTweetsProductContext -import com.twitter.home_mixer.model.request.ScoredTweetsProductContext -import com.twitter.home_mixer.model.request.SubscribedProductContext -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.model.marshalling.request.ProductContext +import com.ExTwitter.home_mixer.model.request.FollowingProductContext +import com.ExTwitter.home_mixer.model.request.ForYouProductContext +import com.ExTwitter.home_mixer.model.request.ListRecommendedUsersProductContext +import com.ExTwitter.home_mixer.model.request.ListTweetsProductContext +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProductContext +import com.ExTwitter.home_mixer.model.request.SubscribedProductContext +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.model.marshalling.request.ProductContext import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductUnmarshaller.scala index f5d0d002b..a134dc3c4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerProductUnmarshaller.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.marshaller.request +package com.ExTwitter.home_mixer.marshaller.request -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.ListRecommendedUsersProduct -import com.twitter.home_mixer.model.request.ListTweetsProduct -import com.twitter.home_mixer.model.request.ScoredTweetsProduct -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.ListRecommendedUsersProduct +import com.ExTwitter.home_mixer.model.request.ListTweetsProduct +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerRequestUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerRequestUnmarshaller.scala index b8894c8b0..a74457cfb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerRequestUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/request/HomeMixerRequestUnmarshaller.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.marshaller.request +package com.ExTwitter.home_mixer.marshaller.request -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.functional_component.marshaller.request.ClientContextUnmarshaller +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.marshaller.request.ClientContextUnmarshaller import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/BUILD.bazel index efcad840b..84c1845ed 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "src/thrift/com/twitter/timelines/timeline_logging:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "src/thrift/com/ExTwitter/timelines/timeline_logging:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/PromotedTweetDetailsMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/PromotedTweetDetailsMarshaller.scala index d913f8d64..04cc28c61 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/PromotedTweetDetailsMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/PromotedTweetDetailsMarshaller.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.marshaller.timeline_logging +package com.ExTwitter.home_mixer.marshaller.timeline_logging -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.timelines.timeline_logging.{thriftscala => thriftlog} +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.timelines.timeline_logging.{thriftscala => thriftlog} object PromotedTweetDetailsMarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/TweetDetailsMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/TweetDetailsMarshaller.scala index 8e1c475d5..78870f923 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/TweetDetailsMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/TweetDetailsMarshaller.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.marshaller.timeline_logging +package com.ExTwitter.home_mixer.marshaller.timeline_logging -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -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.functional_component.marshaller.response.urt.metadata.GeneralContextTypeMarshaller -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ConversationGeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContext -import com.twitter.timelines.service.{thriftscala => tst} -import com.twitter.timelines.timeline_logging.{thriftscala => thriftlog} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.metadata.GeneralContextTypeMarshaller +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ConversationGeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContext +import com.ExTwitter.timelines.service.{thriftscala => tst} +import com.ExTwitter.timelines.timeline_logging.{thriftscala => thriftlog} object TweetDetailsMarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/WhoToFollowDetailsMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/WhoToFollowDetailsMarshaller.scala index 4c0b4dd1b..7f6c06383 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/WhoToFollowDetailsMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timeline_logging/WhoToFollowDetailsMarshaller.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.marshaller.timeline_logging +package com.ExTwitter.home_mixer.marshaller.timeline_logging -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem -import com.twitter.timelines.timeline_logging.{thriftscala => thriftlog} +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem +import com.ExTwitter.timelines.timeline_logging.{thriftscala => thriftlog} object WhoToFollowDetailsMarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/BUILD.bazel index ebf305ead..dbad0a8d6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/BUILD.bazel @@ -4,8 +4,8 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "src/thrift/com/twitter/timelineservice:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "src/thrift/com/ExTwitter/timelineservice:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorMarshaller.scala index 40e25a8ab..43744c84c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorMarshaller.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.marshaller.timelines +package com.ExTwitter.home_mixer.marshaller.timelines -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.timelines.service.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.timelines.service.{thriftscala => t} object ChronologicalCursorMarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorUnmarshaller.scala index 739c490ea..6262d411a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/ChronologicalCursorUnmarshaller.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.marshaller.timelines +package com.ExTwitter.home_mixer.marshaller.timelines -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.timelines.service.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.timelines.service.{thriftscala => t} object ChronologicalCursorUnmarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/DeviceContextMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/DeviceContextMarshaller.scala index 097d8dea4..da13512a0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/DeviceContextMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/DeviceContextMarshaller.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.marshaller.timelines +package com.ExTwitter.home_mixer.marshaller.timelines -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.timelineservice.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/RecommendedUsersCursorUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/RecommendedUsersCursorUnmarshaller.scala index 693684558..a539d66f1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/RecommendedUsersCursorUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/RecommendedUsersCursorUnmarshaller.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.marshaller.timelines +package com.ExTwitter.home_mixer.marshaller.timelines -import com.twitter.product_mixer.component_library.model.cursor.UrtUnorderedExcludeIdsCursor -import com.twitter.timelines.service.{thriftscala => t} -import com.twitter.util.Time +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtUnorderedExcludeIdsCursor +import com.ExTwitter.timelines.service.{thriftscala => t} +import com.ExTwitter.util.Time object RecommendedUsersCursorUnmarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TimelineServiceCursorMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TimelineServiceCursorMarshaller.scala index cbc956ad4..7d1864adf 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TimelineServiceCursorMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TimelineServiceCursorMarshaller.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.marshaller.timelines +package com.ExTwitter.home_mixer.marshaller.timelines -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.timelineservice.{thriftscala => t} object TimelineServiceCursorMarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TopicContextFunctionalityTypeUnmarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TopicContextFunctionalityTypeUnmarshaller.scala index f542cd535..65b5c4961 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TopicContextFunctionalityTypeUnmarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines/TopicContextFunctionalityTypeUnmarshaller.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.marshaller.timelines +package com.ExTwitter.home_mixer.marshaller.timelines -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContextFunctionalityType -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContextFunctionalityType +import com.ExTwitter.timelines.render.{thriftscala => urt} object TopicContextFunctionalityTypeUnmarshaller { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/BUILD.bazel index 65ece62a3..d111cbfc9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/BUILD.bazel @@ -4,39 +4,39 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/java/com/twitter/ml/api:api-base", - "src/java/com/twitter/ml/api/constant", - "src/scala/com/twitter/ml/api:api-base", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/scala/com/twitter/timelines/prediction/features/recap", - "src/scala/com/twitter/timelines/prediction/features/request_context", - "src/thrift/com/twitter/escherbird:tweet-annotation-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/timelines/conversation_features:conversation_features-scala", - "src/thrift/com/twitter/timelines/impression:thrift-scala", - "src/thrift/com/twitter/timelines/impression_bloom_filter:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/manhattan", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/persistence", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/java/com/ExTwitter/ml/api:api-base", + "src/java/com/ExTwitter/ml/api/constant", + "src/scala/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/scala/com/ExTwitter/timelines/prediction/features/recap", + "src/scala/com/ExTwitter/timelines/prediction/features/request_context", + "src/thrift/com/ExTwitter/escherbird:tweet-annotation-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/timelines/conversation_features:conversation_features-scala", + "src/thrift/com/ExTwitter/timelines/impression:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_bloom_filter:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/manhattan", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/persistence", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/model/candidate", "topic-social-proof/server/src/main/thrift:thrift-scala", - "tweetconvosvc/common/src/main/thrift/com/twitter/tweetconvosvc/tweet_ancestor:thrift-scala", + "tweetconvosvc/common/src/main/thrift/com/ExTwitter/tweetconvosvc/tweet_ancestor:thrift-scala", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/timelines/impression:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "tweetconvosvc/common/src/main/thrift/com/twitter/tweetconvosvc/tweet_ancestor:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/timelines/impression:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "tweetconvosvc/common/src/main/thrift/com/ExTwitter/tweetconvosvc/tweet_ancestor:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ClearCacheIncludeInstruction.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ClearCacheIncludeInstruction.scala index 85154e55b..319cb7b53 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ClearCacheIncludeInstruction.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ClearCacheIncludeInstruction.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.model +package com.ExTwitter.home_mixer.model -import com.twitter.home_mixer.model.request.DeviceContext.RequestContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.IncludeInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineEntry -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.home_mixer.model.request.DeviceContext.RequestContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.IncludeInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineEntry +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam /** * Include a clear cache timeline instruction when we satisfy these criteria: diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ContentFeatures.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ContentFeatures.scala index f141d67d1..e6ff6acd5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ContentFeatures.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/ContentFeatures.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.model +package com.ExTwitter.home_mixer.model -import com.twitter.escherbird.{thriftscala => esb} -import com.twitter.search.common.features.{thriftscala => sc} -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.escherbird.{thriftscala => esb} +import com.ExTwitter.search.common.features.{thriftscala => sc} +import com.ExTwitter.tweetypie.{thriftscala => tp} object ContentFeatures { val Empty: ContentFeatures = ContentFeatures( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/GapIncludeInstruction.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/GapIncludeInstruction.scala index c11631fc8..bc1828c3a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/GapIncludeInstruction.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/GapIncludeInstruction.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.model +package com.ExTwitter.home_mixer.model -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdBottomTweetFeature -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdResponseTruncatedFeature -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.IncludeInstruction -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineEntry -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdBottomTweetFeature +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdResponseTruncatedFeature +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.IncludeInstruction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineEntry +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Determine whether to include a Gap Cursor in the response based on whether a timeline diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeAdsQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeAdsQuery.scala index bfbe722fc..94926bcbe 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeAdsQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeAdsQuery.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.model +package com.ExTwitter.home_mixer.model -import com.twitter.adserver.thriftscala.RequestTriggerType -import com.twitter.home_mixer.model.HomeFeatures.GetInitialFeature -import com.twitter.home_mixer.model.HomeFeatures.GetNewerFeature -import com.twitter.home_mixer.model.HomeFeatures.GetOlderFeature -import com.twitter.home_mixer.model.HomeFeatures.PollingFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.adserver.thriftscala.RequestTriggerType +import com.ExTwitter.home_mixer.model.HomeFeatures.GetInitialFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.GetNewerFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.GetOlderFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PollingFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * These are for feeds needed for ads only. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeFeatures.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeFeatures.scala index fe085b1f9..d9ef25cc8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeFeatures.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/HomeFeatures.scala @@ -1,46 +1,46 @@ -package com.twitter.home_mixer.model +package com.ExTwitter.home_mixer.model -import com.twitter.core_workflows.user_model.{thriftscala => um} -import com.twitter.dal.personal_data.{thriftjava => pd} -import com.twitter.gizmoduck.{thriftscala => gt} -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.ml.api.constant.SharedFeatures -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.BoolDataRecordCompatible -import com.twitter.product_mixer.core.feature.datarecord.DataRecordFeature -import com.twitter.product_mixer.core.feature.datarecord.DataRecordOptionalFeature -import com.twitter.product_mixer.core.feature.datarecord.DoubleDataRecordCompatible -import com.twitter.product_mixer.core.feature.datarecord.LongDiscreteDataRecordCompatible -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContextFunctionalityType -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.search.common.features.{thriftscala => sc} -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelinemixer.clients.manhattan.DismissInfo -import com.twitter.timelinemixer.clients.persistence.TimelineResponseV3 -import com.twitter.timelinemixer.injection.model.candidate.AudioSpaceMetaData -import com.twitter.timelines.conversation_features.v1.thriftscala.ConversationFeatures -import com.twitter.timelines.impression.{thriftscala => imp} -import com.twitter.timelines.impressionbloomfilter.{thriftscala => blm} -import com.twitter.timelines.model.UserId -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures -import com.twitter.timelines.prediction.features.engagement_features.EngagementDataRecordFeatures -import com.twitter.timelines.prediction.features.recap.RecapFeatures -import com.twitter.timelines.prediction.features.request_context.RequestContextFeatures -import com.twitter.timelines.service.{thriftscala => tst} -import com.twitter.timelineservice.model.FeedbackEntry -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} -import com.twitter.tsp.{thriftscala => tsp} -import com.twitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} -import com.twitter.util.Time +import com.ExTwitter.core_workflows.user_model.{thriftscala => um} +import com.ExTwitter.dal.personal_data.{thriftjava => pd} +import com.ExTwitter.gizmoduck.{thriftscala => gt} +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.ml.api.constant.SharedFeatures +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.BoolDataRecordCompatible +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordFeature +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordOptionalFeature +import com.ExTwitter.product_mixer.core.feature.datarecord.DoubleDataRecordCompatible +import com.ExTwitter.product_mixer.core.feature.datarecord.LongDiscreteDataRecordCompatible +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.search.common.features.{thriftscala => sc} +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelinemixer.clients.manhattan.DismissInfo +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseV3 +import com.ExTwitter.timelinemixer.injection.model.candidate.AudioSpaceMetaData +import com.ExTwitter.timelines.conversation_features.v1.thriftscala.ConversationFeatures +import com.ExTwitter.timelines.impression.{thriftscala => imp} +import com.ExTwitter.timelines.impressionbloomfilter.{thriftscala => blm} +import com.ExTwitter.timelines.model.UserId +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.timelines.prediction.features.engagement_features.EngagementDataRecordFeatures +import com.ExTwitter.timelines.prediction.features.recap.RecapFeatures +import com.ExTwitter.timelines.prediction.features.request_context.RequestContextFeatures +import com.ExTwitter.timelines.service.{thriftscala => tst} +import com.ExTwitter.timelineservice.model.FeedbackEntry +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.tsp.{thriftscala => tsp} +import com.ExTwitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} +import com.ExTwitter.util.Time object HomeFeatures { // Candidate Features object AncestorsFeature extends Feature[TweetCandidate, Seq[ta.TweetAncestor]] object AudioSpaceMetaDataFeature extends Feature[TweetCandidate, Option[AudioSpaceMetaData]] - object TwitterListIdFeature extends Feature[TweetCandidate, Option[Long]] + object ExTwitterListIdFeature extends Feature[TweetCandidate, Option[Long]] /** * For Retweets, this should refer to the retweeting user. Use [[SourceUserIdFeature]] if you want to know diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/BUILD.bazel index 3883e454e..f3972ca41 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "dspbidder/thrift/src/main/thrift/com/twitter/dspbidder/commons:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", + "dspbidder/thrift/src/main/thrift/com/ExTwitter/dspbidder/commons:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", "timelineservice/common:model", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/DeviceContext.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/DeviceContext.scala index ef96865ca..a8479674f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/DeviceContext.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/DeviceContext.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.{timelineservice => tls} +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.{timelineservice => tls} case class DeviceContext( isPolling: Option[Boolean], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasListId.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasListId.scala index ece09a0d4..b60ad9623 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasListId.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasListId.scala @@ -1,4 +1,4 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request /** * [[HasListId]] enables shared components to access the list id shared by all list timeline products. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasSeenTweetIds.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasSeenTweetIds.scala index 0ec657384..84fbcdc9d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasSeenTweetIds.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HasSeenTweetIds.scala @@ -1,4 +1,4 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request /** * [[HasSeenTweetIds]] enables shared components to access the list of impressed tweet IDs diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerDebugOptions.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerDebugOptions.scala index 818380946..2325d1ca5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerDebugOptions.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerDebugOptions.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request -import com.twitter.product_mixer.core.model.marshalling.request.DebugOptions -import com.twitter.util.Time +import com.ExTwitter.product_mixer.core.model.marshalling.request.DebugOptions +import com.ExTwitter.util.Time case class HomeMixerDebugOptions( override val requestTimeOverride: Option[Time]) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProduct.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProduct.scala index 7c27c50d5..970d981a5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProduct.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProduct.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request -import com.twitter.product_mixer.core.model.common.identifier.ProductIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product /** * Identifier names on products can be used to create Feature Switch rules by product, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProductContext.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProductContext.scala index dddd733f3..4947d5f82 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProductContext.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerProductContext.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request -import com.twitter.dspbidder.commons.thriftscala.DspClientContext -import com.twitter.product_mixer.core.model.marshalling.request.ProductContext +import com.ExTwitter.dspbidder.commons.thriftscala.DspClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.ProductContext case class FollowingProductContext( deviceContext: Option[DeviceContext], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerRequest.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerRequest.scala index 34595c34c..d9fbd0302 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerRequest.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request/HomeMixerRequest.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.model.request +package com.ExTwitter.home_mixer.model.request -import com.twitter.product_mixer.core.model.marshalling.request.ClientContext -import com.twitter.product_mixer.core.model.marshalling.request.DebugParams -import com.twitter.product_mixer.core.model.marshalling.request.Product -import com.twitter.product_mixer.core.model.marshalling.request.ProductContext -import com.twitter.product_mixer.core.model.marshalling.request.Request +import com.ExTwitter.product_mixer.core.model.marshalling.request.ClientContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.DebugParams +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.model.marshalling.request.ProductContext +import com.ExTwitter.product_mixer.core.model.marshalling.request.Request case class HomeMixerRequest( override val clientContext: ClientContext, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/AdvertiserBrandSafetySettingsStoreModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/AdvertiserBrandSafetySettingsStoreModule.scala index d095d2054..117ccf6fb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/AdvertiserBrandSafetySettingsStoreModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/AdvertiserBrandSafetySettingsStoreModule.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storage.client.manhattan.kv.Guarantee -import com.twitter.storehaus.ReadableStore -import com.twitter.storehaus_internal.manhattan.ManhattanCluster -import com.twitter.storehaus_internal.manhattan.ManhattanClusters -import com.twitter.timelines.clients.ads.AdvertiserBrandSafetySettingsStore -import com.twitter.timelines.clients.manhattan.mhv3.ManhattanClientBuilder -import com.twitter.timelines.clients.manhattan.mhv3.ManhattanClientConfigWithDataset -import com.twitter.util.Duration +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storage.client.manhattan.kv.Guarantee +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.storehaus_internal.manhattan.ManhattanCluster +import com.ExTwitter.storehaus_internal.manhattan.ManhattanClusters +import com.ExTwitter.timelines.clients.ads.AdvertiserBrandSafetySettingsStore +import com.ExTwitter.timelines.clients.manhattan.mhv3.ManhattanClientBuilder +import com.ExTwitter.timelines.clients.manhattan.mhv3.ManhattanClientConfigWithDataset +import com.ExTwitter.util.Duration import javax.inject.Singleton -object AdvertiserBrandSafetySettingsStoreModule extends TwitterModule { +object AdvertiserBrandSafetySettingsStoreModule extends ExTwitterModule { @Provides @Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BUILD.bazel index b7fbca0d3..f27db4897 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BUILD.bazel @@ -4,87 +4,87 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:scrooge", - "3rdparty/jvm/com/twitter/bijection:thrift", - "3rdparty/jvm/com/twitter/src/java/com/twitter/logpipeline/client:logpipeline-event-publisher-thin", - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "3rdparty/jvm/com/ExTwitter/bijection:thrift", + "3rdparty/jvm/com/ExTwitter/src/java/com/ExTwitter/logpipeline/client:logpipeline-event-publisher-thin", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/io/netty:netty4-tcnative-boringssl-static", - "eventbus/client/src/main/scala/com/twitter/eventbus/client", + "eventbus/client/src/main/scala/com/ExTwitter/eventbus/client", "finagle-internal/finagle-grpc/src/main/scala", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/authentication", - "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/client", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/authentication", + "finagle-internal/mtls/src/main/scala/com/ExTwitter/finagle/mtls/client", "finagle/finagle-core/src/main", "finagle/finagle-memcached/src/main/scala", "finagle/finagle-mux/src/main/scala", "finagle/finagle-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "hermit/hermit-core/src/main/scala/com/twitter/hermit/store/common", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/store", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie", + "hermit/hermit-core/src/main/scala/com/ExTwitter/hermit/store/common", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/store", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/earlybird", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/tweetypie", "home-mixer/thrift/src/main/thrift:thrift-scala", "interests-service/thrift/src/main/thrift:thrift-scala", "people-discovery/api/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "product-mixer/shared-library/src/main/scala/com/twitter/product_mixer/shared_library/manhattan_client", - "product-mixer/shared-library/src/main/scala/com/twitter/product_mixer/shared_library/memcached_client", - "product-mixer/shared-library/src/main/scala/com/twitter/product_mixer/shared_library/thrift_client", - "servo/client/src/main/scala/com/twitter/servo/client", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "product-mixer/shared-library/src/main/scala/com/ExTwitter/product_mixer/shared_library/manhattan_client", + "product-mixer/shared-library/src/main/scala/com/ExTwitter/product_mixer/shared_library/memcached_client", + "product-mixer/shared-library/src/main/scala/com/ExTwitter/product_mixer/shared_library/thrift_client", + "servo/client/src/main/scala/com/ExTwitter/servo/client", "servo/manhattan", "servo/util", - "socialgraph/server/src/main/scala/com/twitter/socialgraph/util", - "src/scala/com/twitter/ml/featurestore/lib", - "src/scala/com/twitter/scalding_internal/multiformat/format", - "src/scala/com/twitter/storehaus_internal", - "src/scala/com/twitter/summingbird_internal/bijection:bijection-implicits", - "src/scala/com/twitter/timelines/util", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", - "src/thrift/com/twitter/clientapp/gen:clientapp-scala", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", - "src/thrift/com/twitter/manhattan:v1-scala", - "src/thrift/com/twitter/manhattan:v2-scala", - "src/thrift/com/twitter/onboarding/relevance/features:features-java", - "src/thrift/com/twitter/search:blender-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/service/metastore/gen:thrift-scala", - "src/thrift/com/twitter/socialgraph:thrift-scala", - "src/thrift/com/twitter/timelines/author_features:thrift-java", - "src/thrift/com/twitter/timelines/impression_bloom_filter:thrift-scala", - "src/thrift/com/twitter/timelines/impression_store:thrift-scala", - "src/thrift/com/twitter/timelines/real_graph:real_graph-scala", - "src/thrift/com/twitter/timelines/suggests/common:poly_data_record-java", - "src/thrift/com/twitter/timelines/timeline_logging:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/topic_recos:topic_recos-thrift-java", - "src/thrift/com/twitter/user_session_store:thrift-java", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "socialgraph/server/src/main/scala/com/ExTwitter/socialgraph/util", + "src/scala/com/ExTwitter/ml/featurestore/lib", + "src/scala/com/ExTwitter/scalding_internal/multiformat/format", + "src/scala/com/ExTwitter/storehaus_internal", + "src/scala/com/ExTwitter/summingbird_internal/bijection:bijection-implicits", + "src/scala/com/ExTwitter/timelines/util", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", + "src/thrift/com/ExTwitter/clientapp/gen:clientapp-scala", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", + "src/thrift/com/ExTwitter/manhattan:v1-scala", + "src/thrift/com/ExTwitter/manhattan:v2-scala", + "src/thrift/com/ExTwitter/onboarding/relevance/features:features-java", + "src/thrift/com/ExTwitter/search:blender-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/service/metastore/gen:thrift-scala", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", + "src/thrift/com/ExTwitter/timelines/author_features:thrift-java", + "src/thrift/com/ExTwitter/timelines/impression_bloom_filter:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_store:thrift-scala", + "src/thrift/com/ExTwitter/timelines/real_graph:real_graph-scala", + "src/thrift/com/ExTwitter/timelines/suggests/common:poly_data_record-java", + "src/thrift/com/ExTwitter/timelines/timeline_logging:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/topic_recos:topic_recos-thrift-java", + "src/thrift/com/ExTwitter/user_session_store:thrift-java", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "stitch/stitch-socialgraph", "stitch/stitch-tweetypie", - "strato/src/main/scala/com/twitter/strato/client", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/feedback", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/manhattan", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", + "strato/src/main/scala/com/ExTwitter/strato/client", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/feedback", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/manhattan", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", "timelines:decider", - "timelines/src/main/scala/com/twitter/timelines/clients/ads", - "timelines/src/main/scala/com/twitter/timelines/clients/manhattan", - "timelines/src/main/scala/com/twitter/timelines/clients/manhattan/store", - "timelines/src/main/scala/com/twitter/timelines/clients/predictionservice", - "timelines/src/main/scala/com/twitter/timelines/clients/strato", - "timelines/src/main/scala/com/twitter/timelines/clients/strato/topics", - "timelines/src/main/scala/com/twitter/timelines/clients/strato/twistly", - "timelines/src/main/scala/com/twitter/timelines/config", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/impressionbloomfilter", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/store", - "timelines/src/main/scala/com/twitter/timelines/util/stats", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", - "tweetconvosvc/client/src/main/scala/com/twitter/tweetconvosvc/client/builder", - "twitter-config/yaml", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/ads", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/manhattan", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/manhattan/store", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/predictionservice", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/strato", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/strato/topics", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/strato/twistly", + "timelines/src/main/scala/com/ExTwitter/timelines/config", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/impressionbloomfilter", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/store", + "timelines/src/main/scala/com/ExTwitter/timelines/util/stats", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", + "tweetconvosvc/client/src/main/scala/com/ExTwitter/tweetconvosvc/client/builder", + "ExTwitter-config/yaml", ], exports = [ - "timelines/src/main/scala/com/twitter/timelines/clients/predictionservice", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/predictionservice", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BlenderClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BlenderClientModule.scala index bc4045181..a6004985d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BlenderClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/BlenderClientModule.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.shared_library.thrift_client.FinagleThriftClientBuilder -import com.twitter.product_mixer.shared_library.thrift_client.NonIdempotent -import com.twitter.search.blender.thriftscala.BlenderService +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.shared_library.thrift_client.FinagleThriftClientBuilder +import com.ExTwitter.product_mixer.shared_library.thrift_client.NonIdempotent +import com.ExTwitter.search.blender.thriftscala.BlenderService import javax.inject.Singleton -object BlenderClientModule extends TwitterModule { +object BlenderClientModule extends ExTwitterModule { @Singleton @Provides diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ClientSentImpressionsPublisherModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ClientSentImpressionsPublisherModule.scala index f7c5e9bc7..148c6dba6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ClientSentImpressionsPublisherModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ClientSentImpressionsPublisherModule.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.eventbus.client.EventBusPublisher -import com.twitter.eventbus.client.EventBusPublisherBuilder -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.timelines.config.ConfigUtils -import com.twitter.timelines.config.Env -import com.twitter.timelines.impressionstore.thriftscala.PublishedImpressionList +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.eventbus.client.EventBusPublisher +import com.ExTwitter.eventbus.client.EventBusPublisherBuilder +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.timelines.config.ConfigUtils +import com.ExTwitter.timelines.config.Env +import com.ExTwitter.timelines.impressionstore.thriftscala.PublishedImpressionList import javax.inject.Singleton -object ClientSentImpressionsPublisherModule extends TwitterModule with ConfigUtils { +object ClientSentImpressionsPublisherModule extends ExTwitterModule with ConfigUtils { private val serviceName = "home-mixer" @Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ConversationServiceModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ConversationServiceModule.scala index 9a7d8771c..9c7199215 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ConversationServiceModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ConversationServiceModule.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.tweetconvosvc.thriftscala.ConversationService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.tweetconvosvc.thriftscala.ConversationService +import com.ExTwitter.util.Duration import org.apache.thrift.protocol.TCompactProtocol object ConversationServiceModule diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/FeedbackHistoryClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/FeedbackHistoryClientModule.scala index c065f7b35..23b2f0727 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/FeedbackHistoryClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/FeedbackHistoryClientModule.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.timelinemixer.clients.feedback.FeedbackHistoryManhattanClient -import com.twitter.timelinemixer.clients.feedback.FeedbackHistoryManhattanClientConfig -import com.twitter.timelines.clients.manhattan.mhv3.ManhattanClientBuilder -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.timelinemixer.clients.feedback.FeedbackHistoryManhattanClient +import com.ExTwitter.timelinemixer.clients.feedback.FeedbackHistoryManhattanClientConfig +import com.ExTwitter.timelines.clients.manhattan.mhv3.ManhattanClientBuilder +import com.ExTwitter.util.Duration import javax.inject.Singleton -object FeedbackHistoryClientModule extends TwitterModule { +object FeedbackHistoryClientModule extends ExTwitterModule { private val ProdDataset = "feedback_history" private val StagingDataset = "feedback_history_nonprod" private final val Timeout = "mh_feedback_history.timeout" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeAdsCandidateSourceModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeAdsCandidateSourceModule.scala index 73e1500a0..e3970df5d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeAdsCandidateSourceModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeAdsCandidateSourceModule.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module -import com.twitter.adserver.thriftscala.NewAdServer -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration +import com.ExTwitter.adserver.thriftscala.NewAdServer +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration object HomeAdsCandidateSourceModule extends ThriftMethodBuilderClientModule[ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerFlagsModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerFlagsModule.scala index e31d2d9bc..d666c6e24 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerFlagsModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerFlagsModule.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module -import com.twitter.conversions.DurationOps.RichDuration -import com.twitter.home_mixer.param.HomeMixerFlagName -import com.twitter.inject.TwitterModule -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps.RichDuration +import com.ExTwitter.home_mixer.param.HomeMixerFlagName +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.util.Duration -object HomeMixerFlagsModule extends TwitterModule { +object HomeMixerFlagsModule extends ExTwitterModule { import HomeMixerFlagName._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerResourcesModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerResourcesModule.scala index b68e5b105..91e3db0ff 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerResourcesModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/HomeMixerResourcesModule.scala @@ -1,5 +1,5 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module -import com.twitter.inject.TwitterModule +import com.ExTwitter.inject.ExTwitterModule -object HomeMixerResourcesModule extends TwitterModule {} +object HomeMixerResourcesModule extends ExTwitterModule {} diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ImpressionBloomFilterModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ImpressionBloomFilterModule.scala index f37531483..dc7150529 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ImpressionBloomFilterModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ImpressionBloomFilterModule.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.storage.client.manhattan.kv.Guarantee -import com.twitter.storehaus_internal.manhattan.ManhattanClusters -import com.twitter.timelines.clients.manhattan.store._ -import com.twitter.timelines.impressionbloomfilter.{thriftscala => blm} -import com.twitter.timelines.impressionstore.impressionbloomfilter.ImpressionBloomFilterManhattanKeyValueDescriptor -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.storage.client.manhattan.kv.Guarantee +import com.ExTwitter.storehaus_internal.manhattan.ManhattanClusters +import com.ExTwitter.timelines.clients.manhattan.store._ +import com.ExTwitter.timelines.impressionbloomfilter.{thriftscala => blm} +import com.ExTwitter.timelines.impressionstore.impressionbloomfilter.ImpressionBloomFilterManhattanKeyValueDescriptor +import com.ExTwitter.util.Duration import javax.inject.Singleton -object ImpressionBloomFilterModule extends TwitterModule { +object ImpressionBloomFilterModule extends ExTwitterModule { private val ProdAppId = "impression_bloom_filter_store" private val ProdDataset = "impression_bloom_filter" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/InjectionHistoryClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/InjectionHistoryClientModule.scala index fe274ff1d..d5ae8ad25 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/InjectionHistoryClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/InjectionHistoryClientModule.scala @@ -1,30 +1,30 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.builder.ClientBuilder -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.service.RetryPolicy -import com.twitter.finagle.ssl.OpportunisticTls -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.manhattan.v2.thriftscala.{ManhattanCoordinator => ManhattanV2} -import com.twitter.timelinemixer.clients.manhattan.InjectionHistoryClient -import com.twitter.timelinemixer.clients.manhattan.ManhattanDatasetConfig -import com.twitter.timelines.clients.manhattan.Dataset -import com.twitter.timelines.clients.manhattan.ManhattanClient -import com.twitter.timelines.util.stats.RequestScope +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.builder.ClientBuilder +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.service.RetryPolicy +import com.ExTwitter.finagle.ssl.OpportunisticTls +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.manhattan.v2.thriftscala.{ManhattanCoordinator => ManhattanV2} +import com.ExTwitter.timelinemixer.clients.manhattan.InjectionHistoryClient +import com.ExTwitter.timelinemixer.clients.manhattan.ManhattanDatasetConfig +import com.ExTwitter.timelines.clients.manhattan.Dataset +import com.ExTwitter.timelines.clients.manhattan.ManhattanClient +import com.ExTwitter.timelines.util.stats.RequestScope import javax.inject.Singleton import org.apache.thrift.protocol.TBinaryProtocol -import com.twitter.timelines.config.TimelinesUnderlyingClientConfiguration.ConnectTimeout -import com.twitter.timelines.config.TimelinesUnderlyingClientConfiguration.TCPConnectTimeout +import com.ExTwitter.timelines.config.TimelinesUnderlyingClientConfiguration.ConnectTimeout +import com.ExTwitter.timelines.config.TimelinesUnderlyingClientConfiguration.TCPConnectTimeout -object InjectionHistoryClientModule extends TwitterModule { +object InjectionHistoryClientModule extends ExTwitterModule { private val ProdDataset = "suggestion_history" private val StagingDataset = "suggestion_history_nonprod" - private val AppId = "twitter_suggests" + private val AppId = "ExTwitter_suggests" private val ServiceName = "manhattan.omega" private val OmegaManhattanDest = "/s/manhattan/omega.native-thrift" private val InjectionRequestScope = RequestScope("injectionHistoryClient") diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanClientsModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanClientsModule.scala index fc0e282af..f97b2091d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanClientsModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanClientsModule.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealGraphManhattanEndpoint -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.storage.client.manhattan.kv._ -import com.twitter.timelines.config.ConfigUtils -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealGraphManhattanEndpoint +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.storage.client.manhattan.kv._ +import com.ExTwitter.timelines.config.ConfigUtils +import com.ExTwitter.util.Duration import javax.inject.Named import javax.inject.Singleton -object ManhattanClientsModule extends TwitterModule with ConfigUtils { +object ManhattanClientsModule extends ExTwitterModule with ConfigUtils { private val ApolloDest = "/s/manhattan/apollo.native-thrift" private final val Timeout = "mh_real_graph.timeout" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanFeatureRepositoryModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanFeatureRepositoryModule.scala index 5668ba0ee..8d76026a2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanFeatureRepositoryModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanFeatureRepositoryModule.scala @@ -1,42 +1,42 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.bijection.Injection -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.scrooge.CompactScalaCodec -import com.twitter.bijection.thrift.ThriftCodec -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.home_mixer.param.HomeMixerInjectionNames._ -import com.twitter.home_mixer.util.InjectionTransformerImplicits._ -import com.twitter.home_mixer.util.LanguageUtil -import com.twitter.home_mixer.util.TensorFlowUtil -import com.twitter.inject.TwitterModule -import com.twitter.manhattan.v1.{thriftscala => mh} -import com.twitter.ml.api.{thriftscala => ml} -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.{thriftscala => fs} -import com.twitter.onboarding.relevance.features.{thriftjava => rf} -import com.twitter.product_mixer.shared_library.manhattan_client.ManhattanClientBuilder -import com.twitter.scalding_internal.multiformat.format.keyval.KeyValInjection.ScalaBinaryThrift -import com.twitter.search.common.constants.{thriftscala => scc} -import com.twitter.service.metastore.gen.{thriftscala => smg} -import com.twitter.servo.cache._ -import com.twitter.servo.manhattan.ManhattanKeyValueRepository -import com.twitter.servo.repository.CachingKeyValueRepository -import com.twitter.servo.repository.ChunkingStrategy -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.servo.repository.Repository -import com.twitter.servo.repository.keysAsQuery -import com.twitter.servo.util.Transformer -import com.twitter.storage.client.manhattan.bijections.Bijections -import com.twitter.storehaus_internal.manhattan.ManhattanClusters -import com.twitter.timelines.author_features.v1.{thriftjava => af} -import com.twitter.timelines.suggests.common.dense_data_record.{thriftscala => ddr} -import com.twitter.user_session_store.{thriftscala => uss_scala} -import com.twitter.user_session_store.{thriftjava => uss} -import com.twitter.util.Duration -import com.twitter.util.Try +import com.ExTwitter.bijection.Injection +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.scrooge.CompactScalaCodec +import com.ExTwitter.bijection.thrift.ThriftCodec +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames._ +import com.ExTwitter.home_mixer.util.InjectionTransformerImplicits._ +import com.ExTwitter.home_mixer.util.LanguageUtil +import com.ExTwitter.home_mixer.util.TensorFlowUtil +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.manhattan.v1.{thriftscala => mh} +import com.ExTwitter.ml.api.{thriftscala => ml} +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.{thriftscala => fs} +import com.ExTwitter.onboarding.relevance.features.{thriftjava => rf} +import com.ExTwitter.product_mixer.shared_library.manhattan_client.ManhattanClientBuilder +import com.ExTwitter.scalding_internal.multiformat.format.keyval.KeyValInjection.ScalaBinaryThrift +import com.ExTwitter.search.common.constants.{thriftscala => scc} +import com.ExTwitter.service.metastore.gen.{thriftscala => smg} +import com.ExTwitter.servo.cache._ +import com.ExTwitter.servo.manhattan.ManhattanKeyValueRepository +import com.ExTwitter.servo.repository.CachingKeyValueRepository +import com.ExTwitter.servo.repository.ChunkingStrategy +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.servo.repository.Repository +import com.ExTwitter.servo.repository.keysAsQuery +import com.ExTwitter.servo.util.Transformer +import com.ExTwitter.storage.client.manhattan.bijections.Bijections +import com.ExTwitter.storehaus_internal.manhattan.ManhattanClusters +import com.ExTwitter.timelines.author_features.v1.{thriftjava => af} +import com.ExTwitter.timelines.suggests.common.dense_data_record.{thriftscala => ddr} +import com.ExTwitter.user_session_store.{thriftscala => uss_scala} +import com.ExTwitter.user_session_store.{thriftjava => uss} +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Try import java.nio.ByteBuffer import javax.inject.Named import javax.inject.Singleton @@ -44,7 +44,7 @@ import org.apache.thrift.protocol.TCompactProtocol import org.apache.thrift.transport.TMemoryInputTransport import org.apache.thrift.transport.TTransport -object ManhattanFeatureRepositoryModule extends TwitterModule { +object ManhattanFeatureRepositoryModule extends ExTwitterModule { private val DEFAULT_RPC_CHUNK_SIZE = 50 diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanTweetImpressionStoreModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanTweetImpressionStoreModule.scala index c6782665a..c7a3a26be 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanTweetImpressionStoreModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ManhattanTweetImpressionStoreModule.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.storage.client.manhattan.kv.Guarantee -import com.twitter.storehaus_internal.manhattan.ManhattanClusters -import com.twitter.timelines.clients.manhattan.mhv3.ManhattanClientBuilder -import com.twitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClientConfig -import com.twitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClient -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.storage.client.manhattan.kv.Guarantee +import com.ExTwitter.storehaus_internal.manhattan.ManhattanClusters +import com.ExTwitter.timelines.clients.manhattan.mhv3.ManhattanClientBuilder +import com.ExTwitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClientConfig +import com.ExTwitter.timelines.impressionstore.store.ManhattanTweetImpressionStoreClient +import com.ExTwitter.util.Duration import javax.inject.Singleton -object ManhattanTweetImpressionStoreModule extends TwitterModule { +object ManhattanTweetImpressionStoreModule extends ExTwitterModule { private val ProdAppId = "timelines_tweet_impression_store_v2" private val ProdDataset = "timelines_tweet_impressions_v2" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/MemcachedFeatureRepositoryModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/MemcachedFeatureRepositoryModule.scala index 8afafbfb7..ef282f23b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/MemcachedFeatureRepositoryModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/MemcachedFeatureRepositoryModule.scala @@ -1,25 +1,25 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.Memcached -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.HomeAuthorFeaturesCacheClient -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexClient -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TimelinesRealTimeAggregateClient -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TwhinAuthorFollowFeatureCacheClient -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder -import com.twitter.servo.cache.FinagleMemcacheFactory -import com.twitter.servo.cache.Memcache +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.Memcached +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.HomeAuthorFeaturesCacheClient +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexClient +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TimelinesRealTimeAggregateClient +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TwhinAuthorFollowFeatureCacheClient +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder +import com.ExTwitter.servo.cache.FinagleMemcacheFactory +import com.ExTwitter.servo.cache.Memcache import javax.inject.Named import javax.inject.Singleton -object MemcachedFeatureRepositoryModule extends TwitterModule { +object MemcachedFeatureRepositoryModule extends ExTwitterModule { // This must match the respective parameter on the write path. Note that servo sets a different - // hasher by default. See [[com.twitter.hashing.KeyHasher]] for the list of other available + // hasher by default. See [[com.ExTwitter.hashing.KeyHasher]] for the list of other available // hashers. private val memcacheKeyHasher = "ketama" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/NaviModelClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/NaviModelClientModule.scala index 60d580a73..e20ea0db0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/NaviModelClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/NaviModelClientModule.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.Http -import com.twitter.finagle.grpc.FinagleChannelBuilder -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient.MtlsStackClientSyntax -import com.twitter.inject.TwitterModule -import com.twitter.timelines.clients.predictionservice.PredictionGRPCService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.Http +import com.ExTwitter.finagle.grpc.FinagleChannelBuilder +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient.MtlsStackClientSyntax +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.timelines.clients.predictionservice.PredictionGRPCService +import com.ExTwitter.util.Duration import io.grpc.ManagedChannel import javax.inject.Singleton -object NaviModelClientModule extends TwitterModule { +object NaviModelClientModule extends ExTwitterModule { @Singleton @Provides diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/OptimizedStratoClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/OptimizedStratoClientModule.scala index b9e315acc..2e7247d84 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/OptimizedStratoClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/OptimizedStratoClientModule.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.service.Retries -import com.twitter.finagle.service.RetryPolicy -import com.twitter.finagle.ssl.OpportunisticTls -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.BatchedStratoClientWithModerateTimeout -import com.twitter.inject.TwitterModule -import com.twitter.strato.client.Client -import com.twitter.strato.client.Strato -import com.twitter.util.Try +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.service.Retries +import com.ExTwitter.finagle.service.RetryPolicy +import com.ExTwitter.finagle.ssl.OpportunisticTls +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.BatchedStratoClientWithModerateTimeout +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.strato.client.Client +import com.ExTwitter.strato.client.Strato +import com.ExTwitter.util.Try import javax.inject.Named import javax.inject.Singleton -object OptimizedStratoClientModule extends TwitterModule { +object OptimizedStratoClientModule extends ExTwitterModule { private val ModerateStratoServerClientRequestTimeout = 500.millis diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PeopleDiscoveryServiceModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PeopleDiscoveryServiceModule.scala index 47353afa7..d49ea80dc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PeopleDiscoveryServiceModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PeopleDiscoveryServiceModule.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.peoplediscovery.api.thriftscala.ThriftPeopleDiscoveryService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.peoplediscovery.api.thriftscala.ThriftPeopleDiscoveryService +import com.ExTwitter.util.Duration /** - * Copy of com.twitter.product_mixer.component_library.module.PeopleDiscoveryServiceModule + * Copy of com.ExTwitter.product_mixer.component_library.module.PeopleDiscoveryServiceModule */ object PeopleDiscoveryServiceModule extends ThriftMethodBuilderClientModule[ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PipelineFailureExceptionMapper.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PipelineFailureExceptionMapper.scala index ad15988cb..59e5ab799 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PipelineFailureExceptionMapper.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/PipelineFailureExceptionMapper.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module -import com.twitter.finatra.thrift.exceptions.ExceptionMapper -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.util.logging.Logging -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.ProductDisabled -import com.twitter.scrooge.ThriftException -import com.twitter.util.Future +import com.ExTwitter.finatra.thrift.exceptions.ExceptionMapper +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.ProductDisabled +import com.ExTwitter.scrooge.ThriftException +import com.ExTwitter.util.Future import javax.inject.Singleton @Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealGraphInNetworkScoresModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealGraphInNetworkScoresModule.scala index 7dc6a072d..4390491c3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealGraphInNetworkScoresModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealGraphInNetworkScoresModule.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides import com.google.inject.name.Named -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealGraphInNetworkScores -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealGraphManhattanEndpoint -import com.twitter.home_mixer.store.RealGraphInNetworkScoresStore -import com.twitter.inject.TwitterModule -import com.twitter.storage.client.manhattan.kv.ManhattanKVEndpoint -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.util.CommonTypes.ViewerId -import com.twitter.wtf.candidate.thriftscala.Candidate +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealGraphInNetworkScores +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealGraphManhattanEndpoint +import com.ExTwitter.home_mixer.store.RealGraphInNetworkScoresStore +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVEndpoint +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.util.CommonTypes.ViewerId +import com.ExTwitter.wtf.candidate.thriftscala.Candidate import javax.inject.Singleton -object RealGraphInNetworkScoresModule extends TwitterModule { +object RealGraphInNetworkScoresModule extends ExTwitterModule { @Provides @Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealtimeAggregateFeatureRepositoryModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealtimeAggregateFeatureRepositoryModule.scala index c3c545819..ac847c1e8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealtimeAggregateFeatureRepositoryModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/RealtimeAggregateFeatureRepositoryModule.scala @@ -1,42 +1,42 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides import com.google.inject.name.Named -import com.twitter.bijection.Injection -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.thrift.ThriftCodec -import com.twitter.home_mixer.param.HomeMixerInjectionNames.EngagementsReceivedByAuthorCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexClient -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TimelinesRealTimeAggregateClient -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TopicCountryEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TopicEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetCountryEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TwitterListEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserAuthorEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserEngagementCache -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserTopicEngagementForNewUserCache -import com.twitter.home_mixer.util.InjectionTransformerImplicits._ -import com.twitter.inject.TwitterModule -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.Feature -import com.twitter.ml.{api => ml} -import com.twitter.servo.cache.KeyValueTransformingReadCache -import com.twitter.servo.cache.Memcache -import com.twitter.servo.cache.ReadCache -import com.twitter.servo.util.Transformer -import com.twitter.storehaus_internal.memcache.MemcacheHelper -import com.twitter.summingbird.batch.Batcher -import com.twitter.summingbird_internal.bijection.BatchPairImplicits -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregationKey -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregationKeyInjection -import com.twitter.wtf.real_time_interaction_graph.{thriftscala => ig} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.thrift.ThriftCodec +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.EngagementsReceivedByAuthorCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexClient +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TimelinesRealTimeAggregateClient +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TopicCountryEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TopicEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetCountryEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.ExTwitterListEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserAuthorEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserEngagementCache +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserTopicEngagementForNewUserCache +import com.ExTwitter.home_mixer.util.InjectionTransformerImplicits._ +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.{api => ml} +import com.ExTwitter.servo.cache.KeyValueTransformingReadCache +import com.ExTwitter.servo.cache.Memcache +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.servo.util.Transformer +import com.ExTwitter.storehaus_internal.memcache.MemcacheHelper +import com.ExTwitter.summingbird.batch.Batcher +import com.ExTwitter.summingbird_internal.bijection.BatchPairImplicits +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregationKey +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregationKeyInjection +import com.ExTwitter.wtf.real_time_interaction_graph.{thriftscala => ig} import javax.inject.Singleton object RealtimeAggregateFeatureRepositoryModule - extends TwitterModule + extends ExTwitterModule with RealtimeAggregateHelpers { private val authorIdFeature = new Feature.Discrete("entities.source_author_id").getFeatureId @@ -61,8 +61,8 @@ object RealtimeAggregateFeatureRepositoryModule @Provides @Singleton - @Named(TwitterListEngagementCache) - def providesTwitterListEngagementCache( + @Named(ExTwitterListEngagementCache) + def providesExTwitterListEngagementCache( @Named(TimelinesRealTimeAggregateClient) client: Memcache ): ReadCache[Long, ml.DataRecord] = { new KeyValueTransformingReadCache( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScoredTweetsMemcacheModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScoredTweetsMemcacheModule.scala index 4bed31c5c..19df84f1d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScoredTweetsMemcacheModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScoredTweetsMemcacheModule.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder -import com.twitter.servo.cache.FinagleMemcache -import com.twitter.servo.cache.KeyTransformer -import com.twitter.servo.cache.KeyValueTransformingTtlCache -import com.twitter.servo.cache.Serializer -import com.twitter.servo.cache.ThriftSerializer -import com.twitter.servo.cache.TtlCache -import com.twitter.timelines.model.UserId +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder +import com.ExTwitter.servo.cache.FinagleMemcache +import com.ExTwitter.servo.cache.KeyTransformer +import com.ExTwitter.servo.cache.KeyValueTransformingTtlCache +import com.ExTwitter.servo.cache.Serializer +import com.ExTwitter.servo.cache.ThriftSerializer +import com.ExTwitter.servo.cache.TtlCache +import com.ExTwitter.timelines.model.UserId import org.apache.thrift.protocol.TCompactProtocol import javax.inject.Singleton -object ScoredTweetsMemcacheModule extends TwitterModule { +object ScoredTweetsMemcacheModule extends ExTwitterModule { private val ScopeName = "ScoredTweetsCache" private val ProdDestName = "/srv#/prod/local/cache/home_scored_tweets:twemcaches" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScribeEventPublisherModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScribeEventPublisherModule.scala index 99bf61630..c0b690a31 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScribeEventPublisherModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ScribeEventPublisherModule.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.clientapp.{thriftscala => ca} -import com.twitter.home_mixer.param.HomeMixerInjectionNames.CandidateFeaturesScribeEventPublisher -import com.twitter.home_mixer.param.HomeMixerInjectionNames.CommonFeaturesScribeEventPublisher -import com.twitter.home_mixer.param.HomeMixerInjectionNames.MinimumFeaturesScribeEventPublisher -import com.twitter.inject.TwitterModule -import com.twitter.logpipeline.client.EventPublisherManager -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.logpipeline.client.serializers.EventLogMsgTBinarySerializer -import com.twitter.logpipeline.client.serializers.EventLogMsgThriftStructSerializer -import com.twitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} -import com.twitter.timelines.timeline_logging.{thriftscala => tl} +import com.ExTwitter.clientapp.{thriftscala => ca} +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.CandidateFeaturesScribeEventPublisher +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.CommonFeaturesScribeEventPublisher +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.MinimumFeaturesScribeEventPublisher +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.logpipeline.client.EventPublisherManager +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.logpipeline.client.serializers.EventLogMsgTBinarySerializer +import com.ExTwitter.logpipeline.client.serializers.EventLogMsgThriftStructSerializer +import com.ExTwitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} +import com.ExTwitter.timelines.timeline_logging.{thriftscala => tl} import javax.inject.Named import javax.inject.Singleton -object ScribeEventPublisherModule extends TwitterModule { +object ScribeEventPublisherModule extends ExTwitterModule { val ClientEventLogCategory = "client_event" val ServedCandidatesLogCategory = "home_timeline_served_candidates_flattened" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/SimClustersRecentEngagementsClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/SimClustersRecentEngagementsClientModule.scala index 7e819d51e..0d9863b28 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/SimClustersRecentEngagementsClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/SimClustersRecentEngagementsClientModule.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.BatchedStratoClientWithModerateTimeout -import com.twitter.inject.TwitterModule -import com.twitter.strato.client.Client -import com.twitter.timelines.clients.strato.twistly.SimClustersRecentEngagementSimilarityClient -import com.twitter.timelines.clients.strato.twistly.SimClustersRecentEngagementSimilarityClientImpl +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.BatchedStratoClientWithModerateTimeout +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.strato.client.Client +import com.ExTwitter.timelines.clients.strato.twistly.SimClustersRecentEngagementSimilarityClient +import com.ExTwitter.timelines.clients.strato.twistly.SimClustersRecentEngagementSimilarityClientImpl import javax.inject.Named import javax.inject.Singleton -object SimClustersRecentEngagementsClientModule extends TwitterModule { +object SimClustersRecentEngagementsClientModule extends ExTwitterModule { @Singleton @Provides def providesSimilarityClient( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/StaleTweetsCacheModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/StaleTweetsCacheModule.scala index 301dc51c2..3a94619c4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/StaleTweetsCacheModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/StaleTweetsCacheModule.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides import com.google.inject.name.Named -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.memcached.{Client => MemcachedClient} -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.hashing.KeyHasher -import com.twitter.home_mixer.param.HomeMixerInjectionNames.StaleTweetsCache -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.memcached.{Client => MemcachedClient} +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.hashing.KeyHasher +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.StaleTweetsCache +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder import javax.inject.Singleton -object StaleTweetsCacheModule extends TwitterModule { +object StaleTweetsCacheModule extends ExTwitterModule { @Singleton @Provides diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ThriftFeatureRepositoryModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ThriftFeatureRepositoryModule.scala index dcbf62451..7103144f9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ThriftFeatureRepositoryModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/ThriftFeatureRepositoryModule.scala @@ -1,49 +1,49 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.thrift.ClientId -import com.twitter.graph_feature_service.{thriftscala => gfs} -import com.twitter.home_mixer.param.HomeMixerInjectionNames.EarlybirdRepository -import com.twitter.home_mixer.param.HomeMixerInjectionNames.GraphTwoHopRepository -import com.twitter.home_mixer.param.HomeMixerInjectionNames.InterestsThriftServiceClient -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetypieContentRepository -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserFollowedTopicIdsRepository -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UtegSocialProofRepository -import com.twitter.home_mixer.util.earlybird.EarlybirdRequestUtil -import com.twitter.home_mixer.util.tweetypie.RequestFields -import com.twitter.inject.TwitterModule -import com.twitter.interests.{thriftscala => int} -import com.twitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder -import com.twitter.product_mixer.shared_library.thrift_client.FinagleThriftClientBuilder -import com.twitter.product_mixer.shared_library.thrift_client.Idempotent -import com.twitter.recos.recos_common.{thriftscala => rc} -import com.twitter.recos.user_tweet_entity_graph.{thriftscala => uteg} -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.servo.cache.Cached -import com.twitter.servo.cache.CachedSerializer -import com.twitter.servo.cache.FinagleMemcacheFactory -import com.twitter.servo.cache.MemcacheCacheFactory -import com.twitter.servo.cache.NonLockingCache -import com.twitter.servo.cache.ThriftSerializer -import com.twitter.servo.keyvalue.KeyValueResultBuilder -import com.twitter.servo.repository.CachingKeyValueRepository -import com.twitter.servo.repository.ChunkingStrategy -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.servo.repository.KeyValueResult -import com.twitter.servo.repository.keysAsQuery -import com.twitter.spam.rtf.{thriftscala => sp} -import com.twitter.tweetypie.{thriftscala => tp} -import com.twitter.util.Future -import com.twitter.util.Return +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.graph_feature_service.{thriftscala => gfs} +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.EarlybirdRepository +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.GraphTwoHopRepository +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.InterestsThriftServiceClient +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetypieContentRepository +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserFollowedTopicIdsRepository +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UtegSocialProofRepository +import com.ExTwitter.home_mixer.util.earlybird.EarlybirdRequestUtil +import com.ExTwitter.home_mixer.util.tweetypie.RequestFields +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.interests.{thriftscala => int} +import com.ExTwitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder +import com.ExTwitter.product_mixer.shared_library.thrift_client.FinagleThriftClientBuilder +import com.ExTwitter.product_mixer.shared_library.thrift_client.Idempotent +import com.ExTwitter.recos.recos_common.{thriftscala => rc} +import com.ExTwitter.recos.user_tweet_entity_graph.{thriftscala => uteg} +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.servo.cache.Cached +import com.ExTwitter.servo.cache.CachedSerializer +import com.ExTwitter.servo.cache.FinagleMemcacheFactory +import com.ExTwitter.servo.cache.MemcacheCacheFactory +import com.ExTwitter.servo.cache.NonLockingCache +import com.ExTwitter.servo.cache.ThriftSerializer +import com.ExTwitter.servo.keyvalue.KeyValueResultBuilder +import com.ExTwitter.servo.repository.CachingKeyValueRepository +import com.ExTwitter.servo.repository.ChunkingStrategy +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.servo.repository.KeyValueResult +import com.ExTwitter.servo.repository.keysAsQuery +import com.ExTwitter.spam.rtf.{thriftscala => sp} +import com.ExTwitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.util.Future +import com.ExTwitter.util.Return import javax.inject.Named import javax.inject.Singleton import org.apache.thrift.protocol.TCompactProtocol -object ThriftFeatureRepositoryModule extends TwitterModule { +object ThriftFeatureRepositoryModule extends ExTwitterModule { private val DefaultRPCChunkSize = 50 private val GFSInteractionIdsLimit = 10 diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TimelinesPersistenceStoreClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TimelinesPersistenceStoreClientModule.scala index 4af39fd32..fdaa36742 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TimelinesPersistenceStoreClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TimelinesPersistenceStoreClientModule.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.timelinemixer.clients.persistence.TimelinePersistenceManhattanClientBuilder -import com.twitter.timelinemixer.clients.persistence.TimelinePersistenceManhattanClientConfig -import com.twitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient -import com.twitter.timelinemixer.clients.persistence.TimelineResponseV3 -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.timelinemixer.clients.persistence.TimelinePersistenceManhattanClientBuilder +import com.ExTwitter.timelinemixer.clients.persistence.TimelinePersistenceManhattanClientConfig +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseBatchesClient +import com.ExTwitter.timelinemixer.clients.persistence.TimelineResponseV3 +import com.ExTwitter.util.Duration import javax.inject.Singleton -object TimelinesPersistenceStoreClientModule extends TwitterModule { +object TimelinesPersistenceStoreClientModule extends ExTwitterModule { private val StagingDataset = "timeline_response_batches_v5_nonprod" private val ProdDataset = "timeline_response_batches_v5" private final val Timeout = "mh_persistence_store.timeout" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TopicSocialProofClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TopicSocialProofClientModule.scala index 9333e0f84..d552cdb72 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TopicSocialProofClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TopicSocialProofClientModule.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.BatchedStratoClientWithModerateTimeout -import com.twitter.inject.TwitterModule -import com.twitter.strato.client.Client -import com.twitter.timelines.clients.strato.topics.TopicSocialProofClient -import com.twitter.timelines.clients.strato.topics.TopicSocialProofClientImpl +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.BatchedStratoClientWithModerateTimeout +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.strato.client.Client +import com.ExTwitter.timelines.clients.strato.topics.TopicSocialProofClient +import com.ExTwitter.timelines.clients.strato.topics.TopicSocialProofClientImpl import javax.inject.Named import javax.inject.Singleton -object TopicSocialProofClientModule extends TwitterModule { +object TopicSocialProofClientModule extends ExTwitterModule { @Singleton @Provides diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetyPieClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetyPieClientModule.scala index 1eb49206c..12e6cc7c7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetyPieClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetyPieClientModule.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.annotations.Flags -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.stitch.tweetypie.TweetyPie -import com.twitter.tweetypie.thriftscala.TweetService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.annotations.Flags +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.stitch.tweetypie.TweetyPie +import com.ExTwitter.tweetypie.thriftscala.TweetService +import com.ExTwitter.util.Duration import javax.inject.Singleton /** diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetypieStaticEntitiesCacheClientModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetypieStaticEntitiesCacheClientModule.scala index 13283e4b3..af859138a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetypieStaticEntitiesCacheClientModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/module/TweetypieStaticEntitiesCacheClientModule.scala @@ -1,25 +1,25 @@ -package com.twitter.home_mixer.module +package com.ExTwitter.home_mixer.module import com.google.inject.name.Named import com.google.inject.Provides -import com.twitter.conversions.DurationOps.RichDuration -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetypieStaticEntitiesCache -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder -import com.twitter.servo.cache.FinagleMemcache -import com.twitter.servo.cache.KeyTransformer -import com.twitter.servo.cache.KeyValueTransformingTtlCache -import com.twitter.servo.cache.ObservableTtlCache -import com.twitter.servo.cache.Serializer -import com.twitter.servo.cache.ThriftSerializer -import com.twitter.servo.cache.TtlCache -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.conversions.DurationOps.RichDuration +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetypieStaticEntitiesCache +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.shared_library.memcached_client.MemcachedClientBuilder +import com.ExTwitter.servo.cache.FinagleMemcache +import com.ExTwitter.servo.cache.KeyTransformer +import com.ExTwitter.servo.cache.KeyValueTransformingTtlCache +import com.ExTwitter.servo.cache.ObservableTtlCache +import com.ExTwitter.servo.cache.Serializer +import com.ExTwitter.servo.cache.ThriftSerializer +import com.ExTwitter.servo.cache.TtlCache +import com.ExTwitter.tweetypie.{thriftscala => tp} import javax.inject.Singleton import org.apache.thrift.protocol.TCompactProtocol -object TweetypieStaticEntitiesCacheClientModule extends TwitterModule { +object TweetypieStaticEntitiesCacheClientModule extends ExTwitterModule { private val ScopeName = "TweetypieStaticEntitiesMemcache" private val ProdDest = "/srv#/prod/local/cache/timelinescorer_tweet_core_data:twemcaches" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/BUILD.bazel index 25e9a2e31..296b62219 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/BUILD.bazel @@ -4,6 +4,6 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/GlobalParamConfigModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/GlobalParamConfigModule.scala index 304e7bdc8..81f63ce2a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/GlobalParamConfigModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/GlobalParamConfigModule.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.param +package com.ExTwitter.home_mixer.param -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.core.functional_component.configapi.registry.GlobalParamConfig +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.core.functional_component.configapi.registry.GlobalParamConfig -object GlobalParamConfigModule extends TwitterModule { +object GlobalParamConfigModule extends ExTwitterModule { override def configure(): Unit = { bind[GlobalParamConfig].to[HomeGlobalParamConfig] } diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParamConfig.scala index 6fbd28fce..ea41ee2f1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParamConfig.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.param +package com.ExTwitter.home_mixer.param -import com.twitter.home_mixer.param.HomeGlobalParams._ -import com.twitter.product_mixer.core.functional_component.configapi.registry.GlobalParamConfig +import com.ExTwitter.home_mixer.param.HomeGlobalParams._ +import com.ExTwitter.product_mixer.core.functional_component.configapi.registry.GlobalParamConfig import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParams.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParams.scala index f19817bc9..2723488bc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParams.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeGlobalParams.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.param +package com.ExTwitter.home_mixer.param -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam /** * Instantiate Params that do not relate to a specific product. * - * @see [[com.twitter.product_mixer.core.product.ProductParamConfig.supportedClientFSName]] + * @see [[com.ExTwitter.product_mixer.core.product.ProductParamConfig.supportedClientFSName]] */ object HomeGlobalParams { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerFlagName.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerFlagName.scala index dc5f5513f..fcb44b273 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerFlagName.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerFlagName.scala @@ -1,4 +1,4 @@ -package com.twitter.home_mixer.param +package com.ExTwitter.home_mixer.param object HomeMixerFlagName { final val ScribeClientEventsFlag = "scribe.client_events" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerInjectionNames.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerInjectionNames.scala index 5ea87f5ab..a21c81958 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerInjectionNames.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/HomeMixerInjectionNames.scala @@ -1,4 +1,4 @@ -package com.twitter.home_mixer.param +package com.ExTwitter.home_mixer.param object HomeMixerInjectionNames { final val AuthorFeatureRepository = "AuthorFeatureRepository" @@ -36,7 +36,7 @@ object HomeMixerInjectionNames { final val TwhinAuthorFollowFeatureRepository = "TwhinAuthorFollowFeatureRepository" final val TwhinUserEngagementFeatureRepository = "TwhinUserEngagementFeatureRepository" final val TwhinUserFollowFeatureRepository = "TwhinUserFollowFeatureRepository" - final val TwitterListEngagementCache = "TwitterListEngagementCache" + final val ExTwitterListEngagementCache = "ExTwitterListEngagementCache" final val UserAuthorEngagementCache = "UserAuthorEngagementCache" final val UserEngagementCache = "UserEngagementCache" final val UserFollowedTopicIdsRepository = "UserFollowedTopicIdsRepository" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider/DeciderKey.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider/DeciderKey.scala index 91f7646d9..ca519b007 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider/DeciderKey.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider/DeciderKey.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.param.decider +package com.ExTwitter.home_mixer.param.decider -import com.twitter.servo.decider.DeciderKeyEnum +import com.ExTwitter.servo.decider.DeciderKeyEnum /** * These values must correspond to the deciders configured in the * home-mixer/server/src/main/resources/config/decider.yml file * - * @see [[com.twitter.product_mixer.core.product.ProductParamConfig.enabledDeciderKey]] + * @see [[com.ExTwitter.product_mixer.core.product.ProductParamConfig.enabledDeciderKey]] */ object DeciderKey extends DeciderKeyEnum { // Products diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/BUILD.bazel index e4fa669d2..695f32d21 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/BUILD.bazel @@ -5,24 +5,24 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "finatra/inject/inject-core/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/subscribed", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/subscribed/model", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/registry", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/registry", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeMixerProductModule.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeMixerProductModule.scala index cff4da4fb..2a624fcc8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeMixerProductModule.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeMixerProductModule.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product +package com.ExTwitter.home_mixer.product -import com.twitter.inject.TwitterModule -import com.twitter.product_mixer.core.product.registry.ProductPipelineRegistryConfig +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.product_mixer.core.product.registry.ProductPipelineRegistryConfig -object HomeMixerProductModule extends TwitterModule { +object HomeMixerProductModule extends ExTwitterModule { override def configure(): Unit = { bind[ProductPipelineRegistryConfig].to[HomeProductPipelineRegistryConfig] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeProductPipelineRegistryConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeProductPipelineRegistryConfig.scala index 5db4bd7f6..fee272655 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeProductPipelineRegistryConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/HomeProductPipelineRegistryConfig.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product +package com.ExTwitter.home_mixer.product -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.ListRecommendedUsersProduct -import com.twitter.home_mixer.model.request.ListTweetsProduct -import com.twitter.home_mixer.model.request.ScoredTweetsProduct -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.home_mixer.product.following.FollowingProductPipelineConfig -import com.twitter.home_mixer.product.for_you.ForYouProductPipelineConfig -import com.twitter.home_mixer.product.list_recommended_users.ListRecommendedUsersProductPipelineConfig -import com.twitter.home_mixer.product.scored_tweets.ScoredTweetsProductPipelineConfig -import com.twitter.home_mixer.product.list_tweets.ListTweetsProductPipelineConfig -import com.twitter.home_mixer.product.subscribed.SubscribedProductPipelineConfig -import com.twitter.inject.Injector -import com.twitter.product_mixer.core.product.guice.ProductScope -import com.twitter.product_mixer.core.product.registry.ProductPipelineRegistryConfig +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.ListRecommendedUsersProduct +import com.ExTwitter.home_mixer.model.request.ListTweetsProduct +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.home_mixer.product.following.FollowingProductPipelineConfig +import com.ExTwitter.home_mixer.product.for_you.ForYouProductPipelineConfig +import com.ExTwitter.home_mixer.product.list_recommended_users.ListRecommendedUsersProductPipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.ScoredTweetsProductPipelineConfig +import com.ExTwitter.home_mixer.product.list_tweets.ListTweetsProductPipelineConfig +import com.ExTwitter.home_mixer.product.subscribed.SubscribedProductPipelineConfig +import com.ExTwitter.inject.Injector +import com.ExTwitter.product_mixer.core.product.guice.ProductScope +import com.ExTwitter.product_mixer.core.product.registry.ProductPipelineRegistryConfig import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/BUILD.bazel index 4771fe655..960737392 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/BUILD.bazel @@ -5,91 +5,91 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/api", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/api", "finagle/finagle-memcached/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/java/com/twitter/product_mixer/core/product/guice/scope", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/mixer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "src/java/com/twitter/search/common/schema/base", - "src/java/com/twitter/search/common/schema/earlybird", - "src/java/com/twitter/search/common/util/lang", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/scala/com/twitter/suggests/controller_data", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:constants-java", - "src/thrift/com/twitter/suggests/controller_data:controller_data-scala", - "src/thrift/com/twitter/timelinemixer:thrift-scala", - "src/thrift/com/twitter/timelines/render:thrift-scala", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/candidate_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/selector", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/account_recommendations_mixer", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/hermit", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/tweetconvosvc", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/async", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/java/com/ExTwitter/product_mixer/core/product/guice/scope", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/mixer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "src/java/com/ExTwitter/search/common/schema/base", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/java/com/ExTwitter/search/common/util/lang", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/scala/com/ExTwitter/suggests/controller_data", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:constants-java", + "src/thrift/com/ExTwitter/suggests/controller_data:controller_data-scala", + "src/thrift/com/ExTwitter/timelinemixer:thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", "stitch/stitch-gizmoduck", "stitch/stitch-tweetypie", "stringcenter/client", "stringcenter/client/src/main/java", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/model/candidate", - "timelines/src/main/scala/com/twitter/timelines/clients/relevance_search", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/model/candidate", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/relevance_search", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", ], exports = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "src/thrift/com/twitter/timelines/render:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/param", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingAdsCandidatePipelineBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingAdsCandidatePipelineBuilder.scala index d4898eb31..ca7b536ad 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingAdsCandidatePipelineBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingAdsCandidatePipelineBuilder.scala @@ -1,37 +1,37 @@ -package com.twitter.home_mixer.product.following +package com.ExTwitter.home_mixer.product.following -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder -import com.twitter.home_mixer.functional_component.gate.ExcludeSoftUserGate -import com.twitter.home_mixer.model.HomeFeatures.TweetLanguageFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetTextFeature -import com.twitter.home_mixer.param.HomeGlobalParams -import com.twitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam -import com.twitter.home_mixer.product.following.model.FollowingQuery -import com.twitter.home_mixer.product.following.param.FollowingParam.EnableAdsCandidatePipelineParam -import com.twitter.home_mixer.product.following.param.FollowingParam.EnableFastAds -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.CountCandidatesFromPipelines -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.PipelineScopedOrganicItems -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.gate.ParamNotGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel -import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder +import com.ExTwitter.home_mixer.functional_component.gate.ExcludeSoftUserGate +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetLanguageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetTextFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam +import com.ExTwitter.home_mixer.product.following.model.FollowingQuery +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.EnableAdsCandidatePipelineParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.EnableFastAds +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.CountCandidatesFromPipelines +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.PipelineScopedOrganicItems +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.gate.ParamNotGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdCandidatePipelineConfig.scala index addb298c2..fcb44f369 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdCandidatePipelineConfig.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.following +package com.ExTwitter.home_mixer.product.following -import com.twitter.home_mixer.candidate_pipeline.FollowingEarlybirdResponseFeatureTransformer -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource -import com.twitter.home_mixer.product.following.model.FollowingQuery -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.home_mixer.candidate_pipeline.FollowingEarlybirdResponseFeatureTransformer +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource +import com.ExTwitter.home_mixer.product.following.model.FollowingQuery +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.search.earlybird.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdQueryTransformer.scala index c388cfa92..45a2966d3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdQueryTransformer.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.following +package com.ExTwitter.home_mixer.product.following -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.tracing.Trace -import com.twitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature -import com.twitter.home_mixer.product.following.model.FollowingQuery -import com.twitter.home_mixer.product.following.param.FollowingParam.ServerMaxResultsParam -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant -import com.twitter.search.earlybird.{thriftscala => t} -import com.twitter.search.queryparser.query.Conjunction -import com.twitter.search.queryparser.query.search.SearchOperator +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature +import com.ExTwitter.home_mixer.product.following.model.FollowingQuery +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.ServerMaxResultsParam +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.search.queryparser.query.Conjunction +import com.ExTwitter.search.queryparser.query.search.SearchOperator import javax.inject.Inject import javax.inject.Singleton import scala.jdk.CollectionConverters.asJavaIterableConverter diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdResponseFeatureTransformer.scala index 0169e6dd7..241f4e39b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingEarlybirdResponseFeatureTransformer.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.candidate_pipeline +package com.ExTwitter.home_mixer.candidate_pipeline -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.search.earlybird.{thriftscala => t} object FollowingEarlybirdResponseFeatureTransformer extends CandidateFeatureTransformer[t.ThriftSearchResult] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingMixerPipelineConfig.scala index efda03595..39e92dfd9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingMixerPipelineConfig.scala @@ -1,80 +1,80 @@ -package com.twitter.home_mixer.product.following +package com.ExTwitter.home_mixer.product.following -import com.twitter.clientapp.{thriftscala => ca} -import com.twitter.goldfinch.api.AdsInjectionSurfaceAreas -import com.twitter.home_mixer.candidate_pipeline.ConversationServiceCandidatePipelineConfigBuilder -import com.twitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig -import com.twitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig -import com.twitter.home_mixer.functional_component.decorator.HomeConversationServiceCandidateDecorator -import com.twitter.home_mixer.functional_component.decorator.urt.builder.AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator._ -import com.twitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails -import com.twitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration -import com.twitter.home_mixer.functional_component.side_effect._ -import com.twitter.home_mixer.model.GapIncludeInstruction -import com.twitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter -import com.twitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator -import com.twitter.home_mixer.product.following.model.FollowingQuery -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.home_mixer.product.following.param.FollowingParam.EnableFlipInjectionModuleCandidatePipelineParam -import com.twitter.home_mixer.product.following.param.FollowingParam.FlipInlineInjectionModulePosition -import com.twitter.home_mixer.product.following.param.FollowingParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.following.param.FollowingParam.WhoToFollowPositionParam -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated.AsyncParamGatedQueryFeatureHydrator -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.FlipPromptDependentCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedGapCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowCoverInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.DropMaxModuleItemCandidates -import com.twitter.product_mixer.component_library.selector.DropModuleTooFewModuleItemResults -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.InsertFixedPositionResults -import com.twitter.product_mixer.component_library.selector.SelectConditionally -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.component_library.selector.ads.AdsInjector -import com.twitter.product_mixer.component_library.selector.ads.InsertAdResults -import com.twitter.product_mixer.core.functional_component.common.SpecificPipeline -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.FailOpenPolicy -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.clientapp.{thriftscala => ca} +import com.ExTwitter.goldfinch.api.AdsInjectionSurfaceAreas +import com.ExTwitter.home_mixer.candidate_pipeline.ConversationServiceCandidatePipelineConfigBuilder +import com.ExTwitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig +import com.ExTwitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig +import com.ExTwitter.home_mixer.functional_component.decorator.HomeConversationServiceCandidateDecorator +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator._ +import com.ExTwitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails +import com.ExTwitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration +import com.ExTwitter.home_mixer.functional_component.side_effect._ +import com.ExTwitter.home_mixer.model.GapIncludeInstruction +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter +import com.ExTwitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.following.model.FollowingQuery +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.EnableFlipInjectionModuleCandidatePipelineParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.FlipInlineInjectionModulePosition +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.WhoToFollowPositionParam +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated.AsyncParamGatedQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.FlipPromptDependentCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedGapCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowCoverInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropMaxModuleItemCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropModuleTooFewModuleItemResults +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.InsertFixedPositionResults +import com.ExTwitter.product_mixer.component_library.selector.SelectConditionally +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.component_library.selector.ads.AdsInjector +import com.ExTwitter.product_mixer.component_library.selector.ads.InsertAdResults +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipeline +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.FailOpenPolicy +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingProductPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingProductPipelineConfig.scala index 28c7cd6a0..eaf052239 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingProductPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingProductPipelineConfig.scala @@ -1,44 +1,44 @@ -package com.twitter.home_mixer.product.following +package com.ExTwitter.home_mixer.product.following -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.home_mixer.model.request.FollowingProductContext -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.product.following.model.FollowingQuery -import com.twitter.home_mixer.product.following.param.FollowingParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.following.param.FollowingParamConfig -import com.twitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy -import com.twitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.LatencyAlert -import com.twitter.product_mixer.core.functional_component.common.alert.P99 -import com.twitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.ThroughputAlert -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.Product -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.PipelineConfig -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineConfig -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.product_mixer.core.util.SortIndexBuilder -import com.twitter.timelines.configapi.Params -import com.twitter.timelines.render.{thriftscala => urt} -import com.twitter.timelines.util.RequestCursorSerializer -import com.twitter.util.Time -import com.twitter.util.Try +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.home_mixer.model.request.FollowingProductContext +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.product.following.model.FollowingQuery +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParamConfig +import com.ExTwitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.LatencyAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.P99 +import com.ExTwitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.ThroughputAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineConfig +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.product_mixer.core.util.SortIndexBuilder +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.timelines.util.RequestCursorSerializer +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingWhoToFollowCandidatePipelineConfigBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingWhoToFollowCandidatePipelineConfigBuilder.scala index cd5b1795d..493d79a93 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingWhoToFollowCandidatePipelineConfigBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/FollowingWhoToFollowCandidatePipelineConfigBuilder.scala @@ -1,28 +1,28 @@ -package com.twitter.home_mixer.product.following +package com.ExTwitter.home_mixer.product.following -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeWhoToFollowFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.gate.DismissFatigueGate -import com.twitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate -import com.twitter.home_mixer.model.HomeFeatures.DismissInfoFeature -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.home_mixer.model.HomeFeatures.WhoToFollowExcludedUserIdsFeature -import com.twitter.home_mixer.product.following.model.FollowingQuery -import com.twitter.home_mixer.product.following.param.FollowingParam.EnableWhoToFollowCandidatePipelineParam -import com.twitter.home_mixer.product.following.param.FollowingParam.WhoToFollowDisplayLocationParam -import com.twitter.home_mixer.product.following.param.FollowingParam.WhoToFollowDisplayTypeIdParam -import com.twitter.home_mixer.product.following.param.FollowingParam.WhoToFollowMinInjectionIntervalParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ParamWhoToFollowModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmDependentCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmDependentCandidatePipelineConfigBuilder -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeWhoToFollowFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.gate.DismissFatigueGate +import com.ExTwitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate +import com.ExTwitter.home_mixer.model.HomeFeatures.DismissInfoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.WhoToFollowExcludedUserIdsFeature +import com.ExTwitter.home_mixer.product.following.model.FollowingQuery +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.EnableWhoToFollowCandidatePipelineParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.WhoToFollowDisplayLocationParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.WhoToFollowDisplayTypeIdParam +import com.ExTwitter.home_mixer.product.following.param.FollowingParam.WhoToFollowMinInjectionIntervalParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ParamWhoToFollowModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmDependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmDependentCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/BUILD.bazel index 70d5e5af9..aa0ace572 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/BUILD.bazel @@ -4,19 +4,19 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/param", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stringcenter/client", "stringcenter/client/src/main/java", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/FollowingQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/FollowingQuery.scala index c45c7cf68..eb576aa86 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/FollowingQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/FollowingQuery.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.following.model +package com.ExTwitter.home_mixer.product.following.model -import com.twitter.adserver.thriftscala.HomeTimelineType -import com.twitter.adserver.thriftscala.TimelineRequestParams -import com.twitter.home_mixer.model.HomeAdsQuery -import com.twitter.dspbidder.commons.{thriftscala => dsp} -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.model.request.FollowingProduct -import com.twitter.onboarding.task.service.{thriftscala => ots} -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.request._ -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Params +import com.ExTwitter.adserver.thriftscala.HomeTimelineType +import com.ExTwitter.adserver.thriftscala.TimelineRequestParams +import com.ExTwitter.home_mixer.model.HomeAdsQuery +import com.ExTwitter.dspbidder.commons.{thriftscala => dsp} +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.model.request.FollowingProduct +import com.ExTwitter.onboarding.task.service.{thriftscala => ots} +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.request._ +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Params case class FollowingQuery( override val params: Params, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/HomeMixerExternalStrings.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/HomeMixerExternalStrings.scala index 9c6faafa7..42384cbd3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/HomeMixerExternalStrings.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model/HomeMixerExternalStrings.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.following.model +package com.ExTwitter.home_mixer.product.following.model -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.ExternalStringRegistry +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.ExternalStringRegistry import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/BUILD.bazel index a56e3a1fd..fbd47eca9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/BUILD.bazel @@ -5,10 +5,10 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "util/util-core/src/main/scala/com/twitter/conversions", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param/decider", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "util/util-core/src/main/scala/com/ExTwitter/conversions", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParam.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParam.scala index e43990507..812a05602 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParam.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParam.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.following.param +package com.ExTwitter.home_mixer.product.following.param -import com.twitter.conversions.DurationOps._ -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.WhoToFollowModuleDisplayType -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.WhoToFollowModuleDisplayType +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.util.Duration object FollowingParam { val SupportedClientFSName = "following_supported_client" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParamConfig.scala index df3b54801..a2fc8421d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/param/FollowingParamConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.following.param +package com.ExTwitter.home_mixer.product.following.param -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.home_mixer.product.following.param.FollowingParam._ -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.servo.decider.DeciderKeyName +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.home_mixer.product.following.param.FollowingParam._ +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.servo.decider.DeciderKeyName import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/BUILD.bazel index 5f597c78b..6e93d2c57 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/BUILD.bazel @@ -5,97 +5,97 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/api", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/api", "finagle/finagle-memcached/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/scorer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/candidate_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/scorer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/selector", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/query_transformer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/response_transformer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/scorer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_subscribe_module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/scorer/tweet_tlx", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/java/com/twitter/product_mixer/core/product/guice/scope", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/product_pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/mixer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/recommendation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/scoring", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/quality_factor", - "src/java/com/twitter/search/common/util/lang", - "src/scala/com/twitter/suggests/controller_data", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:constants-java", - "src/thrift/com/twitter/timelines/render:thrift-scala", - "src/thrift/com/twitter/timelines/suggests/common:poly_data_record-java", - "src/thrift/com/twitter/timelineservice:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/earlybird", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/timeline_scorer", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/timeline_service", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/async", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/who_to_subscribe_module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/scorer/tweet_tlx", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/java/com/ExTwitter/product_mixer/core/product/guice/scope", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/product_pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/mixer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/recommendation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/scoring", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/quality_factor", + "src/java/com/ExTwitter/search/common/util/lang", + "src/scala/com/ExTwitter/suggests/controller_data", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:constants-java", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", + "src/thrift/com/ExTwitter/timelines/suggests/common:poly_data_record-java", + "src/thrift/com/ExTwitter/timelineservice:thrift-scala", "stitch/stitch-tweetypie", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/model/candidate", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", - "timelines/src/main/scala/com/twitter/timelines/model/candidate", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/model/candidate", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", + "timelines/src/main/scala/com/ExTwitter/timelines/model/candidate", ], exports = [ - "src/thrift/com/twitter/timelines/render:thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsCandidatePipelineBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsCandidatePipelineBuilder.scala index 99ed0f584..e4f90d856 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsCandidatePipelineBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsCandidatePipelineBuilder.scala @@ -1,32 +1,32 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder -import com.twitter.home_mixer.functional_component.gate.ExcludeSoftUserGate -import com.twitter.home_mixer.param.HomeGlobalParams -import com.twitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.AdsNumOrganicItemsParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.StaticAdsDisplayLocationBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.gate.ParamNotGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel -import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder +import com.ExTwitter.home_mixer.functional_component.gate.ExcludeSoftUserGate +import com.ExTwitter.home_mixer.param.HomeGlobalParams +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.AdsNumOrganicItemsParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.StaticAdsDisplayLocationBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.gate.ParamNotGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsDependentCandidatePipelineBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsDependentCandidatePipelineBuilder.scala index ef65d7062..9973a7d3a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsDependentCandidatePipelineBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouAdsDependentCandidatePipelineBuilder.scala @@ -1,37 +1,37 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder -import com.twitter.home_mixer.functional_component.gate.ExcludeSoftUserGate -import com.twitter.home_mixer.model.HomeFeatures.TweetLanguageFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetTextFeature -import com.twitter.home_mixer.param.HomeGlobalParams -import com.twitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.CountTruncatedItemCandidatesFromPipelines -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.StaticAdsDisplayLocationBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.TruncatedPipelineScopedOrganicItems -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.gate.ParamNotGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel -import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder +import com.ExTwitter.home_mixer.functional_component.gate.ExcludeSoftUserGate +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetLanguageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetTextFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.CountTruncatedItemCandidatesFromPipelines +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.StaticAdsDisplayLocationBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.TruncatedPipelineScopedOrganicItems +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.gate.ParamNotGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouConversationServiceCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouConversationServiceCandidatePipelineConfig.scala index 494d3a584..711ad034b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouConversationServiceCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouConversationServiceCandidatePipelineConfig.scala @@ -1,40 +1,40 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.candidate_pipeline.ConversationServiceResponseFeatureTransformer -import com.twitter.home_mixer.functional_component.decorator.HomeConversationServiceCandidateDecorator -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter -import com.twitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter -import com.twitter.home_mixer.functional_component.filter.PreviouslyServedTweetsFilter -import com.twitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature -import com.twitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSource -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSourceRequest -import com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc.TweetWithConversationMetadata -import com.twitter.product_mixer.component_library.filter.FeatureFilter -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.gate.NoCandidatesGate -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.home_mixer.candidate_pipeline.ConversationServiceResponseFeatureTransformer +import com.ExTwitter.home_mixer.functional_component.decorator.HomeConversationServiceCandidateDecorator +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter +import com.ExTwitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter +import com.ExTwitter.home_mixer.functional_component.filter.PreviouslyServedTweetsFilter +import com.ExTwitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSource +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.ConversationServiceCandidateSourceRequest +import com.ExTwitter.product_mixer.component_library.candidate_source.tweetconvosvc.TweetWithConversationMetadata +import com.ExTwitter.product_mixer.component_library.filter.FeatureFilter +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.gate.NoCandidatesGate +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouProductPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouProductPipelineConfig.scala index e1cf2161c..31dd02d02 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouProductPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouProductPipelineConfig.scala @@ -1,44 +1,44 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.ForYouProductContext -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnablePushToHomeMixerPipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableScoredTweetsMixerPipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.for_you.param.ForYouParamConfig -import com.twitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy -import com.twitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.LatencyAlert -import com.twitter.product_mixer.core.functional_component.common.alert.P99 -import com.twitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.ThroughputAlert -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.Product -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.PipelineConfig -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineConfig -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.product_mixer.core.util.SortIndexBuilder -import com.twitter.timelines.configapi.Params -import com.twitter.timelines.render.{thriftscala => urt} -import com.twitter.timelines.util.RequestCursorSerializer -import com.twitter.util.Time -import com.twitter.util.Try +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.ForYouProductContext +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnablePushToHomeMixerPipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableScoredTweetsMixerPipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParamConfig +import com.ExTwitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.LatencyAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.P99 +import com.ExTwitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.ThroughputAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineConfig +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.product_mixer.core.util.SortIndexBuilder +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.timelines.util.RequestCursorSerializer +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeMixerPipelineConfig.scala index ac529f582..ae0dcf59c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeMixerPipelineConfig.scala @@ -1,28 +1,28 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ClearCacheInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ParamGatedIncludeInstruction -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ClearCacheInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ParamGatedIncludeInstruction +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeTweetCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeTweetCandidatePipelineConfig.scala index 49df4fdf8..d1dc24646 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeTweetCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouPushToHomeTweetCandidatePipelineConfig.scala @@ -1,27 +1,27 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.functional_component.decorator.builder.HomeClientEventInfoBuilder -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.for_you.functional_component.gate.PushToHomeRequestGate -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.candidate_source.PassthroughCandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeClientEventInfoBuilder +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.for_you.functional_component.gate.PushToHomeRequestGate +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.PassthroughCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsCandidatePipelineConfig.scala index d7716e190..cff444f6a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsCandidatePipelineConfig.scala @@ -1,51 +1,51 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.functional_component.decorator.builder.HomeClientEventInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder -import com.twitter.home_mixer.functional_component.decorator.builder.HomeTimelinesScoreInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeTweetSocialContextBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter -import com.twitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter -import com.twitter.home_mixer.functional_component.gate.SupportedLanguagesGate -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.IsNsfwFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature -import com.twitter.home_mixer.product.for_you.candidate_source.ScoredTweetWithConversationMetadata -import com.twitter.home_mixer.product.for_you.candidate_source.ScoredTweetsProductCandidateSource -import com.twitter.home_mixer.product.for_you.feature_hydrator.FocalTweetFeatureHydrator -import com.twitter.home_mixer.product.for_you.filter.SocialContextFilter -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableScoredTweetsCandidatePipelineParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ManualModuleId -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder -import com.twitter.product_mixer.component_library.filter.FeatureFilter -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeClientEventInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeTimelinesScoreInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeTweetSocialContextBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter +import com.ExTwitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter +import com.ExTwitter.home_mixer.functional_component.gate.SupportedLanguagesGate +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsNsfwFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature +import com.ExTwitter.home_mixer.product.for_you.candidate_source.ScoredTweetWithConversationMetadata +import com.ExTwitter.home_mixer.product.for_you.candidate_source.ScoredTweetsProductCandidateSource +import com.ExTwitter.home_mixer.product.for_you.feature_hydrator.FocalTweetFeatureHydrator +import com.ExTwitter.home_mixer.product.for_you.filter.SocialContextFilter +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableScoredTweetsCandidatePipelineParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ManualModuleId +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.filter.FeatureFilter +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsMixerPipelineConfig.scala index 2137c5267..940744e8a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsMixerPipelineConfig.scala @@ -1,88 +1,88 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.clientapp.{thriftscala => ca} -import com.twitter.goldfinch.api.AdsInjectionSurfaceAreas -import com.twitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig -import com.twitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig -import com.twitter.home_mixer.functional_component.decorator.urt.builder.AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator._ -import com.twitter.home_mixer.functional_component.selector.DebunchCandidates -import com.twitter.home_mixer.functional_component.selector.UpdateConversationModuleId -import com.twitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails -import com.twitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration -import com.twitter.home_mixer.functional_component.side_effect._ -import com.twitter.home_mixer.model.ClearCacheIncludeInstruction -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.home_mixer.product.for_you.feature_hydrator.TimelineServiceTweetsQueryFeatureHydrator -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.ClearCacheOnPtr -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableFlipInjectionModuleCandidatePipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.FlipInlineInjectionModulePosition -import com.twitter.home_mixer.product.for_you.param.ForYouParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsPositionParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowPositionParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribePositionParam -import com.twitter.home_mixer.product.for_you.side_effect.ServedCandidateFeatureKeysKafkaSideEffectBuilder -import com.twitter.home_mixer.product.for_you.side_effect.ServedCandidateKeysKafkaSideEffectBuilder -import com.twitter.home_mixer.product.for_you.side_effect.ServedStatsSideEffect -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.FlipPromptCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfig -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ClearCacheInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowCoverInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.DropMaxModuleItemCandidates -import com.twitter.product_mixer.component_library.selector.DropModuleTooFewModuleItemResults -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.InsertFixedPositionResults -import com.twitter.product_mixer.component_library.selector.SelectConditionally -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.component_library.selector.UpdateSortModuleItemCandidates -import com.twitter.product_mixer.component_library.selector.ads.AdsInjector -import com.twitter.product_mixer.component_library.selector.ads.InsertAdResults -import com.twitter.product_mixer.core.functional_component.common.SpecificPipeline -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.FailOpenPolicy -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.clientapp.{thriftscala => ca} +import com.ExTwitter.goldfinch.api.AdsInjectionSurfaceAreas +import com.ExTwitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig +import com.ExTwitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator._ +import com.ExTwitter.home_mixer.functional_component.selector.DebunchCandidates +import com.ExTwitter.home_mixer.functional_component.selector.UpdateConversationModuleId +import com.ExTwitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails +import com.ExTwitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration +import com.ExTwitter.home_mixer.functional_component.side_effect._ +import com.ExTwitter.home_mixer.model.ClearCacheIncludeInstruction +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.home_mixer.product.for_you.feature_hydrator.TimelineServiceTweetsQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.ClearCacheOnPtr +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableFlipInjectionModuleCandidatePipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.FlipInlineInjectionModulePosition +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsPositionParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowPositionParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribePositionParam +import com.ExTwitter.home_mixer.product.for_you.side_effect.ServedCandidateFeatureKeysKafkaSideEffectBuilder +import com.ExTwitter.home_mixer.product.for_you.side_effect.ServedCandidateKeysKafkaSideEffectBuilder +import com.ExTwitter.home_mixer.product.for_you.side_effect.ServedStatsSideEffect +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.FlipPromptCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ClearCacheInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowCoverInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropMaxModuleItemCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropModuleTooFewModuleItemResults +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.InsertFixedPositionResults +import com.ExTwitter.product_mixer.component_library.selector.SelectConditionally +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortModuleItemCandidates +import com.ExTwitter.product_mixer.component_library.selector.ads.AdsInjector +import com.ExTwitter.product_mixer.component_library.selector.ads.InsertAdResults +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipeline +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.FailOpenPolicy +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsResponseFeatureTransformer.scala index eafc09352..e01f78c3c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouScoredTweetsResponseFeatureTransformer.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.product.for_you.candidate_source.ScoredTweetWithConversationMetadata -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType -import com.twitter.timelines.render.{thriftscala => tl} -import com.twitter.timelineservice.suggests.{thriftscala => tls} +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.product.for_you.candidate_source.ScoredTweetWithConversationMetadata +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType +import com.ExTwitter.timelines.render.{thriftscala => tl} +import com.ExTwitter.timelineservice.suggests.{thriftscala => tls} object ForYouScoredTweetsResponseFeatureTransformer extends CandidateFeatureTransformer[ScoredTweetWithConversationMetadata] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerCandidatePipelineConfig.scala index bb93a4110..00da65cc1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerCandidatePipelineConfig.scala @@ -1,66 +1,66 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.functional_component.decorator.builder.HomeClientEventInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder -import com.twitter.home_mixer.functional_component.decorator.builder.HomeTimelinesScoreInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeTweetSocialContextBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.PerspectiveFilteredSocialContextFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.SGSValidSocialContextFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.FeedbackFatigueFilter -import com.twitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter -import com.twitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter -import com.twitter.home_mixer.functional_component.filter.RejectTweetFromViewerFilter -import com.twitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter -import com.twitter.home_mixer.functional_component.scorer.FeedbackFatigueScorer -import com.twitter.home_mixer.functional_component.scorer.OONTweetScalingScorer -import com.twitter.home_mixer.marshaller.timelines.DeviceContextMarshaller -import com.twitter.home_mixer.marshaller.timelines.TimelineServiceCursorMarshaller -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.IsNsfwFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature -import com.twitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.product.for_you.feature_hydrator.FocalTweetFeatureHydrator -import com.twitter.home_mixer.product.for_you.filter.SocialContextFilter -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableTimelineScorerCandidatePipelineParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.candidate_source.timeline_scorer.ScoredTweetCandidateWithFocalTweet -import com.twitter.product_mixer.component_library.candidate_source.timeline_scorer.TimelineScorerCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ManualModuleId -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder -import com.twitter.product_mixer.component_library.filter.FeatureFilter -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.model.candidate.CandidateTweetSourceId -import com.twitter.timelines.service.{thriftscala => tst} -import com.twitter.timelinescorer.{thriftscala => t} -import com.twitter.timelineservice.{thriftscala => tlst} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeClientEventInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeTimelinesScoreInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeTweetSocialContextBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.InNetworkFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.NamesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.PerspectiveFilteredSocialContextFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.SGSValidSocialContextFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.TweetypieFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.FeedbackFatigueFilter +import com.ExTwitter.home_mixer.functional_component.filter.InvalidConversationModuleFilter +import com.ExTwitter.home_mixer.functional_component.filter.InvalidSubscriptionTweetFilter +import com.ExTwitter.home_mixer.functional_component.filter.RejectTweetFromViewerFilter +import com.ExTwitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter +import com.ExTwitter.home_mixer.functional_component.scorer.FeedbackFatigueScorer +import com.ExTwitter.home_mixer.functional_component.scorer.OONTweetScalingScorer +import com.ExTwitter.home_mixer.marshaller.timelines.DeviceContextMarshaller +import com.ExTwitter.home_mixer.marshaller.timelines.TimelineServiceCursorMarshaller +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsNsfwFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetDroppedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.product.for_you.feature_hydrator.FocalTweetFeatureHydrator +import com.ExTwitter.home_mixer.product.for_you.filter.SocialContextFilter +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableTimelineScorerCandidatePipelineParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_scorer.ScoredTweetCandidateWithFocalTweet +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_scorer.TimelineScorerCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ManualModuleId +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.filter.FeatureFilter +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.model.candidate.CandidateTweetSourceId +import com.ExTwitter.timelines.service.{thriftscala => tst} +import com.ExTwitter.timelinescorer.{thriftscala => t} +import com.ExTwitter.timelineservice.{thriftscala => tlst} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerMixerPipelineConfig.scala index 441e5796d..ccbe1bda1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerMixerPipelineConfig.scala @@ -1,92 +1,92 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.clientapp.{thriftscala => ca} -import com.twitter.goldfinch.api.AdsInjectionSurfaceAreas -import com.twitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig -import com.twitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig -import com.twitter.home_mixer.functional_component.decorator.urt.builder.AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator.FeedbackHistoryQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator._ -import com.twitter.home_mixer.functional_component.selector.DebunchCandidates -import com.twitter.home_mixer.functional_component.selector.UpdateConversationModuleId -import com.twitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails -import com.twitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration -import com.twitter.home_mixer.functional_component.side_effect._ -import com.twitter.home_mixer.model.ClearCacheIncludeInstruction -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter -import com.twitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.home_mixer.product.for_you.feature_hydrator.TimelineServiceTweetsQueryFeatureHydrator -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.ClearCacheOnPtr -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableFlipInjectionModuleCandidatePipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.FlipInlineInjectionModulePosition -import com.twitter.home_mixer.product.for_you.param.ForYouParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsPositionParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowPositionParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribePositionParam -import com.twitter.home_mixer.product.for_you.side_effect.ServedCandidateFeatureKeysKafkaSideEffectBuilder -import com.twitter.home_mixer.product.for_you.side_effect.ServedCandidateKeysKafkaSideEffectBuilder -import com.twitter.home_mixer.product.for_you.side_effect.ServedStatsSideEffect -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated.AsyncParamGatedQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.FlipPromptCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfig -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ClearCacheInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowCoverInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.DropMaxModuleItemCandidates -import com.twitter.product_mixer.component_library.selector.DropModuleTooFewModuleItemResults -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.InsertFixedPositionResults -import com.twitter.product_mixer.component_library.selector.SelectConditionally -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.component_library.selector.UpdateSortModuleItemCandidates -import com.twitter.product_mixer.component_library.selector.ads.AdsInjector -import com.twitter.product_mixer.component_library.selector.ads.InsertAdResults -import com.twitter.product_mixer.core.functional_component.common.SpecificPipeline -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.FailOpenPolicy -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.clientapp.{thriftscala => ca} +import com.ExTwitter.goldfinch.api.AdsInjectionSurfaceAreas +import com.ExTwitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig +import com.ExTwitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.AddEntriesWithReplaceAndShowAlertAndCoverInstructionBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.FeedbackHistoryQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator._ +import com.ExTwitter.home_mixer.functional_component.selector.DebunchCandidates +import com.ExTwitter.home_mixer.functional_component.selector.UpdateConversationModuleId +import com.ExTwitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails +import com.ExTwitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration +import com.ExTwitter.home_mixer.functional_component.side_effect._ +import com.ExTwitter.home_mixer.model.ClearCacheIncludeInstruction +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter +import com.ExTwitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.home_mixer.product.for_you.feature_hydrator.TimelineServiceTweetsQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.ClearCacheOnPtr +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableFlipInjectionModuleCandidatePipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.FlipInlineInjectionModulePosition +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsPositionParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowPositionParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribePositionParam +import com.ExTwitter.home_mixer.product.for_you.side_effect.ServedCandidateFeatureKeysKafkaSideEffectBuilder +import com.ExTwitter.home_mixer.product.for_you.side_effect.ServedCandidateKeysKafkaSideEffectBuilder +import com.ExTwitter.home_mixer.product.for_you.side_effect.ServedStatsSideEffect +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated.AsyncParamGatedQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.FlipPromptCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ClearCacheInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowCoverInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropMaxModuleItemCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropModuleTooFewModuleItemResults +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.InsertFixedPositionResults +import com.ExTwitter.product_mixer.component_library.selector.SelectConditionally +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortModuleItemCandidates +import com.ExTwitter.product_mixer.component_library.selector.ads.AdsInjector +import com.ExTwitter.product_mixer.component_library.selector.ads.InsertAdResults +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipeline +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.FailOpenPolicy +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerResponseFeatureTransformer.scala index 236ca9a26..49150cfe0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTimelineScorerResponseFeatureTransformer.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.mediaservices.commons.tweetmedia.{thriftscala => mt} -import com.twitter.product_mixer.component_library.candidate_source.timeline_scorer.ScoredTweetCandidateWithFocalTweet -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType -import com.twitter.search.common.constants.thriftjava.ThriftLanguage -import com.twitter.search.common.util.lang.ThriftLanguageUtil -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.timelinemixer.injection.model.candidate.AudioSpaceMetaData -import com.twitter.timelines.conversation_features.{thriftscala => cvt} -import com.twitter.timelinescorer.common.scoredtweetcandidate.{thriftscala => stc} -import com.twitter.timelineservice.suggests.{thriftscala => tls} +import com.ExTwitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.mediaservices.commons.tweetmedia.{thriftscala => mt} +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_scorer.ScoredTweetCandidateWithFocalTweet +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecWithEducationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType +import com.ExTwitter.search.common.constants.thriftjava.ThriftLanguage +import com.ExTwitter.search.common.util.lang.ThriftLanguageUtil +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.timelinemixer.injection.model.candidate.AudioSpaceMetaData +import com.ExTwitter.timelines.conversation_features.{thriftscala => cvt} +import com.ExTwitter.timelinescorer.common.scoredtweetcandidate.{thriftscala => stc} +import com.ExTwitter.timelineservice.suggests.{thriftscala => tls} object ForYouTimelineScorerResponseFeatureTransformer extends CandidateFeatureTransformer[ScoredTweetCandidateWithFocalTweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTweetPreviewsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTweetPreviewsCandidatePipelineConfig.scala index c60278bfb..957bd2117 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTweetPreviewsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouTweetPreviewsCandidatePipelineConfig.scala @@ -1,51 +1,51 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.filter.DropMaxCandidatesFilter -import com.twitter.home_mixer.functional_component.filter.PreviouslyServedTweetPreviewsFilter -import com.twitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate -import com.twitter.home_mixer.model.HomeFeatures.AuthorEnabledPreviewsFeature -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.home_mixer.product.for_you.feature_hydrator.AuthorEnabledPreviewsFeatureHydrator -import com.twitter.home_mixer.product.for_you.feature_hydrator.TweetPreviewTweetypieCandidateFeatureHydrator -import com.twitter.home_mixer.product.for_you.filter.TweetPreviewTextFilter -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableTweetPreviewsCandidatePipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsMaxCandidatesParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsMinInjectionIntervalParam -import com.twitter.home_mixer.product.for_you.query_transformer.TweetPreviewsQueryTransformer -import com.twitter.home_mixer.product.for_you.response_transformer.TweetPreviewResponseFeatureTransformer -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsFeature -import com.twitter.product_mixer.component_library.filter.FeatureFilter -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomeTweetPreviewHydrationSafetyLevel -import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.filter.DropMaxCandidatesFilter +import com.ExTwitter.home_mixer.functional_component.filter.PreviouslyServedTweetPreviewsFilter +import com.ExTwitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorEnabledPreviewsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.home_mixer.product.for_you.feature_hydrator.AuthorEnabledPreviewsFeatureHydrator +import com.ExTwitter.home_mixer.product.for_you.feature_hydrator.TweetPreviewTweetypieCandidateFeatureHydrator +import com.ExTwitter.home_mixer.product.for_you.filter.TweetPreviewTextFilter +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableTweetPreviewsCandidatePipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsMaxCandidatesParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.TweetPreviewsMinInjectionIntervalParam +import com.ExTwitter.home_mixer.product.for_you.query_transformer.TweetPreviewsQueryTransformer +import com.ExTwitter.home_mixer.product.for_you.response_transformer.TweetPreviewResponseFeatureTransformer +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsFeature +import com.ExTwitter.product_mixer.component_library.filter.FeatureFilter +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomeTweetPreviewHydrationSafetyLevel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToFollowCandidatePipelineConfigBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToFollowCandidatePipelineConfigBuilder.scala index 856f1fa6b..419c5908d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToFollowCandidatePipelineConfigBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToFollowCandidatePipelineConfigBuilder.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeWhoToFollowFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.gate.DismissFatigueGate -import com.twitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate -import com.twitter.home_mixer.model.HomeFeatures.DismissInfoFeature -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.home_mixer.model.HomeFeatures.WhoToFollowExcludedUserIdsFeature -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableWhoToFollowCandidatePipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowDisplayLocationParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowDisplayTypeIdParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowMinInjectionIntervalParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ParamWhoToFollowModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfigBuilder -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeWhoToFollowFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.gate.DismissFatigueGate +import com.ExTwitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate +import com.ExTwitter.home_mixer.model.HomeFeatures.DismissInfoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.WhoToFollowExcludedUserIdsFeature +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableWhoToFollowCandidatePipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowDisplayLocationParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowDisplayTypeIdParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToFollowMinInjectionIntervalParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ParamWhoToFollowModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module.WhoToFollowArmCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToSubscribeCandidatePipelineConfigBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToSubscribeCandidatePipelineConfigBuilder.scala index bd4437b7c..6481880bd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToSubscribeCandidatePipelineConfigBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/ForYouWhoToSubscribeCandidatePipelineConfigBuilder.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.for_you +package com.ExTwitter.home_mixer.product.for_you -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeWhoToSubscribeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.gate.DismissFatigueGate -import com.twitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate -import com.twitter.home_mixer.model.HomeFeatures.DismissInfoFeature -import com.twitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableWhoToSubscribeCandidatePipelineParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribeDisplayTypeIdParam -import com.twitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribeMinInjectionIntervalParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ParamWhoToFollowModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfigBuilder -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.timelineservice.model.rich.EntityIdType -import com.twitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeWhoToSubscribeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.gate.DismissFatigueGate +import com.ExTwitter.home_mixer.functional_component.gate.TimelinesPersistenceStoreLastInjectionGate +import com.ExTwitter.home_mixer.model.HomeFeatures.DismissInfoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PersistenceEntriesFeature +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableWhoToSubscribeCandidatePipelineParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribeDisplayTypeIdParam +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.WhoToSubscribeMinInjectionIntervalParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ParamWhoToFollowModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_subscribe_module.WhoToSubscribeCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.timelineservice.model.rich.EntityIdType +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/BUILD.bazel index 540823800..f5aa32eed 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/BUILD.bazel @@ -6,19 +6,19 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "finatra/inject/inject-core/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/model", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/product_pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/search:earlybird-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/product_pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/search:earlybird-scala", "stitch/stitch-timelineservice/src/main/scala", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/ScoredTweetsProductCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/ScoredTweetsProductCandidateSource.scala index d1daeb93e..c9284c009 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/ScoredTweetsProductCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/candidate_source/ScoredTweetsProductCandidateSource.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.for_you.candidate_source +package com.ExTwitter.home_mixer.product.for_you.candidate_source import com.google.inject.Provider -import com.twitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.model.request.ScoredTweetsProduct -import com.twitter.home_mixer.model.request.ScoredTweetsProductContext -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.functional_component.candidate_source.product_pipeline.ProductPipelineCandidateSource -import com.twitter.product_mixer.core.functional_component.configapi.ParamsBuilder -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.product.registry.ProductPipelineRegistry -import com.twitter.timelines.render.{thriftscala => tl} -import com.twitter.timelineservice.suggests.{thriftscala => st} -import com.twitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProduct +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProductContext +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.product_pipeline.ProductPipelineCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.configapi.ParamsBuilder +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.product.registry.ProductPipelineRegistry +import com.ExTwitter.timelines.render.{thriftscala => tl} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/AuthorEnabledPreviewsFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/AuthorEnabledPreviewsFeatureHydrator.scala index f93a5041f..85a2cb80c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/AuthorEnabledPreviewsFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/AuthorEnabledPreviewsFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.for_you.feature_hydrator +package com.ExTwitter.home_mixer.product.for_you.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorEnabledPreviewsFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.audiencerewards.audienceRewardsService.GetCreatorPreferencesOnUserClientColumn +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorEnabledPreviewsFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.audiencerewards.audienceRewardsService.GetCreatorPreferencesOnUserClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/BUILD.bazel index 87a260b7e..bb72b493e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/BUILD.bazel @@ -5,24 +5,24 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "audience-rewards/thrift/src/main/thrift/common:thrift-scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/util", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/util", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", "stitch/stitch-core", "stitch/stitch-socialgraph", "stitch/stitch-timelineservice", "strato/config/columns/audiencerewards/audienceRewardsService:audienceRewardsService-strato-client", - "strato/src/main/scala/com/twitter/strato/client", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/feedback", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", + "strato/src/main/scala/com/ExTwitter/strato/client", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/feedback", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", "util/util-core", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/FocalTweetFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/FocalTweetFeatureHydrator.scala index 0270a81ab..4d0f1d37a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/FocalTweetFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/FocalTweetFeatureHydrator.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.for_you.feature_hydrator +package com.ExTwitter.home_mixer.product.for_you.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetInNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetRealNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.FocalTweetScreenNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.RealNamesFeature -import com.twitter.home_mixer.model.HomeFeatures.ScreenNamesFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetInNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetRealNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FocalTweetScreenNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RealNamesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScreenNamesFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TimelineServiceTweetsQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TimelineServiceTweetsQueryFeatureHydrator.scala index e0ae2207e..2531c5572 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TimelineServiceTweetsQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TimelineServiceTweetsQueryFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.for_you.feature_hydrator +package com.ExTwitter.home_mixer.product.for_you.feature_hydrator -import com.twitter.home_mixer.marshaller.timelines.DeviceContextMarshaller -import com.twitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.stitch.timelineservice.TimelineService -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.home_mixer.marshaller.timelines.DeviceContextMarshaller +import com.ExTwitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.timelineservice.TimelineService +import com.ExTwitter.timelineservice.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TweetPreviewTweetypieCandidateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TweetPreviewTweetypieCandidateFeatureHydrator.scala index 07f3ae0e9..35dd05087 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TweetPreviewTweetypieCandidateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/feature_hydrator/TweetPreviewTweetypieCandidateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.for_you.feature_hydrator +package com.ExTwitter.home_mixer.product.for_you.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsHydratedFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetTextFeature -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.spam.rtf.{thriftscala => rtf} -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.{thriftscala => TP} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsHydratedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetTextFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.spam.rtf.{thriftscala => rtf} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.{thriftscala => TP} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/BUILD.bazel index 0a875371d..55cacf165 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", "stitch/stitch-core", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/SocialContextFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/SocialContextFilter.scala index 5b007969b..d89f97d8b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/SocialContextFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/SocialContextFilter.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.for_you.filter +package com.ExTwitter.home_mixer.product.for_you.filter -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.product.for_you.param.ForYouParam -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object SocialContextFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/TweetPreviewTextFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/TweetPreviewTextFilter.scala index 61125fcd3..bcfaf93da 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/TweetPreviewTextFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/filter/TweetPreviewTextFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.for_you.filter +package com.ExTwitter.home_mixer.product.for_you.filter -import com.twitter.home_mixer.model.HomeFeatures.TweetTextFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetTextFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object TweetPreviewTextFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/BUILD.bazel index 9a1d186dd..2b6dbce93 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/gate", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/PushToHomeRequestGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/PushToHomeRequestGate.scala index 4c9d81021..44aabd198 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/PushToHomeRequestGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/functional_component/gate/PushToHomeRequestGate.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.for_you.functional_component.gate +package com.ExTwitter.home_mixer.product.for_you.functional_component.gate -import com.twitter.home_mixer.product.for_you.model.ForYouQuery -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.product.for_you.model.ForYouQuery +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.stitch.Stitch /** * Continues when the request is a Push-To-Home notification request diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/BUILD.bazel index bcf9519f5..2e2ef3d40 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/BUILD.bazel @@ -4,18 +4,18 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/quality_factor", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/quality_factor", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouQuery.scala index dda427350..e01452525 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouQuery.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.for_you.model +package com.ExTwitter.home_mixer.product.for_you.model -import com.twitter.adserver.thriftscala.HomeTimelineType -import com.twitter.adserver.thriftscala.TimelineRequestParams -import com.twitter.dspbidder.commons.{thriftscala => dsp} -import com.twitter.home_mixer.model.HomeAdsQuery -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.ForYouProduct -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.onboarding.task.service.{thriftscala => ots} -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.request._ -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Params +import com.ExTwitter.adserver.thriftscala.HomeTimelineType +import com.ExTwitter.adserver.thriftscala.TimelineRequestParams +import com.ExTwitter.dspbidder.commons.{thriftscala => dsp} +import com.ExTwitter.home_mixer.model.HomeAdsQuery +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.ForYouProduct +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.onboarding.task.service.{thriftscala => ots} +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.request._ +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Params case class ForYouQuery( override val params: Params, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouTweetsResponse.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouTweetsResponse.scala index 68b0d6736..f24913bd4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouTweetsResponse.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/model/ForYouTweetsResponse.scala @@ -1,5 +1,5 @@ -package com.twitter.home_mixer.product.for_you.model +package com.ExTwitter.home_mixer.product.for_you.model -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling case class ForYouTweetsResponse(tweetCandidates: Seq[Long]) extends HasMarshalling diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/BUILD.bazel index a56e3a1fd..fbd47eca9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/BUILD.bazel @@ -5,10 +5,10 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "util/util-core/src/main/scala/com/twitter/conversions", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param/decider", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "util/util-core/src/main/scala/com/ExTwitter/conversions", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParam.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParam.scala index 5d117199f..2f1868487 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParam.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParam.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.for_you.param +package com.ExTwitter.home_mixer.product.for_you.param -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.WhoToFollowModuleDisplayType -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.decider.BooleanDeciderParam -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.WhoToFollowModuleDisplayType +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.decider.BooleanDeciderParam +import com.ExTwitter.util.Duration object ForYouParam { val SupportedClientFSName = "for_you_supported_client" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParamConfig.scala index 001ee57ad..1073f1d45 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param/ForYouParamConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.for_you.param +package com.ExTwitter.home_mixer.product.for_you.param -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.home_mixer.product.for_you.param.ForYouParam._ -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.servo.decider.DeciderKeyName +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam._ +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.servo.decider.DeciderKeyName import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/BUILD.bazel index 17e99c46c..4ab5ac5e4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/BUILD.bazel @@ -5,12 +5,12 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "src/java/com/twitter/search/common/schema/earlybird", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/TweetPreviewsQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/TweetPreviewsQueryTransformer.scala index 41940b823..602f4639e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/TweetPreviewsQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/query_transformer/TweetPreviewsQueryTransformer.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.for_you.query_transformer +package com.ExTwitter.home_mixer.product.for_you.query_transformer -import com.twitter.conversions.DurationOps.richDurationFromInt -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.tracing.Trace -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsFeature -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.search.common.ranking.{thriftscala => scr} -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant -import com.twitter.search.earlybird.{thriftscala => t} -import com.twitter.search.queryparser.query.Conjunction -import com.twitter.search.queryparser.query.Query -import com.twitter.search.queryparser.query.search.SearchOperator +import com.ExTwitter.conversions.DurationOps.richDurationFromInt +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.PreviewCreatorsFeature +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.search.common.ranking.{thriftscala => scr} +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.search.queryparser.query.Conjunction +import com.ExTwitter.search.queryparser.query.Query +import com.ExTwitter.search.queryparser.query.search.SearchOperator import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/BUILD.bazel index cf629b665..eb71ce19e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/BUILD.bazel @@ -5,9 +5,9 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "src/java/com/twitter/search/common/schema/earlybird", - "src/thrift/com/twitter/search:earlybird-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/thrift/com/ExTwitter/search:earlybird-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/TweetPreviewResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/TweetPreviewResponseFeatureTransformer.scala index 8b783db38..7a9aa6eb4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/TweetPreviewResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/response_transformer/TweetPreviewResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.for_you.response_transformer +package com.ExTwitter.home_mixer.product.for_you.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsTweetPreviewFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.suggests.{thriftscala => st} -import com.twitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsTweetPreviewFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.search.earlybird.{thriftscala => eb} object TweetPreviewResponseFeatureTransformer extends CandidateFeatureTransformer[eb.ThriftSearchResult] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/scorer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/scorer/BUILD.bazel index c320c8838..cbf0d58d7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/scorer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/scorer/BUILD.bazel @@ -3,8 +3,8 @@ scala_library( compiler_option_sets = ["fatal_warnings"], strict_deps = True, dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "timelineservice/common:model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/BUILD.bazel index 90faf3d45..dca2c591e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/BUILD.bazel @@ -4,21 +4,21 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/for_you/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "kafka/finagle-kafka/finatra-kafka/src/main/scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "src/scala/com/twitter/timelines/prediction/common/adapters", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/thrift/com/twitter/timelines/served_candidates_logging:served_candidates_logging-scala", - "src/thrift/com/twitter/timelines/suggests/common:poly_data_record-java", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/thrift/com/ExTwitter/timelines/served_candidates_logging:served_candidates_logging-scala", + "src/thrift/com/ExTwitter/timelines/suggests/common:poly_data_record-java", "timelines/ml:kafka", - "timelines/ml/cont_train/common/client/src/main/scala/com/twitter/timelines/ml/cont_train/common/client/kafka", - "timelines/ml/cont_train/common/domain/src/main/scala/com/twitter/timelines/ml/cont_train/common/domain/non_scalding", + "timelines/ml/cont_train/common/client/src/main/scala/com/ExTwitter/timelines/ml/cont_train/common/client/kafka", + "timelines/ml/cont_train/common/domain/src/main/scala/com/ExTwitter/timelines/ml/cont_train/common/domain/non_scalding", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffect.scala index bfa7dd52e..32dcf4f50 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffect.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.product.for_you.side_effect +package com.ExTwitter.home_mixer.product.for_you.side_effect -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature -import com.twitter.home_mixer.model.HomeFeatures.PredictionRequestIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableServedCandidateKafkaPublishingParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.side_effect.KafkaPublishingSideEffect -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.ml.cont_train.common.domain.non_scalding.ServedCandidateFeatureKeysAdapter -import com.twitter.timelines.ml.cont_train.common.domain.non_scalding.ServedCandidateFeatureKeysFields -import com.twitter.timelines.ml.kafka.serde.CandidateFeatureKeySerde -import com.twitter.timelines.ml.kafka.serde.TBaseSerde -import com.twitter.timelines.served_candidates_logging.{thriftscala => sc} -import com.twitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} -import com.twitter.timelineservice.suggests.{thriftscala => tls} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PredictionRequestIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableServedCandidateKafkaPublishingParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.side_effect.KafkaPublishingSideEffect +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.ml.cont_train.common.domain.non_scalding.ServedCandidateFeatureKeysAdapter +import com.ExTwitter.timelines.ml.cont_train.common.domain.non_scalding.ServedCandidateFeatureKeysFields +import com.ExTwitter.timelines.ml.kafka.serde.CandidateFeatureKeySerde +import com.ExTwitter.timelines.ml.kafka.serde.TBaseSerde +import com.ExTwitter.timelines.served_candidates_logging.{thriftscala => sc} +import com.ExTwitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} +import com.ExTwitter.timelineservice.suggests.{thriftscala => tls} import org.apache.kafka.clients.producer.ProducerRecord import org.apache.kafka.common.serialization.Serializer import scala.collection.JavaConverters._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffectBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffectBuilder.scala index 5e4164276..7b11cc791 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffectBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateFeatureKeysKafkaSideEffectBuilder.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.for_you.side_effect +package com.ExTwitter.home_mixer.product.for_you.side_effect -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKafkaSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKafkaSideEffect.scala index 7da751764..1d71a8c48 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKafkaSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKafkaSideEffect.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.for_you.side_effect +package com.ExTwitter.home_mixer.product.for_you.side_effect -import com.twitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature -import com.twitter.home_mixer.model.HomeFeatures.PredictionRequestIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature -import com.twitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PredictionRequestIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object ServedCandidateKafkaSideEffect { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffect.scala index aa1247fbb..b5165d98d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffect.scala @@ -1,28 +1,28 @@ -package com.twitter.home_mixer.product.for_you.side_effect +package com.ExTwitter.home_mixer.product.for_you.side_effect -import com.twitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature -import com.twitter.home_mixer.model.HomeFeatures.PredictionRequestIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature -import com.twitter.home_mixer.product.for_you.param.ForYouParam.EnableServedCandidateKafkaPublishingParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.util.SRichDataRecord -import com.twitter.product_mixer.component_library.side_effect.KafkaPublishingSideEffect -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.ml.cont_train.common.domain.non_scalding.DataRecordLoggingRelatedFeatures.tlmServedKeysFeatureContext -import com.twitter.timelines.ml.kafka.serde.ServedCandidateKeySerde -import com.twitter.timelines.ml.kafka.serde.TBaseSerde -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures -import com.twitter.timelines.served_candidates_logging.{thriftscala => sc} -import com.twitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PredictionRequestIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.EnableServedCandidateKafkaPublishingParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.util.SRichDataRecord +import com.ExTwitter.product_mixer.component_library.side_effect.KafkaPublishingSideEffect +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.ml.cont_train.common.domain.non_scalding.DataRecordLoggingRelatedFeatures.tlmServedKeysFeatureContext +import com.ExTwitter.timelines.ml.kafka.serde.ServedCandidateKeySerde +import com.ExTwitter.timelines.ml.kafka.serde.TBaseSerde +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.timelines.served_candidates_logging.{thriftscala => sc} +import com.ExTwitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} +import com.ExTwitter.util.Time import org.apache.kafka.clients.producer.ProducerRecord import org.apache.kafka.common.serialization.Serializer diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffectBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffectBuilder.scala index 31ee389b9..4f474b09e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffectBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedCandidateKeysKafkaSideEffectBuilder.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.for_you.side_effect +package com.ExTwitter.home_mixer.product.for_you.side_effect -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedStatsSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedStatsSideEffect.scala index be7c2a533..275d7062a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedStatsSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/for_you/side_effect/ServedStatsSideEffect.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.for_you.side_effect +package com.ExTwitter.home_mixer.product.for_you.side_effect -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.product.for_you.param.ForYouParam.ExperimentStatsParam -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.product.for_you.param.ForYouParam.ExperimentStatsParam +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BUILD.bazel index 3a52b15dc..2c11352fe 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BUILD.bazel @@ -6,48 +6,48 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "finatra/inject/inject-core/src/main/scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/core/src/main/java/com/twitter/product_mixer/core/product/guice/scope", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/mixer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", - "src/thrift/com/twitter/search:blender-scala", - "src/thrift/com/twitter/timelines/render:thrift-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/selector", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/core/src/main/java/com/ExTwitter/product_mixer/core/product/guice/scope", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/mixer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", + "src/thrift/com/ExTwitter/search:blender-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", ], exports = [ - "src/thrift/com/twitter/timelines/render:thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineConfig.scala index e0919ae9d..25da98821 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineConfig.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.list_recommended_users +package com.ExTwitter.home_mixer.product.list_recommended_users -import com.twitter.home_mixer.product.list_recommended_users.candidate_source.BlenderUsersCandidateSource -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.IsGizmoduckValidUserFeatureHydrator -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.IsSGSValidUserFeatureHydrator -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersFeature -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.gate.EmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.search.blender.thriftscala.ThriftBlenderRequest +import com.ExTwitter.home_mixer.product.list_recommended_users.candidate_source.BlenderUsersCandidateSource +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.IsGizmoduckValidUserFeatureHydrator +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.IsSGSValidUserFeatureHydrator +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersFeature +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.gate.EmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.search.blender.thriftscala.ThriftBlenderRequest import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineQueryTransformer.scala index 03844fd38..34d3f59c0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/BlenderUsersCandidatePipelineQueryTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.list_recommended_users +package com.ExTwitter.home_mixer.product.list_recommended_users -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.search.adaptive.adaptive_results.thriftscala.ResultType -import com.twitter.search.blender.adaptive_search.thriftscala.AdaptiveSearchRequest -import com.twitter.search.blender.thriftscala.ThriftBlenderRequest -import com.twitter.search.blender.thriftscala.ThriftBlenderTweetypieOptions -import com.twitter.search.blender.thriftscala.ThriftBlenderWorkflowID -import com.twitter.search.common.constants.thriftscala.ThriftQuerySource -import com.twitter.spam.rtf.thriftscala.SafetyLevel +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.search.adaptive.adaptive_results.thriftscala.ResultType +import com.ExTwitter.search.blender.adaptive_search.thriftscala.AdaptiveSearchRequest +import com.ExTwitter.search.blender.thriftscala.ThriftBlenderRequest +import com.ExTwitter.search.blender.thriftscala.ThriftBlenderTweetypieOptions +import com.ExTwitter.search.blender.thriftscala.ThriftBlenderWorkflowID +import com.ExTwitter.search.common.constants.thriftscala.ThriftQuerySource +import com.ExTwitter.spam.rtf.thriftscala.SafetyLevel object BlenderUsersCandidatePipelineQueryTransformer extends CandidatePipelineQueryTransformer[ListRecommendedUsersQuery, ThriftBlenderRequest] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersCandidatePipelineConfig.scala index 756c58d72..c5c6569fe 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersCandidatePipelineConfig.scala @@ -1,32 +1,32 @@ -package com.twitter.home_mixer.product.list_recommended_users +package com.ExTwitter.home_mixer.product.list_recommended_users -import com.twitter.hermit.candidate.{thriftscala => t} -import com.twitter.home_mixer.product.list_recommended_users.candidate_source.SimilarityBasedUsersCandidateSource -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.IsGizmoduckValidUserFeatureHydrator -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.IsListMemberFeatureHydrator -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.IsSGSValidUserFeatureHydrator -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersFeature -import com.twitter.home_mixer.product.list_recommended_users.filter.DropMaxCandidatesByAggregatedScoreFilter -import com.twitter.home_mixer.product.list_recommended_users.filter.PreviouslyServedUsersFilter -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsListMemberFeature -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.hermit.candidate.{thriftscala => t} +import com.ExTwitter.home_mixer.product.list_recommended_users.candidate_source.SimilarityBasedUsersCandidateSource +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.IsGizmoduckValidUserFeatureHydrator +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.IsListMemberFeatureHydrator +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.IsSGSValidUserFeatureHydrator +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersFeature +import com.ExTwitter.home_mixer.product.list_recommended_users.filter.DropMaxCandidatesByAggregatedScoreFilter +import com.ExTwitter.home_mixer.product.list_recommended_users.filter.PreviouslyServedUsersFilter +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsListMemberFeature +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersResponseFeatureTransfromer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersResponseFeatureTransfromer.scala index 7153d1f06..5ce3e7562 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersResponseFeatureTransfromer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListMemberBasedUsersResponseFeatureTransfromer.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.product.list_recommended_users +package com.ExTwitter.home_mixer.product.list_recommended_users -import com.twitter.hermit.candidate.{thriftscala => t} -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.ScoreFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.hermit.candidate.{thriftscala => t} +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.ScoreFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier object ListMemberBasedUsersResponseFeatureTransfromer extends CandidateFeatureTransformer[t.Candidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersMixerPipelineConfig.scala index 8c72aefec..20cc01272 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersMixerPipelineConfig.scala @@ -1,35 +1,35 @@ -package com.twitter.home_mixer.product.list_recommended_users +package com.ExTwitter.home_mixer.product.list_recommended_users -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersQueryFeatureHydrator -import com.twitter.home_mixer.product.list_recommended_users.gate.ViewerIsListOwnerGate -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsGizmoduckValidUserFeature -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsSGSValidUserFeature -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ExcludedIdsMaxLengthParam -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ServerMaxResultsParam -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesWithReplaceInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UnorderedExcludeIdsBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.DropFilteredCandidates -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.list_recommended_users.gate.ViewerIsListOwnerGate +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsGizmoduckValidUserFeature +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsSGSValidUserFeature +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ExcludedIdsMaxLengthParam +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ServerMaxResultsParam +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesWithReplaceInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UnorderedExcludeIdsBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.DropFilteredCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersProductPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersProductPipelineConfig.scala index f0c2ac70e..5f435d605 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersProductPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/ListRecommendedUsersProductPipelineConfig.scala @@ -1,35 +1,35 @@ -package com.twitter.home_mixer.product.list_recommended_users +package com.ExTwitter.home_mixer.product.list_recommended_users -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.marshaller.timelines.RecommendedUsersCursorUnmarshaller -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.model.request.ListRecommendedUsersProduct -import com.twitter.home_mixer.model.request.ListRecommendedUsersProductContext -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParamConfig -import com.twitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy -import com.twitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.common.alert.LatencyAlert -import com.twitter.product_mixer.core.functional_component.common.alert.P99 -import com.twitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.request -import com.twitter.product_mixer.core.pipeline.PipelineConfig -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineConfig -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.timelines.configapi.Params -import com.twitter.timelines.render.{thriftscala => urt} -import com.twitter.timelines.util.RequestCursorSerializer -import com.twitter.util.Try +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.marshaller.timelines.RecommendedUsersCursorUnmarshaller +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.model.request.ListRecommendedUsersProduct +import com.ExTwitter.home_mixer.model.request.ListRecommendedUsersProductContext +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParamConfig +import com.ExTwitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.LatencyAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.P99 +import com.ExTwitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request +import com.ExTwitter.product_mixer.core.pipeline.PipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineConfig +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.timelines.util.RequestCursorSerializer +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BUILD.bazel index e1fa1de1c..96f306a3c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "src/thrift/com/twitter/hermit/candidate:hermit-candidate-scala", - "src/thrift/com/twitter/search:blender-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/hermit/candidate:hermit-candidate-scala", + "src/thrift/com/ExTwitter/search:blender-scala", "strato/config/columns/recommendations/similarity:similarity-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BlenderUsersCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BlenderUsersCandidateSource.scala index 3b7ac39fc..b7a61bd6d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BlenderUsersCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/BlenderUsersCandidateSource.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.list_recommended_users.candidate_source +package com.ExTwitter.home_mixer.product.list_recommended_users.candidate_source -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.search.adaptive.adaptive_results.thriftscala.AdaptiveSearchResultData -import com.twitter.search.adaptive.adaptive_results.thriftscala.Result -import com.twitter.search.adaptive.adaptive_results.thriftscala.ResultData -import com.twitter.search.blender.adaptive_search.thriftscala.AdaptiveSearchResponse -import com.twitter.search.blender.adaptive_search.thriftscala.Container -import com.twitter.search.blender.thriftscala.BlenderService -import com.twitter.search.blender.thriftscala.ThriftBlenderRequest -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.search.adaptive.adaptive_results.thriftscala.AdaptiveSearchResultData +import com.ExTwitter.search.adaptive.adaptive_results.thriftscala.Result +import com.ExTwitter.search.adaptive.adaptive_results.thriftscala.ResultData +import com.ExTwitter.search.blender.adaptive_search.thriftscala.AdaptiveSearchResponse +import com.ExTwitter.search.blender.adaptive_search.thriftscala.Container +import com.ExTwitter.search.blender.thriftscala.BlenderService +import com.ExTwitter.search.blender.thriftscala.ThriftBlenderRequest +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/SimilarityBasedUsersCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/SimilarityBasedUsersCandidateSource.scala index f5428d032..9ad3f5938 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/SimilarityBasedUsersCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/candidate_source/SimilarityBasedUsersCandidateSource.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.list_recommended_users.candidate_source +package com.ExTwitter.home_mixer.product.list_recommended_users.candidate_source -import com.twitter.hermit.candidate.{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.twitter.stitch.Stitch -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.recommendations.similarity.SimilarUsersBySimsOnUserClientColumn +import com.ExTwitter.hermit.candidate.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.recommendations.similarity.SimilarUsersBySimsOnUserClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/BUILD.bazel index bdd2de735..5b6d7f80c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/gizmoduck:thrift-scala", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", "stitch/stitch-gizmoduck", "stitch/stitch-socialgraph", ], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsGizmoduckValidUserFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsGizmoduckValidUserFeatureHydrator.scala index 80a41adf0..3b519d3ec 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsGizmoduckValidUserFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsGizmoduckValidUserFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.list_recommended_users.feature_hydrator +package com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator -import com.twitter.gizmoduck.{thriftscala => gt} -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsGizmoduckValidUserFeature -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.spam.rtf.{thriftscala => rtf} -import com.twitter.stitch.Stitch -import com.twitter.stitch.gizmoduck.Gizmoduck -import com.twitter.util.Return +import com.ExTwitter.gizmoduck.{thriftscala => gt} +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsGizmoduckValidUserFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.spam.rtf.{thriftscala => rtf} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.util.Return import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsListMemberFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsListMemberFeatureHydrator.scala index c9e529de5..3fe0bcf32 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsListMemberFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsListMemberFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.list_recommended_users.feature_hydrator +package com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator -import com.twitter.home_mixer.model.request.HasListId -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsListMemberFeature -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.home_mixer.model.request.HasListId +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsListMemberFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsSGSValidUserFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsSGSValidUserFeatureHydrator.scala index de70d45d8..2b5736248 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsSGSValidUserFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/IsSGSValidUserFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.list_recommended_users.feature_hydrator +package com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator -import com.twitter.home_mixer.model.request.HasListId -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsSGSValidUserFeature -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.home_mixer.model.request.HasListId +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.IsSGSValidUserFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/RecentListMembersQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/RecentListMembersQueryFeatureHydrator.scala index 81a5ce504..e72a2d25d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/RecentListMembersQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator/RecentListMembersQueryFeatureHydrator.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.list_recommended_users.feature_hydrator +package com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator -import com.twitter.home_mixer.model.request.HasListId -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.home_mixer.model.request.HasListId +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/BUILD.bazel index 72a5f251f..076c58254 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_recommended_users/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", ], exports = [], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/DropMaxCandidatesByAggregatedScoreFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/DropMaxCandidatesByAggregatedScoreFilter.scala index a68c37450..a79fe47a7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/DropMaxCandidatesByAggregatedScoreFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/DropMaxCandidatesByAggregatedScoreFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.list_recommended_users.filter +package com.ExTwitter.home_mixer.product.list_recommended_users.filter -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.ScoreFeature -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersFeatures.ScoreFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object DropMaxCandidatesByAggregatedScoreFilter extends Filter[PipelineQuery, UserCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/PreviouslyServedUsersFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/PreviouslyServedUsersFilter.scala index ac8c3107d..56641cf36 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/PreviouslyServedUsersFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/filter/PreviouslyServedUsersFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.list_recommended_users.filter +package com.ExTwitter.home_mixer.product.list_recommended_users.filter -import com.twitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersFeature -import com.twitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.product.list_recommended_users.feature_hydrator.RecentListMembersFeature +import com.ExTwitter.home_mixer.product.list_recommended_users.model.ListRecommendedUsersQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.stitch.Stitch object PreviouslyServedUsersFilter extends Filter[ListRecommendedUsersQuery, UserCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/BUILD.bazel index f8a7083b9..1c78f5a75 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/BUILD.bazel @@ -4,9 +4,9 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/gate", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/gate", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", "stitch/stitch-socialgraph", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/ViewerIsListOwnerGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/ViewerIsListOwnerGate.scala index e7ab3084e..666b8e474 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/ViewerIsListOwnerGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/gate/ViewerIsListOwnerGate.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.product.list_recommended_users.gate +package com.ExTwitter.home_mixer.product.list_recommended_users.gate -import com.twitter.home_mixer.model.request.HasListId -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.home_mixer.model.request.HasListId +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/BUILD.bazel index 78302f75b..bc463bbfd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/BUILD.bazel @@ -4,13 +4,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersFeatures.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersFeatures.scala index baed8171b..934d38078 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersFeatures.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersFeatures.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.list_recommended_users.model +package com.ExTwitter.home_mixer.product.list_recommended_users.model -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature object ListRecommendedUsersFeatures { // Candidate features diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersQuery.scala index 15b16c25b..627d1967b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/model/ListRecommendedUsersQuery.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.list_recommended_users.model +package com.ExTwitter.home_mixer.product.list_recommended_users.model -import com.twitter.home_mixer.model.request.HasListId -import com.twitter.home_mixer.model.request.ListRecommendedUsersProduct -import com.twitter.product_mixer.component_library.model.cursor.UrtUnorderedExcludeIdsCursor -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.request._ -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Params +import com.ExTwitter.home_mixer.model.request.HasListId +import com.ExTwitter.home_mixer.model.request.ListRecommendedUsersProduct +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtUnorderedExcludeIdsCursor +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.request._ +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Params case class ListRecommendedUsersQuery( override val listId: Long, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/BUILD.bazel index 18867ad9e..55e49f448 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/BUILD.bazel @@ -5,8 +5,8 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param/decider", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParam.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParam.scala index 3822a1987..ec8b8f512 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParam.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParam.scala @@ -1,6 +1,6 @@ -package com.twitter.home_mixer.product.list_recommended_users.param +package com.ExTwitter.home_mixer.product.list_recommended_users.param -import com.twitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSBoundedParam object ListRecommendedUsersParam { val SupportedClientFSName = "list_recommended_users_supported_client" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParamConfig.scala index b162ef755..5375b4d83 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_recommended_users/param/ListRecommendedUsersParamConfig.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.list_recommended_users.param +package com.ExTwitter.home_mixer.product.list_recommended_users.param -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ExcludedIdsMaxLengthParam -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.SupportedClientFSName -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.servo.decider.DeciderKeyName +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ExcludedIdsMaxLengthParam +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.list_recommended_users.param.ListRecommendedUsersParam.SupportedClientFSName +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.servo.decider.DeciderKeyName import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/BUILD.bazel index a7d22148a..ee809f275 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/BUILD.bazel @@ -5,57 +5,57 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/api", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/api", "finatra/inject/inject-core/src/main/scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/java/com/twitter/product_mixer/core/product/guice/scope", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/mixer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "src/thrift/com/twitter/timelines/render:thrift-scala", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/candidate_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/selector", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/timeline_service", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/java/com/ExTwitter/product_mixer/core/product/guice/scope", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/mixer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", ], exports = [ - "src/thrift/com/twitter/timelines/render:thrift-scala", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsAdsCandidatePipelineBuilder.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsAdsCandidatePipelineBuilder.scala index 9e5a4e541..73db02e50 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsAdsCandidatePipelineBuilder.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsAdsCandidatePipelineBuilder.scala @@ -1,33 +1,33 @@ -package com.twitter.home_mixer.product.list_tweets +package com.ExTwitter.home_mixer.product.list_tweets -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder -import com.twitter.home_mixer.functional_component.gate.ExcludeSoftUserGate -import com.twitter.home_mixer.param.HomeGlobalParams -import com.twitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam -import com.twitter.home_mixer.product.list_tweets.model.ListTweetsQuery -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParam.EnableAdsCandidatePipelineParam -import com.twitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfig -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfigBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.CountCandidatesFromPipelines -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.StaticAdsDisplayLocationBuilder -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.gate.ParamNotGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel -import com.twitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeAdsClientEventDetailsBuilder +import com.ExTwitter.home_mixer.functional_component.gate.ExcludeSoftUserGate +import com.ExTwitter.home_mixer.param.HomeGlobalParams +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableAdvertiserBrandSafetySettingsFeatureHydratorParam +import com.ExTwitter.home_mixer.product.list_tweets.model.ListTweetsQuery +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParam.EnableAdsCandidatePipelineParam +import com.ExTwitter.product_mixer.component_library.candidate_source.ads.AdsProdThriftCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.ads.AdvertiserBrandSafetySettingsFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsDependentCandidatePipelineConfigBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.CountCandidatesFromPipelines +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.StaticAdsDisplayLocationBuilder +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.ValidAdImpressionIdFilter +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.gate.ParamNotGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.rtf.safety_level.TimelineHomePromotedHydrationSafetyLevel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsMixerPipelineConfig.scala index 2d7dd3b31..221255ef9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsMixerPipelineConfig.scala @@ -1,52 +1,52 @@ -package com.twitter.home_mixer.product.list_tweets +package com.ExTwitter.home_mixer.product.list_tweets -import com.twitter.clientapp.{thriftscala => ca} -import com.twitter.goldfinch.api.AdsInjectionSurfaceAreas -import com.twitter.home_mixer.candidate_pipeline.ConversationServiceCandidatePipelineConfigBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator.RequestQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.side_effect.HomeScribeClientEventSideEffect -import com.twitter.home_mixer.model.GapIncludeInstruction -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag -import com.twitter.home_mixer.product.list_tweets.decorator.ListConversationServiceCandidateDecorator -import com.twitter.home_mixer.product.list_tweets.model.ListTweetsQuery -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesWithReplaceAndShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedGapCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.component_library.selector.ads.AdsInjector -import com.twitter.product_mixer.component_library.selector.ads.InsertAdResults -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.FailOpenPolicy -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.clientapp.{thriftscala => ca} +import com.ExTwitter.goldfinch.api.AdsInjectionSurfaceAreas +import com.ExTwitter.home_mixer.candidate_pipeline.ConversationServiceCandidatePipelineConfigBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.RequestQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.side_effect.HomeScribeClientEventSideEffect +import com.ExTwitter.home_mixer.model.GapIncludeInstruction +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag +import com.ExTwitter.home_mixer.product.list_tweets.decorator.ListConversationServiceCandidateDecorator +import com.ExTwitter.home_mixer.product.list_tweets.model.ListTweetsQuery +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesWithReplaceAndShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedGapCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.component_library.selector.ads.AdsInjector +import com.ExTwitter.product_mixer.component_library.selector.ads.InsertAdResults +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.FailOpenPolicy +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsProductPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsProductPipelineConfig.scala index b4b5b1924..bdba95299 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsProductPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsProductPipelineConfig.scala @@ -1,44 +1,44 @@ -package com.twitter.home_mixer.product.list_tweets +package com.ExTwitter.home_mixer.product.list_tweets -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.model.request.ListTweetsProduct -import com.twitter.home_mixer.model.request.ListTweetsProductContext -import com.twitter.home_mixer.product.list_tweets.model.ListTweetsQuery -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParamConfig -import com.twitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy -import com.twitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.LatencyAlert -import com.twitter.product_mixer.core.functional_component.common.alert.P99 -import com.twitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.ThroughputAlert -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.request -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.PipelineConfig -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineConfig -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.product_mixer.core.util.SortIndexBuilder -import com.twitter.timelines.configapi.Params -import com.twitter.timelines.render.{thriftscala => urt} -import com.twitter.timelines.util.RequestCursorSerializer -import com.twitter.util.Time -import com.twitter.util.Try +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.model.request.ListTweetsProduct +import com.ExTwitter.home_mixer.model.request.ListTweetsProductContext +import com.ExTwitter.home_mixer.product.list_tweets.model.ListTweetsQuery +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParamConfig +import com.ExTwitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.LatencyAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.P99 +import com.ExTwitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.ThroughputAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineConfig +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.product_mixer.core.util.SortIndexBuilder +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.timelines.util.RequestCursorSerializer +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsTimelineServiceCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsTimelineServiceCandidatePipelineConfig.scala index 1af95e873..26cc78709 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsTimelineServiceCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/ListTweetsTimelineServiceCandidatePipelineConfig.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.list_tweets +package com.ExTwitter.home_mixer.product.list_tweets -import com.twitter.home_mixer.candidate_pipeline.TimelineServiceResponseFeatureTransformer -import com.twitter.home_mixer.marshaller.timelines.TimelineServiceCursorMarshaller -import com.twitter.home_mixer.product.list_tweets.model.ListTweetsQuery -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParam.ServerMaxResultsParam -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.component_library.candidate_source.timeline_service.TimelineServiceTweetCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.home_mixer.candidate_pipeline.TimelineServiceResponseFeatureTransformer +import com.ExTwitter.home_mixer.marshaller.timelines.TimelineServiceCursorMarshaller +import com.ExTwitter.home_mixer.product.list_tweets.model.ListTweetsQuery +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_service.TimelineServiceTweetCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelineservice.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/BUILD.bazel index 4258ffc36..6bebe2412 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/builder", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets/decorator/builder", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/ListConversationServiceCandidateDecorator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/ListConversationServiceCandidateDecorator.scala index a02b628e8..a607aa88b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/ListConversationServiceCandidateDecorator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/ListConversationServiceCandidateDecorator.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.list_tweets.decorator +package com.ExTwitter.home_mixer.product.list_tweets.decorator -import com.twitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder -import com.twitter.home_mixer.functional_component.decorator.builder.ListClientEventDetailsBuilder -import com.twitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.injection.scribe.InjectionScribeUtil -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.functional_component.decorator.builder.HomeConversationModuleMetadataBuilder +import com.ExTwitter.home_mixer.functional_component.decorator.builder.ListClientEventDetailsBuilder +import com.ExTwitter.home_mixer.model.HomeFeatures.ConversationModuleFocalTweetIdFeature +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.StaticModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.injection.scribe.InjectionScribeUtil +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ListConversationServiceCandidateDecorator { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/builder/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/builder/BUILD.bazel index 3ed81a196..fae6a77c3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/builder/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/decorator/builder/BUILD.bazel @@ -4,7 +4,7 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/BUILD.bazel index fac4ba949..229155d51 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/BUILD.bazel @@ -4,16 +4,16 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/list_tweets/param", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/ListTweetsQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/ListTweetsQuery.scala index ce8c73c0a..07978d7ee 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/ListTweetsQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/model/ListTweetsQuery.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.list_tweets.model +package com.ExTwitter.home_mixer.product.list_tweets.model -import com.twitter.adserver.thriftscala.HomeTimelineType -import com.twitter.adserver.thriftscala.TimelineRequestParams -import com.twitter.dspbidder.commons.{thriftscala => dsp} -import com.twitter.home_mixer.model.HomeAdsQuery -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasListId -import com.twitter.home_mixer.model.request.ListTweetsProduct -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.request._ -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Params +import com.ExTwitter.adserver.thriftscala.HomeTimelineType +import com.ExTwitter.adserver.thriftscala.TimelineRequestParams +import com.ExTwitter.dspbidder.commons.{thriftscala => dsp} +import com.ExTwitter.home_mixer.model.HomeAdsQuery +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasListId +import com.ExTwitter.home_mixer.model.request.ListTweetsProduct +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.request._ +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Params case class ListTweetsQuery( override val params: Params, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/BUILD.bazel index 18867ad9e..55e49f448 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/BUILD.bazel @@ -5,8 +5,8 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param/decider", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParam.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParam.scala index 827d29f10..a97cbafc7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParam.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParam.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.list_tweets.param +package com.ExTwitter.home_mixer.product.list_tweets.param -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam object ListTweetsParam { val SupportedClientFSName = "list_tweets_supported_client" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParamConfig.scala index 01575db92..823965514 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/list_tweets/param/ListTweetsParamConfig.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.list_tweets.param +package com.ExTwitter.home_mixer.product.list_tweets.param -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParam.EnableAdsCandidatePipelineParam -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.list_tweets.param.ListTweetsParam.SupportedClientFSName -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.servo.decider.DeciderKeyName +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParam.EnableAdsCandidatePipelineParam +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.list_tweets.param.ListTweetsParam.SupportedClientFSName +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.servo.decider.DeciderKeyName import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/BUILD.bazel index 4bbbec94d..62340bedb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/BUILD.bazel @@ -5,36 +5,36 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "explore/explore-ranker/thrift/src/main/thrift:thrift-scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/candidate_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/marshaller", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/scoring_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/selector", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/recommendation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/async", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/recommendation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsProductPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsProductPipelineConfig.scala index 27278db0c..a1482b4d9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsProductPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsProductPipelineConfig.scala @@ -1,27 +1,27 @@ -package com.twitter.home_mixer.product.scored_tweets +package com.ExTwitter.home_mixer.product.scored_tweets -import com.twitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.model.request.ScoredTweetsProduct -import com.twitter.home_mixer.model.request.ScoredTweetsProductContext -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.ServerMaxResultsParam -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParamConfig -import com.twitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.Product -import com.twitter.product_mixer.core.pipeline.PipelineConfig -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineConfig -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.timelines.configapi.Params +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedTweetIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProduct +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProductContext +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParamConfig +import com.ExTwitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.pipeline.PipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineConfig +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsRecommendationPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsRecommendationPipelineConfig.scala index e3d50040b..d6e3a70e1 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsRecommendationPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/ScoredTweetsRecommendationPipelineConfig.scala @@ -1,103 +1,103 @@ -package com.twitter.home_mixer.product.scored_tweets +package com.ExTwitter.home_mixer.product.scored_tweets -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.functional_component.feature_hydrator.FeedbackHistoryQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.ImpressionBloomFilterQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.RealGraphInNetworkScoresQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.RequestQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.feature_hydrator.TweetImpressionsQueryFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.FeedbackFatigueFilter -import com.twitter.home_mixer.functional_component.filter.PreviouslySeenTweetsFilter -import com.twitter.home_mixer.functional_component.filter.PreviouslyServedTweetsFilter -import com.twitter.home_mixer.functional_component.filter.RejectTweetFromViewerFilter -import com.twitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter -import com.twitter.home_mixer.functional_component.side_effect.PublishClientSentImpressionsEventBusSideEffect -import com.twitter.home_mixer.functional_component.side_effect.PublishClientSentImpressionsManhattanSideEffect -import com.twitter.home_mixer.functional_component.side_effect.PublishImpressionBloomFilterSideEffect -import com.twitter.home_mixer.functional_component.side_effect.UpdateLastNonPollingTimeSideEffect -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsSupportAccountReplyFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter -import com.twitter.home_mixer.param.HomeMixerFlagName.TargetFetchLatency -import com.twitter.home_mixer.param.HomeMixerFlagName.TargetScoringLatency -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.CachedScoredTweetsCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsBackfillCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsFrsCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsInNetworkCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsListsCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsPopularVideosCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsTweetMixerCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsUtegCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.CachedScoredTweetsQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.ListIdsQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RealTimeInteractionGraphUserVertexQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RequestTimeQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TwhinUserEngagementQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TwhinUserFollowQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.UserLanguagesFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.UserStateQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.PartAAggregateQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.PartBAggregateQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates.UserEngagementRealTimeAggregatesFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.filter.DuplicateConversationTweetsFilter -import com.twitter.home_mixer.product.scored_tweets.filter.OutOfNetworkCompetitorFilter -import com.twitter.home_mixer.product.scored_tweets.filter.OutOfNetworkCompetitorURLFilter -import com.twitter.home_mixer.product.scored_tweets.filter.ScoredTweetsSocialContextFilter -import com.twitter.home_mixer.product.scored_tweets.marshaller.ScoredTweetsResponseDomainMarshaller -import com.twitter.home_mixer.product.scored_tweets.marshaller.ScoredTweetsResponseTransportMarshaller -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.MaxInNetworkResultsParam -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.MaxOutOfNetworkResultsParam -import com.twitter.home_mixer.product.scored_tweets.scoring_pipeline.ScoredTweetsHeuristicScoringPipelineConfig -import com.twitter.home_mixer.product.scored_tweets.scoring_pipeline.ScoredTweetsModelScoringPipelineConfig -import com.twitter.home_mixer.product.scored_tweets.selector.KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType -import com.twitter.home_mixer.product.scored_tweets.side_effect.CachedScoredTweetsSideEffect -import com.twitter.home_mixer.product.scored_tweets.side_effect.ScribeScoredCandidatesSideEffect -import com.twitter.home_mixer.product.scored_tweets.side_effect.ScribeServedCommonFeaturesAndCandidateFeaturesSideEffect -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated.ParamGatedQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.selector.DropDuplicateCandidates -import com.twitter.product_mixer.component_library.selector.DropFilteredMaxCandidates -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.IdAndClassDuplicationKey -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.PickFirstCandidateMerger -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.component_library.selector.sorter.FeatureValueSorter -import com.twitter.product_mixer.core.functional_component.common.AllExceptPipelines -import com.twitter.product_mixer.core.functional_component.common.AllPipelines -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ScoringPipelineIdentifier -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.FailOpenPolicy -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.recommendation.RecommendationPipelineConfig -import com.twitter.product_mixer.core.pipeline.scoring.ScoringPipelineConfig -import com.twitter.product_mixer.core.quality_factor.BoundsWithDefault -import com.twitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorConfig -import com.twitter.product_mixer.core.quality_factor.QualityFactorConfig -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.FeedbackHistoryQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.ImpressionBloomFilterQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.RealGraphInNetworkScoresQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.RequestQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.feature_hydrator.TweetImpressionsQueryFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.FeedbackFatigueFilter +import com.ExTwitter.home_mixer.functional_component.filter.PreviouslySeenTweetsFilter +import com.ExTwitter.home_mixer.functional_component.filter.PreviouslyServedTweetsFilter +import com.ExTwitter.home_mixer.functional_component.filter.RejectTweetFromViewerFilter +import com.ExTwitter.home_mixer.functional_component.filter.RetweetDeduplicationFilter +import com.ExTwitter.home_mixer.functional_component.side_effect.PublishClientSentImpressionsEventBusSideEffect +import com.ExTwitter.home_mixer.functional_component.side_effect.PublishClientSentImpressionsManhattanSideEffect +import com.ExTwitter.home_mixer.functional_component.side_effect.PublishImpressionBloomFilterSideEffect +import com.ExTwitter.home_mixer.functional_component.side_effect.UpdateLastNonPollingTimeSideEffect +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsSupportAccountReplyFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.param.HomeGlobalParams.EnableImpressionBloomFilter +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.TargetFetchLatency +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.TargetScoringLatency +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.CachedScoredTweetsCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsBackfillCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsFrsCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsInNetworkCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsListsCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsPopularVideosCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsTweetMixerCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsUtegCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.CachedScoredTweetsQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.ListIdsQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RealTimeInteractionGraphUserVertexQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RequestTimeQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TwhinUserEngagementQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TwhinUserFollowQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.UserLanguagesFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.UserStateQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.PartAAggregateQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.PartBAggregateQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates.UserEngagementRealTimeAggregatesFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.filter.DuplicateConversationTweetsFilter +import com.ExTwitter.home_mixer.product.scored_tweets.filter.OutOfNetworkCompetitorFilter +import com.ExTwitter.home_mixer.product.scored_tweets.filter.OutOfNetworkCompetitorURLFilter +import com.ExTwitter.home_mixer.product.scored_tweets.filter.ScoredTweetsSocialContextFilter +import com.ExTwitter.home_mixer.product.scored_tweets.marshaller.ScoredTweetsResponseDomainMarshaller +import com.ExTwitter.home_mixer.product.scored_tweets.marshaller.ScoredTweetsResponseTransportMarshaller +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.MaxInNetworkResultsParam +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.MaxOutOfNetworkResultsParam +import com.ExTwitter.home_mixer.product.scored_tweets.scoring_pipeline.ScoredTweetsHeuristicScoringPipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.scoring_pipeline.ScoredTweetsModelScoringPipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.selector.KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType +import com.ExTwitter.home_mixer.product.scored_tweets.side_effect.CachedScoredTweetsSideEffect +import com.ExTwitter.home_mixer.product.scored_tweets.side_effect.ScribeScoredCandidatesSideEffect +import com.ExTwitter.home_mixer.product.scored_tweets.side_effect.ScribeServedCommonFeaturesAndCandidateFeaturesSideEffect +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated.ParamGatedQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.selector.DropDuplicateCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropFilteredMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.IdAndClassDuplicationKey +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.PickFirstCandidateMerger +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.component_library.selector.sorter.FeatureValueSorter +import com.ExTwitter.product_mixer.core.functional_component.common.AllExceptPipelines +import com.ExTwitter.product_mixer.core.functional_component.common.AllPipelines +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.RecommendationPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ScoringPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.FailOpenPolicy +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.recommendation.RecommendationPipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.scoring.ScoringPipelineConfig +import com.ExTwitter.product_mixer.core.quality_factor.BoundsWithDefault +import com.ExTwitter.product_mixer.core.quality_factor.LinearLatencyQualityFactorConfig +import com.ExTwitter.product_mixer.core.quality_factor.QualityFactorConfig +import com.ExTwitter.util.Duration import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/BUILD.bazel index c5bb294a1..a23f43130 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/BUILD.bazel @@ -5,33 +5,33 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "explore/explore-ranker/thrift/src/main/thrift:thrift-scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/query_transformer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/response_transformer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweet_mixer", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "src/thrift/com/twitter/timelineranker:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/explore_ranker", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/timeline_ranker", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/tweet_mixer", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", "tweet-mixer/thrift/src/main/thrift:thrift-scala", ], exports = [ - "src/thrift/com/twitter/timelineranker:thrift-scala", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", "tweet-mixer/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/CachedScoredTweetsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/CachedScoredTweetsCandidatePipelineConfig.scala index 65a42cbee..d77fe1bdf 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/CachedScoredTweetsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/CachedScoredTweetsCandidatePipelineConfig.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.CachedScoredTweetsCandidatePipelineConfig._ -import com.twitter.home_mixer.product.scored_tweets.candidate_source.CachedScoredTweetsCandidateSource -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.response_transformer.CachedScoredTweetsResponseFeatureTransformer -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.CachedScoredTweetsCandidatePipelineConfig._ +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_source.CachedScoredTweetsCandidateSource +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.CachedScoredTweetsResponseFeatureTransformer +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsBackfillCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsBackfillCandidatePipelineConfig.scala index c34031c78..6289cd204 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsBackfillCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsBackfillCandidatePipelineConfig.scala @@ -1,33 +1,33 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.home_mixer.functional_component.filter.ReplyFilter -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.gate.MinTimeSinceLastRequestGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.EnableBackfillCandidatePipelineParam -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsBackfillResponseFeatureTransformer -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.candidate_source.PassthroughCandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.home_mixer.functional_component.filter.ReplyFilter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TimelineServiceTweetsFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinTimeSinceLastRequestGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.EnableBackfillCandidatePipelineParam +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsBackfillResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.PassthroughCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsFrsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsFrsCandidatePipelineConfig.scala index f25a839b7..5cb15b9e2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsFrsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsFrsCandidatePipelineConfig.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUsersQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerFrsQueryTransformer -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsFrsResponseFeatureTransformer -import com.twitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerRecapCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseQueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelineranker.{thriftscala => tlr} -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUsersQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerFrsQueryTransformer +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsFrsResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerRecapCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseQueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelineranker.{thriftscala => tlr} +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsInNetworkCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsInNetworkCandidatePipelineConfig.scala index 63bd1add8..15bec69b6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsInNetworkCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsInNetworkCandidatePipelineConfig.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.IsExtendedReplyFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.ReplyFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RetweetSourceTweetFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.filter.RetweetSourceTweetRemovingFilter -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerInNetworkQueryTransformer -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsInNetworkResponseFeatureTransformer -import com.twitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerInNetworkCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelineranker.{thriftscala => t} -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.IsExtendedReplyFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.ReplyFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RetweetSourceTweetFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.filter.RetweetSourceTweetRemovingFilter +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerInNetworkQueryTransformer +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsInNetworkResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerInNetworkCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelineranker.{thriftscala => t} +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsListsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsListsCandidatePipelineConfig.scala index 1161a8278..ef52222e0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsListsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsListsCandidatePipelineConfig.scala @@ -1,28 +1,28 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator -import com.twitter.home_mixer.functional_component.filter.ReplyFilter -import com.twitter.home_mixer.functional_component.filter.RetweetFilter -import com.twitter.home_mixer.product.scored_tweets.candidate_source.ListsCandidateSource -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.ListIdsFeature -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsListsResponseFeatureTransformer -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.decider.DeciderParam -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator +import com.ExTwitter.home_mixer.functional_component.filter.ReplyFilter +import com.ExTwitter.home_mixer.functional_component.filter.RetweetFilter +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_source.ListsCandidateSource +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.ListIdsFeature +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsListsResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.timelineservice.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsPopularVideosCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsPopularVideosCandidatePipelineConfig.scala index c8b28b0ff..a72c5cc0a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsPopularVideosCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsPopularVideosCandidatePipelineConfig.scala @@ -1,25 +1,25 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.explore_ranker.{thriftscala => ert} -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsPopularVideosResponseFeatureTransformer -import com.twitter.home_mixer.util.CachedScoredTweetsHelper -import com.twitter.product_mixer.component_library.candidate_source.explore_ranker.ExploreRankerImmersiveRecsCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.marshaller.request.ClientContextMarshaller -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.explore_ranker.{thriftscala => ert} +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsPopularVideosResponseFeatureTransformer +import com.ExTwitter.home_mixer.util.CachedScoredTweetsHelper +import com.ExTwitter.product_mixer.component_library.candidate_source.explore_ranker.ExploreRankerImmersiveRecsCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.marshaller.request.ClientContextMarshaller +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsTweetMixerCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsTweetMixerCandidatePipelineConfig.scala index df16e3f11..1096535ba 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsTweetMixerCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsTweetMixerCandidatePipelineConfig.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.tweet_mixer.{thriftscala => t} -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsTweetMixerResponseFeatureTransformer -import com.twitter.home_mixer.util.CachedScoredTweetsHelper -import com.twitter.product_mixer.component_library.candidate_source.tweet_mixer.TweetMixerCandidateSource -import com.twitter.product_mixer.component_library.filter.PredicateFeatureFilter -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.marshaller.request.ClientContextMarshaller -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.tweet_mixer.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieStaticEntitiesFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsTweetMixerResponseFeatureTransformer +import com.ExTwitter.home_mixer.util.CachedScoredTweetsHelper +import com.ExTwitter.product_mixer.component_library.candidate_source.tweet_mixer.TweetMixerCandidateSource +import com.ExTwitter.product_mixer.component_library.filter.PredicateFeatureFilter +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.marshaller.request.ClientContextMarshaller +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsUtegCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsUtegCandidatePipelineConfig.scala index 9178d0789..82f295514 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsUtegCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/ScoredTweetsUtegCandidatePipelineConfig.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerUtegQueryTransformer -import com.twitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsUtegResponseFeatureTransformer -import com.twitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerUtegCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelineranker.{thriftscala => t} -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CandidatePipeline +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerUtegQueryTransformer +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.ScoredTweetsUtegResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerUtegCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelineranker.{thriftscala => t} +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/BUILD.bazel index 618c4a081..efa09b89d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/BUILD.bazel @@ -4,18 +4,18 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "src/thrift/com/twitter/search:earlybird-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/query_transformer/earlybird", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/response_transformer/earlybird", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/earlybird", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "src/thrift/com/ExTwitter/search:earlybird-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdFrsCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdFrsCandidatePipelineConfig.scala index 0d59bf3ca..dea15386a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdFrsCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdFrsCandidatePipelineConfig.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.earlybird -import com.twitter.finagle.thrift.ClientId -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUsersQueryFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdFrsQueryTransformer -import com.twitter.home_mixer.product.scored_tweets.response_transformer.earlybird.ScoredTweetsEarlybirdFrsResponseFeatureTransformer -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseQueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUsersQueryFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdFrsQueryTransformer +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.earlybird.ScoredTweetsEarlybirdFrsResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseQueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.search.earlybird.{thriftscala => eb} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdInNetworkCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdInNetworkCandidatePipelineConfig.scala index acb26ce42..2c9fadc00 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdInNetworkCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline/earlybird/ScoredTweetsEarlybirdInNetworkCandidatePipelineConfig.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.earlybird -import com.twitter.finagle.thrift.ClientId -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdInNetworkQueryTransformer -import com.twitter.home_mixer.product.scored_tweets.response_transformer.earlybird.ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdInNetworkQueryTransformer +import com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.earlybird.ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.search.earlybird.{thriftscala => eb} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/BUILD.bazel index 4461d8460..5489f9e9f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "src/thrift/com/twitter/timelineservice:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "src/thrift/com/ExTwitter/timelineservice:thrift-scala", "stitch/stitch-timelineservice", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/CachedScoredTweetsCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/CachedScoredTweetsCandidateSource.scala index a5f556e7c..fcb12c76f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/CachedScoredTweetsCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/CachedScoredTweetsCandidateSource.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_source +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_source -import com.twitter.home_mixer.util.CachedScoredTweetsHelper -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.util.CachedScoredTweetsHelper +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/ListsCandidateSource.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/ListsCandidateSource.scala index 395ac7da8..7bb323333 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/ListsCandidateSource.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_source/ListsCandidateSource.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.product.scored_tweets.candidate_source +package com.ExTwitter.home_mixer.product.scored_tweets.candidate_source -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.stitch.timelineservice.TimelineService -import com.twitter.timelineservice.{thriftscala => tls} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.timelineservice.TimelineService +import com.ExTwitter.timelineservice.{thriftscala => tls} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AncestorFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AncestorFeatureHydrator.scala index 9c5e8f3ab..d90493c9f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AncestorFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AncestorFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} -import com.twitter.tweetconvosvc.{thriftscala => tcs} -import com.twitter.util.Future +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} +import com.ExTwitter.tweetconvosvc.{thriftscala => tcs} +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorFeatureHydrator.scala index c8dd6a934..d1289a74b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorFeatureHydrator.scala @@ -1,28 +1,28 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.AuthorFeatureRepository -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.author_features.AuthorFeaturesAdapter -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.servo.repository.KeyValueResult -import com.twitter.stitch.Stitch -import com.twitter.timelines.author_features.v1.{thriftjava => af} -import com.twitter.util.Future -import com.twitter.util.Try +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.AuthorFeatureRepository +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.author_features.AuthorFeaturesAdapter +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.servo.repository.KeyValueResult +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.author_features.v1.{thriftjava => af} +import com.ExTwitter.util.Future +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorIsCreatorFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorIsCreatorFeatureHydrator.scala index cc66983cc..01ebcea27 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorIsCreatorFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/AuthorIsCreatorFeatureHydrator.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature -import com.twitter.home_mixer.util.MissingKeyException -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.audiencerewards.audienceRewardsService.GetSuperFollowEligibilityOnUserClientColumn -import com.twitter.util.Throw +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature +import com.ExTwitter.home_mixer.util.MissingKeyException +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.audiencerewards.audienceRewardsService.GetSuperFollowEligibilityOnUserClientColumn +import com.ExTwitter.util.Throw import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/BUILD.bazel index 58a566de8..d23473ccc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/BUILD.bazel @@ -5,66 +5,66 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/earlybird", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/tweetypie", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/tweetypie/content", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/util", - "representation-scorer/server/src/main/scala/com/twitter/representationscorer/common", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/recommendations", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/timeline_ranker", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/util", + "representation-scorer/server/src/main/scala/com/ExTwitter/representationscorer/common", "servo/repo/src/main/scala", "servo/util/src/main/scala", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/ml/api/constant", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/adapters/conversation_features", - "src/scala/com/twitter/timelines/prediction/adapters/real_graph", - "src/scala/com/twitter/timelines/prediction/adapters/realtime_interaction_graph", - "src/scala/com/twitter/timelines/prediction/adapters/twistly", - "src/scala/com/twitter/timelines/prediction/adapters/two_hop_features", - "src/scala/com/twitter/timelines/prediction/common/adapters", - "src/scala/com/twitter/timelines/prediction/common/util", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/scala/com/twitter/timelines/prediction/features/realtime_interaction_graph", - "src/scala/com/twitter/timelines/prediction/features/time_features", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/onboarding/relevance/features:features-java", - "src/thrift/com/twitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/timelineranker:thrift-scala", - "src/thrift/com/twitter/timelines/author_features:thrift-java", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/ml/api/constant", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/adapters/conversation_features", + "src/scala/com/ExTwitter/timelines/prediction/adapters/real_graph", + "src/scala/com/ExTwitter/timelines/prediction/adapters/realtime_interaction_graph", + "src/scala/com/ExTwitter/timelines/prediction/adapters/twistly", + "src/scala/com/ExTwitter/timelines/prediction/adapters/two_hop_features", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters", + "src/scala/com/ExTwitter/timelines/prediction/common/util", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/scala/com/ExTwitter/timelines/prediction/features/realtime_interaction_graph", + "src/scala/com/ExTwitter/timelines/prediction/features/time_features", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/onboarding/relevance/features:features-java", + "src/thrift/com/ExTwitter/recos/user_tweet_entity_graph:user_tweet_entity_graph-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", + "src/thrift/com/ExTwitter/timelines/author_features:thrift-java", "stitch/stitch-gizmoduck", "stitch/stitch-socialgraph", "stitch/stitch-tweetypie", "strato/config/columns/audiencerewards/audienceRewardsService:getSuperFollowEligibility-strato-client", "strato/config/columns/ml/featureStore:featureStore-strato-client", - "timelines/src/main/scala/com/twitter/timelines/clients/strato/topics", - "timelines/src/main/scala/com/twitter/timelines/clients/strato/twistly", - "timelines/src/main/scala/com/twitter/timelines/common/model", - "timelines/src/main/scala/com/twitter/timelines/earlybird/common/utils", - "timelines/src/main/scala/com/twitter/timelines/model/candidate", - "timelines/src/main/scala/com/twitter/timelines/model/types", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/strato/topics", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/strato/twistly", + "timelines/src/main/scala/com/ExTwitter/timelines/common/model", + "timelines/src/main/scala/com/ExTwitter/timelines/earlybird/common/utils", + "timelines/src/main/scala/com/ExTwitter/timelines/model/candidate", + "timelines/src/main/scala/com/ExTwitter/timelines/model/types", "topic-social-proof/server/src/main/thrift:thrift-scala", - "topiclisting/topiclisting-core/src/main/scala/com/twitter/topiclisting", + "topiclisting/topiclisting-core/src/main/scala/com/ExTwitter/topiclisting", "tweetconvosvc/thrift/src/main/thrift:thrift-scala", - "user_session_store/src/main/scala/com/twitter/user_session_store", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/CachedScoredTweetsQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/CachedScoredTweetsQueryFeatureHydrator.scala index 873f043be..017ce361c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/CachedScoredTweetsQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/CachedScoredTweetsQueryFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.TtlCache -import com.twitter.stitch.Stitch -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.TtlCache +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/EarlybirdFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/EarlybirdFeatureHydrator.scala index cc3c2aeeb..f88b71bcf 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/EarlybirdFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/EarlybirdFeatureHydrator.scala @@ -1,34 +1,34 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird.EarlybirdAdapter -import com.twitter.home_mixer.model.HomeFeatures.DeviceLanguageFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdSearchResultFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetUrlsFeature -import com.twitter.home_mixer.model.HomeFeatures.UserScreenNameFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.EarlybirdRepository -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.home_mixer.util.earlybird.EarlybirdResponseUtil -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.util.Return +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird.EarlybirdAdapter +import com.ExTwitter.home_mixer.model.HomeFeatures.DeviceLanguageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdSearchResultFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetUrlsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.UserScreenNameFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.EarlybirdRepository +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.home_mixer.util.earlybird.EarlybirdResponseUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Return import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/FrsSeedUsersQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/FrsSeedUsersQueryFeatureHydrator.scala index 2508067b0..2bb23f03f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/FrsSeedUsersQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/FrsSeedUsersQueryFeatureHydrator.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.follow_recommendations.{thriftscala => frs} -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.product_mixer.component_library.candidate_source.recommendations.UserFollowRecommendationsCandidateSource -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyView -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.follow_recommendations.{thriftscala => frs} +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.product_mixer.component_library.candidate_source.recommendations.UserFollowRecommendationsCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyView +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GizmoduckAuthorFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GizmoduckAuthorFeatureHydrator.scala index 7c96ef474..0b42e4992 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GizmoduckAuthorFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GizmoduckAuthorFeatureHydrator.scala @@ -1,26 +1,26 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.conversions.DurationOps._ -import com.twitter.ads.entities.db.{thriftscala => ae} -import com.twitter.gizmoduck.{thriftscala => gt} -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsProtectedFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.IsSupportAccountReplyFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.snowflake.id.SnowflakeId +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.ads.entities.db.{thriftscala => ae} +import com.ExTwitter.gizmoduck.{thriftscala => gt} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsProtectedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsSupportAccountReplyFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.snowflake.id.SnowflakeId import javax.inject.Inject import javax.inject.Singleton @@ -63,7 +63,7 @@ class GizmoduckAuthorFeatureHydrator @Inject() (gizmoduck: gt.UserService.Method val authorId = candidate.features.get(AuthorIdFeature).get val (isBlueVerified, isProtected) = userMetadataMap(authorId) - // Some accounts run promotions on Twitter and send replies automatically. + // Some accounts run promotions on ExTwitter and send replies automatically. // We assume that a reply that took more than one minute is not an auto-reply. // If time difference doesn't exist, this means that one of the tweets was // not snowflake and therefore much older, and therefore OK as an extended reply. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GraphTwoHopFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GraphTwoHopFeatureHydrator.scala index 03d70445e..20930d456 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GraphTwoHopFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/GraphTwoHopFeatureHydrator.scala @@ -1,29 +1,29 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.graph_feature_service.{thriftscala => gfs} -import com.twitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.GraphTwoHopRepository -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.adapters.two_hop_features.TwoHopFeaturesAdapter -import com.twitter.util.Try +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.graph_feature_service.{thriftscala => gfs} +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.GraphTwoHopRepository +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.adapters.two_hop_features.TwoHopFeaturesAdapter +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/IsExtendedReplyFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/IsExtendedReplyFeatureHydrator.scala index fb114e55c..641a7d789 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/IsExtendedReplyFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/IsExtendedReplyFeatureHydrator.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsExtendedReplyFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsExtendedReplyFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch object IsExtendedReplyFeatureHydrator extends BulkCandidateFeatureHydrator[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ListIdsQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ListIdsQueryFeatureHydrator.scala index db60d8866..53f0508bd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ListIdsQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ListIdsQueryFeatureHydrator.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.{thriftscala => sg} -import com.twitter.stitch.Stitch -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.{thriftscala => sg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/MetricCenterUserCountingFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/MetricCenterUserCountingFeatureHydrator.scala index bc51aabb9..4396bed70 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/MetricCenterUserCountingFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/MetricCenterUserCountingFeatureHydrator.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.MetricCenterUserCountingFeatureRepository -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.onboarding.relevance.features.{thriftjava => rf} -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.util.Future +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.MetricCenterUserCountingFeatureRepository +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.onboarding.relevance.features.{thriftjava => rf} +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphQueryFeatureHydrator.scala index a48d3742e..a62f6b719 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphQueryFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealGraphFeatureRepository -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.repository.Repository -import com.twitter.timelines.real_graph.{thriftscala => rg} -import com.twitter.stitch.Stitch -import com.twitter.timelines.model.UserId -import com.twitter.timelines.real_graph.v1.thriftscala.RealGraphEdgeFeatures -import com.twitter.user_session_store.{thriftscala => uss} +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealGraphFeatureRepository +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.repository.Repository +import com.ExTwitter.timelines.real_graph.{thriftscala => rg} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.model.UserId +import com.ExTwitter.timelines.real_graph.v1.thriftscala.RealGraphEdgeFeatures +import com.ExTwitter.user_session_store.{thriftscala => uss} import javax.inject.Inject import javax.inject.Named diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerAuthorFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerAuthorFeatureHydrator.scala index 6048213aa..b82fea935 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerAuthorFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerAuthorFeatureHydrator.scala @@ -1,26 +1,26 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphViewerAuthorFeatureHydrator.getCombinedRealGraphFeatures -import com.twitter.home_mixer.util.MissingKeyException -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.adapters.real_graph.RealGraphEdgeFeaturesCombineAdapter -import com.twitter.timelines.prediction.adapters.real_graph.RealGraphFeaturesAdapter -import com.twitter.timelines.real_graph.v1.{thriftscala => v1} -import com.twitter.timelines.real_graph.{thriftscala => rg} -import com.twitter.util.Throw +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphViewerAuthorFeatureHydrator.getCombinedRealGraphFeatures +import com.ExTwitter.home_mixer.util.MissingKeyException +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.adapters.real_graph.RealGraphEdgeFeaturesCombineAdapter +import com.ExTwitter.timelines.prediction.adapters.real_graph.RealGraphFeaturesAdapter +import com.ExTwitter.timelines.real_graph.v1.{thriftscala => v1} +import com.ExTwitter.timelines.real_graph.{thriftscala => rg} +import com.ExTwitter.util.Throw import javax.inject.Inject import javax.inject.Singleton import scala.collection.JavaConverters._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerRelatedUsersFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerRelatedUsersFeatureHydrator.scala index 47e2431cf..9e39669fb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerRelatedUsersFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealGraphViewerRelatedUsersFeatureHydrator.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.adapters.real_graph.RealGraphEdgeFeaturesCombineAdapter -import com.twitter.timelines.real_graph.v1.{thriftscala => v1} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.adapters.real_graph.RealGraphEdgeFeaturesCombineAdapter +import com.ExTwitter.timelines.real_graph.v1.{thriftscala => v1} import javax.inject.Inject import javax.inject.Singleton import scala.collection.JavaConverters._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphEdgeFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphEdgeFeatureHydrator.scala index f690ff0e0..6b76ae967 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphEdgeFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphEdgeFeatureHydrator.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.adapters.realtime_interaction_graph.RealTimeInteractionGraphFeaturesAdapter -import com.twitter.timelines.prediction.features.realtime_interaction_graph.RealTimeInteractionGraphEdgeFeatures -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.adapters.realtime_interaction_graph.RealTimeInteractionGraphFeaturesAdapter +import com.ExTwitter.timelines.prediction.features.realtime_interaction_graph.RealTimeInteractionGraphEdgeFeatures +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton import scala.collection.JavaConverters._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphUserVertexQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphUserVertexQueryFeatureHydrator.scala index 60d82cc28..c6c2d3f06 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphUserVertexQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RealTimeInteractionGraphUserVertexQueryFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexCache -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.stitch.Stitch -import com.twitter.wtf.real_time_interaction_graph.{thriftscala => ig} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.RealTimeInteractionGraphUserVertexCache +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.wtf.real_time_interaction_graph.{thriftscala => ig} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ReplyFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ReplyFeatureHydrator.scala index 80d857a26..05686b286 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ReplyFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/ReplyFeatureHydrator.scala @@ -1,31 +1,31 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.ContentFeatures -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content.InReplyToContentFeatureAdapter -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird.InReplyToEarlybirdAdapter -import com.twitter.home_mixer.util.ReplyRetweetUtil -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.search.common.features.thriftscala.ThriftTweetFeatures -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.conversation_features.v1.thriftscala.ConversationFeatures -import com.twitter.timelines.conversation_features.{thriftscala => cf} -import com.twitter.timelines.prediction.adapters.conversation_features.ConversationFeaturesAdapter -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.ContentFeatures +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content.InReplyToContentFeatureAdapter +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird.InReplyToEarlybirdAdapter +import com.ExTwitter.home_mixer.util.ReplyRetweetUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.search.common.features.thriftscala.ThriftTweetFeatures +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.conversation_features.v1.thriftscala.ConversationFeatures +import com.ExTwitter.timelines.conversation_features.{thriftscala => cf} +import com.ExTwitter.timelines.prediction.adapters.conversation_features.ConversationFeaturesAdapter +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton import scala.collection.JavaConverters._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RequestTimeQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RequestTimeQueryFeatureHydrator.scala index fd9656d8c..34f640c45 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RequestTimeQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RequestTimeQueryFeatureHydrator.scala @@ -1,34 +1,34 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.FollowingLastNonPollingTimeFeature -import com.twitter.home_mixer.model.HomeFeatures.LastNonPollingTimeFeature -import com.twitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.util.FDsl._ -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.features.time_features.AccountAgeInterval -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.ACCOUNT_AGE_INTERVAL -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.IS_12_MONTH_NEW_USER -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.IS_30_DAY_NEW_USER -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.TIME_BETWEEN_NON_POLLING_REQUESTS_AVG -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.TIME_SINCE_LAST_NON_POLLING_REQUEST -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.TIME_SINCE_VIEWER_ACCOUNT_CREATION_SECS -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.USER_ID_IS_SNOWFLAKE_ID -import com.twitter.user_session_store.ReadRequest -import com.twitter.user_session_store.ReadWriteUserSessionStore -import com.twitter.user_session_store.UserSessionDataset -import com.twitter.user_session_store.UserSessionDataset.UserSessionDataset -import com.twitter.util.Time +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowingLastNonPollingTimeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.LastNonPollingTimeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.util.FDsl._ +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.features.time_features.AccountAgeInterval +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.ACCOUNT_AGE_INTERVAL +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.IS_12_MONTH_NEW_USER +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.IS_30_DAY_NEW_USER +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.TIME_BETWEEN_NON_POLLING_REQUESTS_AVG +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.TIME_SINCE_LAST_NON_POLLING_REQUEST +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.TIME_SINCE_VIEWER_ACCOUNT_CREATION_SECS +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures.USER_ID_IS_SNOWFLAKE_ID +import com.ExTwitter.user_session_store.ReadRequest +import com.ExTwitter.user_session_store.ReadWriteUserSessionStore +import com.ExTwitter.user_session_store.UserSessionDataset +import com.ExTwitter.user_session_store.UserSessionDataset.UserSessionDataset +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RetweetSourceTweetFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RetweetSourceTweetFeatureHydrator.scala index 33cbef884..3e30bf7cc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RetweetSourceTweetFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/RetweetSourceTweetFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerInNetworkSourceTweetsByTweetIdMapFeature -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.search.common.features.thriftscala.ThriftTweetFeatures -import com.twitter.stitch.Stitch -import com.twitter.timelineranker.thriftscala.CandidateTweet +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.component_library.candidate_source.timeline_ranker.TimelineRankerInNetworkSourceTweetsByTweetIdMapFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.search.common.features.thriftscala.ThriftTweetFeatures +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelineranker.thriftscala.CandidateTweet object SourceTweetEarlybirdFeature extends Feature[TweetCandidate, Option[ThriftTweetFeatures]] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersEngagementSimilarityFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersEngagementSimilarityFeatureHydrator.scala index f66966f00..f434c45b0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersEngagementSimilarityFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersEngagementSimilarityFeatureHydrator.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.clients.strato.twistly.SimClustersRecentEngagementSimilarityClient -import com.twitter.timelines.configapi.decider.BooleanDeciderParam -import com.twitter.timelines.prediction.adapters.twistly.SimClustersRecentEngagementSimilarityFeaturesAdapter +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.clients.strato.twistly.SimClustersRecentEngagementSimilarityClient +import com.ExTwitter.timelines.configapi.decider.BooleanDeciderParam +import com.ExTwitter.timelines.prediction.adapters.twistly.SimClustersRecentEngagementSimilarityFeaturesAdapter import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersUserTweetScoresHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersUserTweetScoresHydrator.scala index c938f34c5..112904d38 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersUserTweetScoresHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/SimClustersUserTweetScoresHydrator.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.dal.personal_data.{thriftjava => pd} -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdFeature -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.datarecord.DataRecordOptionalFeature -import com.twitter.product_mixer.core.feature.datarecord.DoubleDataRecordCompatible -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.strato.catalog.Fetch -import com.twitter.strato.generated.client.ml.featureStore.SimClustersUserInterestedInTweetEmbeddingDotProduct20M145K2020OnUserTweetEdgeClientColumn +import com.ExTwitter.dal.personal_data.{thriftjava => pd} +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordOptionalFeature +import com.ExTwitter.product_mixer.core.feature.datarecord.DoubleDataRecordCompatible +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.catalog.Fetch +import com.ExTwitter.strato.generated.client.ml.featureStore.SimClustersUserInterestedInTweetEmbeddingDotProduct20M145K2020OnUserTweetEdgeClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TSPInferredTopicFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TSPInferredTopicFeatureHydrator.scala index f6047730f..f06f214f9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TSPInferredTopicFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TSPInferredTopicFeatureHydrator.scala @@ -1,31 +1,31 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.contentrecommender.{thriftscala => cr} -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.TSPMetricTagFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.inferred_topic.InferredTopicAdapter -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContextFunctionalityType -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.clients.strato.topics.TopicSocialProofClient -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => sid} -import com.twitter.topiclisting.TopicListingViewerContext -import com.twitter.tsp.{thriftscala => tsp} +import com.ExTwitter.contentrecommender.{thriftscala => cr} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TSPMetricTagFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.inferred_topic.InferredTopicAdapter +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.BasicTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RecommendationTopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TopicContextFunctionalityType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.clients.strato.topics.TopicSocialProofClient +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => sid} +import com.ExTwitter.topiclisting.TopicListingViewerContext +import com.ExTwitter.tsp.{thriftscala => tsp} import javax.inject.Inject import javax.inject.Singleton import scala.collection.JavaConverters._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetMetaDataFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetMetaDataFeatureHydrator.scala index 1c237bf18..6a8f6c93d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetMetaDataFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetMetaDataFeatureHydrator.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.api.constant.SharedFeatures -import com.twitter.ml.api.util.DataRecordConverters._ -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.api.constant.SharedFeatures +import com.ExTwitter.ml.api.util.DataRecordConverters._ +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures import java.lang.{Long => JLong} object TweetMetaDataDataRecord diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetTimeFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetTimeFeatureHydrator.scala index 947016826..84e29229f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetTimeFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetTimeFeatureHydrator.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdFeature -import com.twitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.util.FDsl._ -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.features.time_features.TimeDataRecordFeatures._ -import com.twitter.util.Duration +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.NonPollingTimesFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.util.FDsl._ +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.features.time_features.TimeDataRecordFeatures._ +import com.ExTwitter.util.Duration import scala.collection.Searching._ object TweetTimeDataRecordFeature diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieContentFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieContentFeatureHydrator.scala index 93039e8bc..e9ba990ed 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieContentFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieContentFeatureHydrator.scala @@ -1,35 +1,35 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.escherbird.{thriftscala => esb} -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.MediaUnderstandingAnnotationIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetypieContentRepository -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content.ContentFeatureAdapter -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.home_mixer.util.tweetypie.content.FeatureExtractionHelper -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.timelines.prediction.common.util.MediaUnderstandingAnnotations -import com.twitter.tweetypie.{thriftscala => tp} -import com.twitter.util.Future -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try +import com.ExTwitter.escherbird.{thriftscala => esb} +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.MediaUnderstandingAnnotationIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetypieContentRepository +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content.ContentFeatureAdapter +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.home_mixer.util.tweetypie.content.FeatureExtractionHelper +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.prediction.common.util.MediaUnderstandingAnnotations +import com.ExTwitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.util.Future +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieStaticEntitiesFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieStaticEntitiesFeatureHydrator.scala index 0ea9e8591..c18223b34 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieStaticEntitiesFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TweetypieStaticEntitiesFeatureHydrator.scala @@ -1,37 +1,37 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator import com.google.inject.name.Named -import com.twitter.conversions.DurationOps.RichDuration -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.HasImageFeature -import com.twitter.home_mixer.model.HomeFeatures.HasVideoFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetypieStaticEntitiesCache -import com.twitter.home_mixer.util.tweetypie.RequestFields -import com.twitter.home_mixer.util.tweetypie.content.TweetMediaFeaturesExtractor -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.TtlCache -import com.twitter.spam.rtf.{thriftscala => sp} -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.conversions.DurationOps.RichDuration +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasImageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasVideoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetypieStaticEntitiesCache +import com.ExTwitter.home_mixer.util.tweetypie.RequestFields +import com.ExTwitter.home_mixer.util.tweetypie.content.TweetMediaFeaturesExtractor +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.TtlCache +import com.ExTwitter.spam.rtf.{thriftscala => sp} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.{thriftscala => tp} import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinAuthorFollowFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinAuthorFollowFeatureHydrator.scala index 2e531bfb2..a3a996001 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinAuthorFollowFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinAuthorFollowFeatureHydrator.scala @@ -1,28 +1,28 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TwhinAuthorFollowFeatureRepository -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings.TwhinAuthorFollowEmbeddingsAdapter -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.{thriftscala => ml} -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.servo.repository.KeyValueResult -import com.twitter.stitch.Stitch -import com.twitter.util.Future -import com.twitter.util.Try +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TwhinAuthorFollowFeatureRepository +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings.TwhinAuthorFollowEmbeddingsAdapter +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.{thriftscala => ml} +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.servo.repository.KeyValueResult +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Future +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserEngagementQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserEngagementQueryFeatureHydrator.scala index f43abc98f..f334eeefa 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserEngagementQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserEngagementQueryFeatureHydrator.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TwhinUserEngagementFeatureRepository -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings.TwhinUserEngagementEmbeddingsAdapter -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.{thriftscala => ml} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.util.Return -import com.twitter.util.Throw +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TwhinUserEngagementFeatureRepository +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings.TwhinUserEngagementEmbeddingsAdapter +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.{thriftscala => ml} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserFollowQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserFollowQueryFeatureHydrator.scala index 925043e1e..439bcb286 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserFollowQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/TwhinUserFollowQueryFeatureHydrator.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TwhinUserFollowFeatureRepository -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings.TwhinUserFollowEmbeddingsAdapter -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.{thriftscala => ml} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.util.Return -import com.twitter.util.Throw +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TwhinUserFollowFeatureRepository +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings.TwhinUserFollowEmbeddingsAdapter +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.{thriftscala => ml} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserFollowedTopicIdsFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserFollowedTopicIdsFeatureHydrator.scala index 90f618fd0..9ed72b19f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserFollowedTopicIdsFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserFollowedTopicIdsFeatureHydrator.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserFollowedTopicIdsRepository -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch -import com.twitter.util.Future -import com.twitter.util.Try +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserFollowedTopicIdsRepository +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Future +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserLanguagesFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserLanguagesFeatureHydrator.scala index e2431c43e..2f0be8c30 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserLanguagesFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserLanguagesFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserLanguagesRepository -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.search.common.constants.{thriftscala => scc} -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserLanguagesRepository +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.search.common.constants.{thriftscala => scc} +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserStateQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserStateQueryFeatureHydrator.scala index 5a61f31fb..b265fe88c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserStateQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UserStateQueryFeatureHydrator.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.UserStateFeature -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.user_health.v1.{thriftscala => uhv1} -import com.twitter.timelines.user_health.{thriftscala => uh} -import com.twitter.user_session_store.ReadOnlyUserSessionStore -import com.twitter.user_session_store.ReadRequest -import com.twitter.user_session_store.UserSessionDataset -import com.twitter.user_session_store.UserSessionDataset.UserSessionDataset +import com.ExTwitter.home_mixer.model.HomeFeatures.UserStateFeature +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.user_health.v1.{thriftscala => uhv1} +import com.ExTwitter.timelines.user_health.{thriftscala => uh} +import com.ExTwitter.user_session_store.ReadOnlyUserSessionStore +import com.ExTwitter.user_session_store.ReadRequest +import com.ExTwitter.user_session_store.UserSessionDataset +import com.ExTwitter.user_session_store.UserSessionDataset.UserSessionDataset import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UtegFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UtegFeatureHydrator.scala index 96b9657e7..841f2c14e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UtegFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/UtegFeatureHydrator.scala @@ -1,31 +1,31 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByCountFeature -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature -import com.twitter.home_mixer.model.HomeFeatures.RepliedByCountFeature -import com.twitter.home_mixer.model.HomeFeatures.RepliedByEngagerIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.RetweetedByCountFeature -import com.twitter.home_mixer.model.HomeFeatures.RetweetedByEngagerIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UtegSocialProofRepository -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.recos.recos_common.{thriftscala => rc} -import com.twitter.recos.user_tweet_entity_graph.{thriftscala => uteg} -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.servo.repository.KeyValueRepository -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByCountFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RepliedByCountFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RepliedByEngagerIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RetweetedByCountFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RetweetedByEngagerIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UtegSocialProofRepository +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.recos.recos_common.{thriftscala => rc} +import com.ExTwitter.recos.user_tweet_entity_graph.{thriftscala => uteg} +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.servo.repository.KeyValueRepository +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/AuthorFeaturesAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/AuthorFeaturesAdapter.scala index cbaa3f18c..a1b9ca3b0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/AuthorFeaturesAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/AuthorFeaturesAdapter.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.author_features +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.author_features -import com.twitter.home_mixer.util.DataRecordUtil -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.util.CompactDataRecordConverter -import com.twitter.ml.api.util.FDsl._ -import com.twitter.timelines.author_features.v1.{thriftjava => af} -import com.twitter.timelines.prediction.common.adapters.TimelinesAdapterBase -import com.twitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig -import com.twitter.timelines.prediction.features.user_health.UserHealthFeatures +import com.ExTwitter.home_mixer.util.DataRecordUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.util.CompactDataRecordConverter +import com.ExTwitter.ml.api.util.FDsl._ +import com.ExTwitter.timelines.author_features.v1.{thriftjava => af} +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesAdapterBase +import com.ExTwitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig +import com.ExTwitter.timelines.prediction.features.user_health.UserHealthFeatures import scala.collection.JavaConverters._ object AuthorFeaturesAdapter extends TimelinesAdapterBase[af.AuthorFeatures] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/BUILD.bazel index 7a00a9b26..28b3a6d2e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/author_features/BUILD.bazel @@ -4,15 +4,15 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "src/java/com/twitter/ml/api:api-base", - "src/java/com/twitter/ml/api/util", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/scala/com/twitter/timelines/prediction/common/aggregates", - "src/scala/com/twitter/timelines/prediction/features/user_health", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/timelines/author_features:thrift-java", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "src/java/com/ExTwitter/ml/api:api-base", + "src/java/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/scala/com/ExTwitter/timelines/prediction/common/aggregates", + "src/scala/com/ExTwitter/timelines/prediction/features/user_health", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/timelines/author_features:thrift-java", "timelines/data_processing/ml_util/aggregation_framework", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/BUILD.bazel index 6a9393121..2b4886e02 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/BUILD.bazel @@ -4,15 +4,15 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/adapters", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/scala/com/twitter/timelines/prediction/features/conversation_features", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/ml/api:data-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/scala/com/ExTwitter/timelines/prediction/features/conversation_features", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/ml/api:data-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/ContentFeatureAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/ContentFeatureAdapter.scala index 2d73ece45..ee8448261 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/ContentFeatureAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/ContentFeatureAdapter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content -import com.twitter.home_mixer.model.ContentFeatures -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.api.util.DataRecordConverters._ -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.timelines.prediction.common.adapters.TweetLengthType -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures -import com.twitter.timelines.prediction.features.conversation_features.ConversationFeatures +import com.ExTwitter.home_mixer.model.ContentFeatures +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.api.util.DataRecordConverters._ +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.timelines.prediction.common.adapters.TweetLengthType +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.timelines.prediction.features.conversation_features.ConversationFeatures import scala.collection.JavaConverters._ object ContentFeatureAdapter extends TimelinesMutatingAdapterBase[Option[ContentFeatures]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/InReplyToContentFeatureAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/InReplyToContentFeatureAdapter.scala index fa27ddac0..ea8b9d49b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/InReplyToContentFeatureAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/content/InReplyToContentFeatureAdapter.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.content -import com.twitter.home_mixer.model.ContentFeatures -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.api.util.DataRecordConverters.RichDataRecordWrapper -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.timelines.prediction.features.common.InReplyToTweetTimelinesSharedFeatures +import com.ExTwitter.home_mixer.model.ContentFeatures +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.api.util.DataRecordConverters.RichDataRecordWrapper +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.timelines.prediction.features.common.InReplyToTweetTimelinesSharedFeatures object InReplyToContentFeatureAdapter extends TimelinesMutatingAdapterBase[Option[ContentFeatures]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/BUILD.bazel index 9428c0d39..72311fdeb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/BUILD.bazel @@ -4,16 +4,16 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/scala/com/twitter/timelines/prediction/features/recap", - "src/scala/com/twitter/timelines/util", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/ml/api:data-scala", - "src/thrift/com/twitter/search/common:features-scala", - "timelines/src/main/scala/com/twitter/timelines/util", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/scala/com/ExTwitter/timelines/prediction/features/recap", + "src/scala/com/ExTwitter/timelines/util", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/ml/api:data-scala", + "src/thrift/com/ExTwitter/search/common:features-scala", + "timelines/src/main/scala/com/ExTwitter/timelines/util", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/EarlybirdAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/EarlybirdAdapter.scala index 5a0207e8a..f6b2fc0cf 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/EarlybirdAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/EarlybirdAdapter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.api.util.DataRecordConverters._ -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.search.common.features.{thriftscala => sc} -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures -import com.twitter.timelines.prediction.features.recap.RecapFeatures -import com.twitter.timelines.util.UrlExtractorUtil +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.api.util.DataRecordConverters._ +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.search.common.features.{thriftscala => sc} +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.timelines.prediction.features.recap.RecapFeatures +import com.ExTwitter.timelines.util.UrlExtractorUtil import java.lang.{Boolean => JBoolean} import java.lang.{Double => JDouble} import java.util.{Map => JMap} diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/InReplyToEarlybirdAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/InReplyToEarlybirdAdapter.scala index b6a7b0ad3..8640eafc9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/InReplyToEarlybirdAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/earlybird/InReplyToEarlybirdAdapter.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.earlybird -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.api.util.DataRecordConverters.RichDataRecordWrapper -import com.twitter.search.common.features.{thriftscala => sc} -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.timelines.prediction.features.common.InReplyToTweetTimelinesSharedFeatures -import com.twitter.timelines.prediction.features.recap.InReplyToRecapFeatures +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.api.util.DataRecordConverters.RichDataRecordWrapper +import com.ExTwitter.search.common.features.{thriftscala => sc} +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.timelines.prediction.features.common.InReplyToTweetTimelinesSharedFeatures +import com.ExTwitter.timelines.prediction.features.recap.InReplyToRecapFeatures import java.lang.{Boolean => JBoolean} import java.lang.{Double => JDouble} diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/BUILD.bazel index acf19eabb..e1809d254 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/thrift/com/twitter/ml/api:data-java", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/thrift/com/ExTwitter/ml/api:data-java", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/InferredTopicAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/InferredTopicAdapter.scala index 1439cc2ad..09906f7c9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/InferredTopicAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/inferred_topic/InferredTopicAdapter.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.inferred_topic +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.inferred_topic -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures import scala.collection.JavaConverters._ object InferredTopicAdapter extends TimelinesMutatingAdapterBase[Map[Long, Double]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/BUILD.bazel index d1a7281c5..b97933044 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "src/java/com/twitter/ml/api:api-base", - "src/java/com/twitter/ml/api/constant", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/scala/com/twitter/timelines/prediction/features/common", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/timelines/author_features:thrift-java", + "src/java/com/ExTwitter/ml/api:api-base", + "src/java/com/ExTwitter/ml/api/constant", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/scala/com/ExTwitter/timelines/prediction/features/common", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/timelines/author_features:thrift-java", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCandidateFeaturesAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCandidateFeaturesAdapter.scala index 6c4b79eee..cb3fa0a48 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCandidateFeaturesAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCandidateFeaturesAdapter.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features -import com.twitter.ml.api.constant.SharedFeatures -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.ml.api.constant.SharedFeatures +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures import java.lang.{Long => JLong} case class NonMLCandidateFeatures( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCommonFeaturesAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCommonFeaturesAdapter.scala index a2777538c..e89712c43 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCommonFeaturesAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features/NonMLCommonFeaturesAdapter.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features -import com.twitter.ml.api.constant.SharedFeatures -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase -import com.twitter.timelines.prediction.features.common.TimelinesSharedFeatures +import com.ExTwitter.ml.api.constant.SharedFeatures +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.timelines.prediction.features.common.TimelinesSharedFeatures import java.lang.{Long => JLong} case class NonMLCommonFeatures( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/BUILD.bazel index bfff86d3f..dfd213b9e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/thrift/com/twitter/ml/api:data-java", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/thrift/com/ExTwitter/ml/api:data-java", "timelines/data_processing/ml_util/aggregation_framework/conversion:for-timelines", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/PassThroughAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/PassThroughAdapter.scala index dce0a81db..0e59003e2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/PassThroughAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/PassThroughAdapter.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.IRecordOneToOneAdapter object PassThroughAdapter extends IRecordOneToOneAdapter[Seq[DataRecord]] { override def adaptToDataRecord(record: Seq[DataRecord]): DataRecord = diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/SparseAggregatesToDenseAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/SparseAggregatesToDenseAdapter.scala index 4c54f78d8..c095e1539 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/SparseAggregatesToDenseAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates/SparseAggregatesToDenseAdapter.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.conversion.CombineCountsPolicy -import com.twitter.timelines.prediction.common.adapters.TimelinesIRecordAdapter +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.conversion.CombineCountsPolicy +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesIRecordAdapter class SparseAggregatesToDenseAdapter(policy: CombineCountsPolicy) extends TimelinesIRecordAdapter[Seq[DataRecord]] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/BUILD.bazel index c32c29ce5..969534ce8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/BUILD.bazel @@ -4,13 +4,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api:api-base", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/ml/api:data-scala", - "src/thrift/com/twitter/ml/api:embedding-java", - "src/thrift/com/twitter/ml/api:embedding-scala", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/ml/api:data-scala", + "src/thrift/com/ExTwitter/ml/api:embedding-java", + "src/thrift/com/ExTwitter/ml/api:embedding-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/TwhinEmbeddingsAdapter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/TwhinEmbeddingsAdapter.scala index c2830e462..66c9bf319 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/TwhinEmbeddingsAdapter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/twhin_embeddings/TwhinEmbeddingsAdapter.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.twhin_embeddings -import com.twitter.ml.api.DataType -import com.twitter.ml.api.Feature -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.ml.api.util.ScalaToJavaDataRecordConversions -import com.twitter.ml.api.{thriftscala => ml} -import com.twitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase +import com.ExTwitter.ml.api.DataType +import com.ExTwitter.ml.api.Feature +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.ml.api.util.ScalaToJavaDataRecordConversions +import com.ExTwitter.ml.api.{thriftscala => ml} +import com.ExTwitter.timelines.prediction.common.adapters.TimelinesMutatingAdapterBase sealed trait TwhinEmbeddingsAdapter extends TimelinesMutatingAdapterBase[Option[ml.FloatTensor]] { def twhinEmbeddingsFeature: Feature.Tensor diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeatureInfo.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeatureInfo.scala index 00dee1209..d24f26619 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeatureInfo.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeatureInfo.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.ml.api.FeatureContext -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType.AggregateType -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.TypedAggregateGroup +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType.AggregateType +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.TypedAggregateGroup import scala.jdk.CollectionConverters.asJavaIterableConverter // A helper class deriving aggregate feature info from the given configuration parameters. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeaturesToDecodeWithMetadata.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeaturesToDecodeWithMetadata.scala index 5fb599240..61f30ebe5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeaturesToDecodeWithMetadata.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/AggregateFeaturesToDecodeWithMetadata.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.finagle.stats.NullStatsReceiver -import com.twitter.timelinemixer.injection.repository.uss.VersionedAggregateFeaturesDecoder -import com.twitter.ml.api.DataRecord -import com.twitter.timelines.aggregate_interactions.thriftjava.UserAggregateInteractions -import com.twitter.timelines.aggregate_interactions.v17.thriftjava.{ +import com.ExTwitter.finagle.stats.NullStatsReceiver +import com.ExTwitter.timelinemixer.injection.repository.uss.VersionedAggregateFeaturesDecoder +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.timelines.aggregate_interactions.thriftjava.UserAggregateInteractions +import com.ExTwitter.timelines.aggregate_interactions.v17.thriftjava.{ UserAggregateInteractions => V17UserAggregateInteractions } -import com.twitter.timelines.aggregate_interactions.v1.thriftjava.{ +import com.ExTwitter.timelines.aggregate_interactions.v1.thriftjava.{ UserAggregateInteractions => V1UserAggregateInteractions } -import com.twitter.timelines.suggests.common.dense_data_record.thriftjava.DenseCompactDataRecord -import com.twitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftjava.DenseCompactDataRecord +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata import java.lang.{Long => JLong} import java.util.Collections import java.util.{Map => JMap} @@ -43,7 +43,7 @@ private[offline_aggregates] case class AggregateFeaturesToDecodeWithMetadata( def userRequestDowAggregates = extract(_.user_request_dow_aggregates) def userRequestHourAggregates = extract(_.user_request_hour_aggregates) def rectweetUserSimclustersTweetAggregates = extract(_.rectweet_user_simclusters_tweet_aggregates) - def userTwitterListAggregates = extract(_.user_list_aggregates) + def userExTwitterListAggregates = extract(_.user_list_aggregates) def userTopicAggregates = extract(_.user_topic_aggregates) def userInferredTopicAggregates = extract(_.user_inferred_topic_aggregates) def userMediaUnderstandingAnnotationAggregates = extract( diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BUILD.bazel index 10f696409..22df1d6bd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BUILD.bazel @@ -5,36 +5,36 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/featuremap/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/offline_aggregates", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/featuremap/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/util", "servo/repo/src/main/scala", - "src/java/com/twitter/ml/api:api-base", - "src/scala/com/twitter/timelines/prediction/adapters/request_context", - "src/scala/com/twitter/timelines/prediction/common/adapters:base", - "src/scala/com/twitter/timelines/prediction/common/aggregates", - "src/scala/com/twitter/timelines/util", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/timelines/suggests/common:data_record_metadata-scala", - "src/thrift/com/twitter/timelines/suggests/common:dense_data_record-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", - "src/thrift/com/twitter/user_session_store:thrift-java", + "src/java/com/ExTwitter/ml/api:api-base", + "src/scala/com/ExTwitter/timelines/prediction/adapters/request_context", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters:base", + "src/scala/com/ExTwitter/timelines/prediction/common/aggregates", + "src/scala/com/ExTwitter/timelines/util", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/timelines/suggests/common:data_record_metadata-scala", + "src/thrift/com/ExTwitter/timelines/suggests/common:dense_data_record-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", + "src/thrift/com/ExTwitter/user_session_store:thrift-java", "stitch/stitch-core", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/repository/uss:versioned-aggregate-features-decoder", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/repository/uss:versioned-aggregate-features-decoder", "timelines/data_processing/jobs/timeline_ranking_user_features:mini", "timelines/data_processing/ml_util/aggregation_framework:common_types", "timelines/data_processing/ml_util/aggregation_framework/conversion:for-timelines", - "timelineservice/common/src/main/scala/com/twitter/timelineservice/model", - "user_session_store/src/main/scala/com/twitter/user_session_store", + "timelineservice/common/src/main/scala/com/ExTwitter/timelineservice/model", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store", "util/util-core", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseAggregateQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseAggregateQueryFeatureHydrator.scala index c81ed5054..e9468be25 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseAggregateQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseAggregateQueryFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.repository.Repository -import com.twitter.stitch.Stitch -import com.twitter.timelines.aggregate_interactions.thriftjava.UserAggregateInteractions -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType.AggregateType -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.StoreConfig -import com.twitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata -import com.twitter.user_session_store.thriftjava.UserSession -import com.twitter.util.Future +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.repository.Repository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.aggregate_interactions.thriftjava.UserAggregateInteractions +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType.AggregateType +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.StoreConfig +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata +import com.ExTwitter.user_session_store.thriftjava.UserSession +import com.ExTwitter.util.Future abstract class BaseAggregateQueryFeatureHydrator( featureRepository: Repository[Long, Option[UserSession]], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseEdgeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseEdgeAggregateFeatureHydrator.scala index 43cfa967b..18e9f7d3e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseEdgeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/BaseEdgeAggregateFeatureHydrator.scala @@ -1,22 +1,22 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.IRecordOneToOneAdapter -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType.AggregateType -import com.twitter.timelines.suggests.common.dense_data_record.thriftjava.DenseCompactDataRecord +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.IRecordOneToOneAdapter +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType.AggregateType +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftjava.DenseCompactDataRecord import java.lang.{Long => JLong} import java.util.{Map => JMap} diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/EdgeAggregateFeatures.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/EdgeAggregateFeatures.scala index f769bb980..c81646a48 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/EdgeAggregateFeatures.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/EdgeAggregateFeatures.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates.PassThroughAdapter -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates.SparseAggregatesToDenseAdapter -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TSPInferredTopicFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType -import com.twitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig -import com.twitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig.CombineCountPolicies +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates.PassThroughAdapter +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.offline_aggregates.SparseAggregatesToDenseAdapter +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TSPInferredTopicFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType +import com.ExTwitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig +import com.ExTwitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig.CombineCountPolicies object EdgeAggregateFeatures { @@ -18,7 +18,7 @@ object EdgeAggregateFeatures { aggregateGroups = TimelinesAggregationConfig.userAuthorAggregatesV2 ++ Set( TimelinesAggregationConfig.userAuthorAggregatesV5, TimelinesAggregationConfig.tweetSourceUserAuthorAggregatesV1, - TimelinesAggregationConfig.twitterWideUserAuthorAggregates + TimelinesAggregationConfig.ExTwitterWideUserAuthorAggregates ), aggregateType = AggregateType.UserAuthor, extractMapFn = _.userAuthorAggregates, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartAAggregateQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartAAggregateQueryFeatureHydrator.scala index f18cceaca..670541fc5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartAAggregateQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartAAggregateQueryFeatureHydrator.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregateMetadataRepository -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregatePartARepository -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.servo.repository.Repository -import com.twitter.timelines.data_processing.jobs.timeline_ranking_user_features.TimelinesPartAStoreRegister -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.StoreConfig -import com.twitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata -import com.twitter.user_session_store.thriftjava.UserSession +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregateMetadataRepository +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregatePartARepository +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.servo.repository.Repository +import com.ExTwitter.timelines.data_processing.jobs.timeline_ranking_user_features.TimelinesPartAStoreRegister +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.StoreConfig +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata +import com.ExTwitter.user_session_store.thriftjava.UserSession import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartBAggregateQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartBAggregateQueryFeatureHydrator.scala index fa0336165..7988fcc85 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartBAggregateQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/PartBAggregateQueryFeatureHydrator.scala @@ -1,27 +1,27 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregateMetadataRepository -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregatePartBRepository -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.DataRecordMerger -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.repository.Repository -import com.twitter.stitch.Stitch -import com.twitter.timelines.data_processing.jobs.timeline_ranking_user_features.TimelinesPartBStoreRegister -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.StoreConfig -import com.twitter.timelines.prediction.adapters.request_context.RequestContextAdapter -import com.twitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig -import com.twitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata -import com.twitter.user_session_store.thriftjava.UserSession -import com.twitter.util.Time +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregateMetadataRepository +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TimelineAggregatePartBRepository +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.DataRecordMerger +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.repository.Repository +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.data_processing.jobs.timeline_ranking_user_features.TimelinesPartBStoreRegister +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateType +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.StoreConfig +import com.ExTwitter.timelines.prediction.adapters.request_context.RequestContextAdapter +import com.ExTwitter.timelines.prediction.common.aggregates.TimelinesAggregationConfig +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftscala.DenseFeatureMetadata +import com.ExTwitter.user_session_store.thriftjava.UserSession +import com.ExTwitter.util.Time import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton @@ -59,7 +59,7 @@ class PartBAggregateQueryFeatureHydrator @Inject() ( TimelinesAggregationConfig.userAggregatesV2, TimelinesAggregationConfig.userAggregatesV5Continuous, TimelinesAggregationConfig.userAggregatesV6, - TimelinesAggregationConfig.twitterWideUserAggregates, + TimelinesAggregationConfig.ExTwitterWideUserAggregates, ), aggregateType = AggregateType.User ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase1EdgeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase1EdgeAggregateFeatureHydrator.scala index d9df51d5c..8cc92fc9b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase1EdgeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase1EdgeAggregateFeatureHydrator.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures._ -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures._ +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase2EdgeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase2EdgeAggregateFeatureHydrator.scala index cfbb0b2c9..fa998f6cc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase2EdgeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Phase2EdgeAggregateFeatureHydrator.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserEngagerAggregateFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserEngagerGoodClickAggregateFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserInferredTopicAggregateFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserInferredTopicAggregateV2Feature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserMediaUnderstandingAnnotationAggregateFeature -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserTopicAggregateFeature -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserEngagerAggregateFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserEngagerGoodClickAggregateFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserInferredTopicAggregateFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserInferredTopicAggregateV2Feature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserMediaUnderstandingAnnotationAggregateFeature +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.EdgeAggregateFeatures.UserTopicAggregateFeature +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Utils.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Utils.scala index 6ae1a0f4b..a06ac7c5b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Utils.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates/Utils.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.RichDataRecord -import com.twitter.timelines.suggests.common.dense_data_record.thriftjava.DenseCompactDataRecord +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.RichDataRecord +import com.ExTwitter.timelines.suggests.common.dense_data_record.thriftjava.DenseCompactDataRecord private[offline_aggregates] object Utils { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BUILD.bazel index 1954dd77d..abeb777d5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BUILD.bazel @@ -5,19 +5,19 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/util", "servo/repo/src/main/scala", - "src/java/com/twitter/ml/api:api-base", - "src/java/com/twitter/ml/api/constant", - "src/scala/com/twitter/ml/api/util", - "src/scala/com/twitter/timelines/prediction/common/aggregates/real_time:base-config", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/wtf/real_time_interaction_graph:wtf-real_time_interaction_graph-thrift-java", + "src/java/com/ExTwitter/ml/api:api-base", + "src/java/com/ExTwitter/ml/api/constant", + "src/scala/com/ExTwitter/ml/api/util", + "src/scala/com/ExTwitter/timelines/prediction/common/aggregates/real_time:base-config", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/wtf/real_time_interaction_graph:wtf-real_time_interaction_graph-thrift-java", "stitch/stitch-core", "timelines/data_processing/ml_util/aggregation_framework:common_types", "timelines/data_processing/ml_util/aggregation_framework/heron", diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateBulkCandidateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateBulkCandidateFeatureHydrator.scala index 41b565ded..b9802763a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateBulkCandidateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateBulkCandidateFeatureHydrator.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates -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.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch trait BaseRealTimeAggregateBulkCandidateFeatureHydrator[K] extends BulkCandidateFeatureHydrator[PipelineQuery, TweetCandidate] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateQueryFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateQueryFeatureHydrator.scala index 8f5b17d64..ba28515dd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateQueryFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealTimeAggregateQueryFeatureHydrator.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch trait BaseRealTimeAggregateQueryFeatureHydrator[K] extends QueryFeatureHydrator[PipelineQuery] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealtimeAggregateHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealtimeAggregateHydrator.scala index f97820be0..2f13cbcc6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealtimeAggregateHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/BaseRealtimeAggregateHydrator.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates.BaseRealtimeAggregateHydrator._ -import com.twitter.home_mixer.util.DataRecordUtil -import com.twitter.home_mixer.util.ObservedKeyValueResultHandler -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.DataRecordMerger -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.constant.SharedFeatures -import com.twitter.ml.api.util.SRichDataRecord -import com.twitter.ml.api.{Feature => MLApiFeature} -import com.twitter.servo.cache.ReadCache -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.util.Future -import com.twitter.util.Time -import com.twitter.util.Try +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates.BaseRealtimeAggregateHydrator._ +import com.ExTwitter.home_mixer.util.DataRecordUtil +import com.ExTwitter.home_mixer.util.ObservedKeyValueResultHandler +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.DataRecordMerger +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.constant.SharedFeatures +import com.ExTwitter.ml.api.util.SRichDataRecord +import com.ExTwitter.ml.api.{Feature => MLApiFeature} +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.util.Future +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try import java.lang.{Double => JDouble} import scala.collection.JavaConverters._ @@ -113,7 +113,7 @@ trait BaseRealtimeAggregateHydrator[K] extends ObservedKeyValueResultHandler { object BaseRealtimeAggregateHydrator { private val RequestBatchSize = 5 - type TimeDecay = scala.Function2[com.twitter.ml.api.DataRecord, scala.Long, scala.Unit] + type TimeDecay = scala.Function2[com.ExTwitter.ml.api.DataRecord, scala.Long, scala.Unit] private def applyDecay( dataRecord: DataRecord, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/EngagementsReceivedByAuthorRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/EngagementsReceivedByAuthorRealTimeAggregateFeatureHydrator.scala index 990fe1ca4..4c6e4db4c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/EngagementsReceivedByAuthorRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/EngagementsReceivedByAuthorRealTimeAggregateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.EngagementsReceivedByAuthorCache -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.EngagementsReceivedByAuthorCache +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/RealTimeAggregateTimeDecay.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/RealTimeAggregateTimeDecay.scala index dbecd12c6..0c18755c9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/RealTimeAggregateTimeDecay.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/RealTimeAggregateTimeDecay.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.constant.SharedFeatures.TIMESTAMP -import com.twitter.util.Duration +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.constant.SharedFeatures.TIMESTAMP +import com.ExTwitter.util.Duration /** * The default TimeDecay implementation for real time aggregates. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicCountryEngagementRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicCountryEngagementRealTimeAggregateFeatureHydrator.scala index 13b2a0d2d..6bfd0aa98 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicCountryEngagementRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicCountryEngagementRealTimeAggregateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TopicCountryEngagementCache -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TopicCountryEngagementCache +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicEngagementRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicEngagementRealTimeAggregateFeatureHydrator.scala index 12a2e1c47..56ae097e3 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicEngagementRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TopicEngagementRealTimeAggregateFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TopicEngagementCache -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TopicEngagementCache +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetCountryEngagementRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetCountryEngagementRealTimeAggregateFeatureHydrator.scala index cd9e34a3e..94946507e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetCountryEngagementRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetCountryEngagementRealTimeAggregateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetCountryEngagementCache -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetCountryEngagementCache +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetEngagementRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetEngagementRealTimeAggregateFeatureHydrator.scala index 99bae79d9..5a58a8677 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetEngagementRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TweetEngagementRealTimeAggregateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TweetEngagementCache -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.TweetEngagementCache +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TwitterListEngagementRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TwitterListEngagementRealTimeAggregateFeatureHydrator.scala index b5f3af2a9..b744209da 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TwitterListEngagementRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/TwitterListEngagementRealTimeAggregateFeatureHydrator.scala @@ -1,46 +1,46 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.TwitterListIdFeature -import com.twitter.home_mixer.param.HomeMixerInjectionNames.TwitterListEngagementCache -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.ExTwitterListIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.ExTwitterListEngagementCache +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton -object TwitterListEngagementRealTimeAggregateFeature +object ExTwitterListEngagementRealTimeAggregateFeature extends DataRecordInAFeature[TweetCandidate] with FeatureWithDefaultOnFailure[TweetCandidate, DataRecord] { override def defaultValue: DataRecord = new DataRecord() } @Singleton -class TwitterListEngagementRealTimeAggregateFeatureHydrator @Inject() ( - @Named(TwitterListEngagementCache) override val client: ReadCache[Long, DataRecord], +class ExTwitterListEngagementRealTimeAggregateFeatureHydrator @Inject() ( + @Named(ExTwitterListEngagementCache) override val client: ReadCache[Long, DataRecord], override val statsReceiver: StatsReceiver) extends BaseRealTimeAggregateBulkCandidateFeatureHydrator[Long] { override val identifier: FeatureHydratorIdentifier = - FeatureHydratorIdentifier("TwitterListEngagementRealTimeAggregate") + FeatureHydratorIdentifier("ExTwitterListEngagementRealTimeAggregate") override val outputFeature: DataRecordInAFeature[TweetCandidate] = - TwitterListEngagementRealTimeAggregateFeature + ExTwitterListEngagementRealTimeAggregateFeature override val aggregateGroups: Seq[AggregateGroup] = Seq( listEngagementRealTimeAggregatesProd ) override val aggregateGroupToPrefix: Map[AggregateGroup, String] = Map( - listEngagementRealTimeAggregatesProd -> "twitter_list.timelines.twitter_list_engagement_real_time_aggregates." + listEngagementRealTimeAggregatesProd -> "ExTwitter_list.timelines.ExTwitter_list_engagement_real_time_aggregates." ) override def keysFromQueryAndCandidates( @@ -49,7 +49,7 @@ class TwitterListEngagementRealTimeAggregateFeatureHydrator @Inject() ( ): Seq[Option[Long]] = { candidates.map { candidate => candidate.features - .getTry(TwitterListIdFeature) + .getTry(ExTwitterListIdFeature) .toOption .flatten } diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserAuthorEngagementRealTimeAggregateFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserAuthorEngagementRealTimeAggregateFeatureHydrator.scala index 2c13fc0f6..34f4d4946 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserAuthorEngagementRealTimeAggregateFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserAuthorEngagementRealTimeAggregateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserAuthorEngagementCache -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserAuthorEngagementCache +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserEngagementRealTimeAggregatesFeatureHydrator.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserEngagementRealTimeAggregatesFeatureHydrator.scala index cc05b52aa..e8bc58665 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserEngagementRealTimeAggregatesFeatureHydrator.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates/UserEngagementRealTimeAggregatesFeatureHydrator.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates +package com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates import com.google.inject.name.Named -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.param.HomeMixerInjectionNames.UserEngagementCache -import com.twitter.ml.api.DataRecord -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.ReadCache -import com.twitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup -import com.twitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.UserEngagementCache +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.ReadCache +import com.ExTwitter.timelines.data_processing.ml_util.aggregation_framework.AggregateGroup +import com.ExTwitter.timelines.prediction.common.aggregates.real_time.TimelinesOnlineAggregationFeaturesOnlyConfig._ import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/BUILD.bazel index 07a2e7cb3..d096577eb 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", "stitch/stitch-core", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/DuplicateConversationTweetsFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/DuplicateConversationTweetsFilter.scala index adc11d255..2560a669d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/DuplicateConversationTweetsFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/DuplicateConversationTweetsFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.product.scored_tweets.filter +package com.ExTwitter.home_mixer.product.scored_tweets.filter -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Remove any candidate that is in the ancestor list of any reply, including retweets of ancestors. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorFilter.scala index 3c6024268..c17e05012 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorFilter.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.scored_tweets.filter +package com.ExTwitter.home_mixer.product.scored_tweets.filter -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CompetitorSetParam -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CompetitorSetParam +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object OutOfNetworkCompetitorFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorURLFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorURLFilter.scala index 00e2bb200..067cf2952 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorURLFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/OutOfNetworkCompetitorURLFilter.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.scored_tweets.filter +package com.ExTwitter.home_mixer.product.scored_tweets.filter -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetUrlsFeature -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CompetitorURLSeqParam -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetUrlsFeature +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CompetitorURLSeqParam +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object OutOfNetworkCompetitorURLFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/RetweetSourceTweetRemovingFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/RetweetSourceTweetRemovingFilter.scala index 5900756d3..ea9dbc510 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/RetweetSourceTweetRemovingFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/RetweetSourceTweetRemovingFilter.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.filter +package com.ExTwitter.home_mixer.product.scored_tweets.filter -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.util.ReplyRetweetUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.util.ReplyRetweetUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * This filter removes source tweets of retweets, added via second EB call in TLR diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/ScoredTweetsSocialContextFilter.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/ScoredTweetsSocialContextFilter.scala index fef427a6d..ff4b3210b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/ScoredTweetsSocialContextFilter.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/filter/ScoredTweetsSocialContextFilter.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.filter +package com.ExTwitter.home_mixer.product.scored_tweets.filter -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsSocialContextFilter extends Filter[PipelineQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/BUILD.bazel index 6d3fd9b1c..56c65f500 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/BUILD.bazel @@ -4,9 +4,9 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/gate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/gate", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinCachedTweetsGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinCachedTweetsGate.scala index bdeb33a92..7831dde80 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinCachedTweetsGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinCachedTweetsGate.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.scored_tweets.gate +package com.ExTwitter.home_mixer.product.scored_tweets.gate -import com.twitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate.identifierSuffix -import com.twitter.home_mixer.util.CachedScoredTweetsHelper -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.home_mixer.product.scored_tweets.gate.MinCachedTweetsGate.identifierSuffix +import com.ExTwitter.home_mixer.util.CachedScoredTweetsHelper +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param case class MinCachedTweetsGate( candidatePipelineIdentifier: CandidatePipelineIdentifier, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinTimeSinceLastRequestGate.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinTimeSinceLastRequestGate.scala index 050f2ab67..454daec8e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinTimeSinceLastRequestGate.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/gate/MinTimeSinceLastRequestGate.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.product.scored_tweets.gate +package com.ExTwitter.home_mixer.product.scored_tweets.gate -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.LastNonPollingTimeFeature -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.LastNonPollingTimeFeature +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Gate continues if the amount of time passed since the previous request is greater diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/BUILD.bazel index 4347c1093..30849ee51 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/premarshaller", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/premarshaller", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseDomainMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseDomainMarshaller.scala index 796970bec..0e16446d7 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseDomainMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseDomainMarshaller.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.product.scored_tweets.marshaller +package com.ExTwitter.home_mixer.product.scored_tweets.marshaller -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.model.common.identifier.DomainMarshallerIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.model.common.identifier.DomainMarshallerIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails /** * Creates a domain model of the Scored Tweets product response from the set of candidates selected diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseTransportMarshaller.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseTransportMarshaller.scala index 27486768b..dcee56bda 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseTransportMarshaller.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/marshaller/ScoredTweetsResponseTransportMarshaller.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.product.scored_tweets.marshaller +package com.ExTwitter.home_mixer.product.scored_tweets.marshaller -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.metadata.TopicContextFunctionalityTypeMarshaller -import com.twitter.product_mixer.core.model.common.identifier.TransportMarshallerIdentifier +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.metadata.TopicContextFunctionalityTypeMarshaller +import com.ExTwitter.product_mixer.core.model.common.identifier.TransportMarshallerIdentifier /** * Marshall the domain model into our transport (Thrift) model. diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/BUILD.bazel index 6414453db..3ece0d1a2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/BUILD.bazel @@ -4,14 +4,14 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsQuery.scala index a2eb3a466..95598f530 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsQuery.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.scored_tweets.model +package com.ExTwitter.home_mixer.product.scored_tweets.model -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.model.request.ScoredTweetsProduct -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.request._ -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.product_mixer.core.quality_factor.QualityFactorStatus -import com.twitter.timelines.configapi.Params +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.model.request.ScoredTweetsProduct +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.request._ +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.product_mixer.core.quality_factor.QualityFactorStatus +import com.ExTwitter.timelines.configapi.Params case class ScoredTweetsQuery( override val params: Params, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsResponse.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsResponse.scala index e9bd7cd61..032cdd2c6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsResponse.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model/ScoredTweetsResponse.scala @@ -1,6 +1,6 @@ -package com.twitter.home_mixer.product.scored_tweets.model +package com.ExTwitter.home_mixer.product.scored_tweets.model -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.marshalling.HasMarshalling +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.marshalling.HasMarshalling case class ScoredTweetsResponse(scoredTweets: Seq[CandidateWithDetails]) extends HasMarshalling diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/BUILD.bazel index 065841642..45dea29a2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/BUILD.bazel @@ -4,8 +4,8 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param/decider", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParam.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParam.scala index 9720b9344..72dac1146 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParam.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParam.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.scored_tweets.param +package com.ExTwitter.home_mixer.product.scored_tweets.param -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.timelines.configapi.DurationConversion -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.HasDurationConversion -import com.twitter.timelines.configapi.decider.BooleanDeciderParam -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.timelines.configapi.DurationConversion +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.HasDurationConversion +import com.ExTwitter.timelines.configapi.decider.BooleanDeciderParam +import com.ExTwitter.util.Duration object ScoredTweetsParam { val SupportedClientFSName = "scored_tweets_supported_client" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParamConfig.scala index 10b9de49d..072b4ef1f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param/ScoredTweetsParamConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.scored_tweets.param +package com.ExTwitter.home_mixer.product.scored_tweets.param -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam._ -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.servo.decider.DeciderKeyName +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam._ +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.servo.decider.DeciderKeyName import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/BUILD.bazel index 15fc94f47..a391079bf 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/BUILD.bazel @@ -3,21 +3,21 @@ scala_library( compiler_option_sets = ["fatal_warnings"], strict_deps = True, dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/timelineranker:thrift-scala", - "timelineranker/common/src/main/scala/com/twitter/timelineranker/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/earlybird", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", + "timelineranker/common/src/main/scala/com/ExTwitter/timelineranker/model", "timelines:util", - "timelines/src/main/scala/com/twitter/timelines/common/model", - "timelines/src/main/scala/com/twitter/timelines/earlybird/common/options", - "timelines/src/main/scala/com/twitter/timelines/earlybird/common/utils", - "timelines/src/main/scala/com/twitter/timelines/model/candidate", + "timelines/src/main/scala/com/ExTwitter/timelines/common/model", + "timelines/src/main/scala/com/ExTwitter/timelines/earlybird/common/options", + "timelines/src/main/scala/com/ExTwitter/timelines/earlybird/common/utils", + "timelines/src/main/scala/com/ExTwitter/timelines/model/candidate", "timelineservice/common:model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerFrsQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerFrsQueryTransformer.scala index 2592ec82e..b1d6ca92c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerFrsQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerFrsQueryTransformer.scala @@ -1,19 +1,19 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer -import com.twitter.conversions.DurationOps._ -import com.twitter.core_workflows.user_model.{thriftscala => um} -import com.twitter.home_mixer.model.HomeFeatures.UserStateFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUserIdsFeature -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerFrsQueryTransformer._ -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.timelineranker.{thriftscala => t} -import com.twitter.timelines.common.model.TweetKindOption -import com.twitter.timelines.model.candidate.CandidateTweetSourceId +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.core_workflows.user_model.{thriftscala => um} +import com.ExTwitter.home_mixer.model.HomeFeatures.UserStateFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUserIdsFeature +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerFrsQueryTransformer._ +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.timelineranker.{thriftscala => t} +import com.ExTwitter.timelines.common.model.TweetKindOption +import com.ExTwitter.timelines.model.candidate.CandidateTweetSourceId object TimelineRankerFrsQueryTransformer { private val DefaultSinceDuration = 24.hours diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerInNetworkQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerInNetworkQueryTransformer.scala index 4514dc2c4..6a31289cc 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerInNetworkQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerInNetworkQueryTransformer.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer -import com.twitter.conversions.DurationOps._ -import com.twitter.core_workflows.user_model.{thriftscala => um} -import com.twitter.home_mixer.model.HomeFeatures.UserStateFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerInNetworkQueryTransformer._ -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.timelineranker.{thriftscala => t} -import com.twitter.timelines.common.model.TweetKindOption -import com.twitter.timelines.model.candidate.CandidateTweetSourceId +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.core_workflows.user_model.{thriftscala => um} +import com.ExTwitter.home_mixer.model.HomeFeatures.UserStateFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerInNetworkQueryTransformer._ +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.timelineranker.{thriftscala => t} +import com.ExTwitter.timelines.common.model.TweetKindOption +import com.ExTwitter.timelines.model.candidate.CandidateTweetSourceId object TimelineRankerInNetworkQueryTransformer { private val DefaultSinceDuration = 24.hours diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerQueryTransformer.scala index e187a0aa0..ea1015047 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerQueryTransformer.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer -import com.twitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerQueryTransformer._ -import com.twitter.home_mixer.util.CachedScoredTweetsHelper -import com.twitter.home_mixer.util.earlybird.EarlybirdRequestUtil -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.timelineranker.{model => tlr} -import com.twitter.timelines.common.model.TweetKindOption -import com.twitter.timelines.earlybird.common.options.EarlybirdOptions -import com.twitter.timelines.earlybird.common.options.EarlybirdScoringModelConfig -import com.twitter.timelines.earlybird.common.utils.SearchOperator -import com.twitter.timelines.model.UserId -import com.twitter.timelines.model.candidate.CandidateTweetSourceId -import com.twitter.timelines.util.SnowflakeSortIndexHelper -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerQueryTransformer._ +import com.ExTwitter.home_mixer.util.CachedScoredTweetsHelper +import com.ExTwitter.home_mixer.util.earlybird.EarlybirdRequestUtil +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.timelineranker.{model => tlr} +import com.ExTwitter.timelines.common.model.TweetKindOption +import com.ExTwitter.timelines.earlybird.common.options.EarlybirdOptions +import com.ExTwitter.timelines.earlybird.common.options.EarlybirdScoringModelConfig +import com.ExTwitter.timelines.earlybird.common.utils.SearchOperator +import com.ExTwitter.timelines.model.UserId +import com.ExTwitter.timelines.model.candidate.CandidateTweetSourceId +import com.ExTwitter.timelines.util.SnowflakeSortIndexHelper +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time object TimelineRankerQueryTransformer { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerUtegQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerUtegQueryTransformer.scala index ea051f331..827dfb649 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerUtegQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/TimelineRankerUtegQueryTransformer.scala @@ -1,21 +1,21 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam -import com.twitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerUtegQueryTransformer._ -import com.twitter.home_mixer.util.earlybird.EarlybirdRequestUtil -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.timelineranker.{model => tlr} -import com.twitter.timelineranker.{thriftscala => t} -import com.twitter.timelines.common.model.TweetKindOption -import com.twitter.timelines.earlybird.common.options.EarlybirdScoringModelConfig -import com.twitter.timelines.model.UserId -import com.twitter.timelines.model.candidate.CandidateTweetSourceId +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.TimelineRankerUtegQueryTransformer._ +import com.ExTwitter.home_mixer.util.earlybird.EarlybirdRequestUtil +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.timelineranker.{model => tlr} +import com.ExTwitter.timelineranker.{thriftscala => t} +import com.ExTwitter.timelines.common.model.TweetKindOption +import com.ExTwitter.timelines.earlybird.common.options.EarlybirdScoringModelConfig +import com.ExTwitter.timelines.model.UserId +import com.ExTwitter.timelines.model.candidate.CandidateTweetSourceId object TimelineRankerUtegQueryTransformer { private val SinceDuration = 24.hours diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/BUILD.bazel index a337a328b..2d20c51d5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/BUILD.bazel @@ -3,21 +3,21 @@ scala_library( compiler_option_sets = ["fatal_warnings"], strict_deps = True, dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/search:earlybird-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/earlybird", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/search:earlybird-scala", "timelines:util", - "timelines/src/main/scala/com/twitter/timelines/clients/relevance_search", - "timelines/src/main/scala/com/twitter/timelines/common/model", - "timelines/src/main/scala/com/twitter/timelines/earlybird/common/utils", - "timelines/src/main/scala/com/twitter/timelines/model/candidate", - "timelines/src/main/scala/com/twitter/timelines/model/types", - "timelines/src/main/scala/com/twitter/timelines/util/stats", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/relevance_search", + "timelines/src/main/scala/com/ExTwitter/timelines/common/model", + "timelines/src/main/scala/com/ExTwitter/timelines/earlybird/common/utils", + "timelines/src/main/scala/com/ExTwitter/timelines/model/candidate", + "timelines/src/main/scala/com/ExTwitter/timelines/model/types", + "timelines/src/main/scala/com/ExTwitter/timelines/util/stats", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdFrsQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdFrsQueryTransformer.scala index 9b2ac341e..67db853ba 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdFrsQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdFrsQueryTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUserIdsFeature -import com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdFrsQueryTransformer._ -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelines.common.model.TweetKindOption +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.FrsSeedUserIdsFeature +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdFrsQueryTransformer._ +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelines.common.model.TweetKindOption object EarlybirdFrsQueryTransformer { private val SinceDuration = 24.hours diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdInNetworkQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdInNetworkQueryTransformer.scala index 5c5464b8b..a3443d668 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdInNetworkQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdInNetworkQueryTransformer.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird -import com.twitter.conversions.DurationOps._ -import com.twitter.core_workflows.user_model.{thriftscala => um} -import com.twitter.home_mixer.model.HomeFeatures.UserStateFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdInNetworkQueryTransformer._ -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelines.common.model.TweetKindOption +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.core_workflows.user_model.{thriftscala => um} +import com.ExTwitter.home_mixer.model.HomeFeatures.UserStateFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird.EarlybirdInNetworkQueryTransformer._ +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersFeature +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelines.common.model.TweetKindOption object EarlybirdInNetworkQueryTransformer { private val DefaultSinceDuration = 24.hours diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdQueryTransformer.scala index 0e51c54ea..e357a428a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/query_transformer/earlybird/EarlybirdQueryTransformer.scala @@ -1,18 +1,18 @@ -package com.twitter.home_mixer.product.scored_tweets.query_transformer.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.query_transformer.earlybird -import com.twitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.util.CachedScoredTweetsHelper -import com.twitter.home_mixer.util.earlybird.EarlybirdRequestUtil -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelines.clients.relevance_search.SearchClient.TweetTypes -import com.twitter.timelines.common.model.TweetKindOption -import com.twitter.timelines.util.SnowflakeSortIndexHelper -import com.twitter.util.Duration -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.RealGraphInNetworkScoresFeature +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.util.CachedScoredTweetsHelper +import com.ExTwitter.home_mixer.util.earlybird.EarlybirdRequestUtil +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelines.clients.relevance_search.SearchClient.TweetTypes +import com.ExTwitter.timelines.common.model.TweetKindOption +import com.ExTwitter.timelines.util.SnowflakeSortIndexHelper +import com.ExTwitter.util.Duration +import com.ExTwitter.util.Time trait EarlybirdQueryTransformer[ Query <: PipelineQuery with HasQualityFactorStatus with HasDeviceContext] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/BUILD.bazel index 30774b91f..36969d728 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/BUILD.bazel @@ -4,12 +4,12 @@ scala_library( strict_deps = True, dependencies = [ "explore/explore-ranker/thrift/src/main/thrift:thrift-scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/tweetypie/content", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "src/thrift/com/twitter/timelineranker:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", "topic-social-proof/server/src/main/thrift:thrift-scala", "tweet-mixer/thrift/src/main/thrift:thrift-scala", ], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/CachedScoredTweetsResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/CachedScoredTweetsResponseFeatureTransformer.scala index 0fbe7a438..0a97704b9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/CachedScoredTweetsResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/CachedScoredTweetsResponseFeatureTransformer.scala @@ -1,42 +1,42 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.marshaller.timelines.TopicContextFunctionalityTypeUnmarshaller -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsGoldVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsGrayVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsLegacyVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.CachedCandidatePipelineIdentifierFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.LastScoredTimestampMsFeature -import com.twitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetUrlsFeature -import com.twitter.home_mixer.model.HomeFeatures.WeightedModelScoreFeature -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.home_mixer.marshaller.timelines.TopicContextFunctionalityTypeUnmarshaller +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsGoldVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsGrayVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsLegacyVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.CachedCandidatePipelineIdentifierFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsReadFromCacheFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.LastScoredTimestampMsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetUrlsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.WeightedModelScoreFeature +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier object CachedScoredTweetsResponseFeatureTransformer extends CandidateFeatureTransformer[hmt.ScoredTweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsBackfillResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsBackfillResponseFeatureTransformer.scala index 806c0d11d..9cc15677b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsBackfillResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsBackfillResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsBackfillResponseFeatureTransformer extends CandidateFeatureTransformer[Long] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsFrsResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsFrsResponseFeatureTransformer.scala index 077dccf24..6a4c4f72c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsFrsResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsFrsResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineranker.{thriftscala => tlr} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineranker.{thriftscala => tlr} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsFrsResponseFeatureTransformer extends CandidateFeatureTransformer[tlr.CandidateTweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsInNetworkResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsInNetworkResponseFeatureTransformer.scala index d7d23bc98..d53b193a6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsInNetworkResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsInNetworkResponseFeatureTransformer.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineranker.{thriftscala => tlr} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineranker.{thriftscala => tlr} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsInNetworkResponseFeatureTransformer extends CandidateFeatureTransformer[tlr.CandidateTweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsListsResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsListsResponseFeatureTransformer.scala index 6a48e84c8..c58d4d6ec 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsListsResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsListsResponseFeatureTransformer.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.{thriftscala => t} -import com.twitter.timelineservice.suggests.{thriftscala => st} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.{thriftscala => t} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} object ScoredTweetsListsResponseFeatureTransformer extends CandidateFeatureTransformer[t.Tweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsPopularVideosResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsPopularVideosResponseFeatureTransformer.scala index 6657e6f5c..e3d64f350 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsPopularVideosResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsPopularVideosResponseFeatureTransformer.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.explore_ranker.{thriftscala => ert} -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.HasVideoFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature -import com.twitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.explore_ranker.{thriftscala => ert} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasVideoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsPopularVideosResponseFeatureTransformer extends CandidateFeatureTransformer[ert.ExploreTweetRecommendation] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsTweetMixerResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsTweetMixerResponseFeatureTransformer.scala index 4312b5104..120196e3b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsTweetMixerResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsTweetMixerResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.tweet_mixer.{thriftscala => tmt} -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} -import com.twitter.tsp.{thriftscala => tsp} +import com.ExTwitter.tweet_mixer.{thriftscala => tmt} +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.tsp.{thriftscala => tsp} object ScoredTweetsTweetMixerResponseFeatureTransformer extends CandidateFeatureTransformer[tmt.TweetResult] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsUtegResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsUtegResponseFeatureTransformer.scala index e7bd61b2b..545ba5e7c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsUtegResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/ScoredTweetsUtegResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineranker.{thriftscala => tlr} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineranker.{thriftscala => tlr} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsUtegResponseFeatureTransformer extends CandidateFeatureTransformer[tlr.CandidateTweet] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/TimelineRankerResponseTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/TimelineRankerResponseTransformer.scala index a261b2fc2..11c379203 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/TimelineRankerResponseTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/TimelineRankerResponseTransformer.scala @@ -1,32 +1,32 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.HasImageFeature -import com.twitter.home_mixer.model.HomeFeatures.HasVideoFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetUrlsFeature -import com.twitter.home_mixer.util.tweetypie.content.TweetMediaFeaturesExtractor -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.timelineranker.{thriftscala => tlr} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasImageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasVideoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetUrlsFeature +import com.ExTwitter.home_mixer.util.tweetypie.content.TweetMediaFeaturesExtractor +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.timelineranker.{thriftscala => tlr} object TimelineRankerResponseTransformer { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/BUILD.bazel index 81cf19e9b..b30a2851b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/BUILD.bazel @@ -3,11 +3,11 @@ scala_library( compiler_option_sets = ["fatal_warnings"], strict_deps = True, dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/earlybird", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util/tweetypie/content", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "src/thrift/com/twitter/search:earlybird-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "src/thrift/com/ExTwitter/search:earlybird-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/EarlybirdResponseTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/EarlybirdResponseTransformer.scala index f0b1b59b1..c5f012eb8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/EarlybirdResponseTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/EarlybirdResponseTransformer.scala @@ -1,32 +1,32 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.earlybird -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdSearchResultFeature -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.HasImageFeature -import com.twitter.home_mixer.model.HomeFeatures.HasVideoFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature -import com.twitter.home_mixer.model.HomeFeatures.MentionUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetUrlsFeature -import com.twitter.home_mixer.util.tweetypie.content.TweetMediaFeaturesExtractor -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdSearchResultFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasImageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasVideoFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRandomTweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionScreenNameFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MentionUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.StreamToKafkaFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetUrlsFeature +import com.ExTwitter.home_mixer.util.tweetypie.content.TweetMediaFeaturesExtractor +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.search.earlybird.{thriftscala => eb} object EarlybirdResponseTransformer { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdFrsResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdFrsResponseFeatureTransformer.scala index bb9ea8bee..94e1b6a7b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdFrsResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdFrsResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.earlybird -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsEarlybirdFrsResponseFeatureTransformer extends CandidateFeatureTransformer[eb.ThriftSearchResult] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer.scala index 6b6a9d003..26812f79e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/response_transformer/earlybird/ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.response_transformer.earlybird +package com.ExTwitter.home_mixer.product.scored_tweets.response_transformer.earlybird -import com.twitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} -import com.twitter.timelineservice.suggests.{thriftscala => st} +import com.ExTwitter.home_mixer.model.HomeFeatures.CandidateSourceIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.{thriftscala => cts} +import com.ExTwitter.timelineservice.suggests.{thriftscala => st} object ScoredTweetsEarlybirdInNetworkResponseFeatureTransformer extends CandidateFeatureTransformer[eb.ThriftSearchResult] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/BUILD.bazel index 91ff12ee1..40b566be6 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/BUILD.bazel @@ -3,18 +3,18 @@ scala_library( compiler_option_sets = ["fatal_warnings"], strict_deps = True, dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/module", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/featuremap/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/util", - "src/scala/com/twitter/timelines/prediction/features/recap", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/scorer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/module", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/featuremap/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/util", + "src/scala/com/ExTwitter/timelines/prediction/features/recap", "timelineservice/common:model", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/DiversityDiscountProvider.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/DiversityDiscountProvider.scala index 62dea8748..da7fd4e24 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/DiversityDiscountProvider.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/DiversityDiscountProvider.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.scored_tweets.scorer +package com.ExTwitter.home_mixer.product.scored_tweets.scorer -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures trait DiversityDiscountProvider { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/HeuristicScorer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/HeuristicScorer.scala index 765523b53..47263eb30 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/HeuristicScorer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/HeuristicScorer.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.scored_tweets.scorer +package com.ExTwitter.home_mixer.product.scored_tweets.scorer -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.ScorerIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.ScorerIdentifier +import com.ExTwitter.stitch.Stitch /** * Apply various heuristics to the model score diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/NaviModelScorer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/NaviModelScorer.scala index cbde87f73..821a150c9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/NaviModelScorer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/NaviModelScorer.scala @@ -1,32 +1,32 @@ -package com.twitter.home_mixer.product.scored_tweets.scorer +package com.ExTwitter.home_mixer.product.scored_tweets.scorer -import com.twitter.finagle.stats.Stat -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.WeightedModelScoreFeature -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.scorer.PredictedScoreFeature.PredictedScoreFeatures -import com.twitter.ml.api.DataRecord -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.datarecord.DataRecordInAFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.datarecord.AllFeatures -import com.twitter.product_mixer.core.feature.featuremap.datarecord.DataRecordConverter -import com.twitter.product_mixer.core.feature.featuremap.datarecord.DataRecordExtractor -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.ScorerIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.pipeline_failure.IllegalStateFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.util.OffloadFuturePools -import com.twitter.stitch.Stitch -import com.twitter.timelines.clients.predictionservice.PredictionGRPCService -import com.twitter.timelines.clients.predictionservice.PredictionServiceGRPCClient -import com.twitter.util.Future -import com.twitter.util.Return +import com.ExTwitter.finagle.stats.Stat +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.WeightedModelScoreFeature +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.scorer.PredictedScoreFeature.PredictedScoreFeatures +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordInAFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.datarecord.AllFeatures +import com.ExTwitter.product_mixer.core.feature.featuremap.datarecord.DataRecordConverter +import com.ExTwitter.product_mixer.core.feature.featuremap.datarecord.DataRecordExtractor +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.ScorerIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.IllegalStateFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.util.OffloadFuturePools +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.clients.predictionservice.PredictionGRPCService +import com.ExTwitter.timelines.clients.predictionservice.PredictionServiceGRPCClient +import com.ExTwitter.util.Future +import com.ExTwitter.util.Return import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/PredictedScoreFeature.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/PredictedScoreFeature.scala index f24223a99..567d3d6f8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/PredictedScoreFeature.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/PredictedScoreFeature.scala @@ -1,13 +1,13 @@ -package com.twitter.home_mixer.product.scored_tweets.scorer +package com.ExTwitter.home_mixer.product.scored_tweets.scorer -import com.twitter.dal.personal_data.{thriftjava => pd} -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.Scoring.ModelWeights -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.datarecord.DataRecordOptionalFeature -import com.twitter.product_mixer.core.feature.datarecord.DoubleDataRecordCompatible -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.timelines.configapi.FSBoundedParam -import com.twitter.timelines.prediction.features.recap.RecapFeatures +import com.ExTwitter.dal.personal_data.{thriftjava => pd} +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.Scoring.ModelWeights +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.datarecord.DataRecordOptionalFeature +import com.ExTwitter.product_mixer.core.feature.datarecord.DoubleDataRecordCompatible +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.prediction.features.recap.RecapFeatures sealed trait PredictedScoreFeature extends DataRecordOptionalFeature[TweetCandidate, Double] diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/RescoringFactorProvider.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/RescoringFactorProvider.scala index d9538b66d..d3e80c913 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/RescoringFactorProvider.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer/RescoringFactorProvider.scala @@ -1,23 +1,23 @@ -package com.twitter.home_mixer.product.scored_tweets.scorer +package com.ExTwitter.home_mixer.product.scored_tweets.scorer -import com.twitter.home_mixer.functional_component.scorer.FeedbackFatigueScorer -import com.twitter.home_mixer.model.HomeFeatures -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature -import com.twitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.BlueVerifiedAuthorInNetworkMultiplierParam -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.BlueVerifiedAuthorOutOfNetworkMultiplierParam -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CreatorInNetworkMultiplierParam -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CreatorOutOfNetworkMultiplierParam -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.OutOfNetworkScaleFactorParam -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelineservice.{thriftscala => tls} +import com.ExTwitter.home_mixer.functional_component.scorer.FeedbackFatigueScorer +import com.ExTwitter.home_mixer.model.HomeFeatures +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FeedbackHistoryFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.BlueVerifiedAuthorInNetworkMultiplierParam +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.BlueVerifiedAuthorOutOfNetworkMultiplierParam +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CreatorInNetworkMultiplierParam +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CreatorOutOfNetworkMultiplierParam +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.OutOfNetworkScaleFactorParam +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelineservice.{thriftscala => tls} trait RescoringFactorProvider { @@ -53,7 +53,7 @@ object RescoreCreators extends RescoringFactorProvider { } /** - * Re-scoring multiplier to apply to authors who are verified by Twitter Blue + * Re-scoring multiplier to apply to authors who are verified by ExTwitter Blue */ object RescoreBlueVerified extends RescoringFactorProvider { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/BUILD.bazel index a7fccd8ff..33c9ebec0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/BUILD.bazel @@ -4,22 +4,22 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/scorer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/module", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/candidate_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/featuremap/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/scoring", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/scorer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/module", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/candidate_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/offline_aggregates", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/real_time_aggregates", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/scorer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/featuremap/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/scoring", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsHeuristicScoringPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsHeuristicScoringPipelineConfig.scala index aedfc15b5..00cdcd007 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsHeuristicScoringPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsHeuristicScoringPipelineConfig.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.product.scored_tweets.scoring_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.scoring_pipeline -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.scorer.HeuristicScorer -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.core.functional_component.common.AllPipelines -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.model.common.identifier.ScoringPipelineIdentifier -import com.twitter.product_mixer.core.pipeline.scoring.ScoringPipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.scorer.HeuristicScorer +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.core.functional_component.common.AllPipelines +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.model.common.identifier.ScoringPipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.scoring.ScoringPipelineConfig object ScoredTweetsHeuristicScoringPipelineConfig extends ScoringPipelineConfig[ScoredTweetsQuery, TweetCandidate] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsModelScoringPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsModelScoringPipelineConfig.scala index ab1b49a83..12862239c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsModelScoringPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scoring_pipeline/ScoredTweetsModelScoringPipelineConfig.scala @@ -1,60 +1,60 @@ -package com.twitter.home_mixer.product.scored_tweets.scoring_pipeline +package com.ExTwitter.home_mixer.product.scored_tweets.scoring_pipeline -import com.twitter.home_mixer.functional_component.feature_hydrator._ -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.CachedScoredTweetsCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsBackfillCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsFrsCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsInNetworkCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsListsCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsPopularVideosCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsTweetMixerCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsUtegCandidatePipelineConfig -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.AncestorFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.AuthorFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.AuthorIsCreatorFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.EarlybirdFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.GizmoduckAuthorFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.GraphTwoHopFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.MetricCenterUserCountingFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphViewerAuthorFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphViewerRelatedUsersFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.RealTimeInteractionGraphEdgeFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.SimClustersEngagementSimilarityFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.SimClustersUserTweetScoresHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TSPInferredTopicFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetMetaDataFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetTimeFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieContentFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.TwhinAuthorFollowFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.UtegFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.Phase1EdgeAggregateFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.Phase2EdgeAggregateFeatureHydrator -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates._ -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.QualityFactor -import com.twitter.home_mixer.product.scored_tweets.scorer.NaviModelScorer -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.core.functional_component.common.AllExceptPipelines -import com.twitter.product_mixer.core.functional_component.common.SpecificPipeline -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.functional_component.scorer.Scorer -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ScoringPipelineIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult -import com.twitter.product_mixer.core.pipeline.scoring.ScoringPipelineConfig -import com.twitter.timelines.configapi.Param +import com.ExTwitter.home_mixer.functional_component.feature_hydrator._ +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.CachedScoredTweetsCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsBackfillCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsFrsCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsInNetworkCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsListsCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsPopularVideosCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsTweetMixerCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.candidate_pipeline.ScoredTweetsUtegCandidatePipelineConfig +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.AncestorFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.AuthorFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.AuthorIsCreatorFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.EarlybirdFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.GizmoduckAuthorFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.GraphTwoHopFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.MetricCenterUserCountingFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphViewerAuthorFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RealGraphViewerRelatedUsersFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.RealTimeInteractionGraphEdgeFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.SimClustersEngagementSimilarityFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.SimClustersUserTweetScoresHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TSPInferredTopicFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetMetaDataFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetTimeFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TweetypieContentFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.TwhinAuthorFollowFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.UtegFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.Phase1EdgeAggregateFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.offline_aggregates.Phase2EdgeAggregateFeatureHydrator +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.real_time_aggregates._ +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.QualityFactor +import com.ExTwitter.home_mixer.product.scored_tweets.scorer.NaviModelScorer +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.core.functional_component.common.AllExceptPipelines +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipeline +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.functional_component.scorer.Scorer +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ScoringPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult +import com.ExTwitter.product_mixer.core.pipeline.scoring.ScoringPipelineConfig +import com.ExTwitter.timelines.configapi.Param import javax.inject.Inject import javax.inject.Singleton @@ -94,7 +94,7 @@ class ScoredTweetsModelScoringPipelineConfig @Inject() ( topicEngagementRealTimeAggregateFeatureHydrator: TopicEngagementRealTimeAggregateFeatureHydrator, tweetCountryEngagementRealTimeAggregateFeatureHydrator: TweetCountryEngagementRealTimeAggregateFeatureHydrator, tweetEngagementRealTimeAggregateFeatureHydrator: TweetEngagementRealTimeAggregateFeatureHydrator, - twitterListEngagementRealTimeAggregateFeatureHydrator: TwitterListEngagementRealTimeAggregateFeatureHydrator, + ExTwitterListEngagementRealTimeAggregateFeatureHydrator: ExTwitterListEngagementRealTimeAggregateFeatureHydrator, userAuthorEngagementRealTimeAggregateFeatureHydrator: UserAuthorEngagementRealTimeAggregateFeatureHydrator, // offline aggregate feature hydrators phase1EdgeAggregateFeatureHydrator: Phase1EdgeAggregateFeatureHydrator, @@ -201,7 +201,7 @@ class ScoredTweetsModelScoringPipelineConfig @Inject() ( engagementsReceivedByAuthorRealTimeAggregateFeatureHydrator, tweetCountryEngagementRealTimeAggregateFeatureHydrator, tweetEngagementRealTimeAggregateFeatureHydrator, - twitterListEngagementRealTimeAggregateFeatureHydrator, + ExTwitterListEngagementRealTimeAggregateFeatureHydrator, userAuthorEngagementRealTimeAggregateFeatureHydrator, // offline aggregates phase1EdgeAggregateFeatureHydrator diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/BUILD.bazel index c5dbb187f..dd5e3b19f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/BUILD.bazel @@ -4,9 +4,9 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/selector", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/selector", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType.scala index c485c4c2a..8c2ab108e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/selector/KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType.scala @@ -1,14 +1,14 @@ -package com.twitter.home_mixer.product.scored_tweets.selector +package com.ExTwitter.home_mixer.product.scored_tweets.selector -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -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.SelectorResult -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.selector.SelectorResult +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class KeepBestOutOfNetworkCandidatePerAuthorPerSuggestType( override val pipelineScope: CandidateScope) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/BUILD.bazel index 2147ee217..e55b18b74 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/BUILD.bazel @@ -5,29 +5,29 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "finagle/finagle-mysql/src/main/scala", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/scorer", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/feature_hydrator/adapters/non_ml_features", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/scored_tweets/scorer", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/featuremap/datarecord", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/featuremap/datarecord", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", "servo/repo/src/main/scala", "servo/util/src/main/scala", - "src/scala/com/twitter/timelines/prediction/common/adapters", - "src/thrift/com/twitter/timelines/suggests/common:data_record_metadata-scala", - "src/thrift/com/twitter/timelines/suggests/common:poly_data_record-java", - "src/thrift/com/twitter/timelines/timeline_logging:thrift-scala", + "src/scala/com/ExTwitter/timelines/prediction/common/adapters", + "src/thrift/com/ExTwitter/timelines/suggests/common:data_record_metadata-scala", + "src/thrift/com/ExTwitter/timelines/suggests/common:poly_data_record-java", + "src/thrift/com/ExTwitter/timelines/timeline_logging:thrift-scala", "timelines/ml:pldr-client", "timelines/ml:pldr-conversion", - "timelines/ml/cont_train/common/domain/src/main/scala/com/twitter/timelines/ml/cont_train/common/domain/non_scalding", - "timelines/src/main/scala/com/twitter/timelines/util/stats", + "timelines/ml/cont_train/common/domain/src/main/scala/com/ExTwitter/timelines/ml/cont_train/common/domain/non_scalding", + "timelines/src/main/scala/com/ExTwitter/timelines/util/stats", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/CachedScoredTweetsSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/CachedScoredTweetsSideEffect.scala index 3d66ff54a..36ea3bd9d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/CachedScoredTweetsSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/CachedScoredTweetsSideEffect.scala @@ -1,43 +1,43 @@ -package com.twitter.home_mixer.product.scored_tweets.side_effect +package com.ExTwitter.home_mixer.product.scored_tweets.side_effect -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsGoldVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsGrayVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIsLegacyVerifiedFeature -import com.twitter.home_mixer.model.HomeFeatures.CachedCandidatePipelineIdentifierFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InNetworkFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.LastScoredTimestampMsFeature -import com.twitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature -import com.twitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature -import com.twitter.home_mixer.model.HomeFeatures.TweetUrlsFeature -import com.twitter.home_mixer.model.HomeFeatures.WeightedModelScoreFeature -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets -import com.twitter.home_mixer.service.HomeMixerAlertConfig -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.metadata.TopicContextFunctionalityTypeMarshaller -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.servo.cache.TtlCache -import com.twitter.stitch.Stitch +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsBlueVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsCreatorFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsGoldVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsGrayVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIsLegacyVerifiedFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.CachedCandidatePipelineIdentifierFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ExclusiveConversationAuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InNetworkFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.LastScoredTimestampMsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.PerspectiveFilteredLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidFollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SGSValidLikedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicContextFunctionalityTypeFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TopicIdSocialContextFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetUrlsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.WeightedModelScoreFeature +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.CachedScoredTweets +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.metadata.TopicContextFunctionalityTypeMarshaller +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.servo.cache.TtlCache +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeScoredCandidatesSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeScoredCandidatesSideEffect.scala index ef7e3b41a..817db6e28 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeScoredCandidatesSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeScoredCandidatesSideEffect.scala @@ -1,36 +1,36 @@ -package com.twitter.home_mixer.product.scored_tweets.side_effect +package com.ExTwitter.home_mixer.product.scored_tweets.side_effect -import com.twitter.finagle.tracing.Trace -import com.twitter.home_mixer.model.HomeFeatures.AncestorsFeature -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature -import com.twitter.home_mixer.model.HomeFeatures.RequestJoinIdFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.SuggestTypeFeature -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeScoredCandidatesFlag -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse -import com.twitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.EnableScribeScoredCandidatesParam -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.side_effect.ScribeLogEventSideEffect -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidatePipelines -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.timelines.timeline_logging.{thriftscala => t} +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.home_mixer.model.HomeFeatures.AncestorsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.DirectedAtUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.EarlybirdScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FollowedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FromInNetworkSourceFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.QuotedUserIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RequestJoinIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SuggestTypeFeature +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeScoredCandidatesFlag +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse +import com.ExTwitter.home_mixer.product.scored_tweets.param.ScoredTweetsParam.EnableScribeScoredCandidatesParam +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.side_effect.ScribeLogEventSideEffect +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidatePipelines +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.timelines.timeline_logging.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton -import com.twitter.util.logging.Logging +import com.ExTwitter.util.logging.Logging /** * Side effect that logs scored candidates from scoring pipelines diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeServedCommonFeaturesAndCandidateFeaturesSideEffect.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeServedCommonFeaturesAndCandidateFeaturesSideEffect.scala index c93adee27..9179df2d4 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeServedCommonFeaturesAndCandidateFeaturesSideEffect.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/scored_tweets/side_effect/ScribeServedCommonFeaturesAndCandidateFeaturesSideEffect.scala @@ -1,46 +1,46 @@ -package com.twitter.home_mixer.product.scored_tweets.side_effect +package com.ExTwitter.home_mixer.product.scored_tweets.side_effect -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mysql.Client -import com.twitter.finagle.mysql.Transactions -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finagle.util.DefaultTimer -import com.twitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.param.HomeMixerFlagName.DataRecordMetadataStoreConfigsYmlFlag -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeServedCommonFeaturesAndCandidateFeaturesFlag -import com.twitter.home_mixer.param.HomeMixerInjectionNames.CandidateFeaturesScribeEventPublisher -import com.twitter.home_mixer.param.HomeMixerInjectionNames.CommonFeaturesScribeEventPublisher -import com.twitter.home_mixer.param.HomeMixerInjectionNames.MinimumFeaturesScribeEventPublisher -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCandidateFeatures -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCandidateFeaturesAdapter -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCommonFeatures -import com.twitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCommonFeaturesAdapter -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery -import com.twitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse -import com.twitter.home_mixer.product.scored_tweets.scorer.CandidateFeaturesDataRecordFeature -import com.twitter.home_mixer.product.scored_tweets.scorer.CommonFeaturesDataRecordFeature -import com.twitter.home_mixer.product.scored_tweets.scorer.PredictedScoreFeature.PredictedScoreFeatures -import com.twitter.home_mixer.util.CandidatesUtil.getOriginalAuthorId -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.ml.api.DataRecordMerger -import com.twitter.product_mixer.core.feature.featuremap.datarecord.DataRecordConverter -import com.twitter.product_mixer.core.feature.featuremap.datarecord.SpecificFeatures -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.identifier.SideEffectIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.stitch.Stitch -import com.twitter.timelines.ml.cont_train.common.domain.non_scalding.CandidateAndCommonFeaturesStreamingUtils -import com.twitter.timelines.ml.pldr.client.MysqlClientUtils -import com.twitter.timelines.ml.pldr.client.VersionedMetadataCacheClient -import com.twitter.timelines.ml.pldr.conversion.VersionIdAndFeatures -import com.twitter.timelines.suggests.common.data_record_metadata.{thriftscala => drmd} -import com.twitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} -import com.twitter.timelines.util.stats.OptionObserver -import com.twitter.util.Time -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mysql.Client +import com.ExTwitter.finagle.mysql.Transactions +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finagle.util.DefaultTimer +import com.ExTwitter.home_mixer.model.HomeFeatures.ServedRequestIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.DataRecordMetadataStoreConfigsYmlFlag +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeServedCommonFeaturesAndCandidateFeaturesFlag +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.CandidateFeaturesScribeEventPublisher +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.CommonFeaturesScribeEventPublisher +import com.ExTwitter.home_mixer.param.HomeMixerInjectionNames.MinimumFeaturesScribeEventPublisher +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCandidateFeatures +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCandidateFeaturesAdapter +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCommonFeatures +import com.ExTwitter.home_mixer.product.scored_tweets.feature_hydrator.adapters.non_ml_features.NonMLCommonFeaturesAdapter +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsQuery +import com.ExTwitter.home_mixer.product.scored_tweets.model.ScoredTweetsResponse +import com.ExTwitter.home_mixer.product.scored_tweets.scorer.CandidateFeaturesDataRecordFeature +import com.ExTwitter.home_mixer.product.scored_tweets.scorer.CommonFeaturesDataRecordFeature +import com.ExTwitter.home_mixer.product.scored_tweets.scorer.PredictedScoreFeature.PredictedScoreFeatures +import com.ExTwitter.home_mixer.util.CandidatesUtil.getOriginalAuthorId +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.ml.api.DataRecordMerger +import com.ExTwitter.product_mixer.core.feature.featuremap.datarecord.DataRecordConverter +import com.ExTwitter.product_mixer.core.feature.featuremap.datarecord.SpecificFeatures +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.identifier.SideEffectIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.ml.cont_train.common.domain.non_scalding.CandidateAndCommonFeaturesStreamingUtils +import com.ExTwitter.timelines.ml.pldr.client.MysqlClientUtils +import com.ExTwitter.timelines.ml.pldr.client.VersionedMetadataCacheClient +import com.ExTwitter.timelines.ml.pldr.conversion.VersionIdAndFeatures +import com.ExTwitter.timelines.suggests.common.data_record_metadata.{thriftscala => drmd} +import com.ExTwitter.timelines.suggests.common.poly_data_record.{thriftjava => pldr} +import com.ExTwitter.timelines.util.stats.OptionObserver +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/BUILD.bazel index c1b5032db..83d4cf76d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/BUILD.bazel @@ -5,78 +5,78 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/api", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/api", "finagle/finagle-memcached/src/main/scala", "finatra/inject/inject-core/src/main/scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/candidate_pipeline", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/candidate_source", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/urt/builder", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/feature_hydrator", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/filter", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/gate", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/selector", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/side_effect", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/marshaller/timelines", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/following/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/service", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/util", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/social_graph", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/selector", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/side_effect", - "product-mixer/core/src/main/java/com/twitter/product_mixer/core/product/guice/scope", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/mixer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/guice", - "src/java/com/twitter/search/common/schema/base", - "src/java/com/twitter/search/common/schema/earlybird", - "src/java/com/twitter/search/common/util/lang", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:constants-java", - "src/thrift/com/twitter/tweetypie:service-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/candidate_pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/candidate_source", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/decorator/urt/builder", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/feature_hydrator", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/filter", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/gate", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/selector", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/functional_component/side_effect", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/marshaller/timelines", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/following/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/subscribed/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/subscribed/param", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/service", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/util", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/tweetconvosvc", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/async", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/param_gated", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/social_graph", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/gate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/premarshaller/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/selector", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/side_effect", + "product-mixer/core/src/main/java/com/ExTwitter/product_mixer/core/product/guice/scope", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/mixer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/guice", + "src/java/com/ExTwitter/search/common/schema/base", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/java/com/ExTwitter/search/common/util/lang", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:constants-java", + "src/thrift/com/ExTwitter/tweetypie:service-scala", "stitch/stitch-gizmoduck", "stitch/stitch-tweetypie", "stringcenter/client", "stringcenter/client/src/main/java", - "timelinemixer/common/src/main/scala/com/twitter/timelinemixer/clients/manhattan", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/model/candidate", - "timelinemixer/server/src/main/scala/com/twitter/timelinemixer/injection/store/persistence", - "timelines/src/main/scala/com/twitter/timelines/clients/relevance_search", - "timelines/src/main/scala/com/twitter/timelines/injection/scribe", + "timelinemixer/common/src/main/scala/com/ExTwitter/timelinemixer/clients/manhattan", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/model/candidate", + "timelinemixer/server/src/main/scala/com/ExTwitter/timelinemixer/injection/store/persistence", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/relevance_search", + "timelines/src/main/scala/com/ExTwitter/timelines/injection/scribe", ], exports = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "src/thrift/com/twitter/timelines/render:thrift-scala", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/subscribed/param", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "src/thrift/com/ExTwitter/timelines/render:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdCandidatePipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdCandidatePipelineConfig.scala index c331f955b..510a38c1e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdCandidatePipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdCandidatePipelineConfig.scala @@ -1,24 +1,24 @@ -package com.twitter.home_mixer.product.subscribed +package com.ExTwitter.home_mixer.product.subscribed import com.google.inject.Inject -import com.twitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource -import com.twitter.home_mixer.product.subscribed.model.SubscribedQuery -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSSubscribedUsersFeature -import com.twitter.product_mixer.component_library.filter.TweetVisibilityFilter -import com.twitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.search.earlybird.{thriftscala => t} -import com.twitter.spam.rtf.thriftscala.SafetyLevel.TimelineHomeSubscribed -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.thriftscala.TweetVisibilityPolicy +import com.ExTwitter.home_mixer.functional_component.candidate_source.EarlybirdCandidateSource +import com.ExTwitter.home_mixer.product.subscribed.model.SubscribedQuery +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSSubscribedUsersFeature +import com.ExTwitter.product_mixer.component_library.filter.TweetVisibilityFilter +import com.ExTwitter.product_mixer.component_library.gate.NonEmptySeqFeatureGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.spam.rtf.thriftscala.SafetyLevel.TimelineHomeSubscribed +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.thriftscala.TweetVisibilityPolicy class SubscribedEarlybirdCandidatePipelineConfig @Inject() ( earlybirdCandidateSource: EarlybirdCandidateSource, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdQueryTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdQueryTransformer.scala index 6e0d57c13..f0d416bb5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdQueryTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdQueryTransformer.scala @@ -1,20 +1,20 @@ -package com.twitter.home_mixer.product.subscribed +package com.ExTwitter.home_mixer.product.subscribed -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.tracing.Trace -import com.twitter.home_mixer.product.subscribed.model.SubscribedQuery -import com.twitter.home_mixer.product.subscribed.param.SubscribedParam.ServerMaxResultsParam -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSSubscribedUsersFeature -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant -import com.twitter.search.earlybird.{thriftscala => t} -import com.twitter.search.queryparser.query.Conjunction -import com.twitter.search.queryparser.query.search.SearchOperator +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.tracing.Trace +import com.ExTwitter.home_mixer.product.subscribed.model.SubscribedQuery +import com.ExTwitter.home_mixer.product.subscribed.param.SubscribedParam.ServerMaxResultsParam +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSSubscribedUsersFeature +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.BottomCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.search.queryparser.query.Conjunction +import com.ExTwitter.search.queryparser.query.search.SearchOperator import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdResponseFeatureTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdResponseFeatureTransformer.scala index a8136102c..f56473ec0 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdResponseFeatureTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedEarlybirdResponseFeatureTransformer.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.product.subscribed +package com.ExTwitter.home_mixer.product.subscribed -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.search.earlybird.{thriftscala => t} object SubscribedEarlybirdResponseFeatureTransformer extends CandidateFeatureTransformer[t.ThriftSearchResult] { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedMixerPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedMixerPipelineConfig.scala index 5b1f74b37..d20dfbd42 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedMixerPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedMixerPipelineConfig.scala @@ -1,66 +1,66 @@ -package com.twitter.home_mixer.product.subscribed +package com.ExTwitter.home_mixer.product.subscribed -import com.twitter.clientapp.{thriftscala => ca} -import com.twitter.home_mixer.candidate_pipeline.ConversationServiceCandidatePipelineConfigBuilder -import com.twitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig -import com.twitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig -import com.twitter.home_mixer.functional_component.decorator.HomeConversationServiceCandidateDecorator -import com.twitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder -import com.twitter.home_mixer.functional_component.feature_hydrator._ -import com.twitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails -import com.twitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration -import com.twitter.home_mixer.functional_component.side_effect._ -import com.twitter.home_mixer.model.GapIncludeInstruction -import com.twitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam -import com.twitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag -import com.twitter.home_mixer.product.following.model.HomeMixerExternalStrings -import com.twitter.home_mixer.product.subscribed.model.SubscribedQuery -import com.twitter.home_mixer.product.subscribed.param.SubscribedParam.ServerMaxResultsParam -import com.twitter.home_mixer.util.CandidatesUtil -import com.twitter.inject.annotations.Flag -import com.twitter.logpipeline.client.common.EventPublisher -import com.twitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator -import com.twitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSSubscribedUsersQueryFeatureHydrator -import com.twitter.product_mixer.component_library.gate.NonEmptyCandidatesGate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesWithReplaceAndShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedGapCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder -import com.twitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder -import com.twitter.product_mixer.component_library.selector.DropMaxCandidates -import com.twitter.product_mixer.component_library.selector.InsertAppendResults -import com.twitter.product_mixer.component_library.selector.SelectConditionally -import com.twitter.product_mixer.component_library.selector.UpdateSortCandidates -import com.twitter.product_mixer.core.functional_component.common.SpecificPipeline -import com.twitter.product_mixer.core.functional_component.common.SpecificPipelines -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller -import com.twitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller -import com.twitter.product_mixer.core.functional_component.selector.Selector -import com.twitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.Timeline -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.pipeline.FailOpenPolicy -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig -import com.twitter.product_mixer.core.product.guice.scope.ProductScoped -import com.twitter.stringcenter.client.StringCenter -import com.twitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.clientapp.{thriftscala => ca} +import com.ExTwitter.home_mixer.candidate_pipeline.ConversationServiceCandidatePipelineConfigBuilder +import com.ExTwitter.home_mixer.candidate_pipeline.EditedTweetsCandidatePipelineConfig +import com.ExTwitter.home_mixer.candidate_pipeline.NewTweetsPillCandidatePipelineConfig +import com.ExTwitter.home_mixer.functional_component.decorator.HomeConversationServiceCandidateDecorator +import com.ExTwitter.home_mixer.functional_component.decorator.urt.builder.HomeFeedbackActionInfoBuilder +import com.ExTwitter.home_mixer.functional_component.feature_hydrator._ +import com.ExTwitter.home_mixer.functional_component.selector.UpdateHomeClientEventDetails +import com.ExTwitter.home_mixer.functional_component.selector.UpdateNewTweetsPillDecoration +import com.ExTwitter.home_mixer.functional_component.side_effect._ +import com.ExTwitter.home_mixer.model.GapIncludeInstruction +import com.ExTwitter.home_mixer.param.HomeGlobalParams.MaxNumberReplaceInstructionsParam +import com.ExTwitter.home_mixer.param.HomeMixerFlagName.ScribeClientEventsFlag +import com.ExTwitter.home_mixer.product.following.model.HomeMixerExternalStrings +import com.ExTwitter.home_mixer.product.subscribed.model.SubscribedQuery +import com.ExTwitter.home_mixer.product.subscribed.param.SubscribedParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.util.CandidatesUtil +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.logpipeline.client.common.EventPublisher +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.async.AsyncQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweetsQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSFollowedUsersQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.social_graph.SGSSubscribedUsersQueryFeatureHydrator +import com.ExTwitter.product_mixer.component_library.gate.NonEmptyCandidatesGate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.UrtDomainMarshaller +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.AddEntriesWithReplaceAndShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedBottomCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedGapCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.OrderedTopCursorBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceAllEntries +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ReplaceEntryInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.ShowAlertInstructionBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.StaticTimelineScribeConfigBuilder +import com.ExTwitter.product_mixer.component_library.premarshaller.urt.builder.UrtMetadataBuilder +import com.ExTwitter.product_mixer.component_library.selector.DropMaxCandidates +import com.ExTwitter.product_mixer.component_library.selector.InsertAppendResults +import com.ExTwitter.product_mixer.component_library.selector.SelectConditionally +import com.ExTwitter.product_mixer.component_library.selector.UpdateSortCandidates +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipeline +import com.ExTwitter.product_mixer.core.functional_component.common.SpecificPipelines +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.urt.UrtTransportMarshaller +import com.ExTwitter.product_mixer.core.functional_component.premarshaller.DomainMarshaller +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.side_effect.PipelineResultSideEffect +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.Timeline +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineScribeConfig +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.pipeline.FailOpenPolicy +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.mixer.MixerPipelineConfig +import com.ExTwitter.product_mixer.core.product.guice.scope.ProductScoped +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.timelines.render.{thriftscala => urt} import javax.inject.Inject import javax.inject.Provider import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedProductPipelineConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedProductPipelineConfig.scala index 0d524391a..1a10369ed 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedProductPipelineConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/SubscribedProductPipelineConfig.scala @@ -1,42 +1,42 @@ -package com.twitter.home_mixer.product.subscribed +package com.ExTwitter.home_mixer.product.subscribed -import com.twitter.conversions.DurationOps._ -import com.twitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller -import com.twitter.home_mixer.model.request.HomeMixerRequest -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.home_mixer.model.request.SubscribedProductContext -import com.twitter.home_mixer.product.subscribed.model.SubscribedQuery -import com.twitter.home_mixer.product.subscribed.param.SubscribedParam.ServerMaxResultsParam -import com.twitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy -import com.twitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.common.alert.LatencyAlert -import com.twitter.product_mixer.core.functional_component.common.alert.P99 -import com.twitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.ThroughputAlert -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.Product -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor -import com.twitter.product_mixer.core.pipeline.PipelineConfig -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineConfig -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.product_mixer.core.util.SortIndexBuilder -import com.twitter.timelines.configapi.Params -import com.twitter.timelines.render.{thriftscala => urt} -import com.twitter.timelines.util.RequestCursorSerializer -import com.twitter.util.Time -import com.twitter.util.Try +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.home_mixer.marshaller.timelines.ChronologicalCursorUnmarshaller +import com.ExTwitter.home_mixer.model.request.HomeMixerRequest +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.home_mixer.model.request.SubscribedProductContext +import com.ExTwitter.home_mixer.product.subscribed.model.SubscribedQuery +import com.ExTwitter.home_mixer.product.subscribed.param.SubscribedParam.ServerMaxResultsParam +import com.ExTwitter.home_mixer.service.HomeMixerAccessPolicy.DefaultHomeMixerAccessPolicy +import com.ExTwitter.home_mixer.service.HomeMixerAlertConfig.DefaultNotificationGroup +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.component_library.premarshaller.cursor.UrtCursorSerializer +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.LatencyAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.P99 +import com.ExTwitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.ThroughputAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.ProductPipelineIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.Product +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.GapCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.TopCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineConfig +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.MalformedCursor +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineConfig +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.product_mixer.core.util.SortIndexBuilder +import com.ExTwitter.timelines.configapi.Params +import com.ExTwitter.timelines.render.{thriftscala => urt} +import com.ExTwitter.timelines.util.RequestCursorSerializer +import com.ExTwitter.util.Time +import com.ExTwitter.util.Try import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/BUILD.bazel index b821a8f8d..edae32d76 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/BUILD.bazel @@ -4,17 +4,17 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model/request", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model/request", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/product/subscribed/param", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stringcenter/client", "stringcenter/client/src/main/java", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/SubscribedQuery.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/SubscribedQuery.scala index 2085ef54f..ed8d51267 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/SubscribedQuery.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/model/SubscribedQuery.scala @@ -1,15 +1,15 @@ -package com.twitter.home_mixer.product.subscribed.model +package com.ExTwitter.home_mixer.product.subscribed.model -import com.twitter.home_mixer.model.request.DeviceContext -import com.twitter.home_mixer.model.request.HasDeviceContext -import com.twitter.home_mixer.model.request.HasSeenTweetIds -import com.twitter.home_mixer.model.request.SubscribedProduct -import com.twitter.product_mixer.component_library.model.cursor.UrtOrderedCursor -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.request._ -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Params +import com.ExTwitter.home_mixer.model.request.DeviceContext +import com.ExTwitter.home_mixer.model.request.HasDeviceContext +import com.ExTwitter.home_mixer.model.request.HasSeenTweetIds +import com.ExTwitter.home_mixer.model.request.SubscribedProduct +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtOrderedCursor +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.request._ +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Params case class SubscribedQuery( override val params: Params, diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/BUILD.bazel index a56e3a1fd..fbd47eca9 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/BUILD.bazel @@ -5,10 +5,10 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "configapi/configapi-core/src/main/scala/com/twitter/timelines/configapi", - "home-mixer/server/src/main/scala/com/twitter/home_mixer/param/decider", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "util/util-core/src/main/scala/com/twitter/conversions", + "configapi/configapi-core/src/main/scala/com/ExTwitter/timelines/configapi", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/param/decider", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "util/util-core/src/main/scala/com/ExTwitter/conversions", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParam.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParam.scala index 9e4ade43a..a2116a89d 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParam.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParam.scala @@ -1,6 +1,6 @@ -package com.twitter.home_mixer.product.subscribed.param +package com.ExTwitter.home_mixer.product.subscribed.param -import com.twitter.timelines.configapi.FSBoundedParam +import com.ExTwitter.timelines.configapi.FSBoundedParam object SubscribedParam { val SupportedClientFSName = "subscribed_supported_client" diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParamConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParamConfig.scala index 58ce7ec35..b2d02aa3c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParamConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/product/subscribed/param/SubscribedParamConfig.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.product.subscribed.param +package com.ExTwitter.home_mixer.product.subscribed.param -import com.twitter.home_mixer.param.decider.DeciderKey -import com.twitter.home_mixer.product.subscribed.param.SubscribedParam._ -import com.twitter.product_mixer.core.product.ProductParamConfig -import com.twitter.servo.decider.DeciderKeyName +import com.ExTwitter.home_mixer.param.decider.DeciderKey +import com.ExTwitter.home_mixer.product.subscribed.param.SubscribedParam._ +import com.ExTwitter.product_mixer.core.product.ProductParamConfig +import com.ExTwitter.servo.decider.DeciderKeyName import javax.inject.Inject import javax.inject.Singleton diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/BUILD.bazel index c0211ff72..2efc95c15 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/BUILD.bazel @@ -7,9 +7,9 @@ scala_library( "3rdparty/jvm/javax/inject:javax.inject", "configapi/configapi-core", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/product/registry", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/product/registry", "stitch/stitch-core", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAccessPolicy.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAccessPolicy.scala index 853f4b56a..580dd517c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAccessPolicy.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAccessPolicy.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.service +package com.ExTwitter.home_mixer.service -import com.twitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy -import com.twitter.product_mixer.core.functional_component.common.access_policy.AllowedLdapGroups +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AccessPolicy +import com.ExTwitter.product_mixer.core.functional_component.common.access_policy.AllowedLdapGroups object HomeMixerAccessPolicy { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAlertConfig.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAlertConfig.scala index 597fd4d36..444d51e4c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAlertConfig.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/HomeMixerAlertConfig.scala @@ -1,17 +1,17 @@ -package com.twitter.home_mixer.service +package com.ExTwitter.home_mixer.service -import com.twitter.conversions.DurationOps._ -import com.twitter.product_mixer.core.functional_component.common.alert.Destination -import com.twitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.LatencyAlert -import com.twitter.product_mixer.core.functional_component.common.alert.NotificationGroup -import com.twitter.product_mixer.core.functional_component.common.alert.P99 -import com.twitter.product_mixer.core.functional_component.common.alert.Percentile -import com.twitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow -import com.twitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Destination +import com.ExTwitter.product_mixer.core.functional_component.common.alert.EmptyResponseRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.LatencyAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.NotificationGroup +import com.ExTwitter.product_mixer.core.functional_component.common.alert.P99 +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Percentile +import com.ExTwitter.product_mixer.core.functional_component.common.alert.SuccessRateAlert +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfAbove +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfBelow +import com.ExTwitter.product_mixer.core.functional_component.common.alert.predicate.TriggerIfLatencyAbove +import com.ExTwitter.util.Duration /** * Notifications (email, pagerduty, etc) can be specific per-alert but it is common for multiple diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/ScoredTweetsService.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/ScoredTweetsService.scala index 158e5ee45..593ecf8d2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/ScoredTweetsService.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/service/ScoredTweetsService.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.service +package com.ExTwitter.home_mixer.service -import com.twitter.home_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.model.marshalling.request.Request -import com.twitter.product_mixer.core.pipeline.product.ProductPipelineRequest -import com.twitter.product_mixer.core.product.registry.ProductPipelineRegistry -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Params +import com.ExTwitter.home_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.model.marshalling.request.Request +import com.ExTwitter.product_mixer.core.pipeline.product.ProductPipelineRequest +import com.ExTwitter.product_mixer.core.product.registry.ProductPipelineRegistry +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Params import javax.inject.Inject import javax.inject.Singleton import scala.reflect.runtime.universe._ diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/BUILD.bazel index c4855d9e7..18fac2dd8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/BUILD.bazel @@ -4,9 +4,9 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/bijection:scrooge", - "3rdparty/jvm/com/twitter/storehaus:core", - "src/thrift/com/twitter/wtf/candidate:wtf-candidate-scala", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "3rdparty/jvm/com/ExTwitter/storehaus:core", + "src/thrift/com/ExTwitter/wtf/candidate:wtf-candidate-scala", "stitch/stitch-core", "storage/clients/manhattan/client/src/main/scala", ], diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/RealGraphInNetworkScoresStore.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/RealGraphInNetworkScoresStore.scala index ce0b182be..cca6222e8 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/RealGraphInNetworkScoresStore.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/store/RealGraphInNetworkScoresStore.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.store +package com.ExTwitter.home_mixer.store -import com.twitter.bijection.Injection -import com.twitter.home_mixer.store.ManhattanRealGraphKVDescriptor._ -import com.twitter.stitch.Stitch -import com.twitter.storage.client.manhattan.bijections.Bijections -import com.twitter.storage.client.manhattan.bijections.Bijections.BinaryScalaInjection -import com.twitter.storage.client.manhattan.kv.ManhattanKVEndpoint -import com.twitter.storage.client.manhattan.kv.impl.ReadOnlyKeyDescriptor -import com.twitter.storage.client.manhattan.kv.impl.ValueDescriptor -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future -import com.twitter.wtf.candidate.{thriftscala => wtf} +import com.ExTwitter.bijection.Injection +import com.ExTwitter.home_mixer.store.ManhattanRealGraphKVDescriptor._ +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.storage.client.manhattan.bijections.Bijections +import com.ExTwitter.storage.client.manhattan.bijections.Bijections.BinaryScalaInjection +import com.ExTwitter.storage.client.manhattan.kv.ManhattanKVEndpoint +import com.ExTwitter.storage.client.manhattan.kv.impl.ReadOnlyKeyDescriptor +import com.ExTwitter.storage.client.manhattan.kv.impl.ValueDescriptor +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future +import com.ExTwitter.wtf.candidate.{thriftscala => wtf} object ManhattanRealGraphKVDescriptor { implicit val byteArray2Buf = Bijections.BytesBijection diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/BUILD.bazel index 8e04fa11f..8731444af 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/BUILD.bazel @@ -4,22 +4,22 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", "home-mixer/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation", "servo/repo/src/main/scala", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/ml/api:api-base", - "src/java/com/twitter/ml/api/util", - "src/java/com/twitter/search/common/util/lang", - "src/scala/com/twitter/ml/api/util", - "src/thrift/com/twitter/ml/api:data-java", - "src/thrift/com/twitter/search/common:constants-java", - "src/thrift/com/twitter/search/common:constants-scala", - "src/thrift/com/twitter/service/metastore/gen:thrift-java", - "src/thrift/com/twitter/service/metastore/gen:thrift-scala", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/ml/api:api-base", + "src/java/com/ExTwitter/ml/api/util", + "src/java/com/ExTwitter/search/common/util/lang", + "src/scala/com/ExTwitter/ml/api/util", + "src/thrift/com/ExTwitter/ml/api:data-java", + "src/thrift/com/ExTwitter/search/common:constants-java", + "src/thrift/com/ExTwitter/search/common:constants-scala", + "src/thrift/com/ExTwitter/service/metastore/gen:thrift-java", + "src/thrift/com/ExTwitter/service/metastore/gen:thrift-scala", "storage/clients/manhattan/client/src/main/scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CachedScoredTweetsHelper.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CachedScoredTweetsHelper.scala index e0fbdd76f..7ed55d3c2 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CachedScoredTweetsHelper.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CachedScoredTweetsHelper.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.home_mixer.model.HomeFeatures.CachedScoredTweetsFeature -import com.twitter.home_mixer.{thriftscala => hmt} -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.util.Time +import com.ExTwitter.home_mixer.model.HomeFeatures.CachedScoredTweetsFeature +import com.ExTwitter.home_mixer.{thriftscala => hmt} +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.util.Time object CachedScoredTweetsHelper { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CandidatesUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CandidatesUtil.scala index 06fe5646c..048578327 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CandidatesUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/CandidatesUtil.scala @@ -1,27 +1,27 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.home_mixer.model.HomeFeatures.AuthorIdFeature -import com.twitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.HasImageFeature -import com.twitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.IsRetweetFeature -import com.twitter.home_mixer.model.HomeFeatures.MediaUnderstandingAnnotationIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.RepliedByEngagerIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.RetweetedByEngagerIdsFeature -import com.twitter.home_mixer.model.HomeFeatures.ScoreFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature -import com.twitter.home_mixer.model.HomeFeatures.SourceUserIdFeature -import com.twitter.product_mixer.component_library.model.candidate.CursorCandidate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult +import com.ExTwitter.home_mixer.model.HomeFeatures.AuthorIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.FavoritedByUserIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.HasImageFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.InReplyToTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.IsRetweetFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.MediaUnderstandingAnnotationIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RepliedByEngagerIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.RetweetedByEngagerIdsFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.ScoreFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceTweetIdFeature +import com.ExTwitter.home_mixer.model.HomeFeatures.SourceUserIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.CursorCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ItemCandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult import scala.reflect.ClassTag object CandidatesUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/DataRecordUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/DataRecordUtil.scala index b972b8158..d28405208 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/DataRecordUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/DataRecordUtil.scala @@ -1,9 +1,9 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.ml.api.DataRecord -import com.twitter.ml.api.FeatureContext -import com.twitter.ml.api.util.SRichDataRecord -import com.twitter.ml.api.Feature +import com.ExTwitter.ml.api.DataRecord +import com.ExTwitter.ml.api.FeatureContext +import com.ExTwitter.ml.api.util.SRichDataRecord +import com.ExTwitter.ml.api.Feature import java.lang.{Double => JDouble} object DataRecordUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/InjectionTransformer.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/InjectionTransformer.scala index f45102f37..60fef1a62 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/InjectionTransformer.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/InjectionTransformer.scala @@ -1,11 +1,11 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.bijection.Injection -import com.twitter.io.Buf -import com.twitter.servo.util.Transformer -import com.twitter.storage.client.manhattan.bijections.Bijections -import com.twitter.util.Return -import com.twitter.util.Try +import com.ExTwitter.bijection.Injection +import com.ExTwitter.io.Buf +import com.ExTwitter.servo.util.Transformer +import com.ExTwitter.storage.client.manhattan.bijections.Bijections +import com.ExTwitter.util.Return +import com.ExTwitter.util.Try import java.nio.ByteBuffer object InjectionTransformerImplicits { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/LanguageUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/LanguageUtil.scala index 23c77c27f..9e12d1331 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/LanguageUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/LanguageUtil.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.search.common.constants.{thriftscala => scc} -import com.twitter.search.common.util.lang.ThriftLanguageUtil -import com.twitter.service.metastore.gen.{thriftscala => smg} +import com.ExTwitter.search.common.constants.{thriftscala => scc} +import com.ExTwitter.search.common.util.lang.ThriftLanguageUtil +import com.ExTwitter.service.metastore.gen.{thriftscala => smg} object LanguageUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/MissingKeyException.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/MissingKeyException.scala index ae8fd4ded..033b2a26a 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/MissingKeyException.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/MissingKeyException.scala @@ -1,4 +1,4 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util object MissingKeyException extends Exception("Missing key") { override def toString: String = getMessage diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ObservedKeyValueResultHandler.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ObservedKeyValueResultHandler.scala index 0cd0cd60b..82dd66b87 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ObservedKeyValueResultHandler.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ObservedKeyValueResultHandler.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.servo.keyvalue.KeyValueResult -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.servo.keyvalue.KeyValueResult +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try trait ObservedKeyValueResultHandler { val statsReceiver: StatsReceiver diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ReplyRetweetUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ReplyRetweetUtil.scala index 13758ec5d..074888ade 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ReplyRetweetUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/ReplyRetweetUtil.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.home_mixer.model.HomeFeatures._ -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.home_mixer.model.HomeFeatures._ +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures object ReplyRetweetUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TensorFlowUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TensorFlowUtil.scala index 05d7c2127..e9be05787 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TensorFlowUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TensorFlowUtil.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.ml.api.thriftscala.FloatTensor -import com.twitter.ml.api.util.BufferToIterators.RichFloatBuffer +import com.ExTwitter.ml.api.thriftscala.FloatTensor +import com.ExTwitter.ml.api.util.BufferToIterators.RichFloatBuffer import java.nio.ByteBuffer import java.nio.ByteOrder diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TweetImpressionsHelper.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TweetImpressionsHelper.scala index eabaac9e3..6767aa394 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TweetImpressionsHelper.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/TweetImpressionsHelper.scala @@ -1,8 +1,8 @@ -package com.twitter.home_mixer.util +package com.ExTwitter.home_mixer.util -import com.twitter.home_mixer.model.HomeFeatures.TweetImpressionsFeature -import com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweets -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.home_mixer.model.HomeFeatures.TweetImpressionsFeature +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweets +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap object TweetImpressionsHelper { def tweetImpressions(features: FeatureMap): Set[Long] = { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/BUILD.bazel index 2b5722179..33595425e 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/BUILD.bazel @@ -5,19 +5,19 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "home-mixer/thrift/src/main/thrift:thrift-scala", - "src/java/com/twitter/search/common/schema/base", - "src/java/com/twitter/search/common/schema/earlybird", - "src/java/com/twitter/search/common/util/lang", - "src/java/com/twitter/search/queryparser/query:core-query-nodes", - "src/java/com/twitter/search/queryparser/query/search:search-query-nodes", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/search/common:constants-scala", - "src/thrift/com/twitter/search/common:query-scala", - "src/thrift/com/twitter/search/common:ranking-scala", - "timelines/src/main/scala/com/twitter/timelines/clients/relevance_search", - "timelines/src/main/scala/com/twitter/timelines/earlybird/common/options", - "timelines/src/main/scala/com/twitter/timelines/earlybird/common/utils", - "timelines/src/main/scala/com/twitter/timelines/model/types", - "timelines/src/main/scala/com/twitter/timelines/util/stats", + "src/java/com/ExTwitter/search/common/schema/base", + "src/java/com/ExTwitter/search/common/schema/earlybird", + "src/java/com/ExTwitter/search/common/util/lang", + "src/java/com/ExTwitter/search/queryparser/query:core-query-nodes", + "src/java/com/ExTwitter/search/queryparser/query/search:search-query-nodes", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/search/common:constants-scala", + "src/thrift/com/ExTwitter/search/common:query-scala", + "src/thrift/com/ExTwitter/search/common:ranking-scala", + "timelines/src/main/scala/com/ExTwitter/timelines/clients/relevance_search", + "timelines/src/main/scala/com/ExTwitter/timelines/earlybird/common/options", + "timelines/src/main/scala/com/ExTwitter/timelines/earlybird/common/utils", + "timelines/src/main/scala/com/ExTwitter/timelines/model/types", + "timelines/src/main/scala/com/ExTwitter/timelines/util/stats", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdRequestUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdRequestUtil.scala index 4c482b251..5540accf5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdRequestUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdRequestUtil.scala @@ -1,16 +1,16 @@ -package com.twitter.home_mixer.util.earlybird +package com.ExTwitter.home_mixer.util.earlybird -import com.twitter.conversions.DurationOps._ -import com.twitter.search.common.query.thriftjava.{thriftscala => scq} -import com.twitter.search.common.ranking.{thriftscala => scr} -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelines.clients.relevance_search.SearchClient.TweetFeatures -import com.twitter.timelines.clients.relevance_search.SearchClient.TweetTypes -import com.twitter.timelines.clients.relevance_search.SearchQueryBuilder -import com.twitter.timelines.clients.relevance_search.SearchQueryBuilder.QueryWithNamedDisjunctions -import com.twitter.timelines.earlybird.common.options.EarlybirdScoringModelConfig -import com.twitter.timelines.earlybird.common.utils.SearchOperator -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.search.common.query.thriftjava.{thriftscala => scq} +import com.ExTwitter.search.common.ranking.{thriftscala => scr} +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelines.clients.relevance_search.SearchClient.TweetFeatures +import com.ExTwitter.timelines.clients.relevance_search.SearchClient.TweetTypes +import com.ExTwitter.timelines.clients.relevance_search.SearchQueryBuilder +import com.ExTwitter.timelines.clients.relevance_search.SearchQueryBuilder.QueryWithNamedDisjunctions +import com.ExTwitter.timelines.earlybird.common.options.EarlybirdScoringModelConfig +import com.ExTwitter.timelines.earlybird.common.utils.SearchOperator +import com.ExTwitter.util.Duration object EarlybirdRequestUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdResponseUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdResponseUtil.scala index 06e0dd708..c26221a9c 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdResponseUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/EarlybirdResponseUtil.scala @@ -1,12 +1,12 @@ -package com.twitter.home_mixer.util.earlybird +package com.ExTwitter.home_mixer.util.earlybird -import com.twitter.search.common.constants.{thriftscala => scc} -import com.twitter.search.common.features.{thriftscala => sc} -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant._ -import com.twitter.search.common.util.lang.ThriftLanguageUtil -import com.twitter.search.earlybird.{thriftscala => eb} -import com.twitter.timelines.earlybird.common.utils.InNetworkEngagement +import com.ExTwitter.search.common.constants.{thriftscala => scc} +import com.ExTwitter.search.common.features.{thriftscala => sc} +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant._ +import com.ExTwitter.search.common.util.lang.ThriftLanguageUtil +import com.ExTwitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.timelines.earlybird.common.utils.InNetworkEngagement object EarlybirdResponseUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/RelevanceSearchUtil.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/RelevanceSearchUtil.scala index 40b727141..eb89d936b 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/RelevanceSearchUtil.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/earlybird/RelevanceSearchUtil.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.util.earlybird +package com.ExTwitter.home_mixer.util.earlybird -import com.twitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant -import com.twitter.search.earlybird.{thriftscala => eb} +import com.ExTwitter.search.common.schema.earlybird.EarlybirdFieldConstants.EarlybirdFieldConstant +import com.ExTwitter.search.earlybird.{thriftscala => eb} object RelevanceSearchUtil { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/BUILD.bazel index dbfee21f4..a4bd07d88 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/BUILD.bazel @@ -4,7 +4,7 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", "home-mixer/thrift/src/main/thrift:thrift-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/RequestFields.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/RequestFields.scala index e20aead94..f33a7a314 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/RequestFields.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/RequestFields.scala @@ -1,6 +1,6 @@ -package com.twitter.home_mixer.util.tweetypie +package com.ExTwitter.home_mixer.util.tweetypie -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.tweetypie.{thriftscala => tp} object RequestFields { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/BUILD.bazel b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/BUILD.bazel index 5acfd98e0..bd1b4472f 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/BUILD.bazel +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/BUILD.bazel @@ -4,16 +4,16 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "home-mixer/server/src/main/scala/com/twitter/home_mixer/model", + "home-mixer/server/src/main/scala/com/ExTwitter/home_mixer/model", "home-mixer/thrift/src/main/thrift:thrift-scala", - "src/java/com/twitter/common/text/tagger", - "src/java/com/twitter/common/text/token", - "src/java/com/twitter/common_internal/text", - "src/java/com/twitter/common_internal/text/version", - "src/java/com/twitter/search/common/util/text", - "src/thrift/com/twitter/search/common:features-scala", - "src/thrift/com/twitter/tweetypie:media-entity-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "src/java/com/ExTwitter/common/text/tagger", + "src/java/com/ExTwitter/common/text/token", + "src/java/com/ExTwitter/common_internal/text", + "src/java/com/ExTwitter/common_internal/text/version", + "src/java/com/ExTwitter/search/common/util/text", + "src/thrift/com/ExTwitter/search/common:features-scala", + "src/thrift/com/ExTwitter/tweetypie:media-entity-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", ], ) diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/FeatureExtractionHelper.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/FeatureExtractionHelper.scala index 07cbdebe4..0737d5fea 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/FeatureExtractionHelper.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/FeatureExtractionHelper.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.util.tweetypie.content +package com.ExTwitter.home_mixer.util.tweetypie.content -import com.twitter.home_mixer.model.ContentFeatures -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.home_mixer.model.ContentFeatures +import com.ExTwitter.tweetypie.{thriftscala => tp} object FeatureExtractionHelper { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetMediaFeaturesExtractor.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetMediaFeaturesExtractor.scala index 0a5a93a2e..ce653c3c5 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetMediaFeaturesExtractor.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetMediaFeaturesExtractor.scala @@ -1,10 +1,10 @@ -package com.twitter.home_mixer.util.tweetypie.content +package com.ExTwitter.home_mixer.util.tweetypie.content -import com.twitter.home_mixer.model.ContentFeatures -import com.twitter.mediaservices.commons.mediainformation.{thriftscala => mi} -import com.twitter.mediaservices.commons.tweetmedia.{thriftscala => tm} -import com.twitter.mediaservices.commons.{thriftscala => ms} -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.home_mixer.model.ContentFeatures +import com.ExTwitter.mediaservices.commons.mediainformation.{thriftscala => mi} +import com.ExTwitter.mediaservices.commons.tweetmedia.{thriftscala => tm} +import com.ExTwitter.mediaservices.commons.{thriftscala => ms} +import com.ExTwitter.tweetypie.{thriftscala => tp} import scala.collection.Map object TweetMediaFeaturesExtractor { diff --git a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetTextFeaturesExtractor.scala b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetTextFeaturesExtractor.scala index 0a403d98a..45fbf0ffd 100644 --- a/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetTextFeaturesExtractor.scala +++ b/home-mixer/server/src/main/scala/com/twitter/home_mixer/util/tweetypie/content/TweetTextFeaturesExtractor.scala @@ -1,7 +1,7 @@ -package com.twitter.home_mixer.util.tweetypie.content +package com.ExTwitter.home_mixer.util.tweetypie.content -import com.twitter.home_mixer.model.ContentFeatures -import com.twitter.tweetypie.{thriftscala => tp} +import com.ExTwitter.home_mixer.model.ContentFeatures +import com.ExTwitter.tweetypie.{thriftscala => tp} object TweetTextFeaturesExtractor { diff --git a/navi/README.md b/navi/README.md index 4e7d325f7..8c69e59e0 100644 --- a/navi/README.md +++ b/navi/README.md @@ -1,6 +1,6 @@ # Navi: High-Performance Machine Learning Serving Server in Rust -Navi is a high-performance, versatile machine learning serving server implemented in Rust and tailored for production usage. It's designed to efficiently serve within the Twitter tech stack, offering top-notch performance while focusing on core features. +Navi is a high-performance, versatile machine learning serving server implemented in Rust and tailored for production usage. It's designed to efficiently serve within the ExTwitter tech stack, offering top-notch performance while focusing on core features. ## Key Features @@ -12,14 +12,14 @@ Navi is a high-performance, versatile machine learning serving server implemente While Navi's features may not be as comprehensive as its open-source counterparts, its performance-first mindset makes it highly efficient. - Navi for TensorFlow is currently the most feature-complete, supporting multiple input tensors of different types (float, int, string, etc.). -- Navi for Onnx primarily supports one input tensor of type string, used in Twitter's home recommendation with a proprietary BatchPredictRequest format. +- Navi for Onnx primarily supports one input tensor of type string, used in ExTwitter's home recommendation with a proprietary BatchPredictRequest format. - Navi for Pytorch is compilable and runnable but not yet production-ready in terms of performance and stability. ## Directory Structure - `navi`: The main code repository for Navi -- `dr_transform`: Twitter-specific converter that converts BatchPredictionRequest Thrift to ndarray -- `segdense`: Twitter-specific config to specify how to retrieve feature values from BatchPredictionRequest +- `dr_transform`: ExTwitter-specific converter that converts BatchPredictionRequest Thrift to ndarray +- `segdense`: ExTwitter-specific config to specify how to retrieve feature values from BatchPredictionRequest - `thrift_bpr_adapter`: generated thrift code for BatchPredictionRequest ## Content diff --git a/navi/segdense/src/util.rs b/navi/segdense/src/util.rs index 116725189..c52e36bae 100644 --- a/navi/segdense/src/util.rs +++ b/navi/segdense/src/util.rs @@ -128,7 +128,7 @@ pub fn to_feature_info(input_feature: &seg_dense::InputFeature) -> Option 5, _ => match input_feature.feature_type { - // feature_type : src/thrift/com/twitter/ml/api/data.thrift + // feature_type : src/thrift/com/ExTwitter/ml/api/data.thrift // BINARY = 1, CONTINUOUS = 2, DISCRETE = 3, // Map to slots in [Continious, Binary, Discrete, ..] 1 => 1, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/AccountRecommendationsMixerCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/AccountRecommendationsMixerCandidateSource.scala index 72698e1c7..20d555a7f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/AccountRecommendationsMixerCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/AccountRecommendationsMixerCandidateSource.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.candidate_source.account_recommendations_mixer +package com.ExTwitter.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.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.account_recommendations_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/BUILD index d5eaef320..cd13ca076 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer/BUILD @@ -6,17 +6,17 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "account-recommendations-mixer/thrift/src/main/thrift:thrift-scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/pipeline_failure", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/pipeline_failure", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", "stitch/stitch-core", ], exports = [ "account-recommendations-mixer/thrift/src/main/thrift:thrift-scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdStratoCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdStratoCandidateSource.scala index 0509738a0..e14cbaa0c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdStratoCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdStratoCandidateSource.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.candidate_source.ads +package com.ExTwitter.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.strato.StratoKeyFetcherSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.ads.admixer.MakeAdRequestClientColumn +import com.ExTwitter.adserver.thriftscala.AdImpression +import com.ExTwitter.adserver.thriftscala.AdRequestParams +import com.ExTwitter.adserver.thriftscala.AdRequestResponse +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.ads.admixer.MakeAdRequestClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdThriftCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdThriftCandidateSource.scala index 08df2eb0d..1e62698e2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdThriftCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsProdThriftCandidateSource.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.candidate_source.ads +package com.ExTwitter.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.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.adserver.thriftscala.AdImpression +import com.ExTwitter.adserver.thriftscala.AdRequestParams +import com.ExTwitter.adserver.thriftscala.NewAdServer +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsStagingCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsStagingCandidateSource.scala index d719f7608..d979d3359 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsStagingCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/AdsStagingCandidateSource.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.candidate_source.ads +package com.ExTwitter.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.strato.StratoKeyFetcherSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.ads.admixer.MakeAdRequestStagingClientColumn +import com.ExTwitter.adserver.thriftscala.AdImpression +import com.ExTwitter.adserver.thriftscala.AdRequestParams +import com.ExTwitter.adserver.thriftscala.AdRequestResponse +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.ads.admixer.MakeAdRequestStagingClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/BUILD index f3b49ec31..5f94268c0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads/BUILD @@ -5,14 +5,14 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", "strato/config/columns/ads/admixer:admixer-strato-client", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnCandidateSource.scala index 53bbb8d4f..34036e7cb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnCandidateSource.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.candidate_source.ann +package com.ExTwitter.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 -import com.twitter.util.{Time => _, _} -import com.twitter.finagle.util.DefaultTimer +import com.ExTwitter.ann.common._ +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.{Time => _, _} +import com.ExTwitter.finagle.util.DefaultTimer /** * @param annQueryableById Ann Queryable by Id client that returns nearest neighbors for a sequence of queries diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnIdQuery.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnIdQuery.scala index b262f6ac4..99f54cf5b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnIdQuery.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/AnnIdQuery.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.candidate_source.ann +package com.ExTwitter.product_mixer.component_library.candidate_source.ann -import com.twitter.ann.common._ +import com.ExTwitter.ann.common._ /** * A [[AnnIdQuery]] is a query class which defines the ann entities with runtime params and number of neighbors requested diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/BUILD.bazel index 46b1efdbb..2204f5010 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ann/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( 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/common:ann-common-scala", - "product-mixer/component-library/src/main/thrift/com/twitter/product_mixer/component_library:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "ann/src/main/scala/com/ExTwitter/ann/common", + "ann/src/main/scala/com/ExTwitter/ann/hnsw", + "ann/src/main/thrift/com/ExTwitter/ann/common:ann-common-scala", + "product-mixer/component-library/src/main/thrift/com/ExTwitter/product_mixer/component_library:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "servo/manhattan/src/main/scala", "servo/repo/src/main/scala", "servo/util/src/main/scala", diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/BUILD.bazel index 8b93dea9f..a082f824c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( 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/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/periscope/audio_space:audio_space-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/periscope/audio_space:audio_space-scala", "strato/config/columns/periscope:periscope-strato-client", - "strato/config/src/thrift/com/twitter/strato/graphql:graphql-scala", - "strato/src/main/scala/com/twitter/strato/client", + "strato/config/src/thrift/com/ExTwitter/strato/graphql:graphql-scala", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/CreatedSpacesCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/CreatedSpacesCandidateSource.scala index c5b820065..a5fffb63a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/CreatedSpacesCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/audiospace/CreatedSpacesCandidateSource.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.candidate_source.audiospace +package com.ExTwitter.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.product_mixer.component_library.model.cursor.PreviousCursorFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherWithSourceFeaturesSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.periscope.CreatedSpacesSliceOnUserClientColumn +import com.ExTwitter.periscope.audio_space.thriftscala.CreatedSpacesView +import com.ExTwitter.periscope.audio_space.thriftscala.SpaceSlice +import com.ExTwitter.product_mixer.component_library.model.cursor.NextCursorFeature +import com.ExTwitter.product_mixer.component_library.model.cursor.PreviousCursorFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherWithSourceFeaturesSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.periscope.CreatedSpacesSliceOnUserClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/BUILD index 0f5552bb5..7546be23d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/BUILD @@ -4,10 +4,10 @@ scala_library( 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/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", "strato/config/columns/consumer-identity/business-profiles:business-profiles-strato-client", - "strato/config/src/thrift/com/twitter/strato/graphql:graphql-scala", - "strato/src/main/scala/com/twitter/strato/client", + "strato/config/src/thrift/com/ExTwitter/strato/graphql:graphql-scala", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/TeamMembersCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/TeamMembersCandidateSource.scala index c728194ab..679cd8456 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/TeamMembersCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/business_profiles/TeamMembersCandidateSource.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.candidate_source.business_profiles +package com.ExTwitter.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.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherWithSourceFeaturesSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.consumer_identity.business_profiles.BusinessProfileTeamMembersOnUserClientColumn -import com.twitter.strato.generated.client.consumer_identity.business_profiles.BusinessProfileTeamMembersOnUserClientColumn.{ +import com.ExTwitter.product_mixer.component_library.model.cursor.NextCursorFeature +import com.ExTwitter.product_mixer.component_library.model.cursor.PreviousCursorFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherWithSourceFeaturesSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.consumer_identity.business_profiles.BusinessProfileTeamMembersOnUserClientColumn +import com.ExTwitter.strato.generated.client.consumer_identity.business_profiles.BusinessProfileTeamMembersOnUserClientColumn.{ Value => TeamMembersSlice } -import com.twitter.strato.generated.client.consumer_identity.business_profiles.BusinessProfileTeamMembersOnUserClientColumn.{ +import com.ExTwitter.strato.generated.client.consumer_identity.business_profiles.BusinessProfileTeamMembersOnUserClientColumn.{ View => TeamMembersView } import javax.inject.Inject diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/BUILD.bazel index 1eef70e77..3869a93a8 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/BUILD.bazel @@ -5,8 +5,8 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "cr-mixer/thrift/src/main/thrift:thrift-scala", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerFrsBasedTweetRecommendationsCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerFrsBasedTweetRecommendationsCandidateSource.scala index c1e79f238..0b7634de1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerFrsBasedTweetRecommendationsCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerFrsBasedTweetRecommendationsCandidateSource.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.candidate_source.cr_mixer +package com.ExTwitter.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.twitter.stitch.Stitch +import com.ExTwitter.cr_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerTweetRecommendationsCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerTweetRecommendationsCandidateSource.scala index a0cbd666c..e35f1beb9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerTweetRecommendationsCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/cr_mixer/CrMixerTweetRecommendationsCandidateSource.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.candidate_source.cr_mixer +package com.ExTwitter.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.twitter.stitch.Stitch +import com.ExTwitter.cr_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/BUILD.bazel index 638f549d3..d770b7861 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/BUILD.bazel @@ -4,9 +4,9 @@ scala_library( 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/functional_component/candidate_source", - "src/thrift/com/twitter/search:earlybird-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/search:earlybird-scala", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/EarlybirdTweetCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/EarlybirdTweetCandidateSource.scala index 9049849be..b4db08fcc 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/EarlybirdTweetCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/earlybird/EarlybirdTweetCandidateSource.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.candidate_source.earlybird +package com.ExTwitter.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.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.inject.Logging +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/BUILD.bazel index 6633be199..816fc20bd 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/BUILD.bazel @@ -6,7 +6,7 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "explore/explore-ranker/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/ExploreRankerCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/ExploreRankerCandidateSource.scala index bd57b785a..85686757c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/ExploreRankerCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/explore_ranker/ExploreRankerCandidateSource.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.candidate_source.explore_ranker +package com.ExTwitter.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 -import com.twitter.stitch.Stitch +import com.ExTwitter.explore_ranker.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/BUILD index b456956db..46b630d48 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/BUILD @@ -5,13 +5,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-core", ], exports = [ "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/PromptCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/PromptCandidateSource.scala index 48891d7ec..712f541d8 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/PromptCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline/PromptCandidateSource.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline +package com.ExTwitter.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.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.inject.Logging +import com.ExTwitter.onboarding.injections.{thriftscala => injectionsthrift} +import com.ExTwitter.onboarding.task.service.{thriftscala => servicethrift} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch import javax.inject.Inject import javax.inject.Singleton /** * Returns a list of prompts to insert into a user's timeline (inline prompt, cover modals, etc) - * from go/flip (the prompting platform for Twitter). + * from go/flip (the prompting platform for ExTwitter). */ @Singleton class PromptCandidateSource @Inject() (taskService: servicethrift.TaskService.MethodPerEndpoint) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/BUILD.bazel index c6bcf152a..57b910a69 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/BUILD.bazel @@ -5,12 +5,12 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/hermit:hermit-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/hermit:hermit-scala", "strato/config/columns/onboarding:onboarding-strato-client", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/hermit:hermit-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/hermit:hermit-scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/UsersSimilarToMeCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/UsersSimilarToMeCandidateSource.scala index 9bbfe234a..5c533c858 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/UsersSimilarToMeCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/hermit/UsersSimilarToMeCandidateSource.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.candidate_source.hermit +package com.ExTwitter.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_source.strato.StratoKeyViewFetcherSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.onboarding.HermitRecommendUsersClientColumn +import com.ExTwitter.hermit.thriftscala.RecommendationRequest +import com.ExTwitter.hermit.thriftscala.RecommendationResponse +import com.ExTwitter.hermit.thriftscala.RelatedUser +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.onboarding.HermitRecommendUsersClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/BUILD index da4c6d794..f4a92cc47 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/BUILD @@ -5,10 +5,10 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", "interests-service/thrift/src/main/thrift:thrift-scala", "interests_discovery/thrift/src/main/thrift:service-thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-core", ], exports = [ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/RelatedTopicsCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/RelatedTopicsCandidateSource.scala index 30465089c..3a083afb9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/RelatedTopicsCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/interest_discovery/RelatedTopicsCandidateSource.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.candidate_source.interest_discovery +package com.ExTwitter.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_source.CandidateSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch +import com.ExTwitter.inject.Logging +import com.ExTwitter.interests_discovery.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch /** * Generate a list of related topics results from IDS getRelatedTopics (thrift) endpoint. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/BUILD.bazel index c62b67377..115e5a698 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/BUILD.bazel @@ -5,7 +5,7 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "interests_discovery/thrift/src/main/thrift:service-thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", "strato/config/columns/recommendations/interests_discovery/recommendations_mh:recommendations_mh-strato-client", ], exports = [ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/OrganicPopGeoListsCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/OrganicPopGeoListsCandidateSource.scala index a8b6f214c..8fc85a32f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/OrganicPopGeoListsCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/lists/OrganicPopGeoListsCandidateSource.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.candidate_source.lists +package com.ExTwitter.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.identifier.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.recommendations.interests_discovery.recommendations_mh.OrganicPopgeoListsClientColumn +import com.ExTwitter.product_mixer.component_library.model.candidate.ExTwitterListCandidate +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.recommendations.interests_discovery.recommendations_mh.OrganicPopgeoListsClientColumn import javax.inject.Inject import javax.inject.Singleton @@ -14,7 +14,7 @@ class OrganicPopGeoListsCandidateSource @Inject() ( extends StratoKeyFetcherSource[ OrganicPopgeoListsClientColumn.Key, OrganicPopgeoListsClientColumn.Value, - TwitterListCandidate + ExTwitterListCandidate ] { override val identifier: CandidateSourceIdentifier = CandidateSourceIdentifier( @@ -29,10 +29,10 @@ class OrganicPopGeoListsCandidateSource @Inject() ( override def stratoResultTransformer( stratoResult: OrganicPopgeoListsClientColumn.Value - ): Seq[TwitterListCandidate] = { + ): Seq[ExTwitterListCandidate] = { stratoResult.recommendedListsByAlgo.flatMap { topLists => topLists.lists.map { list => - TwitterListCandidate(list.listId) + ExTwitterListCandidate(list.listId) } } } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/BUILD index a54812ce9..7d3ffdf8b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/BUILD @@ -5,19 +5,19 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", "people-discovery/api/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/pipeline_failure", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", - "src/thrift/com/twitter/hermit:hermit-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/pipeline_failure", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", + "src/thrift/com/ExTwitter/hermit:hermit-scala", "stitch/stitch-core", ], exports = [ - "finatra/inject/inject-core/src/main/scala/com/twitter/inject", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", "people-discovery/api/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/PeopleDiscoveryCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/PeopleDiscoveryCandidateSource.scala index 0b3dacccb..e71970a44 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/PeopleDiscoveryCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery/PeopleDiscoveryCandidateSource.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.candidate_source.people_discovery +package com.ExTwitter.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.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult -import com.twitter.stitch.Stitch -import com.twitter.util.logging.Logging +import com.ExTwitter.peoplediscovery.api.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/BUILD.bazel index cb69d82ec..061c6142b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/BUILD.bazel @@ -6,16 +6,16 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", "strato/config/columns/onboarding/follow-recommendations-service:follow-recommendations-service-strato-client", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/UserFollowRecommendationsCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/UserFollowRecommendationsCandidateSource.scala index dcfed2ec9..d4c60787f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/UserFollowRecommendationsCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/recommendations/UserFollowRecommendationsCandidateSource.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.candidate_source.recommendations +package com.ExTwitter.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.CandidateSourceIdentifier -import com.twitter.strato.client.Fetcher -import com.twitter.strato.generated.client.onboarding.follow_recommendations_service.GetRecommendationsClientColumn +import com.ExTwitter.follow_recommendations.{thriftscala => fr} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.onboarding.follow_recommendations_service.GetRecommendationsClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/BUILD.bazel index dbc8cba53..3db0eb61b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/BUILD.bazel @@ -5,18 +5,18 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", - "socialgraph/server/src/main/scala/com/twitter/socialgraph/util", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", + "socialgraph/server/src/main/scala/com/ExTwitter/socialgraph/util", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCandidateSource.scala index b3cf838f2..517114ac1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCandidateSource.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.candidate_source.social_graph +package com.ExTwitter.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 -import com.twitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSource -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.socialgraph.thriftscala -import com.twitter.socialgraph.thriftscala.IdsRequest -import com.twitter.socialgraph.thriftscala.IdsResult -import com.twitter.socialgraph.util.ByteBufferUtil -import com.twitter.strato.client.Fetcher +import com.ExTwitter.product_mixer.component_library.model.candidate.CursorType +import com.ExTwitter.product_mixer.component_library.model.candidate.NextCursor +import com.ExTwitter.product_mixer.component_library.model.candidate.PreviousCursor +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.socialgraph.thriftscala +import com.ExTwitter.socialgraph.thriftscala.IdsRequest +import com.ExTwitter.socialgraph.thriftscala.IdsResult +import com.ExTwitter.socialgraph.util.ByteBufferUtil +import com.ExTwitter.strato.client.Fetcher import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCursorConstants.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCursorConstants.scala index 8f187d0cb..82172567d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCursorConstants.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/social_graph/SocialgraphCursorConstants.scala @@ -1,4 +1,4 @@ -package com.twitter.product_mixer.component_library.candidate_source.social_graph +package com.ExTwitter.product_mixer.component_library.candidate_source.social_graph object SocialgraphCursorConstants { val EndCursor: Long = 0L diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/BUILD.bazel index c83297fd8..a33638fdb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( 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/functional_component/candidate_source", - "src/thrift/com/twitter/timelineranker:thrift-scala", - "src/thrift/com/twitter/timelineranker/server/model:thrift-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", + "src/thrift/com/ExTwitter/timelineranker/server/model:thrift-scala", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerInNetworkCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerInNetworkCandidateSource.scala index 9f1262e53..b5c2d878c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerInNetworkCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerInNetworkCandidateSource.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.candidate_source.timeline_ranker +package com.ExTwitter.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.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelineranker.{thriftscala => t} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelineranker.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerRecapCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerRecapCandidateSource.scala index 7cd36fb92..fb67d3e9e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerRecapCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerRecapCandidateSource.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.candidate_source.timeline_ranker +package com.ExTwitter.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.timelineranker.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelineranker.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerUtegCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerUtegCandidateSource.scala index bee6fe128..30089c613 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerUtegCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_ranker/TimelineRankerUtegCandidateSource.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.candidate_source.timeline_ranker +package com.ExTwitter.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.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult -import com.twitter.stitch.Stitch -import com.twitter.timelineranker.{thriftscala => t} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelineranker.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/BUILD.bazel index e4435bc0a..7a537ace7 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/BUILD.bazel @@ -4,13 +4,13 @@ scala_library( 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/functional_component/candidate_source", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/suggests/features:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/suggests/logging:thrift-scala", + "finatra/inject/inject-core/src/main/scala/com/ExTwitter/inject", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/suggests/features:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/suggests/logging:thrift-scala", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/TimelineScorerCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/TimelineScorerCandidateSource.scala index b2d6f3912..ec02f163d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/TimelineScorerCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_scorer/TimelineScorerCandidateSource.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.candidate_source.timeline_scorer +package com.ExTwitter.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.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelinescorer.common.scoredtweetcandidate.thriftscala.v1 -import com.twitter.timelinescorer.common.scoredtweetcandidate.thriftscala.v1.Ancestor -import com.twitter.timelinescorer.common.scoredtweetcandidate.{thriftscala => ct} -import com.twitter.timelinescorer.{thriftscala => t} -import com.twitter.timelineservice.suggests.logging.candidate_tweet_source_id.thriftscala.CandidateTweetSourceId +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelinescorer.common.scoredtweetcandidate.thriftscala.v1 +import com.ExTwitter.timelinescorer.common.scoredtweetcandidate.thriftscala.v1.Ancestor +import com.ExTwitter.timelinescorer.common.scoredtweetcandidate.{thriftscala => ct} +import com.ExTwitter.timelinescorer.{thriftscala => t} +import com.ExTwitter.timelineservice.suggests.logging.candidate_tweet_source_id.thriftscala.CandidateTweetSourceId import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/BUILD index f9453b9a1..bd4d7df05 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/BUILD @@ -5,14 +5,14 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", "stitch/stitch-timelineservice/src/main/scala", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source", "stitch/stitch-timelineservice/src/main/scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/TimelineServiceTweetCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/TimelineServiceTweetCandidateSource.scala index 053c16a3e..aac2422d3 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/TimelineServiceTweetCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timeline_service/TimelineServiceTweetCandidateSource.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.candidate_source.timeline_service +package com.ExTwitter.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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.stitch.timelineservice.TimelineService -import com.twitter.timelineservice.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.cursor.NextCursorFeature +import com.ExTwitter.product_mixer.component_library.model.cursor.PreviousCursorFeature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.timelineservice.TimelineService +import com.ExTwitter.timelineservice.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/BUILD index 60d486676..d4141a505 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/BUILD @@ -5,12 +5,12 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "src/thrift/com/twitter/timelines/impression:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "src/thrift/com/ExTwitter/timelines/impression:thrift-scala", "strato/config/columns/timelines/impression-store:impression-store-strato-client", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", "strato/config/columns/timelines/impression-store:impression-store-strato-client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/TimelinesImpressionStoreCandidateSourceV2.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/TimelinesImpressionStoreCandidateSourceV2.scala index 3c4b615bb..767b22d22 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/TimelinesImpressionStoreCandidateSourceV2.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/timelines_impression_store/TimelinesImpressionStoreCandidateSourceV2.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.candidate_source.timelines_impression_store +package com.ExTwitter.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.client.Fetcher -import com.twitter.strato.generated.client.timelines.impression_store.TweetImpressionStoreManhattanV2OnUserClientColumn -import com.twitter.timelines.impression.thriftscala.TweetImpressionsEntries -import com.twitter.timelines.impression.{thriftscala => t} +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyFetcherSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.timelines.impression_store.TweetImpressionStoreManhattanV2OnUserClientColumn +import com.ExTwitter.timelines.impression.thriftscala.TweetImpressionsEntries +import com.ExTwitter.timelines.impression.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/BUILD index d145edc44..2542c8f3d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/BUILD @@ -4,8 +4,8 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", "strato/config/columns/interests:interests-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/FollowedTopicsCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/FollowedTopicsCandidateSource.scala index 6b46e1298..9c379582a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/FollowedTopicsCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/topics/FollowedTopicsCandidateSource.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.candidate_source.topics +package com.ExTwitter.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 -import com.twitter.strato.generated.client.interests.FollowedTopicsGetterClientColumn +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.strato.StratoKeyViewFetcherSeqSource +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.strato.client.Fetcher +import com.ExTwitter.strato.generated.client.interests.FollowedTopicsGetterClientColumn import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/BUILD.bazel index acfc37015..450cd185e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/BUILD.bazel @@ -4,22 +4,22 @@ scala_library( 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-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/selector", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/selector", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", "strato/config/columns/tweetconvosvc:tweetconvosvc-strato-client", - "tweetconvosvc/common/src/main/thrift/com/twitter/tweetconvosvc/tweet_ancestor:thrift-scala", + "tweetconvosvc/common/src/main/thrift/com/ExTwitter/tweetconvosvc/tweet_ancestor:thrift-scala", "tweetconvosvc/thrift/src/main/thrift:thrift-scala", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", "strato/config/columns/tweetconvosvc:tweetconvosvc-strato-client", "tweetconvosvc/thrift/src/main/thrift:thrift-scala", ], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceCandidateSource.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceCandidateSource.scala index 889a0164d..ac6f4c5ca 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceCandidateSource.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceCandidateSource.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc +package com.ExTwitter.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_component.candidate_source.CandidatesWithSourceFeatures -import com.twitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier -import com.twitter.stitch.Stitch -import com.twitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} -import com.twitter.tweetconvosvc.{thriftscala => tcs} -import com.twitter.util.Return -import com.twitter.util.Throw +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSourceWithExtractedFeatures +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidatesWithSourceFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidateSourceIdentifier +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.tweetconvosvc.tweet_ancestor.{thriftscala => ta} +import com.ExTwitter.tweetconvosvc.{thriftscala => tcs} +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceResponseFeatureTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceResponseFeatureTransformer.scala index 59a0c725f..5eb242735 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceResponseFeatureTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/ConversationServiceResponseFeatureTransformer.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc +package com.ExTwitter.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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier -import com.twitter.timelineservice.suggests.thriftscala.SuggestType +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.timelineservice.suggests.thriftscala.SuggestType object AuthorIdFeature extends Feature[TweetCandidate, Option[Long]] object AncestorIdsFeature extends Feature[TweetCandidate, Seq[Long]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/DropMaxConversationModuleItemCandidates.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/DropMaxConversationModuleItemCandidates.scala index 426adb98c..063fdf51d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/DropMaxConversationModuleItemCandidates.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/tweetconvosvc/DropMaxConversationModuleItemCandidates.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.candidate_source.tweetconvosvc +package com.ExTwitter.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.SelectorResult -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.selector.Selector +import com.ExTwitter.product_mixer.core.functional_component.selector.SelectorResult +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.model.common.presentation.ModuleCandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Takes a conversation module item and truncates it to be at most the focal tweet, the focal tweet's diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/BUILD index 2ed1a6316..dd0befd49 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/BUILD @@ -5,19 +5,19 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/slice/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/slice/builder", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/slice/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/slice/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/slice/builder", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/slice/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/SliceItemCandidateDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/SliceItemCandidateDecorator.scala index abe128926..d8ea26a54 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/SliceItemCandidateDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/SliceItemCandidateDecorator.scala @@ -1,22 +1,22 @@ -package com.twitter.product_mixer.component_library.decorator.slice +package com.ExTwitter.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 -import com.twitter.product_mixer.core.model.common.identifier.DecoratorIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.functional_component.decorator.slice.builder.CandidateSliceItemBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.CursorCandidate +import com.ExTwitter.product_mixer.component_library.model.presentation.slice.SliceItemPresentation +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.DecoratorIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.CursorItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.functional_component.decorator.slice.builder.CandidateSliceItemBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.stitch.Stitch /** * Adds a [[Decoration]] for all `candidates` that are [[CursorCandidate]]s * * @note Only [[CursorCandidate]]s get decorated in [[SliceItemCandidateDecorator]] - * because the [[com.twitter.product_mixer.component_library.premarshaller.slice.SliceDomainMarshaller]] + * because the [[com.ExTwitter.product_mixer.component_library.premarshaller.slice.SliceDomainMarshaller]] * handles the undecorated non-[[CursorCandidate]] `candidates` directly. */ case class SliceItemCandidateDecorator[Query <: PipelineQuery, Candidate <: UniversalNoun[Any]]( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/BUILD index bbbde90f6..fcdb6ad54 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/BUILD @@ -5,13 +5,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/slice/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/slice/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/slice/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/slice/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/CursorCandidateSliceItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/CursorCandidateSliceItemBuilder.scala index 307911c85..5fa9b30c7 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/CursorCandidateSliceItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/slice/builder/CursorCandidateSliceItemBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.decorator.slice.builder +package com.ExTwitter.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.{ +import com.ExTwitter.product_mixer.component_library.model.candidate.CursorCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.{ NextCursor => CursorCandidateNextCursor } -import com.twitter.product_mixer.component_library.model.candidate.{ +import com.ExTwitter.product_mixer.component_library.model.candidate.{ PreviousCursor => CursorCandidatePreviousCursor } -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorItem -import com.twitter.product_mixer.core.model.marshalling.response.slice.NextCursor -import com.twitter.product_mixer.core.model.marshalling.response.slice.PreviousCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.slice.builder.CandidateSliceItemBuilder +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.CursorItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.NextCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.PreviousCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.slice.builder.CandidateSliceItemBuilder case class CursorCandidateSliceItemBuilder() extends CandidateSliceItemBuilder[PipelineQuery, CursorCandidate, CursorItem] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/BUILD index ea3b7b298..7dcd018bf 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/BUILD @@ -8,79 +8,79 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ ":richtext", - "3rdparty/jvm/com/twitter/bijection:json", - "3rdparty/jvm/com/twitter/bijection:scrooge", - "explore/explore-mixer/server/src/main/scala/com/twitter/explore_mixer/model/request", - "interests-mixer/server/src/main/scala/com/twitter/interests_mixer/model/request", + "3rdparty/jvm/com/ExTwitter/bijection:json", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "explore/explore-mixer/server/src/main/scala/com/ExTwitter/explore_mixer/model/request", + "interests-mixer/server/src/main/scala/com/ExTwitter/interests_mixer/model/request", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/cover", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/icon", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/metadata", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/operation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/timeline_module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/ads/adserver:ad_metadata_container-scala", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", - "src/thrift/com/twitter/hermit:hermit-scala", - "src/thrift/com/twitter/suggests/controller_data:controller_data-scala", - "src/thrift/com/twitter/timelines/service:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/people_discovery", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/suggestion", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/trends_events", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/cover", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/icon", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/metadata", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/operation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/timeline_module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/ads/adserver:ad_metadata_container-scala", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", + "src/thrift/com/ExTwitter/hermit:hermit-scala", + "src/thrift/com/ExTwitter/suggests/controller_data:controller_data-scala", + "src/thrift/com/ExTwitter/timelines/service:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", "stringcenter/client", "stringcenter/client/src/main/java", - "stringcenter/client/src/main/scala/com/twitter/stringcenter/client", - "timelines/src/main/scala/com/twitter/timelines/util", - "trends/trending_content/src/main/scala/com/twitter/trends/trending_content/util:compacting-number-localizer", - "tweetconvosvc/common/src/main/thrift/com/twitter/tweetconvosvc/tweet_ancestor:thrift-scala", - "twitter-text/lib/java/src/main/java/com/twitter/twittertext", + "stringcenter/client/src/main/scala/com/ExTwitter/stringcenter/client", + "timelines/src/main/scala/com/ExTwitter/timelines/util", + "trends/trending_content/src/main/scala/com/ExTwitter/trends/trending_content/util:compacting-number-localizer", + "tweetconvosvc/common/src/main/thrift/com/ExTwitter/tweetconvosvc/tweet_ancestor:thrift-scala", + "ExTwitter-text/lib/java/src/main/java/com/ExTwitter/ExTwittertext", ], exports = [ ":richtext", - "3rdparty/jvm/com/twitter/bijection:json", - "3rdparty/jvm/com/twitter/bijection:scrooge", - "explore/explore-mixer/server/src/main/scala/com/twitter/explore_mixer/model/request", - "interests-mixer/server/src/main/scala/com/twitter/interests_mixer/model/request", + "3rdparty/jvm/com/ExTwitter/bijection:json", + "3rdparty/jvm/com/ExTwitter/bijection:scrooge", + "explore/explore-mixer/server/src/main/scala/com/ExTwitter/explore_mixer/model/request", + "interests-mixer/server/src/main/scala/com/ExTwitter/interests_mixer/model/request", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/cover", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/icon", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/metadata", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/operation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/timeline_module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/ads/adserver:ad_metadata_container-scala", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", - "src/thrift/com/twitter/suggests/controller_data:controller_data-scala", - "src/thrift/com/twitter/timelines/service:thrift-scala", - "src/thrift/com/twitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", - "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/suggestion", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/presentation/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/cover", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/icon", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/metadata", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/operation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/timeline_module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/ads/adserver:ad_metadata_container-scala", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", + "src/thrift/com/ExTwitter/suggests/controller_data:controller_data-scala", + "src/thrift/com/ExTwitter/timelines/service:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/common/scoredtweetcandidate:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice/server/internal:thrift-scala", "stringcenter/client", "stringcenter/client/src/main/java", - "stringcenter/client/src/main/scala/com/twitter/stringcenter/client", - "timelines/src/main/scala/com/twitter/timelines/util", - "tweetconvosvc/common/src/main/thrift/com/twitter/tweetconvosvc/tweet_ancestor:thrift-scala", - "twitter-text/lib/java/src/main/java/com/twitter/twittertext", + "stringcenter/client/src/main/scala/com/ExTwitter/stringcenter/client", + "timelines/src/main/scala/com/ExTwitter/timelines/util", + "tweetconvosvc/common/src/main/thrift/com/ExTwitter/tweetconvosvc/tweet_ancestor:thrift-scala", + "ExTwitter-text/lib/java/src/main/java/com/ExTwitter/ExTwittertext", ], ) @@ -92,17 +92,17 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/featuremap", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/metadata", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/richtext", - "twitter-text/lib/java/src/main/java/com/twitter/twittertext", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/featuremap", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/metadata", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/richtext", + "ExTwitter-text/lib/java/src/main/java/com/ExTwitter/ExTwittertext", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature/featuremap", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/decorator/urt/builder", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/metadata", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/richtext", - "twitter-text/lib/java/src/main/java/com/twitter/twittertext", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature/featuremap", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/decorator/urt/builder", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/metadata", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/richtext", + "ExTwitter-text/lib/java/src/main/java/com/ExTwitter/ExTwittertext", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtConversationItemCandidateDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtConversationItemCandidateDecorator.scala index d0a517b2d..6f5b52bd9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtConversationItemCandidateDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtConversationItemCandidateDecorator.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt +package com.ExTwitter.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.model.presentation.urt.ConversationModuleItem -import com.twitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.DecoratorIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.ModuleItemTreeDisplay -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.ConversationModuleItem +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.DecoratorIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ModuleItemTreeDisplay +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch case class UrtConversationItemCandidateDecorator[ Query <: PipelineQuery, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemCandidateDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemCandidateDecorator.scala index 81398cd3d..fff536cb9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemCandidateDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemCandidateDecorator.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.decorator.urt +package com.ExTwitter.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.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.DecoratorIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.stitch.Stitch /** * Decorator that will apply the provided [[CandidateUrtEntryBuilder]] to each candidate independently to make a [[TimelineItem]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemInModuleDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemInModuleDecorator.scala index 928b506b9..04d2d04de 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemInModuleDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtItemInModuleDecorator.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt +package com.ExTwitter.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.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.DecoratorIdentifier -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.DecoratorIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.stitch.Stitch /** * Decorator that will apply the provided [[urtItemCandidateDecorator]] to all the `candidates` and apply diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtMultipleModulesDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtMultipleModulesDecorator.scala index 3c13056b3..d50a048fa 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtMultipleModulesDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/UrtMultipleModulesDecorator.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.decorator.urt +package com.ExTwitter.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.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.DecoratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.stitch.Stitch -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleIdGeneration -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.AutomaticUniqueModuleId -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtItemPresentation +import com.ExTwitter.product_mixer.component_library.model.presentation.urt.UrtModulePresentation +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.DecoratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleIdGeneration +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.AutomaticUniqueModuleId +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder /** * Given a [[CandidateWithFeatures]] return the corresponding group with which it should be diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/contextual_ref/ContextualTweetRefBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/contextual_ref/ContextualTweetRefBuilder.scala index 0dd1234fc..ae078a163 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/contextual_ref/ContextualTweetRefBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/contextual_ref/ContextualTweetRefBuilder.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref +package com.ExTwitter.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.model.marshalling.response.urt.contextual_ref.TweetHydrationContext +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.ContextualTweetRef +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.contextual_ref.TweetHydrationContext case class ContextualTweetRefBuilder[-Candidate <: BaseTweetCandidate]( tweetHydrationContext: TweetHydrationContext) { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/conversations/ConversationModuleMetadataBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/conversations/ConversationModuleMetadataBuilder.scala index fdb5c4e48..c9b5e7c91 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/conversations/ConversationModuleMetadataBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/conversations/ConversationModuleMetadataBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.conversations +package com.ExTwitter.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_module.BaseModuleMetadataBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleConversationMetadata -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleMetadata -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleConversationMetadata +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleMetadata +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class ConversationModuleMetadataBuilder[ Query <: PipelineQuery, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptCandidateUrtItemBuilder.scala index 2387271da..b0ad5856d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptCandidateUrtItemBuilder.scala @@ -1,31 +1,31 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline +package com.ExTwitter.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.flexible_injection_pipeline.OnboardingInjectionConversions._ -import com.twitter.product_mixer.component_library.model.candidate.BasePromptCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptCarouselTileFeature -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptInjectionsFeature -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptOffsetInModuleFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverFullCoverDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverHalfCoverDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.FullCover -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.FullCoverContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.HalfCover -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.HalfCoverContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.HeaderImagePromptMessageContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.InlinePromptMessageContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessagePromptItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.PromptItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.onboarding.injections.thriftscala.Injection +import com.ExTwitter.onboarding.injections.{thriftscala => onboardingthrift} +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.OnboardingInjectionConversions._ +import com.ExTwitter.product_mixer.component_library.model.candidate.BasePromptCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptCarouselTileFeature +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptInjectionsFeature +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptOffsetInModuleFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverFullCoverDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverHalfCoverDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.FullCover +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.FullCoverContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.HalfCover +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.HalfCoverContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.HeaderImagePromptMessageContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.InlinePromptMessageContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessagePromptItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.PromptItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object FlipPromptCandidateUrtItemBuilder { val FlipPromptClientEventInfoElement: String = "flip-prompt-message" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptModuleGrouping.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptModuleGrouping.scala index ab6d21057..42c58675a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptModuleGrouping.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptModuleGrouping.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline +package com.ExTwitter.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 -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptOffsetInModuleFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.GroupByKey +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptInjectionsFeature +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptOffsetInModuleFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object FlipPromptModuleGrouping extends GroupByKey[PipelineQuery, UniversalNoun[Any], Int] { override def apply( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptUrtModuleBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptUrtModuleBuilder.scala index 00383f6ce..65a88069d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptUrtModuleBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/FlipPromptUrtModuleBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline +package com.ExTwitter.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.timeline_module.AutomaticUniqueModuleId -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleIdGeneration -import com.twitter.product_mixer.component_library.model.candidate.BasePromptCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptInjectionsFeature -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Carousel -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.onboarding.injections.thriftscala.Injection +import com.ExTwitter.onboarding.injections.{thriftscala => onboardingthrift} +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.AutomaticUniqueModuleId +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleIdGeneration +import com.ExTwitter.product_mixer.component_library.model.candidate.BasePromptCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipPromptInjectionsFeature +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Carousel +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class FlipPromptUrtModuleBuilder[-Query <: PipelineQuery]( moduleIdGeneration: ModuleIdGeneration = AutomaticUniqueModuleId()) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/OnboardingInjectionConversions.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/OnboardingInjectionConversions.scala index 92c8d97d7..ca9e4bfee 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/OnboardingInjectionConversions.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/OnboardingInjectionConversions.scala @@ -1,66 +1,66 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline +package com.ExTwitter.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.core.model.marshalling.response.urt.cover.CoverBehaviorDismiss -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverBehaviorNavigate -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverCta -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverCtaBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverHalfCoverDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.CoverImage -import com.twitter.product_mixer.core.model.marshalling.response.urt.cover.HalfCoverDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon._ -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.FollowAllMessageActionType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.LargeUserFacepileDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageActionType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageImage -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepile -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Bounce -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.ButtonStyle -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.Default -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.Primary -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.Secondary -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.Text -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.Destructive -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.Neutral -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.DestructiveSecondary -import com.twitter.product_mixer.core.model.marshalling.response.urt.button.DestructiveText -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.DeepLink -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Dismiss -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.DismissInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ExternalUrl -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FollowGeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageAnimationType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageVariant -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FullWidth -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Icon -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.IconSmall -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.UrtEndpoint -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.UrtEndpointOptions -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Center -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Natural -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Plain -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextCashtag -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextHashtag -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextList -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextMention -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextUser -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong +import com.ExTwitter.onboarding.injections.{thriftscala => onboardingthrift} +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CenterCoverHalfCoverDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverBehaviorDismiss +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverBehaviorNavigate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverCta +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverCtaBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverHalfCoverDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.CoverImage +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.cover.HalfCoverDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon._ +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.FollowAllMessageActionType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.LargeUserFacepileDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageActionType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageImage +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepile +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Bounce +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.ButtonStyle +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.Default +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.Primary +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.Secondary +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.Text +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.Destructive +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.Neutral +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.DestructiveSecondary +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.button.DestructiveText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.DeepLink +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Dismiss +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.DismissInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ExternalUrl +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FollowGeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageAnimationType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageVariant +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FullWidth +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Icon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.IconSmall +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SocialContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.UrtEndpoint +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.UrtEndpointOptions +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Center +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Natural +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Plain +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextCashtag +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextHashtag +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextList +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextMention +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextUser +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong /*** * Helper class to convert onboarding thrift to product-mixer models @@ -172,7 +172,7 @@ object OnboardingInjectionConversions { } def convertRichText( - richText: com.twitter.onboarding.injections.thriftscala.RichText + richText: com.ExTwitter.onboarding.injections.thriftscala.RichText ): RichText = { val entities = richText.entities.map(entity => RichTextEntity( @@ -203,7 +203,7 @@ object OnboardingInjectionConversions { case onboardingthrift.ReferenceObject.Hashtag(hashtag) => RichTextHashtag(hashtag.text) case onboardingthrift.ReferenceObject.Cashtag(cashtag) => RichTextCashtag(cashtag.text) - case onboardingthrift.ReferenceObject.TwitterList(twList) => + case onboardingthrift.ReferenceObject.ExTwitterList(twList) => RichTextList(twList.id, twList.url) case onboardingthrift.ReferenceObject.Url(url) => RichTextHashtag(url.url) case onboardingthrift.ReferenceObject.UnknownUnionField(value) => diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/RelevancePromptConversions.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/RelevancePromptConversions.scala index 78e69ee3e..5ebc0a374 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/RelevancePromptConversions.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/RelevancePromptConversions.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline +package com.ExTwitter.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.marshalling.response.urt.item.prompt.Large -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.Normal -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback +import com.ExTwitter.onboarding.injections.{thriftscala => onboardingthrift} +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.Compact +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.Large +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.Normal +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback /*** * Helper class to convert Relevance Prompt related onboarding thrift to product-mixer models @@ -27,7 +27,7 @@ object RelevancePromptConversions { notRelevantFollowUp = None ) - // Based on com.twitter.timelinemixer.injection.model.candidate.OnboardingRelevancePromptDisplayType#fromThrift + // Based on com.ExTwitter.timelinemixer.injection.model.candidate.OnboardingRelevancePromptDisplayType#fromThrift def convertDisplayType( displayType: onboardingthrift.RelevancePromptDisplayType ): RelevancePromptDisplayType = @@ -40,7 +40,7 @@ object RelevancePromptConversions { throw new UnsupportedOperationException(s"Unknown display type: $value") } - // Based on com.twitter.timelinemixer.injection.model.injection.OnboardingRelevancePromptInjection#buildConfirmation + // Based on com.ExTwitter.timelinemixer.injection.model.injection.OnboardingRelevancePromptInjection#buildConfirmation def buildConfirmation(candidate: onboardingthrift.RelevancePrompt): String = { val isRelevantTextConfirmation = buttonToDismissFeedbackText(candidate.isRelevantButton).getOrElse("") @@ -56,7 +56,7 @@ object RelevancePromptConversions { isRelevantTextConfirmation } - // Based on com.twitter.timelinemixer.injection.model.candidate.OnboardingInjectionAction#fromThrift + // Based on com.ExTwitter.timelinemixer.injection.model.candidate.OnboardingInjectionAction#fromThrift def buttonToDismissFeedbackText(button: onboardingthrift.ButtonAction): Option[String] = { button.buttonBehavior match { case onboardingthrift.ButtonBehavior.Dismiss(d) => d.feedbackMessage.map(_.text) @@ -64,7 +64,7 @@ object RelevancePromptConversions { } } - // Based on com.twitter.timelinemixer.injection.model.injection.OnboardingRelevancePromptInjection#buildCallback + // Based on com.ExTwitter.timelinemixer.injection.model.injection.OnboardingRelevancePromptInjection#buildCallback def convertCallbacks(onboardingCallbacks: Option[Seq[onboardingthrift.Callback]]): Callback = { OnboardingInjectionConversions.convertCallback( onboardingCallbacks diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/TilesCarouselConversions.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/TilesCarouselConversions.scala index dd4ce7c75..c9dd56226 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/TilesCarouselConversions.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/flexible_injection_pipeline/TilesCarouselConversions.scala @@ -1,49 +1,49 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline +package com.ExTwitter.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.convertImageVariant -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Classic -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.BlackRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.ClearRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepGrayRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepGreenRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepOrangeRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepPurpleRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepRedRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.DeepYellowRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedGrayRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedGreenRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedOrangeRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedPurpleRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedRedRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FadedYellowRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FaintBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.FaintGrayRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightGrayRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightGreenRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightOrangeRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightPurpleRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightRedRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.LightYellowRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.MediumGrayRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.MediumGreenRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.MediumOrangeRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.MediumPurpleRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.MediumRedRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.MediumYellowRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.RosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.TextBlackRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.TextBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.TwitterBlueRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.color.WhiteRosettaColor -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tile.CallToActionTileContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tile.StandardTileContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tile.TileItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Badge -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeader +import com.ExTwitter.onboarding.injections.{thriftscala => onboardingthrift} +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.OnboardingInjectionConversions.convertImageVariant +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Classic +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.BlackRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.ClearRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepGrayRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepGreenRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepOrangeRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepPurpleRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepRedRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.DeepYellowRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedGrayRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedGreenRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedOrangeRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedPurpleRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedRedRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FadedYellowRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FaintBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.FaintGrayRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightGrayRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightGreenRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightOrangeRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightPurpleRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightRedRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.LightYellowRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.MediumGrayRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.MediumGreenRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.MediumOrangeRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.MediumPurpleRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.MediumRedRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.MediumYellowRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.RosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.TextBlackRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.TextBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.ExTwitterBlueRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.color.WhiteRosettaColor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tile.CallToActionTileContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tile.StandardTileContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tile.TileItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Badge +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeader object TilesCarouselConversions { // Tiles Carousel Conversions @@ -129,7 +129,7 @@ object TilesCarouselConversions { case onboardingthrift.RosettaColor.FadedGreen => FadedGreenRosettaColor case onboardingthrift.RosettaColor.DeepBlue => DeepBlueRosettaColor - case onboardingthrift.RosettaColor.TwitterBlue => TwitterBlueRosettaColor + case onboardingthrift.RosettaColor.ExTwitterBlue => ExTwitterBlueRosettaColor case onboardingthrift.RosettaColor.LightBlue => LightBlueRosettaColor case onboardingthrift.RosettaColor.FadedBlue => FadedBlueRosettaColor case onboardingthrift.RosettaColor.FaintBlue => FaintBlueRosettaColor diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/icon/HorizonIconBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/icon/HorizonIconBuilder.scala index dd9a59e6c..557b1f9b5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/icon/HorizonIconBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/icon/HorizonIconBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.icon +package com.ExTwitter.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.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon.HorizonIcon -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.icon.BaseHorizonIconBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon.HorizonIcon +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class HorizonIconBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( icon: HorizonIcon) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/ad/AdsCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/ad/AdsCandidateUrtItemBuilder.scala index 1593485fc..399e8ae28 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/ad/AdsCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/ad/AdsCandidateUrtItemBuilder.scala @@ -1,48 +1,48 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad +package com.ExTwitter.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.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder.TweetClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsTweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.Tweet -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.AdMetadataContainer -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.Amplify -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.CallToAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.ClickTrackingInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DcmUrlOverrideType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DirectSponsorshipType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclaimerIssue -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclaimerPolitical -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclaimerType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclosureType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DynamicPrerollType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.Earned -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.IndirectSponsorshipType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.Issue -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.LiveTvEvent -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.Marketplace -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.MediaInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.NoDisclosure -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.NoSponsorshipSponsorshipType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.Political -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.Preroll -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.PrerollMetadata -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.SkAdNetworkData -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.SponsorshipType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.UnknownUrlOverrideType -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.VideoVariant -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.util.AdMetadataContainerSerializer -import com.twitter.timelines.util.PrerollMetadataSerializer +import com.ExTwitter.ads.adserver.{thriftscala => ads} +import com.ExTwitter.adserver.{thriftscala => adserver} +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder.TweetClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsTweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.Tweet +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.AdMetadataContainer +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.Amplify +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.CallToAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.ClickTrackingInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DcmUrlOverrideType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DirectSponsorshipType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclaimerIssue +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclaimerPolitical +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclaimerType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclosureType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DynamicPrerollType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.Earned +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.IndirectSponsorshipType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.Issue +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.LiveTvEvent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.Marketplace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.MediaInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.NoDisclosure +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.NoSponsorshipSponsorshipType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.Political +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.Preroll +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.PrerollMetadata +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.SkAdNetworkData +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.SponsorshipType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.UnknownUrlOverrideType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.VideoVariant +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.util.AdMetadataContainerSerializer +import com.ExTwitter.timelines.util.PrerollMetadataSerializer /** * [[AdsCandidateUrtItemBuilder]] takes a [[AdsCandidate]] (with a [[Query]] as additional context) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/DurationParamBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/DurationParamBuilder.scala index 0a4e76319..dc3e3b00f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/DurationParamBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/DurationParamBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert +package com.ExTwitter.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.item.alert.BaseDurationBuilder -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseDurationBuilder +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration case class DurationParamBuilder( durationParam: Param[Duration]) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/ShowAlertCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/ShowAlertCandidateUrtItemBuilder.scala index d2028181c..0f08ad0af 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/ShowAlertCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/ShowAlertCandidateUrtItemBuilder.scala @@ -1,20 +1,20 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert +package com.ExTwitter.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 -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseDurationBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertColorConfigurationBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertDisplayLocationBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertIconDisplayInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertNavigationMetadataBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertUserIdsBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.ShowAlert -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertType +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.alert.ShowAlertCandidateUrtItemBuilder.ShowAlertClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseDurationBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertColorConfigurationBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertDisplayLocationBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertIconDisplayInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertNavigationMetadataBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertUserIdsBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.ShowAlert +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertType object ShowAlertCandidateUrtItemBuilder { val ShowAlertClientEventInfoElement: String = "showAlert" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertColorConfigurationBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertColorConfigurationBuilder.scala index 322d16401..22a5d8fdb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertColorConfigurationBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertColorConfigurationBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert +package com.ExTwitter.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.item.alert.BaseShowAlertColorConfigurationBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertColorConfiguration -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertColorConfigurationBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertColorConfiguration +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticShowAlertColorConfigurationBuilder[-Query <: PipelineQuery]( configuration: ShowAlertColorConfiguration) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertDisplayLocationBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertDisplayLocationBuilder.scala index 74ea989dd..7b1e5763d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertDisplayLocationBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertDisplayLocationBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert +package com.ExTwitter.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.item.alert.BaseShowAlertDisplayLocationBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertDisplayLocation -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertDisplayLocationBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertDisplayLocation +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticShowAlertDisplayLocationBuilder[-Query <: PipelineQuery]( location: ShowAlertDisplayLocation) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertIconDisplayInfoBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertIconDisplayInfoBuilder.scala index 4c5dcf2a0..9cf2c2e81 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertIconDisplayInfoBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/alert/StaticShowAlertIconDisplayInfoBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.alert +package com.ExTwitter.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.item.alert.BaseShowAlertIconDisplayInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertIconDisplayInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.ShowAlertCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.alert.BaseShowAlertIconDisplayInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.alert.ShowAlertIconDisplayInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticShowAlertIconDisplayInfoBuilder[-Query <: PipelineQuery]( iconDisplayInfo: ShowAlertIconDisplayInfo) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/article/ArticleCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/article/ArticleCandidateUrtItemBuilder.scala index 87d611183..7256187cc 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/article/ArticleCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/article/ArticleCandidateUrtItemBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.article +package com.ExTwitter.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.BaseArticleCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.article.ArticleDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.article.ArticleItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.article.ArticleSeedType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.article.FollowingListSeed -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.article.ArticleCandidateUrtItemBuilder.ArticleClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseArticleCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.article.ArticleDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.article.ArticleItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.article.ArticleSeedType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.article.FollowingListSeed +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object ArticleCandidateUrtItemBuilder { val ArticleClientEventInfoElement: String = "article" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/audio_space/AudioSpaceCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/audio_space/AudioSpaceCandidateUrtItemBuilder.scala index 1d1f7c90a..4482a3fff 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/audio_space/AudioSpaceCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/audio_space/AudioSpaceCandidateUrtItemBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.audio_space +package com.ExTwitter.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.AudioSpaceCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.audio_space.AudioSpaceItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.audio_space.AudioSpaceCandidateUrtItemBuilder.AudioSpaceClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.AudioSpaceCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.audio_space.AudioSpaceItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object AudioSpaceCandidateUrtItemBuilder { val AudioSpaceClientEventInfoElement: String = "audiospace" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/card/CardCandidateUtrItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/card/CardCandidateUtrItemBuilder.scala index e935df9dd..7cfd0f78d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/card/CardCandidateUtrItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/card/CardCandidateUtrItemBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.card +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.card -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.card.CardCandidateUtrItemBuilder.CardClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.CardCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.card.CardDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.card.CardItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.card.CardCandidateUtrItemBuilder.CardClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.CardCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.card.CardDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.card.CardItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object CardCandidateUtrItemBuilder { val CardClientEventInfoElement: String = "card" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductCandidateUrtItemBuilder.scala index a56385a7d..006dac78a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductCandidateUrtItemBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.commerce +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.commerce -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.commerce.CommerceProductCandidateUrtItemBuilder.CommerceProductClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.CommerceProductCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.commerce.CommerceProductItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.commerce.CommerceProductCandidateUrtItemBuilder.CommerceProductClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.CommerceProductCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.commerce.CommerceProductItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object CommerceProductCandidateUrtItemBuilder { val CommerceProductClientEventInfoElement: String = "commerce-product" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductGroupCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductGroupCandidateUrtItemBuilder.scala index a48049314..bfcfafd0a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductGroupCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/commerce/CommerceProductGroupCandidateUrtItemBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.commerce +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.commerce -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.commerce.CommerceProductGroupCandidateUrtItemBuilder.CommerceProductGroupClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.CommerceProductGroupCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.commerce.CommerceProductGroupItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.commerce.CommerceProductGroupCandidateUrtItemBuilder.CommerceProductGroupClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.CommerceProductGroupCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.commerce.CommerceProductGroupItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object CommerceProductGroupCandidateUrtItemBuilder { val CommerceProductGroupClientEventInfoElement: String = "commerce-product-group" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/event_summary/EventCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/event_summary/EventCandidateUrtItemBuilder.scala index 27d7f1e19..6864e7fdc 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/event_summary/EventCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/event_summary/EventCandidateUrtItemBuilder.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.event_summary +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.event_summary -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.event_summary.EventCandidateUrtItemBuilder.EventClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.trends_events.EventDisplayType -import com.twitter.product_mixer.component_library.model.candidate.trends_events.EventImage -import com.twitter.product_mixer.component_library.model.candidate.trends_events.EventTimeString -import com.twitter.product_mixer.component_library.model.candidate.trends_events.EventTitleFeature -import com.twitter.product_mixer.component_library.model.candidate.trends_events.EventUrl -import com.twitter.product_mixer.component_library.model.candidate.trends_events.UnifiedEventCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.event.EventSummaryItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.event_summary.EventCandidateUrtItemBuilder.EventClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.EventDisplayType +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.EventImage +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.EventTimeString +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.EventTitleFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.EventUrl +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.UnifiedEventCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.event.EventSummaryItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object EventCandidateUrtItemBuilder { val EventClientEventInfoElement = "event" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryActionBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryActionBuilder.scala index 8cdbb065d..bfc8e3a87 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryActionBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryActionBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary.GenericSummaryActionBuilder.GenericSummaryActionClientEventInfoElement -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryAction -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary.GenericSummaryActionBuilder.GenericSummaryActionClientEventInfoElement +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryAction +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object GenericSummaryActionBuilder { val GenericSummaryActionClientEventInfoElement: String = "genericsummary-action" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryCandidateUrtItemBuilder.scala index 759dd48c2..e4ec4c2ae 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryCandidateUrtItemBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary.GenericSummaryCandidateUrtItemBuilder.GenericSummaryClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.GenericSummaryCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryItemDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.media.Media -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.util.Time +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary.GenericSummaryCandidateUrtItemBuilder.GenericSummaryClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.GenericSummaryCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryItemDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.media.Media +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.util.Time object GenericSummaryCandidateUrtItemBuilder { val GenericSummaryClientEventInfoElement: String = "genericsummary" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryContextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryContextBuilder.scala index e78476280..531b8ea2c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryContextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/generic_summary/GenericSummaryContextBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.generic_summary -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon.HorizonIcon -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryContext -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon.HorizonIcon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.generic_summary.GenericSummaryContext +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class GenericSummaryContextBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( richTextBuilder: BaseRichTextBuilder[Query, Candidate], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/icon_label/IconLabelCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/icon_label/IconLabelCandidateUrtItemBuilder.scala index 698b64f3b..819c13fa4 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/icon_label/IconLabelCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/icon_label/IconLabelCandidateUrtItemBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.icon_label +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.icon_label -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.icon_label.IconLabelCandidateUrtItemBuilder.IconLabelClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.LabelCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon.HorizonIcon -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.icon_label.IconLabelItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.icon_label.IconLabelCandidateUrtItemBuilder.IconLabelClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.LabelCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon.HorizonIcon +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.icon_label.IconLabelItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object IconLabelCandidateUrtItemBuilder { val IconLabelClientEventInfoElement: String = "iconlabel" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/CompactPromptCandidateUrtItemStringCenterBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/CompactPromptCandidateUrtItemStringCenterBuilder.scala index 8f3d7826b..6149f5191 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/CompactPromptCandidateUrtItemStringCenterBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/CompactPromptCandidateUrtItemStringCenterBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.message +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.message -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.message.CompactPromptCandidateUrtItemStringCenterBuilder.CompactPromptClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.CompactPromptCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.CompactPromptMessageContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessagePromptItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.message.CompactPromptCandidateUrtItemStringCenterBuilder.CompactPromptClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.CompactPromptCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.CompactPromptMessageContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessagePromptItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object CompactPromptCandidateUrtItemStringCenterBuilder { val CompactPromptClientEventInfoElement: String = "message" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/InlinePromptCandidateUrtItemStringCenterBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/InlinePromptCandidateUrtItemStringCenterBuilder.scala index 0ebee8e8c..60285df42 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/InlinePromptCandidateUrtItemStringCenterBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/InlinePromptCandidateUrtItemStringCenterBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.message +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.message -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.message.InlinePromptCandidateUrtItemStringCenterBuilder.InlinePromptClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.InlinePromptCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.InlinePromptMessageContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessagePromptItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.message.InlinePromptCandidateUrtItemStringCenterBuilder.InlinePromptClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.InlinePromptCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.InlinePromptMessageContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessagePromptItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object InlinePromptCandidateUrtItemStringCenterBuilder { val InlinePromptClientEventInfoElement: String = "message" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/MessageTextActionBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/MessageTextActionBuilder.scala index 2871ac682..049ec7e8a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/MessageTextActionBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/MessageTextActionBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.message +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.message -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object MessageTextActionBuilder { val MessageTextActionClientEventInfoElement: String = "message-text-action" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/UserFacePileBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/UserFacePileBuilder.scala index ce87e64cb..4558b35a5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/UserFacePileBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/message/UserFacePileBuilder.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.message +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.message -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageActionType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepile -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepileDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageActionType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.MessageTextAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepile +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.message.UserFacepileDisplayType case class UserFacePileBuilder( userIds: Seq[Long], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/moment/MomentAnnotationCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/moment/MomentAnnotationCandidateUrtItemBuilder.scala index 5d916f424..7ea15ce4c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/moment/MomentAnnotationCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/moment/MomentAnnotationCandidateUrtItemBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.moment +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.moment -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.moment.MomentAnnotationCandidateUrtItemBuilder.MomentAnnotationItemClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.MomentAnnotationCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.moment.MomentAnnotationItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.moment.MomentAnnotationCandidateUrtItemBuilder.MomentAnnotationItemClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.MomentAnnotationCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.moment.MomentAnnotationItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object MomentAnnotationCandidateUrtItemBuilder { val MomentAnnotationItemClientEventInfoElement = "metadata" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/relevance_prompt/RelevancePromptCandidateUrtItemStringCenterBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/relevance_prompt/RelevancePromptCandidateUrtItemStringCenterBuilder.scala index 7ab7308b2..e72e20fd2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/relevance_prompt/RelevancePromptCandidateUrtItemStringCenterBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/relevance_prompt/RelevancePromptCandidateUrtItemStringCenterBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.relevance_prompt +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.relevance_prompt -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.relevance_prompt.RelevancePromptCandidateUrtItemStringCenterBuilder.RelevancePromptClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.RelevancePromptCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.PromptItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptFollowUpFeedbackType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.relevance_prompt.RelevancePromptCandidateUrtItemStringCenterBuilder.RelevancePromptClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.RelevancePromptCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.PromptItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.prompt.RelevancePromptFollowUpFeedbackType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Callback +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object RelevancePromptCandidateUrtItemStringCenterBuilder { val RelevancePromptClientEventInfoElement: String = "relevance_prompt" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/suggestion/SpellingSuggestionCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/suggestion/SpellingSuggestionCandidateUrtItemBuilder.scala index ce0beeb9e..a471a902d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/suggestion/SpellingSuggestionCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/suggestion/SpellingSuggestionCandidateUrtItemBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.suggestion +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.suggestion -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.suggestion.SpellingSuggestionCandidateUrtItemBuilder.SpellingItemClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.suggestion.SpellingSuggestionCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.suggestion.SpellingItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.suggestion.SpellingSuggestionCandidateUrtItemBuilder.SpellingItemClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.suggestion.SpellingSuggestionCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.suggestion.SpellingItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object SpellingSuggestionCandidateUrtItemBuilder { val SpellingItemClientEventInfoElement: String = "spelling" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tile/TileCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tile/TileCandidateUrtItemBuilder.scala index 4c449637f..55534cbaa 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tile/TileCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tile/TileCandidateUrtItemBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.tile +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tile -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tile.TileCandidateUrtItemBuilder.TopicTileClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.PromptCarouselTileCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tile.StandardTileContent -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tile.TileItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tile.TileCandidateUrtItemBuilder.TopicTileClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.PromptCarouselTileCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tile.StandardTileContent +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tile.TileItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object TileCandidateUrtItemBuilder { val TopicTileClientEventInfoElement: String = "tile" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicDisplayTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicDisplayTypeBuilder.scala index 20253fea0..cb969f336 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicDisplayTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicDisplayTypeBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic -import com.twitter.product_mixer.component_library.model.candidate.TopicCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSEnumParam -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.BasicTopicDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.PillTopicDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.NoIconTopicDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.PillWithoutActionIconDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicDisplayType -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicDisplayTypeBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.TopicCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSEnumParam +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.BasicTopicDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.PillTopicDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.NoIconTopicDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.PillWithoutActionIconDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicDisplayType +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicDisplayTypeBuilder object TopicCandidateDisplayType extends Enumeration { type TopicDisplayType = Value diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicFunctionalityTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicFunctionalityTypeBuilder.scala index 78d941c19..543d0aa3f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicFunctionalityTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/ParamTopicFunctionalityTypeBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic -import com.twitter.product_mixer.component_library.model.candidate.TopicCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.BasicTopicFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.PivotTopicFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.RecommendationTopicFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicFunctionalityType -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicFunctionalityTypeBuilder -import com.twitter.timelines.configapi.FSEnumParam +import com.ExTwitter.product_mixer.component_library.model.candidate.TopicCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.BasicTopicFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.PivotTopicFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.RecommendationTopicFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicFunctionalityType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicFunctionalityTypeBuilder +import com.ExTwitter.timelines.configapi.FSEnumParam object TopicFunctionalityTypeParamValue extends Enumeration { type TopicFunctionalityType = Value diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicDisplayTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicDisplayTypeBuilder.scala index fbe8c2783..51e7ba42c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicDisplayTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicDisplayTypeBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.component_library.model.candidate.BaseTopicCandidate -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicDisplayTypeBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicDisplayType +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTopicCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicDisplayType case class StaticTopicDisplayTypeBuilder( displayType: TopicDisplayType) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicFunctionalityTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicFunctionalityTypeBuilder.scala index 73e99d0a3..13dd0b34b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicFunctionalityTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/StaticTopicFunctionalityTypeBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.component_library.model.candidate.BaseTopicCandidate -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicFunctionalityTypeBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicFunctionalityType -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTopicCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicFunctionalityTypeBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicFunctionalityType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticTopicFunctionalityTypeBuilder( functionalityType: TopicFunctionalityType) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/TopicCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/TopicCandidateUrtItemBuilder.scala index a049e08fd..dd8ac8e3d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/TopicCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/TopicCandidateUrtItemBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic.TopicCandidateUrtItemBuilder.TopicClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.BaseTopicCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicFunctionalityTypeBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic.TopicCandidateUrtItemBuilder.TopicClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTopicCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.topic.BaseTopicFunctionalityTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.topic.TopicItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object TopicCandidateUrtItemBuilder { val TopicClientEventInfoElement: String = "topic" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/VerticalGridTopicCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/VerticalGridTopicCandidateUrtItemBuilder.scala index 40f436159..0d26c7ae0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/VerticalGridTopicCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/topic/VerticalGridTopicCandidateUrtItemBuilder.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.topic.TopicCandidateUrtItemBuilder.TopicClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.TopicCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItemTileStyle -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItemTopicFunctionalityType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItemTopicTile -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.topic.TopicCandidateUrtItemBuilder.TopicClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.TopicCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItemTileStyle +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItemTopicFunctionalityType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.vertical_grid_item.VerticalGridItemTopicTile +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class VerticalGridTopicCandidateUrtItemBuilder[-Query <: PipelineQuery]( clientEventInfoBuilder: BaseClientEventInfoBuilder[Query, TopicCandidate], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendCandidateUrtItemBuilder.scala index c3f5c45ad..4ef2fd7fc 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendCandidateUrtItemBuilder.scala @@ -1,22 +1,22 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.trend +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.trend -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.trend.TrendCandidateUrtItemBuilder.TrendsClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendDescription -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendDomainContext -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendGroupedTrends -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendNormalizedTrendName -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendTrendName -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendTweetCount -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendUrl -import com.twitter.product_mixer.component_library.model.candidate.trends_events.UnifiedTrendCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.trend.TrendItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.trend.TrendCandidateUrtItemBuilder.TrendsClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendDescription +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendDomainContext +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendGroupedTrends +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendNormalizedTrendName +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendTrendName +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendTweetCount +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendUrl +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.UnifiedTrendCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.trend.TrendItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object TrendCandidateUrtItemBuilder { final val TrendsClientEventInfoElement = "trend" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendMetaDescriptionBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendMetaDescriptionBuilder.scala index b8cc639a0..735e19423 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendMetaDescriptionBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendMetaDescriptionBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.trend +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.trend -import com.twitter.product_mixer.component_library.decorator.urt.builder.stringcenter.Str -import com.twitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendAdvertiserNameFeature -import com.twitter.product_mixer.component_library.model.candidate.trends_events.TrendTweetCount -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.trends.trending_content.util.CompactingNumberLocalizer +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.stringcenter.Str +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendAdvertiserNameFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.TrendTweetCount +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.trends.trending_content.util.CompactingNumberLocalizer case class TrendMetaDescriptionBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( promotedByMetaDescriptionStr: Str[PipelineQuery, UniversalNoun[Any]], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendPromotedMetadataBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendPromotedMetadataBuilder.scala index 9c1c34fa5..c6491c889 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendPromotedMetadataBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/trend/TrendPromotedMetadataBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.trend +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.trend -import com.twitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendDescriptionFeature -import com.twitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendDisclosureTypeFeature -import com.twitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendIdFeature -import com.twitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendImpressionIdFeature -import com.twitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendNameFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendDescriptionFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendDisclosureTypeFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendImpressionIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.PromotedTrendNameFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object TrendPromotedMetadataBuilder extends BasePromotedMetadataBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tweet/TweetCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tweet/TweetCandidateUrtItemBuilder.scala index d02b96f1c..59e16938c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tweet/TweetCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/tweet/TweetCandidateUrtItemBuilder.scala @@ -1,28 +1,28 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet -import com.twitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder.TweetClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.component_library.model.candidate.IsPinnedFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseEntryIdToReplaceBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseTimelinesScoreInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseTweetHighlightsBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.conversation_annotation.ConversationAnnotation -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.forward_pivot.ForwardPivot -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tombstone.TombstoneInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.Tweet -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Badge -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.PrerollMetadata -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.contextual_ref.ContextualTweetRefBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder.TweetClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.IsPinnedFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseEntryIdToReplaceBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseTimelinesScoreInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.tweet.BaseTweetHighlightsBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.conversation_annotation.ConversationAnnotation +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.forward_pivot.ForwardPivot +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tombstone.TombstoneInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.Tweet +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.tweet.TweetItem +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Badge +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.PrerollMetadata +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.PromotedMetadata +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case object TweetCandidateUrtItemBuilder { val TweetClientEventInfoElement = "tweet" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/twitter_list/TwitterListCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/twitter_list/TwitterListCandidateUrtItemBuilder.scala index 41ed4ed71..d42493be6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/twitter_list/TwitterListCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/twitter_list/TwitterListCandidateUrtItemBuilder.scala @@ -1,41 +1,41 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.twitter_list +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ExTwitter_list -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.twitter_list.TwitterListCandidateUrtItemBuilder.ListClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.TwitterListCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.twitter_list.TwitterListDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.twitter_list.TwitterListItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ExTwitter_list.ExTwitterListCandidateUrtItemBuilder.ListClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.ExTwitterListCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.ExTwitter_list.ExTwitterListDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.ExTwitter_list.ExTwitterListItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery -object TwitterListCandidateUrtItemBuilder { +object ExTwitterListCandidateUrtItemBuilder { val ListClientEventInfoElement: String = "list" } -case class TwitterListCandidateUrtItemBuilder[-Query <: PipelineQuery]( - clientEventInfoBuilder: BaseClientEventInfoBuilder[Query, TwitterListCandidate], +case class ExTwitterListCandidateUrtItemBuilder[-Query <: PipelineQuery]( + clientEventInfoBuilder: BaseClientEventInfoBuilder[Query, ExTwitterListCandidate], feedbackActionInfoBuilder: Option[ - BaseFeedbackActionInfoBuilder[Query, TwitterListCandidate] + BaseFeedbackActionInfoBuilder[Query, ExTwitterListCandidate] ] = None, - displayType: Option[TwitterListDisplayType] = None) - extends CandidateUrtEntryBuilder[Query, TwitterListCandidate, TwitterListItem] { + displayType: Option[ExTwitterListDisplayType] = None) + extends CandidateUrtEntryBuilder[Query, ExTwitterListCandidate, ExTwitterListItem] { override def apply( query: Query, - twitterListCandidate: TwitterListCandidate, + ExTwitterListCandidate: ExTwitterListCandidate, candidateFeatures: FeatureMap - ): TwitterListItem = TwitterListItem( - id = twitterListCandidate.id, + ): ExTwitterListItem = ExTwitterListItem( + id = ExTwitterListCandidate.id, sortIndex = None, // Sort indexes are automatically set in the domain marshaller phase clientEventInfo = clientEventInfoBuilder( query, - twitterListCandidate, + ExTwitterListCandidate, candidateFeatures, Some(ListClientEventInfoElement)), feedbackActionInfo = - feedbackActionInfoBuilder.flatMap(_.apply(query, twitterListCandidate, candidateFeatures)), + feedbackActionInfoBuilder.flatMap(_.apply(query, ExTwitterListCandidate, candidateFeatures)), displayType = displayType ) } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/unified_trend_event/UnifiedTrendEventCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/unified_trend_event/UnifiedTrendEventCandidateUrtItemBuilder.scala index c4b67ce04..4b6fa6547 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/unified_trend_event/UnifiedTrendEventCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/unified_trend_event/UnifiedTrendEventCandidateUrtItemBuilder.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.unified_trend_event +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.unified_trend_event -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.event_summary.EventCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.trend.TrendCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.model.candidate.trends_events.UnifiedEventCandidate -import com.twitter.product_mixer.component_library.model.candidate.trends_events.UnifiedTrendCandidate -import com.twitter.product_mixer.component_library.model.candidate.trends_events.UnifiedTrendEventCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.event_summary.EventCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.trend.TrendCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.UnifiedEventCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.UnifiedTrendCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.trends_events.UnifiedTrendEventCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class UnifiedTrendEventCandidateUrtItemBuilder[Query <: PipelineQuery]( eventCandidateUrtItemBuilder: EventCandidateUrtItemBuilder[Query], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/user/UserCandidateUrtItemBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/user/UserCandidateUrtItemBuilder.scala index 95a7e6bd9..d1f1c5e8d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/user/UserCandidateUrtItemBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/user/UserCandidateUrtItemBuilder.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.item.user +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.user -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder.UserClientEventInfoElement -import com.twitter.product_mixer.component_library.model.candidate.BaseUserCandidate -import com.twitter.product_mixer.component_library.model.candidate.IsMarkUnreadFeature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.item.user.BaseUserReactiveTriggersBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.user.User -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.user.UserDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder.UserClientEventInfoElement +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseUserCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.IsMarkUnreadFeature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.item.user.BaseUserReactiveTriggersBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.user.User +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.user.UserDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.user.UserItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object UserCandidateUrtItemBuilder { val UserClientEventInfoElement: String = "user" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ClientEventInfoBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ClientEventInfoBuilder.scala index 0c0eca37b..5028d3a17 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ClientEventInfoBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ClientEventInfoBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventInfo +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder /** * Sets the [[ClientEventInfo]] with the `component` field set to [[component]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ConversationTweetClientEventDetailsBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ConversationTweetClientEventDetailsBuilder.scala index ad8034dbc..ab20b5863 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ConversationTweetClientEventDetailsBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/ConversationTweetClientEventDetailsBuilder.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.Base64String -import com.twitter.bijection.{Injection => Serializer} -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ConversationTweetClientEventDetailsBuilder.ControllerDataSerializer -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.suggests.controller_data.home_tweets.thriftscala.HomeTweetsControllerData -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.suggests.controller_data.home_tweets.v1.thriftscala.{ +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.Base64String +import com.ExTwitter.bijection.{Injection => Serializer} +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ConversationTweetClientEventDetailsBuilder.ControllerDataSerializer +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.suggests.controller_data.home_tweets.thriftscala.HomeTweetsControllerData +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.suggests.controller_data.home_tweets.v1.thriftscala.{ HomeTweetsControllerData => HomeTweetsControllerDataV1 } -import com.twitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} +import com.ExTwitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} object ConversationTweetClientEventDetailsBuilder { implicit val ByteSerializer: Serializer[ControllerData, Array[Byte]] = diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/StaticUrlBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/StaticUrlBuilder.scala index 7db66990f..85b50662f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/StaticUrlBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/StaticUrlBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.UrlType -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.UrlType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticUrlBuilder(url: String, urlType: UrlType) extends BaseUrlBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicClientEventDetailsBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicClientEventDetailsBuilder.scala index af28b49f3..b1f540050 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicClientEventDetailsBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicClientEventDetailsBuilder.scala @@ -1,20 +1,20 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.Base64String -import com.twitter.bijection.{Injection => Serializer} -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.component_library.model.candidate.BaseTopicCandidate -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.suggests.controller_data.timelines_topic.thriftscala.TimelinesTopicControllerData -import com.twitter.suggests.controller_data.timelines_topic.v1.thriftscala.{ +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.Base64String +import com.ExTwitter.bijection.{Injection => Serializer} +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTopicCandidate +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.suggests.controller_data.timelines_topic.thriftscala.TimelinesTopicControllerData +import com.ExTwitter.suggests.controller_data.timelines_topic.v1.thriftscala.{ TimelinesTopicControllerData => TimelinesTopicControllerDataV1 } -import com.twitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} +import com.ExTwitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} object TopicClientEventDetailsBuilder { implicit val ByteSerializer: Serializer[ControllerData, Array[Byte]] = diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicNotInterestedFeedbackActionInfoBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicNotInterestedFeedbackActionInfoBuilder.scala index cfb7cb5ff..7511411e5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicNotInterestedFeedbackActionInfoBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicNotInterestedFeedbackActionInfoBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.product_mixer.component_library.model.candidate.BaseTopicCandidate -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorMarkNotInterestedTopic -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTopicCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.RichFeedbackBehaviorMarkNotInterestedTopic +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class TopicNotInterestedFeedbackActionInfoBuilder[-Query <: PipelineQuery]() extends BaseFeedbackActionInfoBuilder[Query, BaseTopicCandidate] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicTweetClientEventDetailsBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicTweetClientEventDetailsBuilder.scala index 451b347ae..81e235e0c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicTweetClientEventDetailsBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicTweetClientEventDetailsBuilder.scala @@ -1,22 +1,22 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.Base64String -import com.twitter.bijection.{Injection => Serializer} -import com.twitter.interests_mixer.model.request.{HasTopicId => InterestsMixerHasTopicId} -import com.twitter.explore_mixer.model.request.{HasTopicId => ExploreMixerHasTopicId} -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.suggests.controller_data.home_tweets.thriftscala.HomeTweetsControllerData -import com.twitter.suggests.controller_data.home_tweets.v1.thriftscala.{ +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.Base64String +import com.ExTwitter.bijection.{Injection => Serializer} +import com.ExTwitter.interests_mixer.model.request.{HasTopicId => InterestsMixerHasTopicId} +import com.ExTwitter.explore_mixer.model.request.{HasTopicId => ExploreMixerHasTopicId} +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.suggests.controller_data.home_tweets.thriftscala.HomeTweetsControllerData +import com.ExTwitter.suggests.controller_data.home_tweets.v1.thriftscala.{ HomeTweetsControllerData => HomeTweetsControllerDataV1 } -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.suggests.controller_data.v2.thriftscala.{ControllerData => ControllerDataV2} object TopicTweetClientEventDetailsBuilder { implicit val ByteSerializer: Serializer[ControllerData, Array[Byte]] = diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicsToFollowModuleMetadataBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicsToFollowModuleMetadataBuilder.scala index fa32e2127..fa816ef8e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicsToFollowModuleMetadataBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/TopicsToFollowModuleMetadataBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.GridCarouselMetadata -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleMetadata -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.GridCarouselMetadata +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleMetadata +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Param object TopicsToFollowModuleMetadataBuilder { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/WhoToFollowFeedbackActionInfoBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/WhoToFollowFeedbackActionInfoBuilder.scala index 04d6fae7b..c2c188bc2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/WhoToFollowFeedbackActionInfoBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/metadata/WhoToFollowFeedbackActionInfoBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.metadata +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata -import com.twitter.product_mixer.component_library.decorator.urt.builder.stringcenter.Str -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.icon.Frown -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.SeeFewer -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stringcenter.client.ExternalStringRegistry -import com.twitter.stringcenter.client.StringCenter +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.stringcenter.Str +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.icon.Frown +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackAction +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FeedbackActionInfo +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.SeeFewer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stringcenter.client.ExternalStringRegistry +import com.ExTwitter.stringcenter.client.StringCenter case class WhoToFollowFeedbackActionInfoBuilder[ -Query <: PipelineQuery, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/operation/CursorCandidateUrtOperationBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/operation/CursorCandidateUrtOperationBuilder.scala index 6cc1ad677..21b013028 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/operation/CursorCandidateUrtOperationBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/operation/CursorCandidateUrtOperationBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.operation +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.operation -import com.twitter.product_mixer.component_library.model.candidate.CursorCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.CursorDisplayTreatment -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.CursorOperation -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.CursorType -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.candidate.CursorCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.CandidateUrtEntryBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.CursorDisplayTreatment +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.CursorOperation +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.CursorType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class CursorCandidateUrtOperationBuilder[-Query <: PipelineQuery]( cursorType: CursorType, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/promoted/FeaturePromotedMetadataBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/promoted/FeaturePromotedMetadataBuilder.scala index 6edc3b593..f4f4edf56 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/promoted/FeaturePromotedMetadataBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/promoted/FeaturePromotedMetadataBuilder.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.promoted +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.promoted -import com.twitter.ads.adserver.{thriftscala => ads} -import com.twitter.ads.common.base.{thriftscala => ac} -import com.twitter.adserver.{thriftscala => ad} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.util.AdMetadataContainerSerializer +import com.ExTwitter.ads.adserver.{thriftscala => ads} +import com.ExTwitter.ads.common.base.{thriftscala => ac} +import com.ExTwitter.adserver.{thriftscala => ad} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.promoted.BasePromotedMetadataBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.util.AdMetadataContainerSerializer case class FeaturePromotedMetadataBuilder(adImpressionFeature: Feature[_, Option[ad.AdImpression]]) extends BasePromotedMetadataBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextBuilder.scala index cb5ff66df..7697e8c7e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.UrlType -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.UrlType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class RichTextBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( textBuilder: BaseStr[Query, Candidate], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextMarkupUtil.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextMarkupUtil.scala index dacb72b90..c04fa75d5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextMarkupUtil.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextMarkupUtil.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ExternalUrl -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.UrlType -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ExternalUrl +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.UrlType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong /* * RichTextMarkupUtil facilitates building a Product Mixer URT RichText object out of diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextReferenceObjectBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextReferenceObjectBuilder.scala index 503f0841c..5c47a14a7 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextReferenceObjectBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextReferenceObjectBuilder.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject -import com.twitter.twittertext.Extractor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject +import com.ExTwitter.ExTwittertext.Extractor trait RichTextReferenceObjectBuilder { def apply(entity: Extractor.Entity): Option[ReferenceObject] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextRtlOptionBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextRtlOptionBuilder.scala index 6fc39d5a4..7cfce951c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextRtlOptionBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/RichTextRtlOptionBuilder.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery trait RichTextRtlOptionBuilder[-Query <: PipelineQuery] { def apply(query: Query): Option[Boolean] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/StaticRichTextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/StaticRichTextBuilder.scala index 64054559a..3206d5c57 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/StaticRichTextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/StaticRichTextBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticRichTextBuilder(richText: RichText) extends BaseRichTextBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextEntityProcessor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextEntityProcessor.scala index ca27c7e14..4e74796ce 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextEntityProcessor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextEntityProcessor.scala @@ -1,25 +1,25 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text -import com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.RichTextReferenceObjectBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text.TwitterTextEntityProcessor.DefaultReferenceObjectBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ExternalUrl -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextCashtag -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextHashtag -import com.twitter.twittertext.Extractor +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.RichTextReferenceObjectBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text.ExTwitterTextEntityProcessor.DefaultReferenceObjectBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ExternalUrl +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextCashtag +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextHashtag +import com.ExTwitter.ExTwittertext.Extractor import scala.collection.convert.ImplicitConversions._ -object TwitterTextEntityProcessor { +object ExTwitterTextEntityProcessor { object DefaultReferenceObjectBuilder extends RichTextReferenceObjectBuilder { - def apply(twitterEntity: Extractor.Entity): Option[ReferenceObject] = { - twitterEntity.getType match { + def apply(ExTwitterEntity: Extractor.Entity): Option[ReferenceObject] = { + ExTwitterEntity.getType match { case Extractor.Entity.Type.URL => - Some(Url(ExternalUrl, twitterEntity.getValue)) + Some(Url(ExternalUrl, ExTwitterEntity.getValue)) case Extractor.Entity.Type.HASHTAG => - Some(RichTextHashtag(twitterEntity.getValue)) + Some(RichTextHashtag(ExTwitterEntity.getValue)) case Extractor.Entity.Type.CASHTAG => - Some(RichTextCashtag(twitterEntity.getValue)) + Some(RichTextCashtag(ExTwitterEntity.getValue)) case _ => None } } @@ -27,25 +27,25 @@ object TwitterTextEntityProcessor { } /** - * Add the corresponding [[RichTextEntity]] extraction logic into [[TwitterTextRenderer]]. - * The [[TwitterTextRenderer]] after being processed will extract the defined entities. + * Add the corresponding [[RichTextEntity]] extraction logic into [[ExTwitterTextRenderer]]. + * The [[ExTwitterTextRenderer]] after being processed will extract the defined entities. */ -case class TwitterTextEntityProcessor( - twitterTextReferenceObjectBuilder: RichTextReferenceObjectBuilder = DefaultReferenceObjectBuilder) - extends TwitterTextRendererProcessor { +case class ExTwitterTextEntityProcessor( + ExTwitterTextReferenceObjectBuilder: RichTextReferenceObjectBuilder = DefaultReferenceObjectBuilder) + extends ExTwitterTextRendererProcessor { private[this] val extractor = new Extractor() def process( - twitterTextRenderer: TwitterTextRenderer - ): TwitterTextRenderer = { - val twitterEntities = extractor.extractEntitiesWithIndices(twitterTextRenderer.text) + ExTwitterTextRenderer: ExTwitterTextRenderer + ): ExTwitterTextRenderer = { + val ExTwitterEntities = extractor.extractEntitiesWithIndices(ExTwitterTextRenderer.text) - twitterEntities.foreach { twitterEntity => - twitterTextReferenceObjectBuilder(twitterEntity).foreach { refObject => - twitterTextRenderer.setRefObject(twitterEntity.getStart, twitterEntity.getEnd, refObject) + ExTwitterEntities.foreach { ExTwitterEntity => + ExTwitterTextReferenceObjectBuilder(ExTwitterEntity).foreach { refObject => + ExTwitterTextRenderer.setRefObject(ExTwitterEntity.getStart, ExTwitterEntity.getEnd, refObject) } } - twitterTextRenderer + ExTwitterTextRenderer } } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextFormatProcessor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextFormatProcessor.scala index cf36eecc6..7fba1ebb1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextFormatProcessor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextFormatProcessor.scala @@ -1,22 +1,22 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Plain -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Plain +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong import scala.collection.mutable -object TwitterTextFormatProcessor { - lazy val defaultFormatProcessor = TwitterTextFormatProcessor() +object ExTwitterTextFormatProcessor { + lazy val defaultFormatProcessor = ExTwitterTextFormatProcessor() } /** - * Add the corresponding [[RichTextFormat]] extraction logic into [[TwitterTextRenderer]]. - * The [[TwitterTextRenderer]] after being processed will extract the defined entities. + * Add the corresponding [[RichTextFormat]] extraction logic into [[ExTwitterTextRenderer]]. + * The [[ExTwitterTextRenderer]] after being processed will extract the defined entities. */ -case class TwitterTextFormatProcessor( +case class ExTwitterTextFormatProcessor( formats: Set[RichTextFormat] = Set(Plain, Strong), -) extends TwitterTextRendererProcessor { +) extends ExTwitterTextRendererProcessor { private val formatMap = formats.map { format => format.name.toLowerCase -> format }.toMap @@ -26,10 +26,10 @@ case class TwitterTextFormatProcessor( } def renderText(text: String): RichText = { - process(TwitterTextRenderer(text)).build + process(ExTwitterTextRenderer(text)).build } - def process(richTextBuilder: TwitterTextRenderer): TwitterTextRenderer = { + def process(richTextBuilder: ExTwitterTextRenderer): ExTwitterTextRenderer = { val text = richTextBuilder.text val nodeStack = mutable.ArrayStack[(RichTextFormat, Int)]() var offset = 0 diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRenderer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRenderer.scala index 53a534255..017edf34d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRenderer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRenderer.scala @@ -1,38 +1,38 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.ReferenceObject +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextEntity +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat import scala.annotation.tailrec import scala.collection.mutable -object TwitterTextRenderer { +object ExTwitterTextRenderer { /** - * Creates a new [[TwitterTextRenderer]] instance. + * Creates a new [[ExTwitterTextRenderer]] instance. * @param text The initial text representation * @param rtl Defines whether this text is in an RTL language * @param alignment Assigns the [[RichTextAlignment]] of the given text for display - * @return A new [[TwitterTextRenderer]] instance + * @return A new [[ExTwitterTextRenderer]] instance */ def apply( text: String, rtl: Option[Boolean] = None, alignment: Option[RichTextAlignment] = None - ): TwitterTextRenderer = { - TwitterTextRenderer(rtl, alignment).append(text) + ): ExTwitterTextRenderer = { + ExTwitterTextRenderer(rtl, alignment).append(text) } /** - * Creates a new [[TwitterTextRenderer]] instance from a product-mixer [[RichText]] object. + * Creates a new [[ExTwitterTextRenderer]] instance from a product-mixer [[RichText]] object. * Converts Unicode entity indexes into JVM String indexes. * @param richText The product-mixer [[RichText]] representation - * @return A new [[TwitterTextRenderer]] instance + * @return A new [[ExTwitterTextRenderer]] instance */ - def fromRichText(richText: RichText): TwitterTextRenderer = { - val builder = TwitterTextRenderer(richText.text, richText.rtl, richText.alignment) + def fromRichText(richText: RichText): ExTwitterTextRenderer = { + val builder = ExTwitterTextRenderer(richText.text, richText.rtl, richText.alignment) richText.entities.foreach { e => val startIndex = richText.text.offsetByCodePoints(0, e.fromIndex) val endIndex = richText.text.offsetByCodePoints(0, e.toIndex) @@ -48,7 +48,7 @@ object TwitterTextRenderer { private def buildRichTextEntity( text: String, - entity: TwitterTextRendererEntity[_] + entity: ExTwitterTextRendererEntity[_] ): RichTextEntity = { val fromIndex = text.codePointCount(0, entity.startIndex) val toIndex = text.codePointCount(0, entity.endIndex) @@ -62,16 +62,16 @@ object TwitterTextRenderer { } } -case class TwitterTextRenderer( +case class ExTwitterTextRenderer( rtl: Option[Boolean], alignment: Option[RichTextAlignment], ) { private[this] val textBuilder = new mutable.StringBuilder() private[richtext] val formatBuffer = - mutable.ArrayBuffer[TwitterTextRendererEntity[RichTextFormat]]() + mutable.ArrayBuffer[ExTwitterTextRendererEntity[RichTextFormat]]() private[richtext] val refObjectBuffer = - mutable.ArrayBuffer[TwitterTextRendererEntity[ReferenceObject]]() + mutable.ArrayBuffer[ExTwitterTextRendererEntity[ReferenceObject]]() /** * Appends a string with attached [[RichTextFormat]] and [[ReferenceObject]] information. @@ -84,15 +84,15 @@ case class TwitterTextRenderer( string: String, format: Option[RichTextFormat] = None, refObject: Option[ReferenceObject] = None - ): TwitterTextRenderer = { + ): ExTwitterTextRenderer = { if (string.nonEmpty) { val start = textBuilder.length val end = start + string.length format.foreach { f => - formatBuffer.append(TwitterTextRendererEntity(start, end, f)) + formatBuffer.append(ExTwitterTextRendererEntity(start, end, f)) } refObject.foreach { r => - refObjectBuffer.append(TwitterTextRendererEntity(start, end, r)) + refObjectBuffer.append(ExTwitterTextRendererEntity(start, end, r)) } textBuilder.append(string) } @@ -106,7 +106,7 @@ case class TwitterTextRenderer( val richTextString = this.text val richTextEntities = this.entities .map { e => - TwitterTextRenderer.buildRichTextEntity(richTextString, e) + ExTwitterTextRenderer.buildRichTextEntity(richTextString, e) } RichText( @@ -118,16 +118,16 @@ case class TwitterTextRenderer( } /** - * Modifies the TwitterTextRenderer with the provided [[TwitterTextRendererProcessor]] + * Modifies the ExTwitterTextRenderer with the provided [[ExTwitterTextRendererProcessor]] */ - def transform(twitterTextProcessor: TwitterTextRendererProcessor): TwitterTextRenderer = { - twitterTextProcessor.process(this) + def transform(ExTwitterTextProcessor: ExTwitterTextRendererProcessor): ExTwitterTextRenderer = { + ExTwitterTextProcessor.process(this) } /** - * Builds and returns a sorted list of [[TwitterTextRendererEntity]] with JVM String index entity ranges. + * Builds and returns a sorted list of [[ExTwitterTextRendererEntity]] with JVM String index entity ranges. */ - def entities: Seq[TwitterTextRendererEntity[_]] = { + def entities: Seq[ExTwitterTextRendererEntity[_]] = { buildEntities(formatBuffer.toList, refObjectBuffer.toList) } @@ -139,12 +139,12 @@ case class TwitterTextRenderer( * @param format The format to assign * @return this */ - def mergeFormat(start: Int, end: Int, format: RichTextFormat): TwitterTextRenderer = { + def mergeFormat(start: Int, end: Int, format: RichTextFormat): ExTwitterTextRenderer = { validateRange(start, end) var injectionIndex: Option[Int] = None - var entity = TwitterTextRendererEntity(start, end, format) + var entity = ExTwitterTextRendererEntity(start, end, format) - val buffer = mutable.ArrayBuffer[TwitterTextRendererEntity[RichTextFormat]]() + val buffer = mutable.ArrayBuffer[ExTwitterTextRendererEntity[RichTextFormat]]() val iterator = formatBuffer.zipWithIndex.reverseIterator while (iterator.hasNext && injectionIndex.isEmpty) { @@ -197,7 +197,7 @@ case class TwitterTextRenderer( * @param end End index to apply formatting (exclusive) * @return this */ - def remove(start: Int, end: Int): TwitterTextRenderer = replace(start, end, "") + def remove(start: Int, end: Int): ExTwitterTextRenderer = replace(start, end, "") /** * Replaces text, formatting, and refObject information in the given range. @@ -214,17 +214,17 @@ case class TwitterTextRenderer( string: String, format: Option[RichTextFormat] = None, refObject: Option[ReferenceObject] = None - ): TwitterTextRenderer = { + ): ExTwitterTextRenderer = { validateRange(start, end) val newEnd = start + string.length val formatInjectIndex = removeAndOffsetFormats(start, end, string.length) val refObjectInjectIndex = removeAndOffsetRefObjects(start, end, string.length) format.foreach { f => - formatBuffer.insert(formatInjectIndex, TwitterTextRendererEntity(start, newEnd, f)) + formatBuffer.insert(formatInjectIndex, ExTwitterTextRendererEntity(start, newEnd, f)) } refObject.foreach { r => - refObjectBuffer.insert(refObjectInjectIndex, TwitterTextRendererEntity(start, newEnd, r)) + refObjectBuffer.insert(refObjectInjectIndex, ExTwitterTextRendererEntity(start, newEnd, r)) } textBuilder.replace(start, end, string) @@ -239,10 +239,10 @@ case class TwitterTextRenderer( * @param format The format to assign * @return this */ - def setFormat(start: Int, end: Int, format: RichTextFormat): TwitterTextRenderer = { + def setFormat(start: Int, end: Int, format: RichTextFormat): ExTwitterTextRenderer = { validateRange(start, end) val bufferIndex = removeAndOffsetFormats(start, end, end - start) - formatBuffer.insert(bufferIndex, TwitterTextRendererEntity(start, end, format)) + formatBuffer.insert(bufferIndex, ExTwitterTextRendererEntity(start, end, format)) this } @@ -252,7 +252,7 @@ case class TwitterTextRenderer( val offset = newEnd - end var injectionIndex: Option[Int] = None - val buffer = mutable.ArrayBuffer[TwitterTextRendererEntity[RichTextFormat]]() + val buffer = mutable.ArrayBuffer[ExTwitterTextRendererEntity[RichTextFormat]]() val iterator = formatBuffer.zipWithIndex.reverseIterator while (iterator.hasNext && injectionIndex.isEmpty) { @@ -296,10 +296,10 @@ case class TwitterTextRenderer( * @param refObject The [[ReferenceObject]] to assign * @return this */ - def setRefObject(start: Int, end: Int, refObject: ReferenceObject): TwitterTextRenderer = { + def setRefObject(start: Int, end: Int, refObject: ReferenceObject): ExTwitterTextRenderer = { validateRange(start, end) val bufferIndex = removeAndOffsetRefObjects(start, end, end - start) - refObjectBuffer.insert(bufferIndex, TwitterTextRendererEntity(start, end, refObject)) + refObjectBuffer.insert(bufferIndex, ExTwitterTextRendererEntity(start, end, refObject)) this } @@ -309,7 +309,7 @@ case class TwitterTextRenderer( val offset = newEnd - end var injectionIndex: Option[Int] = None - val buffer = mutable.ArrayBuffer[TwitterTextRendererEntity[ReferenceObject]]() + val buffer = mutable.ArrayBuffer[ExTwitterTextRendererEntity[ReferenceObject]]() val iterator = refObjectBuffer.zipWithIndex.reverseIterator while (iterator.hasNext && injectionIndex.isEmpty) { @@ -327,7 +327,7 @@ case class TwitterTextRenderer( } /** - * Builds and returns the full TwitterTextRenderer text with any changes applied to the builder instance. + * Builds and returns the full ExTwitterTextRenderer text with any changes applied to the builder instance. */ def text: String = { textBuilder.mkString @@ -335,10 +335,10 @@ case class TwitterTextRenderer( @tailrec private def buildEntities( - formats: List[TwitterTextRendererEntity[RichTextFormat]], - refs: List[TwitterTextRendererEntity[ReferenceObject]], - acc: List[TwitterTextRendererEntity[_]] = List() - ): Seq[TwitterTextRendererEntity[_]] = { + formats: List[ExTwitterTextRendererEntity[RichTextFormat]], + refs: List[ExTwitterTextRendererEntity[ReferenceObject]], + acc: List[ExTwitterTextRendererEntity[_]] = List() + ): Seq[ExTwitterTextRendererEntity[_]] = { (formats, refs) match { case (Nil, Nil) => acc case (remainingFormats, Nil) => acc ++ remainingFormats @@ -358,7 +358,7 @@ case class TwitterTextRenderer( } } -case class TwitterTextRendererEntity[+T] private[richtext] ( +case class ExTwitterTextRendererEntity[+T] private[richtext] ( startIndex: Int, endIndex: Int, value: T) { @@ -380,7 +380,7 @@ case class TwitterTextRendererEntity[+T] private[richtext] ( start < endIndex && endIndex <= end && startIndex < start } - private[richtext] def offset(num: Int): TwitterTextRendererEntity[T] = { + private[richtext] def offset(num: Int): ExTwitterTextRendererEntity[T] = { copy(startIndex = startIndex + num, endIndex = endIndex + num) } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRendererProcessor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRendererProcessor.scala index 5e5f45659..a11168e68 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRendererProcessor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRendererProcessor.scala @@ -1,5 +1,5 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text -trait TwitterTextRendererProcessor { - def process(twitterTextRichTextBuilder: TwitterTextRenderer): TwitterTextRenderer +trait ExTwitterTextRendererProcessor { + def process(ExTwitterTextRichTextBuilder: ExTwitterTextRenderer): ExTwitterTextRenderer } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRichTextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRichTextBuilder.scala index 50422a335..8f4631ef8 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRichTextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/richtext/twitter_text/TwitterTextRichTextBuilder.scala @@ -1,37 +1,37 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text -import com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.RichTextReferenceObjectBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.RichTextRtlOptionBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.StaticRichTextRtlOptionBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.richtext.twitter_text.TwitterTextEntityProcessor.DefaultReferenceObjectBuilder -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Plain -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat -import com.twitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.RichTextReferenceObjectBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.RichTextRtlOptionBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.StaticRichTextRtlOptionBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.richtext.ExTwitter_text.ExTwitterTextEntityProcessor.DefaultReferenceObjectBuilder +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.richtext.BaseRichTextBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Plain +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichText +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextAlignment +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.RichTextFormat +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.richtext.Strong +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery -case class TwitterTextRichTextBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( +case class ExTwitterTextRichTextBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( stringBuilder: BaseStr[Query, Candidate], alignment: Option[RichTextAlignment] = None, formats: Set[RichTextFormat] = Set(Plain, Strong), - twitterTextRtlOptionBuilder: RichTextRtlOptionBuilder[Query] = + ExTwitterTextRtlOptionBuilder: RichTextRtlOptionBuilder[Query] = StaticRichTextRtlOptionBuilder[Query](None), - twitterTextReferenceObjectBuilder: RichTextReferenceObjectBuilder = DefaultReferenceObjectBuilder) + ExTwitterTextReferenceObjectBuilder: RichTextReferenceObjectBuilder = DefaultReferenceObjectBuilder) extends BaseRichTextBuilder[Query, Candidate] { def apply(query: Query, candidate: Candidate, candidateFeatures: FeatureMap): RichText = { - val twitterTextRenderer = TwitterTextRenderer( + val ExTwitterTextRenderer = ExTwitterTextRenderer( text = stringBuilder(query, candidate, candidateFeatures), - rtl = twitterTextRtlOptionBuilder(query), + rtl = ExTwitterTextRtlOptionBuilder(query), alignment = alignment) - twitterTextRenderer - .transform(TwitterTextFormatProcessor(formats)) - .transform(TwitterTextEntityProcessor(twitterTextReferenceObjectBuilder)) + ExTwitterTextRenderer + .transform(ExTwitterTextFormatProcessor(formats)) + .transform(ExTwitterTextEntityProcessor(ExTwitterTextReferenceObjectBuilder)) .build } } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/FeatureSocialContextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/FeatureSocialContextBuilder.scala index d96551bc6..8bc732900 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/FeatureSocialContextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/FeatureSocialContextBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.social_context +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.social_context -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.service.{thriftscala => t} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.service.{thriftscala => t} /** * Use this Builder to create Product Mixer [[SocialContext]] objects when you have a diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralModuleSocialContextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralModuleSocialContextBuilder.scala index c3e9e9919..80e0a1c03 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralModuleSocialContextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralModuleSocialContextBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.social_context +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.social_context -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseModuleStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseModuleSocialContextBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseModuleStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseModuleSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * This class works the same as [[GeneralSocialContextBuilder]] but passes a list of candidates diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralSocialContextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralSocialContextBuilder.scala index ef2221468..e12c5cb48 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralSocialContextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/GeneralSocialContextBuilder.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.social_context +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.social_context -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class GeneralSocialContextBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( textBuilder: BaseStr[Query, Candidate], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/WhoToFollowSocialContextBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/WhoToFollowSocialContextBuilder.scala index edcc07fcd..4ee01661f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/WhoToFollowSocialContextBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/social_context/WhoToFollowSocialContextBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.social_context +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.social_context -import com.twitter.hermit.{thriftscala => h} -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.FollowGeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.LocationGeneralContextType -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.NewUserGeneralContextType -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.hermit.{thriftscala => h} +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseSocialContextBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.FollowGeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContext +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.GeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.LocationGeneralContextType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.NewUserGeneralContextType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class WhoToFollowSocialContextBuilder( socialTextFeature: Feature[_, Option[String]], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/ModuleStr.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/ModuleStr.scala index 0abb2ec63..91cd4500e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/ModuleStr.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/ModuleStr.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.stringcenter +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.stringcenter -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseModuleStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.stringcenter.BaseModuleStringCenterPlaceholderBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stringcenter.client.StringCenter -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseModuleStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.stringcenter.BaseModuleStringCenterPlaceholderBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.stringcenter.client.core.ExternalString /** * This class works the same as [[Str]] but passes in a list of candidates to the diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/Str.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/Str.scala index 6f5a6c3b3..28750c5f6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/Str.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/stringcenter/Str.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.stringcenter +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.stringcenter -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.stringcenter.BaseStringCenterPlaceholderBuilder -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stringcenter.client.StringCenter -import com.twitter.stringcenter.client.core.ExternalString +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.stringcenter.BaseStringCenterPlaceholderBuilder +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stringcenter.client.StringCenter +import com.ExTwitter.stringcenter.client.core.ExternalString case class StrStatic( text: String) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/FeatureModuleDisplayTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/FeatureModuleDisplayTypeBuilder.scala index bc9632e5a..27d58df04 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/FeatureModuleDisplayTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/FeatureModuleDisplayTypeBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class FeatureModuleDisplayTypeBuilder( displayTypeFeature: Feature[_, Option[ModuleDisplayType]], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleDynamicShowMoreBehaviorRevealByCountBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleDynamicShowMoreBehaviorRevealByCountBuilder.scala index fd234de7c..8369371d9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleDynamicShowMoreBehaviorRevealByCountBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleDynamicShowMoreBehaviorRevealByCountBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleShowMoreBehaviorBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehaviorRevealByCount -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleShowMoreBehaviorBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehaviorRevealByCount +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class ModuleDynamicShowMoreBehaviorRevealByCountBuilder( initialItemsCount: Int, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleFooterBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleFooterBuilder.scala index 886825f2d..ab8ceff30 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleFooterBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleFooterBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleFooter -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleFooterBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleFooter +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseUrlBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleFooterBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures case class ModuleFooterBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( textBuilder: BaseStr[Query, Candidate], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderBuilder.scala index fbe256d69..78e52131c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderBuilder.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.icon.BaseHorizonIconBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseModuleSocialContextBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderDisplayTypeBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Classic -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageVariant -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeader -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.icon.BaseHorizonIconBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseStr +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.social_context.BaseModuleSocialContextBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Classic +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageVariant +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeader +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class ModuleHeaderBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( textBuilder: BaseStr[Query, Candidate], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderDisplayTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderDisplayTypeBuilder.scala index bc0fffa8c..4f359a06b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderDisplayTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleHeaderDisplayTypeBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderDisplayTypeBuilder -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Classic -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeaderDisplayType -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Classic +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeaderDisplayType +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class ModuleHeaderDisplayTypeBuilder[ -Query <: PipelineQuery, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleIdGeneration.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleIdGeneration.scala index a885632e0..c5172cfb1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleIdGeneration.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleIdGeneration.scala @@ -1,4 +1,4 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module /** * This trait is used for Module ID generation. Clients are safe to ignore this code unless they diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleShowMoreBehaviorRevealByCountBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleShowMoreBehaviorRevealByCountBuilder.scala index 19bce376a..5a30ddd0f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleShowMoreBehaviorRevealByCountBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ModuleShowMoreBehaviorRevealByCountBuilder.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehavior -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehaviorRevealByCount -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleShowMoreBehaviorBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehavior +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleShowMoreBehaviorRevealByCount +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleShowMoreBehaviorBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.timelines.configapi.Param case class ModuleShowMoreBehaviorRevealByCountBuilder( initialItemsCountParam: Param[Int], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleFooterBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleFooterBuilder.scala index 36654335a..576dbf066 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleFooterBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleFooterBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleFooterBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleFooter -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleFooterBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleFooter +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Param case class ParamGatedModuleFooterBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( enableParam: Param[Boolean], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleHeaderBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleHeaderBuilder.scala index 44598b093..5d954b5ae 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleHeaderBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamGatedModuleHeaderBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeader -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleHeader +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Param case class ParamGatedModuleHeaderBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( enableParam: Param[Boolean], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamWhoToFollowModuleDisplayTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamWhoToFollowModuleDisplayTypeBuilder.scala index 1e83a032e..2d3410cdd 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamWhoToFollowModuleDisplayTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/ParamWhoToFollowModuleDisplayTypeBuilder.scala @@ -1,20 +1,20 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Carousel -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.CompactCarousel -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ConversationTree -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.GridCarousel -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Vertical -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalGrid -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalWithContextLine -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Carousel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.CompactCarousel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ConversationTree +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.GridCarousel +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.Vertical +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalConversation +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalGrid +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.VerticalWithContextLine +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Param object WhoToFollowModuleDisplayType extends Enumeration { type ModuleDisplayType = Value diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/StaticModuleDisplayTypeBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/StaticModuleDisplayTypeBuilder.scala index a7f9c647f..557a9b43f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/StaticModuleDisplayTypeBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/StaticModuleDisplayTypeBuilder.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleDisplayType -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.timeline_module.ModuleDisplayType +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery case class StaticModuleDisplayTypeBuilder(displayType: ModuleDisplayType) extends BaseModuleDisplayTypeBuilder[PipelineQuery, UniversalNoun[Any]] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/TimelineModuleBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/TimelineModuleBuilder.scala index 38f1a7657..6f765b169 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/TimelineModuleBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/timeline_module/TimelineModuleBuilder.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module +package com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleFooterBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleShowMoreBehaviorBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleFooterBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleHeaderBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleMetadataBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleShowMoreBehaviorBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseTimelineModuleBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures case class TimelineModuleBuilder[-Query <: PipelineQuery, -Candidate <: UniversalNoun[Any]]( entryNamespace: EntryNamespace, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/BUILD index 56c339994..f2d52a1b0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/BUILD @@ -6,6 +6,6 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/com/github/scopt", - "util/util-core/src/main/java/com/twitter/io", + "util/util-core/src/main/java/com/ExTwitter/io", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricDefinitions.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricDefinitions.scala index 5c2a45856..ec1779eff 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricDefinitions.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricDefinitions.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.experiments.metrics +package com.ExTwitter.product_mixer.component_library.experiments.metrics -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try object MetricDefinition { val SingleQuote = """"""" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricGroup.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricGroup.scala index ccd238cd8..e6d67f782 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricGroup.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricGroup.scala @@ -1,4 +1,4 @@ -package com.twitter.product_mixer.component_library.experiments.metrics +package com.ExTwitter.product_mixer.component_library.experiments.metrics import scala.collection.immutable.ListSet diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplateCLIRunner.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplateCLIRunner.scala index b01af3cc2..b11b0a932 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplateCLIRunner.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplateCLIRunner.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.experiments.metrics +package com.ExTwitter.product_mixer.component_library.experiments.metrics -import com.twitter.product_mixer.component_library.experiments.metrics.PlaceholderConfig.PlaceholdersMap +import com.ExTwitter.product_mixer.component_library.experiments.metrics.PlaceholderConfig.PlaceholdersMap import java.io.File import java.io.PrintWriter import scala.collection.immutable.ListSet diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplates.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplates.scala index 9640b1d8b..e189339f4 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplates.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/MetricTemplates.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.experiments.metrics +package com.ExTwitter.product_mixer.component_library.experiments.metrics -import com.twitter.product_mixer.component_library.experiments.metrics.PlaceholderConfig.PlaceholdersMap +import com.ExTwitter.product_mixer.component_library.experiments.metrics.PlaceholderConfig.PlaceholdersMap import reflect.ClassTag import scala.reflect.runtime.universe._ import scala.util.matching.Regex diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/PlaceholderConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/PlaceholderConfig.scala index 5a81073cc..96741cb0f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/PlaceholderConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/experiments/metrics/PlaceholderConfig.scala @@ -1,4 +1,4 @@ -package com.twitter.product_mixer.component_library.experiments.metrics +package com.ExTwitter.product_mixer.component_library.experiments.metrics // Base trait for all placeholder values sealed trait Named { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/BUILD index 7da3b156c..ee5209619 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/BUILD @@ -4,11 +4,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdFeature.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdFeature.scala index 299d9515f..b8c4173a6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdFeature.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdFeature.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.feature.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature.featurestorev1 -import com.twitter.ml.api.transform.FeatureRenameTransform -import com.twitter.ml.featurestore.catalog.entities -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.entity.Entity -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup -import com.twitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} -import com.twitter.product_mixer.core.feature.featurestorev1._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.ml.api.transform.FeatureRenameTransform +import com.ExTwitter.ml.featurestore.catalog.entities +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.entity.Entity +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup +import com.ExTwitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} +import com.ExTwitter.product_mixer.core.feature.featurestorev1._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam import scala.reflect.ClassTag object FeatureStoreV1QueryUserIdFeature { def apply[Query <: PipelineQuery, Value]( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateAuthorIdFeature.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateAuthorIdFeature.scala index bd026c60d..30f9ee21a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateAuthorIdFeature.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateAuthorIdFeature.scala @@ -1,20 +1,20 @@ -package com.twitter.product_mixer.component_library.feature.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature.featurestorev1 -import com.twitter.ml.api.transform.FeatureRenameTransform -import com.twitter.ml.featurestore.catalog.entities -import com.twitter.ml.featurestore.lib.EdgeEntityId -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.entity.Entity -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup -import com.twitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} -import com.twitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.ml.api.transform.FeatureRenameTransform +import com.ExTwitter.ml.featurestore.catalog.entities +import com.ExTwitter.ml.featurestore.lib.EdgeEntityId +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.entity.Entity +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup +import com.ExTwitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam import scala.reflect.ClassTag object FeatureStoreV1QueryUserIdTweetCandidateAuthorIdFeature { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateTweetIdFeature.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateTweetIdFeature.scala index 9031e88be..e7f8d5843 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateTweetIdFeature.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1QueryUserIdTweetCandidateTweetIdFeature.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.feature.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature.featurestorev1 -import com.twitter.ml.api.transform.FeatureRenameTransform -import com.twitter.ml.featurestore.catalog.entities -import com.twitter.ml.featurestore.lib.EdgeEntityId -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.TweetId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.entity.Entity -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup -import com.twitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.ml.api.transform.FeatureRenameTransform +import com.ExTwitter.ml.featurestore.catalog.entities +import com.ExTwitter.ml.featurestore.lib.EdgeEntityId +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.TweetId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.entity.Entity +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup +import com.ExTwitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam import scala.reflect.ClassTag object FeatureStoreV1QueryUserIdTweetCandidateTweetIdFeature { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateAuthorIdFeature.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateAuthorIdFeature.scala index b78c9569a..b92001bf6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateAuthorIdFeature.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateAuthorIdFeature.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.feature.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature.featurestorev1 -import com.twitter.ml.api.transform.FeatureRenameTransform -import com.twitter.ml.featurestore.catalog.entities -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.entity.Entity -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup -import com.twitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} -import com.twitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.ml.api.transform.FeatureRenameTransform +import com.ExTwitter.ml.featurestore.catalog.entities +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.entity.Entity +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup +import com.ExTwitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam import scala.reflect.ClassTag object FeatureStoreV1TweetCandidateAuthorIdFeature { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateTweetIdFeature.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateTweetIdFeature.scala index c75bf21ac..74d7c6610 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateTweetIdFeature.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1TweetCandidateTweetIdFeature.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.feature.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature.featurestorev1 -import com.twitter.ml.api.transform.FeatureRenameTransform -import com.twitter.ml.featurestore.catalog.entities -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.TweetId -import com.twitter.ml.featurestore.lib.entity.Entity -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup -import com.twitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.ml.api.transform.FeatureRenameTransform +import com.ExTwitter.ml.featurestore.catalog.entities +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.TweetId +import com.ExTwitter.ml.featurestore.lib.entity.Entity +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.TimelinesAggregationFrameworkFeatureGroup +import com.ExTwitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam object FeatureStoreV1TweetCandidateTweetIdFeature { def apply[Query <: PipelineQuery, Candidate <: BaseTweetCandidate, Value]( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1UserCandidateUserIdFeature.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1UserCandidateUserIdFeature.scala index a0947b995..870633cad 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1UserCandidateUserIdFeature.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature/featurestorev1/FeatureStoreV1UserCandidateUserIdFeature.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.feature.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature.featurestorev1 -import com.twitter.ml.featurestore.catalog.entities -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.ml.featurestore.lib.UserId -import com.twitter.ml.featurestore.lib.entity.Entity -import com.twitter.ml.featurestore.lib.entity.EntityWithId -import com.twitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} -import com.twitter.product_mixer.component_library.model.candidate.BaseUserCandidate -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1._ -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam +import com.ExTwitter.ml.featurestore.catalog.entities +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.ml.featurestore.lib.UserId +import com.ExTwitter.ml.featurestore.lib.entity.Entity +import com.ExTwitter.ml.featurestore.lib.entity.EntityWithId +import com.ExTwitter.ml.featurestore.lib.feature.{Feature => FSv1Feature} +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseUserCandidate +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1._ +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam object FeatureStoreV1UserCandidateUserIdFeature { def apply[Query <: PipelineQuery, Candidate <: BaseUserCandidate, Value]( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/BUILD index 78840577d..659e17695 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/BUILD @@ -6,30 +6,30 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/AdvertiserBrandSafetySettingsFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/AdvertiserBrandSafetySettingsFeatureHydrator.scala index 107f04fff..275a23435 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/AdvertiserBrandSafetySettingsFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/AdvertiserBrandSafetySettingsFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.ads +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.ads -import com.twitter.adserver.{thriftscala => ad} -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.storehaus.ReadableStore -import com.twitter.util.Future +import com.ExTwitter.adserver.{thriftscala => ad} +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/BUILD index 4c66c4346..5f331286e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/ads/BUILD @@ -3,19 +3,19 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "src/thrift/com/twitter/ads/adserver:ads_shared_types-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "src/thrift/com/ExTwitter/ads/adserver:ads_shared_types-scala", ], exports = [ - "3rdparty/jvm/com/twitter/storehaus:core", + "3rdparty/jvm/com/ExTwitter/storehaus:core", "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "src/thrift/com/twitter/ads/adserver:ads_shared_types-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "src/thrift/com/ExTwitter/ads/adserver:ads_shared_types-scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/BUILD.bazel index 3759377bd..57155851e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/BUILD.bazel @@ -4,13 +4,13 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/scorer", - "snowflake/src/main/scala/com/twitter/snowflake/id", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/scorer", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/scorer", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/scorer", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/DecayCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/DecayCandidateFeatureHydrator.scala index 4f0d99e82..53ab8f205 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/DecayCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/decay/DecayCandidateFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.decay +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.decay -import com.twitter.conversions.DurationOps._ -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration object DecayScore extends Feature[UniversalNoun[Long], Double] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/BUILD index a9e2c7cc4..b86754570 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/BUILD @@ -6,20 +6,20 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], exports = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedBulkCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedBulkCandidateFeatureHydrator.scala index 621eed2e9..787560569 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedBulkCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedBulkCandidateFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedBulkCandidateFeatureHydrator.IdentifierPrefix -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedBulkCandidateFeatureHydrator.IdentifierPrefix +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[BulkCandidateFeatureHydrator]] with [[Conditionally]] based on a [[Param]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedCandidateFeatureHydrator.scala index 6409145e5..b01090bc4 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/ParamGatedCandidateFeatureHydrator.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator.IdentifierPrefix -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.ParamGatedCandidateFeatureHydrator.IdentifierPrefix +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[CandidateFeatureHydrator]] with [[Conditionally]] based on a [[Param]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/BUILD index 7b18d7b06..30d5e493d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/BUILD @@ -6,22 +6,22 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], exports = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/ParamGatedFeatureStoreV1CandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/ParamGatedFeatureStoreV1CandidateFeatureHydrator.scala index d151c4374..7e7f81a20 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/ParamGatedFeatureStoreV1CandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/param_gated/featurestorev1/ParamGatedFeatureStoreV1CandidateFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.featurestorev1 -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.featurestorev1.ParamGatedFeatureStoreV1CandidateFeatureHydrator.IdentifierPrefix -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1CandidateFeature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1CandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.param_gated.featurestorev1.ParamGatedFeatureStoreV1CandidateFeatureHydrator.IdentifierPrefix +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1CandidateFeature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[FeatureStoreV1CandidateFeatureHydrator]] with [[Conditionally]] based on a [[Param]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/BUILD.bazel index 579f420ee..f7a44d074 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/QualityFactorGatedCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/QualityFactorGatedCandidateFeatureHydrator.scala index e9d74826c..95dc16930 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/QualityFactorGatedCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/qualityfactor_gated/QualityFactorGatedCandidateFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.qualityfactor_gated +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.qualityfactor_gated -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param object QualityFactorGatedCandidateFeatureHydrator { val IdentifierPrefix = "QfGated" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/BUILD index 3a2b817bf..a921a9b62 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/BUILD @@ -7,30 +7,30 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", ], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/TweetIsNsfwCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/TweetIsNsfwCandidateFeatureHydrator.scala index 651f0f4b0..99fed0725 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/TweetIsNsfwCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_is_nsfw/TweetIsNsfwCandidateFeatureHydrator.scala @@ -1,22 +1,22 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_is_nsfw +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_is_nsfw -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.{thriftscala => t} -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.{thriftscala => t} +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging // The VF NsfwHighPrecisionLabel that powers the NSFW determination here has been deprecated and is no longer written to. @deprecated("Prefer VisibilityReason") diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/BUILD.bazel index 9d9d9a421..a5496eefd 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/BUILD.bazel @@ -5,38 +5,38 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/scorer/tweet_tlx", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/ml/featurestore/timelines:ml-features-timelines-scala", - "src/thrift/com/twitter/ml/featurestore/timelines:ml-features-timelines-strato", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/scorer/tweet_tlx", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/ml/featurestore/timelines:ml-features-timelines-scala", + "src/thrift/com/ExTwitter/ml/featurestore/timelines:ml-features-timelines-strato", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "strato/config/columns/ml/featureStore:featureStore-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/scorer/tweet_tlx", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/candidate_source/strato", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/ml/featurestore/timelines:ml-features-timelines-scala", - "src/thrift/com/twitter/ml/featurestore/timelines:ml-features-timelines-strato", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelinescorer/server/internal:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/module", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/scorer/tweet_tlx", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/candidate_source/strato", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/ml/featurestore/timelines:ml-features-timelines-scala", + "src/thrift/com/ExTwitter/ml/featurestore/timelines:ml-features-timelines-strato", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer/server/internal:thrift-scala", "stitch/stitch-core", "strato/config/columns/ml/featureStore:featureStore-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/TweetTLXScoreCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/TweetTLXScoreCandidateFeatureHydrator.scala index ee985d9c4..660e5901c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/TweetTLXScoreCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tlx/TweetTLXScoreCandidateFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_tlx +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_tlx -import com.twitter.ml.featurestore.timelines.thriftscala.TimelineScorerScoreView -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.component_library.scorer.tweet_tlx.TLXScore -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.strato.generated.client.ml.featureStore.TimelineScorerTweetScoresV1ClientColumn -import com.twitter.timelinescorer.thriftscala.v1 +import com.ExTwitter.ml.featurestore.timelines.thriftscala.TimelineScorerScoreView +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.component_library.scorer.tweet_tlx.TLXScore +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.generated.client.ml.featureStore.TimelineScorerTweetScoresV1ClientColumn +import com.ExTwitter.timelinescorer.thriftscala.v1 import javax.inject.Inject import javax.inject.Singleton @@ -19,7 +19,7 @@ import javax.inject.Singleton * Hydrate Tweet Scores via Timeline Scorer (TLX) * * Note that this is the [[CandidateFeatureHydrator]] version of - * [[com.twitter.product_mixer.component_library.scorer.tweet_tlx.TweetTLXStratoScorer]] + * [[com.ExTwitter.product_mixer.component_library.scorer.tweet_tlx.TweetTLXStratoScorer]] */ @Singleton class TweetTLXScoreCandidateFeatureHydrator @Inject() ( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/BUILD index 298c869f3..5d6dc9e4a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/BUILD @@ -6,23 +6,23 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", ], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/TweetTweetypieCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/TweetTweetypieCandidateFeatureHydrator.scala index 5f20598b5..58b238619 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/TweetTweetypieCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie/TweetTweetypieCandidateFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_tweetypie +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_tweetypie -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -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.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.spam.rtf.thriftscala.SafetyLevel -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.thriftscala.TweetVisibilityPolicy -import com.twitter.tweetypie.{thriftscala => TP} +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.spam.rtf.thriftscala.SafetyLevel +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.thriftscala.TweetVisibilityPolicy +import com.ExTwitter.tweetypie.{thriftscala => TP} // Candidate Features object IsCommunityTweetFeature extends Feature[TweetCandidate, Boolean] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/BUILD index 592cfa5b6..322b7b771 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/BUILD @@ -6,24 +6,24 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", "util/util-slf4j-api", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/spam/rtf:safety-result-scala", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/spam/rtf:safety-result-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", "util/util-slf4j-api", diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/TweetVisibilityReasonBulkCandidateFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/TweetVisibilityReasonBulkCandidateFeatureHydrator.scala index 1014e5865..bba22f472 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/TweetVisibilityReasonBulkCandidateFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/TweetVisibilityReasonBulkCandidateFeatureHydrator.scala @@ -1,23 +1,23 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_visibility_reason +package com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_visibility_reason -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -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.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.spam.rtf.{thriftscala => SPAM} -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.{thriftscala => TP} -import com.twitter.util.Return -import com.twitter.util.Throw -import com.twitter.util.Try -import com.twitter.util.logging.Logging +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BulkCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.spam.rtf.{thriftscala => SPAM} +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.{thriftscala => TP} +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw +import com.ExTwitter.util.Try +import com.ExTwitter.util.logging.Logging import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/AsyncQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/AsyncQueryFeatureHydrator.scala index 44a187725..e1ab0fe71 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/AsyncQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/AsyncQueryFeatureHydrator.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.async +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.async -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1QueryFeature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.AsyncHydrator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.model.common.identifier.PipelineStepIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1QueryFeature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.AsyncHydrator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.PipelineStepIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A [[QueryFeatureHydrator]] with [[AsyncQueryFeatureHydrator]] that hydrated asynchronously for features diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/BUILD index 6bd8f5e31..106b06a26 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/async/BUILD @@ -5,19 +5,19 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/BUILD.bazel index f81495371..a277a9bc9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/BUILD.bazel @@ -6,14 +6,14 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "cr-ml-ranker/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", "stitch/stitch-core", ], exports = [ "cr-ml-ranker/thrift/src/main/thrift:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydrator.scala index 547f14999..5a293eb60 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydrator.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.cr_ml_ranker +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.cr_ml_ranker -import com.twitter.cr_ml_ranker.{thriftscala => t} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.cr_ml_ranker.{thriftscala => t} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object CrMlRankerCommonFeatures extends Feature[PipelineQuery, t.CommonFeatures] object CrMlRankerRankingConfig extends Feature[PipelineQuery, t.RankingConfig] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydratorBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydratorBuilder.scala index 2a5d41d49..4a4a9438c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydratorBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/CrMlRankerCommonQueryFeatureHydratorBuilder.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.cr_ml_ranker +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.cr_ml_ranker -import com.twitter.cr_ml_ranker.{thriftscala => t} +import com.ExTwitter.cr_ml_ranker.{thriftscala => t} import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/RankingConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/RankingConfigBuilder.scala index 2f17683e7..40704d4ae 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/RankingConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/cr_ml_ranker/RankingConfigBuilder.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.cr_ml_ranker +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.cr_ml_ranker -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.cr_ml_ranker.{thriftscala => t} +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.cr_ml_ranker.{thriftscala => t} /** * Builder for constructing a ranking config from a query diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/BUILD index fdedd2d2b..80581f626 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/BUILD @@ -6,18 +6,18 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/timelines/impression_store:thrift-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/timelines/impression_store:thrift-scala", "stitch/stitch-core", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "3rdparty/src/jvm/com/twitter/storehaus:core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "src/thrift/com/twitter/timelines/impression_store:thrift-scala", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "src/thrift/com/ExTwitter/timelines/impression_store:thrift-scala", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/ImpressedTweetsQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/ImpressedTweetsQueryFeatureHydrator.scala index 0d90eed29..056a3034d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/ImpressedTweetsQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets/ImpressedTweetsQueryFeatureHydrator.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.FeatureWithDefaultOnFailure -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.impressionstore.thriftscala.ImpressionList -import com.twitter.util.Future +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.FeatureWithDefaultOnFailure +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.impressionstore.thriftscala.ImpressionList +import com.ExTwitter.util.Future import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/BUILD index a9e2c7cc4..b86754570 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/BUILD @@ -6,20 +6,20 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], exports = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/LoggedInOnlyQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/LoggedInOnlyQueryFeatureHydrator.scala index 11d149bd8..b3969605a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/LoggedInOnlyQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/logged_in_only/LoggedInOnlyQueryFeatureHydrator.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.logged_in_only +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.logged_in_only -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A [[QueryFeatureHydrator]] with [[Conditionally]] to run only for logged in users diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/AsyncParamGatedQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/AsyncParamGatedQueryFeatureHydrator.scala index 60a322e43..d29a4fb47 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/AsyncParamGatedQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/AsyncParamGatedQueryFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.AsyncHydrator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.model.common.identifier.PipelineStepIdentifier -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.AsyncHydrator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.PipelineStepIdentifier +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[QueryFeatureHydrator]] with [[Conditionally]] based on a [[Param]] that hydrates asynchronously for features diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/BUILD index a9e2c7cc4..b86754570 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/BUILD @@ -6,20 +6,20 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], exports = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/ParamGatedQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/ParamGatedQueryFeatureHydrator.scala index 70b8baeed..6f4edfa59 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/ParamGatedQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/ParamGatedQueryFeatureHydrator.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[QueryFeatureHydrator]] with [[Conditionally]] based on a [[Param]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/AsyncParamGatedFeatureStoreV1QueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/AsyncParamGatedFeatureStoreV1QueryFeatureHydrator.scala index 825b0ed4a..b741932ba 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/AsyncParamGatedFeatureStoreV1QueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/AsyncParamGatedFeatureStoreV1QueryFeatureHydrator.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated.featurestorev1 -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1QueryFeature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.AsyncHydrator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.model.common.identifier.PipelineStepIdentifier -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1QueryFeature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.AsyncHydrator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.PipelineStepIdentifier +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[QueryFeatureHydrator]] with [[Conditionally]] based on a [[Param]] that hydrates asynchronously for features diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/BUILD index 7b18d7b06..30d5e493d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/BUILD @@ -6,22 +6,22 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], exports = [ "configapi/configapi-core", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/feature", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common/alert", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/feature", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common/alert", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/feature_hydrator/featurestorev1", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "stitch/stitch-core", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/ParamGatedFeatureStoreV1QueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/ParamGatedFeatureStoreV1QueryFeatureHydrator.scala index 9fce95a7a..db1f2eb3d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/ParamGatedFeatureStoreV1QueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/ParamGatedFeatureStoreV1QueryFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.param_gated.featurestorev1 +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.param_gated.featurestorev1 -import com.twitter.ml.featurestore.lib.EntityId -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1QueryFeature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder -import com.twitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.ml.featurestore.lib.EntityId +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featurestorev1.BaseFeatureStoreV1QueryFeature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1DynamicClientBuilder +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.featurestorev1.FeatureStoreV1QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[QueryFeatureHydrator]] with [[Conditionally]] based on a [[Param]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/BUILD.bazel index 579f420ee..f7a44d074 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/QualityFactorGatedQueryFeatureHydrator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/QualityFactorGatedQueryFeatureHydrator.scala index ac490d174..0b4546e62 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/QualityFactorGatedQueryFeatureHydrator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/qualityfactor_gated/QualityFactorGatedQueryFeatureHydrator.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.feature_hydrator.query.qualityfactor_gated +package com.ExTwitter.product_mixer.component_library.feature_hydrator.query.qualityfactor_gated -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.QueryFeatureHydrator +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.FeatureHydratorIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param object QualityFactorGatedQueryFeatureHydrator { val IdentifierPrefix = "QfGated" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/AdaptiveLongIntBloomFilterDedupFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/AdaptiveLongIntBloomFilterDedupFilter.scala index f0a77ae69..d2d5e7fb0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/AdaptiveLongIntBloomFilterDedupFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/AdaptiveLongIntBloomFilterDedupFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.search.common.util.bloomfilter.AdaptiveLongIntBloomFilter +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.search.common.util.bloomfilter.AdaptiveLongIntBloomFilter trait GetAdaptiveLongIntBloomFilter[Query <: PipelineQuery] { def apply(query: Query): Option[AdaptiveLongIntBloomFilter] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/BUILD index 371cb91b9..5157b2c19 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/BUILD @@ -6,25 +6,25 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "finatra/inject/inject-core/src/main/scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/identifier", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/search/common/util/bloomfilter", - "src/thrift/com/twitter/tweetypie:service-scala", - "src/thrift/com/twitter/tweetypie:tweet-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/candidate/tweet_tweetypie", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/cursor", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/identifier", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/search/common/util/bloomfilter", + "src/thrift/com/ExTwitter/tweetypie:service-scala", + "src/thrift/com/ExTwitter/tweetypie:tweet-scala", "stitch/stitch-core", "stitch/stitch-tweetypie", "stitch/stitch-tweetypie/src/main/scala", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/configapi", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", - "snowflake/src/main/scala/com/twitter/snowflake/id", - "src/java/com/twitter/search/common/util/bloomfilter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/configapi", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", + "snowflake/src/main/scala/com/ExTwitter/snowflake/id", + "src/java/com/ExTwitter/search/common/util/bloomfilter", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ExcludedIdsFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ExcludedIdsFilter.scala index d43f2380f..dcc2500a2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ExcludedIdsFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ExcludedIdsFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.model.marshalling.request.HasExcludedIds -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.model.marshalling.request.HasExcludedIds +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch case class ExcludedIdsFilter[ Query <: PipelineQuery with HasExcludedIds, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureFilter.scala index 9b1933bab..c752c493c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object FeatureFilter { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureValueConditionalFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureValueConditionalFilter.scala index 552da4b2f..23f0e2d47 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureValueConditionalFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/FeatureValueConditionalFilter.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.component_library.filter.FeatureConditionalFilter.IdentifierInfix -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.filter.FeatureConditionalFilter.IdentifierInfix +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Predicate to apply to candidate feature, to determine whether to apply filter. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/HasAuthorIdFeatureFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/HasAuthorIdFeatureFilter.scala index a6248f99e..7c682d952 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/HasAuthorIdFeatureFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/HasAuthorIdFeatureFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature -import com.twitter.product_mixer.component_library.model.candidate.TweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A filter that checks for presence of a successfully hydrated [[TweetAuthorIdFeature]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ParamGatedFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ParamGatedFilter.scala index aa3a4e72f..2111538bf 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ParamGatedFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/ParamGatedFilter.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.component_library.filter.ParamGatedFilter.IdentifierPrefix -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.Conditionally -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param +import com.ExTwitter.product_mixer.component_library.filter.ParamGatedFilter.IdentifierPrefix +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.Conditionally +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param /** * A [[Filter]] with [[Conditionally]] based on a [[Param]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/PredicateFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/PredicateFilter.scala index 158cc636e..ea229a9fa 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/PredicateFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/PredicateFilter.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Predicate which will be applied to each candidate. True indicates that the candidate will be diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/SnowflakeIdAgeFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/SnowflakeIdAgeFilter.scala index 940521c7a..38cbcc47e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/SnowflakeIdAgeFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/SnowflakeIdAgeFilter.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.snowflake.id.SnowflakeId -import com.twitter.stitch.Stitch -import com.twitter.timelines.configapi.Param -import com.twitter.util.Duration +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.snowflake.id.SnowflakeId +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.util.Duration /** * @param maxAgeParam Feature Switch configurable for convenience diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorCountryFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorCountryFilter.scala index ee83408d9..7aeb5054f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorCountryFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorCountryFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -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.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A [[filter]] that filters candidates based on a country code feature diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorIsSelfFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorIsSelfFilter.scala index 5f87e9080..083552769 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorIsSelfFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetAuthorIsSelfFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.TweetAuthorIdFeature +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A [[filter]] that filters based on whether query user is the author of the tweet. This will NOT filter empty user ids diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetIsNotReplyFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetIsNotReplyFilter.scala index 88cc82890..5e8e09c91 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetIsNotReplyFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetIsNotReplyFilter.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.filter -import com.twitter.product_mixer.component_library.feature_hydrator.candidate.tweet_tweetypie.IsReplyFeature -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +package com.ExTwitter.product_mixer.component_library.filter +import com.ExTwitter.product_mixer.component_library.feature_hydrator.candidate.tweet_tweetypie.IsReplyFeature +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Filters out tweets that is a reply to a tweet diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetLanguageFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetLanguageFilter.scala index 12013df9d..d70adf5c6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetLanguageFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetLanguageFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -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.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch case class TweetLanguageFilter[Candidate <: BaseTweetCandidate]( languageCodeFeature: Feature[Candidate, Option[String]]) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetVisibilityFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetVisibilityFilter.scala index 0f105e679..219418e19 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetVisibilityFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/TweetVisibilityFilter.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.util.logging.Logging -import com.twitter.product_mixer.component_library.filter.TweetVisibilityFilter._ -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.spam.rtf.thriftscala.SafetyLevel -import com.twitter.stitch.Stitch -import com.twitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} -import com.twitter.tweetypie.{thriftscala => TP} -import com.twitter.util.Return -import com.twitter.util.Try +import com.ExTwitter.util.logging.Logging +import com.ExTwitter.product_mixer.component_library.filter.TweetVisibilityFilter._ +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.spam.rtf.thriftscala.SafetyLevel +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.stitch.tweetypie.{TweetyPie => TweetypieStitchClient} +import com.ExTwitter.tweetypie.{thriftscala => TP} +import com.ExTwitter.util.Return +import com.ExTwitter.util.Try object TweetVisibilityFilter { val DefaultTweetIncludes = Set(TP.TweetInclude.TweetFieldId(TP.Tweet.IdField.id)) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/UrtUnorderedExcludeIdsCursorFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/UrtUnorderedExcludeIdsCursorFilter.scala index fe664e7fe..13bce2efb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/UrtUnorderedExcludeIdsCursorFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/UrtUnorderedExcludeIdsCursorFilter.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.filter +package com.ExTwitter.product_mixer.component_library.filter -import com.twitter.product_mixer.component_library.model.cursor.UrtUnorderedExcludeIdsCursor -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.cursor.UrtUnorderedExcludeIdsCursor +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch case class UrtUnorderedExcludeIdsCursorFilter[ Candidate <: UniversalNoun[Long], diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/BUILD.bazel index deb6081bf..7ab96d558 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/BUILD.bazel @@ -4,14 +4,14 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", - "src/thrift/com/twitter/socialgraph:thrift-scala", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", "strato/config/columns/lists/reads:core-strato-client", - "strato/src/main/scala/com/twitter/strato/client", + "strato/src/main/scala/com/ExTwitter/strato/client", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", "strato/config/columns/lists/reads:core-strato-client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/ListVisibilityFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/ListVisibilityFilter.scala index a3a08af32..31820859f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/ListVisibilityFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/list_visibility/ListVisibilityFilter.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.filter.list_visibility +package com.ExTwitter.product_mixer.component_library.filter.list_visibility -import com.twitter.product_mixer.component_library.model.candidate.TwitterListCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.socialgraph.thriftscala.SocialgraphList -import com.twitter.stitch.Stitch -import com.twitter.strato.catalog.Fetch -import com.twitter.strato.generated.client.lists.reads.CoreOnListClientColumn +import com.ExTwitter.product_mixer.component_library.model.candidate.ExTwitterListCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.socialgraph.thriftscala.SocialgraphList +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.strato.catalog.Fetch +import com.ExTwitter.strato.generated.client.lists.reads.CoreOnListClientColumn /* This Filter queries the core.List.strato column * on Strato, and filters out any lists that are not @@ -29,7 +29,7 @@ class ListVisibilityFilter[Candidate <: UniversalNoun[Long]]( ): Stitch[FilterResult[Candidate]] = { val listCandidates = candidates.collect { - case CandidateWithFeatures(candidate: TwitterListCandidate, _) => candidate + case CandidateWithFeatures(candidate: ExTwitterListCandidate, _) => candidate } Stitch @@ -43,7 +43,7 @@ class ListVisibilityFilter[Candidate <: UniversalNoun[Long]]( } }.map { allowedListIds => val (kept, excluded) = candidates.map(_.candidate).partition { - case candidate: TwitterListCandidate => allowedListIds.contains(candidate.id) + case candidate: ExTwitterListCandidate => allowedListIds.contains(candidate.id) case _ => true } FilterResult(kept, excluded) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/BUILD.bazel index afd5204bd..df471f4fa 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/BUILD.bazel @@ -4,11 +4,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/feature_hydrator/query/impressed_tweets", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/filter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/filter", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/TweetImpressionFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/TweetImpressionFilter.scala index dd8cee2bf..512e0f2a8 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/TweetImpressionFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/filter/tweet_impression/TweetImpressionFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.filter.tweet_impression +package com.ExTwitter.product_mixer.component_library.filter.tweet_impression -import com.twitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweets -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.feature_hydrator.query.impressed_tweets.ImpressedTweets +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Filters out tweets that the user has seen diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/BUILD index 35e791b9b..cbca6c6be 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/BUILD @@ -4,13 +4,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/gate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/quality_factor", - "src/scala/com/twitter/ml/featurestore/lib", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/gate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/quality_factor", + "src/scala/com/ExTwitter/ml/featurestore/lib", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/DefinedCountryCodeGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/DefinedCountryCodeGate.scala index 7fc6fd501..4d61dcb0a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/DefinedCountryCodeGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/DefinedCountryCodeGate.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object DefinedCountryCodeGate extends Gate[PipelineQuery] { override val identifier: GateIdentifier = GateIdentifier("DefinedCountryCode") diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FeatureGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FeatureGate.scala index 8530e4b7b..02f500bcb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FeatureGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FeatureGate.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.MissingFeatureException -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.gate.GateResult -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.pipeline_failure.MisconfiguredFeatureMapFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.stitch.Stitch -import com.twitter.util.Return -import com.twitter.util.Throw +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.MissingFeatureException +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.gate.GateResult +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.MisconfiguredFeatureMapFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.stitch.Stitch +import com.ExTwitter.util.Return +import com.ExTwitter.util.Throw trait ShouldContinue[Value] { @@ -21,7 +21,7 @@ trait ShouldContinue[Value] { def onFailedFeature(t: Throwable): GateResult = GateResult.Stop /** - * If the [[Feature]], or [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]], + * If the [[Feature]], or [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]], * is missing use this value */ def onMissingFeature: GateResult = GateResult.Stop diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FirstPageGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FirstPageGate.scala index ef2d485ac..7c6012cb4 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FirstPageGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/FirstPageGate.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * Gate used in first page. Use request cursor to determine if the gate should be open or closed. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NoCandidatesGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NoCandidatesGate.scala index db3406edf..1597ce4bd 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NoCandidatesGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NoCandidatesGate.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.gate.QueryAndCandidateGate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.gate.QueryAndCandidateGate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A Gate that only continues if the previously returned candidates are empty. This is useful diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyAdsQueryStringGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyAdsQueryStringGate.scala index 303fe3d13..377eb176b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyAdsQueryStringGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyAdsQueryStringGate.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object NonEmptyAdsQueryStringGate extends Gate[PipelineQuery with AdsQuery] { override val identifier: GateIdentifier = GateIdentifier("NonEmptyAdsQueryString") diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyCandidatesGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyCandidatesGate.scala index cdc6fe13d..e34bc9df6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyCandidatesGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/NonEmptyCandidatesGate.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.gate.QueryAndCandidateGate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.gate.QueryAndCandidateGate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A Gate that only continues if the previously returned candidates are not empty. This is useful diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/QualityFactorGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/QualityFactorGate.scala index e0fc5e4b6..bd343e427 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/QualityFactorGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/QualityFactorGate.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.gate +package com.ExTwitter.product_mixer.component_library.gate -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.ComponentIdentifier -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.quality_factor.HasQualityFactorStatus -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.ComponentIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.quality_factor.HasQualityFactorStatus +import com.ExTwitter.stitch.Stitch /** * A Gate that only continues if the quality factor value of the pipeline is above the given diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/AnyCandidatesWithoutFeatureGate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/AnyCandidatesWithoutFeatureGate.scala index 3e859549d..8b9281075 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/AnyCandidatesWithoutFeatureGate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/AnyCandidatesWithoutFeatureGate.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.gate.any_candidates_without_feature +package com.ExTwitter.product_mixer.component_library.gate.any_candidates_without_feature -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.functional_component.gate.QueryAndCandidateGate -import com.twitter.product_mixer.core.model.common.identifier.GateIdentifier -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.functional_component.gate.QueryAndCandidateGate +import com.ExTwitter.product_mixer.core.model.common.identifier.GateIdentifier +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch /** * A gate that enables a component only if any candidates are missing a specific feature. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/BUILD.bazel index 7d26d6370..a2d9295e3 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/gate/any_candidates_without_feature/BUILD.bazel @@ -4,10 +4,10 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/gate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/gate", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/common", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ArticleCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ArticleCandidate.scala index 650307acd..90eb14c12 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ArticleCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ArticleCandidate.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun trait BaseArticleCandidate extends UniversalNoun[Int] /** * Canonical ArticleCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/AudioSpaceCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/AudioSpaceCandidate.scala index 9c17dc647..ee69d77f0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/AudioSpaceCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/AudioSpaceCandidate.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical AudioSpaceCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/BUILD index e92b67378..7535b5b9f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/BUILD @@ -5,9 +5,9 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CardCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CardCandidate.scala index 3c7980de1..4ade1b367 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CardCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CardCandidate.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical CardCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CommerceItemCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CommerceItemCandidate.scala index 8970e7840..638507101 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CommerceItemCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CommerceItemCandidate.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical CommerceProductCandidate model which encapsulates information about a specific Product. @@ -10,11 +10,11 @@ import com.twitter.product_mixer.core.model.common.UniversalNoun * @note Both CommerceProduct and CommerceProductGroups (below) can be shown in the same * TimelineModule (i.e Carousel) * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -92,11 +92,11 @@ object CommerceProductCandidate { * @note Both CommerceProduct (above) and CommerceProductGroups can be shown in the same * TimelineModule (i.e Carousel) * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CursorCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CursorCandidate.scala index fd9c82cd9..368050ac5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CursorCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/CursorCandidate.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun sealed trait CursorType case object PreviousCursor extends CursorType @@ -9,11 +9,11 @@ case object NextCursor extends CursorType /** * Canonical CursorCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMConvoCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMConvoCandidate.scala index 594fe96b5..8fec667c7 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMConvoCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMConvoCandidate.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun trait BaseDMConvoCandidate extends UniversalNoun[String] { def lastReadableEventId: Option[Long] @@ -9,11 +9,11 @@ trait BaseDMConvoCandidate extends UniversalNoun[String] { /** * Canonical DMConvoCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -86,11 +86,11 @@ object DMConvoCandidate { /** * Canonical DMConvoSearchCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMEventCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMEventCandidate.scala index 370b31933..60c3c5238 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMEventCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/DMEventCandidate.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical DM Events such as Message Create, Conversation Create, Join conversation, etc model. * Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -81,11 +81,11 @@ object DMEventCandidate { * @note historically this was used to represent events from Elastic * Search rather than Strato. Now deprecated in favor of DMEvent. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/GenericSummaryCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/GenericSummaryCandidate.scala index 3a884f8cd..4dd34ed28 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/GenericSummaryCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/GenericSummaryCandidate.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical GenericSummaryCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/LabelCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/LabelCandidate.scala index 444fb82f0..43e4dbf73 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/LabelCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/LabelCandidate.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical LabelCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/MomentAnnotationCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/MomentAnnotationCandidate.scala index 77464823f..c7f9f044c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/MomentAnnotationCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/MomentAnnotationCandidate.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical MomentAnnotationCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/PromptCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/PromptCandidate.scala index 5ebaf0d93..36c9d66e1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/PromptCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/PromptCandidate.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun sealed trait BasePromptCandidate[+T] extends UniversalNoun[T] /** * Canonical InlinePromptCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -76,11 +76,11 @@ object InlinePromptCandidate { /** * Canonical CompactPromptCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -146,11 +146,11 @@ object CompactPromptCandidate { /** * Canonical FullCoverPromptCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -214,11 +214,11 @@ object FullCoverPromptCandidate { /** * Canonical HalfCoverPromptCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -285,11 +285,11 @@ object HalfCoverPromptCandidate { /** * Canonical PromptCarouselTileCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -356,11 +356,11 @@ object PromptCarouselTileCandidate { /** * Canonical RelevancePromptCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ShowAlertCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ShowAlertCandidate.scala index 7c5e1b8ad..1e98c7f2c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ShowAlertCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ShowAlertCandidate.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical ShowAlertCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TopicCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TopicCandidate.scala index 53844c419..d32b81224 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TopicCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TopicCandidate.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun trait BaseTopicCandidate extends UniversalNoun[Long] /** * Canonical TopicCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -78,11 +78,11 @@ object TopicCandidate { /** * Canonical CategorizedTopicCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TweetCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TweetCandidate.scala index bea57aa51..6cb8ed324 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TweetCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TweetCandidate.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate import com.fasterxml.jackson.annotation.JsonTypeName -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun // JSON type annotations are needed for identifying renderable entities to Turntable, most candidates // do not need them. @@ -12,11 +12,11 @@ trait BaseTweetCandidate extends UniversalNoun[Long] /** * Canonical TweetCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -88,6 +88,6 @@ object TweetAuthorIdFeature extends Feature[TweetCandidate, Long] /** * Whether the tweet should be pinned when marshalled to URT or not. - * See [[com.twitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder]] + * See [[com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.tweet.TweetCandidateUrtItemBuilder]] */ object IsPinnedFeature extends Feature[TweetCandidate, Boolean] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TwitterListCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TwitterListCandidate.scala index b9befe9f6..62671e0d4 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TwitterListCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/TwitterListCandidate.scala @@ -1,29 +1,29 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** - * Canonical TwitterListCandidate model. Always prefer this version over all other variants. + * Canonical ExTwitterListCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, * the equals() implementation must be updated in order to handle class inheritor equality * (see note on the equals method below) */ -final class TwitterListCandidate private ( +final class ExTwitterListCandidate private ( override val id: Long) extends UniversalNoun[Long] { /** * @inheritdoc */ - override def canEqual(that: Any): Boolean = that.isInstanceOf[TwitterListCandidate] + override def canEqual(that: Any): Boolean = that.isInstanceOf[ExTwitterListCandidate] /** * High performance implementation of equals method that leverages: @@ -39,7 +39,7 @@ final class TwitterListCandidate private ( */ override def equals(that: Any): Boolean = that match { - case candidate: TwitterListCandidate => + case candidate: ExTwitterListCandidate => ( (this eq candidate) || ((hashCode == candidate.hashCode) && (id == candidate.id)) @@ -69,6 +69,6 @@ final class TwitterListCandidate private ( override val hashCode: Int = id.## } -object TwitterListCandidate { - def apply(id: Long): TwitterListCandidate = new TwitterListCandidate(id) +object ExTwitterListCandidate { + def apply(id: Long): ExTwitterListCandidate = new ExTwitterListCandidate(id) } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/UserCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/UserCandidate.scala index 9e34e5054..9578102b6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/UserCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/UserCandidate.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.model.candidate +package com.ExTwitter.product_mixer.component_library.model.candidate import com.fasterxml.jackson.annotation.JsonTypeName -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun // JSON type annotations are needed for identifying renderable entities to Turntable, most candidates // do not need them. @@ -12,11 +12,11 @@ trait BaseUserCandidate extends UniversalNoun[Long] /** * Canonical UserCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/AdsCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/AdsCandidate.scala index b00f4505f..2c13e262f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/AdsCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/AdsCandidate.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.model.candidate.ads +package com.ExTwitter.product_mixer.component_library.model.candidate.ads -import com.twitter.adserver.{thriftscala => adsthrift} -import com.twitter.product_mixer.component_library.model.candidate.BaseTweetCandidate -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.adserver.{thriftscala => adsthrift} +import com.ExTwitter.product_mixer.component_library.model.candidate.BaseTweetCandidate +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * An [[AdsCandidate]] represents a piece of promoted content. @@ -19,11 +19,11 @@ sealed trait AdsCandidate extends UniversalNoun[Any] { /** * Canonical AdsTweetCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/BUILD index 3627c158e..bcb9b7dbb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads/BUILD @@ -6,17 +6,17 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/model", - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/model/promoted", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/model", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/model/promoted", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", ], exports = [ - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/model", - "ads-injection/lib/src/main/scala/com/twitter/goldfinch/model/promoted", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "src/thrift/com/twitter/ads/adserver:adserver_common-scala", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/model", + "ads-injection/lib/src/main/scala/com/ExTwitter/goldfinch/model/promoted", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "src/thrift/com/ExTwitter/ads/adserver:adserver_common-scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdCreativeCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdCreativeCandidate.scala index 42622b6c4..57e4b19ac 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdCreativeCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdCreativeCandidate.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.model.candidate.hubble +package com.ExTwitter.product_mixer.component_library.model.candidate.hubble -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.slice.AdType +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.AdType /** * Canonical AdCreativeCandidate model which describes an Ad Creative from an ad management * perspective. It can be a tweet, or account, and has a 1:n relationship with ad units. Always * prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdGroupCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdGroupCandidate.scala index 60f726dac..2060d7d18 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdGroupCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdGroupCandidate.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.model.candidate.hubble +package com.ExTwitter.product_mixer.component_library.model.candidate.hubble -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical AdGroupCandidate model which describes an "Ad Group" from the the Ad Management @@ -8,11 +8,11 @@ import com.twitter.product_mixer.core.model.common.UniversalNoun * advertisers to manage and report different line items belonging to a single ad. Always prefer * this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdUnitCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdUnitCandidate.scala index 1a96ff212..b51c52c3a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdUnitCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/AdUnitCandidate.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.model.candidate.hubble +package com.ExTwitter.product_mixer.component_library.model.candidate.hubble -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical AdUnitCandidate model which describes an "Ad" from the Ad Management perspective. It is * based on the AdUnit table in Ads DB, and provides a candidate for advertisers to manage and * report on their advertising configurations.Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/BUILD index d9e52eeb9..b18699404 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/BUILD @@ -5,11 +5,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/CampaignCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/CampaignCandidate.scala index 7a7ea3481..6b1ca6bc1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/CampaignCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/CampaignCandidate.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.model.candidate.hubble +package com.ExTwitter.product_mixer.component_library.model.candidate.hubble -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical CampaignCandidate model which describes a "Campaign" from the Ads Management * perspective. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/FundingSourceCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/FundingSourceCandidate.scala index c119280a0..3f69e384d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/FundingSourceCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/hubble/FundingSourceCandidate.scala @@ -1,16 +1,16 @@ -package com.twitter.product_mixer.component_library.model.candidate.hubble +package com.ExTwitter.product_mixer.component_library.model.candidate.hubble -import com.twitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun /** * Canonical FundingSourceCandidate model which describes a "Funding Instrument" from the the Ad * Management perspective. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/BUILD index 2f373e3e1..95fca2318 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/BUILD @@ -5,13 +5,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/QuerySuggestionCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/QuerySuggestionCandidate.scala index 4c6cd70ad..4add3e916 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/QuerySuggestionCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/QuerySuggestionCandidate.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.model.candidate.suggestion +package com.ExTwitter.product_mixer.component_library.model.candidate.suggestion -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.slice.TypeaheadMetadata +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.TypeaheadMetadata /** * Represents a query suggestion in typeahead @@ -11,11 +11,11 @@ sealed trait BaseQuerySuggestionCandidate[+T] extends UniversalNoun[T] /** * Canonical QuerySuggestionCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, @@ -90,11 +90,11 @@ object QuerySuggestionCandidate { /** * Canonical TypeaheadQueryCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/SpellingSuggestionCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/SpellingSuggestionCandidate.scala index c946d29c3..a55d0edcb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/SpellingSuggestionCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/suggestion/SpellingSuggestionCandidate.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.model.candidate.suggestion +package com.ExTwitter.product_mixer.component_library.model.candidate.suggestion -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.suggestion.SpellingActionType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.suggestion.TextResult +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.suggestion.SpellingActionType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.suggestion.TextResult /** * Canonical SpellingSuggestionCandidate model. Always prefer this version over all other variants. * - * @note Any additional fields should be added as a [[com.twitter.product_mixer.core.feature.Feature]] - * on the candidate's [[com.twitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the + * @note Any additional fields should be added as a [[com.ExTwitter.product_mixer.core.feature.Feature]] + * on the candidate's [[com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap]]. If the * features come from the candidate source itself (as opposed to hydrated via a - * [[com.twitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), - * then [[com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] + * [[com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.CandidateFeatureHydrator]]), + * then [[com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig.featuresFromCandidateSourceTransformers]] * can be used to extract features from the candidate source response. * * @note This class should always remain `final`. If for any reason the `final` modifier is removed, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/BUILD index 9574c702e..905b0e394 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/BUILD @@ -5,13 +5,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", ], exports = [ - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/item", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/item", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/UnifiedTrendEventCandidate.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/UnifiedTrendEventCandidate.scala index acb0c351c..cf98d00fe 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/UnifiedTrendEventCandidate.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/trends_events/UnifiedTrendEventCandidate.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.model.candidate.trends_events +package com.ExTwitter.product_mixer.component_library.model.candidate.trends_events -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.model.common.UniversalNoun -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.event.EventSummaryDisplayType -import com.twitter.product_mixer.core.model.marshalling.response.urt.item.trend.GroupedTrend -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageVariant -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.Url -import com.twitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclosureType +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.model.common.UniversalNoun +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.event.EventSummaryDisplayType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.item.trend.GroupedTrend +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ImageVariant +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.Url +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.promoted.DisclosureType /** * An [[UnifiedTrendEventCandidate]] represents a piece of Event or Trend content. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/BUILD index beb7ae2a9..ed71b0826 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/BUILD @@ -5,15 +5,15 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/operation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/scala/com/twitter/search/common/util/bloomfilter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/operation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/scala/com/ExTwitter/search/common/util/bloomfilter", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/urt/operation", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/scala/com/twitter/search/common/util/bloomfilter", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/urt/operation", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/scala/com/ExTwitter/search/common/util/bloomfilter", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/OrderedCursor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/OrderedCursor.scala index 647250ba0..762010bf6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/OrderedCursor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/OrderedCursor.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.model.cursor +package com.ExTwitter.product_mixer.component_library.model.cursor -import com.twitter.product_mixer.core.pipeline.PipelineCursor -import com.twitter.product_mixer.core.pipeline.UrtPipelineCursor -import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorType -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.{ +import com.ExTwitter.product_mixer.core.pipeline.PipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.UrtPipelineCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.CursorType +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.{ CursorType => UrtCursorType } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/PassThroughCursor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/PassThroughCursor.scala index 4b6c9bec2..d3e61d15e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/PassThroughCursor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/PassThroughCursor.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.model.cursor +package com.ExTwitter.product_mixer.component_library.model.cursor -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorType -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.UrtPipelineCursor -import com.twitter.product_mixer.core.model.marshalling.response.urt.operation.{ +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.CursorType +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.UrtPipelineCursor +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.operation.{ CursorType => UrtCursorType } diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedBloomFilterCursor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedBloomFilterCursor.scala index 1b988256c..e983d724b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedBloomFilterCursor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedBloomFilterCursor.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.model.cursor +package com.ExTwitter.product_mixer.component_library.model.cursor -import com.twitter.product_mixer.core.pipeline.PipelineCursor -import com.twitter.product_mixer.core.pipeline.UrtPipelineCursor -import com.twitter.search.common.util.bloomfilter.AdaptiveLongIntBloomFilter +import com.ExTwitter.product_mixer.core.pipeline.PipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.UrtPipelineCursor +import com.ExTwitter.search.common.util.bloomfilter.AdaptiveLongIntBloomFilter /** * Cursor model that may be used when cursoring over a unordered candidate source. On each server diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedExcludeIdsCursor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedExcludeIdsCursor.scala index bc3c4b83e..c85f7f686 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedExcludeIdsCursor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UnorderedExcludeIdsCursor.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.model.cursor +package com.ExTwitter.product_mixer.component_library.model.cursor -import com.twitter.product_mixer.core.pipeline.PipelineCursor -import com.twitter.product_mixer.core.pipeline.UrtPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.UrtPipelineCursor /** * URT Cursor model that may be used when cursoring over a unordered candidate source. On each server diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UrtPlaceholderCursor.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UrtPlaceholderCursor.scala index aeb23de72..0fcaa822c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UrtPlaceholderCursor.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/cursor/UrtPlaceholderCursor.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.model.cursor +package com.ExTwitter.product_mixer.component_library.model.cursor -import com.twitter.product_mixer.core.pipeline.UrtPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.UrtPipelineCursor /** * Cursor model that may be used when we just need a placeholder but no real cursor value. Since URT diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/feature/flexible_injection_pipeline/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/feature/flexible_injection_pipeline/BUILD.bazel index 728bad076..7cd6e583a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/feature/flexible_injection_pipeline/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/feature/flexible_injection_pipeline/BUILD.bazel @@ -6,17 +6,17 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "strato/config/columns/ml/featureStore:featureStore-strato-client", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", "strato/config/columns/ml/featureStore:featureStore-strato-client", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/BUILD index 54b01577e..08ecab011 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/BUILD @@ -5,11 +5,11 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation/slice", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/marshalling/response/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation/slice", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/marshalling/response/slice", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/SliceItemPresentation.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/SliceItemPresentation.scala index f2128529b..0e3b4d8c9 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/SliceItemPresentation.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/slice/SliceItemPresentation.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.model.presentation.slice +package com.ExTwitter.product_mixer.component_library.model.presentation.slice -import com.twitter.product_mixer.core.model.common.presentation.slice.BaseSliceItemPresentation -import com.twitter.product_mixer.core.model.marshalling.response.slice.SliceItem +import com.ExTwitter.product_mixer.core.model.common.presentation.slice.BaseSliceItemPresentation +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.SliceItem case class SliceItemPresentation(override val sliceItem: SliceItem) extends BaseSliceItemPresentation diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/BUILD index 062428d76..9f976c220 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/BUILD @@ -5,9 +5,9 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation/urt", ], exports = [ - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/model/common/presentation/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/model/common/presentation/urt", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/ConversationModuleItem.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/ConversationModuleItem.scala index 732c7273e..9a39f1d42 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/ConversationModuleItem.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/ConversationModuleItem.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.model.presentation.urt +package com.ExTwitter.product_mixer.component_library.model.presentation.urt -import com.twitter.product_mixer.core.model.common.presentation.urt.BaseUrtItemPresentation -import com.twitter.product_mixer.core.model.common.presentation.urt.IsDispensable -import com.twitter.product_mixer.core.model.common.presentation.urt.WithItemTreeDisplay +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.BaseUrtItemPresentation +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.IsDispensable +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.WithItemTreeDisplay trait ConversationModuleItem extends BaseUrtItemPresentation diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtItemPresentation.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtItemPresentation.scala index 9286ce4dd..f826b06ef 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtItemPresentation.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtItemPresentation.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.model.presentation.urt +package com.ExTwitter.product_mixer.component_library.model.presentation.urt -import com.twitter.product_mixer.core.model.common.presentation.urt.BaseUrtItemPresentation -import com.twitter.product_mixer.core.model.common.presentation.urt.BaseUrtModulePresentation -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineItem +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.BaseUrtItemPresentation +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.BaseUrtModulePresentation +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineItem case class UrtItemPresentation( override val timelineItem: TimelineItem, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtModulePresentation.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtModulePresentation.scala index 5471d8a55..61e981a2f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtModulePresentation.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtModulePresentation.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.model.presentation.urt +package com.ExTwitter.product_mixer.component_library.model.presentation.urt -import com.twitter.product_mixer.core.model.common.presentation.urt.BaseUrtModulePresentation -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineModule +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.BaseUrtModulePresentation +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineModule final case class UrtModulePresentation( override val timelineModule: TimelineModule) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtOperationPresentation.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtOperationPresentation.scala index cbfef0cb2..55d11cf2f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtOperationPresentation.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/presentation/urt/UrtOperationPresentation.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.model.presentation.urt +package com.ExTwitter.product_mixer.component_library.model.presentation.urt -import com.twitter.product_mixer.core.model.common.presentation.urt.BaseUrtOperationPresentation -import com.twitter.product_mixer.core.model.marshalling.response.urt.TimelineOperation +import com.ExTwitter.product_mixer.core.model.common.presentation.urt.BaseUrtOperationPresentation +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.TimelineOperation final case class UrtOperationPresentation( override val timelineOperation: TimelineOperation) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/AdsQuery.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/AdsQuery.scala index 5525d984a..2f81be768 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/AdsQuery.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/AdsQuery.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.model.query.ads +package com.ExTwitter.product_mixer.component_library.model.query.ads -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.dspbidder.commons.{thriftscala => dsp} +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.dspbidder.commons.{thriftscala => dsp} /** * AdsQuery holds request-time fields required by our ads candidate pipelines diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/BUILD index eb9b9d5d0..c0e586f33 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads/BUILD @@ -5,13 +5,13 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "dspbidder/thrift/src/main/thrift/com/twitter/dspbidder/commons:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", + "dspbidder/thrift/src/main/thrift/com/ExTwitter/dspbidder/commons:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", ], exports = [ - "dspbidder/thrift/src/main/thrift/com/twitter/dspbidder/commons:thrift-scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", - "src/thrift/com/twitter/ads/adserver:adserver_rpc-scala", + "dspbidder/thrift/src/main/thrift/com/ExTwitter/dspbidder/commons:thrift-scala", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", + "src/thrift/com/ExTwitter/ads/adserver:adserver_rpc-scala", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/AccountRecommendationsMixerModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/AccountRecommendationsMixerModule.scala index db100f9ed..2492b73bb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/AccountRecommendationsMixerModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/AccountRecommendationsMixerModule.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.annotations.Flags -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.account_recommendations_mixer.thriftscala.AccountRecommendationsMixer -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.annotations.Flags +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.account_recommendations_mixer.thriftscala.AccountRecommendationsMixer +import com.ExTwitter.util.Duration /** * Implementation with reasonable defaults for an idempotent Account Recommendations Mixer Thrift client. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/BUILD index 020a0cc52..f1af5c803 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/BUILD @@ -5,7 +5,7 @@ scala_library( strict_deps = True, tags = ["bazel-compatible"], dependencies = [ - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "account-recommendations-mixer/thrift/src/main/thrift:thrift-scala", "content-recommender/thrift/src/main/thrift:thrift-scala", "cr-mixer/thrift/src/main/thrift:thrift-scala", @@ -16,34 +16,34 @@ scala_library( "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", - "finatra/utils/src/main/java/com/twitter/finatra/annotations", + "finatra/utils/src/main/java/com/ExTwitter/finatra/annotations", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "home-scorer/thrift/src/main/thrift:thrift-scala", "interests_discovery/thrift/src/main/thrift:service-thrift-scala", "onboarding/service/thrift/src/main/thrift:thrift-scala", "people-discovery/api/thrift/src/main/thrift:thrift-scala", - "src/scala/com/twitter/summingbird_internal/runner/store_config", - "src/thrift/com/twitter/gizmoduck:thrift-scala", - "src/thrift/com/twitter/search:earlybird-scala", - "src/thrift/com/twitter/socialgraph:thrift-scala", - "src/thrift/com/twitter/timelinemixer:thrift-scala", - "src/thrift/com/twitter/timelineranker:thrift-scala", - "src/thrift/com/twitter/timelines/impression_store:thrift-scala", - "src/thrift/com/twitter/timelinescorer:thrift-scala", - "src/thrift/com/twitter/timelineservice:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", + "src/scala/com/ExTwitter/summingbird_internal/runner/store_config", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", + "src/thrift/com/ExTwitter/search:earlybird-scala", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", + "src/thrift/com/ExTwitter/timelinemixer:thrift-scala", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_store:thrift-scala", + "src/thrift/com/ExTwitter/timelinescorer:thrift-scala", + "src/thrift/com/ExTwitter/timelineservice:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", "stitch/stitch-gizmoduck", "stitch/stitch-socialgraph", "stitch/stitch-timelineservice/src/main/scala", "stitch/stitch-tweetypie", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/store", - "tweetconvosvc/client/src/main/scala/com/twitter/tweetconvosvc/client/builder", - "user_session_store/src/main/scala/com/twitter/user_session_store/config", - "user_session_store/src/main/scala/com/twitter/user_session_store/impl/manhattan/readonly", - "user_session_store/src/main/scala/com/twitter/user_session_store/impl/manhattan/readwrite", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/store", + "tweetconvosvc/client/src/main/scala/com/ExTwitter/tweetconvosvc/client/builder", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store/config", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store/impl/manhattan/readonly", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store/impl/manhattan/readwrite", ], exports = [ - "3rdparty/src/jvm/com/twitter/storehaus:core", + "3rdparty/src/jvm/com/ExTwitter/storehaus:core", "account-recommendations-mixer/thrift/src/main/thrift:thrift-scala", "content-recommender/thrift/src/main/thrift:thrift-scala", "finagle/finagle-memcached/src/main/scala", @@ -51,22 +51,22 @@ scala_library( "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/inject/inject-core/src/main/scala", "finatra/inject/inject-thrift-client/src/main/scala", - "finatra/utils/src/main/java/com/twitter/finatra/annotations", + "finatra/utils/src/main/java/com/ExTwitter/finatra/annotations", "follow-recommendations-service/thrift/src/main/thrift:thrift-scala", "interests_discovery/thrift/src/main/thrift:service-thrift-scala", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "src/scala/com/twitter/summingbird_internal/runner/store_config", - "src/thrift/com/twitter/gizmoduck:thrift-scala", - "src/thrift/com/twitter/socialgraph:thrift-scala", - "src/thrift/com/twitter/timelineranker:thrift-scala", - "src/thrift/com/twitter/timelines/impression_store:thrift-scala", - "src/thrift/com/twitter/tweetypie:service-scala", + "src/scala/com/ExTwitter/summingbird_internal/runner/store_config", + "src/thrift/com/ExTwitter/gizmoduck:thrift-scala", + "src/thrift/com/ExTwitter/socialgraph:thrift-scala", + "src/thrift/com/ExTwitter/timelineranker:thrift-scala", + "src/thrift/com/ExTwitter/timelines/impression_store:thrift-scala", + "src/thrift/com/ExTwitter/tweetypie:service-scala", "stitch/stitch-gizmoduck", "stitch/stitch-socialgraph", "stitch/stitch-tweetypie", - "timelines/src/main/scala/com/twitter/timelines/impressionstore/store", - "user_session_store/src/main/scala/com/twitter/user_session_store/config", - "user_session_store/src/main/scala/com/twitter/user_session_store/impl/manhattan/readonly", - "user_session_store/src/main/scala/com/twitter/user_session_store/impl/manhattan/readwrite", + "timelines/src/main/scala/com/ExTwitter/timelines/impressionstore/store", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store/config", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store/impl/manhattan/readonly", + "user_session_store/src/main/scala/com/ExTwitter/user_session_store/impl/manhattan/readwrite", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ConversationServiceModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ConversationServiceModule.scala index dcba0279b..9d049c981 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ConversationServiceModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ConversationServiceModule.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.tweetconvosvc.thriftscala.ConversationService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.tweetconvosvc.thriftscala.ConversationService +import com.ExTwitter.util.Duration import org.apache.thrift.protocol.TCompactProtocol object ConversationServiceModule diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/CrMixerClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/CrMixerClientModule.scala index 8c09804bd..d7925ddfc 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/CrMixerClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/CrMixerClientModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.cr_mixer.{thriftscala => t} -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.cr_mixer.{thriftscala => t} +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration object CrMixerClientModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/DarkTrafficFilterModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/DarkTrafficFilterModule.scala index 94b446232..1735affc1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/DarkTrafficFilterModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/DarkTrafficFilterModule.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.decider.Decider -import com.twitter.decider.RandomRecipient -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.thrift.service.Filterable -import com.twitter.finagle.thrift.service.ReqRepServicePerEndpointBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.annotations.Flags -import com.twitter.inject.thrift.modules.ReqRepDarkTrafficFilterModule +import com.ExTwitter.decider.Decider +import com.ExTwitter.decider.RandomRecipient +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.thrift.service.Filterable +import com.ExTwitter.finagle.thrift.service.ReqRepServicePerEndpointBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.annotations.Flags +import com.ExTwitter.inject.thrift.modules.ReqRepDarkTrafficFilterModule import scala.reflect.ClassTag class DarkTrafficFilterModule[MethodIface <: Filterable[MethodIface]: ClassTag]( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/EarlybirdModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/EarlybirdModule.scala index 0be558201..a4587838a 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/EarlybirdModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/EarlybirdModule.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.annotations.Flags -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.search.earlybird.{thriftscala => t} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.annotations.Flags +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.search.earlybird.{thriftscala => t} +import com.ExTwitter.util.Duration import org.apache.thrift.protocol.TCompactProtocol object EarlybirdModule diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ExploreRankerClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ExploreRankerClientModule.scala index b339eddce..6cf4e7aa5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ExploreRankerClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/ExploreRankerClientModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.explore_ranker.thriftscala.ExploreRanker -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.annotations.Flags -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.explore_ranker.thriftscala.ExploreRanker +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.annotations.Flags +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration object ExploreRankerClientModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/FollowRecommenderServiceModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/FollowRecommenderServiceModule.scala index d394290b7..8471b4d09 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/FollowRecommenderServiceModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/FollowRecommenderServiceModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration +import com.ExTwitter.follow_recommendations.thriftscala.FollowRecommendationsThriftService +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration object FollowRecommenderServiceModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/GizmoduckClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/GizmoduckClientModule.scala index dc4e4afb8..9095d9bb7 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/GizmoduckClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/GizmoduckClientModule.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.gizmoduck.thriftscala.UserService -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.stitch.gizmoduck.Gizmoduck -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.gizmoduck.thriftscala.UserService +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.stitch.gizmoduck.Gizmoduck +import com.ExTwitter.util.Duration import javax.inject.Singleton /** diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/HomeScorerClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/HomeScorerClientModule.scala index 16823deb6..d94c6144f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/HomeScorerClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/HomeScorerClientModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.home_scorer.{thriftscala => t} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.home_scorer.{thriftscala => t} +import com.ExTwitter.util.Duration object HomeScorerClientModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/InterestsDiscoveryServiceModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/InterestsDiscoveryServiceModule.scala index f4a5d211d..84117291d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/InterestsDiscoveryServiceModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/InterestsDiscoveryServiceModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.interests_discovery.thriftscala.InterestsDiscoveryService -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration +import com.ExTwitter.interests_discovery.thriftscala.InterestsDiscoveryService +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration object InterestsDiscoveryServiceModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/OnboardingTaskServiceModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/OnboardingTaskServiceModule.scala index fd564eb9f..3e4505016 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/OnboardingTaskServiceModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/OnboardingTaskServiceModule.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.onboarding.task.service.thriftscala.TaskService -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.util.Duration -import com.twitter.conversions.DurationOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.onboarding.task.service.thriftscala.TaskService +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ object OnboardingTaskServiceModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/PeopleDiscoveryServiceModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/PeopleDiscoveryServiceModule.scala index c9c1ab7a7..3eb5620e6 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/PeopleDiscoveryServiceModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/PeopleDiscoveryServiceModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.peoplediscovery.api.thriftscala.ThriftPeopleDiscoveryService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.peoplediscovery.api.thriftscala.ThriftPeopleDiscoveryService +import com.ExTwitter.util.Duration /** * Implementation with reasonable defaults for an idempotent People Discovery Thrift client. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/SocialGraphServiceModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/SocialGraphServiceModule.scala index a37531260..3731d905d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/SocialGraphServiceModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/SocialGraphServiceModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.socialgraph.thriftscala.SocialGraphService -import com.twitter.stitch.socialgraph.SocialGraph +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.socialgraph.thriftscala.SocialGraphService +import com.ExTwitter.stitch.socialgraph.SocialGraph import javax.inject.Singleton object SocialGraphServiceModule diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineMixerClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineMixerClientModule.scala index d36d2dfd7..1fb31a9ba 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineMixerClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineMixerClientModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.timelinemixer.{thriftscala => t} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.timelinemixer.{thriftscala => t} +import com.ExTwitter.util.Duration object TimelineMixerClientModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineRankerClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineRankerClientModule.scala index 3a28cb3d1..497b75f5b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineRankerClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineRankerClientModule.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.ThriftMux -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.timelineranker.{thriftscala => t} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.ThriftMux +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.timelineranker.{thriftscala => t} +import com.ExTwitter.util.Duration import org.apache.thrift.protocol.TCompactProtocol object TimelineRankerClientModule diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineScorerClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineScorerClientModule.scala index 32310303b..885dfc82e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineScorerClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineScorerClientModule.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.timelinescorer.{thriftscala => t} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.timelinescorer.{thriftscala => t} +import com.ExTwitter.util.Duration object TimelineScorerClientModule extends ThriftMethodBuilderClientModule[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineServiceClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineServiceClientModule.scala index 115136fdb..55b8663ee 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineServiceClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TimelineServiceClientModule.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.stitch.timelineservice.TimelineService -import com.twitter.timelineservice.{thriftscala => t} -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.stitch.timelineservice.TimelineService +import com.ExTwitter.timelineservice.{thriftscala => t} +import com.ExTwitter.util.Duration import javax.inject.Singleton object TimelineServiceClientModule diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetImpressionStoreModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetImpressionStoreModule.scala index 3929a1437..b234e0b37 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetImpressionStoreModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetImpressionStoreModule.scala @@ -1,25 +1,25 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.Memcached -import com.twitter.finagle.Resolver -import com.twitter.finagle.memcached.protocol.Command -import com.twitter.finagle.memcached.protocol.Response -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.mtls.client.MtlsStackClient._ -import com.twitter.finagle.param.HighResTimer -import com.twitter.finagle.service.RetryExceptionsFilter -import com.twitter.finagle.service.RetryPolicy -import com.twitter.finagle.service.StatsFilter -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.storehaus.ReadableStore -import com.twitter.timelines.impressionstore.store.TweetImpressionsStore -import com.twitter.timelines.impressionstore.thriftscala.ImpressionList +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.Memcached +import com.ExTwitter.finagle.Resolver +import com.ExTwitter.finagle.memcached.protocol.Command +import com.ExTwitter.finagle.memcached.protocol.Response +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.mtls.client.MtlsStackClient._ +import com.ExTwitter.finagle.param.HighResTimer +import com.ExTwitter.finagle.service.RetryExceptionsFilter +import com.ExTwitter.finagle.service.RetryPolicy +import com.ExTwitter.finagle.service.StatsFilter +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.storehaus.ReadableStore +import com.ExTwitter.timelines.impressionstore.store.TweetImpressionsStore +import com.ExTwitter.timelines.impressionstore.thriftscala.ImpressionList import javax.inject.Singleton -object TweetImpressionStoreModule extends TwitterModule { +object TweetImpressionStoreModule extends ExTwitterModule { private val TweetImpressionMemcacheWilyPath = "/s/cache/timelines_impressionstore:twemcaches" private val tweetImpressionLabel = "timelinesTweetImpressions" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetyPieClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetyPieClientModule.scala index f2d2a59c0..e091ac4de 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetyPieClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/TweetyPieClientModule.scala @@ -1,17 +1,17 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.conversions.PercentOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.thrift.ClientId -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.stitch.tweetypie.TweetyPie -import com.twitter.tweetypie.thriftscala.TweetService -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.conversions.PercentOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.thrift.ClientId +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.stitch.tweetypie.TweetyPie +import com.ExTwitter.tweetypie.thriftscala.TweetService +import com.ExTwitter.util.Duration import javax.inject.Singleton /** diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/UserSessionStoreModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/UserSessionStoreModule.scala index 4c1d983ca..23391cf2c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/UserSessionStoreModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/UserSessionStoreModule.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.module +package com.ExTwitter.product_mixer.component_library.module import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.user_session_store.ReadOnlyUserSessionStore -import com.twitter.user_session_store.ReadWriteUserSessionStore -import com.twitter.user_session_store.UserSessionDataset -import com.twitter.user_session_store.UserSessionDataset.UserSessionDataset -import com.twitter.user_session_store.config.manhattan.UserSessionStoreManhattanConfig -import com.twitter.user_session_store.impl.manhattan.readonly.ReadOnlyManhattanUserSessionStoreBuilder -import com.twitter.user_session_store.impl.manhattan.readwrite.ReadWriteManhattanUserSessionStoreBuilder +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.user_session_store.ReadOnlyUserSessionStore +import com.ExTwitter.user_session_store.ReadWriteUserSessionStore +import com.ExTwitter.user_session_store.UserSessionDataset +import com.ExTwitter.user_session_store.UserSessionDataset.UserSessionDataset +import com.ExTwitter.user_session_store.config.manhattan.UserSessionStoreManhattanConfig +import com.ExTwitter.user_session_store.impl.manhattan.readonly.ReadOnlyManhattanUserSessionStoreBuilder +import com.ExTwitter.user_session_store.impl.manhattan.readwrite.ReadWriteManhattanUserSessionStoreBuilder import javax.inject.Singleton -object UserSessionStoreModule extends TwitterModule { +object UserSessionStoreModule extends ExTwitterModule { private val ReadWriteAppId = "timelineservice_user_session_store" private val ReadWriteStagingDataset = "tls_user_session_store_nonprod" private val ReadWriteProdDataset = "tls_user_session_store" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/BUILD.bazel index 16d3773f0..6676a2e3c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/BUILD.bazel @@ -6,8 +6,8 @@ scala_library( dependencies = [ "cr-ml-ranker/thrift/src/main/thrift:thrift-scala", "finatra/inject/inject-core/src/main/scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/scorer/cr_ml_ranker", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/scorer/cr_ml_ranker", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/CrMlRankerModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/CrMlRankerModule.scala index 8c18d31b4..d52fd4fe1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/CrMlRankerModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/cr_ml_ranker/CrMlRankerModule.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.module.cr_ml_ranker +package com.ExTwitter.product_mixer.component_library.module.cr_ml_ranker import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.cr_ml_ranker.thriftscala.CrMLRanker -import com.twitter.finagle.thriftmux.MethodBuilder -import com.twitter.finatra.mtls.thriftmux.modules.MtlsClient -import com.twitter.inject.Injector -import com.twitter.inject.thrift.modules.ThriftMethodBuilderClientModule -import com.twitter.product_mixer.component_library.scorer.cr_ml_ranker.CrMlRankerScoreStitchClient -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.cr_ml_ranker.thriftscala.CrMLRanker +import com.ExTwitter.finagle.thriftmux.MethodBuilder +import com.ExTwitter.finatra.mtls.thriftmux.modules.MtlsClient +import com.ExTwitter.inject.Injector +import com.ExTwitter.inject.thrift.modules.ThriftMethodBuilderClientModule +import com.ExTwitter.product_mixer.component_library.scorer.cr_ml_ranker.CrMlRankerScoreStitchClient +import com.ExTwitter.util.Duration import javax.inject.Singleton case class CrMLRankerModule(totalTimeout: Duration = 100.milliseconds, batchSize: Int = 50) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/BUILD index 2f6ec6310..e860d2a67 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/BUILD @@ -7,24 +7,24 @@ scala_library( "finagle/finagle-http/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/http-client/src/main/scala", - "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations", + "finatra/inject/inject-app/src/main/java/com/ExTwitter/inject/annotations", "finatra/inject/inject-core/src/main/scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module/product_mixer_flags", - "product-mixer/shared-library/src/main/scala/com/twitter/product_mixer/shared_library/http_client", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module/product_mixer_flags", + "product-mixer/shared-library/src/main/scala/com/ExTwitter/product_mixer/shared_library/http_client", "util/util-core:scala", - "util/util-jackson/src/main/scala/com/twitter/util/jackson", - "util/util-security/src/main/scala/com/twitter/util/security", + "util/util-jackson/src/main/scala/com/ExTwitter/util/jackson", + "util/util-security/src/main/scala/com/ExTwitter/util/security", ], exports = [ "finagle/finagle-http/src/main/scala", "finatra-internal/mtls-thriftmux/src/main/scala", "finatra/http-client/src/main/scala", - "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations", + "finatra/inject/inject-app/src/main/java/com/ExTwitter/inject/annotations", "finatra/inject/inject-core/src/main/scala", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/module/product_mixer_flags", - "product-mixer/shared-library/src/main/scala/com/twitter/product_mixer/shared_library/http_client", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/module/product_mixer_flags", + "product-mixer/shared-library/src/main/scala/com/ExTwitter/product_mixer/shared_library/http_client", "util/util-core:scala", - "util/util-jackson/src/main/scala/com/twitter/util/jackson", - "util/util-security/src/main/scala/com/twitter/util/security", + "util/util-jackson/src/main/scala/com/ExTwitter/util/jackson", + "util/util-security/src/main/scala/com/ExTwitter/util/security", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientModule.scala index 1f75ec99a..10b10afb2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientModule.scala @@ -1,18 +1,18 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.conversions.DurationOps._ -import com.twitter.finagle.Http -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientBuilder.buildFinagleHttpClientMutualTls -import com.twitter.util.Duration +import com.ExTwitter.conversions.DurationOps._ +import com.ExTwitter.finagle.Http +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientBuilder.buildFinagleHttpClientMutualTls +import com.ExTwitter.util.Duration import javax.inject.Named import javax.inject.Singleton -object FinagleHttpClientModule extends TwitterModule { +object FinagleHttpClientModule extends ExTwitterModule { final val HttpClientRequestTimeout = "http_client.request_timeout" final val HttpClientConnectTimeout = "http_client.connect_timeout" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithCredentialProxyModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithCredentialProxyModule.scala index 9ea2a7bb7..e642b6bbf 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithCredentialProxyModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithCredentialProxyModule.scala @@ -1,26 +1,26 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.finagle.Http -import com.twitter.finagle.http.ProxyCredentials -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemoteHost -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemotePort -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyTwitterHost -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyTwitterPort -import com.twitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithCredentialProxy -import com.twitter.product_mixer.shared_library.http_client.HttpHostPort -import com.twitter.util.Duration +import com.ExTwitter.finagle.Http +import com.ExTwitter.finagle.http.ProxyCredentials +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemoteHost +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemotePort +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyExTwitterHost +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyExTwitterPort +import com.ExTwitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithCredentialProxy +import com.ExTwitter.product_mixer.shared_library.http_client.HttpHostPort +import com.ExTwitter.util.Duration import javax.inject.Named import javax.inject.Singleton -object FinagleHttpClientWithCredentialProxyModule extends TwitterModule { +object FinagleHttpClientWithCredentialProxyModule extends ExTwitterModule { final val FinagleHttpClientWithCredentialProxy = "FinagleHttpClientWithCredentialProxy" @@ -30,8 +30,8 @@ object FinagleHttpClientWithCredentialProxyModule extends TwitterModule { * Note that the timeouts configured in this module are meant to be a reasonable starting point * only. To further tuning the settings, either override the flags or create local copy of the module. * - * @param proxyTwitterHost Twitter egress proxy host - * @param proxyTwitterPort Twitter egress proxy port + * @param proxyExTwitterHost ExTwitter egress proxy host + * @param proxyExTwitterPort ExTwitter egress proxy port * @param proxyRemoteHost Remote proxy host * @param proxyRemotePort Remote proxy port * @param requestTimeout HTTP client request timeout @@ -47,8 +47,8 @@ object FinagleHttpClientWithCredentialProxyModule extends TwitterModule { @Singleton @Named(FinagleHttpClientWithCredentialProxy) def providesFinagleHttpClientWithCredentialProxy( - @Flag(HttpClientWithProxyTwitterHost) proxyTwitterHost: String, - @Flag(HttpClientWithProxyTwitterPort) proxyTwitterPort: Int, + @Flag(HttpClientWithProxyExTwitterHost) proxyExTwitterHost: String, + @Flag(HttpClientWithProxyExTwitterPort) proxyExTwitterPort: Int, @Flag(HttpClientWithProxyRemoteHost) proxyRemoteHost: String, @Flag(HttpClientWithProxyRemotePort) proxyRemotePort: Int, @Flag(HttpClientRequestTimeout) requestTimeout: Duration, @@ -59,11 +59,11 @@ object FinagleHttpClientWithCredentialProxyModule extends TwitterModule { statsReceiver: StatsReceiver ): Http.Client = { - val twitterProxyHostPort = HttpHostPort(proxyTwitterHost, proxyTwitterPort) + val ExTwitterProxyHostPort = HttpHostPort(proxyExTwitterHost, proxyExTwitterPort) val remoteProxyHostPort = HttpHostPort(proxyRemoteHost, proxyRemotePort) buildFinagleHttpClientWithCredentialProxy( - twitterProxyHostPort = twitterProxyHostPort, + ExTwitterProxyHostPort = ExTwitterProxyHostPort, remoteProxyHostPort = remoteProxyHostPort, requestTimeout = requestTimeout, connectTimeout = connectTimeout, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithProxyModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithProxyModule.scala index c169d7fed..53e0d1633 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithProxyModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinagleHttpClientWithProxyModule.scala @@ -1,32 +1,32 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.finagle.Http -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout -import com.twitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithProxy -import com.twitter.product_mixer.shared_library.http_client.HttpHostPort -import com.twitter.util.Duration +import com.ExTwitter.finagle.Http +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout +import com.ExTwitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithProxy +import com.ExTwitter.product_mixer.shared_library.http_client.HttpHostPort +import com.ExTwitter.util.Duration import javax.inject.Named import javax.inject.Singleton -object FinagleHttpClientWithProxyModule extends TwitterModule { - final val HttpClientWithProxyTwitterHost = "http_client.proxy.twitter_host" - final val HttpClientWithProxyTwitterPort = "http_client.proxy.twitter_port" +object FinagleHttpClientWithProxyModule extends ExTwitterModule { + final val HttpClientWithProxyExTwitterHost = "http_client.proxy.ExTwitter_host" + final val HttpClientWithProxyExTwitterPort = "http_client.proxy.ExTwitter_port" final val HttpClientWithProxyRemoteHost = "http_client.proxy.remote_host" final val HttpClientWithProxyRemotePort = "http_client.proxy.remote_port" flag[String]( - HttpClientWithProxyTwitterHost, - "httpproxy.local.twitter.com", - "Twitter egress proxy host") + HttpClientWithProxyExTwitterHost, + "httpproxy.local.ExTwitter.com", + "ExTwitter egress proxy host") - flag[Int](HttpClientWithProxyTwitterPort, 3128, "Twitter egress proxy port") + flag[Int](HttpClientWithProxyExTwitterPort, 3128, "ExTwitter egress proxy port") flag[String](HttpClientWithProxyRemoteHost, "Host that the proxy will connect to") @@ -40,8 +40,8 @@ object FinagleHttpClientWithProxyModule extends TwitterModule { * Note that the timeouts configured in this module are meant to be a reasonable starting point * only. To further tuning the settings, either override the flags or create local copy of the module. * - * @param proxyTwitterHost Twitter egress proxy host - * @param proxyTwitterPort Twitter egress proxy port + * @param proxyExTwitterHost ExTwitter egress proxy host + * @param proxyExTwitterPort ExTwitter egress proxy port * @param proxyRemoteHost Remote proxy host * @param proxyRemotePort Remote proxy port * @param requestTimeout HTTP client request timeout @@ -56,8 +56,8 @@ object FinagleHttpClientWithProxyModule extends TwitterModule { @Singleton @Named(FinagleHttpClientWithProxy) def providesFinagleHttpClientWithProxy( - @Flag(HttpClientWithProxyTwitterHost) proxyTwitterHost: String, - @Flag(HttpClientWithProxyTwitterPort) proxyTwitterPort: Int, + @Flag(HttpClientWithProxyExTwitterHost) proxyExTwitterHost: String, + @Flag(HttpClientWithProxyExTwitterPort) proxyExTwitterPort: Int, @Flag(HttpClientWithProxyRemoteHost) proxyRemoteHost: String, @Flag(HttpClientWithProxyRemotePort) proxyRemotePort: Int, @Flag(HttpClientRequestTimeout) requestTimeout: Duration, @@ -66,11 +66,11 @@ object FinagleHttpClientWithProxyModule extends TwitterModule { @Flag(ServiceLocal) isServiceLocal: Boolean, statsReceiver: StatsReceiver ): Http.Client = { - val twitterProxyHostPort = HttpHostPort(proxyTwitterHost, proxyTwitterPort) + val ExTwitterProxyHostPort = HttpHostPort(proxyExTwitterHost, proxyExTwitterPort) val remoteProxyHostPort = HttpHostPort(proxyRemoteHost, proxyRemotePort) buildFinagleHttpClientWithProxy( - twitterProxyHostPort = twitterProxyHostPort, + ExTwitterProxyHostPort = ExTwitterProxyHostPort, remoteProxyHostPort = remoteProxyHostPort, requestTimeout = requestTimeout, connectTimeout = connectTimeout, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientModule.scala index 3e68b0477..c5f03cf35 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientModule.scala @@ -1,22 +1,22 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.finagle.mtls.authentication.ServiceIdentifier -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.httpclient.HttpClient -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientBuilder.buildFinagleHttpClientMutualTls -import com.twitter.product_mixer.shared_library.http_client.HttpHostPort -import com.twitter.util.Duration -import com.twitter.util.jackson.ScalaObjectMapper +import com.ExTwitter.finagle.mtls.authentication.ServiceIdentifier +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.httpclient.HttpClient +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientBuilder.buildFinagleHttpClientMutualTls +import com.ExTwitter.product_mixer.shared_library.http_client.HttpHostPort +import com.ExTwitter.util.Duration +import com.ExTwitter.util.jackson.ScalaObjectMapper import javax.inject.Named import javax.inject.Singleton -object FinatraHttpClientModule extends TwitterModule { +object FinatraHttpClientModule extends ExTwitterModule { final val HttpClientHost = "http_client.host" final val HttpClientPort = "http_client.port" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithCredentialProxyModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithCredentialProxyModule.scala index d3d2a7576..98d1ac669 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithCredentialProxyModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithCredentialProxyModule.scala @@ -1,28 +1,28 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.finagle.http.ProxyCredentials -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.httpclient.HttpClient -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemoteHost -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemotePort -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyTwitterHost -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyTwitterPort -import com.twitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithCredentialProxy -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpServiceWithProxy -import com.twitter.product_mixer.shared_library.http_client.HttpHostPort -import com.twitter.util.Duration -import com.twitter.util.jackson.ScalaObjectMapper +import com.ExTwitter.finagle.http.ProxyCredentials +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.httpclient.HttpClient +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemoteHost +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemotePort +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyExTwitterHost +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyExTwitterPort +import com.ExTwitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithCredentialProxy +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpServiceWithProxy +import com.ExTwitter.product_mixer.shared_library.http_client.HttpHostPort +import com.ExTwitter.util.Duration +import com.ExTwitter.util.jackson.ScalaObjectMapper import javax.inject.Named import javax.inject.Singleton -object FinatraHttpClientWithCredentialProxyModule extends TwitterModule { +object FinatraHttpClientWithCredentialProxyModule extends ExTwitterModule { final val FinatraHttpClientWithCredentialProxy = "FinagleHttpClientWithCredentialProxy" @@ -34,8 +34,8 @@ object FinatraHttpClientWithCredentialProxyModule extends TwitterModule { * Note that the timeouts configured in this module are meant to be a reasonable starting point * only. To further tuning the settings, either override the flags or create local copy of the module. * - * @param proxyTwitterHost Twitter egress proxy host - * @param proxyTwitterPort Twitter egress proxy port + * @param proxyExTwitterHost ExTwitter egress proxy host + * @param proxyExTwitterPort ExTwitter egress proxy port * @param proxyRemoteHost Remote proxy host * @param proxyRemotePort Remote proxy port * @param requestTimeout HTTP client request timeout @@ -52,8 +52,8 @@ object FinatraHttpClientWithCredentialProxyModule extends TwitterModule { @Singleton @Named(FinatraHttpClientWithCredentialProxy) def providesFinatraHttpClientWithCredentialProxy( - @Flag(HttpClientWithProxyTwitterHost) proxyTwitterHost: String, - @Flag(HttpClientWithProxyTwitterPort) proxyTwitterPort: Int, + @Flag(HttpClientWithProxyExTwitterHost) proxyExTwitterHost: String, + @Flag(HttpClientWithProxyExTwitterPort) proxyExTwitterPort: Int, @Flag(HttpClientWithProxyRemoteHost) proxyRemoteHost: String, @Flag(HttpClientWithProxyRemotePort) proxyRemotePort: Int, @Flag(HttpClientRequestTimeout) requestTimeout: Duration, @@ -64,12 +64,12 @@ object FinatraHttpClientWithCredentialProxyModule extends TwitterModule { scalaObjectMapper: ScalaObjectMapper, statsReceiver: StatsReceiver ): HttpClient = { - val twitterProxyHostPort = HttpHostPort(proxyTwitterHost, proxyTwitterPort) + val ExTwitterProxyHostPort = HttpHostPort(proxyExTwitterHost, proxyExTwitterPort) val proxyRemoteHostPort = HttpHostPort(proxyRemoteHost, proxyRemotePort) val finagleHttpClientWithCredentialProxy = buildFinagleHttpClientWithCredentialProxy( - twitterProxyHostPort = twitterProxyHostPort, + ExTwitterProxyHostPort = ExTwitterProxyHostPort, remoteProxyHostPort = proxyRemoteHostPort, requestTimeout = requestTimeout, connectTimeout = connectTimeout, @@ -81,11 +81,11 @@ object FinatraHttpClientWithCredentialProxyModule extends TwitterModule { val finagleHttpServiceWithCredentialProxy = buildFinagleHttpServiceWithProxy( finagleHttpClientWithProxy = finagleHttpClientWithCredentialProxy, - twitterProxyHostPort = twitterProxyHostPort + ExTwitterProxyHostPort = ExTwitterProxyHostPort ) new HttpClient( - hostname = twitterProxyHostPort.host, + hostname = ExTwitterProxyHostPort.host, httpService = finagleHttpServiceWithCredentialProxy, mapper = scalaObjectMapper ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithProxyModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithProxyModule.scala index 1876acc88..02cbabf8b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithProxyModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/FinatraHttpClientWithProxyModule.scala @@ -1,27 +1,27 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.finagle.stats.StatsReceiver -import com.twitter.finatra.httpclient.HttpClient -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemoteHost -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemotePort -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyTwitterHost -import com.twitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyTwitterPort -import com.twitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithProxy -import com.twitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpServiceWithProxy -import com.twitter.product_mixer.shared_library.http_client.HttpHostPort -import com.twitter.util.Duration -import com.twitter.util.jackson.ScalaObjectMapper +import com.ExTwitter.finagle.stats.StatsReceiver +import com.ExTwitter.finatra.httpclient.HttpClient +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientAcquisitionTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientConnectTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientModule.HttpClientRequestTimeout +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemoteHost +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyRemotePort +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyExTwitterHost +import com.ExTwitter.product_mixer.component_library.module.http.FinagleHttpClientWithProxyModule.HttpClientWithProxyExTwitterPort +import com.ExTwitter.product_mixer.core.module.product_mixer_flags.ProductMixerFlagModule.ServiceLocal +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpClientWithProxy +import com.ExTwitter.product_mixer.shared_library.http_client.FinagleHttpClientWithProxyBuilder.buildFinagleHttpServiceWithProxy +import com.ExTwitter.product_mixer.shared_library.http_client.HttpHostPort +import com.ExTwitter.util.Duration +import com.ExTwitter.util.jackson.ScalaObjectMapper import javax.inject.Named import javax.inject.Singleton -object FinatraHttpClientWithProxyModule extends TwitterModule { +object FinatraHttpClientWithProxyModule extends ExTwitterModule { final val FinatraHttpClientWithProxy = "FinagleHttpClientWithProxy" @@ -33,8 +33,8 @@ object FinatraHttpClientWithProxyModule extends TwitterModule { * Note that the timeouts configured in this module are meant to be a reasonable starting point * only. To further tuning the settings, either override the flags or create local copy of the module. * - * @param proxyTwitterHost Twitter egress proxy host - * @param proxyTwitterPort Twitter egress proxy port + * @param proxyExTwitterHost ExTwitter egress proxy host + * @param proxyExTwitterPort ExTwitter egress proxy port * @param proxyRemoteHost Remote proxy host * @param proxyRemotePort Remote proxy port * @param requestTimeout HTTP client request timeout @@ -50,8 +50,8 @@ object FinatraHttpClientWithProxyModule extends TwitterModule { @Singleton @Named(FinatraHttpClientWithProxy) def providesFinatraHttpClientWithProxy( - @Flag(HttpClientWithProxyTwitterHost) proxyTwitterHost: String, - @Flag(HttpClientWithProxyTwitterPort) proxyTwitterPort: Int, + @Flag(HttpClientWithProxyExTwitterHost) proxyExTwitterHost: String, + @Flag(HttpClientWithProxyExTwitterPort) proxyExTwitterPort: Int, @Flag(HttpClientWithProxyRemoteHost) proxyRemoteHost: String, @Flag(HttpClientWithProxyRemotePort) proxyRemotePort: Int, @Flag(HttpClientRequestTimeout) requestTimeout: Duration, @@ -61,12 +61,12 @@ object FinatraHttpClientWithProxyModule extends TwitterModule { scalaObjectMapper: ScalaObjectMapper, statsReceiver: StatsReceiver ): HttpClient = { - val twitterProxyHostPort = HttpHostPort(proxyTwitterHost, proxyTwitterPort) + val ExTwitterProxyHostPort = HttpHostPort(proxyExTwitterHost, proxyExTwitterPort) val proxyRemoteHostPort = HttpHostPort(proxyRemoteHost, proxyRemotePort) val finagleHttpClientWithProxy = buildFinagleHttpClientWithProxy( - twitterProxyHostPort = twitterProxyHostPort, + ExTwitterProxyHostPort = ExTwitterProxyHostPort, remoteProxyHostPort = proxyRemoteHostPort, requestTimeout = requestTimeout, connectTimeout = connectTimeout, @@ -77,11 +77,11 @@ object FinatraHttpClientWithProxyModule extends TwitterModule { val finagleHttpServiceWithProxy = buildFinagleHttpServiceWithProxy( finagleHttpClientWithProxy = finagleHttpClientWithProxy, - twitterProxyHostPort = twitterProxyHostPort + ExTwitterProxyHostPort = ExTwitterProxyHostPort ) new HttpClient( - hostname = twitterProxyHostPort.host, + hostname = ExTwitterProxyHostPort.host, httpService = finagleHttpServiceWithProxy, mapper = scalaObjectMapper ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/ProxyCredentialsModule.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/ProxyCredentialsModule.scala index 88cb81ce6..625813ae5 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/ProxyCredentialsModule.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/module/http/ProxyCredentialsModule.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.module.http +package com.ExTwitter.product_mixer.component_library.module.http import com.google.inject.Provides -import com.twitter.finagle.http.ProxyCredentials -import com.twitter.inject.TwitterModule -import com.twitter.inject.annotations.Flag -import com.twitter.util.security.{Credentials => CredentialsUtil} +import com.ExTwitter.finagle.http.ProxyCredentials +import com.ExTwitter.inject.ExTwitterModule +import com.ExTwitter.inject.annotations.Flag +import com.ExTwitter.util.security.{Credentials => CredentialsUtil} import java.io.File import javax.inject.Singleton -object ProxyCredentialsModule extends TwitterModule { +object ProxyCredentialsModule extends ExTwitterModule { final val HttpClientWithProxyCredentialsPath = "http_client.proxy.proxy_credentials_path" flag[String](HttpClientWithProxyCredentialsPath, "", "Path the load the proxy credentials") diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfig.scala index d38bdff77..173251534 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfig.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject class AdsCandidatePipelineConfig[Query <: PipelineQuery with AdsQuery] @Inject() ( diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfigBuilder.scala index c4a1ee6a3..708f9486e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineConfigBuilder.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.thriftscala.AdImpression -import com.twitter.adserver.thriftscala.AdRequestParams -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.adserver.thriftscala.AdImpression +import com.ExTwitter.adserver.thriftscala.AdRequestParams +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineQueryTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineQueryTransformer.scala index 4669a6d0a..19250c4fb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineQueryTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineQueryTransformer.scala @@ -1,10 +1,10 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineQueryTransformer.buildAdRequestParams -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineQueryTransformer.buildAdRequestParams +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Transform a PipelineQuery with AdsQuery into an AdsRequestParams diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineResultsTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineResultsTransformer.scala index ea693f800..b8e0e65e1 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineResultsTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsCandidatePipelineResultsTransformer.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.thriftscala.AdImpression -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsTweetCandidate -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult +import com.ExTwitter.adserver.thriftscala.AdImpression +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsTweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.UnexpectedCandidateResult object AdsCandidatePipelineResultsTransformer extends CandidatePipelineResultsTransformer[AdImpression, AdsCandidate] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfig.scala index 2df599613..d178c5543 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfig.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam class AdsDependentCandidatePipelineConfig[Query <: PipelineQuery with AdsQuery]( override val identifier: CandidatePipelineIdentifier, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfigBuilder.scala index 6cdf573c8..094b745ac 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineConfigBuilder.scala @@ -1,21 +1,21 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.thriftscala.AdImpression -import com.twitter.adserver.thriftscala.AdRequestParams -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.adserver.thriftscala.AdImpression +import com.ExTwitter.adserver.thriftscala.AdRequestParams +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.ad.AdsCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.feature_hydrator.BaseCandidateFeatureHydrator +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineQueryTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineQueryTransformer.scala index 2dc5a1628..bafea86fb 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineQueryTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDependentCandidatePipelineQueryTransformer.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineQueryTransformer.buildAdRequestParams -import com.twitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads.AdsCandidatePipelineQueryTransformer.buildAdRequestParams +import com.ExTwitter.product_mixer.core.functional_component.transformer.DependentCandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Transform a PipelineQuery with AdsQuery into an AdsRequestParams diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDisplayLocationBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDisplayLocationBuilder.scala index e10ce6a12..971a53fe8 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDisplayLocationBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/AdsDisplayLocationBuilder.scala @@ -1,8 +1,8 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.adserver.{thriftscala => ads} -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.adserver.{thriftscala => ads} +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery trait AdsDisplayLocationBuilder[-Query <: PipelineQuery with AdsQuery] { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/BUILD index c459215e5..60107fe79 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/BUILD @@ -6,17 +6,17 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate/ads", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/query/ads", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate/ads", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/query/ads", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/CountNumOrganicItems.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/CountNumOrganicItems.scala index c42abfa7b..89857ff89 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/CountNumOrganicItems.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/CountNumOrganicItems.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.product_mixer.component_library.model.query.ads.AdsQuery -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.component_library.model.query.ads.AdsQuery +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Derive an estimate of the number of organic items from the query. If you need a more precise number, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/GetOrganicItemIds.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/GetOrganicItemIds.scala index 9682ad5c9..1ebcd4c03 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/GetOrganicItemIds.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/GetOrganicItemIds.scala @@ -1,7 +1,7 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.product_mixer.core.functional_component.common.CandidateScope -import com.twitter.product_mixer.core.model.common.presentation.CandidateWithDetails +import com.ExTwitter.product_mixer.core.functional_component.common.CandidateScope +import com.ExTwitter.product_mixer.core.model.common.presentation.CandidateWithDetails /** * Get organic item candidates from the set of previous candidates diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/PromotedTweetsOnlyFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/PromotedTweetsOnlyFilter.scala index ef323aa6a..92c1ffe5f 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/PromotedTweetsOnlyFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/PromotedTweetsOnlyFilter.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsTweetCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsTweetCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch case class PromotedTweetsOnlyFilter[Query <: PipelineQuery]( underlyingFilter: Filter[Query, AdsTweetCandidate]) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/ValidAdImpressionIdFilter.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/ValidAdImpressionIdFilter.scala index 4064a69cc..9b8f3a35d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/ValidAdImpressionIdFilter.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/ads/ValidAdImpressionIdFilter.scala @@ -1,12 +1,12 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.ads +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.ads -import com.twitter.product_mixer.component_library.model.candidate.ads.AdsCandidate -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.filter.FilterResult -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.common.identifier.FilterIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.model.candidate.ads.AdsCandidate +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.filter.FilterResult +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.common.identifier.FilterIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object ValidAdImpressionIdFilter extends Filter[PipelineQuery, AdsCandidate] { override val identifier: FilterIdentifier = FilterIdentifier("ValidAdImpressionId") diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/BUILD.bazel index ef2575873..4be47e0d7 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/BUILD.bazel @@ -6,18 +6,18 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfig.scala index 88d522175..3164006d4 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfig.scala @@ -1,29 +1,29 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline -import com.twitter.onboarding.task.service.thriftscala.GetInjectionsRequest -import com.twitter.onboarding.task.service.{thriftscala => servicethrift} -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptModuleGrouping -import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptUrtModuleBuilder -import com.twitter.product_mixer.component_library.model.candidate.BasePromptCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipCandidateFeatureTransformer -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipQueryTransformer -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.PromptResultsTransformer -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.onboarding.task.service.thriftscala.GetInjectionsRequest +import com.ExTwitter.onboarding.task.service.{thriftscala => servicethrift} +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptModuleGrouping +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptUrtModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.BasePromptCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipCandidateFeatureTransformer +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipQueryTransformer +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.PromptResultsTransformer +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam /** * A candidate pipeline for Flexible Injection Pipeline Candidates. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfigBuilder.scala index 199eb73f2..c4d42fc56 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptCandidatePipelineConfigBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfig.scala index 537c91639..57ad25037 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfig.scala @@ -1,29 +1,29 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline -import com.twitter.onboarding.task.service.thriftscala.GetInjectionsRequest -import com.twitter.onboarding.task.service.{thriftscala => servicethrift} -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptModuleGrouping -import com.twitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptUrtModuleBuilder -import com.twitter.product_mixer.component_library.model.candidate.BasePromptCandidate -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipCandidateFeatureTransformer -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipQueryTransformer -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.PromptResultsTransformer -import com.twitter.product_mixer.core.functional_component.candidate_source.CandidateSource -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.onboarding.task.service.thriftscala.GetInjectionsRequest +import com.ExTwitter.onboarding.task.service.{thriftscala => servicethrift} +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtMultipleModulesDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptModuleGrouping +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.flexible_injection_pipeline.FlipPromptUrtModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.BasePromptCandidate +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipCandidateFeatureTransformer +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.FlipQueryTransformer +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.PromptResultsTransformer +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.CandidateSource +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam /** * A dependent candidate pipeline for Flexible Injection Pipeline Candidates. diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfigBuilder.scala index 87c5e080c..49c8d8ec2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfigBuilder.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource -import com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.PromptCandidateSource +import com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer.HasFlipInjectionParams +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/BUILD b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/BUILD index 5b4460cec..9023fcd90 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/BUILD +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/BUILD @@ -8,15 +8,15 @@ scala_library( dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", "onboarding/service/thrift/src/main/thrift:thrift-scala", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/model/candidate", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/flexible_injection_pipeline", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/model/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipCandidateFeatureTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipCandidateFeatureTransformer.scala index 78d0fa58a..87bcfe162 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipCandidateFeatureTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipCandidateFeatureTransformer.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer -import com.twitter.onboarding.injections.{thriftscala => onboardingthrift} -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt -import com.twitter.product_mixer.component_library.model.candidate.BasePromptCandidate -import com.twitter.product_mixer.component_library.model.candidate.PromptCarouselTileCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.onboarding.injections.{thriftscala => onboardingthrift} +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt +import com.ExTwitter.product_mixer.component_library.model.candidate.BasePromptCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.PromptCarouselTileCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier case object FlipPromptCarouselTileFeature extends Feature[PromptCarouselTileCandidate, Option[onboardingthrift.Tile]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipInjectionParams.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipInjectionParams.scala index bcb84f375..eea9e12ae 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipInjectionParams.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipInjectionParams.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer -import com.twitter.onboarding.task.service.{thriftscala => flip} +import com.ExTwitter.onboarding.task.service.{thriftscala => flip} trait HasFlipInjectionParams { def displayLocation: flip.DisplayLocation diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipQueryTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipQueryTransformer.scala index e80cfe2aa..283ba65df 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipQueryTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/FlipQueryTransformer.scala @@ -1,9 +1,9 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer -import com.twitter.onboarding.task.service.thriftscala.PromptType -import com.twitter.onboarding.task.service.{thriftscala => flip} -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.onboarding.task.service.thriftscala.PromptType +import com.ExTwitter.onboarding.task.service.{thriftscala => flip} +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery object FlipQueryTransformer extends CandidatePipelineQueryTransformer[ diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/PromptResultsTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/PromptResultsTransformer.scala index d195aa0f8..a06ae627d 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/PromptResultsTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/transformer/PromptResultsTransformer.scala @@ -1,15 +1,15 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.flexible_injection_pipeline.transformer -import com.twitter.onboarding.injections.{thriftscala => flipinjection} -import com.twitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt -import com.twitter.product_mixer.component_library.model.candidate.BasePromptCandidate -import com.twitter.product_mixer.component_library.model.candidate.FullCoverPromptCandidate -import com.twitter.product_mixer.component_library.model.candidate.HalfCoverPromptCandidate -import com.twitter.product_mixer.component_library.model.candidate.InlinePromptCandidate -import com.twitter.product_mixer.component_library.model.candidate.PromptCarouselTileCandidate -import com.twitter.product_mixer.component_library.model.candidate.RelevancePromptCandidate -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.functional_component.marshaller.TransportMarshaller +import com.ExTwitter.onboarding.injections.{thriftscala => flipinjection} +import com.ExTwitter.product_mixer.component_library.candidate_source.flexible_injection_pipeline.IntermediatePrompt +import com.ExTwitter.product_mixer.component_library.model.candidate.BasePromptCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.FullCoverPromptCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.HalfCoverPromptCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.InlinePromptCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.PromptCarouselTileCandidate +import com.ExTwitter.product_mixer.component_library.model.candidate.RelevancePromptCandidate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.functional_component.marshaller.TransportMarshaller object PromptResultsTransformer extends CandidatePipelineResultsTransformer[ @@ -19,7 +19,7 @@ object PromptResultsTransformer /** * Transforms a Flip Injection to a Product Mixer domain object deriving from BasePromptCandidate. - * Supported injection types have to match those declared in com.twitter.product_mixer.component_library.transformer.flexible_injection_pipeline.FlipQueryTransformer#supportedPromptFormats + * Supported injection types have to match those declared in com.ExTwitter.product_mixer.component_library.transformer.flexible_injection_pipeline.FlipQueryTransformer#supportedPromptFormats */ override def transform(input: IntermediatePrompt): BasePromptCandidate[Any] = input.injection match { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/BUILD.bazel b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/BUILD.bazel index 0146a3493..2481363b2 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/BUILD.bazel +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/BUILD.bazel @@ -5,16 +5,16 @@ scala_library( tags = ["bazel-compatible"], dependencies = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/account_recommendations_mixer", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/candidate_source/people_discovery", - "product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/functional_component/marshaller/request", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/account_recommendations_mixer", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/candidate_source/people_discovery", + "product-mixer/component-library/src/main/scala/com/ExTwitter/product_mixer/component_library/decorator/urt", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/functional_component/marshaller/request", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", "servo/repo/src/main/scala", - "src/thrift/com/twitter/hermit/internal:hermit-internal-scala", + "src/thrift/com/ExTwitter/hermit/internal:hermit-internal-scala", ], exports = [ "3rdparty/jvm/javax/inject:javax.inject", - "product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/candidate", + "product-mixer/core/src/main/scala/com/ExTwitter/product_mixer/core/pipeline/candidate", ], ) diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidateDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidateDecorator.scala index 8763389af..7f1c0e841 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidateDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidateDecorator.scala @@ -1,28 +1,28 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.WhoToFollowModuleFooterFeature -import com.twitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.WhoToFollowModuleHeaderFeature -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemInModuleDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.StaticUrlBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.promoted.FeaturePromotedMetadataBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.social_context.WhoToFollowSocialContextBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.stringcenter.StrStatic -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleFooterBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleHeaderBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.DeepLink -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.WhoToFollowModuleFooterFeature +import com.ExTwitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.WhoToFollowModuleHeaderFeature +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemInModuleDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.StaticUrlBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.promoted.FeaturePromotedMetadataBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.social_context.WhoToFollowSocialContextBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.stringcenter.StrStatic +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleFooterBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleHeaderBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.DeepLink +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object WhoToFollowArmCandidateDecorator { val ClientEventComponent = "suggest_who_to_follow" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineConfig.scala index d72241fd2..b529deb43 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineConfig.scala @@ -1,6 +1,6 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier object WhoToFollowArmCandidatePipelineConfig { val MinCandidatesSize = 3 diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineQueryTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineQueryTransformer.scala index bfcf877ce..cbdb43baf 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineQueryTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmCandidatePipelineQueryTransformer.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.account_recommendations_mixer.{thriftscala => t} -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.marshaller.request.ClientContextMarshaller -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure -import com.twitter.product_mixer.core.pipeline.pipeline_failure.BadRequest -import com.twitter.timelines.configapi.Param +import com.ExTwitter.account_recommendations_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.marshaller.request.ClientContextMarshaller +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.PipelineFailure +import com.ExTwitter.product_mixer.core.pipeline.pipeline_failure.BadRequest +import com.ExTwitter.timelines.configapi.Param object WhoToFollowArmCandidatePipelineQueryTransformer { val HomeDisplayLocation = "timeline" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfig.scala index f1e7b3ca7..4a2d2e641 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfig.scala @@ -1,25 +1,25 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.account_recommendations_mixer.{thriftscala => t} -import com.twitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.AccountRecommendationsMixerCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.account_recommendations_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.AccountRecommendationsMixerCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.decider.DeciderParam class WhoToFollowArmDependentCandidatePipelineConfig[Query <: PipelineQuery]( override val identifier: CandidatePipelineIdentifier, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfigBuilder.scala index 91eb9b1bf..cb6698795 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmDependentCandidatePipelineConfigBuilder.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.AccountRecommendationsMixerCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.product_mixer.component_library.candidate_source.account_recommendations_mixer.AccountRecommendationsMixerCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmResponseFeatureTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmResponseFeatureTransformer.scala index 4ee90a4bf..321592ba0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmResponseFeatureTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowArmResponseFeatureTransformer.scala @@ -1,13 +1,13 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.hermit.{thriftscala => h} -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.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.hermit.{thriftscala => h} +import com.ExTwitter.account_recommendations_mixer.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier object ContextTypeFeature extends Feature[UserCandidate, Option[t.ContextType]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidateDecorator.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidateDecorator.scala index 763c860d0..33ea5d5b3 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidateDecorator.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidateDecorator.scala @@ -1,29 +1,29 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.product_mixer.component_library.candidate_source.people_discovery.WhoToFollowModuleHeaderFeature -import com.twitter.product_mixer.component_library.candidate_source.people_discovery.WhoToFollowModuleShowMoreFeature -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator -import com.twitter.product_mixer.component_library.decorator.urt.UrtItemInModuleDecorator -import com.twitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.metadata.StaticUrlBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.promoted.FeaturePromotedMetadataBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.social_context.WhoToFollowSocialContextBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.stringcenter.StrStatic -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleDynamicShowMoreBehaviorRevealByCountBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleFooterBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleHeaderBuilder -import com.twitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.Decoration -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.model.common.CandidateWithFeatures -import com.twitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.DeepLink -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.stitch.Stitch +import com.ExTwitter.product_mixer.component_library.candidate_source.people_discovery.WhoToFollowModuleHeaderFeature +import com.ExTwitter.product_mixer.component_library.candidate_source.people_discovery.WhoToFollowModuleShowMoreFeature +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemCandidateDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.UrtItemInModuleDecorator +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.item.user.UserCandidateUrtItemBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.ClientEventInfoBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.metadata.StaticUrlBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.promoted.FeaturePromotedMetadataBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.social_context.WhoToFollowSocialContextBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.stringcenter.StrStatic +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleDynamicShowMoreBehaviorRevealByCountBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleFooterBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.ModuleHeaderBuilder +import com.ExTwitter.product_mixer.component_library.decorator.urt.builder.timeline_module.TimelineModuleBuilder +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.Decoration +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.model.common.CandidateWithFeatures +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.EntryNamespace +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.DeepLink +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.stitch.Stitch object WhoToFollowCandidateDecorator { val ClientEventComponent = "suggest_who_to_follow" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfig.scala index 55888e38d..167cb2bff 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfig.scala @@ -1,25 +1,25 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.peoplediscovery.api.{thriftscala => t} -import com.twitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.peoplediscovery.api.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.CandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.decider.DeciderParam object WhoToFollowCandidatePipelineConfig { val MinCandidatesSize = 3 diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfigBuilder.scala index 5c50bbb85..5ace020a0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineConfigBuilder.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.Gate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.Gate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineQueryTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineQueryTransformer.scala index f4ba0558f..e27ebf4fa 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineQueryTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowCandidatePipelineQueryTransformer.scala @@ -1,11 +1,11 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.peoplediscovery.api.thriftscala.ClientContext -import com.twitter.peoplediscovery.api.thriftscala.GetModuleRequest -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.Param +import com.ExTwitter.peoplediscovery.api.thriftscala.ClientContext +import com.ExTwitter.peoplediscovery.api.thriftscala.GetModuleRequest +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.Param object WhoToFollowCandidatePipelineQueryTransformer { val DisplayLocation = "timeline" diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowClientEventDetailsBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowClientEventDetailsBuilder.scala index a8c673a57..ed8eba8da 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowClientEventDetailsBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowClientEventDetailsBuilder.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.bijection.scrooge.BinaryScalaCodec -import com.twitter.bijection.Base64String -import com.twitter.bijection.{Injection => Serializer} -import com.twitter.hermit.internal.thriftscala.HermitTrackingToken -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails -import com.twitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails -import com.twitter.servo.cache.ThriftSerializer -import com.twitter.suggests.controller_data.thriftscala.ControllerData -import com.twitter.util.Try +import com.ExTwitter.bijection.scrooge.BinaryScalaCodec +import com.ExTwitter.bijection.Base64String +import com.ExTwitter.bijection.{Injection => Serializer} +import com.ExTwitter.hermit.internal.thriftscala.HermitTrackingToken +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseClientEventDetailsBuilder +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.ClientEventDetails +import com.ExTwitter.product_mixer.core.model.marshalling.response.urt.metadata.TimelinesDetails +import com.ExTwitter.servo.cache.ThriftSerializer +import com.ExTwitter.suggests.controller_data.thriftscala.ControllerData +import com.ExTwitter.util.Try import org.apache.thrift.protocol.TBinaryProtocol object WhoToFollowClientEventDetailsBuilder { diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfig.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfig.scala index 26915ceca..f44328e82 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfig.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfig.scala @@ -1,25 +1,25 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.peoplediscovery.api.{thriftscala => t} -import com.twitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.decorator.CandidateDecorator -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer -import com.twitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.peoplediscovery.api.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.candidate_source.BaseCandidateSource +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.decorator.CandidateDecorator +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineQueryTransformer +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidatePipelineResultsTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.candidate.DependentCandidatePipelineConfig +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.decider.DeciderParam class WhoToFollowDependentCandidatePipelineConfig[Query <: PipelineQuery]( override val identifier: CandidatePipelineIdentifier, diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfigBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfigBuilder.scala index 8d95bb14b..6713e126c 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfigBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowDependentCandidatePipelineConfigBuilder.scala @@ -1,19 +1,19 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource -import com.twitter.product_mixer.component_library.model.candidate.UserCandidate -import com.twitter.product_mixer.core.feature.Feature -import com.twitter.product_mixer.core.functional_component.common.alert.Alert -import com.twitter.product_mixer.core.functional_component.configapi.StaticParam -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder -import com.twitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder -import com.twitter.product_mixer.core.functional_component.filter.Filter -import com.twitter.product_mixer.core.functional_component.gate.BaseGate -import com.twitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier -import com.twitter.product_mixer.core.pipeline.PipelineQuery -import com.twitter.timelines.configapi.FSParam -import com.twitter.timelines.configapi.Param -import com.twitter.timelines.configapi.decider.DeciderParam +import com.ExTwitter.product_mixer.component_library.candidate_source.people_discovery.PeopleDiscoveryCandidateSource +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.functional_component.common.alert.Alert +import com.ExTwitter.product_mixer.core.functional_component.configapi.StaticParam +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.metadata.BaseFeedbackActionInfoBuilder +import com.ExTwitter.product_mixer.core.functional_component.decorator.urt.builder.timeline_module.BaseModuleDisplayTypeBuilder +import com.ExTwitter.product_mixer.core.functional_component.filter.Filter +import com.ExTwitter.product_mixer.core.functional_component.gate.BaseGate +import com.ExTwitter.product_mixer.core.model.common.identifier.CandidatePipelineIdentifier +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.timelines.configapi.FSParam +import com.ExTwitter.timelines.configapi.Param +import com.ExTwitter.timelines.configapi.decider.DeciderParam import javax.inject.Inject import javax.inject.Singleton diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowResponseFeatureTransformer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowResponseFeatureTransformer.scala index 96cb68f1a..a39fdaba8 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowResponseFeatureTransformer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/who_to_follow_module/WhoToFollowResponseFeatureTransformer.scala @@ -1,14 +1,14 @@ -package com.twitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module +package com.ExTwitter.product_mixer.component_library.pipeline.candidate.who_to_follow_module -import com.twitter.adserver.{thriftscala => ad} -import com.twitter.hermit.{thriftscala => h} -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.feature.featuremap.FeatureMap -import com.twitter.product_mixer.core.feature.featuremap.FeatureMapBuilder -import com.twitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer -import com.twitter.product_mixer.core.model.common.identifier.TransformerIdentifier +import com.ExTwitter.adserver.{thriftscala => ad} +import com.ExTwitter.hermit.{thriftscala => h} +import com.ExTwitter.peoplediscovery.api.{thriftscala => t} +import com.ExTwitter.product_mixer.component_library.model.candidate.UserCandidate +import com.ExTwitter.product_mixer.core.feature.Feature +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMap +import com.ExTwitter.product_mixer.core.feature.featuremap.FeatureMapBuilder +import com.ExTwitter.product_mixer.core.functional_component.transformer.CandidateFeatureTransformer +import com.ExTwitter.product_mixer.core.model.common.identifier.TransformerIdentifier object AdImpressionFeature extends Feature[UserCandidate, Option[ad.AdImpression]] object HermitContextTypeFeature extends Feature[UserCandidate, Option[h.ContextType]] diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/cursor/CursorSerializer.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/cursor/CursorSerializer.scala index d8906520a..04801f0f0 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/cursor/CursorSerializer.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/cursor/CursorSerializer.scala @@ -14,8 +14,8 @@ import com.twitter.scrooge.BinaryThriftStructSerializer import com.twitter.scrooge.ThriftStructCodec import com.twitter.search.common.util.bloomfilter.AdaptiveLongIntBloomFilterSerializer import com.twitter.util.Base64UrlSafeStringEncoder -import com.twitter.util.StringEncoder -import com.twitter.product_mixer.core.functional_component.marshaller.response.slice.CursorTypeMarshaller +import com.ExTwitter.util.StringEncoder +import com.ExTwitter.product_mixer.core.functional_component.marshaller.response.slice.CursorTypeMarshaller /** * Handles serialization and deserialization for all supported generic cursors. Note that generic diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/OrderedPreviousCursorBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/OrderedPreviousCursorBuilder.scala index 1136ae5ac..a14aef45e 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/OrderedPreviousCursorBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/OrderedPreviousCursorBuilder.scala @@ -5,9 +5,9 @@ import com.twitter.product_mixer.component_library.premarshaller.cursor.CursorSe import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorType import com.twitter.product_mixer.core.model.marshalling.response.slice.PreviousCursor import com.twitter.product_mixer.core.model.marshalling.response.slice.SliceItem -import com.twitter.product_mixer.core.pipeline.HasPipelineCursor -import com.twitter.product_mixer.core.pipeline.PipelineCursorSerializer -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.pipeline.HasPipelineCursor +import com.ExTwitter.product_mixer.core.pipeline.PipelineCursorSerializer +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery /** * Builds [[OrderedCursor]] in the Previous position diff --git a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/SliceCursorBuilder.scala b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/SliceCursorBuilder.scala index f033b3fe8..60f8ab71b 100644 --- a/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/SliceCursorBuilder.scala +++ b/product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/premarshaller/slice/builder/SliceCursorBuilder.scala @@ -2,8 +2,8 @@ package com.twitter.product_mixer.component_library.premarshaller.slice.builder import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorItem import com.twitter.product_mixer.core.model.marshalling.response.slice.CursorType -import com.twitter.product_mixer.core.model.marshalling.response.slice.SliceItem -import com.twitter.product_mixer.core.pipeline.PipelineQuery +import com.ExTwitter.product_mixer.core.model.marshalling.response.slice.SliceItem +import com.ExTwitter.product_mixer.core.pipeline.PipelineQuery trait SliceCursorBuilder[-Query <: PipelineQuery] {