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
71426682600
import os from os import listdir from os.path import isfile, join import numpy as np import pandas as pd from plotly.subplots import make_subplots import plotly.graph_objects as go DATA_PATH = '/kaggle/input/efficientbx-melanoma-classification-with-tf' # Importing Data history_files = [f for f ...
aorursy/new-nb-3
fredericods_from-efficientnetb0-to-b7-melanoma-classification.py
fredericods_from-efficientnetb0-to-b7-melanoma-classification.py
py
5,876
python
en
code
0
github-code
18
[ { "api_name": "os.listdir", "line_number": 27, "usage_type": "call" }, { "api_name": "os.path.isfile", "line_number": 27, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 27, "usage_type": "call" }, { "api_name": "os.listdir", "line_number"...
21464080623
#!/usr/bin/python # coding: utf-8 import unittest, mock import random from giftcircle import GiftCircle from senders import Sender, Email, SMS, config class GiftCircleTests(unittest.TestCase): def setUp(self): f = open("test_unit.txt","w") f.write("""Nombre1,correo1@example.com Nombre2,correo2@ex...
jstitch/gift_circle
unit.py
unit.py
py
10,433
python
en
code
1
github-code
18
[ { "api_name": "unittest.TestCase", "line_number": 10, "usage_type": "attribute" }, { "api_name": "giftcircle.GiftCircle", "line_number": 33, "usage_type": "call" }, { "api_name": "giftcircle.GiftCircle", "line_number": 39, "usage_type": "call" }, { "api_name": "gi...
40463553321
from django.conf.urls import * from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from .views import ( QuoteList, QuoteDetail, QuoteCreate, QuoteUpdate, QuoteDelete ) urlpatterns = patterns( '', url(r'^$', login_required(QuoteList.as_view()), name='quote...
serkansokmen/Spuqi
spuqi/apps/quotes/urls.py
urls.py
py
806
python
en
code
0
github-code
18
[ { "api_name": "django.contrib.auth.decorators.login_required", "line_number": 10, "usage_type": "call" }, { "api_name": "views.QuoteList.as_view", "line_number": 10, "usage_type": "call" }, { "api_name": "views.QuoteList", "line_number": 10, "usage_type": "name" }, { ...
20936047004
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'), url(r'^post/new/$', views.post_new, name='post_new'), url(r'^about', views.about, name='about'), url(r'^blog', views.blog, name='blo...
ellinorronn/my-first-blog
blog/urls.py
urls.py
py
328
python
en
code
0
github-code
18
[ { "api_name": "django.conf.urls.url", "line_number": 5, "usage_type": "call" }, { "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.co...
8084106628
import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle n = 100000000 r = 1.0 a,b = (0.0,0.0) xmin, xmax = a-r, a+r ymin, ymax = b-r, b+r x = np.random.uniform(xmin,xmax,n) y = np.random.uniform(ymin,ymax,n) fig = plt.figure(figsize=(6,6)) axes = fig.add_subplot(1,1,1)#添加子图 #画子图 plt...
WuXingWei-git/Workspace
MonteCarlo.py
MonteCarlo.py
py
921
python
zh
code
0
github-code
18
[ { "api_name": "numpy.random.uniform", "line_number": 12, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 12, "usage_type": "attribute" }, { "api_name": "numpy.random.uniform", "line_number": 13, "usage_type": "call" }, { "api_name": "numpy.ran...
9043777582
import time import matplotlib.pyplot as plt class Node: def __init__(self, node_number, x, y): self.node_number = str(node_number) self.x = float(x) self.y = float(y) def __str__(self): return "Node " + self.node_number class Graph: global city_name def __ini...
jimmy-han-2610/2-opt-on-TSP
2-opt.py
2-opt.py
py
5,036
python
en
code
0
github-code
18
[ { "api_name": "matplotlib.pyplot.figure", "line_number": 23, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 23, "usage_type": "name" }, { "api_name": "matplotlib.pyplot.scatter", "line_number": 24, "usage_type": "call" }, { "api_name": "...
72614091881
# Import all the necessary packages import numpy as np import os import cv2 import pandas as pd import PySimpleGUI as sg # Directory and Filename MAIN_DIR = r"C:\Users\Argarot\images" DANIIL_DIR = MAIN_DIR + "\calibration\\" filename = 'IMG_20210727_181600.jpg' # PySimpleGUI sg.theme("LightGreen") lay...
Argarot/Accelerated-automated-screening-of-graphene-suspensions-with-surfactants-for-optimal-conductivity
CODE for image recognition.py
CODE for image recognition.py
py
7,984
python
en
code
0
github-code
18
[ { "api_name": "PySimpleGUI.theme", "line_number": 14, "usage_type": "call" }, { "api_name": "PySimpleGUI.Text", "line_number": 19, "usage_type": "call" }, { "api_name": "PySimpleGUI.Slider", "line_number": 20, "usage_type": "call" }, { "api_name": "PySimpleGUI.Tex...
42655327660
#!/usr/bin/python3 #MediaWiki ## Inputs # http://www.climatecongress.info/wiki/BotResource:cats ## Directs to # http://www.climatecongress.info/wiki/US_CA_Legislature_info # http://www.climatecongress.info/wiki/US_CA_Assembly_info # http://www.climatecongress.info/wiki/US_CA_Senate_info ## Outputs # http://www.climatec...
antoinemcgrath/mw_cp
mw_updator_twitter_rapid_action_pages.py
mw_updator_twitter_rapid_action_pages.py
py
12,607
python
en
code
0
github-code
18
[ { "api_name": "logging.basicConfig", "line_number": 19, "usage_type": "call" }, { "api_name": "logging.DEBUG", "line_number": 19, "usage_type": "attribute" }, { "api_name": "pymongo.MongoClient", "line_number": 31, "usage_type": "call" }, { "api_name": "time.sleep...
75056800999
#Grupo da Maioridade import datetime data = datetime.date.today().year ano = 0 maior = 0 menor = 0 for c in range(1, 8): ano = int(input(f'Digite a {c}º data: ')) idade = data - ano if idade >= 18: maior = maior + 1 else: menor = menor + 1 print(f'{maior} Pessoas são de ...
deadpoetic/Curso-python
ex54.py
ex54.py
py
361
python
pt
code
0
github-code
18
[ { "api_name": "datetime.date.today", "line_number": 5, "usage_type": "call" }, { "api_name": "datetime.date", "line_number": 5, "usage_type": "attribute" } ]
71512449640
from sklearn.externals import joblib import pandas as pd from tqdm import tqdm import numpy as np from lightgbm import LGBMClassifier, plot_importance, plot_metric, plot_tree, LGBMRanker from sklearn.preprocessing import OneHotEncoder, LabelEncoder from sklearn.metrics import accuracy_score, confusion_matrix, roc_auc_s...
dylanxia2017/Kaggle-Home-Credit-Default-Risk
credit_balance_a.py
credit_balance_a.py
py
9,838
python
en
code
1
github-code
18
[ { "api_name": "warnings.filterwarnings", "line_number": 17, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 21, "usage_type": "call" }, { "api_name": "pandas.read_csv", "line_number": 22, "usage_type": "call" }, { "api_name": "numpy.maximum...
18389491252
#!usr/bin/env python # -*- coding:utf-8 -*- # @author: Johnathon Qiang # @file : parse.py # @time : 2017/09/26 17:41:51 # @description:to be filled from bs4 import BeautifulSoup from python_spider_action.mzitu_spider.download import download_v3 from python_spider_action.mzitu_spider.util import save_v3, mongoUti...
keepwonder/python_spider
mzitu_spider/parse/parse_v3.py
parse_v3.py
py
3,957
python
zh
code
1
github-code
18
[ { "api_name": "python_spider_action.mzitu_spider.download.download_v3.DownHtml", "line_number": 15, "usage_type": "call" }, { "api_name": "python_spider_action.mzitu_spider.download.download_v3", "line_number": 15, "usage_type": "name" }, { "api_name": "python_spider_action.mzitu...
30633203866
import os import glob from PIL import Image import matplotlib.pyplot as plt import numpy as np #import tensorflow as tf import sys root_dir=sys.argv[1] split_file=sys.argv[2] dataset_split_path=os.path.join(root_dir, split_file) with open(dataset_split_path, 'r') as split: train_classes = [line.rstrip() for lin...
m2kulkarni/Oneshot-Learning
Scripts/rotated_dataset/make_dataset.py
make_dataset.py
py
1,258
python
en
code
1
github-code
18
[ { "api_name": "sys.argv", "line_number": 9, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 11, "usage_type": "attribute" }, { "api_name": "os.path.join", "line_number": 13, "usage_type": "call" }, { "api_name": "os.path", "line_number": ...
25827400430
from typing import Iterator, NamedTuple from datetime import datetime from .base import Event import logging log = logging.getLogger(__name__) class PushEventCommit(NamedTuple): event_id: int event_created_at: datetime repo_name: str org_name: str actor_login: str sha: str author_name...
epam/OSCI
osci/crawlers/github/events/push.py
push.py
py
1,446
python
en
code
139
github-code
18
[ { "api_name": "logging.getLogger", "line_number": 8, "usage_type": "call" }, { "api_name": "typing.NamedTuple", "line_number": 11, "usage_type": "name" }, { "api_name": "datetime.datetime", "line_number": 13, "usage_type": "name" }, { "api_name": "base.Event", ...
36538423681
from __future__ import print_function import numpy as np import sys from collections import defaultdict import gym from gym import wrappers def epsilon_greedy_policy(Q, state, num_actions, epsilon): policy = np.ones(num_actions, dtype=float) * epsilon / num_actions best_action = np.argmax(Q[state]) pol...
jacopodisi/ReinforcementLearning
functions/Sarsa_Lambda.py
Sarsa_Lambda.py
py
3,321
python
en
code
0
github-code
18
[ { "api_name": "numpy.ones", "line_number": 13, "usage_type": "call" }, { "api_name": "numpy.argmax", "line_number": 14, "usage_type": "call" }, { "api_name": "collections.defaultdict", "line_number": 23, "usage_type": "call" }, { "api_name": "numpy.zeros", "li...
27728789269
import setuptools with open("README.md", "r") as f: long_desc = f.read() setuptools.setup( name="depswarm", version="0.0.1", author="Eero Talus", author_email="eero@talus.cc", description="Easily deploy Docker Swarm stacks with dependencies.", long_description=long_desc, long_descripti...
eerotal/depswarm
setup.py
setup.py
py
842
python
en
code
1
github-code
18
[ { "api_name": "setuptools.setup", "line_number": 6, "usage_type": "call" }, { "api_name": "setuptools.find_packages", "line_number": 15, "usage_type": "call" } ]
6530876424
import numpy as np import shapely import vsketch import pysometric as pyso class Example01Sketch(vsketch.SketchClass): """ Creates a grid of boxes with fill and hatch texturing. """ unit_size = vsketch.Param(1.0, unit="cm") def create_boxes(self): boxes = [] top = {"textures": [...
svoisen/pysometric
examples/example01/sketch_example01.py
sketch_example01.py
py
1,005
python
en
code
12
github-code
18
[ { "api_name": "vsketch.SketchClass", "line_number": 8, "usage_type": "attribute" }, { "api_name": "vsketch.Param", "line_number": 13, "usage_type": "call" }, { "api_name": "pysometric.HatchTexture", "line_number": 17, "usage_type": "call" }, { "api_name": "pysomet...
12475534402
import sys import os import smtplib import pymysql.cursors PDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.abspath(PDIR)) from settings import SmartAlphaPath, debug, get_email_txt_signature, get_reply_to_email SETT = SmartAlphaPath() sys.path.append(os.path.abspath(SETT.get_pa...
taatuco/sa_data_collection
core/send_mail.py
send_mail.py
py
3,822
python
en
code
5
github-code
18
[ { "api_name": "os.path.dirname", "line_number": 5, "usage_type": "call" }, { "api_name": "os.path", "line_number": 5, "usage_type": "attribute" }, { "api_name": "os.path.abspath", "line_number": 5, "usage_type": "call" }, { "api_name": "sys.path.append", "line...
33695443298
import tensorflow as tf from six.moves import cPickle # Loading net skeleton with parameters name and shapes. with open("./util/net_skeleton.ckpt", "rb") as f: net_skeleton = cPickle.load(f) # The DeepLab-LargeFOV model can be represented as follows: ## input -> [conv-relu](dilation=1, channels=64) x 2 -> [max_po...
DrSleep/tensorflow-deeplab-lfov
deeplab_lfov/model.py
model.py
py
8,679
python
en
code
220
github-code
18
[ { "api_name": "six.moves.cPickle.load", "line_number": 6, "usage_type": "call" }, { "api_name": "six.moves.cPickle", "line_number": 6, "usage_type": "name" }, { "api_name": "tensorflow.contrib.layers.xavier_initializer_conv2d", "line_number": 36, "usage_type": "call" },...
10974961029
#coding: utf-8 from bs4 import BeautifulSoup as bs import requests # CONSTANTS FEMALE_TIP = '\xe5\xa5\xb9' GENDER_TIP = u'\u6027\u522b\uff1a' FEMALE = '\xe5\xa5\xb3' MALE = '\xe7\x94\xb7' # Source urlFather = 'http://bj.xiaozhu.com/search-duanzufang-p1-0/' webDataFather = requests.get(urlFather) soupFather = bs(webDa...
TigerHorse/MuggleCoding_easyPython
01wd03.py
01wd03.py
py
2,901
python
en
code
0
github-code
18
[ { "api_name": "requests.get", "line_number": 13, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 14, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 16, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "...
25851389931
from re import M import sys, getopt, os # from mpi4py import MPI # rank = MPI.COMM_WORLD.Get_rank() # # set only one visible device # os.environ["CUDA_VISIBLE_DEVICES"] = f"{rank}" # os.environ["JAX_PLATFORM_NAME"] = "cpu" sys.path.append('/storage/praha1/home/mezic/.local/lib/python3.7/site-packages') import netket a...
mmezic/NQS_Shastry-Sutherland
main_benchmark_table.py
main_benchmark_table.py
py
23,214
python
en
code
0
github-code
18
[ { "api_name": "sys.path.append", "line_number": 8, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 8, "usage_type": "attribute" }, { "api_name": "sys.version", "line_number": 15, "usage_type": "attribute" }, { "api_name": "netket.__version__", ...
25031572003
from pyspark import SparkContext, SparkConf from time import time import sys import math import csv class Task2Point1(): def __init__(self): self.pearson_similarities = {} def setup(self): conf = SparkConf().setAppName('DM_assign3_task2point1').setMaster('local[*]') sc = ...
Viraj27/USC-Data-Mining-DS553-
Assignment 3/task2_1.py
task2_1.py
py
9,832
python
en
code
0
github-code
18
[ { "api_name": "pyspark.SparkConf", "line_number": 13, "usage_type": "call" }, { "api_name": "pyspark.SparkContext.getOrCreate", "line_number": 14, "usage_type": "call" }, { "api_name": "pyspark.SparkContext", "line_number": 14, "usage_type": "name" }, { "api_name"...
42745394166
from __future__ import annotations from typing import Any, Callable, List, Protocol, Tuple, TypeVar, Union, Optional, Dict from collections import defaultdict from copy import copy from attrs import define, Factory, frozen, evolve import jax from jax.interpreters.ad import JVPTracer import jax.numpy as jnp from inter...
redwoodresearch/interp
interp/tools/grad_modify_query.py
grad_modify_query.py
py
10,196
python
en
code
10
github-code
18
[ { "api_name": "typing.TypeVar", "line_number": 18, "usage_type": "call" }, { "api_name": "typing.Union", "line_number": 19, "usage_type": "name" }, { "api_name": "typing.List", "line_number": 19, "usage_type": "name" }, { "api_name": "typing.Protocol", "line_n...
14097507649
import motor import redis.asyncio as redis from beanie import init_beanie from fastapi import FastAPI from app.config import Settings, settings from app.user.models.sign_up import SignUpSessionDB from app.user.models.user import UserDB from app.user.routers import sign_up app = FastAPI() app.include_router(sign_up, ...
stounfo/day_statistic_backend
app/main.py
main.py
py
1,052
python
en
code
3
github-code
18
[ { "api_name": "app.config", "line_number": 11, "usage_type": "name" }, { "api_name": "fastapi.FastAPI", "line_number": 11, "usage_type": "call" }, { "api_name": "app.config.include_router", "line_number": 13, "usage_type": "call" }, { "api_name": "app.user.routers...
43426749719
from itertools import islice import requests, pickle, re, os, time from django.conf import settings from bs4 import BeautifulSoup from nltk.corpus import stopwords from nltk.tokenize import word_tokenize stop_words = set(stopwords.words('english')) with open(os.path.join(settings.BASE_DIR, r'analysis\Naive\classifier...
SiddiqSonic/Tracer
ScraperApi/WebScraper.py
WebScraper.py
py
10,059
python
en
code
0
github-code
18
[ { "api_name": "nltk.corpus.stopwords.words", "line_number": 7, "usage_type": "call" }, { "api_name": "nltk.corpus.stopwords", "line_number": 7, "usage_type": "name" }, { "api_name": "os.path.join", "line_number": 10, "usage_type": "call" }, { "api_name": "os.path"...
35272864758
from peewee import (SqliteDatabase, Model, CharField, DateField, BooleanField, ForeignKeyField) from pathlib import Path db = SqliteDatabase(Path(__file__).resolve().parent.parent/'bot.sqlite3') class User(Model): ...
Julia-Shejko/PlannerBot
core/models.py
models.py
py
651
python
en
code
0
github-code
18
[ { "api_name": "peewee.SqliteDatabase", "line_number": 10, "usage_type": "call" }, { "api_name": "pathlib.Path", "line_number": 10, "usage_type": "call" }, { "api_name": "peewee.Model", "line_number": 13, "usage_type": "name" }, { "api_name": "peewee.CharField", ...
28056584598
#!/usr/bin/env python3 import os import signal from threading import Thread from datetime import datetime from time import sleep from subprocess import Popen import shlex from bottle import run, get, request, HTTPResponse def fetch_unix_time(): return int(datetime.now().timestamp()) def run_cmd(cmd, start_tim...
odanado/twitter-trigger
server.py
server.py
py
1,149
python
en
code
0
github-code
18
[ { "api_name": "datetime.datetime.now", "line_number": 15, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 15, "usage_type": "name" }, { "api_name": "time.sleep", "line_number": 20, "usage_type": "call" }, { "api_name": "subprocess.Popen",...
27336627701
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Joan Massich <mailsik@gmail.com> # # License: BSD Style. import numpy as np from ...utils import verbose from ._utils import _fetch_one, _data_path, AGE_SLEEP_RECORDS from ._utils import _check_subjects data_path = _data_p...
soheilbr82/BluegrassWorkingMemory
Python_Engine/Lib/site-packages/mne/datasets/sleep_physionet/age.py
age.py
py
4,468
python
en
code
5
github-code
18
[ { "api_name": "_utils._data_path", "line_number": 13, "usage_type": "name" }, { "api_name": "numpy.loadtxt", "line_number": 83, "usage_type": "call" }, { "api_name": "_utils.AGE_SLEEP_RECORDS", "line_number": 83, "usage_type": "argument" }, { "api_name": "numpy.wh...
33782072231
from rk4 import rk4 import numpy as np import matplotlib.pyplot as plt #Vars G = 1 M = 1 h = 1 n = 10 #Init y0 = np.array([-0.97000436, 0.24308753]) v0 = np.array([-0.46620368, -0.43236573]) y1 = np.array([0.97000436, -0.24308753]) v1 = np.array([-0.46620368, -0.43236573]) y2 = np.array([0., 0.]) v2 = np.array([0.932...
MauriceDonner/CompPhys
2_Exerc/Blatt2_2.py
Blatt2_2.py
py
1,050
python
en
code
0
github-code
18
[ { "api_name": "numpy.array", "line_number": 12, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": 13, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": 14, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": ...
31895836162
from django.db import migrations, transaction def fix_missing_go_component_type(apps, schema_editor): """Set missing go_component_type for container image upstream_go_modules""" Component = apps.get_model("core", "Component") # These are always upstreams of a container image # The first cnode has typ...
RedHatProductSecurity/component-registry
corgi/core/migrations/0068_fix_missing_go_component_type.py
0068_fix_missing_go_component_type.py
py
910
python
en
code
19
github-code
18
[ { "api_name": "django.db.transaction.atomic", "line_number": 10, "usage_type": "call" }, { "api_name": "django.db.transaction", "line_number": 10, "usage_type": "name" }, { "api_name": "django.db.migrations.Migration", "line_number": 19, "usage_type": "attribute" }, {...
37689781434
import hashlib import logging from typing import Optional, Union import github import gitlab from ogr.abstract import CommitStatus, GitProject from ogr.services.gitlab import GitlabProject from ogr.services.pagure import PagureProject logger = logging.getLogger(__name__) class StatusReporter: def __init__( ...
RaiLokesh/packit-service
packit_service/worker/reporting.py
reporting.py
py
5,905
python
en
code
null
github-code
18
[ { "api_name": "logging.getLogger", "line_number": 12, "usage_type": "call" }, { "api_name": "ogr.abstract.GitProject", "line_number": 18, "usage_type": "name" }, { "api_name": "typing.Optional", "line_number": 20, "usage_type": "name" }, { "api_name": "ogr.service...
72539959400
import tensorflow as tf from tensorflow import keras from pixel_based_module import Pixel_Anchor class BasicBlock(keras.layers.Layer): def __init__(self, filters, strides=1): super(BasicBlock, self).__init__() self.conv1 = keras.layers.Conv2D(filters=filters, kernel_size=(3, 3), strides=strides, p...
fendaq/pixel_anchor
nets/resnet.py
resnet.py
py
6,267
python
en
code
1
github-code
18
[ { "api_name": "tensorflow.keras.layers", "line_number": 6, "usage_type": "attribute" }, { "api_name": "tensorflow.keras", "line_number": 6, "usage_type": "name" }, { "api_name": "tensorflow.keras.layers.Conv2D", "line_number": 9, "usage_type": "call" }, { "api_nam...
29059933153
from dotenv import load_dotenv load_dotenv() import amphora_client from amphora_client.rest import ApiException from amphora_client.configuration import Configuration import requests import json from xml.dom import minidom from xml.dom.minidom import Document import xml.etree.ElementTree as ET import time import os d...
maxmills1/EYCIchecker
src/batch_uploads/Cattle_batch_upload.py
Cattle_batch_upload.py
py
5,271
python
en
code
0
github-code
18
[ { "api_name": "dotenv.load_dotenv", "line_number": 2, "usage_type": "call" }, { "api_name": "json.dumps", "line_number": 17, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 38, "usage_type": "call" }, { "api_name": "requests.get", "line_nu...
17686441094
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, JsonResponse from django.contrib.auth import login, authenticate, logout from django.contrib.auth.decorators import login_required from django.contrib import messages from django.contrib.auth.models import User from d...
WhizzyDoc/mediquiz
quiz/views.py
views.py
py
6,176
python
en
code
0
github-code
18
[ { "api_name": "forms.RegistrationForm", "line_number": 16, "usage_type": "call" }, { "api_name": "models.Profile", "line_number": 22, "usage_type": "call" }, { "api_name": "actions.utils.create_action", "line_number": 24, "usage_type": "call" }, { "api_name": "dja...
69955927082
import typing from mg_sql.sql_async.model_logic import RawSqlModel, SqlTypeReturn class TUserVk(typing.TypedDict): """Тип для таблицы UsersVk""" id: int user_id: int groups_id: int sex: int bdata: int city: int cwpm: int followers: int relation: int last_seen: int time_...
denisxab/VK_skan
vk_scan/model_db.py
model_db.py
py
2,477
python
en
code
0
github-code
18
[ { "api_name": "typing.TypedDict", "line_number": 5, "usage_type": "attribute" }, { "api_name": "mg_sql.sql_async.model_logic.RawSqlModel", "line_number": 20, "usage_type": "name" }, { "api_name": "mg_sql.sql_async.model_logic.RawSqlModel", "line_number": 48, "usage_type":...
40105850487
#Given the sweden country data convert it into a list with dictionaries # in this form:[ { 'population': 9903122, 'year': 2016}, .... ]. # Make a function out of that. import json from pprint import pprint with open('data/sweden.json')as data_file: sweden = json.load(data_file) # pop_dic = {} # for i in range(0,...
gaonita/my_little_project
hellopink/Review/re_ex6_4-5.py
re_ex6_4-5.py
py
810
python
en
code
3
github-code
18
[ { "api_name": "json.load", "line_number": 7, "usage_type": "call" } ]
20086434711
import gradio as gr import numpy as np import cv2 as cv def backgroundNoiceReduction(image, h, color_components, template_window_size, search_window_size): result = cv.fastNlMeansDenoisingColored(image, None, h, color_components, template_window_size, search_window_size) return result tit = "Backgrou...
MayankShrivastava17/background-noice-reduction
main.py
main.py
py
1,132
python
en
code
1
github-code
18
[ { "api_name": "cv2.fastNlMeansDenoisingColored", "line_number": 6, "usage_type": "call" }, { "api_name": "gradio.Interface", "line_number": 12, "usage_type": "call" }, { "api_name": "gradio.inputs.Image", "line_number": 12, "usage_type": "call" }, { "api_name": "g...
27151254512
import cv2 import matplotlib.pyplot as plt from .structs import SceneResponse, DetectionResponse, FaceDetectionResponse, FaceRecognitionResponse from .utils import bytestoCV2 from PIL import Image import numpy def saveResponse(image,response,output, output_font=cv2.FONT_HERSHEY_SIMPLEX,output_font_color=(0,146,224), ...
johnolafenwa/DeepStackPython
deepstack_sdk/viz.py
viz.py
py
2,886
python
en
code
30
github-code
18
[ { "api_name": "cv2.FONT_HERSHEY_SIMPLEX", "line_number": 8, "usage_type": "attribute" }, { "api_name": "cv2.imwrite", "line_number": 10, "usage_type": "call" }, { "api_name": "cv2.FONT_HERSHEY_SIMPLEX", "line_number": 12, "usage_type": "attribute" }, { "api_name":...
73480650600
from logging import getLogger from pyramid.config import Configurator from pyramid_zodbconn import get_connection from translationstring import TranslationStringFactory from .models.appmaker import appmaker _ = TranslationStringFactory('kedja') logger = getLogger(__name__) def root_factory(request): conn = ge...
kedjaproject/kedja_server
src/kedja/__init__.py
__init__.py
py
2,046
python
en
code
0
github-code
18
[ { "api_name": "translationstring.TranslationStringFactory", "line_number": 10, "usage_type": "call" }, { "api_name": "logging.getLogger", "line_number": 11, "usage_type": "call" }, { "api_name": "pyramid_zodbconn.get_connection", "line_number": 15, "usage_type": "call" ...
18211913667
import requests from bs4 import BeautifulSoup NUM_COLUMNS = 4 from typing import List from CITY_TO_STATE import city_to_state URL = "https://www.craigslist.org/about/sites" KEYWORDS = ["multi", "multi%20family", "multi%20unit", "multi-family", "multi-unit", "multifamily", "multiunit"] UNIT_AMOUNT = [str(i) + " " + "u...
mgauz01/python-real-estate-leads
craiglist_scrapper.py
craiglist_scrapper.py
py
3,008
python
en
code
0
github-code
18
[ { "api_name": "requests.get", "line_number": 13, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 14, "usage_type": "call" }, { "api_name": "typing.List", "line_number": 12, "usage_type": "name" }, { "api_name": "typing.List", "line_nu...
16298153440
"""Furniture Creator's product parts repository.""" from __future__ import annotations from typing import List, Dict, Union import re from operator import itemgetter from furniturecreator.dataclasses import Part from furniturecreator.utilities import filter_parts_dict_by_size class PartRepository: """Processes ...
ruudwelten/furniture-creator
furniturecreator/part_repository.py
part_repository.py
py
3,517
python
en
code
0
github-code
18
[ { "api_name": "typing.Dict", "line_number": 17, "usage_type": "name" }, { "api_name": "furniturecreator.dataclasses.Part", "line_number": 17, "usage_type": "name" }, { "api_name": "typing.Dict", "line_number": 18, "usage_type": "name" }, { "api_name": "re.match", ...
16762525526
# -*- coding: utf-8 -*- import time import requests import json import pandas as pd import numpy as np from database_sql import fundDatabase fund_list_url = "http://fund.eastmoney.com/js/fundcode_search.js" def fund_list_str2fmt_data(raw_str): """ :param raw_str: "var r = [["000001","HXCZHH","华夏成长混合","混合型"...
CS-Zucker/fof99
data_v-master/fund_list.py
fund_list.py
py
3,298
python
en
code
0
github-code
18
[ { "api_name": "json.loads", "line_number": 25, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": 52, "usage_type": "call" }, { "api_name": "pandas.DataFrame", "line_number": 54, "usage_type": "call" }, { "api_name": "requests.get", "line_numb...
42621046217
from collections import deque import networkx as nx from itertools import combinations with open('Day16/input.txt') as file: lines = [line.strip() for line in file] V={} opened_=[] G = nx.DiGraph() for line in lines: words = line.split() valve = words[1] flowrate = int(words[4].split('=')[-1][:-1])...
psundstrom/advent-of-code-2022
Day16/day16.py
day16.py
py
2,320
python
en
code
0
github-code
18
[ { "api_name": "networkx.DiGraph", "line_number": 12, "usage_type": "call" }, { "api_name": "networkx.shortest_path_length", "line_number": 25, "usage_type": "call" }, { "api_name": "itertools.combinations", "line_number": 72, "usage_type": "call" } ]
3677803243
import signal import os import cv2 as cv import numpy as np from multiprocessing import Queue, Pool import queue from setproctitle import setproctitle import time import common.settings as settings from detect.dynamic_track import DynamicTrack import tensorflow as tf from detect.frame_stitch import ImageStitch from det...
qqmecl/Farsight
detect/object_detector.py
object_detector.py
py
11,726
python
en
code
0
github-code
18
[ { "api_name": "os.getcwd", "line_number": 20, "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.path.join", "line_number":...
43426819659
import time from django.test import TestCase # Create your tests here. from bs4 import BeautifulSoup import requests import csv mylist = [] import pandas # # def moblie_links( phone_name, count): url = "https://www.gsmarena.com/results.php3?sQuickSearch=yes&sName=" + phone_name + "" user_agent = 'Mozilla/5.0...
SiddiqSonic/Tracer
ScraperApi/tests.py
tests.py
py
4,265
python
en
code
0
github-code
18
[ { "api_name": "requests.get", "line_number": 19, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 22, "usage_type": "call" }, { "api_name": "time.sleep", "line_number": 33, "usage_type": "call" }, { "api_name": "requests.get", "line_nu...
5566608264
from astropy.io import fits def to_rest_frame(filein,z): data = fits.getdata(filein) header = fits.getheader(filein,ext=1) header['CRVAL1'] = header['CRVAL1'] /(1+z) header['CDELT1'] = header['CDELT1']/(1+z) fits.writeto(filein.replace('.fits','_restframe.fits'),data,header) print('Created file %s'%filein.repla...
VeraPatricio/Resolved_Metallicity
Data/P18_spectra/put_spectra_in_rest_frame.py
put_spectra_in_rest_frame.py
py
462
python
en
code
1
github-code
18
[ { "api_name": "astropy.io.fits.getdata", "line_number": 5, "usage_type": "call" }, { "api_name": "astropy.io.fits", "line_number": 5, "usage_type": "name" }, { "api_name": "astropy.io.fits.getheader", "line_number": 6, "usage_type": "call" }, { "api_name": "astrop...
19494607812
import requests import dateparser from datetime import datetime import warnings from src.modules.hiveModules.hiveModules import hiveModules warnings.filterwarnings( "ignore", message="The localize method is no longer necessary, as this time zone supports the fold attribute", ) class ransomLeaks...
c4rl0sL0ur31r0/AlertsTheHive
src/feeds/alerts/ransomLeaks.py
ransomLeaks.py
py
2,313
python
en
code
4
github-code
18
[ { "api_name": "warnings.filterwarnings", "line_number": 8, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 17, "usage_type": "call" }, { "api_name": "dateparser.parse", "line_number": 22, "usage_type": "call" }, { "api_name": "datetime.datetim...
13038282322
import pickle import matplotlib.pyplot as plt import numpy as np from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error, r2_score from sklearn.model_selection import train_test_split np.random.seed(0) with open("data/processed.pickle", "rb") as file: datasets = pickle.loa...
YizhePKU/bandwidth-prediction-lab
main.py
main.py
py
1,676
python
en
code
0
github-code
18
[ { "api_name": "numpy.random.seed", "line_number": 8, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 8, "usage_type": "attribute" }, { "api_name": "pickle.load", "line_number": 11, "usage_type": "call" }, { "api_name": "numpy.array", "line...
1007935370
import dataclasses #/usr/bin/env python # -*- coding: utf-8 -*- import os, pathlib, sys,click,logging,string,csv,json,tempfile,re sys.path.append(os.getcwd()) parent_path = pathlib.Path(__file__).parent.absolute() sys.path.append(str(parent_path)) master_path = parent_path.parent sys.path.append(str(master_path)) ...
marcusau/ipo_pdfparsing_server
Config/yaml_generator.py
yaml_generator.py
py
1,135
python
en
code
0
github-code
18
[ { "api_name": "sys.path.append", "line_number": 7, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 7, "usage_type": "attribute" }, { "api_name": "os.getcwd", "line_number": 7, "usage_type": "call" }, { "api_name": "pathlib.Path", "line_number"...
12450431413
#!/bin/env python #coding: utf8 from flask import Flask, render_template, jsonify, request, make_response, send_file from flask_digest import Stomach from service import * CONTENT_PATH='/ryg' #为了保持通过nginx之后uri一致使得Digest鉴权机制成功,需要设置上下文路径, def create_app(): app = Flask(__name__, static_url_path=CONTENT_PATH) app.co...
pacopink/ryb_monitor
web/main.py
main.py
py
1,691
python
en
code
1
github-code
18
[ { "api_name": "flask.Flask", "line_number": 11, "usage_type": "call" }, { "api_name": "flask_digest.Stomach", "line_number": 13, "usage_type": "call" }, { "api_name": "flask.request.args.get", "line_number": 34, "usage_type": "call" }, { "api_name": "flask.request...
3569966597
import logging import os from datetime import datetime dir_path = './sum_dist/logs' filename = f'{datetime.now().strftime("%Y%m%d-%H%M%S")}.log' def get_logger(log_name, log_level="INFO"): if not os.path.exists(f'{dir_path}'): os.makedirs(f'{dir_path}') logger = logging.getLogger(log_name) logger...
IKMLab/UASSU
sum_dist/utils/logging.py
logging.py
py
891
python
en
code
2
github-code
18
[ { "api_name": "datetime.datetime.now", "line_number": 6, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 6, "usage_type": "name" }, { "api_name": "os.path.exists", "line_number": 9, "usage_type": "call" }, { "api_name": "os.path", "li...
41230308321
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2019-20: 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...
anhquan0412/nlp_practice
s5/model_embeddings.py
model_embeddings.py
py
3,239
python
en
code
0
github-code
18
[ { "api_name": "torch.nn.Module", "line_number": 26, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 26, "usage_type": "name" }, { "api_name": "torch.nn.Embedding", "line_number": 45, "usage_type": "call" }, { "api_name": "torch.nn", "line...
71426478440
# https://docs.python.org/3.6/library/filecmp.html # https://docs.python.org/3/library/pathlib.html import filecmp xyz_folders = map(str, range(1, 2400)) xyz_files = [folder+"/geometry.xyz" for folder in xyz_folders] match, mismatch, errors = filecmp.cmpfiles("../input/train", "../input/train", ...
aorursy/new-nb-3
engant_compare-xyz-files-with-filecmp-pathlib-modules.py
engant_compare-xyz-files-with-filecmp-pathlib-modules.py
py
1,468
python
en
code
0
github-code
18
[ { "api_name": "filecmp.cmpfiles", "line_number": 9, "usage_type": "call" }, { "api_name": "pathlib.Path", "line_number": 15, "usage_type": "call" }, { "api_name": "filecmp.cmp", "line_number": 27, "usage_type": "call" } ]
86270516315
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2021/9/9 11:05 # @Author : # @File : modelTest.py # @Function: import warnings warnings.filterwarnings("ignore") import argparse import random import numpy as np import torch from torch import cuda from transformers import AutoModel, AutoTokeni...
WOW5678/attentionGuiding
test/mednli_test.py
mednli_test.py
py
4,252
python
en
code
0
github-code
18
[ { "api_name": "warnings.filterwarnings", "line_number": 9, "usage_type": "call" }, { "api_name": "sys.path.append", "line_number": 23, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 23, "usage_type": "attribute" }, { "api_name": "torch.cuda.is_av...
36244164505
import datasets import numpy as np import pandas as pd import torch from torch.utils.data.dataset import Dataset from tqdm import tqdm class JigsawData(Dataset): """Base dataloader for the Jigsaw Toxic Comment Classification Challenges.""" def __init__(self, train_csv_file, test_csv_file, train=True, add_tes...
unitaryai/detoxify
src/data_loaders.py
data_loaders.py
py
7,841
python
en
code
755
github-code
18
[ { "api_name": "torch.utils.data.dataset.Dataset", "line_number": 9, "usage_type": "name" }, { "api_name": "datasets.Dataset.from_pandas", "line_number": 15, "usage_type": "call" }, { "api_name": "datasets.Dataset", "line_number": 15, "usage_type": "attribute" }, { ...
11062294474
import dbus from dbus.mainloop.glib import DBusGMainLoop from .localwhiteboard import LocalWhiteboard from .remotewhiteboard import RemoteWhiteboard AVAHI_DBUS_NAME = 'org.freedesktop.Avahi' AVAHI_INTERFACE_UNSPEC = -1 AVAHI_PROTOCOL_UNSPEC = -1 class Whiteboards(object): def __init__(self, whiteboard_type, por...
niligulmohar/whiteboard
whiteboard/whiteboards.py
whiteboards.py
py
6,123
python
en
code
0
github-code
18
[ { "api_name": "dbus.mainloop.glib.DBusGMainLoop", "line_number": 29, "usage_type": "call" }, { "api_name": "dbus.SystemBus", "line_number": 30, "usage_type": "call" }, { "api_name": "dbus.Interface", "line_number": 32, "usage_type": "call" }, { "api_name": "dbus.U...
25109471708
from utils.data import Data tiff_filename = "./Data/Images/" shp_filename = "./Data/Labels/" data = Data(tiff_filename, shp_filename) tiff = data.read_tiff() mask = data.get_mask() X,y = data.get_Xy(tiff, mask, n_sample = 2000000) X_train, X_test, y_train, y_test = data.train_test_split(X, y)
Aryal007/ml_satellite_image_segmentation
generate_data.py
generate_data.py
py
296
python
en
code
4
github-code
18
[ { "api_name": "utils.data.Data", "line_number": 5, "usage_type": "call" } ]
23279058519
# -*- coding: utf-8 -*- import datetime from django.contrib.sites.models import Site from django.utils import lorem_ipsum from django.core import mail from django.core.management import call_command from django.core.urlresolvers import reverse from hashlib import sha1 as sha_constructor from django.utils.translation i...
dwebdevcore/BoardDirector_dashboard
apps/registration/tests.py
tests.py
py
10,181
python
en
code
8
github-code
18
[ { "api_name": "django.utils.lorem_ipsum.words", "line_number": 22, "usage_type": "call" }, { "api_name": "django.utils.lorem_ipsum", "line_number": 22, "usage_type": "name" }, { "api_name": "django.utils.lorem_ipsum.words", "line_number": 23, "usage_type": "call" }, {...
27795477230
# -*- coding: utf-8 -*- from openerp import tools from openerp.osv import fields, osv from datetime import datetime from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT from openerp.tools.translate import _ class give_k(osv.osv): _name = 'give.k' _description = 'Tang K' _columns = { 'name'...
sonhh2412/mua5k
backend/custom/odoo_general/partner/give_k.py
give_k.py
py
5,496
python
en
code
1
github-code
18
[ { "api_name": "openerp.osv.osv.osv", "line_number": 8, "usage_type": "attribute" }, { "api_name": "openerp.osv.osv", "line_number": 8, "usage_type": "name" }, { "api_name": "openerp.osv.fields.char", "line_number": 13, "usage_type": "call" }, { "api_name": "opener...
30024438036
# -*- coding: utf-8 -*- """ Created on Fri Jun 2 13:30:55 2023 @author: jksls """ import pandas as pd import numpy as np import matplotlib.pyplot as mpl mpl.style.use('fivethirtyeight') df = pd.read_csv('dataset/new_cars_prices.csv') df.dropna(axis=0 , how='any' , inplace = True) p_old = np.array(df['Old Price...
failking16/Analytics
Car-market/car_pricing.py
car_pricing.py
py
1,593
python
en
code
1
github-code
18
[ { "api_name": "matplotlib.pyplot.style.use", "line_number": 12, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.style", "line_number": 12, "usage_type": "attribute" }, { "api_name": "matplotlib.pyplot", "line_number": 12, "usage_type": "name" }, { "api_na...
2590820049
#!/usr/bin/env python3s import time import datetime from plyer import notification first_Time = True if __name__ == '__main__': while(True): if first_Time: print('\007') notification.notify( title = 'Hello Dear, have a nice day!', message = 'Break a...
wloszynski/mini-break-reminder
break_reminder.py
break_reminder.py
py
1,253
python
en
code
0
github-code
18
[ { "api_name": "plyer.notification.notify", "line_number": 13, "usage_type": "call" }, { "api_name": "plyer.notification", "line_number": 13, "usage_type": "name" }, { "api_name": "datetime.datetime.now", "line_number": 15, "usage_type": "call" }, { "api_name": "da...
72149357481
from pathlib import Path import torch from torch import nn from PIL import Image from torchvision import transforms import argparse from csv import writer from tqdm import tqdm def create_pretrain_model(): """ Create a pretrained model for ELO image classification. Base on the squeezenet architecture. :re...
lerouxl/ELO-images-classification
predicte.py
predicte.py
py
4,264
python
en
code
0
github-code
18
[ { "api_name": "torch.hub.load", "line_number": 17, "usage_type": "call" }, { "api_name": "torch.hub", "line_number": 17, "usage_type": "attribute" }, { "api_name": "torch.nn.Conv2d", "line_number": 18, "usage_type": "call" }, { "api_name": "torch.nn", "line_nu...
342130616
import torch from PIL import Image import numpy as np import matplotlib.pyplot as plt import torchvision from torch.nn.functional import conv2d import cv2 import os from pathlib import Path PATH = r"C:\Users\daniel\Desktop\Filtri\gatto.jpg" def load_image(infilename): """This function loads an image into memory ...
ProjectoOfficial/AI_Python
IMAGING PROCESSING/FILTERS/FILTERS.py
FILTERS.py
py
5,512
python
en
code
7
github-code
18
[ { "api_name": "PIL.Image.open", "line_number": 18, "usage_type": "call" }, { "api_name": "PIL.Image", "line_number": 18, "usage_type": "name" }, { "api_name": "torchvision.transforms.Grayscale", "line_number": 20, "usage_type": "call" }, { "api_name": "torchvision...
40855241524
from kafka import KafkaConsumer import json import dash from dash.dependencies import Output, Input from dash import dcc from dash import html import plotly import plotly.graph_objs as go ## SPEED VISUALISATION # topic names hrv_topic = 'hrv_with_level_bpm_s' speed_topic = 'gps_for_vis_s' # set topic to read from to...
rainscent9/biathlon_live_data_processing
kafka_visualisation_speed.py
kafka_visualisation_speed.py
py
2,301
python
en
code
0
github-code
18
[ { "api_name": "kafka.KafkaConsumer", "line_number": 25, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 34, "usage_type": "call" }, { "api_name": "dash.Dash", "line_number": 42, "usage_type": "call" }, { "api_name": "dash.html.Div", "line_nu...
3428235875
import sqlite3 class Data: def __init__(self, name): self.conn = sqlite3.connect('name.db') self.cursor = self.conn.cursor() self.cursor.execute('''CREATE TABLE IF NOT EXISTS tab_1 (id INTEGER PRIMARY KEY AUTOINCREMENT, col_1 INTEGER)''') def process_arguments(self, *args): if ...
alinka001/hm
task_db.py
task_db.py
py
1,788
python
ru
code
0
github-code
18
[ { "api_name": "sqlite3.connect", "line_number": 5, "usage_type": "call" } ]
7158281263
from ..data_utils import cal_knn from ..data_utils import sparse_voxel import numpy as np class KnnQuery(object): def __init__(self, points, knn_module, set_k, GPU_id=None): knn_module = getattr(cal_knn, knn_module) # importlib.import_module('.'.join(['cal_knn', self.knn_module])) self.knn_search...
shinke-li/Campus3D
dataset/sampling/qurey.py
qurey.py
py
3,151
python
en
code
38
github-code
18
[ { "api_name": "data_utils.cal_knn", "line_number": 8, "usage_type": "argument" }, { "api_name": "numpy.expand_dims", "line_number": 14, "usage_type": "call" }, { "api_name": "data_utils.sparse_voxel.SparseVoxel", "line_number": 20, "usage_type": "call" }, { "api_n...
71991087080
import PyPDF2 import re pdfFile = "sdge_bill.pdf" pdfRead = PyPDF2.PdfFileReader(pdfFile) page = pdfRead.getPage(2) pageContent = page.extractText() # print(pageContent[0:1000]) for i in range(0, pdfRead.getNumPages()): if "Electric" in pdfRead.getPage(i).extractText()[:1000]: print("works") break else: print...
christianbarrera/Data-Analytics
Python Files/pdf_parser.py
pdf_parser.py
py
827
python
en
code
0
github-code
18
[ { "api_name": "PyPDF2.PdfFileReader", "line_number": 5, "usage_type": "call" }, { "api_name": "re.findall", "line_number": 22, "usage_type": "call" }, { "api_name": "re.findall", "line_number": 23, "usage_type": "call" } ]
25684817150
import matplotlib.pyplot as plt from scipy.stats import zscore from loadData import * import random def createNoise(array, noise): noisyarray = [] for index in array: noisyarray.append(index + random.uniform(-noise, noise)) return noisyarray # Sex plt.hist(X[:,0:1], bins=np.arange(0,3)-0.5, edg...
lizator/02450Project
Statistics.py
Statistics.py
py
2,741
python
en
code
0
github-code
18
[ { "api_name": "random.uniform", "line_number": 11, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.hist", "line_number": 16, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 16, "usage_type": "name" }, { "api_name": "matplotlib.py...
732503414
import numpy as np import matplotlib.pyplot as plt from scipy import ndimage,signal from operator import itemgetter import cv2 #Computes the C matrix - [[Eex,Eexy],[Eexy],[Eey]] #Takes in the gradient matrices ex (x gradient squared), ey (y gradient squared), exey (product of x and y gradients), # location to ...
ashrith1516/ImageVideoProcessing
Corner_Detection/corner_detection.py
corner_detection.py
py
4,106
python
en
code
0
github-code
18
[ { "api_name": "operator.itemgetter", "line_number": 29, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.gray", "line_number": 71, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 71, "usage_type": "name" }, { "api_name": "matplotl...
74479324520
import logging.config import asyncio import asyncio.subprocess import datetime import logging from collections import OrderedDict, defaultdict from typing import Any, Awaitable, Dict, List, Optional, Union # noqa from urllib.parse import urlparse from aiohttp import web import yacron.version from yacron.config import ...
gjcarneiro/yacron
yacron/cron.py
cron.py
py
17,908
python
en
code
426
github-code
18
[ { "api_name": "logging.getLogger", "line_number": 23, "usage_type": "call" }, { "api_name": "datetime.timedelta", "line_number": 24, "usage_type": "call" }, { "api_name": "typing.Optional", "line_number": 45, "usage_type": "name" }, { "api_name": "datetime.tzinfo"...
32305493571
import threading from datetime import timedelta from django.utils import timezone from django.core.management.base import BaseCommand, CommandError from django.db.utils import ProgrammingError from buckets.utils import BucketFileManagement, delete_table_for_model_class from buckets.models import Archive from...
25280841/iharbor
apps/buckets/management/commands/clearbucket.py
clearbucket.py
py
9,002
python
en
code
null
github-code
18
[ { "api_name": "django.core.management.base.BaseCommand", "line_number": 13, "usage_type": "name" }, { "api_name": "threading.Semaphore", "line_number": 17, "usage_type": "call" }, { "api_name": "django.core.management.base.CommandError", "line_number": 56, "usage_type": "...
3704805629
# -*- coding: utf-8 -*- from django import forms from django import template from models import ContactPage from djangular.forms import NgFormValidationMixin, NgModelFormMixin from property.models import Property,Borough,Neighborhood register = template.Library() #from uni_form.helper import FormHelper class Contac...
dmitryro/zrealtycorp.com
pages/forms.py
forms.py
py
2,630
python
en
code
1
github-code
18
[ { "api_name": "django.template.Library", "line_number": 8, "usage_type": "call" }, { "api_name": "django.template", "line_number": 8, "usage_type": "name" }, { "api_name": "djangular.forms.NgFormValidationMixin", "line_number": 17, "usage_type": "name" }, { "api_n...
71387079081
from django.db import models from django.utils.translation import ugettext as _ from Apps.Asset.Property_asset.models import * from Apps.Hrm.Master_General.models import Department from Apps.Asset.Master.models import * from Apps.Asset.Request.models import * from datetime import datetime from tinymce.models import HTM...
cornelioroyer/ERPProject
Apps/Asset/Pengadaan/models.py
models.py
py
3,791
python
en
code
3
github-code
18
[ { "api_name": "django.db.models.Model", "line_number": 10, "usage_type": "attribute" }, { "api_name": "django.db.models", "line_number": 10, "usage_type": "name" }, { "api_name": "django.db.models.CharField", "line_number": 11, "usage_type": "call" }, { "api_name"...
27348824153
import urllib.request import json class JamendoUtil: def __init__(self, client_id, base_url): if not client_id: raise Exception("You must provide a client_id setting") self.client_id = client_id self.base_url = base_url def _createUrlParameters(self, **...
douze12/jamendo_sync
jamendoApi/__init__.py
__init__.py
py
2,976
python
en
code
0
github-code
18
[ { "api_name": "urllib.request.parse.urlencode", "line_number": 22, "usage_type": "call" }, { "api_name": "urllib.request.parse", "line_number": 22, "usage_type": "attribute" }, { "api_name": "urllib.request", "line_number": 22, "usage_type": "name" }, { "api_name"...
23549244978
from __future__ import annotations from abc import ABC, abstractmethod from typing import List, Tuple from argparse import ArgumentParser from rstcloth import RstCloth import os from io import StringIO from ..east import EnrichedAST from ..astline import ASTLine class Component(ABC): """ Abstract class repre...
owrel/clindoc
clindoc/builder/component.py
component.py
py
6,851
python
en
code
2
github-code
18
[ { "api_name": "abc.ABC", "line_number": 13, "usage_type": "name" }, { "api_name": "io.StringIO", "line_number": 27, "usage_type": "call" }, { "api_name": "rstcloth.RstCloth", "line_number": 28, "usage_type": "call" }, { "api_name": "argparse.ArgumentParser", "...
29934920143
# This script is used to compare precip extreme difference bewteen vrcesm and CORDEX-SEA # Several steps are inplemented: # S1-read precip data from vrcesm and CORDEX-SEA # S2-calculate extreme # S3-plot contour # # Written by Harry Li # import libraries import pathmagic # noqa: F401 from modules.stats.mod_stats_extr...
harryliyi/ClimateScience
SEA_vrcesm/extremes/vrcesm_prect_extreme_stats_mainSEA_vs_cordex_references.py
vrcesm_prect_extreme_stats_mainSEA_vs_cordex_references.py
py
33,044
python
en
code
0
github-code
18
[ { "api_name": "matplotlib.pyplot.switch_backend", "line_number": 26, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 26, "usage_type": "name" }, { "api_name": "numpy.array", "line_number": 65, "usage_type": "call" }, { "api_name": "numpy....
71074654761
from abc import abstractmethod from django.conf import settings from django.db import models from django.urls import reverse from mdeditor.fields import MDTextField from uuslug import slugify # Create your models here. class BaseModel(models.Model): id = models.AutoField(primary_key=True) created_time = mode...
libaibuaidufu/django-blog
blog/models.py
models.py
py
7,300
python
en
code
0
github-code
18
[ { "api_name": "django.db.models.Model", "line_number": 11, "usage_type": "attribute" }, { "api_name": "django.db.models", "line_number": 11, "usage_type": "name" }, { "api_name": "django.db.models.AutoField", "line_number": 12, "usage_type": "call" }, { "api_name"...
9170923119
import functools import threading import time import sys def calc_time(func): @functools.wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) finish = time.time() print(f'elapsed time: {finish-start}') return result return wra...
wararaki718/scrapbox
sample_py/sample_mulit/thread.py
thread.py
py
869
python
en
code
1
github-code
18
[ { "api_name": "time.time", "line_number": 10, "usage_type": "call" }, { "api_name": "time.time", "line_number": 12, "usage_type": "call" }, { "api_name": "functools.wraps", "line_number": 8, "usage_type": "call" }, { "api_name": "threading.Thread", "line_numbe...
19929209761
from PIL import Image, ImageOps import numpy as np from matplotlib import pylab as plt for k in range(10000): img = np.array(Image.open('./image/depth_logarithmic_gray/' + str(k+3000) + '.jpg').convert('I'), 'float32') def calc_double(n): return n + 40 img2 = list(map(calc_double, img)) for ...
yumon6/DeMoN_carla
datasets/change_pix.py
change_pix.py
py
534
python
en
code
0
github-code
18
[ { "api_name": "numpy.array", "line_number": 7, "usage_type": "call" }, { "api_name": "PIL.Image.open", "line_number": 7, "usage_type": "call" }, { "api_name": "PIL.Image", "line_number": 7, "usage_type": "name" }, { "api_name": "numpy.save", "line_number": 18,...
3998263014
import argparse import sys # We need to import pywrap_tensorflow prior to the toco wrapper. # pylint: disable=invalid-import-order,g-bad-import-order from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import from tensorflow.python import _pywrap_toco_api from absl import app FLAGS = None def ...
tensorflow/tensorflow
tensorflow/lite/toco/python/toco_from_protos.py
toco_from_protos.py
py
2,306
python
en
code
178,918
github-code
18
[ { "api_name": "tensorflow.python._pywrap_toco_api.TocoConvert", "line_number": 31, "usage_type": "call" }, { "api_name": "tensorflow.python._pywrap_toco_api", "line_number": 31, "usage_type": "name" }, { "api_name": "sys.exit", "line_number": 39, "usage_type": "call" },...
21725274249
from pymongo import MongoClient HOST = "localhost" PORT = 2222 client = MongoClient(HOST, PORT) db = client['BouncerEventsDB'] evtColl = db['eventCollection'] def insertItem(item): ts = item.pop('time_stamp') found = evtColl.find_one(item) if not found: item['time_stamp'] = ts found = ite...
arctiveio/lyceum
mDB.py
mDB.py
py
1,499
python
en
code
0
github-code
18
[ { "api_name": "pymongo.MongoClient", "line_number": 6, "usage_type": "call" } ]
15783914291
import sys import math import torch from torch import nn from torch.nn import functional as F from torch.nn.parameter import Parameter from torchvision import models #from efficientnet_pytorch import EfficientNet import sys sys.path.append("../input/pretrained-models/pretrained-models/pretrained-models.pytorch-master/...
okotaku/kaggle_Severstal
severstal-src/cls_models.py
cls_models.py
py
10,843
python
en
code
16
github-code
18
[ { "api_name": "sys.path.append", "line_number": 11, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 11, "usage_type": "attribute" }, { "api_name": "torch.nn.Module", "line_number": 18, "usage_type": "attribute" }, { "api_name": "torch.nn", "li...
7739307885
from django.conf.urls import url, include, patterns from freight.views import * from freight.models import * app_name = 'freight' urlpatterns = [ # ex: /freight/ url(r'^$', index, name='index'), # ex: /freight/5 url(r'^(?P<carrier_id>[0-9]+)/$', carrier_detail, name='carrier_detail'), # ex: /freigh...
EttelasK/Freight_RateMatrix
freight/urls.py
urls.py
py
561
python
en
code
1
github-code
18
[ { "api_name": "django.conf.urls.url", "line_number": 8, "usage_type": "call" }, { "api_name": "django.conf.urls.url", "line_number": 10, "usage_type": "call" }, { "api_name": "django.conf.urls.url", "line_number": 12, "usage_type": "call" }, { "api_name": "django....
74728987561
import torch import settingsModule from settingsModule import Settings, np, random from population import Population # Parent of all algorithms class Algorithm: iteration_num: int settings: Settings def __init__(self, settings: Settings): self.settings = settings self.iteration_num = 0 def iterate(self) -> ...
ItaiSchwed/mnist_optimisation_project
algorithms.py
algorithms.py
py
9,585
python
en
code
0
github-code
18
[ { "api_name": "settingsModule.Settings", "line_number": 10, "usage_type": "name" }, { "api_name": "settingsModule.Settings", "line_number": 12, "usage_type": "name" }, { "api_name": "settingsModule.np.array", "line_number": 31, "usage_type": "attribute" }, { "api_...
70297009641
''' UPI: HCAM630 NAME: HEATH LOGAN CAMPBELL ''' import sys from functools import cmp_to_key from datetime import datetime def distX(a, b): return a[0] - b[0] def distY(a, b): return a[1] - b[1] def dist(a, b): return distX(a, b) * distX(a, b) + distY(a, b) * distY(a, b) ''' takes a min point ''' def min(a...
HeathLoganCampbell/UoA-CS-320
AssignmentTwo/v1.py
v1.py
py
2,791
python
en
code
1
github-code
18
[ { "api_name": "sys.maxsize", "line_number": 46, "usage_type": "attribute" }, { "api_name": "sys.stdin.readline", "line_number": 104, "usage_type": "call" }, { "api_name": "sys.stdin", "line_number": 104, "usage_type": "attribute" }, { "api_name": "datetime.datetim...
14112622762
import json import sys sys.path.append('../src') import uuid import unittest import yaml import requests import os from pprint import pprint as pp import aws_lambda_logging import logging logger = logging.getLogger() loglevel = "INFO" logging.basicConfig(level=logging.ERROR) Branch = "Prod" Host = os.environ.get('P...
SungardAS/aws-services-porper
test/test_api.py
test_api.py
py
4,422
python
en
code
0
github-code
18
[ { "api_name": "sys.path.append", "line_number": 3, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 3, "usage_type": "attribute" }, { "api_name": "logging.getLogger", "line_number": 14, "usage_type": "call" }, { "api_name": "logging.basicConfig", ...
36927002343
# -*- coding: UTF-8 -*- from dnslib import * import gevent from gevent.server import DatagramServer from gevent import socket from random import randint from time import sleep always_respond_ip = '1.2.3.4' class DNSServer(DatagramServer): def handle_dns_request(self, data, address): req = DNSRecord.pa...
zphw/dns-cache-poisoning-demo
upstream_dns/dns.py
dns.py
py
883
python
en
code
9
github-code
18
[ { "api_name": "gevent.server.DatagramServer", "line_number": 12, "usage_type": "name" }, { "api_name": "time.sleep", "line_number": 25, "usage_type": "call" } ]
9658410380
import pygame class print_screen(): # kwadrat 50 pix , 10x14 def main(tab_main,WIDTH,HEIGHT,screen,BORDER_MAIN,square,tab_moving): w=0.625*WIDTH # 500 h=20*square start_x=WIDTH//20 start_y=HEIGHT//100 pygame.draw.rect(screen,(50, 168, 82),(WIDTH//20-BORDER_MAIN,HEIGH...
TommyFurgi/Pygame-projects
tetris/tertis_layout.py
tertis_layout.py
py
3,829
python
en
code
0
github-code
18
[ { "api_name": "pygame.draw.rect", "line_number": 9, "usage_type": "call" }, { "api_name": "pygame.draw", "line_number": 9, "usage_type": "attribute" }, { "api_name": "pygame.draw.rect", "line_number": 10, "usage_type": "call" }, { "api_name": "pygame.draw", "l...
31240137904
from PIL import Image ALPHA = {(255, 255, 0, 255), (255, 255, 0)} PALETTE_MAP = { (1, 1, 1, 255): 1, (62, 184, 73, 255): 2, (116, 208, 125, 255): 3, (89, 85, 224, 255): 4, (128, 118, 241, 255): 5, (185, 94, 81, 255): 6, (101, 219, 239, 255): 7, (219, 101, 89, 255): 8, (255, 137, ...
blihblah/jaassa
python/gfxconvert.py
gfxconvert.py
py
6,199
python
en
code
2
github-code
18
[ { "api_name": "PIL.Image.open", "line_number": 61, "usage_type": "call" }, { "api_name": "PIL.Image", "line_number": 61, "usage_type": "name" } ]
21571704934
#!/usr/bin/env python from __future__ import print_function import os import cgi from subprocess import Popen, PIPE, STDOUT # # Haskell SCRIPTDIR = 'haskell' # To run NON compiled code # SCRIPT = ['/usr/bin/runhaskell', 'Shrdlite.hs'] # Run compiled code with garbage collection off # compile with this command: ...
alexandersjosten/AI-shrdlite
cgi-bin/ajaxwrapper.py
ajaxwrapper.py
py
934
python
en
code
1
github-code
18
[ { "api_name": "os.path.isdir", "line_number": 30, "usage_type": "call" }, { "api_name": "os.path", "line_number": 30, "usage_type": "attribute" }, { "api_name": "os.path.join", "line_number": 31, "usage_type": "call" }, { "api_name": "os.path", "line_number": ...
43242344763
#!/usr/bin/python # -*- coding: UTF-8 -*- import StringIO import sqlite3 import urllib import pycurl import re import sys reload(sys) sys.setdefaultencoding('utf-8') # 读tocken文件获取用户Tocken token_file = open('tocken') try: my_token = token_file.read().strip() finally: token_file.close() # 组合 API URL pinurl = 'https://...
lesishu/pin_products
pin.py
pin.py
py
1,898
python
en
code
3
github-code
18
[ { "api_name": "sys.setdefaultencoding", "line_number": 10, "usage_type": "call" }, { "api_name": "StringIO.StringIO", "line_number": 26, "usage_type": "call" }, { "api_name": "pycurl.Curl", "line_number": 27, "usage_type": "call" }, { "api_name": "pycurl.URL", ...
29617247286
from PyQt5 import QtWidgets, uic, QtGui, QtCore from PyQt5.QtCore import QSettings from settingsWindow import Ui_SettingsWindow from userProfile import SETTINGS_DEFAULT, SETTINGS_CUSTOM, SHORTCUTS_DEFAULT, SHORTCUTS_CUSTOM def themeLoader(self): #function that settings current theme if self.theme == '': t...
karazhyn/dark-translate
python/module.py
module.py
py
8,911
python
en
code
1
github-code
18
[ { "api_name": "PyQt5.QtGui.QIcon", "line_number": 16, "usage_type": "call" }, { "api_name": "PyQt5.QtGui", "line_number": 16, "usage_type": "name" }, { "api_name": "PyQt5.QtGui.QPixmap", "line_number": 17, "usage_type": "call" }, { "api_name": "PyQt5.QtGui", "...
19349269799
import bracketology.brackets as bracketology import re import random from collections import defaultdict # Patch bracketology.brackets_dict.clear() bracketology.brackets_dict.update({ "2023": { "Finals": { "game1": { "team1": "south", "team2": "east", ...
iannightingale/cup-madness
src/bracket.py
bracket.py
py
2,468
python
en
code
0
github-code
18
[ { "api_name": "bracketology.brackets.brackets_dict.clear", "line_number": 7, "usage_type": "call" }, { "api_name": "bracketology.brackets.brackets_dict", "line_number": 7, "usage_type": "attribute" }, { "api_name": "bracketology.brackets", "line_number": 7, "usage_type": ...
21359840440
# insert insert this code into Default (Windows).sublime-keymap: # [ # { "keys": ["f5"], "command": "build_current_code" }, # ] import time import sublime import sublime_plugin import os from inspect import getmembers from pprint import pprint import re import shutil import uuid from datetime import datetime # { ...
bugayov/PrivateBuilder-sublimePlugin
PrivateBuilder.py
PrivateBuilder.py
py
10,020
python
en
code
0
github-code
18
[ { "api_name": "sublime_plugin.TextCommand", "line_number": 18, "usage_type": "attribute" }, { "api_name": "sublime.active_window", "line_number": 20, "usage_type": "call" }, { "api_name": "os.path.basename", "line_number": 37, "usage_type": "call" }, { "api_name":...
13717784470
import math, random import gym import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.autograd as autograd import torch.nn.functional as F import matplotlib.pyplot as plt #from common.layers import NoisyLinear from common.replay_buffer import ReplayBuffer from torch.utils.t...
PacktPublishing/Hands-On-Reinforcement-Learning-for-Games
Chapter10/Chapter_10/Chapter_10_QRDQN.py
Chapter_10_QRDQN.py
py
5,905
python
en
code
54
github-code
18
[ { "api_name": "gym.make", "line_number": 20, "usage_type": "call" }, { "api_name": "torch.utils.tensorboard.SummaryWriter", "line_number": 21, "usage_type": "call" }, { "api_name": "torch.nn.Module", "line_number": 23, "usage_type": "attribute" }, { "api_name": "t...
44813775680
"""Day 8""" from typing import Set from aoc.shared import read_file_lines from aoc.shared.input import read_file_lines segment_count_map = { 0: [], 1: [], 2: [1], 3: [7], 4: [4], 5: [2, 3, 5], 6: [0, 6, 9], 7: [8], } def part1() -> int: """Part 1.""" raw_notes = read_file_li...
dalemyers/Advent-of-Code
aoc/year_2021/day_08.py
day_08.py
py
5,991
python
en
code
0
github-code
18
[ { "api_name": "aoc.shared.input.read_file_lines", "line_number": 22, "usage_type": "call" }, { "api_name": "typing.Set", "line_number": 47, "usage_type": "name" }, { "api_name": "aoc.shared.input.read_file_lines", "line_number": 202, "usage_type": "call" } ]
43645731857
__version__ = '1.1.0' # Action log Mon Feb 13 11:37:29 2023 # Macro name: Syn/Ves Mesh Pairing with Measures 04-24-2023 19:28 # ********** BEGIN MACRO ********** # """ :name: Syn/Ves Mesh Pairing with Measures 04-24-2023 19:28 :execution: execute """ ### Import # Science Stack import numpy as np import pandas as p...
mpfi-dsp/Syn2Ves-User
workflows/meshPairing.py
meshPairing.py
py
11,262
python
en
code
1
github-code
18
[ { "api_name": "time.time", "line_number": 30, "usage_type": "call" }, { "api_name": "pandas.DataFrame", "line_number": 34, "usage_type": "attribute" }, { "api_name": "PyQt5.QtCore.pyqtSignal", "line_number": 34, "usage_type": "name" }, { "api_name": "pandas.DataFr...
8341413375
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators.python_operator import PythonOperator from helpers import SqlQueries from crawlers.angel_co import main as angel_co_scraper from crawlers.angel_co_parser import ma...
sparsh-ai/recohut
docs/12-capstones/other/us-job-vacancies/airflow/dags/angel_co_jobs_dag.py
angel_co_jobs_dag.py
py
1,368
python
en
code
91
github-code
18
[ { "api_name": "datetime.datetime", "line_number": 12, "usage_type": "call" }, { "api_name": "datetime.timedelta", "line_number": 15, "usage_type": "call" }, { "api_name": "airflow.DAG", "line_number": 18, "usage_type": "call" }, { "api_name": "airflow.operators.py...
11954699384
import logging import torch from nni.nas.pytorch.base_mutator import BaseMutator logger = logging.getLogger(__name__) class Mutator(BaseMutator): def __init__(self, model): super().__init__(model) self._cache = dict() def sample_search(self): """ Override to implement this...
niuxinzan/microsoft-nni
src/sdk/pynni/nni/nas/pytorch/mutator.py
mutator.py
py
5,014
python
en
code
0
github-code
18
[ { "api_name": "logging.getLogger", "line_number": 7, "usage_type": "call" }, { "api_name": "nni.nas.pytorch.base_mutator.BaseMutator", "line_number": 10, "usage_type": "name" }, { "api_name": "torch.cat", "line_number": 128, "usage_type": "call" } ]
21986201648
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QPushButton, QMessageBox from PyPDF2 import PdfFileWriter, PdfFileReader, PdfFileMerger, PageObject import os import platform import subprocess class Ui_CuadPy(object): def setupUi(self, CuadPy): CuadPy...
rbn13/CuadPy
main.py
main.py
py
11,976
python
es
code
0
github-code
18
[ { "api_name": "PyQt5.QtWidgets.QLabel", "line_number": 13, "usage_type": "call" }, { "api_name": "PyQt5.QtWidgets", "line_number": 13, "usage_type": "name" }, { "api_name": "PyQt5.QtCore.QRect", "line_number": 14, "usage_type": "call" }, { "api_name": "PyQt5.QtCor...
10146901021
import pandas as pd import matplotlib.pyplot as plt from DataReader import data from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA from targetEncoding import numD, cat #traemos las variables categoricas con los nuevos valores numericos numData = pd.DataFrame(numD) for i in cat: ...
wleopach/DS_Challenge
2dVisual.py
2dVisual.py
py
1,509
python
en
code
0
github-code
18
[ { "api_name": "pandas.DataFrame", "line_number": 9, "usage_type": "call" }, { "api_name": "targetEncoding.numD", "line_number": 9, "usage_type": "argument" }, { "api_name": "targetEncoding.cat", "line_number": 10, "usage_type": "name" }, { "api_name": "DataReader....