This file contains 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 | |
""" | |
Bengali Emotion Dataset Creator | |
This script creates a Hugging Face dataset from Bengali WAV files and their transcriptions. | |
It processes audio files, maps them with transcripts from a CSV file, and uploads | |
the dataset to the Hugging Face Hub. | |
Requirements: | |
- pandas |
This file contains 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
-- [email protected]; email me to say hi or if there are any questions | |
vim.g.mapleader = ' ' | |
vim.g.maplocalleader = ' ' | |
-- Install package manager | |
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' | |
if not vim.loop.fs_stat(lazypath) then | |
vim.fn.system { | |
'git', 'clone', | |
'--filter=blob:none', |
This file contains 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 | |
import socket | |
import requests | |
import concurrent.futures | |
import time | |
import sys | |
from urllib.parse import urlparse | |
from dataclasses import dataclass | |
from typing import List, Tuple | |
import subprocess |
This file contains 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
# SPDX-License-Identifier: Apache-2.0 | |
import json | |
import random | |
import string | |
import torch | |
from vllm import LLM | |
from vllm.sampling_params import SamplingParams |
This file contains 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 requests | |
import json | |
import random | |
def generate_otp() -> str: | |
"""Generate a random 6-digit OTP""" | |
return ''.join([str(random.randint(0, 9)) for _ in range(6)]) | |
def test_otp_server(): | |
# Generate a random 6-digit OTP |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAX_FUNCS 10 // Maximum number of functions supported | |
#define NAME_LEN 50 // Maximum length of function names | |
#define STR_LEN 100 // Maximum length of strings to print | |
// Structure to store function definitions | |
struct Function { |
This file contains 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
find . -name "*.py" | while IFS= read -r file; do | |
echo "===== $file =====" >> merged.txt | |
cat "$file" >> merged.txt | |
echo -e "\n" >> merged.txt | |
done |
This file contains 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 | |
import sys | |
import os | |
import subprocess | |
from datetime import datetime | |
import re | |
import shutil | |
import logging | |
# Set up logging |
This file contains 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
nlu.yml: | |
- intent: new_card_activation | |
examples: | | |
- কার্ড অ্যাক্টিভেট করতে চাই | |
- নতুন কার্ড অ্যাক্টিভেট করব | |
- আমার কার্ডটি সক্রিয় করতে চাই | |
- কার্ড এক্টিভেশন করতে চাই | |
- নতুন কার্ড সক্রিয় করতে হবে | |
- কার্ড অ্যাক্টিভেশন প্রসেস শুরু করুন |
This file contains 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 python | |
import re | |
import os | |
import sys | |
from typing import Tuple, Dict, Any | |
def extract_title_from_front_matter(content: str) -> str: | |
""" | |
Extract the 'title: ...' line from the front matter if present. |
NewerOlder