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
16723311170
import json import threading import cv2 import PySimpleGUI as sg import trt_pose.coco import trt_pose.models from flask import Flask from flask_restful import Api, Resource from trt_pose.parse_objects import ParseObjects from camera import Camera from exercise import LeftBicepCurl, RightBicepCurl, Shoulde...
CashMemory/SeniorProject
tasks/human_pose/get_video.py
get_video.py
py
5,493
python
en
code
2
github-code
36
[ { "api_name": "flask_restful.Resource", "line_number": 23, "usage_type": "name" }, { "api_name": "exercise.LeftBicepCurl", "line_number": 26, "usage_type": "call" }, { "api_name": "flask_restful.Resource", "line_number": 31, "usage_type": "name" }, { "api_name": "...
41202660931
import enum import logging import os import subprocess import sys import tempfile from pathlib import Path from typing import Iterable, List, Tuple, Union from pprint import pprint import commentjson import config import resume.sections as sections def create_resume_(data: dict, output_filename: str): class SECT...
ankan-ekansh/JSON-Resume-LaTeX
script/create.py
create.py
py
8,191
python
en
code
0
github-code
36
[ { "api_name": "enum.Enum", "line_number": 17, "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": 20,...
30293317516
from gc import callbacks import numpy as np import matplotlib.pyplot as plt import pandas as pd import tensorflow as tf import scipy import keras from keras.models import Sequential from keras.layers import Convolution2D from keras.layers import MaxPooling2D from keras.layers import Flatten from keras.layers...
hafeezkhan909/Detection-of-Cavities-from-Oral-Images-using-Convolutional-Neural-Networks
main.py
main.py
py
5,653
python
en
code
1
github-code
36
[ { "api_name": "keras.models.Sequential", "line_number": 24, "usage_type": "call" }, { "api_name": "keras.layers.Convolution2D", "line_number": 28, "usage_type": "call" }, { "api_name": "keras.layers.BatchNormalization", "line_number": 29, "usage_type": "call" }, { ...
30579767477
import os import numpy as np import torch import transformers import torch.nn as nn from transformers import AutoModel, BertTokenizer import nltk nltk.download("stopwords") from nltk.corpus import stopwords from string import punctuation russian_stopwords = stopwords.words("russian") '''import keras import numpy as ...
FenixFly/Neimark-hack-FSC
backend/MLmodels.py
MLmodels.py
py
8,042
python
en
code
0
github-code
36
[ { "api_name": "nltk.download", "line_number": 8, "usage_type": "call" }, { "api_name": "nltk.corpus.stopwords.words", "line_number": 11, "usage_type": "call" }, { "api_name": "nltk.corpus.stopwords", "line_number": 11, "usage_type": "name" }, { "api_name": "torch....
26966511059
import pandas as pd import numpy as np import re from itertools import chain from sklearn.preprocessing import StandardScaler from sklearn.compose import ColumnTransformer from sklearn.pipeline import Pipeline import pickle with open('only_viruses.pkl','rb') as f: only_viruses = pickle.load(f) with op...
IlyaMescheryakov1402/virus-predictor
predict.py
predict.py
py
2,977
python
en
code
0
github-code
36
[ { "api_name": "pickle.load", "line_number": 11, "usage_type": "call" }, { "api_name": "pickle.load", "line_number": 14, "usage_type": "call" }, { "api_name": "pickle.load", "line_number": 17, "usage_type": "call" }, { "api_name": "pandas.DataFrame", "line_numb...
3026797044
# -*- coding: utf-8 -*- from Basic_Tools import * import arcpy,math import pandas as pd import numpy as np import uuid,json,datetime,sys,csv,os from scipy.spatial import distance_matrix arcpy.env.overwriteOutPut = True class Layer_Engine(): def __init__(self,layer,columns = 'all'): i...
medad-hoze/EM_3
Old/Engine_class.py
Engine_class.py
py
9,913
python
en
code
0
github-code
36
[ { "api_name": "arcpy.env", "line_number": 11, "usage_type": "attribute" }, { "api_name": "arcpy.ListFields", "line_number": 19, "usage_type": "call" }, { "api_name": "os.path.dirname", "line_number": 24, "usage_type": "call" }, { "api_name": "os.path", "line_n...
29394478322
# -*- coding: utf-8 -*- """Bottle web-server.""" from bottle import Bottle from bottle import template, static_file from os.path import dirname, abspath from datetime import date, timedelta app = Bottle() BASE_DIR = dirname(abspath(__file__)) @app.route('/static/<filename:path>') def server_static(filename): "...
AnotherProksY/MyPage
src/mypage.py
mypage.py
py
701
python
en
code
0
github-code
36
[ { "api_name": "bottle.Bottle", "line_number": 9, "usage_type": "call" }, { "api_name": "os.path.dirname", "line_number": 11, "usage_type": "call" }, { "api_name": "os.path.abspath", "line_number": 11, "usage_type": "call" }, { "api_name": "bottle.static_file", ...
3511505451
from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC class Orderpage: def __init__(self, driver): # constructor method self.driver = driver self.wait = WebDriverWait(self.driver, 10) ...
tadios19/QA_19_POM1
Src/Pages/OrderPage.py
OrderPage.py
py
705
python
en
code
0
github-code
36
[ { "api_name": "selenium.webdriver.support.ui.WebDriverWait", "line_number": 9, "usage_type": "call" }, { "api_name": "selenium.webdriver.support.ui.WebDriverWait", "line_number": 14, "usage_type": "call" }, { "api_name": "selenium.webdriver.support.expected_conditions.presence_of...
37753193171
import requests from bs4 import BeautifulSoup from pymongo import MongoClient from loguru import logger from tqdm import tqdm from .dates import DATES client = MongoClient() db = client["echo_of_moscow"] collection = db["error_log_links"] def links() -> list: links = [] logger.info("Starting generating") ...
smapl/mos_parse
src/mos_parse/parse_links.py
parse_links.py
py
1,022
python
en
code
0
github-code
36
[ { "api_name": "pymongo.MongoClient", "line_number": 11, "usage_type": "call" }, { "api_name": "loguru.logger.info", "line_number": 18, "usage_type": "call" }, { "api_name": "loguru.logger", "line_number": 18, "usage_type": "name" }, { "api_name": "dates.DATES", ...
74120520424
import pygame,sys from pygame.locals import * from GUI_formulario_prueba import FormPrincipal from constantes import * pygame.init() pygame.display.set_caption("Robot Blaster Adventure") RELOJ = pygame.time.Clock() PANTALLA = pygame.display.set_mode((ANCHO_PANTALLA,ALTO_PANTALLA)) imagen_fondo = pygame.imag...
valverdecristian/cristian_valverde_tp_pygame
main_principal.py
main_principal.py
py
1,647
python
es
code
0
github-code
36
[ { "api_name": "pygame.init", "line_number": 6, "usage_type": "call" }, { "api_name": "pygame.display.set_caption", "line_number": 7, "usage_type": "call" }, { "api_name": "pygame.display", "line_number": 7, "usage_type": "attribute" }, { "api_name": "pygame.time.C...
966762603
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from textwrap import dedent import argparse import logging import numpy as np np.set_printoptions(precision=1) from scipy.sparse import load_npz from surface_stiffness.matrix import ( fourier_transform_symmetric_square_block_matrix, OrderedVectorToRectan...
wgnoehring/surface_stiffness
scripts/fourier_transform_greens_functions.py
fourier_transform_greens_functions.py
py
3,013
python
en
code
0
github-code
36
[ { "api_name": "numpy.set_printoptions", "line_number": 9, "usage_type": "call" }, { "api_name": "logging.getLogger", "line_number": 21, "usage_type": "call" }, { "api_name": "argparse.ArgumentParser", "line_number": 26, "usage_type": "call" }, { "api_name": "textw...
70584661544
# create venv # python3 -m venv env import markdown from datetime import datetime md = markdown.Markdown(extensions=['markdown.extensions.fenced_code']) file_data = None with open('raw.md') as f: file_data = f.read() #print(file_data) data = md.convert(file_data) header_list = [] # link i = len(data) target = '...
yjlo123/runtime-tutorial
gen.py
gen.py
py
2,378
python
en
code
0
github-code
36
[ { "api_name": "markdown.Markdown", "line_number": 7, "usage_type": "call" }, { "api_name": "datetime.datetime.now", "line_number": 93, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 93, "usage_type": "name" } ]
34112296996
#!/usr/bin/env python3 import time import sys import psycopg2 import configparser from json import dumps from json import loads import stomp ############################################################################### # Globals ############################################################################### config...
pumpingstationone/DeepHarborCRM
DHDispatcher/dispatcher.py
dispatcher.py
py
3,088
python
en
code
2
github-code
36
[ { "api_name": "configparser.ConfigParser", "line_number": 15, "usage_type": "call" }, { "api_name": "psycopg2.connect", "line_number": 19, "usage_type": "call" }, { "api_name": "stomp.ConnectionListener", "line_number": 25, "usage_type": "attribute" }, { "api_name...
5221914888
import matplotlib.pyplot as plt from constants.spark import Session from etl import parquet def createDistributionGraph(): """ Distribution analysis function Calculates the distribution of cyclists over the different measurement points Shows the results in a bar plot :return: None """ wit...
BigUtrecht/BigUtrecht
analysis/distribution.py
distribution.py
py
1,598
python
en
code
0
github-code
36
[ { "api_name": "constants.spark.Session", "line_number": 14, "usage_type": "call" }, { "api_name": "etl.parquet.readResults", "line_number": 15, "usage_type": "call" }, { "api_name": "etl.parquet", "line_number": 15, "usage_type": "name" }, { "api_name": "etl.parqu...
16667023084
import torch, torch.nn, torch.nn.functional as F import pytorch_lightning as pl from tqdm import tqdm from pathlib import Path from argparse import ArgumentParser, Namespace from itertools import count import time, os from train import Unet3D, QureDataset def predict(args): checkpoint_path = Path(args.checkpo...
xeTaiz/dvao
infer.py
infer.py
py
3,255
python
en
code
6
github-code
36
[ { "api_name": "pathlib.Path", "line_number": 13, "usage_type": "call" }, { "api_name": "torch.load", "line_number": 14, "usage_type": "call" }, { "api_name": "pathlib.Path", "line_number": 16, "usage_type": "call" }, { "api_name": "torch.cuda.is_available", "l...
32707616661
import pygame from pygame.locals import * class abstractCell: def __init__ (self): "cell basic class" self.northWallBroken = False self.eastWallBroken = False self.westWallBroken = False self.southWallBroken = False "if visited" self.visited = False self.neighbours = [] "coords" self.x = 0 s...
Sheepaay/Maze-Generation
cell.py
cell.py
py
2,254
python
en
code
0
github-code
36
[ { "api_name": "pygame.draw.line", "line_number": 25, "usage_type": "call" }, { "api_name": "pygame.draw", "line_number": 25, "usage_type": "attribute" }, { "api_name": "pygame.draw.line", "line_number": 27, "usage_type": "call" }, { "api_name": "pygame.draw", ...
39497609909
""" Module for Various functions to simplify and standardize dumping objects to json. NOTE: this is taken from python-common in nomad-lab-base. It is copied here to remove the dependency from nomad-lab-base. For more info on python-common visit: https://gitlab.mpcdf.mpg.de/nomad-lab/python-common The author of this ...
angeloziletti/ai4materials
ai4materials/external/json_support.py
json_support.py
py
5,727
python
en
code
36
github-code
36
[ { "api_name": "numpy.ndarray", "line_number": 22, "usage_type": "attribute" }, { "api_name": "numpy.ascontiguousarray", "line_number": 25, "usage_type": "call" }, { "api_name": "builtins.object", "line_number": 33, "usage_type": "name" }, { "api_name": "json.dump"...
14208634774
import trimesh import subprocess import time def reduceVertex(mesh, vertices = 1024): mesh.export("temp.obj") subprocess.run(["Manifold/build/manifold", "temp.obj", "temp.obj", "1500"]) mesh = trimesh.load("temp.obj") n_tries = 0 while(mesh.vertices.shape[0] != vertices): n_vertices = mes...
texsmv/PCLslimTreeRec
Code/utils.py
utils.py
py
996
python
en
code
0
github-code
36
[ { "api_name": "subprocess.run", "line_number": 7, "usage_type": "call" }, { "api_name": "trimesh.load", "line_number": 9, "usage_type": "call" }, { "api_name": "subprocess.run", "line_number": 17, "usage_type": "call" }, { "api_name": "trimesh.load", "line_num...
8692281198
from aiogram.dispatcher import FSMContext from aiogram.utils.markdown import bold from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton, ParseMode import keyboards import db from StateMachine import NewStateMachine from aiogram.dispatcher.filters.state import State, StatesGroup from aiogram import Disp...
malumbaaa/jerrybot
handlers/admin/delete_dish_handler.py
delete_dish_handler.py
py
4,611
python
en
code
0
github-code
36
[ { "api_name": "aiogram.dispatcher.filters.state.StatesGroup", "line_number": 13, "usage_type": "name" }, { "api_name": "aiogram.dispatcher.filters.state.State", "line_number": 14, "usage_type": "call" }, { "api_name": "aiogram.types.CallbackQuery", "line_number": 17, "usa...
17090138466
from flask import Blueprint, render_template, request auth = Blueprint( 'auth', __name__, template_folder='templates', static_folder='static' ) @auth.route('/login', methods=['POST', 'GET']) def login(): if request.method == 'POST': print(request.form) return render_template('login.htm...
fortisauris/PyDevJunior2
FL05_BLUEPRINTS/blueprints/auth/auth.py
auth.py
py
324
python
en
code
1
github-code
36
[ { "api_name": "flask.Blueprint", "line_number": 3, "usage_type": "call" }, { "api_name": "flask.request.method", "line_number": 12, "usage_type": "attribute" }, { "api_name": "flask.request", "line_number": 12, "usage_type": "name" }, { "api_name": "flask.request....
32824752707
import cv2 import os def register(): cam=cv2.VideoCapture(0) detector=cv2.CascadeClassifier('haarcascade_frontalface_default.xml') num=input('enter our ID : ') sampleNum=0 while True: pwd=os.getcwd() ret,im=cam.read() if not ret: print(ret) break ...
apoorvamilly/imirror
dataset.py
dataset.py
py
975
python
en
code
0
github-code
36
[ { "api_name": "cv2.VideoCapture", "line_number": 5, "usage_type": "call" }, { "api_name": "cv2.CascadeClassifier", "line_number": 6, "usage_type": "call" }, { "api_name": "os.getcwd", "line_number": 12, "usage_type": "call" }, { "api_name": "cv2.cvtColor", "li...
12644189947
import os import music21 as m21 import numpy as np from tensorflow import keras import tensorflow as tf import json # globals # ex : "dataset/deutschl/test" DATASET_DIR = "dataset/deutschl/erk" # ex : "preprocessed/encode/deutschl/test" ENCODED_SAVE_DIR = "preprocessed/encode/deutschl/erk" # ex : "preprocessed/singl...
Audirea/music-generator
preprocessing.py
preprocessing.py
py
7,365
python
en
code
0
github-code
36
[ { "api_name": "os.listdir", "line_number": 39, "usage_type": "call" }, { "api_name": "music21.converter.parse", "line_number": 41, "usage_type": "call" }, { "api_name": "music21.converter", "line_number": 41, "usage_type": "attribute" }, { "api_name": "music21.str...
15343540294
import os import re from collections import defaultdict from multiprocessing import Pool from multiprocessing.dummy import Pool as ThreadPool import chess from chess.pgn import read_game import numpy as np def extract_moves(game): # Takes a game from the pgn and creates list of the board state and the next #...
mrklees/deepconv-chess
py/data_generator.py
data_generator.py
py
5,960
python
en
code
5
github-code
36
[ { "api_name": "chess.Board", "line_number": 17, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": 44, "usage_type": "call" }, { "api_name": "numpy.empty", "line_number": 50, "usage_type": "call" }, { "api_name": "numpy.isin", "line_number": 5...
11469122465
import tensorflow as tf import tensorflow_probability as tfp import numpy as np import time import utils def get_pNK_test_obs( ls, sigmas, sigma0s, nhyp, X, # (nobs, xdim) test_xs, # (ntest, xdim) dtype=tf.float32 ): """ Returns ...
ZhaoxuanWu/Trusted-Maximizers-Entropy-Search-BO
criteria/evaluate_sample_mp.py
evaluate_sample_mp.py
py
11,291
python
en
code
3
github-code
36
[ { "api_name": "tensorflow.float32", "line_number": 17, "usage_type": "attribute" }, { "api_name": "tensorflow.shape", "line_number": 27, "usage_type": "call" }, { "api_name": "tensorflow.shape", "line_number": 28, "usage_type": "call" }, { "api_name": "tensorflow....
44310759659
import pygame, colors, random, time, runclass, math, draw from random import randint def info(screen, WIDTH, HEIGHT): # displays the goal of the game with the desired font and pauses for 1.5 seconds before the game starts info_font = pygame.font.SysFont('Comic Sans MS', 100) info_message = info_font.render('Rea...
RamboTheGreat/Minigame-Race
run.py
run.py
py
3,594
python
en
code
0
github-code
36
[ { "api_name": "pygame.font.SysFont", "line_number": 6, "usage_type": "call" }, { "api_name": "pygame.font", "line_number": 6, "usage_type": "attribute" }, { "api_name": "colors.white", "line_number": 7, "usage_type": "attribute" }, { "api_name": "colors.black", ...
8863752563
import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['font.family'] = 'cmu serif' # use latex for font rendering matplotlib.rcParams['text.usetex'] = True SMALL_SIZE = 12 MEDIUM_SIZE = 14 BIGGER_SIZE = 16 plt.rc('font', size=SMALL_SIZE) # controls default text sizes plt.rc...
marco-rosso-m/SAP2000-python-for-structural-optimization
Parallel_processing_optimization/Optimization_Parallel_sez_diverse_fixed.py
Optimization_Parallel_sez_diverse_fixed.py
py
15,571
python
en
code
0
github-code
36
[ { "api_name": "matplotlib.rcParams", "line_number": 4, "usage_type": "attribute" }, { "api_name": "matplotlib.rcParams", "line_number": 6, "usage_type": "attribute" }, { "api_name": "matplotlib.pyplot.rc", "line_number": 12, "usage_type": "call" }, { "api_name": "...
23176774568
from .models import Heroes, Properties from django.forms import ModelForm, Form, TextInput, Textarea, Select, CheckboxSelectMultiple, CharField,\ MultipleChoiceField, PasswordInput from django.contrib.auth.models import User class HeroesForm(ModelForm): class Meta: model = Heroes fields = [ ...
Manakhov/7dsgc-wiki
sdsgc_wiki/main/forms.py
forms.py
py
3,196
python
en
code
0
github-code
36
[ { "api_name": "django.forms.ModelForm", "line_number": 7, "usage_type": "name" }, { "api_name": "models.Heroes", "line_number": 9, "usage_type": "name" }, { "api_name": "django.forms.TextInput", "line_number": 20, "usage_type": "call" }, { "api_name": "django.form...
71578936743
#!/usr/bin/env python """ """ import vtk def main(): colors = vtk.vtkNamedColors() fileName = get_program_parameters() colors.SetColor("SkinColor", [255, 125, 64, 255]) colors.SetColor("BkgColor", [51, 77, 102, 255]) # Create the renderer, the render window, and the interactor. The renderer ...
lorensen/VTKExamples
src/Python/Medical/MedicalDemo1.py
MedicalDemo1.py
py
3,793
python
en
code
319
github-code
36
[ { "api_name": "vtk.vtkNamedColors", "line_number": 10, "usage_type": "call" }, { "api_name": "vtk.vtkRenderer", "line_number": 21, "usage_type": "call" }, { "api_name": "vtk.vtkRenderWindow", "line_number": 22, "usage_type": "call" }, { "api_name": "vtk.vtkRenderW...
72275954665
from socket import * from threading import Thread import os,stat import time, random import statistics def r2(n,ip,port): if port == 20002: node = "s" # This is for output purposes elif port == 20022: node = "d" print("R2 WILL SEND MESSAGE TO: {} OVER {}".format(node, ip, port)) c = socket(AF_INET, SOCK_DGRAM) ...
ilkersigirci/METU-CENG-Assignments
Ceng435-Data_Communications_and_Networking/Term-Project-Part1/discoveryScripts/r2.py
r2.py
py
2,452
python
en
code
0
github-code
36
[ { "api_name": "time.time", "line_number": 19, "usage_type": "call" }, { "api_name": "time.time", "line_number": 22, "usage_type": "call" }, { "api_name": "statistics.mean", "line_number": 27, "usage_type": "call" }, { "api_name": "threading.Thread", "line_numb...
17797629984
from __future__ import absolute_import, division, print_function, unicode_literals import os from builtins import str from contextlib import contextmanager from unittest import skipIf from pants.java.distribution.distribution import Distribution, DistributionLocator from pants.util.osutil import OS_ALIASES, get_os_na...
fakeNetflix/twitter-repo-pants
tests/python/pants_test/java/distribution/test_distribution_integration.py
test_distribution_integration.py
py
6,476
python
en
code
0
github-code
36
[ { "api_name": "pants.java.distribution.distribution.DistributionLocator.options_scope", "line_number": 17, "usage_type": "attribute" }, { "api_name": "pants.java.distribution.distribution.DistributionLocator", "line_number": 17, "usage_type": "name" }, { "api_name": "pants_test.s...
16636445685
from enum import Enum from math import hypot from typing import Optional, List, Tuple, Union, Type import torch from torch import nn, Tensor __all__ = [ "bilinear_upsample_initializer", "icnr_init", "AbstractResizeLayer", "PixelShuffle", "PixelShuffleWithLinear", "BilinearAdditiveUpsample2d", ...
BloodAxe/pytorch-toolbelt
pytorch_toolbelt/modules/upsample.py
upsample.py
py
9,298
python
en
code
1,447
github-code
36
[ { "api_name": "enum.Enum", "line_number": 22, "usage_type": "name" }, { "api_name": "torch.nn.Module", "line_number": 31, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 31, "usage_type": "name" }, { "api_name": "torch.Tensor", "line_numb...
40798536786
from keras.datasets import mnist from keras.utils import np_utils import numpy as np import sys import tensorflow as tf seed = 0 np.random.seed(seed) tf.set_random_seed(seed) (X_train, y_class_train), (X_test, y_class_test) = mnist.load_data() print("Num of images in Train set: %d" % (X_train.shape[0])) print("Num ...
devjwsong/deep-learning-study-tensorflow
Chap5/MNIST_Data.py
MNIST_Data.py
py
898
python
en
code
0
github-code
36
[ { "api_name": "numpy.random.seed", "line_number": 9, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 9, "usage_type": "attribute" }, { "api_name": "tensorflow.set_random_seed", "line_number": 10, "usage_type": "call" }, { "api_name": "keras.da...
15194589620
import json with open ( "../6.NLP/sarcasm.json" , 'r' ) as f : datastore = json.load ( f ) sentences = [] labels = [] for item in datastore : sentences.append ( item [ 'headline' ] ) labels.append ( item [ 'is_sarcastic' ] ) training_size = 20000 training_sentences = sentences [ 0 : training_size...
AmalLight/Neural_Network_2
7.sequences_RNN/12.sarcasm_with_1D_convolutional.py
12.sarcasm_with_1D_convolutional.py
py
2,519
python
en
code
0
github-code
36
[ { "api_name": "json.load", "line_number": 3, "usage_type": "call" }, { "api_name": "tensorflow.keras.preprocessing.text.Tokenizer", "line_number": 34, "usage_type": "call" }, { "api_name": "tensorflow.keras.preprocessing.sequence.pad_sequences", "line_number": 38, "usage_...
12338780708
################011011100110010101101111#### ### neo Command Line ####################### ############################################ def getcmdlist(): cmds = { "sav" :"Select all in Active View, Model or Annotation.", "samv" :"Select all in Active View, non Annotation.", ...
0neo/pyRevit.neoCL
neoCL.extension/neocl_s.py
neocl_s.py
py
1,593
python
en
code
7
github-code
36
[ { "api_name": "lib.select.neo_selection_funcs.SelectAllInView", "line_number": 20, "usage_type": "call" }, { "api_name": "lib.select.neo_selection_funcs", "line_number": 20, "usage_type": "name" }, { "api_name": "lib.select.neo_selection_funcs.SelectAllInView", "line_number":...
318564129
import logging import shutil from os.path import isdir from urllib.request import urlopen from zipfile import ZipFile from charms.nginx_ingress_integrator.v0.ingress import IngressRequires from ops.charm import CharmBase from ops.main import main from ops.model import ActiveStatus, BlockedStatus, MaintenanceStatus lo...
mthaddon/hello-kubecon-k8s
src/charm.py
charm.py
py
4,399
python
en
code
0
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 12, "usage_type": "call" }, { "api_name": "ops.charm.CharmBase", "line_number": 18, "usage_type": "name" }, { "api_name": "charms.nginx_ingress_integrator.v0.ingress.IngressRequires", "line_number": 27, "usage_type": "call...
20077176339
from django.urls import resolve from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase, APIRequestFactory from cars.models import Car, Manufacturer, Rate from cars.serializers import PopularSerializer from cars.views import PopularListView factory = AP...
tomasz-rzesikowski/cars_API
cars/tests/tests_views/tests_popular_list_view.py
tests_popular_list_view.py
py
2,109
python
en
code
0
github-code
36
[ { "api_name": "rest_framework.test.APIRequestFactory", "line_number": 10, "usage_type": "call" }, { "api_name": "rest_framework.test.APITestCase", "line_number": 13, "usage_type": "name" }, { "api_name": "cars.views.PopularListView.as_view", "line_number": 15, "usage_type...
32817446826
"""Add beach_id column and BeachForecastListHistory table Revision ID: eae746ee3547 Revises: cc49b6b03c5a Create Date: 2021-11-06 03:37:19.196002 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'eae746ee3547' down_revis...
veluminous/sea_forecast_api
alembic/versions/eae746ee3547_add_beach_id_column_and_.py
eae746ee3547_add_beach_id_column_and_.py
py
2,744
python
en
code
0
github-code
36
[ { "api_name": "alembic.op.create_table", "line_number": 21, "usage_type": "call" }, { "api_name": "alembic.op", "line_number": 21, "usage_type": "name" }, { "api_name": "sqlalchemy.Column", "line_number": 22, "usage_type": "call" }, { "api_name": "sqlalchemy.Integ...
39723147483
from fastapi import Response, HTTPException from odmantic import Field from pydantic import BaseModel from pydantic.main import ModelMetaclass from starlette.background import BackgroundTask import typing from dojo.shared.supported_services import SupportedServices if typing.TYPE_CHECKING: from dojo.shared.error_m...
ms7m/dojo
dojo/shared/response.py
response.py
py
3,595
python
en
code
0
github-code
36
[ { "api_name": "typing.TYPE_CHECKING", "line_number": 9, "usage_type": "attribute" }, { "api_name": "fastapi.Response", "line_number": 13, "usage_type": "name" }, { "api_name": "typing.Any", "line_number": 20, "usage_type": "attribute" }, { "api_name": "typing.Opti...
17659950405
# -*- coding:utf-8 -*- import pandas as pd import requests import time import json import os def get_month_data(month): page = 1 num = 1 video_list = [] while(True): print('*****' * 10, f'page[{page}]', '*****' * 10) # 处理月份格式 if month in ['01', '03', '05', '07', '08', '10', ...
PeanuTxT/bilibili_spider
danmu_spiders/link_spider.py
link_spider.py
py
2,626
python
en
code
4
github-code
36
[ { "api_name": "requests.get", "line_number": 27, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 30, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 32, "usage_type": "call" }, { "api_name": "time.sleep", "line_number": 45...
7768381873
#!/usr/bin/env python3 # AWS Lambda function for creating an AMI image from a given instance. # By Michael Ludvig - https://aws.nz # Trigger this function from CloudWatch Scheduler (cron-like) # Pass the Instance ID in 'instance_id' environment variable. import os import boto3 from datetime import datetime, timedelt...
mludvig/aws-standard-templates
src/lambda-snapshot-instance.py
lambda-snapshot-instance.py
py
2,534
python
en
code
2
github-code
36
[ { "api_name": "boto3.client", "line_number": 14, "usage_type": "call" }, { "api_name": "datetime.datetime.strftime", "line_number": 20, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 20, "usage_type": "name" }, { "api_name": "datetime.da...
19781798290
from os import popen from pathlib import Path import threading from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage from tkinter import * from tkinter import ttk from tkinter.messagebox import OK import pyautogui import mouse import cv2 import pytesseract from PIL import Image import threading import numpy a...
MohamedWael3011/PROFarmTracker
gui.py
gui.py
py
8,410
python
en
code
0
github-code
36
[ { "api_name": "tkinter.Tk", "line_number": 21, "usage_type": "call" }, { "api_name": "tkinter.ttk.Treeview", "line_number": 24, "usage_type": "call" }, { "api_name": "tkinter.ttk", "line_number": 24, "usage_type": "name" }, { "api_name": "tkinter.Button", "lin...
1290956082
# -*- coding: utf-8 -*- """ Created on Sat Jul 16 12:27:12 2022 @author: Delaeyram """ import streamlit as st import cv2 st.markdown("Built by Eyram Dela") run = st.checkbox("Run") FRAME_WINDOW = st.image([]) video = cv2.VideoCapture(0) net = cv2.dnn.readNet("dnn_model/yolov4-tiny.weights","dnn_model/yol...
eyradel/hybrid
hybrid.py
hybrid.py
py
1,119
python
en
code
0
github-code
36
[ { "api_name": "streamlit.markdown", "line_number": 10, "usage_type": "call" }, { "api_name": "streamlit.checkbox", "line_number": 11, "usage_type": "call" }, { "api_name": "streamlit.image", "line_number": 12, "usage_type": "call" }, { "api_name": "cv2.VideoCaptur...
70663470184
import pandas as pd import sqlite3 def load_data(messages_filepath, categories_filepath): ''' Create dataframes for messages and categories data. ''' messages_df = pd.read_csv(messages_filepath) categories_df = pd.read_csv(categories_filepath) return messages_df, categories_df def clean_data...
rebeccaebarnes/DSND-Project-5
scripts/process_data.py
process_data.py
py
3,347
python
en
code
1
github-code
36
[ { "api_name": "pandas.read_csv", "line_number": 8, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 9, "usage_type": "call" }, { "api_name": "pandas.merge", "line_number": 24, "usage_type": "call" }, { "api_name": "pandas.concat", "line_...
43750959743
# coding: utf-8 from __future__ import unicode_literals import datetime import unittest from uwsgi_log_plugin import import_from_uwsgi_log class UwsgiLogPluginTestCase(unittest.TestCase): def test_import_from_uwsgi_log(self): filename = "uwsgi.log" table = import_from_uwsgi_log(filename, "utf-...
turicas/rows
examples/library/tests_uwsgi_log.py
tests_uwsgi_log.py
py
1,076
python
en
code
851
github-code
36
[ { "api_name": "unittest.TestCase", "line_number": 12, "usage_type": "attribute" }, { "api_name": "uwsgi_log_plugin.import_from_uwsgi_log", "line_number": 15, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 20, "usage_type": "call" }, { "a...
22279183529
import time from wflow_sdk.core.dataset import WFlowDataset from torch.utils.data import DataLoader from torchvision import transforms from torch.nn.utils.rnn import pad_sequence import random import json import torch import sys import librosa sys.path.append('../') from dataset.tokenization import BertTokenizer from u...
MLgdg/Video-Clip
video_class/dataset/wflow_dataset.py
wflow_dataset.py
py
16,264
python
en
code
0
github-code
36
[ { "api_name": "sys.path.append", "line_number": 11, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 11, "usage_type": "attribute" }, { "api_name": "json.load", "line_number": 14, "usage_type": "call" }, { "api_name": "utils.Config", "line_numb...
18253181418
#!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as plt from .KITConfig import KITConfig from .kitdata import KITData from .kitlodger import KITLodger from collections import OrderedDict from .Utils import kitutils import itertools import logging class KITMatplotlib(object): def __init__(self, ...
SchellDa/KITPlot
kitmatplotlib.py
kitmatplotlib.py
py
19,336
python
en
code
0
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 20, "usage_type": "call" }, { "api_name": "logging.DEBUG", "line_number": 21, "usage_type": "attribute" }, { "api_name": "Utils.kitutils.extractList", "line_number": 35, "usage_type": "call" }, { "api_name": "Utils...
34766663711
import os import io import imageio import logging import cv2 import numpy as np from PIL import Image import torch from ts.torch_handler.base_handler import BaseHandler logger = logging.getLogger(__name__) def test_resize(img, size=640, pad=False): h, w, c = img.shape scale_w = size / w scale_h = size /...
huyhoang17/DB_text_minimal
src/db_handler.py
db_handler.py
py
3,114
python
en
code
34
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 12, "usage_type": "call" }, { "api_name": "numpy.zeros", "line_number": 25, "usage_type": "call" }, { "api_name": "cv2.resize", "line_number": 26, "usage_type": "call" }, { "api_name": "cv2.resize", "line_numbe...
20382572134
# This program 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. # # This program is distributed in the hope that it will be useful, but ...
ramamoorthyluxman/SurfaceAdaptiveRTI
__init__.py
__init__.py
py
40,570
python
en
code
0
github-code
36
[ { "api_name": "numpy.hypot", "line_number": 65, "usage_type": "call" }, { "api_name": "numpy.hypot", "line_number": 66, "usage_type": "call" }, { "api_name": "numpy.arctan2", "line_number": 67, "usage_type": "call" }, { "api_name": "numpy.arctan2", "line_numbe...
73876350504
from gwibber.microblog import network, util import cgi from oauth import oauth from gwibber.microblog.util import resources from gettext import lgettext as _ import logging logger = logging.getLogger("Twitter") logger.debug("Initializing.") PROTOCOL_INFO = { "name": "Twitter", "version": "1.0", "config": [ ...
thnguyn2/ECE_527_MP
mp4/SD_card/partition1/usr/share/gwibber/plugins/twitter/__init__.py
__init__.py
py
18,053
python
en
code
0
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 8, "usage_type": "call" }, { "api_name": "gwibber.microblog.util.getbus", "line_number": 64, "usage_type": "call" }, { "api_name": "gwibber.microblog.util", "line_number": 64, "usage_type": "name" }, { "api_name": ...
6226481940
import glob, os import cv2 import numpy as np def red_ch_zeros(foldername): ''' Drop red channel. :param foldername: string :return: None ''' dir_name = foldername + os.sep + "*" image_files_list = list(glob.glob(dir_name)) for image_file in image_files_list: src = cv2.imread(...
Daeil-Jung/Fundus_Process
preproc/ch_reduction.py
ch_reduction.py
py
563
python
en
code
0
github-code
36
[ { "api_name": "os.sep", "line_number": 12, "usage_type": "attribute" }, { "api_name": "glob.glob", "line_number": 13, "usage_type": "call" }, { "api_name": "cv2.imread", "line_number": 16, "usage_type": "call" }, { "api_name": "cv2.IMREAD_UNCHANGED", "line_num...
19405983770
import time from typing import List class Solution: ''' 3.Longest Substring Without Repeating Characters Given a string s, find the length of the longest substring without repeating characters. ''' def basic(self, s): n = len(s) j = -1 mp = {} res = 0 for i i...
Matthewow/Leetcode
slidingWindow/sliding_window.py
sliding_window.py
py
3,335
python
en
code
2
github-code
36
[ { "api_name": "typing.List", "line_number": 74, "usage_type": "name" }, { "api_name": "typing.List", "line_number": 101, "usage_type": "name" }, { "api_name": "time.time", "line_number": 126, "usage_type": "call" }, { "api_name": "time.time", "line_number": 12...
19045144385
#cog by @maxy_dev (maxy#2866) import asyncio import sys import disnake as discord import random import os from main import bot from enum import Enum import datetime, time from disnake.ext import commands from utils import db if "debug" not in db: db["debug"] = {} class Required1(str, Enum): true = "True" false ...
1randomguyspecial/pythonbot
cogs/debug.py
debug.py
py
3,810
python
en
code
5
github-code
36
[ { "api_name": "utils.db", "line_number": 13, "usage_type": "name" }, { "api_name": "utils.db", "line_number": 14, "usage_type": "name" }, { "api_name": "enum.Enum", "line_number": 16, "usage_type": "name" }, { "api_name": "disnake.ext.commands.Cog", "line_numb...
22530319238
import numpy as np import pytest import gym from gym.wrappers import FrameStack try: import lz4 except ImportError: lz4 = None @pytest.mark.parametrize("env_id", ["CartPole-v1", "Pendulum-v1", "CarRacing-v2"]) @pytest.mark.parametrize("num_stack", [2, 3, 4]) @pytest.mark.parametrize( "lz4_compress", ...
openai/gym
tests/wrappers/test_frame_stack.py
test_frame_stack.py
py
1,457
python
en
code
33,110
github-code
36
[ { "api_name": "gym.make", "line_number": 28, "usage_type": "call" }, { "api_name": "gym.wrappers.FrameStack", "line_number": 30, "usage_type": "call" }, { "api_name": "gym.make", "line_number": 34, "usage_type": "call" }, { "api_name": "numpy.allclose", "line_...
475267315
from helpers.agent.multi_agent import MultiAgent from helpers.env.env_utils import Init_Env from itertools import count import numpy as np import torch import glob import time import os import gc import sys LEAVE_PRINT_EVERY_N_SECS = 300 class Env_Agent_Mix: # initializerrrrrrr def __init__(self, filename:str,...
Oreoluwa-Se/MultiAgent-SAC-Tennis
helpers/env_agent_interact.py
env_agent_interact.py
py
14,372
python
en
code
1
github-code
36
[ { "api_name": "helpers.env.env_utils.Init_Env", "line_number": 19, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 19, "usage_type": "call" }, { "api_name": "os.path", "line_number": 19, "usage_type": "attribute" }, { "api_name": "numpy.array"...
3123319458
# ------------------------------------------------------------------------------ import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np from sklearn.decomposition import KernelPCA from sklearn.preprocessing import StandardScaler import warnings warnings.filterwarnings("ignore") # -...
PauloAguayo/PUCV
TimeEncoder/nlpca.py
nlpca.py
py
4,866
python
en
code
0
github-code
36
[ { "api_name": "warnings.filterwarnings", "line_number": 9, "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": "sklearn.decomp...
6508923868
# -*- coding: utf-8 -*- import numpy as np import csv import chainer import chainer.functions as F import chainer.links as L import sys import matplotlib.pyplot as plt """ データを実際に予測するときに利用するクラス :param predict_ary: csvからデータを取ってきて, 入力と正解をタプル形式で配列で持つクラス plt_ary: matplotlibで表示するためにもつ配列 model: chainerでつくったモ...
awkrail/laugh_maker
validation_src/predictor.py
predictor.py
py
3,639
python
en
code
0
github-code
36
[ { "api_name": "chainer.serializers.load_npz", "line_number": 31, "usage_type": "call" }, { "api_name": "chainer.serializers", "line_number": 31, "usage_type": "attribute" }, { "api_name": "numpy.array", "line_number": 35, "usage_type": "call" }, { "api_name": "num...
71699272744
import numpy as np import scipy.interpolate as sp_interp from scipy.integrate import odeint, solve_ivp import matplotlib.pyplot as plt def odefun(t,x,params_log): # Variables Cs_ctnt = x[0] Cc_ctnt = x[1] Cp_ctnt = x[2] # Arguments a_log = params_log[0] b_log = params_log[1] Tsc_log =...
FraViss/CBRApy_
CODE/functions_repository.py
functions_repository.py
py
4,668
python
en
code
0
github-code
36
[ { "api_name": "numpy.power", "line_number": 20, "usage_type": "call" }, { "api_name": "numpy.power", "line_number": 21, "usage_type": "call" }, { "api_name": "numpy.power", "line_number": 24, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": ...
3882480498
""" aimall_utils.py v0.1 F. Falcioni, L. J. Duarte, P. L. A. Popelier Library with function to submit job to AIMAll and get properties values from output AIMAll version: 19.10.12 Check for updates at github.com/FabioFalcioni For details about the method, please see XXXXXXX """ import numpy as np from typing import ...
popelier-group/REG
REG/aimall_utils.py
aimall_utils.py
py
13,205
python
en
code
4
github-code
36
[ { "api_name": "numpy.sqrt", "line_number": 38, "usage_type": "call" }, { "api_name": "typing.List", "line_number": 46, "usage_type": "name" }, { "api_name": "typing.List", "line_number": 78, "usage_type": "name" }, { "api_name": "typing.List", "line_number": 1...
71244448103
import argparse import os import random import tensorflow as tf import re import subprocess import pyonmttok import threading import flask from flask import request, jsonify # TensorFlow Addons lazily loads custom ops. So we call the op with invalid inputs # just to trigger the registration. # See also: https://github....
bhavinkotak07/distributed_machine_translation
model_api.py
model_api.py
py
4,096
python
en
code
0
github-code
36
[ { "api_name": "tensorflow_addons.seq2seq.gather_tree", "line_number": 16, "usage_type": "call" }, { "api_name": "tensorflow_addons.seq2seq", "line_number": 16, "usage_type": "attribute" }, { "api_name": "tensorflow.errors", "line_number": 17, "usage_type": "attribute" }...
32994978761
""" Executor class. """ from __future__ import unicode_literals import yaml import subprocess from voluptuous import Schema from contextlib import closing from functools import partial from six import PY2 from locale import getpreferredencoding class BaseExecutor(object): """ A generic executor class. ...
freelan-developers/plix
plix/executors.py
executors.py
py
3,338
python
en
code
1
github-code
36
[ { "api_name": "voluptuous.Schema", "line_number": 21, "usage_type": "call" }, { "api_name": "functools.partial", "line_number": 58, "usage_type": "call" }, { "api_name": "yaml.add_multi_representer", "line_number": 90, "usage_type": "call" }, { "api_name": "six.PY...
5054739529
from django.conf.urls import url, include from rest_framework.urlpatterns import format_suffix_patterns from .views import * urlpatterns = { url(r'^$', default, name="default"), url(r'^profile/$', ProfileCreateView, name="profile"), url(r'^profile/(?P<pk>[0-9]+)/$', ProfileDetailsView, name="profile_detail...
Willievuong/Stutter
backend/database/urls.py
urls.py
py
1,032
python
en
code
0
github-code
36
[ { "api_name": "django.conf.urls.url", "line_number": 6, "usage_type": "call" }, { "api_name": "django.conf.urls.url", "line_number": 7, "usage_type": "call" }, { "api_name": "django.conf.urls.url", "line_number": 8, "usage_type": "call" }, { "api_name": "django.co...
41014917696
import matplotlib.pyplot as plt import matplotlib.animation as animation from qbstyles import mpl_style import numpy as np import time import os.path import re fig = plt.figure(facecolor='#1a1e24',edgecolor='black') fig.canvas.set_window_title('MCS Readings') ax1 = fig.add_subplot(1,1,1) mpl_style(dark=Tr...
joymkj/labscript
labscript_suite/labscript_utils/mcs.py
mcs.py
py
5,998
python
en
code
0
github-code
36
[ { "api_name": "matplotlib.pyplot.figure", "line_number": 10, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 10, "usage_type": "name" }, { "api_name": "qbstyles.mpl_style", "line_number": 13, "usage_type": "call" }, { "api_name": "matplot...
17895779950
import os import tempfile from typing import List import numpy as np import tensorflow as tf import tensorflow_datasets as tfds import data # local file import from experimental.shoshin def _make_temp_dir() -> str: return tempfile.mkdtemp(dir=os.environ.get('TEST_TMPDIR')) def _make_serialized_image(size: int) ...
google/uncertainty-baselines
experimental/shoshin/data_test.py
data_test.py
py
3,743
python
en
code
1,305
github-code
36
[ { "api_name": "tempfile.mkdtemp", "line_number": 12, "usage_type": "call" }, { "api_name": "os.environ.get", "line_number": 12, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 12, "usage_type": "attribute" }, { "api_name": "numpy.random.randint"...
7005651266
"""Added_TokenBlackList_table Revision ID: c2d76eeeeb15 Revises: 703db21eb105 Create Date: 2021-11-20 00:13:10.270320 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c2d76eeeeb15' down_revision = '703db21eb105' branch_labels = None depends_on = None def upgr...
nazarkohut/room_book
migrations/versions/c2d76eeeeb15_added_tokenblacklist_table.py
c2d76eeeeb15_added_tokenblacklist_table.py
py
841
python
en
code
0
github-code
36
[ { "api_name": "alembic.op.create_table", "line_number": 21, "usage_type": "call" }, { "api_name": "alembic.op", "line_number": 21, "usage_type": "name" }, { "api_name": "sqlalchemy.Column", "line_number": 22, "usage_type": "call" }, { "api_name": "sqlalchemy.INTEG...
5893250281
#!/usr/bin/env python3 """ hw2main.py UNSW COMP9444 Neural Networks and Deep Learning DO NOT MODIFY THIS FILE """ import torch from torchtext import data from config import device import student def main(): print("Using device: {}" "\n".format(str(device))) # Load the training dataset, and creat...
gakkistyle/comp9444
ass2/hw2/hw2main.py
hw2main.py
py
5,907
python
en
code
7
github-code
36
[ { "api_name": "config.device", "line_number": 18, "usage_type": "argument" }, { "api_name": "torchtext.data.Field", "line_number": 21, "usage_type": "call" }, { "api_name": "torchtext.data", "line_number": 21, "usage_type": "name" }, { "api_name": "student.tokenis...
73158859623
from atexit import register from unicodedata import category from django import template from ..models import Category register = template.Library() # @register.simple_tag # def title(data="وبلاگ جنگویی"): # return data # @register.inclusion_tag("pages/partials/category_navbar.html") # def category_navbar(): # ...
AliNozhati/BlogProject
pages/templatetags/base_tags.py
base_tags.py
py
741
python
en
code
0
github-code
36
[ { "api_name": "atexit.register", "line_number": 6, "usage_type": "name" }, { "api_name": "django.template.Library", "line_number": 6, "usage_type": "call" }, { "api_name": "django.template", "line_number": 6, "usage_type": "name" }, { "api_name": "atexit.register....
74963737383
# !/usr/bin/env python # -*- coding:utf-8 -*- """ @FileName: EditAdmin @Author : sky @Date : 2023/2/8 11:08 @Desc : 修改用户界面设计与功能实现 """ import sql_table from PySide6.QtWidgets import QApplication, QMainWindow, QMessageBox, QInputDialog, QLineEdit, QPushButton, QLabel from PySide6.QtCore import Qt, QRect, QMetaOb...
Bxiaoyu/NotesRep
studentms/EditAdmin.py
EditAdmin.py
py
5,579
python
en
code
0
github-code
36
[ { "api_name": "PySide6.QtWidgets.QLabel", "line_number": 23, "usage_type": "call" }, { "api_name": "PySide6.QtCore.QRect", "line_number": 24, "usage_type": "call" }, { "api_name": "PySide6.QtCore.Qt.AlignmentFlag", "line_number": 25, "usage_type": "attribute" }, { ...
70606068584
import os from os.path import ( abspath, dirname, isfile, join as join_path, ) from six.moves.configparser import ConfigParser from pymud.utilities import ConsoleLogger rel_path = abspath(join_path(dirname(__file__), 'pymud.conf')) etc_path = join_path('/etc/pymud', 'pymud.conf') CONFIG = ConfigPa...
jzaleski/pymud
pymud/__init__.py
__init__.py
py
675
python
en
code
0
github-code
36
[ { "api_name": "os.path.abspath", "line_number": 15, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 15, "usage_type": "call" }, { "api_name": "os.path.dirname", "line_number": 15, "usage_type": "call" }, { "api_name": "os.path.join", "line...
44141408017
from torch.utils.data import Dataset import numpy as np from PIL import Image import random from torchvision import transforms from options import utils_option import os import math from lib import utils_image as util class BaseDataset(Dataset): def __init__(self): super(BaseDataset, self).__init__() ...
chqwer2/Multi-view-Self-supervised-Disentanglement-Denoising
data/dataset_base.py
dataset_base.py
py
5,678
python
en
code
99
github-code
36
[ { "api_name": "torch.utils.data.Dataset", "line_number": 14, "usage_type": "name" }, { "api_name": "options.utils_option.json_parse", "line_number": 62, "usage_type": "call" }, { "api_name": "options.utils_option", "line_number": 62, "usage_type": "name" }, { "api...
5347720873
from operator import mul from functools import reduce def combinations_count(n, r): r = min(r, n - r) numer = reduce(mul, range(n, n - r, -1), 1) denom = reduce(mul, range(1, r + 1), 1) return numer // denom N, L = map(int, input().split()) l = N%L cnt = 0 for l in range(N//L+1): x = N-L*l cnt ...
hrkhrkhrk/Atom
kyopro_educational_90/50_StairJump.py
50_StairJump.py
py
371
python
en
code
0
github-code
36
[ { "api_name": "functools.reduce", "line_number": 5, "usage_type": "call" }, { "api_name": "operator.mul", "line_number": 5, "usage_type": "argument" }, { "api_name": "functools.reduce", "line_number": 6, "usage_type": "call" }, { "api_name": "operator.mul", "l...
39826357335
import logparser import numpy as np from matplotlib import pyplot as plt access_log = open("access.log","r") dt_counter = {} for line in access_log: logDict = logparser.parser(line) dat = logDict['time'][:11] if dat not in dt_counter: dt_counter[dat] = 1 else: dt_counter[da...
SaneshSabu/Visualisation-of-Log-file-using-Python-and-Matplotlib
hits_date_line_graph.py
hits_date_line_graph.py
py
797
python
en
code
0
github-code
36
[ { "api_name": "logparser.parser", "line_number": 12, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.figure", "line_number": 41, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 41, "usage_type": "name" }, { "api_name": "matplotli...
40187237048
from selenium import webdriver from datetime import datetime import time browser=webdriver.Chrome(r"C:\Users\FZL\Desktop\Blast Betting Game Predictor\Dependencies\chromedriver.exe") #go to site browser.get("http://1fifa90.com/games/crash/index") #login time.sleep(5) browser.find_element_by_id("mail").se...
alifzl/Blast-Betting-Game-Predictor
First things First (Data Collecting)/myBot.py
myBot.py
py
2,122
python
en
code
0
github-code
36
[ { "api_name": "selenium.webdriver.Chrome", "line_number": 5, "usage_type": "call" }, { "api_name": "selenium.webdriver", "line_number": 5, "usage_type": "name" }, { "api_name": "time.sleep", "line_number": 12, "usage_type": "call" }, { "api_name": "time.sleep", ...
18433473447
"""H1st IoT Maintenance Operations: URL configs.""" from django.conf.urls import include, url from rest_framework.routers import DefaultRouter from aito.iot_mgmt.maint_ops.views import ( EquipmentInstanceDailyRiskScoreViewSet, EquipmentProblemTypeViewSet, EquipmentInstanceAlarmPeriodViewSet, Equipme...
aitomatic/contrib
src/aito/iot_mgmt/maint_ops/urls.py
urls.py
py
1,124
python
en
code
2
github-code
36
[ { "api_name": "rest_framework.routers.DefaultRouter", "line_number": 18, "usage_type": "call" }, { "api_name": "aito.iot_mgmt.maint_ops.views.EquipmentInstanceDailyRiskScoreViewSet", "line_number": 22, "usage_type": "argument" }, { "api_name": "aito.iot_mgmt.maint_ops.views.Equip...
33808709044
"""added profile pict Revision ID: d03756b7815b Revises: 845e6def5277 Create Date: 2022-03-02 16:17:18.286475 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd03756b7815b' down_revision = '845e6def5277' branch_labels = None depends_on = None def upgrade(): ...
andyderis36/4p-flask
migrations/versions/d03756b7815b_added_profile_pict.py
d03756b7815b_added_profile_pict.py
py
790
python
en
code
0
github-code
36
[ { "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.String"...
19842008557
# 백준 4485. 녹색 옷 입은 애가 젤다지? # 시간 제한 1초 / 메모리 제한 256MB from collections import deque dx = [-1, 1, 0, 0] dy = [0, 0, -1, 1] def bfs(): global dist queue = deque() queue.append((0, 0)) dist[0][0] = graph[0][0] while queue: x, y = queue.popleft() for d in range(4): ...
eundeok9/algorithm-study
백준/Gold/4485. 녹색 옷 입은 애가 젤다지?/녹색 옷 입은 애가 젤다지?.py
녹색 옷 입은 애가 젤다지?.py
py
966
python
en
code
0
github-code
36
[ { "api_name": "collections.deque", "line_number": 10, "usage_type": "call" } ]
17849552367
from ..config import Vector, ParameterName, ColorConfig, ZOrderConfig from ..config import CompositeFigure, PathStep, PathOperation, PathShape, Rectangle, Ellipse, ellipse_arc_obj class CulturedCellConfig(object): common_z_order = ZOrderConfig.default_patch_z_order z_order_increment = ZOrderConfig.z_order_inc...
LocasaleLab/Automated-MFA-2023
figures/figure_plotting/figure_elements/diagrams/diagram_elements/object_diagrams/cultured_cell.py
cultured_cell.py
py
8,045
python
en
code
0
github-code
36
[ { "api_name": "config.ZOrderConfig.default_patch_z_order", "line_number": 6, "usage_type": "attribute" }, { "api_name": "config.ZOrderConfig", "line_number": 6, "usage_type": "name" }, { "api_name": "config.ZOrderConfig.z_order_increment", "line_number": 7, "usage_type": ...
12315654775
import pygame pygame.init() default_display = 320, 240 max_display = pygame.display.Info().current_w, pygame.display.Info().current_h scale = 1 fullscreen = False draw_surface = pygame.Surface(default_display) scale_surface = pygame.Surface(default_display) game_display = pygame.display.set_mode(default_d...
philorfa/FDTD_2D
pythonProject/Functions/delete later.py
delete later.py
py
1,880
python
en
code
0
github-code
36
[ { "api_name": "pygame.init", "line_number": 3, "usage_type": "call" }, { "api_name": "pygame.display.Info", "line_number": 6, "usage_type": "call" }, { "api_name": "pygame.display", "line_number": 6, "usage_type": "attribute" }, { "api_name": "pygame.Surface", ...
29730548092
import setuptools # with open("README.md", "r") as fh: # long_description = fh.read() long_description = 'https://github.com/suckmybigdick/flask-wechat-utils' setuptools.setup( name = "flask-wechat-utils", version="0.1.16", auth="Huang Xu Hui", author_email="13250270761@163.com", description="flask-wechat-tu...
synctrust/flask-wechat-utils
setup.py
setup.py
py
908
python
en
code
0
github-code
36
[ { "api_name": "setuptools.setup", "line_number": 10, "usage_type": "call" }, { "api_name": "setuptools.find_packages", "line_number": 19, "usage_type": "call" } ]
42238036553
import requests import json ,os,pprint while True: if os.path.exists("s_courses.json")==False: a=requests.get('http://saral.navgurukul.org/api/courses') pprint.pprint(a.text) b=a.text c=open('s_courses.json','w') json.dump(b,c) c.close() c=open('s_courses.json','r') jsl1=json.load(c) jsl2=json.loads(j...
shabidkhan/API
API.py
API.py
py
1,568
python
en
code
0
github-code
36
[ { "api_name": "os.path.exists", "line_number": 5, "usage_type": "call" }, { "api_name": "os.path", "line_number": 5, "usage_type": "attribute" }, { "api_name": "requests.get", "line_number": 6, "usage_type": "call" }, { "api_name": "pprint.pprint", "line_numbe...
40367902920
# importing required modules import tkinter as tk from tkinter import filedialog import xlsxwriter from init_row_data import init_row_data from compute_B import compute_B from compute_A import compute_A # console interface print("Power bills data extractor in txt\nver.: 1.0, 10/03/2022\nAuthor: Fellipe Filgueira"...
fellipefilgueira/power-bill-data-txt-extractor
Source/main.py
main.py
py
2,315
python
en
code
0
github-code
36
[ { "api_name": "tkinter.Tk", "line_number": 19, "usage_type": "call" }, { "api_name": "tkinter.filedialog.askopenfilename", "line_number": 22, "usage_type": "call" }, { "api_name": "tkinter.filedialog", "line_number": 22, "usage_type": "name" }, { "api_name": "xlsx...
709130702
#!/usr/bin/env python import os from setuptools import setup # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(...
artss/geweb
setup.py
setup.py
py
1,350
python
en
code
1
github-code
36
[ { "api_name": "os.path.join", "line_number": 11, "usage_type": "call" }, { "api_name": "os.path", "line_number": 11, "usage_type": "attribute" }, { "api_name": "os.path.dirname", "line_number": 11, "usage_type": "call" }, { "api_name": "setuptools.setup", "lin...
9273754357
import os import gym import time import argparse import numpy as np import matplotlib.pyplot as plt from EA_components_OhGreat.EA import EA from EA_components_OhGreat.Recombination import * from EA_components_OhGreat.Mutation import * from EA_components_OhGreat.Selection import * from src.Evaluation import * from src.N...
OhGreat/es_for_rl_experimentation
train_model.py
train_model.py
py
9,142
python
en
code
0
github-code
36
[ { "api_name": "argparse.ArgumentParser", "line_number": 16, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 96, "usage_type": "attribute" }, { "api_name": "gym.make", "line_number": 99, "usage_type": "call" }, { "api_name": "numpy.sum", "lin...
11231627750
""" """ # Email: Kun.bj@outlook.com import collections import copy import json import os import pickle import time import traceback from collections import Counter from pprint import pprint import numpy as np from sklearn.preprocessing import StandardScaler from fkm import vis from fkm.cluster import centralized_min...
kun0906/fkm
fkm/_main.py
_main.py
py
16,242
python
en
code
0
github-code
36
[ { "api_name": "numpy.set_printoptions", "line_number": 28, "usage_type": "call" }, { "api_name": "pprint.pprint", "line_number": 53, "usage_type": "call" }, { "api_name": "copy.deepcopy", "line_number": 188, "usage_type": "call" }, { "api_name": "copy.deepcopy", ...
35401554885
from django.conf.urls import url,include from . import views as app_v from django.contrib.auth import views from app.forms import LoginForm urlpatterns = [ url(r'^$',app_v.index, name='home'), url(r'^login/$', views.login, {'template_name': 'app/login.html', 'authentication_form': LoginForm}, name='login'),...
vigzmv/LetsPay
app/urls.py
urls.py
py
1,050
python
en
code
2
github-code
36
[ { "api_name": "django.conf.urls.url", "line_number": 10, "usage_type": "call" }, { "api_name": "django.conf.urls.url", "line_number": 11, "usage_type": "call" }, { "api_name": "django.contrib.auth.views.login", "line_number": 11, "usage_type": "attribute" }, { "ap...
20407034990
import os import torch from torch import nn from torch.utils.data import DataLoader from torchvision import datasets, transforoms device = 'cuda' if torch.cuda.is_available() else 'cpu' print('Using {} device'.format(device)) class NeuralNetwork(nn.Module): def __init__(self): self.flatten = nn...
a1key/VisionAssignment2
test/Module.py
Module.py
py
2,569
python
en
code
0
github-code
36
[ { "api_name": "torch.cuda.is_available", "line_number": 7, "usage_type": "call" }, { "api_name": "torch.cuda", "line_number": 7, "usage_type": "attribute" }, { "api_name": "torch.nn.Module", "line_number": 10, "usage_type": "attribute" }, { "api_name": "torch.nn",...
14566681748
from django.urls import path, re_path from django.contrib.auth.decorators import permission_required from django.views.generic import RedirectView from .feeds import PublishTrackFeed from . import views urlpatterns = [ path('', RedirectView.as_view(url='catalogue/', permanent=False)), path('images/', views.i...
fnp/redakcja
src/documents/urls.py
urls.py
py
3,056
python
en
code
4
github-code
36
[ { "api_name": "django.urls.path", "line_number": 9, "usage_type": "call" }, { "api_name": "django.views.generic.RedirectView.as_view", "line_number": 9, "usage_type": "call" }, { "api_name": "django.views.generic.RedirectView", "line_number": 9, "usage_type": "name" }, ...
15989239821
""" Handlers related to "reports" about students' activity - badge evidence pages and badge issuing routines. """ from controllers.utils import BaseHandler, ReflectiveRequestHandler, XsrfTokenManager from common import prefetch import pprint from models.roles import Roles import re from collections import defaultdict f...
twiffy/eabooc
coursebuilder/modules/wikifolios/report_handlers.py
report_handlers.py
py
34,512
python
en
code
0
github-code
36
[ { "api_name": "controllers.utils.BaseHandler", "line_number": 49, "usage_type": "name" }, { "api_name": "controllers.utils.ReflectiveRequestHandler", "line_number": 49, "usage_type": "name" }, { "api_name": "wtforms.Form", "line_number": 60, "usage_type": "attribute" },...
16472183531
import collections import itertools import json import logging import os import pickle import random import numpy as np from sklearn.model_selection import train_test_split import config from utils.utils import JsonlReader logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) lo...
IBM/aihn-ucsd
amil/preprocess/_4_splits.py
_4_splits.py
py
19,985
python
en
code
18
github-code
36
[ { "api_name": "logging.basicConfig", "line_number": 15, "usage_type": "call" }, { "api_name": "logging.INFO", "line_number": 15, "usage_type": "attribute" }, { "api_name": "logging.getLogger", "line_number": 16, "usage_type": "call" }, { "api_name": "numpy.random....
19856854666
""" autoencoder.py Autoencoder-style image generation model. """ import glob import os import tensorflow as tf from matplotlib import pyplot as plt from tqdm import tqdm import models from utils import gauss_kernel class AutoEncoderGAN(): def __init__(self, batch_size, z_dim, ...
xaliceli/lemotif
image-models/autoencoder.py
autoencoder.py
py
11,931
python
en
code
7
github-code
36
[ { "api_name": "utils.gauss_kernel", "line_number": 44, "usage_type": "call" }, { "api_name": "tensorflow.compat.v1.train.AdamOptimizer", "line_number": 63, "usage_type": "call" }, { "api_name": "tensorflow.compat", "line_number": 63, "usage_type": "attribute" }, { ...
13161856150
#coding: utf-8 import os import time import random import jieba import numpy as np import matplotlib.pyplot as plt from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import classification_report from sklearn import tree, metrics from sklearn import feature_extraction, model_selection # 导入文本特征向量转化模块 from...
ilray88/python_ShuJuWaJueShiJian
章节9-数据挖掘在中文文本分类中的应用/News-classification-master/News-classification-master/script/6.py
6.py
py
7,285
python
en
code
0
github-code
36
[ { "api_name": "os.listdir", "line_number": 18, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 23, "usage_type": "call" }, { "api_name": "os.path", "line_number": 23, "usage_type": "attribute" }, { "api_name": "os.listdir", "line_number": ...
5511081889
import numpy as np import pandas as pd from pydub import AudioSegment import librosa from tqdm import tqdm import os ''' loudness:响度,表示音频信号的振幅大小。 pitch_0, pitch_1, ...:基频,表示音频信号中的主要频率成分。这些列包含了不同时间节点上的基频信息。 chroma_0, chroma_1, ...:音调,表示音频信号中的音高信息。这些列包含了不同时间节点上的音调信息。 mfcc_0, mfcc_1, ...:梅尔频率倒谱系数(MFCC),表示音频信号中的频谱特性。这些列包含...
indecreasy/Bilibili_Audiovisual_Danmuku
videoCap/soundCap_1fps.py
soundCap_1fps.py
py
11,617
python
en
code
3
github-code
36
[ { "api_name": "pydub.AudioSegment.from_file", "line_number": 40, "usage_type": "call" }, { "api_name": "pydub.AudioSegment", "line_number": 40, "usage_type": "name" }, { "api_name": "numpy.array", "line_number": 42, "usage_type": "call" }, { "api_name": "numpy.flo...
22971648619
import os import json import boto3 from itertools import groupby def pprint_time(secs): ret_str = "" if secs >= 86400: days = secs//86400 secs = secs % 86400 ret_str += f"{days} " if days > 1: ret_str += "days " else: ret_str += "day " if secs >= 3600: hours = secs // 3600 secs = secs % 3600 r...
IrisHub/iris-3-backend-prototypes
fns/utils.py
utils.py
py
5,768
python
en
code
0
github-code
36
[ { "api_name": "boto3.set_stream_logger", "line_number": 39, "usage_type": "call" }, { "api_name": "itertools.groupby", "line_number": 46, "usage_type": "call" }, { "api_name": "boto3.resource", "line_number": 56, "usage_type": "call" } ]
39245610548
from flask import Flask, request,Response from config.settings import format_url from flask_sqlalchemy import SQLAlchemy from schema.models import db def create_app(): app = Flask(__name__) app.config.from_object('config.settings') app.config['SQLALCHEMY_DATABASE_URI'] = format_url('postgresql') ...
OKULLO/flask_api
app/run.py
run.py
py
577
python
en
code
0
github-code
36
[ { "api_name": "flask.Flask", "line_number": 10, "usage_type": "call" }, { "api_name": "config.settings.format_url", "line_number": 12, "usage_type": "call" }, { "api_name": "schema.models.db.init_app", "line_number": 15, "usage_type": "call" }, { "api_name": "sche...
28938445312
import os import torch import functools import yaml import torch from torch import nn from torch.nn import init import torch.nn.functional as F from torch.utils import model_zoo from networks.swinir import SwinIR from networks.convnext import ConvNeXt from networks.convnext import model_urls import segmentation_mod...
thisisiron/dacon-sr
networks/__init__.py
__init__.py
py
3,921
python
en
code
3
github-code
36
[ { "api_name": "torch.cuda.device_count", "line_number": 23, "usage_type": "call" }, { "api_name": "torch.cuda", "line_number": 23, "usage_type": "attribute" }, { "api_name": "torch.save", "line_number": 24, "usage_type": "call" }, { "api_name": "torch.save", "...
2735889585
debug = True from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize from Cython.Compiler.Options import get_directive_defaults import numpy as np numpy_include_dir = np.get_include() #cy_options = { # 'annotate': True, # 'compiler_directives': { # ...
cwcurtis/Python_FMM_Project
setup.py
setup.py
py
2,002
python
en
code
0
github-code
36
[ { "api_name": "numpy.get_include", "line_number": 10, "usage_type": "call" }, { "api_name": "Cython.Compiler.Options.get_directive_defaults", "line_number": 24, "usage_type": "call" }, { "api_name": "Cython.Compiler.Options.get_directive_defaults", "line_number": 25, "usa...
71104023784
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by i@BlahGeek.com at 2015-07-31 import yaml import sys if __name__ == '__main__': data = yaml.load(open(sys.argv[1]).read(), Loader=yaml.FullLoader) body = open(sys.argv[2]).read() data['body'] = body with open(sys.argv[1], 'w') as f: f.w...
blahgeek/blog.blahgeek.com
scripts/posts_addbody.py
posts_addbody.py
py
368
python
en
code
8
github-code
36
[ { "api_name": "yaml.load", "line_number": 9, "usage_type": "call" }, { "api_name": "sys.argv", "line_number": 9, "usage_type": "attribute" }, { "api_name": "yaml.FullLoader", "line_number": 9, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number...
16608477822
import requests import json import sqlite3 # მოაქვს მარსზე გადაღებული ფოტოები კონკრეტული თარიღის მითითებისას. მონაცემები იწერება json ფაილსა და მონაცემთა ბაზაში. key = '6A7O2ghhDhKe1fBnNVDuVglIz04poXa3c1VJDlm7' date = input("Enter the date in YYYY-M-D format: ") payload = {'earth_date': date, 'api_key': key} u...
AnaGagnidze/Quiz3
Quiz3. AG.py
Quiz3. AG.py
py
2,374
python
ka
code
1
github-code
36
[ { "api_name": "requests.get", "line_number": 10, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 14, "usage_type": "call" }, { "api_name": "json.dumps", "line_number": 15, "usage_type": "call" }, { "api_name": "json.dump", "line_number": 19,...
13000663213
import os import pytest import yaml @pytest.fixture def zuul_data(): data = {} with open('/home/zuul/src/github.com/opentelekomcloud-infra/system-config/inventory/base/gate-hosts.yaml') as f: inventory = yaml.safe_load(f) data['inventory'] = inventory zuul_extra_data_file = os.environ.ge...
opentelekomcloud-infra/system-config
testinfra/conftest.py
conftest.py
py
531
python
en
code
6
github-code
36
[ { "api_name": "yaml.safe_load", "line_number": 11, "usage_type": "call" }, { "api_name": "os.environ.get", "line_number": 14, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 14, "usage_type": "attribute" }, { "api_name": "os.path.exists", "l...
9193917776
import torch import torch.nn as nn def _get_simclr_projection_head(num_ftrs: int, out_dim: int): """Returns a 2-layer projection head. Reference (07.12.2020): https://github.com/google-research/simclr/blob/master/model_util.py#L141 """ modules = [ nn.Linear(num_ftrs, num_ftrs), #...
tibe97/thesis-self-supervised-learning
lightly/models/simclr.py
simclr.py
py
3,319
python
en
code
2
github-code
36
[ { "api_name": "torch.nn.Linear", "line_number": 13, "usage_type": "call" }, { "api_name": "torch.nn", "line_number": 13, "usage_type": "name" }, { "api_name": "torch.nn.ReLU", "line_number": 15, "usage_type": "call" }, { "api_name": "torch.nn", "line_number": ...
18924234195
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver import ActionChains import time class MouseHovering(): def test1(self): baseUrl = "https://letskodeit.teachable.com/pages/practice" driver = webdriver.Firefox() driver.maximize_window() ...
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
CODES/S24 - Selenium WebDriver -_ Working With Actions Class/1-mouse-hovering.py
1-mouse-hovering.py
py
1,053
python
en
code
11
github-code
36
[ { "api_name": "selenium.webdriver.Firefox", "line_number": 10, "usage_type": "call" }, { "api_name": "selenium.webdriver", "line_number": 10, "usage_type": "name" }, { "api_name": "time.sleep", "line_number": 16, "usage_type": "call" }, { "api_name": "selenium.web...