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
19167010026
#!/usr/bin/env python3 """OpenCV-based frame viewer that replays recordings and assign time-based labels""" import argparse from pathlib import Path import time import cv2 import numpy as np import derp.util class Labeler: """OpenCV-based frame viewer that replays recordings and assign time-based labels""" d...
notkarol/derplearning
bin/label.py
label.py
py
11,483
python
en
code
40
github-code
6
[ { "api_name": "derp.util.util.load_config", "line_number": 23, "usage_type": "call" }, { "api_name": "derp.util.util", "line_number": 23, "usage_type": "attribute" }, { "api_name": "derp.util", "line_number": 23, "usage_type": "name" }, { "api_name": "derp.util.ut...
10648619314
# -*- coding: utf-8 -*- """ Created on Wed May 6 15:04:40 2020 @author: Rijk Scipy signal sos filter toolbox test """ import numpy as np from scipy import signal import matplotlib.pyplot as plt plt.close('all') b, a = signal.butter(4, 100, 'low', analog=True) w, h = signal.freqs(b, a) plt.figure() plt.semilogx(w...
rehogenbirk/MEP_control_software
Measurements/20200324 WO3196dev9/Hydrogen R_T correction/0324_1904_WO3196dev9_H2ToAir/signal_toolbox_test.py
signal_toolbox_test.py
py
1,897
python
en
code
0
github-code
6
[ { "api_name": "matplotlib.pyplot.close", "line_number": 14, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 14, "usage_type": "name" }, { "api_name": "scipy.signal.butter", "line_number": 16, "usage_type": "call" }, { "api_name": "scipy.s...
21689221352
import json import os import subprocess from collections import OrderedDict from copy import deepcopy from sys import platform from tabulate import tabulate from openwpm.config import ConfigEncoder def parse_http_stack_trace_str(trace_str): """Parse a stacktrace string and return an array of dict.""" stack_...
openwpm/OpenWPM
openwpm/utilities/platform_utils.py
platform_utils.py
py
5,733
python
en
code
1,286
github-code
6
[ { "api_name": "os.environ", "line_number": 41, "usage_type": "attribute" }, { "api_name": "os.environ", "line_number": 42, "usage_type": "attribute" }, { "api_name": "os.path.isfile", "line_number": 43, "usage_type": "call" }, { "api_name": "os.path", "line_nu...
37950984200
import pykka import re import json from gpt_connection import GPT_Connection from tools import ToolRunner from frontend_utils import initial_request from bots.Dispatcher import Dispatcher from bots.Workflow import Workflow from prompts import DISPATCHER_PROMPT_TEMPLATE, INITIAL_PROMPT_TEMPLATE, ITERATING_ACTION_PROM...
nhuang25/llm-composition
stuffed_animal_llc/stuffed_animal_llc.py
stuffed_animal_llc.py
py
3,203
python
en
code
0
github-code
6
[ { "api_name": "gpt_connection.GPT_Connection", "line_number": 26, "usage_type": "call" }, { "api_name": "tools.ToolRunner", "line_number": 27, "usage_type": "call" }, { "api_name": "bots.Workflow.Workflow.start", "line_number": 29, "usage_type": "call" }, { "api_n...
3681349954
import json from dataclasses import dataclass, field from typing import Union import requests @dataclass class ManyChatAPI: api_base_url = 'https://api.manychat.com/fb/' api_key: str psid: str headers: dict = field(init=False) def __post_init__(self): self.headers = { 'Accept...
daiangan/manychat-dialogflow-connector
utils/manychat_helpers.py
manychat_helpers.py
py
3,304
python
en
code
5
github-code
6
[ { "api_name": "dataclasses.field", "line_number": 13, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 28, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 40, "usage_type": "call" }, { "api_name": "requests.post", "line_n...
37568035732
# import statements import nltk import sys import pandas as pd import re from nltk import pos_tag from nltk.corpus import stopwords from nltk.stem.porter import PorterStemmer from nltk.stem.wordnet import WordNetLemmatizer from nltk.tokenize import word_tokenize, sent_tokenize from sqlalchemy import create_engine # d...
goitom/project_2_disaster_response
data/process_data.py
process_data.py
py
3,643
python
en
code
0
github-code
6
[ { "api_name": "nltk.download", "line_number": 15, "usage_type": "call" }, { "api_name": "nltk.download", "line_number": 16, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 31, "usage_type": "call" }, { "api_name": "pandas.read_csv", "li...
74550779386
import torch from torch import Tensor, nn import torchvision import os import numpy as np class Normalize: def __init__(self, n_channels, expected_values, variance): self.n_channels = n_channels self.expected_values = expected_values self.variance = variance assert self.n_channels...
Mr-Ace-1997/SGBA-A-Stealthy-Scapegoat-Backdoor-Attack-against-Deep-Neural-Networks
utils_universal_trigger.py
utils_universal_trigger.py
py
10,352
python
en
code
0
github-code
6
[ { "api_name": "torch.nn.Module", "line_number": 37, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 37, "usage_type": "name" }, { "api_name": "torch.nn.Parameter", "line_number": 41, "usage_type": "call" }, { "api_name": "torch.nn", "line...
37520613786
import pandas as pd import redis from redisgraph import Graph from config import redisgraph_config from pathlib import Path def redisgraph_import_csv(output: Path) -> None: r = redis.Redis(host=redisgraph_config['host'], port=redisgraph_config['port']) graph_name = 'movie_graph' redis_graph = Graph(graph_...
Wojaqqq/graph_data_exchange_tool
imports/redisgraph_import_csv.py
redisgraph_import_csv.py
py
2,156
python
en
code
0
github-code
6
[ { "api_name": "pathlib.Path", "line_number": 8, "usage_type": "name" }, { "api_name": "redis.Redis", "line_number": 9, "usage_type": "call" }, { "api_name": "config.redisgraph_config", "line_number": 9, "usage_type": "name" }, { "api_name": "redisgraph.Graph", ...
39227047564
import os import numpy as np import scipy.io.wavfile as wavfile from keras.models import Sequential from keras.layers import Dense from keras.utils import normalize from utils import read_textgrid from numpy_operation import get_martix from python_speech_features import mfcc from python_speech_features import ...
MakerFace/voice-activation-system
feature_extractor.py
feature_extractor.py
py
1,510
python
en
code
0
github-code
6
[ { "api_name": "numpy.zeros", "line_number": 14, "usage_type": "call" }, { "api_name": "scipy.io.wavfile.read", "line_number": 20, "usage_type": "call" }, { "api_name": "scipy.io.wavfile", "line_number": 20, "usage_type": "name" }, { "api_name": "numpy.float32", ...
2896601636
from dotenv import load_dotenv import discord from discord.ext import commands import os import re load_dotenv() token = os.getenv('DISCORD_TOKEN') commMark = os.getenv('COMMAND_MARKER') description = 'Discord administration bot' intents = discord.Intents.default() intents.message_content = True intents.members ...
Srs2311/gene.py
gene.py
gene.py
py
4,778
python
en
code
0
github-code
6
[ { "api_name": "dotenv.load_dotenv", "line_number": 8, "usage_type": "call" }, { "api_name": "os.getenv", "line_number": 9, "usage_type": "call" }, { "api_name": "os.getenv", "line_number": 10, "usage_type": "call" }, { "api_name": "discord.Intents.default", "l...
33670502801
import sqlite3 import sys from PyQt6.QtWidgets import QApplication, QLabel, QWidget, QGridLayout, \ QLineEdit, QPushButton, QMainWindow, QTableWidget, QTableWidgetItem, QDialog, \ QVBoxLayout, QComboBox, QToolBar, QStatusBar, QMessageBox from PyQt6.QtGui import QAction, QIcon from PyQt6.QtCore import Qt # ...
KelvinBrannonJr/Student_Mangement_System
main.py
main.py
py
13,372
python
en
code
0
github-code
6
[ { "api_name": "sqlite3.connect", "line_number": 20, "usage_type": "call" }, { "api_name": "PyQt6.QtWidgets.QMainWindow", "line_number": 33, "usage_type": "name" }, { "api_name": "PyQt6.QtGui.QAction", "line_number": 45, "usage_type": "call" }, { "api_name": "PyQt6...
30353175971
import sys import os from os.path import splitext import glob from common import TestCase def get_tests(): """Get all the tests to run. """ files = glob.glob('test_*.py') return files def run_all(tests): """Run the given tests. """ args = ' '.join(sys.argv[1:]) success = [] fail = ...
enthought/mayavi
integrationtests/mayavi/run.py
run.py
py
2,323
python
en
code
1,177
github-code
6
[ { "api_name": "glob.glob", "line_number": 10, "usage_type": "call" }, { "api_name": "sys.argv", "line_number": 16, "usage_type": "attribute" }, { "api_name": "os.system", "line_number": 22, "usage_type": "call" }, { "api_name": "common.TestCase", "line_number"...
29969829561
""" MongoDB Interaction - A simple example for future developments Fabio Bove | fabio.bove.dr@gmail.com """ #!/usr/bin/env python # coding: utf-8 # Imports from pymongo import MongoClient class MongoUtils: def __init__(self, auth_param: str, collection_name: str, database_name: str, data: dict) -> None: ...
fabiobove-dr/mongo-db-interaction-utils
src/MongoUtils.py
MongoUtils.py
py
5,532
python
en
code
0
github-code
6
[ { "api_name": "pymongo.MongoClient", "line_number": 42, "usage_type": "call" } ]
88489070
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2018-19: Homework 5 model_embeddings.py: Embeddings for the NMT model Pencheng Yin <pcyin@cs.cmu.edu> Sahil Chopra <schopra8@stanford.edu> Anand Dhoot <anandd@stanford.edu> Michael Hahn <mhahn2@stanford.edu> """ import torch.nn as nn # Do not change these imp...
abgoswam/CS224N-Natural-Language-Processing-with-Deep-Learning
a5/model_embeddings.py
model_embeddings.py
py
3,223
python
en
code
18
github-code
6
[ { "api_name": "torch.nn.Module", "line_number": 25, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 25, "usage_type": "name" }, { "api_name": "torch.nn.Embedding", "line_number": 49, "usage_type": "call" }, { "api_name": "torch.nn", "line...
18211764194
import argparse import os import unittest from bin.get_alleles_from_srst2_mlst import get_mismatch_and_depth, get_new_and_existing_alleles, write_alleles_file, get_arguments class TestProcessResults(unittest.TestCase): TEST_OUTPUT_PREFIX = 'test' TEST_FILE = 'tests/test_data/input/test__mlst__Streptococcus_aga...
sanger-bentley-group/GBS-Typer-sanger-nf
tests/get_alleles_from_srst2_mlst_test.py
get_alleles_from_srst2_mlst_test.py
py
3,532
python
en
code
0
github-code
6
[ { "api_name": "unittest.TestCase", "line_number": 6, "usage_type": "attribute" }, { "api_name": "bin.get_alleles_from_srst2_mlst.get_mismatch_and_depth", "line_number": 13, "usage_type": "call" }, { "api_name": "bin.get_alleles_from_srst2_mlst.get_new_and_existing_alleles", "...
26040479196
from __future__ import annotations from dataclasses import dataclass from typing import Iterable from pants.backend.javascript import install_node_package from pants.backend.javascript.install_node_package import ( InstalledNodePackageRequest, InstalledNodePackageWithSource, ) from pants.backend.javascript.no...
pantsbuild/pants
src/python/pants/backend/javascript/run/rules.py
rules.py
py
2,379
python
en
code
2,896
github-code
6
[ { "api_name": "pants.core.goals.run.RunFieldSet", "line_number": 27, "usage_type": "name" }, { "api_name": "pants.backend.javascript.package_json.NodeBuildScriptEntryPointField", "line_number": 28, "usage_type": "name" }, { "api_name": "pants.backend.javascript.package_json.NodeP...
13255530705
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from math import sqrt from scipy import stats import warnings warnings.filterwarnings("ignore") from statsmodels.formula.api import ols from sklearn.metrics import mean_squared_error, r2_score, explained_variance_score, mean_...
RyvynYoung/COVID
svi_capstone/scripts_python/model_MAE.py
model_MAE.py
py
12,076
python
en
code
0
github-code
6
[ { "api_name": "warnings.filterwarnings", "line_number": 9, "usage_type": "call" }, { "api_name": "sklearn.linear_model.LinearRegression", "line_number": 26, "usage_type": "call" }, { "api_name": "sklearn.feature_selection.RFE", "line_number": 27, "usage_type": "call" },...
44191894536
from django.conf.urls import url # include is adding then from django.contrib import admin from .views import( post_home, post_delete, post_update, post_edit, post_create, post_save, ) urlpatterns = [ url(r'^$',post_home), url(r'^delete/$',post_delete), url(r'^updat...
hmoshabbar/DjangoProject
posts/urls.py
urls.py
py
442
python
en
code
0
github-code
6
[ { "api_name": "django.conf.urls.url", "line_number": 15, "usage_type": "call" }, { "api_name": "views.post_home", "line_number": 15, "usage_type": "argument" }, { "api_name": "django.conf.urls.url", "line_number": 16, "usage_type": "call" }, { "api_name": "views.p...
27009635088
from sklearn.ensemble import AdaBoostRegressor from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegressor, GradientBoostingRegressor def run(x_train, y_train, x_test, y_test, base_estimator, estimator_params, n_estimators, learning_rate, loss, random_state): base_estimator = getEstimator(base...
lisunshine1234/mlp-algorithm-python
machine_learning/regression/Ensemble methods/AdaBoostRegressor/run.py
run.py
py
1,615
python
en
code
0
github-code
6
[ { "api_name": "sklearn.ensemble.AdaBoostRegressor", "line_number": 8, "usage_type": "call" }, { "api_name": "sklearn.ensemble.GradientBoostingRegressor", "line_number": 31, "usage_type": "call" }, { "api_name": "sklearn.ensemble.ExtraTreesRegressor", "line_number": 32, "u...
20632320396
import struct import typing from .base_bean import BaseBean from .config import Config from .ctrl_enum import EnumDevice, EnumCmdType, EnumFanDirection, EnumOutDoorRunCond, EnumFanVolume, EnumControl, \ EnumSensor, FreshAirHumidification, ThreeDFresh from .dao import Room, AirCon, Geothermic, Ventilation, HD, Devi...
mypal/ha-dsair
custom_components/ds_air/ds_air_service/decoder.py
decoder.py
py
27,763
python
en
code
65
github-code
6
[ { "api_name": "struct.unpack", "line_number": 18, "usage_type": "call" }, { "api_name": "struct.unpack", "line_number": 19, "usage_type": "call" }, { "api_name": "struct.unpack", "line_number": 25, "usage_type": "call" }, { "api_name": "ctrl_enum.EnumDevice.SYSTEM...
36321645754
import pygame from dino_runner.components.dinosaur import Dinosaur from dino_runner.components.obstacles.obstacle_manager import ObstacleManager from dino_runner.components.player_hearts.player_heart_manager import PlayerHeartManager from dino_runner.components.power_ups.power_up_manager import PowerUpManager from dino...
Shrinmi/JS-Dino-Runner-Grupo-1
dino_runner/components/game.py
game.py
py
5,940
python
en
code
null
github-code
6
[ { "api_name": "pygame.init", "line_number": 13, "usage_type": "call" }, { "api_name": "pygame.display.set_caption", "line_number": 14, "usage_type": "call" }, { "api_name": "dino_runner.utils.constants.TITLE", "line_number": 14, "usage_type": "argument" }, { "api_...
15720162505
from collections import deque def solution(msg): answer = [] ord_index = 64 cach = dict() queue = deque() cach_index = 27 for string in msg: if len(queue) == 0: queue.append(string) elif len(queue) != 0: queue.append(string) queue_string = ''...
grohong/Beajoon_Algorism
프로그래머즈/[3차]압축/main.py
main.py
py
1,011
python
en
code
1
github-code
6
[ { "api_name": "collections.deque", "line_number": 8, "usage_type": "call" } ]
32144143111
from datetime import date from twilio.rest import TwilioRestClient # To find these visit https://www.twilio.com/user/account ACCOUNT_SID = "AC937af250fc201a2c44aad667cf309fa4" AUTH_TOKEN = "6a8accce5860c8f18391bf4ec809d84b" client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN) for message in client.messages.list(): ...
suparna-ghanvatkar/EBMP
show_text.py
show_text.py
py
515
python
en
code
0
github-code
6
[ { "api_name": "twilio.rest.TwilioRestClient", "line_number": 8, "usage_type": "call" }, { "api_name": "datetime.date", "line_number": 16, "usage_type": "call" } ]
35848057912
import matplotlib.pyplot as plt def visualize(n, x, y, file_name): plt.scatter(x, y) plt.xlabel('x coordinate') plt.ylabel('y coordinate') plt.title(file_name + ': Number of points: %d' % n) plt.show() def read_from_file(file_name): coord_x = [] coord_y = [] with open(file_name, 'r') ...
klauchek/Python_3sem
matplotlib_lab/task1.py
task1.py
py
744
python
en
code
0
github-code
6
[ { "api_name": "matplotlib.pyplot.scatter", "line_number": 4, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 4, "usage_type": "name" }, { "api_name": "matplotlib.pyplot.xlabel", "line_number": 5, "usage_type": "call" }, { "api_name": "mat...
40687860073
import wsgiserver from flask import Flask, jsonify def check_quota_response(**kwargs): response = kwargs['response'] return jsonify({ 'version': 1, 'payload': { 'emptyWallet': not response, }, }) def setup_flask_server(json_response): app = Flask(__name__) ap...
magma/magma
lte/gateway/python/magma/pipelined/check_quota_server.py
check_quota_server.py
py
868
python
en
code
1,605
github-code
6
[ { "api_name": "flask.jsonify", "line_number": 7, "usage_type": "call" }, { "api_name": "flask.Flask", "line_number": 16, "usage_type": "call" }, { "api_name": "wsgiserver.WSGIServer", "line_number": 31, "usage_type": "call" } ]
14037338740
import numpy as np import matplotlib.pyplot as plt plt.rcParams['font.family']='serif' plt.rcParams['font.serif']=['Times New Roman'] + plt.rcParams['font.serif'] plt.rcParams['mathtext.fontset']='stix' plt.rcParams['font.size']=10 cm = 1/2.54 Bubble0 = np.genfromtxt("Bubble_0/KellerMiksis_R5.000e-06_fa1.570e+04_pa-...
polycfd/apecss
examples/binaryinteraction/plot_result.py
plot_result.py
py
2,384
python
en
code
13
github-code
6
[ { "api_name": "matplotlib.pyplot.rcParams", "line_number": 4, "usage_type": "attribute" }, { "api_name": "matplotlib.pyplot", "line_number": 4, "usage_type": "name" }, { "api_name": "matplotlib.pyplot.rcParams", "line_number": 5, "usage_type": "attribute" }, { "ap...
32839631812
import torch from diffusers import DiffusionPipeline def torch_device(): if torch.cuda.is_available(): return "cuda" if torch.backends.mps.is_available() and torch.backends.mps.is_built(): return "mps" return "cpu" def pipeline(model="stabilityai/stable-diffusion-xl-base-0.9", device=tor...
2132660698/sdxl-demos
utils.py
utils.py
py
906
python
en
code
null
github-code
6
[ { "api_name": "torch.cuda.is_available", "line_number": 6, "usage_type": "call" }, { "api_name": "torch.cuda", "line_number": 6, "usage_type": "attribute" }, { "api_name": "torch.backends.mps.is_available", "line_number": 8, "usage_type": "call" }, { "api_name": "...
19271968449
import MDAnalysis import satoshi_pca as SAS path = "/lustre7/home/lustre3/satoshi/MED" TRR = ["/aff4/test_all.trr", "/eaf1/test_all.trr", "/taf7/test_all.trr", "/aff4_kai/run_all.trr", "/eaf1_kai/run_all.trr", "/taf7_kai/run_all.trr"] PDB = ["/aff4/HEN.pdb", "/eaf1/HEN.pdb", "/taf7/HEN.pdb", ...
satoshi-python/Desktop
all_pca_kai.py
all_pca_kai.py
py
4,342
python
en
code
0
github-code
6
[ { "api_name": "MDAnalysis.Universe", "line_number": 41, "usage_type": "call" }, { "api_name": "satoshi_pca.pca", "line_number": 122, "usage_type": "call" } ]
34321388716
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators import (StageToRedshiftOperator, LoadFactOperator, DataQualityOperator) from airflow.operators.subdag...
supratim94336/SparkifyDataPipelineWithAirflow
airflow/dags/udacity_dag.py
udacity_dag.py
py
3,401
python
en
code
0
github-code
6
[ { "api_name": "os.environ.get", "line_number": 14, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 14, "usage_type": "attribute" }, { "api_name": "os.environ.get", "line_number": 15, "usage_type": "call" }, { "api_name": "os.environ", "line_...
39227052944
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import os import numpy as np import scipy.io.wavfile as wav import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.constraints import maxno...
MakerFace/voice-activation-system
mfcc-model.py
mfcc-model.py
py
2,823
python
en
code
0
github-code
6
[ { "api_name": "prepare_data.load_data_from_npy", "line_number": 29, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 29, "usage_type": "call" }, { "api_name": "os.path", "line_number": 29, "usage_type": "attribute" }, { "api_name": "prepare_dat...
9000442932
# 测试 # 开发时间:2022/8/5 9:26 from thop import profile # import torchvision.models as models # import torch from ptflops import get_model_complexity_info from models.basicblock import DRB, PALayer, CALayer, CCALayer, SRB from models.SwinT import SwinT # from .FCVit import fcvit_block # from .FCA import MultiSpectralAttenti...
sad192/LISN-Infrared-Image-SR
models/network_hybrid.py
network_hybrid.py
py
9,368
python
en
code
0
github-code
6
[ { "api_name": "torch.transpose", "line_number": 26, "usage_type": "call" }, { "api_name": "torch.nn.Conv2d", "line_number": 33, "usage_type": "call" }, { "api_name": "torch.nn", "line_number": 33, "usage_type": "name" }, { "api_name": "torch.nn.Sequential", "l...
8804328521
import pytest from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from datetime import datetime from BaseTest import BaseTest from Helper import Helper from selenium.webdriver.support.ui import WebDriverWait from se...
Shreyasi2205/MyPOMProject
tests/test_NewsArchive.py
test_NewsArchive.py
py
27,544
python
en
code
0
github-code
6
[ { "api_name": "BaseTest.BaseTest", "line_number": 66, "usage_type": "name" }, { "api_name": "pytest.mark", "line_number": 74, "usage_type": "attribute" }, { "api_name": "pytest.mark", "line_number": 90, "usage_type": "attribute" }, { "api_name": "pytest.mark", ...
30650525881
# Matrix Game experiment # Author: Lucas Cassano # Paper: "Logical Team Q-learning" # =================================== # Import necessary packages from absl import app from absl import flags import numpy as np import matplotlib.pyplot as plt import q_mix flags.DEFINE_string('save_path', '/tmp/', 'directory to save...
lcassano/Logical_Team_Q_Learning_paper
matrix_game/run_matrix_exp.py
run_matrix_exp.py
py
6,910
python
en
code
0
github-code
6
[ { "api_name": "absl.flags.DEFINE_string", "line_number": 13, "usage_type": "call" }, { "api_name": "absl.flags", "line_number": 13, "usage_type": "name" }, { "api_name": "numpy.random.seed", "line_number": 24, "usage_type": "call" }, { "api_name": "numpy.random", ...
648716471
import glob import logging import os import cv2 import numpy as np import torch from torch.utils.data import Dataset from tqdm import tqdm logfilepath = "" # 따로 지정하지 않으면 terminal에 뜸 if os.path.isfile(logfilepath): os.remove(logfilepath) logging.basicConfig(filename=logfilepath, level=logging.INFO) ...
DeepFocuser/PyTorch-Detector-alpha
classification/core/utils/dataprocessing/dataset.py
dataset.py
py
4,393
python
en
code
4
github-code
6
[ { "api_name": "os.path.isfile", "line_number": 12, "usage_type": "call" }, { "api_name": "os.path", "line_number": 12, "usage_type": "attribute" }, { "api_name": "os.remove", "line_number": 13, "usage_type": "call" }, { "api_name": "logging.basicConfig", "line...
43589412425
#!/usr/bin/env python # coding: utf-8 # In[1]: df = None # In[2]: from reaktoro import * import numpy as np from natsort import natsorted from tqdm.notebook import tqdm import os from bokeh.io import show, output_notebook from bokeh.layouts import column from bokeh.plotting import figure from bokeh.models import...
nimaamp/Reactive-transport
Nima Benchmark!.py
Nima Benchmark!.py
py
11,252
python
en
code
0
github-code
6
[ { "api_name": "numpy.linspace", "line_number": 58, "usage_type": "call" }, { "api_name": "pandas.DataFrame", "line_number": 105, "usage_type": "call" }, { "api_name": "os.system", "line_number": 113, "usage_type": "call" }, { "api_name": "tqdm.notebook.tqdm", ...
25793507679
# -*-coding:utf-8-*- __author__ = 'BING' from django.http import HttpResponse from django.shortcuts import render,render_to_response from zhihupaper import apiUse,singelNews,latestNews,beforeNews import re from getPic import GetPic def home(request): api = apiUse() news = latestNews(api) count = news.getnu...
codeBing/zhihudaily
paper/views.py
views.py
py
2,087
python
en
code
4
github-code
6
[ { "api_name": "zhihupaper.apiUse", "line_number": 10, "usage_type": "call" }, { "api_name": "zhihupaper.latestNews", "line_number": 11, "usage_type": "call" }, { "api_name": "django.shortcuts.render_to_response", "line_number": 14, "usage_type": "call" }, { "api_n...
17435427439
import pytest import pdb from typing import List class Solution: def fullJustify(self, words: List[str], maxWidth: int) -> List[str]: """ """ def intertwine(ws, sps): # one word + one sps appended t = [] for w, s in zip(ws, sps): ...
naubull2/codingtests
leetcode/quick-prep/68_Text_Justification/solution.py
solution.py
py
2,224
python
en
code
0
github-code
6
[ { "api_name": "typing.List", "line_number": 6, "usage_type": "name" }, { "api_name": "pytest.mark.parametrize", "line_number": 58, "usage_type": "call" }, { "api_name": "pytest.mark", "line_number": 58, "usage_type": "attribute" }, { "api_name": "pytest.main", ...
18882639437
#! /usr/bin/env python3 import sys import json from flask import Flask, request app = Flask(__name__) def is_browser(ua_string): return ua_string.split('/')[0].lower() == 'mozilla' @app.route("/") def hello(): msg_content = "Hello World!" if is_browser(request.headers['User-Agent']): return "...
glennneiger/estate-backend
example/simple.py
simple.py
py
770
python
en
code
0
github-code
6
[ { "api_name": "flask.Flask", "line_number": 7, "usage_type": "call" }, { "api_name": "flask.request.headers", "line_number": 17, "usage_type": "attribute" }, { "api_name": "flask.request", "line_number": 17, "usage_type": "name" }, { "api_name": "json.dumps", ...
30575157530
from Domain.BuildEnumMethods import BuildEnumMethods from .UtilityScriptBase import UtilityScriptBase import logging from .Exceptions.ArgNotFoundException import ArgNotFoundException import json from mongoengine import connect import pandas from Domain.EquityCorporateData import EquityCorporateData class LoadNasdaqTi...
jminahan/backtest_framework
UtilityRunner/UtilityScripts/LoadNasdaqTickers.py
LoadNasdaqTickers.py
py
2,352
python
en
code
0
github-code
6
[ { "api_name": "UtilityScriptBase.UtilityScriptBase", "line_number": 11, "usage_type": "name" }, { "api_name": "UtilityScriptBase.UtilityScriptBase.__init__", "line_number": 13, "usage_type": "call" }, { "api_name": "UtilityScriptBase.UtilityScriptBase", "line_number": 13, ...
16866363316
import pytorch_lightning as pl import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler import torch from torchmetrics import Accuracy from loss import create_criterion class Backbone(nn.Module): def __init__(self): super(Backbone, ...
KyubumShin/MNIST_pl
model.py
model.py
py
2,306
python
en
code
0
github-code
6
[ { "api_name": "torch.nn.Module", "line_number": 12, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 12, "usage_type": "name" }, { "api_name": "torch.nn.Sequential", "line_number": 15, "usage_type": "call" }, { "api_name": "torch.nn", "lin...
21998644026
from typing import List class Trie: def __init__(self): self.L = 30 self.left = None self.right = None def insert(self, val: int): node = self for i in range(self.L, -1, -1): bit = (val >> i) & 1 if bit == 0: if not node.left: ...
hangwudy/leetcode
1700-1799/1707. 与数组中元素的最大异或值.py
1707. 与数组中元素的最大异或值.py
py
1,735
python
en
code
0
github-code
6
[ { "api_name": "typing.List", "line_number": 46, "usage_type": "name" } ]
38447711574
import sys import os import json from parse import validate_file if __name__ == '__main__': outputs_dir = sys.argv[1] submission_name = sys.argv[2] submission = {} for input_path in os.listdir("inputs"): graph_name = input_path.split('.')[0] output_file = f'{outputs_dir}/{graph_name}.ou...
Sea-Snell/170project
prepare_submission.py
prepare_submission.py
py
588
python
en
code
7
github-code
6
[ { "api_name": "sys.argv", "line_number": 7, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 8, "usage_type": "attribute" }, { "api_name": "os.listdir", "line_number": 10, "usage_type": "call" }, { "api_name": "os.path.exists", "line_numbe...
10972428124
# # train.py # @author amangupta0044@gmail.com # @description # @created 2020-12-09T16:35:56.524Z+05:30 # @last-modified 2020-12-11T20:05:30.671Z+05:30 # ########### Help ########### ''' python train.py \ --data_dir /Users/aman.gupta/Documents/eagleview/utilities/onsite_data_fetch/fetched_images/annotated_combine...
aman0044/resnet-classifier
train.py
train.py
py
6,456
python
en
code
0
github-code
6
[ { "api_name": "argparse.ArgumentParser", "line_number": 45, "usage_type": "call" }, { "api_name": "os.makedirs", "line_number": 60, "usage_type": "call" }, { "api_name": "torch.utils.tensorboard.SummaryWriter", "line_number": 64, "usage_type": "call" }, { "api_nam...
2140106274
import numpy as np from pyqtgraph.Qt import QtGui, QtCore import init_multi as im import func_multi as fm ''' BEGING PROGRAM ''' # функция отрисовки изображения, использует convert() для получения данных из fifo def showTrack(i): x1, y1 = fm.ellipseCreate(20+5*i, 30, 50, 70-3*i, 0.05*i) im.ellipse1.setData(x1...
NazimAliev/public
embedded/passive-radar-fpga-dsp-arm/multix86/main_multi.py
main_multi.py
py
1,879
python
ru
code
0
github-code
6
[ { "api_name": "func_multi.ellipseCreate", "line_number": 13, "usage_type": "call" }, { "api_name": "init_multi.ellipse1.setData", "line_number": 14, "usage_type": "call" }, { "api_name": "init_multi.ellipse1", "line_number": 14, "usage_type": "attribute" }, { "api...
22094537095
import logging import datetime import sqlite3 import voluptuous as vol from homeassistant.helpers.event import async_track_time_interval from homeassistant.core import callback from homeassistant.helpers import config_validation as cv _LOGGER = logging.getLogger(__name__) DOMAIN = 'hasentinel' CONFIG_SCHEMA = vol.Sc...
dennis-bell/HASentinel
custom_components/hasentinel/__init__.py
__init__.py
py
3,269
python
en
code
0
github-code
6
[ { "api_name": "logging.getLogger", "line_number": 9, "usage_type": "call" }, { "api_name": "voluptuous.Schema", "line_number": 13, "usage_type": "call" }, { "api_name": "voluptuous.Schema", "line_number": 14, "usage_type": "call" }, { "api_name": "voluptuous.All",...
72532883709
import os from pathlib import Path import s4l_v1 import s4l_v1.analysis.viewers as viewers import s4l_v1.document as document import s4l_v1.model as model import s4l_v1.simulation.emfdtd as fdtd import s4l_v1.units as units from dotenv import load_dotenv from osparc_isolve_api import run_simulation from s4l_v1._api.ap...
ITISFoundation/osparc-simcore
tests/public-api/examples/s4l_tutorial.py
s4l_tutorial.py
py
3,834
python
en
code
35
github-code
6
[ { "api_name": "dotenv.load_dotenv", "line_number": 16, "usage_type": "call" }, { "api_name": "os.environ.get", "line_number": 19, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 19, "usage_type": "attribute" }, { "api_name": "os.environ", "l...
8665336110
from selenium import webdriver import time from selenium.webdriver.common.action_chains import ActionChains browser = webdriver.Chrome() browser.get("http://www.baidu.com/") browser.maximize_window() time.sleep(3) browser.find_element_by_id("kw").send_keys("哈哈") # 定位百度一下按钮 name = browser.find_element_by_id("su") # 右击 #...
Zshuangshuang/Reload
2021_03_12自动化学习/src2021_03_12/testDemo12.py
testDemo12.py
py
472
python
en
code
0
github-code
6
[ { "api_name": "selenium.webdriver.Chrome", "line_number": 4, "usage_type": "call" }, { "api_name": "selenium.webdriver", "line_number": 4, "usage_type": "name" }, { "api_name": "time.sleep", "line_number": 7, "usage_type": "call" }, { "api_name": "selenium.webdriv...
27061966352
__all__ = [ "InvalidPaddingError", "find_potential_ecb", "pad_pkcs_7", "strip_pkcs_7", "detect_potential_repeating_ecb_blocks", "ecb_encrypt", "cbc_encrypt_prepadded", "ecb_decrypt", "cbc_encrypt", "cbc_decrypt", "ctr_transcrypt" ] # noinspection PyPackageRequirements # fals...
BrendanCoughlan/cryptopals
block_crypt.py
block_crypt.py
py
3,652
python
en
code
0
github-code
6
[ { "api_name": "bitfiddle.brake_into_keysize_blocks", "line_number": 25, "usage_type": "call" }, { "api_name": "Crypto.Cipher.AES.new", "line_number": 64, "usage_type": "call" }, { "api_name": "Crypto.Cipher.AES", "line_number": 64, "usage_type": "name" }, { "api_n...
34839802828
# -*- coding: utf-8 -*- """ Created on Tue Sep 21 01:32:51 2021 @author: vidhy """ from fastapi import FastAPI, File, UploadFile, Request import uvicorn import numpy as np from io import BytesIO from PIL import Image import requests from starlette.middleware.cors import CORSMiddleware from starlette.responses import ...
VidhyaGupta/Potato-Disease-Classification
api/main-tf-serving.py
main-tf-serving.py
py
1,938
python
en
code
0
github-code
6
[ { "api_name": "fastapi.FastAPI", "line_number": 17, "usage_type": "call" }, { "api_name": "starlette.middleware.cors.CORSMiddleware", "line_number": 24, "usage_type": "argument" }, { "api_name": "starlette.responses.RedirectResponse", "line_number": 49, "usage_type": "cal...
37857057401
#! /usr/bin/env python3 from uuid import uuid4 as uuid import argparse import pika from protos import events if __name__ == '__main__': p = argparse.ArgumentParser() p.add_argument("--exchange", required=True) p.add_argument("--pretty-print", default=False, action='store_true') args = p.parse_args() ...
cjmcgraw/studious-carnival
rabbitmq/read-from-exchange.py
read-from-exchange.py
py
959
python
en
code
0
github-code
6
[ { "api_name": "argparse.ArgumentParser", "line_number": 10, "usage_type": "call" }, { "api_name": "pika.BlockingConnection", "line_number": 15, "usage_type": "call" }, { "api_name": "pika.ConnectionParameters", "line_number": 16, "usage_type": "call" }, { "api_nam...
25231399833
#! /usr/bin/env python # encoding: utf-8 # vim: ai ts=4 sts=4 et sw=4 ## ## ## @author Nadia ## nadia@gmail.com/joel@gmail.com ## from coreapp.appmodel.models import CrecheParent, CrecheChild, PARENT_CHILD_RELATION from coreapp.service.base_service import BaseService from coreapp.service.child_service import ChildSe...
projet2019/Creche_Parentale
creche/coreapp/service/parent_service.py
parent_service.py
py
7,616
python
en
code
0
github-code
6
[ { "api_name": "coreapp.service.base_service.BaseService", "line_number": 19, "usage_type": "name" }, { "api_name": "coreapp.service.base_service.BaseService.__init__", "line_number": 22, "usage_type": "call" }, { "api_name": "coreapp.service.base_service.BaseService", "line_n...
29210359176
import streamlit as st from PIL import Image import numpy as np def app(): display = Image.open('./Attendance-management.jpg') display = np.array(display) st.image(display) st.markdown(""" <style> .font { font-size:20px ; font-family: 'Cooper Black'; text-align: center; color: #00000...
dest-royer02/Attendance_Application
pages/welcomePage.py
welcomePage.py
py
468
python
en
code
1
github-code
6
[ { "api_name": "PIL.Image.open", "line_number": 7, "usage_type": "call" }, { "api_name": "PIL.Image", "line_number": 7, "usage_type": "name" }, { "api_name": "numpy.array", "line_number": 8, "usage_type": "call" }, { "api_name": "streamlit.image", "line_number"...
2026763119
import hashlib import os import shutil import zipfile import numpy as np def extract_aab(aab_file, extract_dir): """ 解压aab文件到指定目录 :param aab_file: aab文件路径 :param extract_dir: 解压目录 """ with zipfile.ZipFile(aab_file, 'r') as z: print(extract_dir) z.extractall(extract_dir) def g...
Nienter/mypy
personal/aabcom.py
aabcom.py
py
2,731
python
zh
code
0
github-code
6
[ { "api_name": "zipfile.ZipFile", "line_number": 14, "usage_type": "call" }, { "api_name": "os.walk", "line_number": 27, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 29, "usage_type": "call" }, { "api_name": "os.path", "line_number": 29,...
6581285508
from django.http import HttpResponse from django.http import HttpResponse import requests from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt import uuid reference_id = uuid.uuid4() def login(request): url = "https://test.cashfree.com/api/v1/order/create" pa...
Gunarjith/verceldeploy
masterlink/views.py
views.py
py
1,350
python
en
code
0
github-code
6
[ { "api_name": "uuid.uuid4", "line_number": 7, "usage_type": "call" }, { "api_name": "requests.request", "line_number": 32, "usage_type": "call" }, { "api_name": "django.shortcuts.render", "line_number": 35, "usage_type": "call" } ]
36895861215
from __future__ import print_function from builtins import chr from builtins import zip from builtins import map from builtins import str from builtins import filter from builtins import range from builtins import object import getopt import gzip import locale import operator import os import re import shutil import ...
cfv-project/cfv
test/test.py
test.py
py
74,606
python
en
code
46
github-code
6
[ { "api_name": "locale.getpreferredencoding", "line_number": 32, "usage_type": "call" }, { "api_name": "builtins.filter", "line_number": 116, "usage_type": "call" }, { "api_name": "builtins.filter", "line_number": 120, "usage_type": "call" }, { "api_name": "builtin...
20194791845
# -*- coding: utf-8 -*- import datetime import json import sys from threading import Thread from resources.lib.common import tools from resources.lib.indexers.trakt import TraktAPI from resources.lib.modules import database from resources.lib.modules.trakt_sync.shows import TraktSyncDatabase from resources.lib.module...
Ed57/plugin.video.seren
resources/lib/gui/tvshowMenus.py
tvshowMenus.py
py
39,641
python
en
code
null
github-code
6
[ { "api_name": "sys.argv", "line_number": 19, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 21, "usage_type": "attribute" }, { "api_name": "resources.lib.indexers.trakt.TraktAPI", "line_number": 24, "usage_type": "call" }, { "api_name": "res...
2000640644
import webapp2 import jinja2 from google.appengine.api import users from google.appengine.ext import ndb import os from snippets import Words # from Tkinter import * JINJA_ENVIRONMENT=jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), extensions=['jinja2.ext.autoescape'], autoescape=True ) ...
yolo117/Anagram-Checker
add.py
add.py
py
5,784
python
en
code
0
github-code
6
[ { "api_name": "jinja2.Environment", "line_number": 10, "usage_type": "call" }, { "api_name": "jinja2.FileSystemLoader", "line_number": 10, "usage_type": "call" }, { "api_name": "os.path.dirname", "line_number": 10, "usage_type": "call" }, { "api_name": "os.path", ...
8372518963
import pycosat from pprint import pprint # number of cells in sudoku NUM_CELLS = 81 # this can be used to interate all squares subset in 3x 3 # V V V # 1 2 3 4 5 6 7 8 9 #> 1 |0 0 0| 0 0 0| 0 0 0| # 2 |0 0 0| 0 0 0| 0 0 0| # 3 |0 0 0| 0 0 0| 0 0 0| # --------------------- #> 4 |0 0 0| 0 0 0| 0 ...
macartur/programming_ai
sudoku.py
sudoku.py
py
6,456
python
en
code
0
github-code
6
[ { "api_name": "pycosat.solve", "line_number": 185, "usage_type": "call" }, { "api_name": "pprint.pprint", "line_number": 204, "usage_type": "call" }, { "api_name": "pprint.pprint", "line_number": 208, "usage_type": "call" } ]
43111552824
from typing import Any, Dict, Iterable import pandas as pd from fugue import DataFrame, FugueWorkflow, PandasDataFrame, out_transform, transform from fugue.constants import FUGUE_CONF_WORKFLOW_CHECKPOINT_PATH def test_transform(): pdf = pd.DataFrame([[1, 10], [0, 0], [1, 1], [0, 20]], columns=["a", "b"]) d...
ofili/Wrangle-and-Analyze-Data
venv/Lib/site-packages/tests/fugue/test_interfaceless.py
test_interfaceless.py
py
3,306
python
en
code
0
github-code
6
[ { "api_name": "pandas.DataFrame", "line_number": 10, "usage_type": "call" }, { "api_name": "pandas.DataFrame", "line_number": 12, "usage_type": "attribute" }, { "api_name": "fugue.transform", "line_number": 15, "usage_type": "call" }, { "api_name": "pandas.DataFra...
38416857272
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import * from recipe.serializers import RecipeSerializer, RecipeDetailSerializer RECIPE_URL = reverse('recipe:re...
deveshp530/recipe-app-api
app/recipe/tests/test_recipe.py
test_recipe.py
py
6,459
python
en
code
0
github-code
6
[ { "api_name": "django.urls.reverse", "line_number": 11, "usage_type": "call" }, { "api_name": "django.urls.reverse", "line_number": 18, "usage_type": "call" }, { "api_name": "django.test.TestCase", "line_number": 41, "usage_type": "name" }, { "api_name": "rest_fra...
25950565947
import sys import fileinput import csv import operator import numpy as np import scipy.spatial.distance as sd import pickle #python compare_google.py [google_match-norm] [avg-$count-norm] states.p statescores$count google = [] matrix = [] infile = sys.argv[2] google_reader = csv.reader(open(sys.argv[1], 'rb'), deli...
kris-samala/LBSN
data_analysis/compare_states.py
compare_states.py
py
1,233
python
en
code
2
github-code
6
[ { "api_name": "sys.argv", "line_number": 14, "usage_type": "attribute" }, { "api_name": "csv.reader", "line_number": 16, "usage_type": "call" }, { "api_name": "sys.argv", "line_number": 16, "usage_type": "attribute" }, { "api_name": "csv.reader", "line_number"...
72580436348
from fastapi import FastAPI from pydantic import BaseModel from fastapi.middleware.cors import CORSMiddleware from reconocer_form import analyze_general_documents from base_datos import crear_registro import asyncio app = FastAPI() origins = ["*"] app.add_middleware( CORSMiddleware, allow_origins=origins, ...
jefryne/web_placas
ia/detectar documento/api.py
api.py
py
898
python
es
code
0
github-code
6
[ { "api_name": "fastapi.FastAPI", "line_number": 7, "usage_type": "call" }, { "api_name": "fastapi.middleware.cors.CORSMiddleware", "line_number": 12, "usage_type": "argument" }, { "api_name": "pydantic.BaseModel", "line_number": 19, "usage_type": "name" }, { "api_...
11816060482
import numpy as np import torch with open("pdtSEIKA.csv", "r") as f: f_reader = np.loadtxt(f, delimiter=',', dtype=np.float32) predict = f_reader f.close() tensor = torch.from_numpy(np.load(r"C:\Users\cchen\PycharmProjects\LearnPyTorch/K05_excluded_xyz.npy")) # 101778, # 15,10,10 with open("ai__K05_SEIKA...
cchenyixuan/Banira
utils/predict_map.py
predict_map.py
py
545
python
en
code
0
github-code
6
[ { "api_name": "numpy.loadtxt", "line_number": 6, "usage_type": "call" }, { "api_name": "numpy.float32", "line_number": 6, "usage_type": "attribute" }, { "api_name": "torch.from_numpy", "line_number": 9, "usage_type": "call" }, { "api_name": "numpy.load", "line...
16813784584
import os import copy from typing import Dict import numpy as np import torch from collections import defaultdict from hsp.algorithms.population.policy_pool import PolicyPool from hsp.runner.shared.base_runner import make_trainer_policy_cls from hsp.utils.shared_buffer import SharedReplayBuffer from hsp.algorithms.popu...
samjia2000/HSP
hsp/algorithms/population/trainer_pool.py
trainer_pool.py
py
15,925
python
en
code
15
github-code
6
[ { "api_name": "hsp.algorithms.population.policy_pool.PolicyPool", "line_number": 17, "usage_type": "name" }, { "api_name": "torch.device", "line_number": 17, "usage_type": "call" }, { "api_name": "collections.defaultdict", "line_number": 22, "usage_type": "call" }, { ...
18680639270
import collections import torchvision.transforms as transforms import os import json try: from IPython import embed except: pass _DATASETS = {} Dataset = collections.namedtuple( 'Dataset', ['trainset', 'testset']) def _add_dataset(dataset_fn): _DATASETS[dataset_fn.__name__] = dataset_fn return...
awslabs/aws-cv-task2vec
datasets.py
datasets.py
py
12,841
python
en
code
96
github-code
6
[ { "api_name": "collections.namedtuple", "line_number": 14, "usage_type": "call" }, { "api_name": "torchvision.transforms.Normalize", "line_number": 25, "usage_type": "call" }, { "api_name": "torchvision.transforms", "line_number": 25, "usage_type": "name" }, { "ap...
14052300522
# vim set fileencoding=utf-8 from setuptools import setup with open('README.rst') as f: long_description = f.read() setup( name = 'AnthraxEplasty', version = '0.0.3', author = 'Szymon Pyżalski', author_email = 'zefciu <szymon@pythonista.net>', description = 'Anthrax - generating forms from Elep...
zefciu/anthrax-eplasty
setup.py
setup.py
py
1,242
python
en
code
0
github-code
6
[ { "api_name": "setuptools.setup", "line_number": 6, "usage_type": "call" } ]
71737201468
from typing import List from project.appliances.appliance import Appliance from project.people.child import Child class Room: def __init__(self, name: str, budget: float, members_count: int): self.family_name = name self.budget = budget self.members_count = members_count self.chi...
tonytech83/Python-OOP
OOP_Exams/11_OOP_22_Aug_2020/hotel_everland/project/rooms/room.py
room.py
py
1,573
python
en
code
4
github-code
6
[ { "api_name": "typing.List", "line_number": 13, "usage_type": "name" }, { "api_name": "project.people.child.Child", "line_number": 13, "usage_type": "name" }, { "api_name": "project.appliances.appliance.Appliance", "line_number": 32, "usage_type": "argument" } ]
38907524035
"""Create category Revision ID: bc8fb2b5aaaa Revises: cf3388347129 Create Date: 2023-05-06 09:44:36.431462 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bc8fb2b5aaaa' down_revision = 'cf3388347129' branch_labels = None depends_on = None def upgrade() -> No...
rasimatics/excursio-backend
migrations/versions/bc8fb2b5aaaa_create_category.py
bc8fb2b5aaaa_create_category.py
py
1,266
python
en
code
1
github-code
6
[ { "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...
32989650417
from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, SelectField from wtforms.validators import InputRequired, Optional sizes = ['XS','S', 'M', 'L', 'XL'] ratings = [1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 10.0] class AddCupcakeFo...
BradButler96/flask-cupcakes
forms.py
forms.py
py
825
python
en
code
0
github-code
6
[ { "api_name": "flask_wtf.FlaskForm", "line_number": 9, "usage_type": "name" }, { "api_name": "wtforms.StringField", "line_number": 12, "usage_type": "call" }, { "api_name": "wtforms.validators.InputRequired", "line_number": 12, "usage_type": "call" }, { "api_name"...
71375478588
# Import the utils import math import sys import os sys.path.append(os.path.abspath('../QUtils')) from qutils import pprint, graph # Import the QISKit SDK from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister from qiskit import execute # Create a Quantum Register with 2 qubits. q = QuantumRegister(3)...
maddy-tod/quantum
Code/MonteCarlo/NormalTest.py
NormalTest.py
py
1,675
python
en
code
3
github-code
6
[ { "api_name": "sys.path.append", "line_number": 5, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 5, "usage_type": "attribute" }, { "api_name": "os.path.abspath", "line_number": 5, "usage_type": "call" }, { "api_name": "os.path", "line_number...
27054375172
import numpy as np import pandas as pd import config import sys import tensorflow as tf from keras import Sequential from keras.layers import Dense from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error from service.Preprocess import Preprocess from service.FeatureEngineer...
kalinVn/new_york_city_taxi_fare_predicton
service/TaxiFaresPredictionNYC.py
TaxiFaresPredictionNYC.py
py
2,573
python
en
code
0
github-code
6
[ { "api_name": "keras.Sequential", "line_number": 28, "usage_type": "call" }, { "api_name": "service.Preprocess.Preprocess", "line_number": 29, "usage_type": "call" }, { "api_name": "service.FeatureEngineer.FeatureEngineer", "line_number": 32, "usage_type": "call" }, {...
38048663522
from constants import API_STACK_BASE_URL import requests import sys class IpStack: def __init__(self, api_token: str, base_url: str): if base_url is None or base_url == '': base_url = API_STACK_BASE_URL self.api_token = api_token self.base_url = base_url def get_ip_locati...
AlejandroGC-SS/ip_stack_interface
ip_stack.py
ip_stack.py
py
1,318
python
en
code
0
github-code
6
[ { "api_name": "constants.API_STACK_BASE_URL", "line_number": 8, "usage_type": "name" }, { "api_name": "requests.get", "line_number": 17, "usage_type": "call" }, { "api_name": "requests.exceptions", "line_number": 19, "usage_type": "attribute" }, { "api_name": "sys...
72609945147
import requests from parsel import Selector url='http://www.porters.vip/verify/uas/index.html' # headers = { # 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3'} headers = {'User-Agent': 'PostmanRuntime/7.26.2', 'Host': 'www.porters.vip'...
0xdeciverAngel/anti-web-crawler
user agent.py
user agent.py
py
569
python
en
code
0
github-code
6
[ { "api_name": "requests.get", "line_number": 13, "usage_type": "call" }, { "api_name": "parsel.Selector", "line_number": 14, "usage_type": "call" } ]
8784244942
import os from django.conf import settings from django.contrib import messages from django.contrib.auth import logout from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import redirect, render from django.urls import reverse, revers...
simranmadhok/Venter_CMS
Venter/views.py
views.py
py
9,673
python
en
code
0
github-code
6
[ { "api_name": "Venter.forms.CSVForm", "line_number": 31, "usage_type": "call" }, { "api_name": "django.http.HttpResponse", "line_number": 36, "usage_type": "call" }, { "api_name": "django.shortcuts.render", "line_number": 38, "usage_type": "call" }, { "api_name": ...
30364500871
import sys import mock import six from okonomiyaki.errors import InvalidMetadataField from ..python_implementation import PythonABI, PythonImplementation from hypothesis import given from hypothesis.strategies import sampled_from if sys.version_info < (2, 7): import unittest2 as unittest else: import unitt...
enthought/okonomiyaki
okonomiyaki/platforms/tests/test_python_implementation.py
test_python_implementation.py
py
4,083
python
en
code
2
github-code
6
[ { "api_name": "sys.version_info", "line_number": 13, "usage_type": "attribute" }, { "api_name": "unittest.TestCase", "line_number": 19, "usage_type": "attribute" }, { "api_name": "python_implementation.PythonImplementation", "line_number": 30, "usage_type": "call" }, ...
33548298905
import sys import argparse import tensorflow as tf from keras.models import Model, load_model from keras.layers import TimeDistributed, Conv1D, Dense, Embedding, Input, Dropout, LSTM, Bidirectional, MaxPooling1D, \ Flatten, concatenate from keras.initializers import RandomUniform from keras.callbacks import EarlySt...
guardiaum/DeepEx
CNN_BLSTM_fit_hyperparams.py
CNN_BLSTM_fit_hyperparams.py
py
6,299
python
en
code
1
github-code
6
[ { "api_name": "keras.layers.Input", "line_number": 51, "usage_type": "call" }, { "api_name": "keras.layers.Embedding", "line_number": 52, "usage_type": "call" }, { "api_name": "keras.layers.Input", "line_number": 56, "usage_type": "call" }, { "api_name": "keras.la...
655237097
import os from glob import glob import numpy as np import pandas as pd try: import imageio.v2 as imageio except ImportError: import imageio from tqdm import tqdm from xarray import DataArray from elf.evaluation import dice_score def run_prediction(input_folder, output_folder): import bioimageio.core ...
constantinpape/torch-em
experiments/unet-segmentation/livecell/check_cell_type_performance.py
check_cell_type_performance.py
py
2,148
python
en
code
42
github-code
6
[ { "api_name": "os.makedirs", "line_number": 18, "usage_type": "call" }, { "api_name": "glob.glob", "line_number": 20, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 20, "usage_type": "call" }, { "api_name": "os.path", "line_number": 20, ...
16540523617
import os import sys from nuitka.utils.FileOperations import ( areSamePaths, isFilenameBelowPath, isFilenameSameAsOrBelowPath, ) from nuitka.utils.Utils import ( isAndroidBasedLinux, isFedoraBasedLinux, isLinux, isMacOS, isPosixWindows, isWin32Windows, withNoDeprecationWarning, ...
Nuitka/Nuitka
nuitka/PythonFlavors.py
PythonFlavors.py
py
6,933
python
en
code
10,019
github-code
6
[ { "api_name": "PythonVersions.python_version", "line_number": 34, "usage_type": "name" }, { "api_name": "sys.implementation", "line_number": 35, "usage_type": "attribute" }, { "api_name": "sys.subversion", "line_number": 37, "usage_type": "attribute" }, { "api_nam...
11838557066
import pickle import os import sys import numpy as np import json_tricks as json import cv2 import torch import copy import random import torchvision.transforms as transforms from glob import glob from tqdm import tqdm from PIL import Image from natsort import natsorted import matplotlib.pyplot as plt from scipy.spati...
Qingwei-Li98/PoseEstimation
core/utils/infant_dataset.py
infant_dataset.py
py
8,713
python
en
code
0
github-code
6
[ { "api_name": "torch.utils.data.Dataset", "line_number": 21, "usage_type": "name" }, { "api_name": "torchvision.transforms.ToTensor", "line_number": 22, "usage_type": "call" }, { "api_name": "torchvision.transforms", "line_number": 22, "usage_type": "name" }, { "a...
13879303932
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2020-06-20 16:15 # @Author : 小凌 # @Email : 296054210@qq.com # @File : test_06_audit.py # @Software: PyCharm import json import unittest import ddt from common.excel_handler import ExcelHandler from common.http_handler import visit from middlerware.h...
galaxyling/api-framework
testcases/test_06_audit.py
test_06_audit.py
py
3,807
python
en
code
1
github-code
6
[ { "api_name": "middlerware.handler.Handler.logger", "line_number": 16, "usage_type": "attribute" }, { "api_name": "middlerware.handler.Handler", "line_number": 16, "usage_type": "name" }, { "api_name": "middlerware.handler.Handler.excel", "line_number": 17, "usage_type": ...
16543939917
import functools def makeTable(grid): """Create a REST table.""" def makeSeparator(num_cols, col_width, header_flag): if header_flag == 1: return num_cols * ("+" + (col_width) * "=") + "+\n" else: return num_cols * ("+" + (col_width) * "-") + "+\n" def normalizeCe...
Nuitka/Nuitka
nuitka/utils/Rest.py
Rest.py
py
927
python
en
code
10,019
github-code
6
[ { "api_name": "functools.reduce", "line_number": 17, "usage_type": "call" } ]
39972780174
#!/usr/bin/env python3 # ------------------------------------------------------------------------ # MIDI Control for SignalFlow # ------------------------------------------------------------------------ from signalflow import * import configparser import logging import mido import os logger = logging.getLogger(__name...
ideoforms/signalflow
auxiliary/libs/signalflow_midi/signalflow_midi.py
signalflow_midi.py
py
6,131
python
en
code
138
github-code
6
[ { "api_name": "logging.getLogger", "line_number": 12, "usage_type": "call" }, { "api_name": "os.getenv", "line_number": 20, "usage_type": "call" }, { "api_name": "os.getenv", "line_number": 21, "usage_type": "call" }, { "api_name": "os.path.expanduser", "line_...
19621184365
#import libraries import tensorflow as tf import numpy as np import matplotlib.pyplot as plt """ This tutorial from the AI at UCLA's technical blog post: https://uclaacmai.github.io/Linear-Regression """ testlines = [] testans = [] trainlines = [] trainans = [] for line in open("boston2.txt", 'r').readlines()[0:100]...
canders1/COMSC343
_site/pdf/regression_class.py
regression_class.py
py
1,961
python
en
code
0
github-code
6
[ { "api_name": "numpy.array", "line_number": 26, "usage_type": "call" }, { "api_name": "numpy.float32", "line_number": 26, "usage_type": "attribute" }, { "api_name": "numpy.array", "line_number": 27, "usage_type": "call" }, { "api_name": "numpy.float32", "line_...
10380773430
import torch.nn as nn from ..builder import BACKBONES from .base_backbone import BaseBackbone @BACKBONES.register_module() class RMNet(BaseBackbone): def __init__(self, depth,frozen_stages=-1): super(RMNet, self).__init__() self.frozen_stages = frozen_stages self.conv1 = nn.Conv2d(3, 64, ker...
fxmeng/mmclassification
mmcls/models/backbones/rmnet.py
rmnet.py
py
2,851
python
en
code
null
github-code
6
[ { "api_name": "base_backbone.BaseBackbone", "line_number": 5, "usage_type": "name" }, { "api_name": "torch.nn.Conv2d", "line_number": 9, "usage_type": "call" }, { "api_name": "torch.nn", "line_number": 9, "usage_type": "name" }, { "api_name": "torch.nn.BatchNorm2d...
3477657730
import logging import posixpath from collections import defaultdict from typing import TYPE_CHECKING, Callable, Dict, Generator, Optional, Tuple from ...stash import ExpStashEntry from ..base import BaseExecutor from ..ssh import SSHExecutor, _sshfs from .base import BaseExecutorManager if TYPE_CHECKING: from scm...
gshanko125298/Prompt-Engineering-In-context-learning-with-GPT-3-and-LLMs
myenve/Lib/site-packages/dvc/repo/experiments/executor/manager/ssh.py
ssh.py
py
3,336
python
en
code
3
github-code
6
[ { "api_name": "typing.TYPE_CHECKING", "line_number": 11, "usage_type": "name" }, { "api_name": "logging.getLogger", "line_number": 16, "usage_type": "call" }, { "api_name": "base.BaseExecutorManager", "line_number": 19, "usage_type": "name" }, { "api_name": "ssh.S...
6497432832
from stock_util import StockUtil from logger import Logger from stock_db import StockDb import time import threading import requests from pandas import DataFrame import pandas as pd class StockMon(): def __init__(self): self.logger = Logger("StockMon") self.util = StockUtil() def...
jia-zhang/fp-client
lib/stock_mon.py
stock_mon.py
py
9,923
python
en
code
0
github-code
6
[ { "api_name": "logger.Logger", "line_number": 12, "usage_type": "call" }, { "api_name": "stock_util.StockUtil", "line_number": 13, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 18, "usage_type": "call" }, { "api_name": "requests.get", "l...
5073225846
import asyncio import logging import aiohttp import aiohttp.server logger = logging.getLogger(__name__) class ProxyRequestHandler(aiohttp.server.ServerHttpProtocol): """ Inspired by https://github.com/jmehnle/aiohttpproxy Copyright Julian Mehnle, Apache License 2.0 """ def __init__(self): ...
raphaelm/cockatiel
functional_tests/utils_proxy.py
utils_proxy.py
py
2,602
python
en
code
4
github-code
6
[ { "api_name": "logging.getLogger", "line_number": 7, "usage_type": "call" }, { "api_name": "aiohttp.server", "line_number": 10, "usage_type": "attribute" }, { "api_name": "aiohttp.request", "line_number": 35, "usage_type": "call" }, { "api_name": "asyncio.coroutin...
36208434520
import multiDownload as dl import pandas as pd import sqlite3 import json import os from datetime import datetime, timedelta import shutil import argparse import jieba from jieba import analyse from wordcloud import WordCloud from opencc import OpenCC import requests import emoji with open("scripts/config.json", "r") ...
arthurfsy2/Postcrossing_map_generator
scripts/createPersonalPage.py
createPersonalPage.py
py
15,829
python
en
code
0
github-code
6
[ { "api_name": "json.load", "line_number": 17, "usage_type": "call" }, { "api_name": "argparse.ArgumentParser", "line_number": 27, "usage_type": "call" }, { "api_name": "os.path.exists", "line_number": 46, "usage_type": "call" }, { "api_name": "os.path", "line_...
30543923938
import sys import numpy as np import torch from tqdm import tqdm import matplotlib.pyplot as plt from Preprocessor import Preprocessor """ Dataset Snapshot: Dataset A: Normal Murmur Extra Heart Sound Artifact Dataset B: Normal Murmur Extrasystole """ class PASCAL(Preprocessor): def...
kendreaditya/heart-auscultation
src/preprocess/PASCAL-dataset.py
PASCAL-dataset.py
py
2,173
python
en
code
2
github-code
6
[ { "api_name": "Preprocessor.Preprocessor", "line_number": 25, "usage_type": "name" }, { "api_name": "tqdm.tqdm", "line_number": 40, "usage_type": "call" }, { "api_name": "torch.tensor", "line_number": 52, "usage_type": "call" }, { "api_name": "torch.tensor", "...
40696691343
import asyncio import re from collections import namedtuple from magma.magmad.check import subprocess_workflow DEFAULT_NUM_PACKETS = 4 DEFAULT_TIMEOUT_SECS = 20 PingCommandParams = namedtuple( 'PingCommandParams', ['host_or_ip', 'num_packets', 'timeout_secs'], ) PingInterfaceCommandParams = namedtuple( ...
magma/magma
orc8r/gateway/python/magma/magmad/check/network_check/ping.py
ping.py
py
5,786
python
en
code
1,605
github-code
6
[ { "api_name": "collections.namedtuple", "line_number": 11, "usage_type": "call" }, { "api_name": "collections.namedtuple", "line_number": 16, "usage_type": "call" }, { "api_name": "collections.namedtuple", "line_number": 21, "usage_type": "call" }, { "api_name": "...
41495871576
from rdkit import Chem import argparse import math import os from sklearn.metrics import mean_squared_error, r2_score from statistics import stdev if __name__ == "__main__": parser = argparse.ArgumentParser(description='Calculate the RMSD value for a molecular property.') parser.add_argument('--original', '-o'...
sophiahoenig/NetworkBalanceScaling
utils/evaluate_results.py
evaluate_results.py
py
6,038
python
en
code
0
github-code
6
[ { "api_name": "argparse.ArgumentParser", "line_number": 9, "usage_type": "call" }, { "api_name": "os.path.splitext", "line_number": 24, "usage_type": "call" }, { "api_name": "os.path", "line_number": 24, "usage_type": "attribute" }, { "api_name": "os.path.splitext...
43193724256
# -*- coding: utf-8 -*- import streamlit as st from topics import TopicModel import pandas as pd import numpy as np from scipy.optimize import linear_sum_assignment import matplotlib.pyplot as plt import base64 @st.cache(allow_output_mutation=True) def load_corpus(url): return tm.load_corpus(url) # check the cach...
michaelweiss/topic-model-explorer
old/topic_model_explorer_stability.py
topic_model_explorer_stability.py
py
8,264
python
en
code
2
github-code
6
[ { "api_name": "streamlit.cache", "line_number": 13, "usage_type": "call" }, { "api_name": "streamlit.spinner", "line_number": 22, "usage_type": "call" }, { "api_name": "streamlit.cache", "line_number": 18, "usage_type": "call" }, { "api_name": "streamlit.spinner",...
26857827694
import os import numpy as np import torch import torch.nn as nn class Generator(nn.Module): def __init__(self, latent_dim, img_shape): super().__init__() self.img_shape = img_shape self.label_embed = nn.Embedding(10, 10) def block(in_feat, out_feat, normalize=True): la...
zeroone-universe/GM4MNIST
models/cGAN/model.py
model.py
py
1,673
python
en
code
0
github-code
6
[ { "api_name": "torch.nn.Module", "line_number": 7, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 7, "usage_type": "name" }, { "api_name": "torch.nn.Embedding", "line_number": 11, "usage_type": "call" }, { "api_name": "torch.nn", "line_n...
36264192726
from PyQt5.QtCore import QModelIndex, pyqtSignal, pyqtSlot, QVariant, QFile, QByteArray, QBuffer, QIODevice, QSize, \ QItemSelectionModel, QItemSelection from PyQt5.QtGui import QPixmap, QFont, QIcon from PyQt5.QtSql import QSqlQuery from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QDialog, QMessageBox f...
drug173/Python
applications/Tree1/widget1.py
widget1.py
py
13,903
python
ru
code
0
github-code
6
[ { "api_name": "PyQt5.QtWidgets.QWidget", "line_number": 12, "usage_type": "name" }, { "api_name": "PyQt5.QtWidgets.QLabel", "line_number": 19, "usage_type": "call" }, { "api_name": "PyQt5.QtGui.QFont", "line_number": 24, "usage_type": "call" }, { "api_name": "PyQt...
25755944520
import unittest from datetime import date, datetime from constants import ( STATUS_IN_PROGRESS, STATUS_COMPLETED, TASK_UPDATED, PRIORITY_HIGH, PRIORITY_MEDIUM, PRIORITY_LOW, TASK1, TASK2, TASK3 ) from main import app, bd from models.task_model import Task from repository.task_reposi...
dan9Protasenia/task-management
tests/test_task_service.py
test_task_service.py
py
5,950
python
en
code
0
github-code
6
[ { "api_name": "unittest.TestCase", "line_number": 21, "usage_type": "attribute" }, { "api_name": "main.app.testing", "line_number": 23, "usage_type": "attribute" }, { "api_name": "main.app", "line_number": 23, "usage_type": "name" }, { "api_name": "main.app.config...
39690983841
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="visbeat", version="0.0.9", author="Abe Davis", author_email="everyonehasadance@gmail.com", description="Code for 'Visual Rhythm and Beat' SIGGRAPH 2018", long_description=long_descript...
abedavis/visbeat
setup.py
setup.py
py
1,170
python
en
code
220
github-code
6
[ { "api_name": "setuptools.setup", "line_number": 6, "usage_type": "call" }, { "api_name": "setuptools.find_packages", "line_number": 34, "usage_type": "call" } ]
35228257702
#!/usr/bin/env python """Visualisation.py: Visualise data from simulation""" __author__ = "Murray Ireland" __email__ = "murray@craftprospect.com" __date__ = "22/10/2018" __copyright__ = "Copyright 2017 Craft Prospect Ltd" __licence___ = "" import vtk import numpy as np from math import tan, sin, cos, atan, pi # impo...
Craft-Prospect/CubeSatVis
python/visualisation.py
visualisation.py
py
24,867
python
en
code
2
github-code
6
[ { "api_name": "platform.system", "line_number": 20, "usage_type": "call" }, { "api_name": "win32api.GetSystemMetrics", "line_number": 22, "usage_type": "call" }, { "api_name": "platform.system", "line_number": 23, "usage_type": "call" }, { "api_name": "Tkinter.Tk"...
74291021627
import math import numpy as np from scipy.spatial import ConvexHull class LOS_guidance(): def __init__(self, params): self.ship_max_speed = params['ship_max_speed'] self.ship_ax_vel_lim = params['ship_ax_vel_lim'] self.ship_lat_acc_pos_lim = params['ship_lat_acc_pos_lim'] self.ship_...
spacedoge2320/Ship-OA-sim
Ship-OA-sim/Guidance_algorithms.py
Guidance_algorithms.py
py
28,641
python
en
code
0
github-code
6
[ { "api_name": "numpy.linalg.norm", "line_number": 19, "usage_type": "call" }, { "api_name": "numpy.linalg", "line_number": 19, "usage_type": "attribute" }, { "api_name": "math.atan2", "line_number": 24, "usage_type": "call" }, { "api_name": "math.pi", "line_nu...
29147674060
#!/usr/bin/env python # coding: utf-8 # In[1]: import requests import bs4 # In[2]: 'http://books.toscrape.com/catalogue/page-2.html' # In[3]: 'http://books.toscrape.com/catalogue/page-3.html' # In[4]: base_url = 'http://books.toscrape.com/catalogue/page-{}.html' # In[5]: base_url.format('20') # In[...
maylinaung/python-learning
web_scrabing_book_example.py
web_scrabing_book_example.py
py
1,427
python
en
code
0
github-code
6
[ { "api_name": "requests.get", "line_number": 56, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 62, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 137, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", ...
13859758386
import bs4 import requests from bs4 import BeautifulSoup SUPPORTED_LANGUAGES = ("EN", "__test__") def scrape_oxford_learners_dictionary(word: str) -> list[str]: def url(i: int) -> str: return ( f"https://www.oxfordlearnersdictionaries.com" f"/definition/english/{word}_{i}" ...
pavelkurach/vocab-builder
src/dict_scrapers.py
dict_scrapers.py
py
1,687
python
en
code
0
github-code
6
[ { "api_name": "requests.get", "line_number": 24, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 28, "usage_type": "call" }, { "api_name": "bs4.Tag", "line_number": 31, "usage_type": "attribute" }, { "api_name": "bs4.Tag", "line_numbe...