This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sentence_transformers import SentenceTransformer | |
| import time | |
| import duckdb | |
| import numpy as np | |
| from concurrent.futures import ThreadPoolExecutor | |
| import os | |
| MODEL_NAME = 'sentence-transformers/all-mpnet-base-v2' | |
| BATCH_SIZE = 1942 | |
| DEVICE = "cuda" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sentence_transformers import SentenceTransformer | |
| import time | |
| import duckdb | |
| import numpy as np | |
| from concurrent.futures import ThreadPoolExecutor | |
| import os | |
| import argparse | |
| import glob | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| YEAR | sex_group | pct_weekly_plus | |
|---|---|---|---|
| 1990 | Men | 56.00376505110606 | |
| 1991 | Men | 56.55845069773984 | |
| 1993 | Men | 54.52053976944282 | |
| 1994 | Men | 52.92590248189957 | |
| 1996 | Men | 58.32329400804249 | |
| 1998 | Men | 54.15999959659776 | |
| 2000 | Men | 57.159911222473696 | |
| 2002 | Men | 54.52718663716865 | |
| 2004 | Men | 50.10306907814918 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { generatePrivateKey, privateKeyToAccount, english, generateMnemonic, mnemonicToAccount } from 'viem/accounts'; | |
| import { writeFileSync } from 'fs'; | |
| // Parse command line arguments | |
| const args = process.argv.slice(2); | |
| let name = null; | |
| let useMnemonic = false; | |
| for (let i = 0; i < args.length; i++) { | |
| if (args[i] === '--name' && args[i + 1]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Classify Farcaster casts using Google Gemini Batch API. | |
| Classifies each cast into one of 5 categories: | |
| - Personal Life | |
| - Spam | |
| - App/Bot Interactions | |
| - Crypto Content | |
| - Not Enough Context To Tell | |
| """ |
OlderNewer