git clone --depth=1 <REPO_URL> appName
cd appName
rm -rf package-lock.json
| import torch | |
| import torch.nn as nn | |
| # -------------------------------------------------- | |
| # Simple FFN that accepts a sentence | |
| # -------------------------------------------------- | |
| class SimpleFFN(nn.Module): | |
| def __init__(self, activation="gelu"): | |
| super().__init__() |
| # ============================================================================== | |
| # PROGRAM: RNN vs LSTM Memory Benchmark (100% Deterministic) | |
| # ============================================================================== | |
| import torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| torch.manual_seed(42) |
| !pip install gensim | |
| import gensim.downloader as api | |
| from gensim.models import Word2Vec | |
| def test_word2vec(corpus, test_words, sg=1, vector_size=100, window=5): | |
| """Trains a Word2Vec model and checks vocab status for test words. | |
| Parameters: |
| import gensim.downloader as api | |
| # 1. Load pre-trained Google News Word2Vec model (~1.5 GB download) | |
| # Note: For a faster download during testing, you can use "glove-wiki-gigaword-50" | |
| print("Loading Word2Vec model...") | |
| model = api.load("word2vec-google-news-300") | |
| print("Model loaded successfully!\n") | |
| # 2. List of test samples | |
| test_words = [ |
| #!/usr/bin/env bash | |
| # Regenerates the "Domain modules" section of CLAUDE.md from src/modules/*. | |
| # Everything outside the BEGIN/END markers is left untouched. | |
| # Run from the repo root: ./update-claude-md.sh | |
| set -euo pipefail | |
| FILE="CLAUDE.md" | |
| MODULES_DIR="src/modules" | |
| BEGIN="<!-- BEGIN:modules -->" |
| #!/usr/bin/env bash | |
| # Regenerates the "Routes" section of CLAUDE.md from a Next.js project. | |
| # Works with App Router (app/) or Pages Router (pages/), auto-detected. | |
| # Handles any route group names (parens), dynamic segments ([id], [...slug]), | |
| # and flat structures with no groups at all. | |
| # Everything outside the BEGIN/END markers is left untouched. | |
| # Run from the repo root: ./update-claude-md.sh | |
| set -euo pipefail |
| function convertTimeForLocale(timeString, currentTimezone, targetTimezone) { | |
| // Check if time starts with ~ | |
| if (!timeString.startsWith('~')) { | |
| return timeString; // Return as-is if no ~ prefix | |
| } | |
| // If same timezone, return as-is | |
| if (currentTimezone === targetTimezone) { | |
| return timeString; | |
| } |
| function formatTimestamp(timestampInput) { | |
| const timestamp = parseInt(timestampInput, 10); | |
| if (isNaN(timestamp)) { | |
| return 'Invalid timestamp'; | |
| } | |
| // Convert timestamp from seconds to milliseconds | |
| const date = new Date(timestamp * 1000); | |
| const options = { day: '2-digit', month: 'short', year: 'numeric' }; |
| import React from 'react'; | |
| const ExtensionInstaller = () => { | |
| const handleDrop = (event) => { | |
| event.preventDefault(); | |
| const file = event.dataTransfer.files[0]; | |
| if (file.name.endsWith('.crx') || file.name.endsWith('.zip')) { | |
| const reader = new FileReader(); | |
| reader.onload = (event) => { | |
| const url = event.target.result; |