This list is automatically generated from the framework's source code.
Components to organise the app's layout. Not meaningful by themselves; their objective is to enhance how other components are presented.
import json | |
import os | |
def extract_source_code(map_file_path): | |
""" | |
Extracts source code from a webpack source map file. | |
Args: | |
map_file_path (str): Path to the source map file. | |
Returns: |
class LuaScriptGenerator: | |
def __init__(self): | |
self.function_templates = { | |
"PressAndReleaseKey": "PressAndReleaseKey({key})", | |
"PressKey": "PressKey({key})", | |
"ReleaseKey": "ReleaseKey({key})", | |
"PressAndReleaseMouseButton": "PressAndReleaseMouseButton({button})", | |
"PressMouseButton": "PressMouseButton({button})", | |
"ReleaseMouseButton": "ReleaseMouseButton({button})", | |
# Add more function templates as needed |
from langchain.chains.openai_functions import create_openai_fn_runnable | |
from langchain.chat_models import ChatOpenAI | |
from langchain.prompts import ChatPromptTemplate | |
def create_prompt(settings): | |
instructions = generate_instructions(settings) | |
current_settings = generate_current_settings(settings) | |
return instructions, current_settings | |
version: '3' | |
services: | |
reverse-proxy: | |
# The official v2 Traefik docker image | |
image: traefik:v2.10 | |
# Enables the web UI and tells Traefik to listen to docker | |
command: --api.insecure=true --providers.docker | |
ports: | |
# The HTTP port |
import pandas as pd | |
import sqlite3 | |
conn = sqlite3.connect('/path/to/where/you/want/to/store/your/db') | |
c = conn.cursor() | |
df = pd.DataFrame([{'Column1':'Data','Column2':'Base'}]) | |
df.to_sql("SQLDatabase", conn, if_exists="replace") |
//@version=5 | |
library("keyed_primatives") | |
export type float_item | |
string key = '' | |
float val = 0. | |
export type float_dict | |
float_item[] content |
{ | |
"keyords and operators": [ | |
"!=", | |
"%", | |
"%=", | |
"*", | |
"*=", | |
"+", | |
"+=", | |
"-", |