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
# 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 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 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 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
#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 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
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 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 | |
import sys | |
import os | |
import subprocess | |
from datetime import datetime | |
import re | |
import shutil | |
import logging | |
# Set up logging |
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
nlu.yml: | |
- intent: new_card_activation | |
examples: | | |
- কার্ড অ্যাক্টিভেট করতে চাই | |
- নতুন কার্ড অ্যাক্টিভেট করব | |
- আমার কার্ডটি সক্রিয় করতে চাই | |
- কার্ড এক্টিভেশন করতে চাই | |
- নতুন কার্ড সক্রিয় করতে হবে | |
- কার্ড অ্যাক্টিভেশন প্রসেস শুরু করুন |
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 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. |
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 selenium import webdriver | |
from selenium.webdriver.chrome.service import Service | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from webdriver_manager.chrome import ChromeDriverManager | |
from tqdm import tqdm | |
import time | |
import os |
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
class ActionAskYaqeenFaq(Action): | |
def name(self) -> Text: | |
return "action_ask_yaqeen_faq" | |
def run(self, dispatcher: CollectingDispatcher, | |
tracker: Tracker, | |
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: | |
last_text = tracker.latest_message["text"] |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>React D3.js Interactive Directed Graph Representation</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.8.6/umd/react.production.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.6/umd/react-dom.production.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.16.0/d3.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script> |