seq_id
string
text
string
repo_name
string
sub_path
string
file_name
string
file_ext
string
file_size_in_byte
int64
program_lang
string
lang
string
doc_type
string
stars
int64
dataset
string
pt
string
api
list
40133363615
from collections import deque dx = [-1, 1, 0, 0] dy = [0, 0, -1, 1] def nextspots(board, pos, n): nextspots = [] pos = list(pos) x1, y1, x2, y2 = pos[0][0], pos[0][1], pos[1][0], pos[1][1] for i in range(4): # ์ƒํ•˜์ขŒ์šฐ nx1, ny1 = x1 + dx[i], y1 + dy[i] nx2, ny2 = x2 + dx[i], y2 + dy[i] ...
Woojung0618/algorithmSolve
Programmers/Lv3/๋ธ”๋ก์ด๋™ํ•˜๊ธฐ.py
๋ธ”๋ก์ด๋™ํ•˜๊ธฐ.py
py
1,594
python
en
code
0
github-code
1
[ { "api_name": "collections.deque", "line_number": 31, "usage_type": "call" } ]
29123820566
import os import posixpath import errno import json import resource import sys import shutil import textwrap import urllib.parse import urllib.request import warnings import logging # External modules import click import yaml # We import botocore here so we can catch when the user tries to # access AWS without having ...
nchammas/flintrock
flintrock/flintrock.py
flintrock.py
py
45,036
python
en
code
629
github-code
1
[ { "api_name": "sys._MEIPASS", "line_number": 38, "usage_type": "attribute" }, { "api_name": "os.path.dirname", "line_number": 40, "usage_type": "call" }, { "api_name": "os.path", "line_number": 40, "usage_type": "attribute" }, { "api_name": "os.path.realpath", ...
25515562168
import pyautogui, time print("A simple text spam bot that types a massage and presses enter") print("word mode =w copy and paste mode =c self enter mode =t") mode = input("word or copy and paste mode? ") def modet(): text = input("Entere a text to spam: ") num = int(input("Enter a num:")) time.slee...
Kn0spi/Spam_Bot
spam_bot.py
spam_bot.py
py
1,084
python
en
code
0
github-code
1
[ { "api_name": "time.sleep", "line_number": 9, "usage_type": "call" }, { "api_name": "pyautogui.typewrite", "line_number": 11, "usage_type": "call" }, { "api_name": "pyautogui.press", "line_number": 12, "usage_type": "call" }, { "api_name": "time.sleep", "line_...
5059822920
from __future__ import annotations from dataclasses import dataclass, field from math import ceil from pathlib import Path from typing import TYPE_CHECKING, Any, overload from vstools import ( MISSING, CustomRuntimeError, FileWasNotFoundError, MissingT, core, expect_bits, get_user_data_dir, get_video_format, ...
jiaolovekt/HPCENC
deps/vs-plugins/vsscale/shaders.py
shaders.py
py
6,240
python
en
code
11
github-code
1
[ { "api_name": "helpers.GenericScaler", "line_number": 25, "usage_type": "name" }, { "api_name": "pathlib.Path", "line_number": 26, "usage_type": "name" }, { "api_name": "dataclasses.field", "line_number": 33, "usage_type": "call" }, { "api_name": "dataclasses.fiel...
35385777411
from ast import Return from enum import auto import json from lib2to3.pgen2 import token from multiprocessing.util import abstract_sockets_supported from textwrap import wrap from flask import Flask, jsonify, request, make_response from SQLalchemy import Autor, Postagem, db import jwt from datetime import datetime,time...
Glauberorionslt/apiblog-devaprender
app.py
app.py
py
8,266
python
pt
code
0
github-code
1
[ { "api_name": "flask.Flask", "line_number": 12, "usage_type": "call" }, { "api_name": "lib2to3.pgen2.token", "line_number": 80, "usage_type": "name" }, { "api_name": "flask.request.headers", "line_number": 82, "usage_type": "attribute" }, { "api_name": "flask.requ...
21619963342
import threading import time import urllib from collections import deque import discord import cogs.voice_lib.mkvparse as mkvparse import logging # dumb buffer stuff import io, queue, subprocess class Handler(mkvparse.MatroskaHandler): def __init__(self, packet_buffer): self.packet_buffer = packet_buf...
biglizards/butty
cogs/voice_lib/parser.py
parser.py
py
4,677
python
en
code
2
github-code
1
[ { "api_name": "cogs.voice_lib.mkvparse.MatroskaHandler", "line_number": 16, "usage_type": "attribute" }, { "api_name": "cogs.voice_lib.mkvparse", "line_number": 16, "usage_type": "name" }, { "api_name": "time.sleep", "line_number": 23, "usage_type": "call" }, { "a...
29673261055
# -*- coding: utf-8 -*- """Server for the Raspi Webapp Examples: - get json with curl -> curl -X POST http://0.0.0.0:2828/api/v1/getCrashInfo -d data/1.json - get image with curl -> curl -X POST http://0.0.0.0:2828/api/v1/getCrashImage -o received_img.png """ import sys sys.path.append('..') import os import signal imp...
tschibu/starthack-asimov
src/server.py
server.py
py
3,244
python
en
code
0
github-code
1
[ { "api_name": "sys.path.append", "line_number": 8, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 8, "usage_type": "attribute" }, { "api_name": "sanic.Sanic", "line_number": 22, "usage_type": "call" }, { "api_name": "helper.log_helper.get", "...
72860061154
from bs4 import BeautifulSoup from django.test import TestCase, Client from django.contrib.auth.models import User from .models import Post, Category, Tag # <6. ํ…Œ์ŠคํŠธ ์ฃผ๋„ ๊ฐœ๋ฐœ> # pip install beautifulsoup4 ๋กœ beautifulsoup4 ์„ค์น˜ํ•˜๊ณ  ์‚ฌ์šฉ # 1. python manage.py test ํ…Œ์ŠคํŠธ ํ•˜๋Š” ๋ช…๋ น์–ด # 2. blog/test.py์— TestCase๋ฅผ ์ƒ์†๋ฐ›๊ณ  ์ด๋ฆ„์ด 'Test'๋กœ ์‹œใ…”ใ…›์ž‘ํ•˜๋Š” ...
devMooon/internet-programming
๊ณผ์ œ/10์ฃผ์ฐจ/์ปดํ“จํ„ฐ๊ณตํ•™์ „๊ณต20200675๋ฌธ์„œ์—ฐ_tests.py
์ปดํ“จํ„ฐ๊ณตํ•™์ „๊ณต20200675๋ฌธ์„œ์—ฐ_tests.py
py
11,826
python
ko
code
0
github-code
1
[ { "api_name": "django.test.TestCase", "line_number": 15, "usage_type": "name" }, { "api_name": "django.test.Client", "line_number": 18, "usage_type": "call" }, { "api_name": "django.contrib.auth.models.User.objects.create_user", "line_number": 19, "usage_type": "call" }...
10604830299
from datetime import datetime def compare_dateprices(dp_a, dp_b, initial=True): date_a, date_b = dp_a[0], dp_b[0] if initial: best_dp = dp_a if date_a <= date_b else dp_b else: best_dp = dp_a if date_a > date_b else dp_b return best_dp if __name__ == "__main__": date1 = datetim...
sullyD64/bigdata-2019
project1/src/spark/misc/tests.py
tests.py
py
552
python
en
code
0
github-code
1
[ { "api_name": "datetime.datetime.strptime", "line_number": 16, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 16, "usage_type": "name" }, { "api_name": "datetime.datetime.strptime", "line_number": 17, "usage_type": "call" }, { "api_name"...
26398264145
from copy import deepcopy from utils import * from test import test_all from c45 import max_gain import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, precision_recall_curve def build_tree(T): """ An entry point in C45 algorithm. _T_ - a two-dimensional array represen...
buffer404/university
year3/Artificial intelligence systems/lab3/main.py
main.py
py
2,684
python
en
code
1
github-code
1
[ { "api_name": "c45.max_gain", "line_number": 24, "usage_type": "call" }, { "api_name": "sklearn.metrics.roc_curve", "line_number": 53, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.plot", "line_number": 54, "usage_type": "call" }, { "api_name": "matplot...
17599914288
import json useDebugPrint = False class Bets(): def __init__(self, bot, chatpointsObj, chateventsObj, jsonpath): self.bot = bot self.chatpointsObj = chatpointsObj self.chateventsObj = chateventsObj self.jsonpath = jsonpath self.bets = {} try: with open(...
Petricpwnz/NyAI
modules/bet.py
bet.py
py
9,192
python
en
code
1
github-code
1
[ { "api_name": "json.load", "line_number": 15, "usage_type": "call" }, { "api_name": "json.dump", "line_number": 67, "usage_type": "call" } ]
1374574117
import torch from tqdm import tqdm from tabulate import tabulate from collections import OrderedDict from torch.nn import functional as F from HDG.engine.trainer import GenericNet from HDG.utils import count_num_parameters, evaluator, TripletLoss from HDG.engine import TRAINER_REGISTRY, GenericTrainer from HDG.optim im...
VirtueZhao/HDGC
HDG/engine/baseline/CrossGrad.py
CrossGrad.py
py
5,587
python
en
code
0
github-code
1
[ { "api_name": "HDG.engine.GenericTrainer", "line_number": 12, "usage_type": "name" }, { "api_name": "HDG.engine.trainer.GenericNet", "line_number": 27, "usage_type": "call" }, { "api_name": "HDG.optim.build_optimizer", "line_number": 29, "usage_type": "call" }, { ...
17977945273
from models.Project import Project from main import db from flask import Blueprint, request, render_template, redirect, url_for, flash from flask_login import login_required, current_user projects = Blueprint('projects', __name__, url_prefix='/projects') @projects.route('/', methods=['GET']) def project_index(): ...
eric-chew/T4A2-B
src/controllers/projects_controller.py
projects_controller.py
py
3,040
python
en
code
0
github-code
1
[ { "api_name": "flask.Blueprint", "line_number": 6, "usage_type": "call" }, { "api_name": "models.Project.Project.query.all", "line_number": 11, "usage_type": "call" }, { "api_name": "models.Project.Project.query", "line_number": 11, "usage_type": "attribute" }, { ...
23164192729
import geopandas as gp import shapely def intersection(left, right, grid_size=0): """Intersect the geometries from the left with the right. New, intersected geometries are stored in "geometry_right". Uses spatial index operations for faster operations. Wholly contained geometries from right are cop...
astutespruce/secas-blueprint
analysis/lib/geometry/intersection.py
intersection.py
py
1,867
python
en
code
0
github-code
1
[ { "api_name": "shapely.STRtree", "line_number": 29, "usage_type": "call" }, { "api_name": "geopandas.GeoDataFrame", "line_number": 36, "usage_type": "call" }, { "api_name": "shapely.prepare", "line_number": 46, "usage_type": "call" }, { "api_name": "shapely.contai...
32308460282
import os from flask import jsonify, request import requests def getWeather(): try: API_KEY = os.getenv("API_KEY") args = request.args lon = str(args.get('lon')) lat = str(args.get('lat')) url = f'https://api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}&a...
HarshxiT/Krishi-Network
apps/weather/controller.py
controller.py
py
492
python
en
code
0
github-code
1
[ { "api_name": "os.getenv", "line_number": 7, "usage_type": "call" }, { "api_name": "flask.request.args", "line_number": 8, "usage_type": "attribute" }, { "api_name": "flask.request", "line_number": 8, "usage_type": "name" }, { "api_name": "requests.get", "line...
4836908083
########################################## # @subject : Person segmentation # # @author : perryxin # # @date : 2018.12.27 # ########################################## import torch.utils.data as Data from read_data import * from config import * from models.unet_plusplus im...
hellopipu/person_seg
test.py
test.py
py
2,579
python
en
code
15
github-code
1
[ { "api_name": "torch.utils.data.load", "line_number": 15, "usage_type": "call" }, { "api_name": "torch.utils.data", "line_number": 15, "usage_type": "name" }, { "api_name": "torch.utils.data.load", "line_number": 19, "usage_type": "call" }, { "api_name": "torch.ut...
39424860660
import cv2 import io import os from google.cloud import vision os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = ".." #put your google API credintials here # Instantiates a client client = vision.ImageAnnotatorClient() #folder = "/uploads/" class Image(): def __init__(self): self.labels = [] self...
yahyaakli/spring2021hackathon
src/Image.py
Image.py
py
2,347
python
en
code
0
github-code
1
[ { "api_name": "os.environ", "line_number": 8, "usage_type": "attribute" }, { "api_name": "google.cloud.vision.ImageAnnotatorClient", "line_number": 11, "usage_type": "call" }, { "api_name": "google.cloud.vision", "line_number": 11, "usage_type": "name" }, { "api_n...
71291623714
import gensim from sklearn import svm from sklearn import datasets from sklearn.feature_extraction.text import TfidfVectorizer from joblib import dump, load import flask from flask_restful import Resource, Api, reqparse from flask import request from functools import partial from flask import request, jsonify ...
themorlock/SearchMart
RestAPI/api.py
api.py
py
2,142
python
en
code
1
github-code
1
[ { "api_name": "flask.Flask", "line_number": 12, "usage_type": "call" }, { "api_name": "gensim.models.Word2Vec.load", "line_number": 32, "usage_type": "call" }, { "api_name": "gensim.models", "line_number": 32, "usage_type": "attribute" }, { "api_name": "joblib.loa...
35990658808
""" This module is used to store the methods for setting up the NSX-T XUI """ import json import os from os import path from packaging import version from cbhooks.models import CloudBoltHook from servicecatalog.models import ServiceBlueprint from resourcehandlers.models import ResourceHandler from xui.nsxt....
mbomb67/cloudbolt_samples
cloudbolt_content/ui-extension-packages/nsxt/config.py
config.py
py
6,538
python
en
code
2
github-code
1
[ { "api_name": "utilities.logger.ThreadLogger", "line_number": 16, "usage_type": "call" }, { "api_name": "os.path.dirname", "line_number": 18, "usage_type": "call" }, { "api_name": "os.path", "line_number": 18, "usage_type": "name" }, { "api_name": "os.path.abspath...
26597485464
import pdb, argparse import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.optim as optim import torchvision as thv from torchvision import transforms from torch.utils.data import Dataset, DataLoader from CarlaDataset import CarlaDataset from CVAE import CVAE from siameseC...
klaywittler/latent-map-planning
model/train_siamese.py
train_siamese.py
py
1,675
python
en
code
1
github-code
1
[ { "api_name": "siameseCVAE.siameseCVAE", "line_number": 18, "usage_type": "call" }, { "api_name": "torch.nn.MSELoss", "line_number": 19, "usage_type": "call" }, { "api_name": "torch.nn", "line_number": 19, "usage_type": "name" }, { "api_name": "torch.optim.Adam", ...
70028298274
#!/bin/python import argparse import numpy as np import pandas as pd import time import json from datetime import datetime, timedelta from confluent_kafka.avro import AvroProducer def parse_args(): parser = argparse.ArgumentParser(description='Publish CSV records to a Kafka topic.') parser.add_argument('--de...
brunoribeiro2k/movielens-events
src/main/python/publish-ratings.py
publish-ratings.py
py
3,929
python
en
code
0
github-code
1
[ { "api_name": "argparse.ArgumentParser", "line_number": 13, "usage_type": "call" }, { "api_name": "numpy.random.randint", "line_number": 26, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 26, "usage_type": "attribute" }, { "api_name": "numpy....
132504097
import random import sys import threading import time from multiprocessing import Process import zmq import requests from Crypto.Hash import SHA3_256 from Crypto.PublicKey import ECC from Crypto.Signature import DSS from Pyro4.util import json n = int(sys.argv[2]) t = int(sys.argv[4]) endpoint = "htt...
Arda-Yurdakul/CS403-Term-Project
peers2.py
peers2.py
py
2,651
python
en
code
0
github-code
1
[ { "api_name": "sys.argv", "line_number": 15, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 16, "usage_type": "attribute" }, { "api_name": "threading.Lock", "line_number": 21, "usage_type": "call" }, { "api_name": "random.randrange", "li...
72059863395
from esphome.components import number from esphome.const import CONF_MAX_VALUE, CONF_MIN_VALUE, CONF_STEP import esphome.config_validation as cv import esphome.codegen as cg from .. import fourheat_config_validation as fhcv from .. import ( fourheat_ns, CONF_DATAPOINT, CONF_FOURHEAT_ID, CONF_PARSER, ...
leoshusar/4heat-esphome
components/fourheat/number/__init__.py
__init__.py
py
1,960
python
en
code
3
github-code
1
[ { "api_name": "esphome.components.number.Number", "line_number": 19, "usage_type": "attribute" }, { "api_name": "esphome.components.number", "line_number": 19, "usage_type": "name" }, { "api_name": "esphome.codegen.Component", "line_number": 19, "usage_type": "attribute" ...
32100442579
from ase import Atoms import numpy as np atoms = Atoms(['O', 'H', 'H'], positions=[[0., 0., 0.119262], [0., 0.763239, -0.477047], [0., -0.763239, -0.477047]]) # Angle no pbc assert abs(atoms.get_angle(1, 0, 2) - 104) < 1e-3 atoms.set...
joliesla/Material-modelling
venv/Lib/site-packages/ase/test/atoms_angle.py
atoms_angle.py
py
1,046
python
en
code
1
github-code
1
[ { "api_name": "ase.Atoms", "line_number": 4, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": 24, "usage_type": "call" }, { "api_name": "numpy.sqrt", "line_number": 24, "usage_type": "call" }, { "api_name": "numpy.sqrt", "line_number": 25, ...
15201921852
from argparse import ArgumentParser, HelpFormatter import itertools import sys from pathlib import Path # ============================================================================================================ # === DTN ARGUMENT PARSER CLASSES # ====================================================================...
msancheznet/dtnsim
simulator/utils/DtnArgumentParser.py
DtnArgumentParser.py
py
3,255
python
en
code
9
github-code
1
[ { "api_name": "argparse.ArgumentParser", "line_number": 10, "usage_type": "name" }, { "api_name": "sys.exit", "line_number": 29, "usage_type": "call" }, { "api_name": "argparse.HelpFormatter", "line_number": 40, "usage_type": "call" }, { "api_name": "itertools.cha...
41617267146
""" Assignment 6 performance of Mango """ from ast import stmt from pathlib import Path import csv import pathlib from timeit import repeat, timeit as timer import main import users import user_status import pymongo import pandas as pd import random import string import time import socialnetwork_model ...
smichalove/Python320_University_of_Washington
time_mongo.py
time_mongo.py
py
13,262
python
en
code
0
github-code
1
[ { "api_name": "string.ascii_lowercase", "line_number": 18, "usage_type": "attribute" }, { "api_name": "random.choice", "line_number": 25, "usage_type": "call" }, { "api_name": "pathlib.Path.cwd", "line_number": 36, "usage_type": "call" }, { "api_name": "pathlib.Pa...
36365558628
import os import logging """ ่ฏปๅ–ๆ–‡ไปถๅ‡ฝๆ•ฐ """ # ------------------------------ logging.basicConfig( level=logging.DEBUG, format="\033[37m[%(asctime)s] [%(pathname)s] (%(levelname)s-็ฌฌ%(lineno)d่กŒ) \n%(message)s\033[0m") # ------------------------------ def open(self, all): # ่ฏปๅ–ๆ–‡ไปถๅคนๅ†…ๆ–‡ไปถ # ่พ“ๅ…ฅ่ทฏๅพ„ """ :param se...
ramchan1988/HUMEI1
os_file.py
os_file.py
py
1,512
python
en
code
0
github-code
1
[ { "api_name": "logging.basicConfig", "line_number": 8, "usage_type": "call" }, { "api_name": "logging.DEBUG", "line_number": 9, "usage_type": "attribute" }, { "api_name": "os.walk", "line_number": 24, "usage_type": "call" }, { "api_name": "logging.info", "line...
46241357
import logging import os import click import pandas as pd import tqdm from mol_dyn.pipeline import pipeline from mol_dyn.utils import load_smiles_csv @click.command() @click.option("--smiles_csv", required=True, help="Smiles csv") @click.option("--output_folder", required=True, help="Output folder") @click.option("-...
rxn4chemistry/rxn-ir-to-structure
scripts/run_md_pipeline.py
run_md_pipeline.py
py
3,122
python
en
code
4
github-code
1
[ { "api_name": "logging.basicConfig", "line_number": 38, "usage_type": "call" }, { "api_name": "mol_dyn.utils.load_smiles_csv", "line_number": 40, "usage_type": "call" }, { "api_name": "os.makedirs", "line_number": 41, "usage_type": "call" }, { "api_name": "tqdm.tq...
31525145901
# -*- coding:utf-8 -*- import pandas as pd # for data handling import numpy as np # for random selections, mainly import matplotlib.pyplot as plt # for plotting import matplotlib from sklearn.datasets.samples_generator import make_blobs from sklearn.tree import DecisionTree...
Batman001/pu-learning-demo
PU-Learning-Test-Blob.py
PU-Learning-Test-Blob.py
py
11,230
python
zh
code
2
github-code
1
[ { "api_name": "matplotlib.rcParams", "line_number": 11, "usage_type": "attribute" }, { "api_name": "matplotlib.rcParams", "line_number": 12, "usage_type": "attribute" }, { "api_name": "matplotlib.pyplot.rcParams", "line_number": 14, "usage_type": "attribute" }, { ...
26914970028
#!/usr/bin/env python3 import os import click import hashlib import imageio from .jpeg import * import subprocess as sp from pathlib import Path from contextlib import suppress from multiprocessing import cpu_count import concurrent.futures cache_dir = Path.home() / '.cache/glitch-art-display' cache_dir.mkdir(exist_...
TheTechromancer/glitch-art-display
glitch_art_display/main.py
main.py
py
8,331
python
en
code
12
github-code
1
[ { "api_name": "pathlib.Path.home", "line_number": 15, "usage_type": "call" }, { "api_name": "pathlib.Path", "line_number": 15, "usage_type": "name" }, { "api_name": "os.walk", "line_number": 34, "usage_type": "call" }, { "api_name": "pathlib.Path", "line_numbe...
70873192355
#!/usr/bin/python # -*- coding: utf-8 -*- from os import listdir,path,curdir from os.path import isfile, join import re import shutil import pandas as pd from sklearn.model_selection import train_test_split import csv import random root = "/data01/ML/dataset/FACE_CLASSIFIER" face_image_path = "/data01/ML/dataset/FACE_...
lorenzo-stacchio/You-Only-Crop-Faces
support_scripts/balance_dataset_face_classifier.py
balance_dataset_face_classifier.py
py
6,301
python
en
code
6
github-code
1
[ { "api_name": "os.listdir", "line_number": 22, "usage_type": "call" }, { "api_name": "os.path.isfile", "line_number": 23, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 23, "usage_type": "call" }, { "api_name": "random.sample", "line_numb...
12046323109
import sklearn import joblib import cv2 import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import albumentations from torch.utils.data import Dataset, DataLoader from PIL import Image import time import firebase_admin from firebase_admin import credentials from firebase_admin import f...
Abdelazizmuhmd/drowning-detection
projectjetson/jetson.py
jetson.py
py
3,581
python
en
code
2
github-code
1
[ { "api_name": "firebase_admin.credentials.Certificate", "line_number": 15, "usage_type": "call" }, { "api_name": "firebase_admin.credentials", "line_number": 15, "usage_type": "name" }, { "api_name": "firebase_admin.initialize_app", "line_number": 16, "usage_type": "call"...
12000905328
# -*- coding: utf-8 -*- """Classes for lidar ratio related db tables""" from ELDAmwl.database.tables.db_base import Base from sqlalchemy import Column from sqlalchemy import DECIMAL from sqlalchemy import INTEGER from sqlalchemy import text class ExtBscOption(Base): """content of the db table ext_bsc_options ...
actris-scc/ELDAmwl
ELDAmwl/database/tables/lidar_ratio.py
lidar_ratio.py
py
1,249
python
en
code
3
github-code
1
[ { "api_name": "ELDAmwl.database.tables.db_base.Base", "line_number": 11, "usage_type": "name" }, { "api_name": "sqlalchemy.Column", "line_number": 18, "usage_type": "call" }, { "api_name": "sqlalchemy.INTEGER", "line_number": 19, "usage_type": "argument" }, { "api...
4851164907
# -*- coding: utf-8 -*- import itertools from flask import url_for from flask_mail import Message import query_phenomizer from scout.constants import (CASE_STATUSES, PHENOTYPE_GROUPS, COHORT_TAGS) from scout.models.event import VERBS_MAP from scout.server.utils import institute_and_case STATUS_MAP = {'solved': 'bg-s...
gitter-badger/scout
scout/server/blueprints/cases/controllers.py
controllers.py
py
6,194
python
en
code
null
github-code
1
[ { "api_name": "scout.constants.CASE_STATUSES", "line_number": 19, "usage_type": "name" }, { "api_name": "scout.constants.CASE_STATUSES", "line_number": 29, "usage_type": "name" }, { "api_name": "itertools.chain", "line_number": 58, "usage_type": "call" }, { "api_n...
15362469033
import click import numpy as np from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer def get_wiki_vocab(file): """ Build a vocabulary from Wikipedia articles. Parameters ---------- file : str File path to Wikipedia article text Returns ----...
bllguo/KSI
vectorize_data.py
vectorize_data.py
py
6,602
python
en
code
0
github-code
1
[ { "api_name": "numpy.array", "line_number": 177, "usage_type": "call" }, { "api_name": "numpy.save", "line_number": 178, "usage_type": "call" }, { "api_name": "sklearn.feature_extraction.text.CountVectorizer", "line_number": 204, "usage_type": "call" }, { "api_nam...
36170482691
import time from typing import List, Tuple, Iterable from volatility3.framework import constants, interfaces, layers, symbols from volatility3.framework.configuration import requirements from volatility3.framework.interfaces import plugins from volatility3.framework.renderers import TreeGrid from volatility3.framework...
volatilityfoundation/volatility3
volatility3/framework/plugins/windows/info.py
info.py
py
9,625
python
en
code
1,879
github-code
1
[ { "api_name": "volatility3.framework.interfaces.plugins.PluginInterface", "line_number": 12, "usage_type": "attribute" }, { "api_name": "volatility3.framework.interfaces.plugins", "line_number": 12, "usage_type": "name" }, { "api_name": "volatility3.framework.configuration.requir...
87462737
# https://skyeong.net/186 import numpy as np from sklearn.datasets import fetch_openml mnist = fetch_openml("MNIST_784") X = mnist.data / 255.0 y = mnist.target print (X.shape, y.shape) import pandas as pd feat_cols = ['pixel'+str(i) for i in range(X.shape[1]) ] df = pd.DataFrame(X,columns=feat_cols) df['label']...
humanscape-sean/TSNE-on-Video-Iframes
tsne_mnist_example.py
tsne_mnist_example.py
py
1,113
python
en
code
0
github-code
1
[ { "api_name": "sklearn.datasets.fetch_openml", "line_number": 6, "usage_type": "call" }, { "api_name": "pandas.DataFrame", "line_number": 17, "usage_type": "call" }, { "api_name": "numpy.random.permutation", "line_number": 26, "usage_type": "call" }, { "api_name":...
11435870647
# TEORIA: ''' # importa o pygame import pygame # inicializa o modulo do pygame pygame.init() # definindo o tamanho da tela para o Pygame dis_width = 600 # largura dis_height = 400 # altura dis = pygame.display.set_mode((dis_width,dis_height)) red = (219, 31, 31) green = (44, 219, 31) squareSize = 20 circleRadius =...
fabiodm7/stuPy
intro/game.py
game.py
py
7,319
python
pt
code
0
github-code
1
[ { "api_name": "pygame.init", "line_number": 60, "usage_type": "call" }, { "api_name": "pygame.display.init", "line_number": 61, "usage_type": "call" }, { "api_name": "pygame.display", "line_number": 61, "usage_type": "attribute" }, { "api_name": "pygame.font.init"...
24657287989
from django.db import models # Create your models here. class Category(models.Model): name = models.CharField(max_length=200) class Product(models.Model): title = models.CharField(max_length=300) description = models.TextField() price = models.DecimalField(decimal_places=2, max_digits=10) image ...
AbhishekBose89/Asssignment35-Q1-AbhishekBose
shoplane/restapi/models.py
models.py
py
500
python
en
code
0
github-code
1
[ { "api_name": "django.db.models.Model", "line_number": 5, "usage_type": "attribute" }, { "api_name": "django.db.models", "line_number": 5, "usage_type": "name" }, { "api_name": "django.db.models.CharField", "line_number": 6, "usage_type": "call" }, { "api_name": "...
28986490606
import sqlite3 class SQLiteProfileImage(): def __init__(self): def dict_factory(cursor, row): d = {} for idx, col in enumerate(cursor.description): d[col[0]] = row[idx] return d dbname = "/sqlite/profile_image.db" self.conn = sqlite3.conn...
minegishirei/flamevalue
trashbox/django3/app/flamevalue/my_SQLite_Profile.py
my_SQLite_Profile.py
py
1,326
python
en
code
0
github-code
1
[ { "api_name": "sqlite3.connect", "line_number": 12, "usage_type": "call" } ]
72933516193
# *_* coding : UTF-8 *_* # author ๏ผš Leemamas # ๅผ€ๅ‘ๆ—ถ้—ด ๏ผš 2021/9/28 0:30 import pygame class Cointext(): def __init__(self,rect,reward,bshape): self.images = [pygame.image.load('images/coinText.png').subsurface(i*36, 0, 36, 49) for i in range(0, 11)] self.rect=rect self.reward=reward ...
leemamas/fishgame
coinText.py
coinText.py
py
701
python
en
code
8
github-code
1
[ { "api_name": "pygame.image.load", "line_number": 8, "usage_type": "call" }, { "api_name": "pygame.image", "line_number": 8, "usage_type": "attribute" } ]
39077417661
import os import requests from bs4 import BeautifulSoup from concurrent.futures import ThreadPoolExecutor os.system("mode con cols=130 lines=4") user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3' headers = { 'User-Agent': user_agent } ...
ElRizeru/dota2picker
update.py
update.py
py
2,657
python
en
code
0
github-code
1
[ { "api_name": "os.system", "line_number": 6, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 18, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 21, "usage_type": "call" }, { "api_name": "requests.get", "line_numb...
25476839440
#!/usr/bin/env python3 import re import json from pprint import pprint from argparse import ArgumentParser from json import JSONDecodeError from subprocess import call import urllib from os.path import expanduser from urllib.parse import urlparse import requests import sys from past.builtins import raw_input # call w...
JosXa/twitch-native-streaming
twitch/twitch.py
twitch.py
py
4,750
python
en
code
0
github-code
1
[ { "api_name": "os.path.expanduser", "line_number": 22, "usage_type": "call" }, { "api_name": "json.load", "line_number": 29, "usage_type": "call" }, { "api_name": "json.JSONDecodeError", "line_number": 30, "usage_type": "name" }, { "api_name": "json.dump", "li...
37336242441
from math import pi import pandas as pd from bokeh.layouts import gridplot,row from bokeh.io import output_file, save from bokeh.palettes import Category20c from bokeh.plotting import figure from bokeh.transform import cumsum from bokeh.palettes import Spectral6 from bokeh.transform import factor_cmap def chart(): ou...
dj5/Plastic-Waste-Profiling
Profilling tools/chart2.py
chart2.py
py
1,631
python
en
code
0
github-code
1
[ { "api_name": "bokeh.io.output_file", "line_number": 12, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 13, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 14, "usage_type": "call" }, { "api_name": "pandas.read_csv"...
2738595022
from django.http import HttpResponse, HttpResponseForbidden from django.shortcuts import render, redirect, get_object_or_404 from django.db.transaction import atomic, non_atomic_requests from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from ipaddress import ip_a...
Wizard-Fingerz/GreenPurseBackend
payment/views.py
views.py
py
10,164
python
en
code
0
github-code
1
[ { "api_name": "api.WalletsClient", "line_number": 22, "usage_type": "call" }, { "api_name": "cryptography.fernet.Fernet", "line_number": 23, "usage_type": "call" }, { "api_name": "django.conf.settings.ENCRYPTION_KEY", "line_number": 23, "usage_type": "attribute" }, { ...
6275958376
#!/usr/local/bin/python # coding: utf-8 """ ะฒ ัั‚ะพะผ ั„ะฐะนะปะต ะฟั€ะธะผะตั€ ัะพะทะดะฐะฝะธั ัะพะฑัั‚ะฒะตะฝะฝะพะณะพ ะฟะตั€ะตั‡ะธัะปะธะผะพะณะพ ั‚ะธะฟะฐ ะฒ ะฟะธั‚ะพะฝะต ั‚ะฐะบ ะบะฐะบ ะฒัั‚ั€ะพะตะฝะฝะพะณะพ ะผะตั…ะฐะฝะธะทะผะฐ ะฝะตั‚, ะฟะตั€ะตั‡ะธัะปะธะผั‹ะต ั‚ะธะฟั‹ ัะพะทะดะฐัŽั‚ัั ะบะฐะบ ะฝะฐัะปะตะดะฝะธะบะธ ะบะปะฐััะฐ Enum ะธะท ะผะพะดัƒะปั enum """ import enum @enum.unique # ะฝะต ะฟั€ะพะฟัƒัั‚ะธั‚ ะพะดะธะฝะฐะบะพะฒั‹ั… ะทะฝะฐั‡ะตะฝะธะน class Numbers(enum.IntEnum): "...
amtsu/team22
users/sivanov/lessons/lesson_27_enum/incrementing_intenum.py
incrementing_intenum.py
py
2,382
python
ru
code
5
github-code
1
[ { "api_name": "enum.IntEnum", "line_number": 12, "usage_type": "attribute" }, { "api_name": "enum.auto", "line_number": 18, "usage_type": "call" }, { "api_name": "enum.auto", "line_number": 19, "usage_type": "call" }, { "api_name": "enum.auto", "line_number": ...
25889695431
# Custom module to assess performance of ML model # Author: Rupinder Singh (Oct. 25, 2016) from __future__ import division import matplotlib.pyplot as plt from sklearn.metrics import auc,r2_score import numpy as np import pandas as pd from scipy.stats import sem from mpl_toolkits.axes_grid1 import make_axes_locatable ...
rupndrsingh/predictions-mvc
pLib/rs_model_metrics.py
rs_model_metrics.py
py
22,722
python
en
code
0
github-code
1
[ { "api_name": "pandas.Series", "line_number": 19, "usage_type": "call" }, { "api_name": "pandas.Series", "line_number": 20, "usage_type": "call" }, { "api_name": "pandas.concat", "line_number": 21, "usage_type": "call" }, { "api_name": "sklearn.metrics.classificat...
38776541163
def load_and_display(file_index,mode='both'): filename = get_image_filename(file_index) import pickle import numpy as np image = pickle.load( open( filename, "rb" ) ) if mode == 'both': display_image(image) else: # Reconstruct the original rgb and depth images from the merged v...
andrew-houghton/self-driving-donkey-car
Utility code/utilities.py
utilities.py
py
4,122
python
en
code
7
github-code
1
[ { "api_name": "pickle.load", "line_number": 7, "usage_type": "call" }, { "api_name": "cv2.split", "line_number": 13, "usage_type": "call" }, { "api_name": "cv2.merge", "line_number": 15, "usage_type": "call" }, { "api_name": "cv2.merge", "line_number": 18, ...
11981080026
from decimal import Decimal from django.db import models from django_countries.fields import CountryField class Partner(models.Model): uid = models.AutoField(primary_key=True) partner_id = models.CharField( max_length=3, unique=True, error_messages={"unique": "This Partner ID is alrea...
yezz123/My-Business
partners/models.py
models.py
py
2,687
python
en
code
45
github-code
1
[ { "api_name": "django.db.models.Model", "line_number": 7, "usage_type": "attribute" }, { "api_name": "django.db.models", "line_number": 7, "usage_type": "name" }, { "api_name": "django.db.models.AutoField", "line_number": 8, "usage_type": "call" }, { "api_name": "...
13461593976
from typing import Dict, List, Union import numpy as np import torch from src.utils.utils import shift_lang_token_right class BatchCollator: def __init__(self, is_mlm: bool = False, shift_lang_token: bool = False, return_special_masks: bool = False, ...
RistoAle97/ContinualNAT
src/data/collators.py
collators.py
py
8,618
python
en
code
6
github-code
1
[ { "api_name": "typing.List", "line_number": 43, "usage_type": "name" }, { "api_name": "torch.cat", "line_number": 56, "usage_type": "call" }, { "api_name": "src.utils.utils", "line_number": 56, "usage_type": "name" }, { "api_name": "src.utils.utils.new", "line...
31208597289
#!/usr/bin/env python # -*- coding:utf-8 -*- """ author comger@gmail.com """ import sys import json sys.path.append('../../') from datetime import datetime from pprint import pprint from kpages import run def callback(app): print("Start time: {0}".format(datetime.now().isoformat(" "))) print("Config Par...
comger/kpages
demos/web/apprun.py
apprun.py
py
748
python
en
code
23
github-code
1
[ { "api_name": "sys.path.append", "line_number": 9, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 9, "usage_type": "attribute" }, { "api_name": "datetime.datetime.now", "line_number": 17, "usage_type": "call" }, { "api_name": "datetime.datetime",...
28541279468
import csv import matplotlib.pyplot as plt ''' Get a list of keys from dictionary which has value that matches with any value in given list of values ''' def getKeysByValues(dictOfElements, value): listOfKeys = list() listOfItems = dictOfElements.items() for item in listOfItems: if item[1] == valu...
aquarios77/python
2021-04-08/temp_udz.py
temp_udz.py
py
1,161
python
en
code
0
github-code
1
[ { "api_name": "csv.reader", "line_number": 18, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.plot", "line_number": 29, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 29, "usage_type": "name" }, { "api_name": "matplotlib.pyplot...
23463756424
#!/usr/bin/python3 """Advanced API. ***This is an advanced task*** For this task, we'll recursively call the Reddit API, parse the titles of all hot articles and return a sorted count of given keywords(case-sensitive, delimited by spaces). Note: 1. No iteration! 2. If `word_list` contains duplicates, then the...
brian-ikiara/alx-system_engineering-devops
0x16-api_advanced/100-count.py
100-count.py
py
2,452
python
en
code
0
github-code
1
[ { "api_name": "requests.get", "line_number": 42, "usage_type": "call" } ]
10927245542
import requests from auth import get_auth_data from req import consumer_key auth = get_auth_data() def add_bookmark(url, title): res = requests.post("https://getpocket.com/v3/add", json={ "url": url, "title": title, "consumer_key": consumer_key, "access_token": auth["access_token"], }) if res.status_code...
gebeto/python
pocket-py/api.py
api.py
py
397
python
en
code
2
github-code
1
[ { "api_name": "auth.get_auth_data", "line_number": 6, "usage_type": "call" }, { "api_name": "requests.post", "line_number": 9, "usage_type": "call" }, { "api_name": "req.consumer_key", "line_number": 12, "usage_type": "name" } ]
11811149957
import nested_admin from django.contrib import admin from cms.contexts.admin import AbstractCreatedModifiedBy from . models import NavigationBar, NavigationBarItem, NavigationBarItemLocalization class NavigationBarItemLocalizationInline(nested_admin.NestedStackedInline): model = NavigationBarItemLocalization ...
UniversitaDellaCalabria/uniCMS
src/cms/menus/admin.py
admin.py
py
2,075
python
en
code
5
github-code
1
[ { "api_name": "nested_admin.NestedStackedInline", "line_number": 8, "usage_type": "attribute" }, { "api_name": "models.NavigationBarItemLocalization", "line_number": 9, "usage_type": "name" }, { "api_name": "nested_admin.NestedStackedInline", "line_number": 15, "usage_typ...
24284540158
"""Bolted Entity Manager""" from collections.abc import Mapping, MutableMapping import logging from typing import Any, Optional import homeassistant.helpers.device_registry as hass_device_registry import homeassistant.helpers.entity_registry as hass_entity_registry from homeassistant.helpers.restore_state import ( ...
dlashua/bolted
custom_components/bolted/entity_manager.py
entity_manager.py
py
6,631
python
en
code
2
github-code
1
[ { "api_name": "logging.Logger", "line_number": 16, "usage_type": "attribute" }, { "api_name": "logging.getLogger", "line_number": 16, "usage_type": "call" }, { "api_name": "homeassistant.helpers.entity_registry.async_get", "line_number": 32, "usage_type": "call" }, { ...
31278852115
""" Center crop all the source images down to 512x512 """ from PIL import Image from PIL import ImageOps import os SOURCE_DIR = "source_images_blur" OUT_DIR = "cropped_images_blur" WIDTH = 512 HEIGHT = 512 for f in os.listdir(SOURCE_DIR): im = Image.open(os.path.join(SOURCE_DIR, f)) # resize image w, h ...
cpsiff/stable_diffusion
crop.py
crop.py
py
847
python
en
code
0
github-code
1
[ { "api_name": "os.listdir", "line_number": 14, "usage_type": "call" }, { "api_name": "PIL.Image.open", "line_number": 15, "usage_type": "call" }, { "api_name": "PIL.Image", "line_number": 15, "usage_type": "name" }, { "api_name": "os.path.join", "line_number":...
20667232591
# ์ˆจ๋ฐ”๊ผญ์งˆ 1์ฐจ์› bfs๋กœ next x ๊ฐ’์„ x-1,x+1,x*2 ๋น„๊ตํ•ด์ฃผ๋ฉด์„œ ๋‹ค์Œ๊ฐ’์— +1์”ฉ from collections import deque import sys input=sys.stdin.readline n,k=map(int,input().split()) graph=[0]*100001 def bfs(n): queue=deque() queue.append(n) while queue: x=queue.popleft() if x==k: return graph[x] for nx in (x-1,x+1,x*2): ...
jeongkwangkyun/algorithm
BFS/1697.py
1697.py
py
465
python
en
code
0
github-code
1
[ { "api_name": "sys.stdin", "line_number": 4, "usage_type": "attribute" }, { "api_name": "collections.deque", "line_number": 11, "usage_type": "call" } ]
9529021289
"""add original_taxa_id_to_taxa Revision ID: 6938832cbce2 Revises: 24bc88e66a5b Create Date: 2020-10-16 04:57:24.178833 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6938832cbce2' down_revision = '24bc88e66a5b' branch_labels = None depends_on = None def up...
eODP/api
migrations/versions/6938832cbce2_add_original_taxa_id_to_taxa.py
6938832cbce2_add_original_taxa_id_to_taxa.py
py
863
python
en
code
0
github-code
1
[ { "api_name": "alembic.op.add_column", "line_number": 21, "usage_type": "call" }, { "api_name": "alembic.op", "line_number": 21, "usage_type": "name" }, { "api_name": "sqlalchemy.Column", "line_number": 21, "usage_type": "call" }, { "api_name": "sqlalchemy.Integer...
3428235704
import difflib import re from typing import Literal, TypedDict import nltk def segment_sentences_with_nltk(text: str) -> list[str]: sent_detector = nltk.data.load("tokenizers/punkt/german.pickle") return list(sent_detector.tokenize(text.strip())) _PUNCTUATION_IN_MIDDLE_RE = re.compile("([\\w\\s,;:\\-]*)([?...
mulasik/wta
wta/utils/nlp.py
nlp.py
py
8,344
python
en
code
1
github-code
1
[ { "api_name": "nltk.data.load", "line_number": 9, "usage_type": "call" }, { "api_name": "nltk.data", "line_number": 9, "usage_type": "attribute" }, { "api_name": "re.compile", "line_number": 13, "usage_type": "call" }, { "api_name": "re.compile", "line_number"...
34366237651
# coding=utf-8 """Constantes of ZETA Games first App""" import pygame as pg import numpy as np from subprocess import Popen, PIPE from threading import Thread from subprocess import call # Personnalisation de la fenรชtre titre_fenetre = "ZETA GAMES" image_icone = "images/zeta.png" w_display = 480 h_display = 270 pg.f...
zeta-technologies/workIP
constantes.py
constantes.py
py
4,460
python
en
code
0
github-code
1
[ { "api_name": "pygame.font.init", "line_number": 15, "usage_type": "call" }, { "api_name": "pygame.font", "line_number": 15, "usage_type": "attribute" }, { "api_name": "pygame.font.Font", "line_number": 48, "usage_type": "call" }, { "api_name": "pygame.font", ...
23854783061
""" Gene Neighborhoods ___________________ """ import logging import click from dram2.cli.context import DramContext, DEFAULT_KEEP_TMP, __version__ def find_neighborhoods( annotations, genes_from_ids, distance_bp=None, distance_genes=None ): # get neighborhoods as dataframes neighborhood_frames = list(...
rmFlynn/collection_of_typical_ocoli_samples
dram2/neighbors/__init__.py
__init__.py
py
5,720
python
en
code
0
github-code
1
[ { "api_name": "logging.Logger", "line_number": 57, "usage_type": "attribute" }, { "api_name": "logging.info", "line_number": 93, "usage_type": "call" }, { "api_name": "logging.info", "line_number": 109, "usage_type": "call" }, { "api_name": "logging.info", "li...
7955053783
from selenium import webdriver from commom.BaseTest import Base1 from utils.ReadProperties import Read from commom.WebDriverEngine import WebDriverEngine from commom.ElementFinder import ElementFinder import time from selenium.webdriver.common.keys import Keys import unittest from utils.HTMLTestRunnerEN import HTMLTest...
King-BAT/RanZhi
RanZhiPython/testcase/ranzhi_test.py
ranzhi_test.py
py
3,045
python
en
code
0
github-code
1
[ { "api_name": "unittest.TestCase", "line_number": 12, "usage_type": "attribute" }, { "api_name": "commom.WebDriverEngine.WebDriverEngine", "line_number": 15, "usage_type": "call" }, { "api_name": "commom.WebDriverEngine.WebDriverEngine", "line_number": 16, "usage_type": "...
35268565961
# A program that will list counties and use probability function to output theres possible frequency. # Author: Ryan Cox import numpy as np import matplotlib.pyplot as plt # make the array of occurences possibleCounties = ["Kerry", "Dublin", "Galway", "Cork", "Meath"] # Random.choice() is a probability function. ...
RYANCOX00/programming2021
Week08-Plotting/Lab8.11.2.ABSolution.py
Lab8.11.2.ABSolution.py
py
856
python
en
code
0
github-code
1
[ { "api_name": "numpy.random.choice", "line_number": 14, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 14, "usage_type": "attribute" }, { "api_name": "numpy.unique", "line_number": 18, "usage_type": "call" }, { "api_name": "matplotlib.pyplot....
73911033314
import sys import os import json import glob sys.path.append( os.path.join( os.path.dirname(os.path.realpath(__file__)), '../python/ext-libs')) from six import string_types cpp = open(sys.argv[1], "w") cpp.write( "#include \"qgsexpression.h\"\n" "\n" "QHash<QString, QgsExpression::Hel...
nextgis/nextgisqgis
scripts/process_function_template.py
process_function_template.py
py
4,209
python
en
code
27
github-code
1
[ { "api_name": "sys.path.append", "line_number": 6, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 6, "usage_type": "attribute" }, { "api_name": "os.path.join", "line_number": 7, "usage_type": "call" }, { "api_name": "os.path", "line_number": ...
74391649314
# -*- coding: utf-8 -*- import functools #ๅ†™ไธ€ไธชๅ‡ฝๆ•ฐ่ฃ…้ฅฐๅ™จ๏ผŒๆฅ็ผ“ๅญ˜ๅ‡ฝๆ•ฐ็š„ๅ€ผ def cache(func): cache_dict = {} # @functools.wraps(func) def wrapper(*args, **kwargs): key = repr(*args, **kwargs) if key in cache_dict: return cache_dict[key] else: #ไฝฟ็”จcache_dict็ผ“ๅญ˜ๅŒไธ€ไธชsql็š„็ป“ๆžœ ...
hello-wn/python-basic-scripts
20180425/use_decorator_cacheValue.py
use_decorator_cacheValue.py
py
943
python
en
code
0
github-code
1
[ { "api_name": "functools.update_wrapper", "line_number": 18, "usage_type": "call" } ]
34640319155
# -*- coding: utf-8 -*- from __future__ import unicode_literals from rest_framework import serializers from database.models import CollectionItemType from rest.serializers.object_types import items from . import types from rest.serializers.object_types import events from rest.serializers.object_types import mime_ty...
CONABIO-audio/irekua
irekua/rest/serializers/object_types/data_collections/items.py
items.py
py
2,281
python
en
code
0
github-code
1
[ { "api_name": "rest_framework.serializers.ModelSerializer", "line_number": 15, "usage_type": "attribute" }, { "api_name": "rest_framework.serializers", "line_number": 15, "usage_type": "name" }, { "api_name": "database.models.CollectionItemType", "line_number": 17, "usage...
17340264805
import re from datetime import datetime import requests from src import utils from src.connectors import KafkaClient, PostgreSQLConnector class SitesAvailability: """ A class that fetches metrics from various sites & produces records to Apache Kafka. Also, it consumes produced records from Kafka and sin...
cnatsis/sites-availability
src/SitesAvailability.py
SitesAvailability.py
py
3,705
python
en
code
0
github-code
1
[ { "api_name": "src.connectors.KafkaClient", "line_number": 24, "usage_type": "call" }, { "api_name": "src.utils.read_file_to_list", "line_number": 25, "usage_type": "call" }, { "api_name": "src.utils", "line_number": 25, "usage_type": "name" }, { "api_name": "src....
22193624498
import openai from src.models import ModelFinder from src.ai.config import CODE_DEFAULT_MAX_TOKENS, CODE_DEFAULT_TEMPERATURE class CodePromptResult: def __init__(self, result: str, used_tokens: int) -> None: self.result = result self.used_tokens = used_tokens def code_prompt( input: str, ...
AgustinMDominguez/Prompt
prompter/src/ai/code.py
code.py
py
825
python
en
code
0
github-code
1
[ { "api_name": "src.ai.config.CODE_DEFAULT_TEMPERATURE", "line_number": 16, "usage_type": "name" }, { "api_name": "src.ai.config.CODE_DEFAULT_MAX_TOKENS", "line_number": 17, "usage_type": "name" }, { "api_name": "openai.Completion.create", "line_number": 20, "usage_type": ...
37205546104
# -*- coding: UTF-8 -*- import pyee import logging import asyncio import coloredlogs from enum import Enum from utils import MockTimeout from models import dict2obj from client_network import ClientNetwork # Format colors in loggers coloredlogs.DEFAULT_FIELD_STYLES['levelname']['color'] = 'yellow' coloredlogs.install(...
xBrunoMedeiros/wyd-bot
client_game.py
client_game.py
py
8,848
python
en
code
1
github-code
1
[ { "api_name": "coloredlogs.DEFAULT_FIELD_STYLES", "line_number": 12, "usage_type": "attribute" }, { "api_name": "coloredlogs.install", "line_number": 13, "usage_type": "call" }, { "api_name": "enum.Enum", "line_number": 16, "usage_type": "name" }, { "api_name": "p...
25588514888
# import atexit import time import json from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( ATTR_ATTRIBUTION,CONF_TYPE) from homeassistant.helpers.entity import Entity import homeassistant.helpers.con...
syjjx/HA_Esxi
ha_vcenter.py
ha_vcenter.py
py
25,284
python
en
code
10
github-code
1
[ { "api_name": "logging.getLogger", "line_number": 18, "usage_type": "call" }, { "api_name": "datetime.timedelta", "line_number": 20, "usage_type": "call" }, { "api_name": "homeassistant.components.sensor.PLATFORM_SCHEMA", "line_number": 62, "usage_type": "name" }, { ...
29568221843
# -*- coding: utf-8-*- ''' First script ''' from pathlib import Path import sys import argparse pathSearch = Path('.').resolve().as_posix() sys.path.append(pathSearch) # ----------------------------------------- description='''This is a description of what the script does. This script: - is to show how the 'argp...
kemal332/entry
testScript.py
testScript.py
py
1,390
python
en
code
null
github-code
1
[ { "api_name": "pathlib.Path", "line_number": 12, "usage_type": "call" }, { "api_name": "sys.path.append", "line_number": 13, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 13, "usage_type": "attribute" }, { "api_name": "argparse.ArgumentParser", ...
20920399171
# YOLOv5 ๐Ÿš€ by Ultralytics, GPL-3.0 license """ Plotting utils """ import math import os from copy import copy from pathlib import Path import cv2 import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sn import torch from PIL import Image, ImageDraw, ImageFont impo...
ziyan0302/Yolov5_DeepSort_Pytorch_ros
Yolov5_DeepSort_Pytorch/yolov5/utils/plots.py
plots.py
py
29,223
python
en
code
5
github-code
1
[ { "api_name": "utils.general.user_config_dir", "line_number": 26, "usage_type": "call" }, { "api_name": "os.getenv", "line_number": 27, "usage_type": "call" }, { "api_name": "matplotlib.rc", "line_number": 28, "usage_type": "call" }, { "api_name": "matplotlib.use"...
23829749926
try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup config = { 'description': 'SNAPS OpenStack Installer', 'author': 'Steve Pisarski', 'url': 'https://github.com/cablelabs/snaps-openstack', 'download_url': 'https://github.com/cablelabs/snaps-ope...
cablelabs/snaps-openstack
setup.py
setup.py
py
667
python
en
code
9
github-code
1
[ { "api_name": "setuptools.find_packages", "line_number": 13, "usage_type": "call" }, { "api_name": "distutils.core.setup", "line_number": 22, "usage_type": "call" } ]
4046943676
import os import threading import common.Api_pb2 as oap_api from common.Client import Client, ClientEventHandler from gpiozero import CPUTemperature # Define cpu threshold (*C) CPU_THRESHOLD = 60 cpu = CPUTemperature() class EventHandler(ClientEventHandler): def __init__(self): self._notification_chann...
tigattack/CarPi
pi/scripts/cpu_temp_monitor.py
cpu_temp_monitor.py
py
3,828
python
en
code
0
github-code
1
[ { "api_name": "gpiozero.CPUTemperature", "line_number": 11, "usage_type": "call" }, { "api_name": "common.Client.ClientEventHandler", "line_number": 13, "usage_type": "name" }, { "api_name": "common.Api_pb2.RegisterNotificationChannelRequest", "line_number": 25, "usage_ty...
38367714869
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 21 13:23:27 2017 Plots two mass spectra on one set of axes and notates m/z of the peak(s) with the highest relative intensity. @author: emeryusher """ # import python modules for plotting etc. import numpy as np import matplotlib.pyplot as plt fro...
idpemery/random-python-scripts
MS_ref_overlay.py
MS_ref_overlay.py
py
2,275
python
en
code
0
github-code
1
[ { "api_name": "numpy.loadtxt", "line_number": 18, "usage_type": "call" }, { "api_name": "numpy.loadtxt", "line_number": 19, "usage_type": "call" }, { "api_name": "numpy.amax", "line_number": 22, "usage_type": "call" }, { "api_name": "numpy.amax", "line_number"...
28389679037
from networks import AdaINGen, VAEGen, NetV2_128x128 from utils import weights_init, get_model_list, vgg_preprocess, load_vgg16, load_vgg19, get_scheduler from torch.autograd import Variable import torch import torch.nn as nn import os class FACE_Trainer(nn.Module): def __init__(self, hyperparameters): sup...
TheSouthFrog/stylealign
pytorch_code/trainer.py
trainer.py
py
5,877
python
en
code
182
github-code
1
[ { "api_name": "torch.nn.Module", "line_number": 8, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 8, "usage_type": "name" }, { "api_name": "networks.NetV2_128x128", "line_number": 14, "usage_type": "call" }, { "api_name": "torch.nn.InstanceN...
31891970363
from termcolor import cprint from tkinter import * from ttkthemes import themed_tk from tkinter import ttk , messagebox, filedialog from PIL import Image, ImageTk vendara = ['Vendara', 14] root = themed_tk.ThemedTk() root.geometry('900x600+500+200') root.title('Admission-helper: Administrator Version') root.set_theme(...
Advik-B/Admission-helper
main.py
main.py
py
2,112
python
en
code
3
github-code
1
[ { "api_name": "ttkthemes.themed_tk.ThemedTk", "line_number": 8, "usage_type": "call" }, { "api_name": "ttkthemes.themed_tk", "line_number": 8, "usage_type": "name" }, { "api_name": "tkinter.messagebox.showinfo", "line_number": 26, "usage_type": "call" }, { "api_na...
37869013076
import numpy as np import pandas as pd import cv2 from sklearn.model_selection import train_test_split import tensorflow as tf import keras from keras.models import Model from keras.models import load_model from keras.layers import Input, Dense, Concatenate from keras.layers import Dense, GlobalAveragePooling2D, Dropou...
anton500nb/ship_detection
model.py
model.py
py
9,000
python
en
code
0
github-code
1
[ { "api_name": "tensorflow.reshape", "line_number": 20, "usage_type": "call" }, { "api_name": "tensorflow.reshape", "line_number": 21, "usage_type": "call" }, { "api_name": "tensorflow.reduce_sum", "line_number": 22, "usage_type": "call" }, { "api_name": "tensorflo...
32958345548
from argparse import ArgumentParser from time import sleep from src.netreq import setContractAddress, requestPrice, requestSymbol from src.grapher import setGraphSymbol, startGraphThread,addPrice, initanim from src.contracts import contract_list import threading def priceThread(): while True: price = reque...
gAtrium/acpy
acpy.py
acpy.py
py
1,591
python
en
code
0
github-code
1
[ { "api_name": "src.netreq.requestPrice", "line_number": 10, "usage_type": "call" }, { "api_name": "src.grapher.addPrice", "line_number": 12, "usage_type": "call" }, { "api_name": "time.sleep", "line_number": 15, "usage_type": "call" }, { "api_name": "argparse.Argu...
8343142681
from bs4 import BeautifulSoup import requests country = raw_input("Enter the country:") #print(country) site_to_scrape = "https://en.wikipedia.org/wiki/List_of_national_capitals_and_largest_cities_by_country" r = requests.get(site_to_scrape) data = r.text soup = BeautifulSoup(data) print("Capital: "+soup.find('a',ti...
deathBlad3/capitalCities
capitalCity.py
capitalCity.py
py
373
python
en
code
0
github-code
1
[ { "api_name": "requests.get", "line_number": 8, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 10, "usage_type": "call" } ]
18722144626
""" @package square_connect.report.management.commands.get_recent_transactions Gets the most recent transactions from the primary storefronts and adds any selected items to the report database. We recommend that you run it in a cron job. """ from django.core.management.base import BaseCommand, CommandError from django...
TrianglePlusPlus/howitzer
square_connect/square_connect/report/management/commands/get_recent_transactions.py
get_recent_transactions.py
py
1,410
python
en
code
1
github-code
1
[ { "api_name": "django.core.management.base.BaseCommand", "line_number": 13, "usage_type": "name" }, { "api_name": "app.models.Service.objects.count", "line_number": 22, "usage_type": "call" }, { "api_name": "app.models.Service.objects", "line_number": 22, "usage_type": "a...
31669588144
# -*- coding: utf-8 -*- # !/usr/bin/env python # @Time : 2019-08-06 16:16 # @Author : lidong@immusician.com # @Site : # @File : base.py import requests from UnitTest.settings import HOST, PORT, HEADERS class BaseResponse: def __init__(self): pass class BaseRequest: def __init__(self, host...
Fushengliangnian/PracticeEssays
UnitTest/base.py
base.py
py
1,821
python
en
code
2
github-code
1
[ { "api_name": "UnitTest.settings.HOST", "line_number": 21, "usage_type": "name" }, { "api_name": "UnitTest.settings.PORT", "line_number": 25, "usage_type": "name" }, { "api_name": "UnitTest.settings.HEADERS", "line_number": 28, "usage_type": "name" }, { "api_name"...
19194610924
#YAPI Rewrite - Yet Another Package Manager #Imports import modules.config_import as config_import import modules.installer as installer import gui.interface as interface import modules.search as search import json import sys import os try: os.chdir(os.path.dirname(__file__)) #Change file location if outside of YA...
Wabri/rewrite
yapi.py
yapi.py
py
1,975
python
en
code
3
github-code
1
[ { "api_name": "os.chdir", "line_number": 12, "usage_type": "call" }, { "api_name": "os.path.dirname", "line_number": 12, "usage_type": "call" }, { "api_name": "os.path", "line_number": 12, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 1...
72625343714
import json import csv import requests from bs4 import BeautifulSoup # โ–’โ–ˆโ–€โ–„โ–’โ–ˆโ–€โ–„ lab. PR | FAF | FCIM | UTM | Fall 2023 # โ–‘โ–ˆโ–€โ–’โ–‘โ–ˆโ–€โ–„ FAF-212 Cristian Brinza lab2 homework print('') print('โ–’โ–ˆโ–€โ–„โ–’โ–ˆโ–€โ–„ lab. PR | FAF | FCIM | UTM | Fall 2023') print('โ–‘โ–ˆโ–€โ–’โ–‘โ–ˆโ–€โ–„ FAF-212 Cristian Brinza lab2 homework ') print('') # User-Ag...
CristianBrinza/UTM
year3/pr/lab2/homework.py
homework.py
py
7,543
python
en
code
3
github-code
1
[ { "api_name": "requests.get", "line_number": 34, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 36, "usage_type": "call" }, { "api_name": "requests.RequestException", "line_number": 37, "usage_type": "attribute" }, { "api_name": "csv.Dic...
22518135513
import os # os.environ['CUDA_VISIBLE_DEVICES'] = "0" # in case you are using a multi GPU workstation, choose your GPU here import tqdm import pytorch_lightning as pl import torch import torch.nn as nn from torch.utils.data import DataLoader import torch.nn.functional as F import pandas as pd from datasets import ...
microsoft/LMOps
promptist/aesthetic/train_predictor.py
train_predictor.py
py
5,077
python
en
code
2,623
github-code
1
[ { "api_name": "pytorch_lightning.LightningModule", "line_number": 17, "usage_type": "attribute" }, { "api_name": "torch.nn.Sequential", "line_number": 23, "usage_type": "call" }, { "api_name": "torch.nn", "line_number": 23, "usage_type": "name" }, { "api_name": "t...
40888591974
# --- # jupyter: # jupytext: # cell_metadata_json: true # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python [conda env:anaconda-spark30_prev2] # langu...
Hoeze/firefly
scripts/AggregateVEP.py
AggregateVEP.py
py
15,105
python
en
code
0
github-code
1
[ { "api_name": "os.popen", "line_number": 30, "usage_type": "call" }, { "api_name": "psutil.virtual_memory", "line_number": 34, "usage_type": "call" }, { "api_name": "os.popen", "line_number": 37, "usage_type": "call" }, { "api_name": "os.environ", "line_number...
20472215584
import torch from torch import nn import torch.nn.functional as F from typing import List, Callable, ClassVar from collections import namedtuple from copy import deepcopy from .nvidia import PartialConv2d as PC2D class PartiaLConv2d (nn.Conv2d): def __init__(self, *args, **kwargs): super(PartiaLConv2d, se...
source-data/ai
toolbox/models.py
models.py
py
23,355
python
en
code
0
github-code
1
[ { "api_name": "torch.nn.Conv2d", "line_number": 10, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 10, "usage_type": "name" }, { "api_name": "torch.ones_like", "line_number": 13, "usage_type": "call" }, { "api_name": "torch.no_grad", "li...
23467172721
#!/usr/bin/python3 from brownie import Reentrance, Attack from scripts.deploy import deploy from scripts.helpful_scripts import get_account from colorama import Fore from web3 import Web3 as w3 # * colours green = Fore.GREEN red = Fore.RED blue = Fore.BLUE magenta = Fore.MAGENTA reset = Fore.RESET # * Rinkeby address...
Aviksaikat/Blockchain-CTF-Solutions
ethernaut/Re-entrance_DONE/scripts/attack.py
attack.py
py
1,759
python
en
code
1
github-code
1
[ { "api_name": "colorama.Fore.GREEN", "line_number": 9, "usage_type": "attribute" }, { "api_name": "colorama.Fore", "line_number": 9, "usage_type": "name" }, { "api_name": "colorama.Fore.RED", "line_number": 10, "usage_type": "attribute" }, { "api_name": "colorama....
20838574752
from cases import * import pandas as pd import scipy.io import sys def compare_cases(): coefs=scipy.io.loadmat("../data/timeseries.mat") trend_coefs=pd.read_csv("../data/trends.csv") season_coefs=pd.read_csv("../data/season.csv") num_years=1 start_year=2020 num_simulations=100 seed=0 par...
schraderSimon/NorwayGermanyProject
code/testfunctions.py
testfunctions.py
py
4,835
python
en
code
0
github-code
1
[ { "api_name": "scipy.io.io.loadmat", "line_number": 6, "usage_type": "call" }, { "api_name": "scipy.io.io", "line_number": 6, "usage_type": "attribute" }, { "api_name": "scipy.io", "line_number": 6, "usage_type": "name" }, { "api_name": "pandas.read_csv", "lin...
26345201031
## read params ## process ## return dataframe import os import yaml import pandas as pd import argparse #read the params from the config path and it will return a dictionary(yaml file) def read_params(config_path): with open(config_path) as yaml_file: config = yaml.safe_load(yaml_file) return config #...
SrinivasGuntupalli/simple_dvc_demo
src/get_data.py
get_data.py
py
1,015
python
en
code
0
github-code
1
[ { "api_name": "yaml.safe_load", "line_number": 12, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 22, "usage_type": "call" }, { "api_name": "argparse.ArgumentParser", "line_number": 29, "usage_type": "call" } ]
72457648034
import torch from mmdet.core.bbox import BaseBBoxCoder from mmdet.core.bbox.builder import BBOX_CODERS @BBOX_CODERS.register_module() class CameraBBoxCoder(BaseBBoxCoder): def __init__(self, code_size=8): self.code_size = code_size def encode(self, dst_boxes): targets = torch.zer...
yichen928/SparseFusion
mmdet3d/core/bbox/coders/camera_bbox_coder.py
camera_bbox_coder.py
py
2,909
python
en
code
116
github-code
1
[ { "api_name": "mmdet.core.bbox.BaseBBoxCoder", "line_number": 8, "usage_type": "name" }, { "api_name": "torch.zeros", "line_number": 13, "usage_type": "call" }, { "api_name": "torch.sin", "line_number": 17, "usage_type": "call" }, { "api_name": "torch.cos", "l...
11939597532
from __future__ import absolute_import, division, print_function import tensorflow as tf from tensorflow import keras import numpy as np import pandas as pd import matplotlib.pyplot as plt print('tensorflow version:', tf.__version__) # 1) get data boston_housing = keras.datasets.boston_housing (train_data, train_la...
halazila/pythonLearn
tfLearn/houseprice_reg.py
houseprice_reg.py
py
3,037
python
en
code
0
github-code
1
[ { "api_name": "tensorflow.__version__", "line_number": 9, "usage_type": "attribute" }, { "api_name": "tensorflow.keras.datasets", "line_number": 12, "usage_type": "attribute" }, { "api_name": "tensorflow.keras", "line_number": 12, "usage_type": "name" }, { "api_na...
30020287097
import os from random import randint from functools import partial from datetime import datetime from config.log_config import LogConfig from config.pong_enum import PathEnum, ButtonNamesEnum from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.button import Button from kivy.uix.boxlay...
ivan1dze/kivy
main.py
main.py
py
10,431
python
en
code
0
github-code
1
[ { "api_name": "config.log_config.LogConfig", "line_number": 20, "usage_type": "call" }, { "api_name": "kivy.uix.widget.Widget", "line_number": 24, "usage_type": "name" }, { "api_name": "os.listdir", "line_number": 25, "usage_type": "call" }, { "api_name": "config....
27639072195
import csv import datetime import logging from sme_ptrf_apps.core.models import Associacao, Periodo from sme_ptrf_apps.core.models.arquivo import ( DELIMITADOR_PONTO_VIRGULA, DELIMITADOR_VIRGULA, ERRO, PROCESSADO_COM_ERRO, SUCESSO, ) logger = logging.getLogger(__name__) CODIGO_EOL = 0 PERIODO = 1 ...
rochalet/SME-PTRF-BackEnd
sme_ptrf_apps/core/services/periodo_inicial.py
periodo_inicial.py
py
3,373
python
pt
code
0
github-code
1
[ { "api_name": "logging.getLogger", "line_number": 14, "usage_type": "call" }, { "api_name": "sme_ptrf_apps.core.models.arquivo.DELIMITADOR_VIRGULA", "line_number": 17, "usage_type": "name" }, { "api_name": "sme_ptrf_apps.core.models.arquivo.DELIMITADOR_PONTO_VIRGULA", "line_n...
24877020550
# coding: utf-8 """ Ctypes wrapper module for BUSMUST CAN Interface on win32/win64 systems. Authors: busmust <busmust@126.com>, BUSMUST Co.,Ltd. """ # Import Standard Python Modules # ============================== import ctypes import logging import sys import time try: # Try builtin Python 3 Windows API f...
Aceinna/acenav-cli
src/aceinna/devices/widgets/can/interfaces/bmcan/canlib.py
canlib.py
py
13,564
python
en
code
2
github-code
1
[ { "api_name": "logging.getLogger", "line_number": 38, "usage_type": "call" }, { "api_name": "can.BusABC", "line_number": 48, "usage_type": "name" }, { "api_name": "ctypes.c_int", "line_number": 89, "usage_type": "call" }, { "api_name": "ctypes.byref", "line_nu...
29110585681
#-*- encoding: UTF-8 -*- import urllib from AlyMoly.reporte.excepciones import AbstractClassException from AlyMoly.settings import REPORT_HOST, REPORT_PORT, REPORT_APP, REPORT_DIR,\ NOMBRE_SUCURSAL, CANTIDAD_PRODUCTOS_MAS_VENDIDOS,\ CANTIDAD_PROMOCIONES_MAS_VENDIDAS from AlyMoly...
CreceLibre/alymoly
AlyMoly/reporte/clases.py
clases.py
py
10,496
python
es
code
0
github-code
1
[ { "api_name": "HTMLParser.HTMLParser", "line_number": 14, "usage_type": "name" }, { "api_name": "HTMLParser.HTMLParser.__init__", "line_number": 17, "usage_type": "call" }, { "api_name": "HTMLParser.HTMLParser", "line_number": 17, "usage_type": "name" }, { "api_na...
18209204664
from const import * import sys from datetime import datetime import numpy as np import cv2 import os from time import sleep from threading import * from utils import * def removeTxt(txtBuffer): import os txtFileList = os.listdir(txtBuffer) for item in txtFileList: if item.endswith(".txt"): ...
navilo314hku/FYP
txtToJpg.py
txtToJpg.py
py
4,636
python
en
code
0
github-code
1
[ { "api_name": "os.listdir", "line_number": 13, "usage_type": "call" }, { "api_name": "os.remove", "line_number": 16, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 16, "usage_type": "call" }, { "api_name": "os.path", "line_number": 16, ...
727279415
from torchvision import models import torch.nn.functional as nnf import torch.nn as nn import utilities import config import torch import time import sys import os class Classify(): def __init__(self, logs): self.logs = logs self.modelPath = os.path.join(config.ROOT_DIRECTORY,config.MODEL_ROOT_DIR)...
p4z1/NN-anomaly-detection-system
centrala/netServer.py
netServer.py
py
3,955
python
en
code
1
github-code
1
[ { "api_name": "os.path.join", "line_number": 14, "usage_type": "call" }, { "api_name": "os.path", "line_number": 14, "usage_type": "attribute" }, { "api_name": "config.ROOT_DIRECTORY", "line_number": 14, "usage_type": "attribute" }, { "api_name": "config.MODEL_ROO...
74339324514
import os import sys import requests from pymongo import MongoClient from apscheduler.schedulers.blocking import BlockingScheduler # For simplicity, we are hardcoding the GitHub URL here. GITHUB_URL = "https://github.com/akto-api-security/pii-types/blob/master/general.json" # We can also pass the GitHub URL as an envi...
rabilrbl/Akto-Assessment
script.py
script.py
py
2,073
python
en
code
0
github-code
1
[ { "api_name": "os.environ.get", "line_number": 12, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 12, "usage_type": "attribute" }, { "api_name": "os.environ.get", "line_number": 13, "usage_type": "call" }, { "api_name": "os.environ", "line_...