seq_id stringlengths 4 11 | text stringlengths 113 2.92M | repo_name stringlengths 4 125 ⌀ | sub_path stringlengths 3 214 | file_name stringlengths 3 160 | file_ext stringclasses 18
values | file_size_in_byte int64 113 2.92M | program_lang stringclasses 1
value | lang stringclasses 93
values | doc_type stringclasses 1
value | stars int64 0 179k ⌀ | dataset stringclasses 3
values | pt stringclasses 78
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
4421637196 | from flask import Flask, request, jsonify;
import requests
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
base_url = 'https://coronavirus-19-api.herokuapp.com'
@app.route('/get-all-cases')
def get_all_cases():
all_cases = requests.get(base_url + '/countries').json()
return jsonify(all_cases)
@app... | Rhukie/hw4_9pk6vl43kh | covid-api/app.py | app.py | py | 1,178 | python | en | code | 1 | github-code | 36 |
20466629151 | """
큰 수의 법칙
1. 아이디어
: m번 더해서 가장 큰 수를 만들되, k번 초과하여 더해질 수 없다
k번 동안 리스트 중 가장 큰 수를 더하고
k번이 초과되면 그 다음 큰 수를 더한다
-> 이거 m번 반복
"""
import sys
read = sys.stdin.readline
n, m, k = map(int, read().split(' '))
numbers = list(map(int, read().split(' ')))
numbers.sort(reverse=True)
sum_value = 0
n = 0
for i in range(m):
if n <... | roum02/algorithm | greedy/1_practice2.py | 1_practice2.py | py | 578 | python | ko | code | 0 | github-code | 36 |
2030918591 | def bubbleSort(L: list) -> list:
while True:
swapped = False
for j in range(len(L) - 1):
if L[j] > L[j + 1]:
smaller = L[j + 1]
L[j + 1] = L[j]
L[j] = smaller
swapped = True
if swapped == False:
break
... | youngseok-seo/cs-fundamentals | Sorting/bubbleSort.py | bubbleSort.py | py | 388 | python | en | code | 0 | github-code | 36 |
29909677781 | # -*- coding: utf-8 -*-
import os
import sys
import math
import copy
import random
import timeit
import argparse
import numpy as np
import tensorflow as tf
from ..model import mlp_rel
from ..lib.data_utils import load_prop
from ..lib.utils import makedirs
if __name__ == '__main__':
parser = argparse.ArgumentPars... | fzc621/CondPropEst | src/arxiv_obj/cpbm.py | cpbm.py | py | 3,915 | python | en | code | 2 | github-code | 36 |
8531279483 | import numpy as np
import galois
from nacl.public import PrivateKey, Box
from io import BytesIO
import cProfile
import re
# A library for Shamir sharing arrays of field elements
# - An ArrayShare object is one share of the whole array
# - ArrayShare objects have encrypt and decrypt methods
# - share_array secret sh... | uvm-plaid/olympia | util/shamir_sharing.py | shamir_sharing.py | py | 4,835 | python | en | code | 2 | github-code | 36 |
12411851865 | #!/usr/bin/env python
# encoding: utf-8
from . import routes, views, model
from . import listeners # noqa
MODELS = [model.OsfStorageNodeSettings]
NODE_SETTINGS_MODEL = model.OsfStorageNodeSettings
ROUTES = [
routes.api_routes
]
SHORT_NAME = 'osfstorage'
FULL_NAME = 'OSF Storage'
OWNERS = ['node']
ADDED_DEFAU... | karenhanson/osf.io_rmap_integration_old | website/addons/osfstorage/__init__.py | __init__.py | py | 780 | python | en | code | 0 | github-code | 36 |
13238889607 | jumlahHari = int(input("Masukkan Jumlah Hari : "))
jumlahTahun = 0
jumlahBulan = 0
while(jumlahHari >= 365):
jumlahHari = jumlahHari - 365
jumlahTahun = jumlahTahun + 1
while(jumlahHari >= 30):
jumlahHari = jumlahHari - 30
jumlahBulan = jumlahBulan + 1
print(jumlahTahun,"Tahun",jumlahBulan,"Bula... | KiritoEdward/LatihanIntroductionToPythonNiomic | PART2.py | PART2.py | py | 343 | python | id | code | 0 | github-code | 36 |
10831138017 | # Static Class
class student:
def stuinput(name,rollno,fee):
student.name = name
student.rollno = rollno
student.fee = fee
def stuoutput():
print("Student Name=",student.name)
print("Student Rollno=",student.rollno)
print("Student Fee=",student.fee... | Karan-Johly/Python_journey | d13_staticclass_3.py | d13_staticclass_3.py | py | 377 | python | en | code | 0 | github-code | 36 |
39660535041 | from collections import deque
class Solution:
def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:
reach = {}
for time in times:
if time[0] in reach:
reach[time[0]].append([time[2], time[1]])
else:
reach[time[0]] = [[time... | deusi/practice | 743-network-delay-time/743-network-delay-time.py | 743-network-delay-time.py | py | 1,034 | python | en | code | 0 | github-code | 36 |
12522475519 | # Operators In python
# Arithmetic Operators
# Assignment Operators
# Comparsion Operators
# Logical Operators
# Identity Operators
# Membership Operators
# Bitwise Operators
# Arithmetic Operators
# print("5+6 is",5+6)
# print("5-6 is",5-6)
# print("5*6 is",5*6)
# print("5/6 is",5/6)
# print("5**3 is",5**3)
# print("... | neelshet007/PythonTuts | operatorss.py | operatorss.py | py | 726 | python | en | code | 0 | github-code | 36 |
22565649698 | from typing import Any, Callable, Dict, Optional
import torch
import torch.nn as nn
from .gaussian_diffusion import GaussianDiffusion
from .k_diffusion import karras_sample
DEFAULT_KARRAS_STEPS = 64
DEFAULT_KARRAS_SIGMA_MIN = 1e-3
DEFAULT_KARRAS_SIGMA_MAX = 160
DEFAULT_KARRAS_S_CHURN = 0.0
def uncond_guide_model(
... | openai/shap-e | shap_e/diffusion/sample.py | sample.py | py | 2,871 | python | en | code | 10,619 | github-code | 36 |
3406969266 | """
main.py
train the deep iamge prior model and get the denoised figure, calculate PSNR when required.
"""
import hydra
from pytorch_lightning import Trainer, seed_everything
from src.conf import Config
from src.data.datamodule import DeepImagePriorDataModule
from src.model.model import DeepImagePriorModel
import l... | ziyixi/Deep-Image-Prior-Pytorch-Lightning | main.py | main.py | py | 1,640 | python | en | code | 0 | github-code | 36 |
1700457476 | #!/usr/bin/python3
"""
Given an integer, convert it into a binary string
Assume integer >= 0
Would ask interviewer max int size (in bits) - for today will assume 32
"""
def intToBinary(i):
# Don't need multiplier because we're returning string
result = ''
if i == 0: return '0'
# While number isn'... | phibzy/InterviewQPractice | Solutions/IntToBinary/intToBinary.py | intToBinary.py | py | 1,334 | python | en | code | 0 | github-code | 36 |
32187575097 | import asyncio
import aiohttp
from warnings import warn
with open("vk_access_token.txt", mode="r") as file:
vk_access_token = file.read()
vk_api_version = "5.154"
owner_id = "-160464793"
url = f"https://api.vk.ru/method/wall.get?v={vk_api_version}&owner_id={owner_id}&count=1&access_token={vk_access_token}"
as... | SaGiMan6/sesc-nsu-assistant-bot | scripts/morning_exercise_operations.py | morning_exercise_operations.py | py | 1,353 | python | en | code | 0 | github-code | 36 |
12858631206 | def sortSplit(array):
n = len(array)
if n == 1 or n == 0:
return array
n //= 2
arrLeft = sortSplit(array[0:n])
arrRight = sortSplit(array[n:])
leftN = rightN = k = 0
result = [0] * (len(arrLeft) + len(arrRight))
while leftN < len(arrLeft) and rightN < len(arrRight):
if a... | FlyDragon-888/paradigms | homework_6/task_2.py | task_2.py | py | 770 | python | en | code | 0 | github-code | 36 |
27520982087 | # encoding:utf-8
__author__ = 'shiliang'
__date__ = '2019/4/9 21:12'
import requests
from lxml import etree
import pandas as pd
import xlrd
import time
import re
import aiohttp
import asyncio
# 全局变量
headers = {
'Cookie': 'OCSSID=sfg10a19had6hfavkctd32otf6',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) ... | SparksFly8/DataMingingPaper | spider/metadata_Coroutine_Spider.py | metadata_Coroutine_Spider.py | py | 8,375 | python | zh | code | 69 | github-code | 36 |
70427090985 | def fact(n):
res = 1
while n>1:
res *= n
n -= 1
print(res)
def recurFact(n):
if n == 0:
return 1
return n * recurFact(n-1)
n = int(input())
fact(n)
print(recurFact(n))
| asu2sh/dev | DSA_SPy/1.Maths/3_factorial.py | 3_factorial.py | py | 224 | python | en | code | 3 | github-code | 36 |
3097533124 | import rospy, math, numpy, tf
from collections import deque
from spencer_bagfile_tools.msg import AdditionalOdometryData
from dynamic_reconfigure.server import Server
from spencer_bagfile_tools.cfg import ReconstructOdometryConfig
from visualization_msgs.msg import MarkerArray, Marker
from geometry_msgs.msg import Poi... | spencer-project/spencer_people_tracking | utils/spencer_bagfile_tools/scripts/reconstruct_odometry.py | reconstruct_odometry.py | py | 11,138 | python | en | code | 620 | github-code | 36 |
18400663422 | import os
from fastapi import status, HTTPException
from pydantic import BaseModel, validator
from typing import Union
ROOT_DIR = os.path.abspath('.')
ROOT_DIR = os.path.join(ROOT_DIR, 'assets')
PATH_REGEX = r'^(?![0-9._/])(?!.*[._]$)(?!.*\d_)(?!.*_\d)[a-zA-Z0-9_/]+$'
class Predicted(BaseModel):
recognized: Unio... | watcharap0n/api-facial-recognition-dlib | service-rec/server/schemas/predict.py | predict.py | py | 1,636 | python | en | code | 1 | github-code | 36 |
13463267955 | # -*- coding: utf-8 -*-
from clean_access import clean_access
from ip_user_follow import region_follow,city_follow,visit_time_follow
from in_excel_openpyxl import in_excel,in_excel2,in_excel3
from refer_user_follow import user_follow1,user_follow2,user_follow3,user_follow4
from in_dataframe import in_dataframe
# clean_... | zhitie/py_apache_access | main.py | main.py | py | 1,632 | python | en | code | 0 | github-code | 36 |
71295078185 | import os
import re
f1 = open('answer.txt','w')
files = os.listdir('./bottles')
c = ''
for i in files:
f2 = open('./bottles/'+i,'rb')
s = str(f2.read())
c+=s
f2.close()
print(c.index('ritsec'))
| akashsuper2000/ctf-archive | Ritsec 2019/bottles.py | bottles.py | py | 210 | python | en | code | 0 | github-code | 36 |
2107349661 | #!/usr/bin/env python3
##
## EPITECH PROJECT, 2021
## B-MAT-500-PAR-5-1-308reedpipes-zhiwen.wang
## File description:
## multigrains_30711
##
import sys, os
import time
import math
import numpy as np
def printUsage():
print("USAGE\n\
\t./309pollution n file x y\n\n\
DESCRIPTION\n\
\tn\tnumber of point... | Zippee0709/Tek3-Project | Maths/309Pollution/pollution_309.py | pollution_309.py | py | 4,575 | python | en | code | 0 | github-code | 36 |
4401153009 | import requests
from bs4 import BeautifulSoup
import re
from googlesearch import search
def remove_tags(text):
TAG_RE = re.compile(r'<[^>]+>')
return TAG_RE.sub('', text)
def spamcalls(num):
lists = []
r = requests.get("https://spamcalls.net/en/search?q={}".format(num))
if r.status_code == 200:
... | 742fool/DeadTrapv2 | website/backend/scanners/fraud.py | fraud.py | py | 1,708 | python | en | code | null | github-code | 36 |
42248140291 | import json
from rdflib import Graph, Namespace, Literal, URIRef, XSD
from rdflib.namespace import XSD
# Mapping of codes to (image) annotation types
annotation_codes_classes = [("evoked_clusters", "ACVisualEvocation"), ("as", "ArtStyle"), ("act", "Action"), ("age","Age"), ("color", "Color"), ("em", "Emotion"), ("ic",... | delfimpandiani/ARTstract-KG | ARTstract-KG_creation/ARTstract_kg_construction/real_kg_construction/img_acve.py | img_acve.py | py | 4,284 | python | en | code | 0 | github-code | 36 |
36408696267 | from django.urls import path
from . import views
app_name = 'assure'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/detail/', views.DetailView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
path('<int:site_id>/comme... | chadwickcheney/SeleniumTests | assure/urls.py | urls.py | py | 360 | python | en | code | 0 | github-code | 36 |
41612108456 | ###################################################################
###################################################################
#
# DISCLAIMER:
# THIS IS A PROOF OF CONCEPT AND AS A RESULT, IS AN UGLY, HACKED TOGETHER MESS.
# IN NO WAY SHOULD THIS BE CONFUSED WITH 'GOOD' CODE.
#
# SORRY.
# -Deve... | deveyNull/phist | hashFunk.py | hashFunk.py | py | 7,822 | python | en | code | 0 | github-code | 36 |
12198099018 | #!/usr/bin/python
import os
import sqlite3, time, re
import subprocess
from random import randint
from Scan_lib import Scan_Receive_sms, Scan_Smstome_sms
def Scansione(conn):
cursor = conn.execute("SELECT Subdomain, Number FROM Anagrafica")
cursor.fetchone()
for row in cursor:
if "receive-smss.com" in row:
S... | fulgid0/ASMS_discovery | ASMS_discover.py | ASMS_discover.py | py | 3,154 | python | en | code | 0 | github-code | 36 |
29620338632 | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from lxml import etree
import time
import xlsxwriter
options = webdriver.ChromeOptions()
# 找到本地安... | hua345/myBlog | python/selenium/baidu.py | baidu.py | py | 2,515 | python | en | code | 0 | github-code | 36 |
29909656261 | # -*- coding: utf-8 -*-
import os
import sys
import csv
import random
import timeit
import numpy as np
import argparse
import multiprocessing as mp
from ..lib.utils import makedirs
click_field_name = ["date", "format", "paper", "ip", "mode", "uid", "session",
"port", "id", "useragent", "usercookie... | fzc621/CondPropEst | src/arxiv_match/bootstrap_swap.py | bootstrap_swap.py | py | 4,987 | python | en | code | 2 | github-code | 36 |
26071445837 | import numpy as np
def modified_black_body(wl, TEMPSN, RADIUSSN, TEMPDUST, MDUST):
# 2components BlackBody formula
h = 6.626076e-27 # plancks constant (erg s)
k = 1.38066e-16 # boltzmann constant (erg/K)
BETAL = 1.5 # slope for kappa
MSUN = 1.98892e+33 # g
CC = 2.99792458E+10 # cm/s
wl... | ZoeAnsari/modified-black-body | src/MBB.py | MBB.py | py | 1,423 | python | en | code | 0 | github-code | 36 |
15521733904 | '''
43. Multiply Strings
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.
Example 1:
Input: num1 = "2", num2 = "3"
Output: "6"
Example 2:
Input: num1 = "123", num2 = "456"
Output: "56088"
Note:
The length of both num1 and num2 i... | MarshalLeeeeee/myLeetCodes | 43-multiply.py | 43-multiply.py | py | 2,510 | python | en | code | 0 | github-code | 36 |
2848097490 | import tensorflow as tf
import argparse
import pandas as pd
import numpy as np
from PIL import Image, ImageDraw, ImageEnhance
from tqdm import tqdm
from model import *
from losses import *
import albumentations as albu
args = argparse.ArgumentParser(description='Process Training model')
args.add_argument('-i','--img... | SandiRizqi/OBJECT-DETECTION-YOLO-ALGORITHM-FOR-AERIAL-IMAGERY_FROM-SCRATCH | train_yolo.py | train_yolo.py | py | 9,124 | python | en | code | 1 | github-code | 36 |
23216640300 | #!/usr/bin/env python
# coding: utf-8
"""
module: some tf modeuls from classic networks
"""
import os
import numpy as np
import tensorflow as tf
from . import TF_Ops as tfops
def fcn_pipe(input, conv_struct, use_batchnorm=False, is_training=None, scope='pipe'):
"""
parse conv_struct: e.g. 3-16;5-8;1-32 | 3-8... | LiyaoTang/Research-Lib | Models/TF_Models/TF_Modules.py | TF_Modules.py | py | 7,634 | python | en | code | 1 | github-code | 36 |
29471509063 | import math
from pcbflow import *
if __name__ == "__main__":
brd = Board((40, 30))
brd.DC((10, 10)).text("Top Text", side="top")
brd.DC((30, 10)).text("Bottom Text", side="bottom")
brd.add_text((10, 15), "Test Text 1", scale=1.0, layer="GTO")
brd.add_text((10, 20), "Copper Text 1", scale=1.0, lay... | michaelgale/pcbflow | examples/basic/text.py | text.py | py | 965 | python | en | code | 93 | github-code | 36 |
72721098023 | import base64
import binascii
import random
from utilities import util
# Challenge 16
def unpadding_validation(string):
k = string[-1]
for i in range(len(string)-1, len(string) - 1 - ord(k), -1):
if string[i] != k:
raise PaddingError('Inappropriate padding detected')
return string[0:len(string)-ord(k)... | fortenforge/cryptopals | challenges/CBC_bitflipping_attack.py | CBC_bitflipping_attack.py | py | 1,597 | python | en | code | 13 | github-code | 36 |
42915655723 | """Balanced Parentheses Program
This program is used to check whether user given arithmetic expression is balanced or not
Example:
Balaced Expression :: {{a+b}*[a-b]}
Unbalanced Expression:: {{a+b}*[a-b]
Author:
Saurabh <singh.saurabh3333@gmail.com>
Since:
20 Nov,2018
"""
from com.bridgelabz.util... | Saurabh323351/PythonPrograms | balanced_parentheses.py | balanced_parentheses.py | py | 861 | python | en | code | 0 | github-code | 36 |
21413366584 | import pydot
DEFAULT_NODE_ATTRS = {
'color': 'cyan',
'shape': 'box',
'style': 'rounded',
'fontname': 'palatino',
'fontsize': 10,
'penwidth': 2
}
def node_label(token):
try:
label = token._.plot['label']
except:
label = '{0} [{1}]\n({2} / {3})'.format(
toke... | cyclecycle/visualise-spacy-tree | visualise_spacy_tree/visualise_spacy_tree.py | visualise_spacy_tree.py | py | 1,757 | python | en | code | 7 | github-code | 36 |
21743085266 | a = [27,3,-91,2,99,52,1,-10]
def merge_sort(lst):
# Base case: A 1- or 0-element list is already sorted
# If we encounter one, return it immediately
if len(lst) <= 1:
return lst[:]
# Find the midpoint of the list
midpt = int(len(lst) / 2)
# Create left and right halves from the midpoi... | CUNY-CISC1215-Fall2021/sorting | merge_sort.py | merge_sort.py | py | 1,474 | python | en | code | 0 | github-code | 36 |
19406462590 | #
# @lc app=leetcode id=583 lang=python3
#
# [583] Delete Operation for Two Strings
#
# @lc code=start
class Solution:
def minDistance(self, word1: str, word2: str) -> int:
m, n = len(word1), len(word2)
dp = [i for i in range(0, n+1)]
for i in range(1, m+1):
prev = dp[:]
... | Matthewow/Leetcode | vscode_extension/583.delete-operation-for-two-strings.py | 583.delete-operation-for-two-strings.py | py | 631 | python | en | code | 2 | github-code | 36 |
24327847015 | import tensorflow as tf
from pdb import set_trace as st
from dovebirdia.deeplearning.networks.base import AbstractNetwork
from dovebirdia.deeplearning.networks.base import FeedForwardNetwork
from dovebirdia.deeplearning.networks.autoencoder import Autoencoder
from dovebirdia.datasets.ccdc_mixtures import ccdcMixturesD... | mattweiss/public | examples/fftest.py | fftest.py | py | 2,114 | python | en | code | 0 | github-code | 36 |
19262622912 | from datetime import datetime, timedelta
from pokemongo_bot import inventory
from pokemongo_bot.base_task import BaseTask
from pokemongo_bot.worker_result import WorkerResult
from pokemongo_bot.tree_config_builder import ConfigException
class ShowBestPokemon(BaseTask):
"""
Periodically displays the user best... | PokemonGoF/PokemonGo-Bot | pokemongo_bot/cell_workers/show_best_pokemon.py | show_best_pokemon.py | py | 5,191 | python | en | code | 3,815 | github-code | 36 |
553309764 | """序列化练习"""
# pickle
import json
import pickle
d = dict(name='Bob', age=20, acore=80)
f = open('dump.txt', 'wb')
pickle.dump(d, f)
f.close()
f = open('dump.txt', 'rb')
d = pickle.load(f)
print(d)
# json
d = dict(name='Bob', age=20, acore=80)
print(json.dumps(d))
# JSON进阶
# class序列化和反序列化
class Student(object):
... | xuxinyu2020/my-python-work | practice/24pickle_json.py | 24pickle_json.py | py | 1,040 | python | en | code | 0 | github-code | 36 |
32199916820 | import muesli_functions as mf
import scipy as sp
# Load samples
X,Y = mf.read2bands("../Data/grassland_id_2m.sqlite",70,106)
ID = []
# Compute NDVI
NDVI = []
for i in xrange(len(X)):
X_ = X[i]
# Compute safe version of NDVI
DENOM = (X_[:,1]+X_[:,0])
t = sp.where(DENOM>0)[0]
NDVI_ = (X_[t,1]-X... | mfauvel/GrasslandsSympa | Codes/filter_id.py | filter_id.py | py | 672 | python | en | code | 0 | github-code | 36 |
30372123851 | import sys
import cv2
import numpy as np
import Analyzer
from learning import Parameters
import FeatureDebug
WINDOW = 'Options'
PARAM1 = '1) Param 1'
PARAM2 = '2) Param 2'
MIN_RAD = '3) Minimum Radius'
MAX_RAD = '4) Maximum Radius'
WINDOW_BOUND = '5) Top Left Window Px'
WINDOW_BOUND2 = '6) Top Right Window px'
HOU... | vicidroiddev/eyeTracking | Fokus/debug/DebugOptions.py | DebugOptions.py | py | 4,149 | python | en | code | 0 | github-code | 36 |
74339290984 | # Type all other functions here
def main():
usrStr= input("Enter a sample text:")
print("You entered:", usrStr)
print_menu(usrStr) #calls print menu
def print_menu(usrStr):
while True: #Must loop this or else it will not print menu again when done
menuOp = input('''MENU
c - Numbe... | Jatt530/Text-Analyzer- | zyLAB 6.19.py | zyLAB 6.19.py | py | 4,163 | python | en | code | 0 | github-code | 36 |
14991188051 | #
# Copyright (C) 2012 ESIROI. All rights reserved.
# Dynamote is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Dynamote is di... | maxajeanaimee/Domotique_multimedia | stb_process.py | stb_process.py | py | 4,488 | python | en | code | 0 | github-code | 36 |
21393799623 | """
21.vek API Client
"""
from typing import Optional, Tuple
from bgd.constants import TWENTYFIRSTVEK
from bgd.responses import GameSearchResult, Price
from bgd.services.api_clients import JsonHttpApiClient
from bgd.services.base import GameSearchService
from bgd.services.constants import GET
from bgd.services.respons... | ar0ne/bg_deal | bgd/services/apis/twenty_first_vek.py | twenty_first_vek.py | py | 2,730 | python | en | code | 0 | github-code | 36 |
27574693160 | def koGiam(xau):
xau = [int(i) for i in xau]
for i in range(len(xau) - 1):
if xau[i] > xau[i+1]:
return "NO"
return "YES"
test = int(input())
for t in range(test):
xau = input()
print(koGiam(xau)) | Kinhs/Python-PTIT | PY01015 - Số không giảm.py | PY01015 - Số không giảm.py | py | 238 | python | en | code | 0 | github-code | 36 |
43843944966 | from dylan.payoff import VanillaPayoff, call_payoff, put_payoff
from dylan.engine import MonteCarloPricingEngine, NaiveMonteCarloPricer
from dylan.marketdata import MarketData
from dylan.option import Option
def main():
spot = 41.0
strike = 40.0
rate = 0.08
volatility = 0.30
expiry = 1.0
reps =... | broughtj/dylan | test_naivemc.py | test_naivemc.py | py | 737 | python | en | code | 0 | github-code | 36 |
20407406212 | import csv
def clean_csv(data: list[list]):
"""
Removes trailing empty strings from CSVs that ovvur when extra commas exist
:param data: list of lists returned from from_csv function
:type data: list of lists
:rtype: list[list]
"""
while data[0][-1] == "":
for _ in data:
... | jrey999/toRST | formats/csv2rst.py | csv2rst.py | py | 836 | python | en | code | 2 | github-code | 36 |
38243268133 | import turtle
import random
# Khởi tạo cửa sổ
window = turtle.Screen()
window.title("Trò chơi đá bóng sử dụng Turtle Python")
window.bgcolor("white")
window.setup(width=800, height=600)
# Khởi tạo cầu môn
goal = turtle.Turtle()
goal.penup()
goal.goto(250, 200)
goal.pendown()
goal.forward(100)
goal.right(90)
goal.forw... | tungday/html | plú.py | plú.py | py | 1,525 | python | vi | code | 0 | github-code | 36 |
71903386024 | from typing import Tuple, Union, Dict
import numpy as np
import torch as th
from gym import spaces
from torch.nn import functional as F
def preprocess_obs(obs: Union[th.Tensor, Dict, Tuple], observation_space: spaces.Space,
normalize_images: bool = True, allow_unexpected: bool = True) -> th.Tensor... | buoyancy99/unsup-3d-keypoints | algorithms/common/utils.py | utils.py | py | 2,559 | python | en | code | 38 | github-code | 36 |
16412379448 | import math
def ciclearea(r):
result1 = math.pi * r * r
return result1
r = 10
print("半径为", r, "的圆的面积为:", ciclearea(r))
# **************************lambda 匿名函数***************************** #
r = 10
result2 = lambda r: math.pi * r * r
print("半径为", r, "的圆的面积为:", result2)
| zhangxinzhou/PythonLearn | helloworld/chapter06/demo03.01.py | demo03.01.py | py | 327 | python | en | code | 0 | github-code | 36 |
37634701363 | from turtle import Screen, Turtle
from typing import Sized
import random
t = Turtle()
t.pensize(6)
def shape(side):
angle = 360/side
for i in range(side):
t.forward(100)
t.right(angle)
colours = ["red", "orange", "green","pink","coral","blue","violet","black","cyan"]
for side... | anchalsinghrajput/python | turtle/shape.py | shape.py | py | 424 | python | en | code | 0 | github-code | 36 |
27248275172 | import os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
import tensorflow as tf
import pandas as pd
import numpy as np
def getThePrediction(tempIn, codeIn, UsedTime):
model = tf.keras.models.load_model("data/model.h5")
converted = tf.Variable(
[
np.array(
[
... | hafiz-kamilin/exercise_cncAccuracyPredictor | c_testModelAccuracy.py | c_testModelAccuracy.py | py | 916 | python | en | code | 0 | github-code | 36 |
26420734429 | import re
formula_easy = '(formula(1,2,3) + formulax(1,2,3) - formulaz(1,suma(1,2),3)) * formula(1,2,3)'
formula_complex = 'Monto() + Suma(1,2,3) + Si(3>Suma(1,2),2,3) - Suma(1,2)'
formula_real = 'Si(EnLista(EmpleadoEmpresa(), 34, 88, 89),TotalHaberes() * 0.01, 0)'
formula_real_complex = """Max(SMVM()/200*iif(EmpJorPa... | lugezz/repo_testing | regex/regex_formulas_9.py | regex_formulas_9.py | py | 6,432 | python | en | code | 0 | github-code | 36 |
40193585375 | import xlrd
from account.backend.services import StateService
def read_data_from_excel(excel_file):
# reads data from an excel_file
file_path = str(excel_file)
# create a workbook using the excel file received
w_book = xlrd.open_workbook(file_path)
# open the excel_sheet with the data
sheet = w_book.sheet_... | Trojkev/kev-music | music/backend/albums_script.py | albums_script.py | py | 811 | python | en | code | 1 | github-code | 36 |
34976365352 | #!/usr/bin/env python3
import requests
url = "http://10.10.90.182:8000"
url_= "https://10.10.90.182:1443/index.php"
header={'User-Agent':'<?php echo system($_REQUEST["c"];) ?>'}
r = requests.get(url_ + "?c=id", headers=header, verify=False)
print(r.text)
| lodwig/TryHackMe | Probe/check.py | check.py | py | 258 | python | en | code | 0 | github-code | 36 |
850417471 | #pylint:disable=no-member
import cv2 as cv
# Blurring is used to smooth the image by removing noice from the image
img = cv.imread('../Resources/Photos/cats.jpg')
cv.imshow('Cats', img)
# kernel window size (ksize) ask for rows and columns and the blurring algo work on that kernal window through the whole image
# A... | dheeraj120501/Lets-Code | 06-Cool Things Computer Can't Do/03-Computer Vision with OpenCV/2-Advanced/03-blurring.py | 03-blurring.py | py | 677 | python | en | code | 3 | github-code | 36 |
7542349397 | from strategy.models import ohlc
from strategy.base_strategy import Strategy, BUY, SELL, NO_ENTRY
PARAM_INCREASE_RATE = 0.0005
PARAM_REALBODY_RATE = 0.5
class Sanpei(Strategy):
signal: int
def __init__(self, client, logger):
super().__init__(client, logger)
self.signal = 0
def check_can... | TakuNyan007/pythonTrading | strategy/sanpei.py | sanpei.py | py | 2,108 | python | en | code | 0 | github-code | 36 |
11379198461 | from django.views.generic import ListView
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.db.models import Count
from guesswho.core.models import (Game, Question, Trait, Trai... | schallis/guesswho | guesswho/core/views.py | views.py | py | 2,911 | python | en | code | 0 | github-code | 36 |
19213479137 |
import os.path
from os import listdir
from os.path import isfile, join
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
import cv2
from sklearn.svm import SVC
import hog
def get_good_train_set(directory="./NICTA/TrainSet/PositiveSamples"):
test_files = [join(directory, image) for ... | insomaniacvenkat/HOG | svm_train.py | svm_train.py | py | 4,128 | python | en | code | 0 | github-code | 36 |
13143028771 | """
Example 1:
Input: s = "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Example 2:
Input: s = "bbbbb"
Output: 1
Explanation: The answer is "b", with the length of 1.
Example 3:
Input: s = "pwwkew"
Output: 3
Explanation: The answer is "wke", with the length of 3.
Notice that the answer ... | michsanya/Leetcode | Longest Substring Without Repeating Characters.py | Longest Substring Without Repeating Characters.py | py | 956 | python | en | code | 0 | github-code | 36 |
34620777008 | import json
def make_func(name, inputs, outputs, mutability):
# For now, pass all hints, and I'll manually drop those that aren't needed.
header = f"""
@{mutability}
func {name[0:-1]}{{syscall_ptr: felt*, pedersen_ptr: HashBuiltin*, bitwise_ptr: BitwiseBuiltin*, range_check_ptr
}} ({', '.join([f"{inp['name... | briqNFT/briq-protocol | briq_protocol/generate_interface.py | generate_interface.py | py | 2,004 | python | en | code | 63 | github-code | 36 |
22783391588 | #
# @lc app=leetcode id=712 lang=python3
#
# [712] Minimum ASCII Delete Sum for Two Strings
#
# https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/description/
#
# algorithms
# Medium (59.39%)
# Likes: 1275
# Dislikes: 54
# Total Accepted: 44.9K
# Total Submissions: 75.3K
# Testcase Example: ... | Zhenye-Na/leetcode | python/712.minimum-ascii-delete-sum-for-two-strings.py | 712.minimum-ascii-delete-sum-for-two-strings.py | py | 3,225 | python | en | code | 17 | github-code | 36 |
32704563511 | from scipy.signal import hilbert
import numpy as np
import matplotlib.pyplot as plt
def compare_elements(array1, array2): # array1和array2大小相同
array = np.zeros(len(array1))
for i in range(len(array1)):
if array1[i] == array2[i]:
array[i] = 0
elif array1[i] > array2[i]:
... | sheep9159/click_number | function_connective.py | function_connective.py | py | 2,127 | python | en | code | 0 | github-code | 36 |
30755666741 | age = 21
name = "tornike"
my_text = "my name is {} and i am {} years old"
print(my_text.format(name, age))
#count დათვლა
surname = "tbelishvili"
print(surname.count("i"))
age = 1999
age = str(age)
print(age.count("9"))
| Tbelo111/IT-step1 | strings3.py | strings3.py | py | 250 | python | en | code | 0 | github-code | 36 |
26236843242 | from django.contrib.auth.models import Group
from django.core.checks import messages
from django.core.files.images import ImageFile
from django.shortcuts import redirect, render
from django.http import HttpResponse, JsonResponse
from core.models import *
from core.forms import *
from django.contrib import messages
from... | felipe-quirozlara/changewear-django | changeWear/pages/views.py | views.py | py | 16,865 | python | es | code | 0 | github-code | 36 |
43916018301 | from functools import lru_cache
MOD = 10 ** 9 + 7
class Solution:
def findPaths(self, m, n, maxMove, startRow, startColumn):
@lru_cache(None)
def rec(sr, sc, mm):
if sr < 0 or sr >= m or sc < 0 or sc >= n:
return 1
if mm == 0: return 0
... | robinsdeepak/leetcode | 576-out-of-boundary-paths/576-out-of-boundary-paths.py | 576-out-of-boundary-paths.py | py | 604 | python | en | code | 0 | github-code | 36 |
5353638973 | # coding: utf-8
"""
NGSI-LD metamodel and Sensor NGSI-LD custom model
ETSI GS CIM 009 V1.6.1 cross-cutting Context Information Management (CIM); NGSI-LD API; NGSI-LD metamodel and Sensor NGSI-LD custom model. # noqa: E501
The version of the OpenAPI document: 1.6.1
Generated by OpenAPI Generator (htt... | daniel-gonzalez-sanchez/ngsi-ld-client-tester | ngsi-ld-models/ngsi_ld_models/models/replace_attrs_request.py | replace_attrs_request.py | py | 7,277 | python | en | code | 0 | github-code | 36 |
15681479617 | #1.设计一个这样的函数,在桌面新建十个文件并以数字命名
def create_file():
for i in range(1, 11):
filename='/home/zhoud/Desktop/' + str(i) + ".txt"
fp = open(filename, "w")
fp.close()
print("Done")
#create_file()
def count_money(amount, rate, time):
print("amount is "+str(amount))
lilv = rate+1
money... | yirenzhi/jake | forPython/魔力手册/第五章-循环与控制/practice.py | practice.py | py | 506 | python | en | code | 0 | github-code | 36 |
69833300903 | import tkinter as tk
class Calculator:
def __init__(self, master):
self.master = master
master.title("Calculator")
self.display = tk.Entry(master, width=30,bg='#5689c0', fg='#eaebed',borderwidth=3, font=('Arial', 14))
self.display.grid(row=0, column=0, columnspan=5, padx=10, pady=1... | Adarsh1o1/python-initials | guicalc.py | guicalc.py | py | 1,908 | python | en | code | 1 | github-code | 36 |
7182580635 | #!/usr/bin/env python3
"""Gradient descent with momentum"""
def update_variables_momentum(alpha, beta1, var, grad, v):
"""alpha is the learning rate. beta1 is the momentum weight.
var is either a number of list of numbers in a np.ndarray.
grad is either a number or a list of numbers in a np.ndarray.
v... | JohnCook17/holbertonschool-machine_learning | supervised_learning/0x03-optimization/5-momentum.py | 5-momentum.py | py | 705 | python | en | code | 3 | github-code | 36 |
35599175738 | # Standardize time series data
from pandas import Series
from sklearn.preprocessing import StandardScaler
from math import sqrt
# load the dataset and print the first 5 rows
series = Series.from_csv('daily-minimum-temperatures-in-me.csv', header=0)
print(series.head())
# 准备数据
values = series.values
values = values.resh... | yangwohenmai/TimeSeriesForecasting | 数据准备/标准化和归一化/标准化.py | 标准化.py | py | 727 | python | en | code | 183 | github-code | 36 |
4000749197 | # -*- coding: utf-8 -*-
"""Dataset methods for natural language inference.
Tokenization -> lower casing -> stop words removal -> lemmatization
Authors:
Fangzhou Li - fzli@ucdavis.edu
Todo:
* TODOs
"""
import torch
from torch.utils.data import Dataset, DataLoader
from torch.nn.utils.rnn import pad_sequence
f... | IBPA/SemiAutomatedFoodKBC | src/entailment/_dataset.py | _dataset.py | py | 8,558 | python | en | code | 1 | github-code | 36 |
10021006698 | """
data_metrics_calculation_ingestion.py
=====================================
This module contains code to fetch weather data records and calculate relevant analytics and save it to the database.
"""
import argparse
from typing import Any
import pandas as pd
from sqlalchemy import create_engine
from sqlalchemy.orm ... | pri2si17-1997/weather_data_processing | src/data_metrics_calculation_ingestion.py | data_metrics_calculation_ingestion.py | py | 3,490 | python | en | code | 0 | github-code | 36 |
13989867732 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import aiomysql
from webapp.www.fields import Field
logging.basicConfig(level=logging.INFO)
__pool = None
def log(sql, args=None):
logging.info('SQL: [%s] args: %s' % (sql, args or []))
# 创建全局连接池__pool,缺省情况下将编码设置为utf8,自动提交事务
# 每个HTTP请求都可以从连接池中直... | shellever/Python3Learning | webapp/www/orm.py | orm.py | py | 11,391 | python | zh | code | 0 | github-code | 36 |
7876035828 | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import pkg_resources
from ..load import load_all_manifests, patch_loader
from ..manifest import ManifestParser
class ManifestTest(unittest.TestCase):
def test_missing_section(self):
with self.assertRaises... | supreme-core/rsocket-cpp-pybind | build/fbcode_builder/getdeps/test/manifest_test.py | manifest_test.py | py | 4,630 | python | en | code | 3 | github-code | 36 |
72135965225 | import numpy as np
from scipy.stats import bernoulli, binom
# Parâmetros da distribuição de Bernoulli
p = 0.5 # Probabilidade de sucesso
# Número de rodadas no jogo
num_rodadas = 5
pontuacao = 0
print("Bem-vindo ao jogo de adivinhação!")
print(f"Você tem {num_rodadas} rodadas para adivinhar o resultado de uma distr... | Dhisting1/Estatisca-Python | Estatistica-Python/gameDIstribuiçãoBernoulli.py | gameDIstribuiçãoBernoulli.py | py | 1,430 | python | pt | code | 0 | github-code | 36 |
29260257988 | import unittest
from animal import Animal
class TestAnimal(unittest.TestCase):
def test_datosDeUnAnimal(self):
""" Test un animal puede mostrar sus datos """
gato = Animal("gato", 4, "miau")
self.assertEqual(
gato.datos(), 'Soy gato tengo 4 patas y hago miau.')
if __name__ =... | pmNiko/POO-Python | Clase_2/__test__/animal_test.py | animal_test.py | py | 353 | python | es | code | 1 | github-code | 36 |
31759953936 | n = int(input())
arr = list(map(int, input().split()))
stack = []
num = 1
for i in range(len(arr)):
if arr[i] == num:
num += 1
else:
while stack and stack[-1] == num:
stack.pop()
num += 1
if not stack or arr[i] < stack[-1]:
stack.append(arr[i])
... | 4RG0S/2023-Hamgorithm-Fall | 202302547/12789번-도키도키_간식드리미.py | 12789번-도키도키_간식드리미.py | py | 514 | python | en | code | 1 | github-code | 36 |
27103951389 | from flask import (
Blueprint, redirect, url_for
)
from Glastore.models.product import Product, product_heads
from Glastore.models.window import Window
from Glastore.views.auth import login_required
bp = Blueprint('product', __name__, url_prefix='/product')
@bp.route('/select_next_window/<int:id>')
@login_requir... | ChrisPoul/Glastore | Glastore/views/product.py | product.py | py | 950 | python | en | code | 2 | github-code | 36 |
25161881681 | import base64
import binascii
from typing import List
import falcon
import hashlib
import hmac
import json
import logging
from botocore.exceptions import ClientError
from dacite import Config, from_dict
from dataclasses import asdict
from enum import Enum
from adyen_gift_card.api.adyen_notifications.request import... | NewStore/int-cinori | integrations/adyen_gift_card/adyen_gift_card/api/adyen_notifications/adyen_notifications.py | adyen_notifications.py | py | 4,418 | python | en | code | 0 | github-code | 36 |
31694767263 | # Program that prints the number of lines of hashes
# doubles the number of hashes on each line
num = int(input("How many lines: "))
list2 = []
for i in range(0,num):
list2 = (2**i)
print("#" * list2)
| namntran/2021_python_principles | workshops/4_exponentialGrowth.py | 4_exponentialGrowth.py | py | 213 | python | en | code | 0 | github-code | 36 |
61098782 | from collections import deque
from typing import Union
import numpy as np
from stlpy.STL import STLTree, STLFormula, LinearPredicate
COLORED = False
if COLORED:
from termcolor import colored
else:
def colored(text, color):
return text
class STL:
def __init__(self, ast: Union[list, str, STLTree,... | ZikangXiong/STL-Mobile-Robot | src/stl_mob/stl/stl.py | stl.py | py | 10,389 | python | en | code | 4 | github-code | 36 |
759288278 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import datetime
from sqlalchemy import Column, String, create_engine, Integer, TIMESTAMP, func, Float, desc, Boolean
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from flask import Flask, render_template, reque... | DxfAndCxx/calendar | app.py | app.py | py | 1,565 | python | en | code | 0 | github-code | 36 |
30857649928 | import json
import shutil
import hashlib
import os
def get_hash_md5(filename):
with open(filename, 'rb') as f:
m = hashlib.md5()
while True:
data = f.read(8192)
if not data:
break
m.update(data)
return m.hexdigest()
with open('sourse.js... | AlexVorobushek/UpdateFilesOnFlashDrive | main.py | main.py | py | 1,422 | python | en | code | 0 | github-code | 36 |
12559352729 | """7-9: No Pastrami"""
"""Using the list sandwich_orders from Exercise 7-8, make sure the sandwich 'pastrami'
appears in the list at least three times. Add code near the beginning of your program
to print a message saying the deli has run out of pastrami, and then use a while loop
to remove all occurences of 'pastrami'... | iampaavan/python_crash_course_solutions | PCC_Text_Book/Lists/example.py | example.py | py | 2,185 | python | en | code | 0 | github-code | 36 |
14002518900 | import requests
import os
import re
from lxml import etree
def ParseHTML(url):
rawDoc = requests.get(url).text
html = etree.HTML(rawDoc)
return html
class Comic():
def __init__(self):
self.baseurl = "https://manhua.fzdm.com/39/"
self.baseimgurl = "https://p5.manhuapan.com/"
s... | Rickenbacker620/Codes | Python/Comic/comic.py | comic.py | py | 2,192 | python | en | code | 0 | github-code | 36 |
74353820583 | import torch
from numbers import Number
import numpy as np
class RandomMasking(torch.nn.Module):
"""
Random Masking from the paper "Hide-and-Seek: Forcing a Network to be Meticulous for
Weakly-supervised Object and Action Localization"
"""
def __init__(self, p_mask, patch_size, value):
"""
... | faberno/SurgicalToolLocalization | transforms/RandomMasking.py | RandomMasking.py | py | 2,599 | python | en | code | 2 | github-code | 36 |
15860181793 | # -*- coding: utf-8 -*-
"""
=============================
Plot temporal clustering
=============================
This example plots temporal clustering, the extent to which subject tend to
recall neighboring items sequentially.
"""
# Code source: Andrew Heusser
# License: MIT
# import
import quail
#load data
egg =... | ContextLab/quail | examples/plot_temporal.py | plot_temporal.py | py | 467 | python | en | code | 18 | github-code | 36 |
27293090578 | from django.conf import settings
from django.core.exceptions import ValidationError
# from django.core.validators import MinValueValidator
from django.db import models
from trip.validators import validator_datetime
from users.models import User
class Company(models.Model):
name = models.CharField(
max_le... | ZOMini/avia_trip | avia/trip/models.py | models.py | py | 5,272 | python | ru | code | 0 | github-code | 36 |
6187622265 | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class Error(Model):
"""NOTE: This class is auto generated by the swagger code ... | ArinaYuhimenko/Swagger | error.py | error.py | py | 2,151 | python | en | code | 0 | github-code | 36 |
29423648678 | import logging
from collections import namedtuple, defaultdict
from copy import deepcopy
from dataclasses import dataclass, field
from typing import List, Tuple
import numpy as np
import networkx as nx
import parmed as pm
from IPython.display import display, SVG
from rdkit import Chem
from rdkit.Chem import AllChem, D... | wiederm/transformato | transformato/mutate.py | mutate.py | py | 90,744 | python | en | code | 16 | github-code | 36 |
33420840732 | # -*- coding: utf-8 -*-
# Juego del Ahorcado
# UD 3. Diseño de programas
# Tecnologías de la Información y de la Comunicación II - 2º BTO
# IES José Marin - Curso 2022 / 2023
# Módulo encargado de gestionar a los jugadores, sus puntuaciones, y el proceso de guardar
# y cargar sus datos en el programa.
from p... | jatovich/ahorcado | score.py | score.py | py | 758 | python | es | code | 0 | github-code | 36 |
32673819660 | import pandas as pd
import numpy as np
import re
import os
import pyperclip
def find_project_basin(list_of_valid_basins):
cur_play = input('Please enter the name of the basin you would like to gather data for\n').upper()
while True:
if cur_play in list_of_valid_basins:
b... | gilliganne/update-wells | utils/functions.py | functions.py | py | 6,696 | python | en | code | 0 | github-code | 36 |
29557430446 | import os
import sys
from typing import Optional
from brownie import network, accounts
def network_name() -> Optional[str]:
if network.show_active() is not None:
return network.show_active()
cli_args = sys.argv[1:]
net_ind = next(
(cli_args.index(arg) for arg in cli_args if arg == "--netwo... | lidofinance/curve-rewards-manager | utils/config.py | config.py | py | 1,846 | python | en | code | 0 | github-code | 36 |
74027964263 | from mysql_connect import MysqlConnect
from s_config import config
import requests
import re
import json
import csv
import time
import random
def get_video_type(video_name):
res = re.findall(r'-(.*)-|_(.*)_', video_name)
if len(res):
for item in res[0]:
if item:
return item... | jercheng/js_video_scrapy | crawl/v_qq_com/data_base/t_main2.py | t_main2.py | py | 3,091 | python | en | code | 0 | github-code | 36 |
69826427303 | import setuptools
with open('README.md', 'r') as f:
long_description = f.read()
setuptools.setup(
name='coropy',
version='0.0.1',
author='Ante Lojic Kapetanovic',
author_email='alojic00@fesb.hr',
description='A set of Python modules for COVID-19 epidemics modeling',
long_description=long_... | akapet00/coropy | setup.py | setup.py | py | 860 | python | en | code | 2 | github-code | 36 |
3731695404 | from sqlalchemy import (
Boolean,
Column,
DateTime,
Integer,
String,
ForeignKey,
)
from sqlalchemy import exc as sqlalchemy_exc
from sqlalchemy.dialects.postgresql import (
JSONB,
UUID,
ARRAY,
)
from sqlalchemy.sql.expression import false, null
from sqlalchemy.orm import relationsh... | abenga/abenga.com | py/lib/models/core.py | core.py | py | 2,678 | python | en | code | 0 | github-code | 36 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.