mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-02 17:28:45 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
16 lines
514 B
Java
16 lines
514 B
Java
package com.twitter.search.common.relevance.features;
|
|
|
|
public final class TweetSignatureUtil {
|
|
private TweetSignatureUtil() {
|
|
}
|
|
|
|
/** Converts the signature in args[0] to a TweetIntegerShingleSignature. */
|
|
public static void main(String[] args) throws Exception {
|
|
if (args.length < 1) {
|
|
throw new RuntimeException("Please provide signature value.");
|
|
}
|
|
int signature = Integer.parseInt(args[0]);
|
|
System.out.println(TweetIntegerShingleSignature.deserialize(signature).toString());
|
|
}
|
|
}
|