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
39279840802
from astropy.io import fits from astropy.convolution import convolve, Box1DKernel import scipy as sp import matplotlib import matplotlib.pyplot as plt import glob ''' O 436 B 582 A 745 F 766 G 596 K 759 M 306 ''' ''' O 476, 8773, 9818 B 96, 378, 462, 489, 492 A 17, 114, 120, 136 F 52, 158 G 25, 27, 30, 85 K 61, 65 ...
grd349/LearningLAMOST
Matt/RegressorRF/Figures/plot_class.py
plot_class.py
py
1,790
python
en
code
1
github-code
36
[ { "api_name": "glob.glob", "line_number": 36, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.subplots", "line_number": 38, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 38, "usage_type": "name" }, { "api_name": "scipy.sqrt", ...
34638872728
import requests from bs4 import BeautifulSoup """ https://www.youtube.com/watch?v=PzWIdcFY9YQ """ url = 'https://url.com/sitemap.xml' sitemapsoup = BeautifulSoup(requests.get(url).content, 'lxml') sitemapurls = sitemapsoup.find_all("loc") xml_urls = [sitemapurl.text for sitemapurl in sitemapurls] count = 0 cerr...
martamc-sp/PythonforSEO
lessons/4-urls-canonical.py
4-urls-canonical.py
py
824
python
en
code
0
github-code
36
[ { "api_name": "bs4.BeautifulSoup", "line_number": 5, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 5, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 12, "usage_type": "call" }, { "api_name": "requests.get", "li...
15560736212
#!/usr/bin/env python3 # This is a simple script that takes in an scurve file produced by # csvcolumn_to_scurve and produces a png graph of the scurve. import argparse import csv import matplotlib.pyplot as plt import numpy as np FIELDS = ['N/total', 'New/Old'] def get_data(input_file): global FIELDS for...
apple/swift
utils/dev-scripts/scurve_printer.py
scurve_printer.py
py
2,875
python
en
code
64,554
github-code
36
[ { "api_name": "csv.DictReader", "line_number": 18, "usage_type": "call" }, { "api_name": "argparse.ArgumentParser", "line_number": 23, "usage_type": "call" }, { "api_name": "argparse.FileType", "line_number": 24, "usage_type": "call" }, { "api_name": "numpy.array"...
16989917132
from logging import Logger from typing import List from pypika import Table # type: ignore from pypika import PostgreSQLQuery as Q from app.models.mart import engine_mart from app.models.askue import AccountPoint from app.models.mart import RegPointModel, RsPointModel, BalanceModel, BalanceRegModel from sqlalchemy.eng...
giveyourtears/electroComputationServer
app/jobs/balance/data_mart_layer.py
data_mart_layer.py
py
10,828
python
en
code
2
github-code
36
[ { "api_name": "logging.Logger", "line_number": 17, "usage_type": "name" }, { "api_name": "pypika.Table", "line_number": 23, "usage_type": "call" }, { "api_name": "pypika.PostgreSQLQuery.from_", "line_number": 24, "usage_type": "call" }, { "api_name": "pypika.Postg...
10331225638
import json import requests class SSEStatsOnTime(object): """ http://www.sse.com.cn/services/hkexsc/home/ """ def __init__(self): self.url = 'http://yunhq.sse.com.cn:32041//v1/hkp/status/amount_status' self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x6...
wilsonkrum/DataFactory
hkland_flow/stock_hu_ontime.py
stock_hu_ontime.py
py
1,796
python
en
code
0
github-code
36
[ { "api_name": "requests.get", "line_number": 17, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 19, "usage_type": "call" } ]
43156623065
#!/usr/bin/env python import unittest import mock from quadcopter_brain import QuadcopterBrain class TestQuadcopterBrain(unittest.TestCase): @mock.patch('landing_site.LandingSite') @mock.patch('quadcopter.Quadcopter') def setUp(self, quadcopter_mock, landing_site_mock): self.quadcopter_brain = ...
vpreston/mission_runner
quadcopter_brain/src/quadcopter_brain/test_quadcopter_brain.py
test_quadcopter_brain.py
py
6,854
python
en
code
0
github-code
36
[ { "api_name": "unittest.TestCase", "line_number": 10, "usage_type": "attribute" }, { "api_name": "quadcopter_brain.QuadcopterBrain", "line_number": 14, "usage_type": "call" }, { "api_name": "mock.patch", "line_number": 11, "usage_type": "call" }, { "api_name": "mo...
11525663576
import sqlite3 con = sqlite3.connect('example.db') cursor = con.cursor() persons = [("kiran", 21, "kiran@gmail.com"), ("anu", 29, "anu@yahoo.com"), ("sathis", 65, "satish@rediff.com")] cursor.executemany("INSERT INTO person values (?, ?, ?)", persons) print(cursor.rowcount) con.commit() con.clo...
avinash431/IntroductionToPython
databases/database-3.py
database-3.py
py
325
python
en
code
0
github-code
36
[ { "api_name": "sqlite3.connect", "line_number": 2, "usage_type": "call" } ]
28987537714
import threading as td import RPi.GPIO as GPIO import datetime as dt import time from helpers import TimeMeasure import elemental_api_class as liveapi class StreamAvailController: def __init__(self, gpi_trigger, event_id, elemental_ip, lock_interval = 3, in_cue = False): self.gpi_trigger = gpi_trigg...
Hristiyan-Andreev/gpi_0.7_hw_reworked
s_av_ctrl.py
s_av_ctrl.py
py
4,401
python
en
code
2
github-code
36
[ { "api_name": "elemental_api_class.Elemental_api", "line_number": 14, "usage_type": "call" }, { "api_name": "helpers.TimeMeasure", "line_number": 21, "usage_type": "call" }, { "api_name": "time.sleep", "line_number": 65, "usage_type": "call" }, { "api_name": "RPi....
73223886825
#!/usr/bin/env python3 import argparse import cv2 import pic import sys import time from PIL import * def clearscreen(n): print('\033[1A\033[K'*n, end='') def main(filename, resize, colors=None, webcam=False, invert=False, scale=(1, 1), nosleep=False): vc = cv2.VideoCapture(filename) tpf = 1.0/...
bahorn/emojipic
emojipic/ani.py
ani.py
py
1,143
python
en
code
1
github-code
36
[ { "api_name": "cv2.VideoCapture", "line_number": 16, "usage_type": "call" }, { "api_name": "cv2.CAP_PROP_FPS", "line_number": 17, "usage_type": "attribute" }, { "api_name": "pic.EmojiImage", "line_number": 19, "usage_type": "call" }, { "api_name": "time.time", ...
37635424970
# Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. # Write an algorithm to minimize the largest sum among these m subarrays. # Example 1: # Input: nums = [7,2,5,10,8], m = 2 # Output: 18 # Explanation: # There are four way...
sunnyyeti/Leetcode-solutions
410 Split Array Largest Sum.py
410 Split Array Largest Sum.py
py
1,656
python
en
code
0
github-code
36
[ { "api_name": "functools.cache", "line_number": 44, "usage_type": "name" } ]
40961271099
import argparse import os import shutil from subprocess import run from probar_entrega1 import probar import pandas as pd BASE_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__))) def bajar_repositorio(info_grupo): print("Cloning", info_grupo['grupo']) grupo_path = os.path.join(BASE_PATH, info_...
ucse-ia/ucse_ia
2018/corrector.py
corrector.py
py
1,647
python
es
code
5
github-code
36
[ { "api_name": "os.path.realpath", "line_number": 10, "usage_type": "call" }, { "api_name": "os.path", "line_number": 10, "usage_type": "attribute" }, { "api_name": "os.path.join", "line_number": 10, "usage_type": "call" }, { "api_name": "os.path.dirname", "lin...
26552867136
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/4/12 23:29 # @Author : DZQ # @File : main.py import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import QThread, pyqtSignal from PyQt5.QtWidgets import * import xlrd from threading import Thread import json from BaiduIndexSpider import B...
dzqann/BaiduIndex
main.py
main.py
py
9,586
python
en
code
9
github-code
36
[ { "api_name": "PyQt5.QtCore.QThread", "line_number": 20, "usage_type": "name" }, { "api_name": "PyQt5.QtCore.pyqtSignal", "line_number": 21, "usage_type": "call" }, { "api_name": "PyQt5.QtCore.pyqtSignal", "line_number": 22, "usage_type": "call" }, { "api_name": "...
8525512026
import tensorflow as tf import os import sys import data_generation import networks import scipy.io as sio import param import util import truncated_vgg from keras.backend.tensorflow_backend import set_session from keras.optimizers import Adam import scipy.misc def train(model_name, gpu_id): with tf.Session() as ...
TZebin/Deep-Learning-Camp-JEJU2018
Code/posewarp-cvpr2018/code/posewarp_train.py
posewarp_train.py
py
4,468
python
en
code
0
github-code
36
[ { "api_name": "tensorflow.Session", "line_number": 16, "usage_type": "call" }, { "api_name": "param.get_general_params", "line_number": 18, "usage_type": "call" }, { "api_name": "os.path.isdir", "line_number": 23, "usage_type": "call" }, { "api_name": "os.path", ...
26987164949
import datetime from django import forms from django.core.exceptions import ValidationError from .models import TimeLog, Subject, Tag class DateForm(forms.Form): def __init__(self, *args, **kwargs): self.min_date = kwargs.pop('min_date') self.max_date = kwargs.pop('max_date') # if user h...
mf210/WAYD
timing/forms.py
forms.py
py
5,996
python
en
code
3
github-code
36
[ { "api_name": "django.forms.Form", "line_number": 9, "usage_type": "attribute" }, { "api_name": "django.forms", "line_number": 9, "usage_type": "name" }, { "api_name": "django.forms.DateField", "line_number": 25, "usage_type": "call" }, { "api_name": "django.forms...
18844787736
import sys,time,unittest from selenium.webdriver.common.by import By from selenium import webdriver sys.path.append(".//") sys.path.append(sys.path[0].split("ATQ项目")[0] + 'ATQ项目\\02.方法模块') import Function_temp as F class ATQtest(unittest.TestCase): #driver全局变量 option =webdriver.FirefoxOptions() option.set...
cainiaosun/study
测试/UI自动化/测试工具__Selenium/selenium/Selenium/ATQ项目/01.脚本文件/登录.py
登录.py
py
5,365
python
zh
code
0
github-code
36
[ { "api_name": "sys.path.append", "line_number": 4, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 4, "usage_type": "attribute" }, { "api_name": "sys.path.append", "line_number": 5, "usage_type": "call" }, { "api_name": "sys.path", "line_numbe...
3745893127
"""empty message Revision ID: 9c5fa6db20f1 Revises: ar399258p714 Create Date: 2023-03-06 13:56:47.958406 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9c5fa6db20f1' down_revision = 'ar399258p714' branch_labels = None depends_on = None def upgrade(): op...
abnamro/repository-scanner
components/resc-backend/alembic/versions/9c5fa6db20f1_finding_column.py
9c5fa6db20f1_finding_column.py
py
1,202
python
en
code
137
github-code
36
[ { "api_name": "alembic.op.add_column", "line_number": 20, "usage_type": "call" }, { "api_name": "alembic.op", "line_number": 20, "usage_type": "name" }, { "api_name": "sqlalchemy.Column", "line_number": 20, "usage_type": "call" }, { "api_name": "sqlalchemy.Integer...
33911980837
#!/usr/bin/env python3 import queries import connection_handler from IPython import embed import mysql.connector import grammar_format from dotenv import load_dotenv from managers.word_manager import Word_Manager import re load_dotenv() class Phrase_Manager: def __init__(self, phrase="None", person="None", pe...
aburk3/Brain
managers/phrase_manager.py
phrase_manager.py
py
6,593
python
en
code
1
github-code
36
[ { "api_name": "dotenv.load_dotenv", "line_number": 14, "usage_type": "call" }, { "api_name": "managers.word_manager.Word_Manager", "line_number": 38, "usage_type": "call" }, { "api_name": "grammar_format.assign_part_of_speech", "line_number": 39, "usage_type": "call" },...
4889121541
from utils import parseDate, checkDateInTheFuture, checkDateFromNotTooBig, s3Query from http_response import okResponse, badRequestResponse from typing import Union import os import boto3 BucketName = os.environ.get('BUCKET_NAME') FileName = os.environ.get('PROV_FILE_NAME') s3 = boto3.client('s3') maxMonths = 5 de...
menalb/covid-data-app
api/bucketquery/coviddata/app_prov.py
app_prov.py
py
1,582
python
en
code
0
github-code
36
[ { "api_name": "os.environ.get", "line_number": 8, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 8, "usage_type": "attribute" }, { "api_name": "os.environ.get", "line_number": 9, "usage_type": "call" }, { "api_name": "os.environ", "line_num...
3674524668
#Importing pyplot submodule import matplotlib.pyplot as plt import numpy as np x = np.array(['Apples','Bananas','Lichi','Pineapple']) y = np.array([100,45,60,90]) #using bar() to represent data in bar graph plt.subplot(1,2,2) plt.bar(x,y, width = 0.5) plt.title('Vertical') plt.show() #for showing the...
manudeepsinha/daily_commit
2020/12/Python/23_matplotlib_bar.py
23_matplotlib_bar.py
py
524
python
en
code
0
github-code
36
[ { "api_name": "numpy.array", "line_number": 5, "usage_type": "call" }, { "api_name": "numpy.array", "line_number": 6, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.subplot", "line_number": 9, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", ...
16157216808
import pandas as pd from django.contrib.auth.decorators import login_required from django.contrib.sites.shortcuts import get_current_site from django.http import HttpResponse from django.urls import reverse from researcher_UI.models import Administration @login_required def download_links(request, study_obj, administ...
langcog/web-cdi
webcdi/researcher_UI/utils/download/download_links.py
download_links.py
py
1,991
python
en
code
7
github-code
36
[ { "api_name": "django.http.HttpResponse", "line_number": 13, "usage_type": "call" }, { "api_name": "researcher_UI.models.Administration.objects.filter", "line_number": 19, "usage_type": "call" }, { "api_name": "researcher_UI.models.Administration.objects", "line_number": 19, ...
3238104451
import numpy as np import pandas as pd #from sklearn.cluster import KMeans import matplotlib.pyplot as plt import xlwt import KMeans import Visualization plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签 plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号 points = [] center_points = [] K = 4 file="D:\\ex...
JiaoZixun/Recommend_By_Canopy-K-means
recommend——豆瓣/对比实验——K-means聚类.py
对比实验——K-means聚类.py
py
1,454
python
en
code
18
github-code
36
[ { "api_name": "matplotlib.pyplot.rcParams", "line_number": 10, "usage_type": "attribute" }, { "api_name": "matplotlib.pyplot", "line_number": 10, "usage_type": "name" }, { "api_name": "matplotlib.pyplot.rcParams", "line_number": 11, "usage_type": "attribute" }, { ...
30662323647
from datetime import datetime, timedelta from pytz import timezone from dateutil.relativedelta import relativedelta data_1 = datetime(2023, 10, 30, 17, 10, 59) print(data_1) data_str = "2023-10-30 17:18:59" data_str_formatter = "%Y-%m-%d %H:%M:%S" data_2 = datetime.strptime(data_str, data_str_formatter) print(data_...
juannaee/WorkSpace-Python-Intermediario
SEÇÃO 4/datetime/main1.py
main1.py
py
994
python
en
code
0
github-code
36
[ { "api_name": "datetime.datetime", "line_number": 5, "usage_type": "call" }, { "api_name": "datetime.datetime.strptime", "line_number": 12, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 12, "usage_type": "name" }, { "api_name": "datetim...
42669964568
import glob import cv2 import numpy as np from tqdm import tqdm class Calibration(object): def __init__(self, targetfilepath): # termination criteria self.criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 1e-5) # prepare object points, like (0,0...
Team-AllyHyeseongKim/vision-utils-calibrator-depth-map-deblur-odometry-
custom_lib/cail/calibrator.py
calibrator.py
py
3,920
python
ko
code
0
github-code
36
[ { "api_name": "cv2.TERM_CRITERIA_EPS", "line_number": 11, "usage_type": "attribute" }, { "api_name": "cv2.TERM_CRITERIA_MAX_ITER", "line_number": 12, "usage_type": "attribute" }, { "api_name": "numpy.zeros", "line_number": 15, "usage_type": "call" }, { "api_name":...
71578877863
# !/usr/bin/env python # -*- coding: utf-8 -*- import vtk def main(): cps = vtk.vtkConvexPointSet() points = vtk.vtkPoints() points.InsertNextPoint(0, 0, 0) points.InsertNextPoint(1, 0, 0) points.InsertNextPoint(1, 1, 0) points.InsertNextPoint(0, 1, 0) points.InsertNextPoint(0, 0, 1) ...
lorensen/VTKExamples
src/Python/GeometricObjects/ConvexPointSet.py
ConvexPointSet.py
py
2,484
python
en
code
319
github-code
36
[ { "api_name": "vtk.vtkConvexPointSet", "line_number": 8, "usage_type": "call" }, { "api_name": "vtk.vtkPoints", "line_number": 9, "usage_type": "call" }, { "api_name": "vtk.vtkUnstructuredGrid", "line_number": 27, "usage_type": "call" }, { "api_name": "vtk.vtkName...
25305879977
__author__ = 'diegopinheiro' from common.attribute import Attribute import math import numpy class AttributeConverter: @staticmethod def get_representation(attribute=Attribute(), category=None): number_representation = AttributeConverter.get_number_representation(attribute=attribute) categor...
diegompin/genetic_algorithm
common/attribute_converter.py
attribute_converter.py
py
1,144
python
en
code
1
github-code
36
[ { "api_name": "common.attribute.Attribute", "line_number": 11, "usage_type": "call" }, { "api_name": "math.pow", "line_number": 14, "usage_type": "call" }, { "api_name": "numpy.binary_repr", "line_number": 15, "usage_type": "call" }, { "api_name": "common.attribut...
36289714812
from kafka.admin import KafkaAdminClient, ConfigResource, ConfigResourceType TOPIC_NAME = "kafka.client.tutorial" BOOTSTRAP_SERVER_HOST = "kafka_tutorial:9092" # 카프카 클러스터 서버의 host와 port를 지정 admin_client = KafkaAdminClient( bootstrap_servers=BOOTSTRAP_SERVER_HOST ) print("== Get broker information") # return typ...
2h-kim/kafka-personal-study
simple-kafka-admin-client/kafka-admin-client.py
kafka-admin-client.py
py
1,069
python
en
code
0
github-code
36
[ { "api_name": "kafka.admin.KafkaAdminClient", "line_number": 7, "usage_type": "call" }, { "api_name": "kafka.admin.ConfigResource", "line_number": 16, "usage_type": "call" }, { "api_name": "kafka.admin.ConfigResourceType.BROKER", "line_number": 16, "usage_type": "attribut...
3835970469
import json import pandas as pd import numpy as np import filenames myjson = { "arm": { "malware": [], "benign": [] }, "mips": { "malware": [], "bening": [] } } df_arm_malware_forpoison = pd.read_csv(filenames.forpoison_arm_malware, header=None, index_col=False) myjso...
ZsZs88/Poisoning
filepicker.py
filepicker.py
py
1,111
python
en
code
0
github-code
36
[ { "api_name": "pandas.read_csv", "line_number": 19, "usage_type": "call" }, { "api_name": "filenames.forpoison_arm_malware", "line_number": 19, "usage_type": "attribute" }, { "api_name": "pandas.read_csv", "line_number": 22, "usage_type": "call" }, { "api_name": "...
34916305882
import numpy as np import matplotlib.pyplot as plt with open("../buildxcode/cte.txt") as f: data = f.read() data = data.split('\n') x = [float(i) for i in data] fig = plt.figure() ax1 = fig.add_subplot(111) ax1.set_title("CTE") ax1.set_ylabel('CTE') ax1.plot(x,...
suprnrdy/CarND-PID-Control-Project-master
src/plotCTE.py
plotCTE.py
py
341
python
en
code
0
github-code
36
[ { "api_name": "matplotlib.pyplot.figure", "line_number": 12, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 12, "usage_type": "name" }, { "api_name": "matplotlib.pyplot.show", "line_number": 19, "usage_type": "call" }, { "api_name": "mat...
25056282946
from django import forms from django.core.exceptions import ValidationError from manager.models import Accountancy from manager.wallet_operations import wallet_choice, wallet_data_parse, change_wallet_balance class AccountancyForm(forms.ModelForm): class Meta: model = Accountancy fields = () ...
AndriyKy/zlatnic
manager/forms.py
forms.py
py
1,544
python
en
code
1
github-code
36
[ { "api_name": "django.forms.ModelForm", "line_number": 8, "usage_type": "attribute" }, { "api_name": "django.forms", "line_number": 8, "usage_type": "name" }, { "api_name": "manager.models.Accountancy", "line_number": 11, "usage_type": "name" }, { "api_name": "dja...
13962486159
from django.db import IntegrityError from django.utils.timezone import make_aware from datetime import datetime import logging from .utils import get_extras class DatabaseHandler(logging.Handler): """ A log handler to store logs into the database. Currently, only log entries that belong to an event ar...
helfertool/helfertool
src/toollog/handlers.py
handlers.py
py
2,156
python
en
code
52
github-code
36
[ { "api_name": "logging.Handler", "line_number": 11, "usage_type": "attribute" }, { "api_name": "models.LogEntry", "line_number": 30, "usage_type": "name" }, { "api_name": "django.utils.timezone.make_aware", "line_number": 42, "usage_type": "call" }, { "api_name": ...
5216435364
from pydantic import BaseModel, EmailStr from datetime import datetime from typing import Optional class User(BaseModel): user_id : int username : str forenames: str surname : str email : EmailStr bio : Optional[str] display_name : Optional[str] created_at: datetime class UserRegistra...
willpennell/r-shows
user-management-service/app/schemas/user_schemas.py
user_schemas.py
py
802
python
en
code
0
github-code
36
[ { "api_name": "pydantic.BaseModel", "line_number": 5, "usage_type": "name" }, { "api_name": "pydantic.EmailStr", "line_number": 10, "usage_type": "name" }, { "api_name": "typing.Optional", "line_number": 11, "usage_type": "name" }, { "api_name": "typing.Optional",...
15991913621
#!/usr/bin/python from Constants import Constants as cnt from CoinDaemon import CoinDaemon from bitcoinrpc.authproxy import AuthServiceProxy class Wallet: """Provides a high-level abstraction of a coin wallet and simplifies the process of making JSON API RPC calls to the coin wallet daemon""" walletPa...
chriscassidy561/coinScript
Wallet.py
Wallet.py
py
2,828
python
en
code
0
github-code
36
[ { "api_name": "Constants.Constants.HOME_DIR", "line_number": 35, "usage_type": "attribute" }, { "api_name": "Constants.Constants", "line_number": 35, "usage_type": "name" }, { "api_name": "shutil.copy", "line_number": 37, "usage_type": "call" }, { "api_name": "Coi...
30952198138
import requests class Polyline: def __init__(self) -> None: self.users = dict() self.polylines = [] self.matches = [] def add(self, ID: int, name: str, ph_no: int, source: list, destination: list) -> None: polyline = Polyline.__get_polyline(source, destination) self.po...
Sivaram46/pool-ride
polyline.py
polyline.py
py
4,465
python
en
code
2
github-code
36
[ { "api_name": "requests.get", "line_number": 123, "usage_type": "call" } ]
34598487595
# IntesisHome Inegration with Domoticz # # Author: CV8R # """ <plugin key="BasePlug" name="IntesisBox WMP-1 Protocol" author="CV8R" version="0.0.9" > <description> <h2>IntesisBox WMP-1</h2><br/> <ul style="list-style-type:square"> <li>IntesisBox WMP-1 interface for air conditioners into IP based con...
luismalddonado/IntesishomewithDomoticz
plugin.py
plugin.py
py
18,692
python
en
code
3
github-code
36
[ { "api_name": "datetime.datetime.now", "line_number": 57, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 57, "usage_type": "attribute" }, { "api_name": "Domoticz.Log", "line_number": 64, "usage_type": "call" }, { "api_name": "Domoticz.He...
7774676634
from urllib.request import urlopen from bs4 import BeautifulSoup import ssl # Ignore SSL certificate errors ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE url = input('Enter URL: ') count2 = input('Enter count: ') position = input('Enter position: ') count2 = int(count2...
laurmvan/SI206-Fall2017
HW6/HW6_PartB.py
HW6_PartB.py
py
875
python
en
code
null
github-code
36
[ { "api_name": "ssl.create_default_context", "line_number": 6, "usage_type": "call" }, { "api_name": "ssl.CERT_NONE", "line_number": 8, "usage_type": "attribute" }, { "api_name": "urllib.request.urlopen", "line_number": 16, "usage_type": "call" }, { "api_name": "bs...
6751769066
# -*- coding: utf-8 -*- from PyQt5.QtWidgets import QWidget from PyQt5.QtGui import QDoubleValidator from PyQt5.QtCore import pyqtSignal, pyqtSlot from selfdefineformat.views.editcheckbox import Ui_Form class EditCheckBoxModule(QWidget, Ui_Form): edited = pyqtSignal() def __init__(self, element, parent=None...
zxcvbnmz0x/gmpsystem
selfdefineformat/modules/editcheckboxmodule.py
editcheckboxmodule.py
py
3,645
python
en
code
0
github-code
36
[ { "api_name": "PyQt5.QtWidgets.QWidget", "line_number": 9, "usage_type": "name" }, { "api_name": "selfdefineformat.views.editcheckbox.Ui_Form", "line_number": 9, "usage_type": "name" }, { "api_name": "PyQt5.QtCore.pyqtSignal", "line_number": 10, "usage_type": "call" }, ...
459210709
import requests import json import ntpath class Jira: """Common JIRA API methods. JIRA's REST APIs provide access to resources (data entities) via URI paths. To use a REST API, your application will make an HTTP request and parse the response. The JIRA REST API uses JSON as its communication format, and ...
mjlabe/python-atlassian-server-api
atlassian_server_api/jira.py
jira.py
py
6,655
python
en
code
0
github-code
36
[ { "api_name": "requests.post", "line_number": 77, "usage_type": "call" }, { "api_name": "json.dumps", "line_number": 77, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 107, "usage_type": "call" }, { "api_name": "ntpath.basename", "line_nu...
70537611943
import elasticsearch import json import luigi from elasticsearch.helpers import bulk from luigi.contrib import esindex from nfl import scraper class IngestData(luigi.Task): category = luigi.Parameter() year = luigi.Parameter() def output(self): target = luigi.LocalTarget("output/{0}/{1}.json".f...
jasonmotylinski/luigi-presentation
pipeline-py/luigi/luigipipeline/demo5.py
demo5.py
py
1,753
python
en
code
1
github-code
36
[ { "api_name": "luigi.Task", "line_number": 10, "usage_type": "attribute" }, { "api_name": "luigi.Parameter", "line_number": 12, "usage_type": "call" }, { "api_name": "luigi.Parameter", "line_number": 13, "usage_type": "call" }, { "api_name": "luigi.LocalTarget", ...
74189117224
#reverses the process of the spritesheetCreator script from PIL import Image import sys #sets all the variables we need to accurately crop the images imageAmount = 0 i = 1 width = 0 height = 0 maxWidth = 0 maxHeight = 0 counter = 0 row = 0 column = 0 #searches for the file saved by the spritesheet script...
IrrationalThinking/portfolio
Example/reversal.py
reversal.py
py
2,172
python
en
code
0
github-code
36
[ { "api_name": "sys.exit", "line_number": 20, "usage_type": "call" }, { "api_name": "PIL.Image.open", "line_number": 36, "usage_type": "call" }, { "api_name": "PIL.Image", "line_number": 36, "usage_type": "name" } ]
74088296424
""" Normally step 1 to align trimmed reads e.g. """ import os import sys from tqdm import trange from joblib import Parallel, delayed import re input_root = sys.argv[1] output_root = sys.argv[2] genome_dir = sys.argv[3] subdirs = [] for subdir, dirs, files in os.walk(input_root): for file in files: subdir...
ZhaoxiangSimonCai/BioInfoScripts
RNA_workflows/star_by_folders.py
star_by_folders.py
py
931
python
en
code
0
github-code
36
[ { "api_name": "sys.argv", "line_number": 11, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 12, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 13, "usage_type": "attribute" }, { "api_name": "os.walk", "line_number"...
16793418016
import pygame from battle import time, MOVE_DOWN_FREQ, BOARD_HEIGHT, BOARD_WIDTH, BLANK, POISON, SHAPES, BOX_SIZE, \ TEMPLATE_HEIGHT, TEMPLATE_WIDTH, MOVE_SIDE_WAYS_FREQ from utils import get_new_piece, get_blank_board, calculate_level_and_fall_frequency, is_valid_position from pygame.locals import * BOARD_OFFSET ...
dadisi/battle-tetro
battle/player.py
player.py
py
8,220
python
en
code
0
github-code
36
[ { "api_name": "battle.BOX_SIZE", "line_number": 7, "usage_type": "name" }, { "api_name": "battle.BOARD_WIDTH", "line_number": 7, "usage_type": "name" }, { "api_name": "battle.time.time", "line_number": 36, "usage_type": "call" }, { "api_name": "battle.time", "...
73692413545
import mock import testtools from stackalytics.dashboard import helpers class TestHelpers(testtools.TestCase): @mock.patch('time.time') def test_get_current_company(self, mock_time_time): current_timestamp = 1234567890 mock_time_time.return_value = current_timestamp user = { ...
Mirantis/stackalytics
stackalytics/tests/unit/test_helpers.py
test_helpers.py
py
2,389
python
en
code
12
github-code
36
[ { "api_name": "testtools.TestCase", "line_number": 7, "usage_type": "attribute" }, { "api_name": "stackalytics.dashboard.helpers.get_current_company", "line_number": 26, "usage_type": "call" }, { "api_name": "stackalytics.dashboard.helpers", "line_number": 26, "usage_type...
26744639927
import argparse import os import time import numpy as np import torch import torch.optim as optim import torch.nn as nn from torch.utils.data import DataLoader from data_loader import CSV_PNG_Dataset, CSV_PNG_Dataset_2D, PNG_PNG_Dataset from netArchitecture.VGG import VGGModel, VGGModel_2D from netArchitecture.ResNe...
yuanlinping/deep_colormap_extraction
train.py
train.py
py
10,586
python
en
code
7
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 19, "usage_type": "call" }, { "api_name": "logging.DEBUG", "line_number": 20, "usage_type": "attribute" }, { "api_name": "argparse.ArgumentParser", "line_number": 24, "usage_type": "call" }, { "api_name": "os.path....
74113768742
import click # import pickle # import cv2 from recognize import process, recognize, draw, show @click.command() @click.argument('image') @click.option('--encodings', '-e', default='encodings.pickle', help='path to db of BTS facial encodings.') @click.option('--detection', default='cnn', help='Which face detection mode...
cache-monet/bts_recognition
image.py
image.py
py
741
python
en
code
1
github-code
36
[ { "api_name": "recognize.process", "line_number": 14, "usage_type": "call" }, { "api_name": "recognize.recognize", "line_number": 15, "usage_type": "call" }, { "api_name": "recognize.draw", "line_number": 16, "usage_type": "call" }, { "api_name": "recognize.show",...
2259081804
import pyperclip as pc names = ["Apple", "Banana", "Cherry", "Dog", "Elephant"] present = [] absent = [] not_audio = [] asking = True number = 0 while asking: question = names[number] answer = input(question + ": ") if answer == "p": present.append(question) if answer == "a": absent.ap...
PythonGeek07/Attendance-_Bot
main.py
main.py
py
1,288
python
en
code
0
github-code
36
[ { "api_name": "pyperclip.copy", "line_number": 47, "usage_type": "call" } ]
73915818985
from .base import RegexVocabulary, left_pad, NoWildcardsVocabulary, NoRangeFillVocabulary, NoCheckVocabulary,\ ProcedureVocabulary, ModifierVocabulary import re from itertools import product _hcpcs_split_regex = re.compile('^([A-Z]*)([0-9]+)([A-Z]*)$') def hcpcs_split(code): match = _hcpcs_split_regex.match(co...
modusdatascience/clinvoc
clinvoc/hcpcs.py
hcpcs.py
py
2,356
python
en
code
8
github-code
36
[ { "api_name": "re.compile", "line_number": 6, "usage_type": "call" }, { "api_name": "base.RegexVocabulary", "line_number": 17, "usage_type": "name" }, { "api_name": "base.NoCheckVocabulary", "line_number": 17, "usage_type": "name" }, { "api_name": "base.ProcedureV...
10183845847
from utils import evaluation_utils, embedding_utils from semanticgraph import io from parsing import legacy_sp_models as sp_models from models import baselines import numpy as np from sacred import Experiment import json import torch from torch import nn from torch.autograd import Variable from tqdm import * import ast...
jack139/gp-gnn_test
train.py
train.py
py
9,172
python
en
code
0
github-code
36
[ { "api_name": "os.environ", "line_number": 17, "usage_type": "attribute" }, { "api_name": "torch.device", "line_number": 19, "usage_type": "call" }, { "api_name": "torch.cuda.is_available", "line_number": 19, "usage_type": "call" }, { "api_name": "torch.cuda", ...
6884335052
import time import torch torch.set_printoptions(precision=7) from addict import Dict as adict from torch.nn import functional as F from zerovl.core import DistHook, HookMode, WandbHook from zerovl.core.hooks.log import LogHook from zerovl.core.runners.builder import RUNNER from zerovl.core.runners.epoch_runner impor...
zerovl/ZeroVL
zerovl/tasks/clip/clip_bsgs_runner.py
clip_bsgs_runner.py
py
18,843
python
en
code
39
github-code
36
[ { "api_name": "torch.set_printoptions", "line_number": 3, "usage_type": "call" }, { "api_name": "torch.manual_seed", "line_number": 31, "usage_type": "call" }, { "api_name": "torch.cuda.manual_seed_all", "line_number": 32, "usage_type": "call" }, { "api_name": "to...
26628181853
import pickle from flask import Flask,request,app,jsonify,url_for,render_template import nltk, re, string from nltk.corpus import stopwords, twitter_samples from sklearn.linear_model import LogisticRegression import pickle from sklearn.feature_extraction.text import CountVectorizer from Utilities import process_tweet f...
Sourav9827/Sentiment-Analysis
app.py
app.py
py
1,224
python
en
code
1
github-code
36
[ { "api_name": "flask.app", "line_number": 11, "usage_type": "name" }, { "api_name": "flask.Flask", "line_number": 11, "usage_type": "call" }, { "api_name": "flask.app.config", "line_number": 13, "usage_type": "attribute" }, { "api_name": "flask.app", "line_num...
35383679834
#!/usr/bin/env python3 from sys import exit from collections import Counter import random from statistics import mean from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors import mastermind_utilities as Utilities # METADATA OF THIS TAL_SERVICE: args_list = [ ('max_num_attempts',int), ...
romeorizzi/TALight
example_problems/tutorial/mastermind/services/eval_driver.py
eval_driver.py
py
3,432
python
en
code
11
github-code
36
[ { "api_name": "multilanguage.Env", "line_number": 21, "usage_type": "call" }, { "api_name": "multilanguage.TALcolors", "line_number": 22, "usage_type": "call" }, { "api_name": "multilanguage.Lang", "line_number": 23, "usage_type": "call" }, { "api_name": "random.r...
18433559527
import pygame import random import time import turtle # Class thể hiện đối tượng Câu hỏi # Một đối tượng Question gồm có 2 fields: # - question: đề bài # - answer: đáp án class Question: def __init__(self, question, answer): self.question = question self.answer = answer # Class thể hiện t...
aitomatic/contrib
src/aito/util/finalproject.py
finalproject.py
py
7,485
python
vi
code
2
github-code
36
[ { "api_name": "time.time", "line_number": 22, "usage_type": "call" }, { "api_name": "time.time", "line_number": 26, "usage_type": "call" }, { "api_name": "pygame.mixer.init", "line_number": 33, "usage_type": "call" }, { "api_name": "pygame.mixer", "line_number...
11580214091
import os import time import random import sys import time import math from datetime import datetime from getpass import getpass from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from seleniu...
tomo-jp/pairsBot
pairs_automation.py
pairs_automation.py
py
2,928
python
en
code
0
github-code
36
[ { "api_name": "random.randint", "line_number": 30, "usage_type": "call" }, { "api_name": "time.sleep", "line_number": 41, "usage_type": "call" }, { "api_name": "random.randint", "line_number": 41, "usage_type": "call" }, { "api_name": "time.time", "line_number...
13988027867
import numpy as np from scipy.interpolate import interp1d from skfmm import travel_time, distance from scipy.signal import resample def resample2d( x, shape=[] ): if len(shape)==0: raise ValueError('shape should not be empty.') x1=resample(x,shape[0],axis=0) x2=resample(x1,shape[1],axis=1) ...
wsavran/sokrg
krg_utils.py
krg_utils.py
py
5,948
python
en
code
3
github-code
36
[ { "api_name": "scipy.signal.resample", "line_number": 9, "usage_type": "call" }, { "api_name": "scipy.signal.resample", "line_number": 10, "usage_type": "call" }, { "api_name": "scipy.interpolate.interp1d", "line_number": 22, "usage_type": "call" }, { "api_name": ...
5547555689
""" Tests for voting 13/01/2022. """ from sys import version from collections import namedtuple from brownie import interface, reverts from scripts.vote_2022_01_13 import start_vote from tx_tracing_helpers import * from utils.config import ( lido_dao_lido_repo, lido_dao_node_operators_registry_repo, ) lido_o...
lidofinance/scripts
archive/tests/xtest_2022_01_13.py
xtest_2022_01_13.py
py
5,965
python
en
code
14
github-code
36
[ { "api_name": "collections.namedtuple", "line_number": 43, "usage_type": "call" }, { "api_name": "brownie.interface.Repo", "line_number": 82, "usage_type": "call" }, { "api_name": "utils.config.lido_dao_lido_repo", "line_number": 82, "usage_type": "argument" }, { ...
19534802491
from functools import wraps from flask import request, abort, g from app.models import User def login_required(f): """ This decorator ensures that the current user is logged in before calling the actual view. """ @wraps(f) def decorated(*args, **kwargs): if request.method != 'OPTIONS': ...
Zokormazo/ngLlery-backend
app/decorators.py
decorators.py
py
1,456
python
en
code
0
github-code
36
[ { "api_name": "flask.request.method", "line_number": 11, "usage_type": "attribute" }, { "api_name": "flask.request", "line_number": 11, "usage_type": "name" }, { "api_name": "flask.request.headers.get", "line_number": 12, "usage_type": "call" }, { "api_name": "fla...
5726494392
from flask import Flask, jsonify, request import json import os app = Flask(__name__) # Load data from JSON file if it exists def load_data(): if os.path.exists('investment_funds.json'): with open('investment_funds.json') as file: return json.load(file) else: with open('investment_...
raqif/fund_management_system
app_json.py
app_json.py
py
3,352
python
en
code
0
github-code
36
[ { "api_name": "flask.Flask", "line_number": 5, "usage_type": "call" }, { "api_name": "os.path.exists", "line_number": 9, "usage_type": "call" }, { "api_name": "os.path", "line_number": 9, "usage_type": "attribute" }, { "api_name": "json.load", "line_number": 1...
32929404532
#!/usr/bin/env python # coding: utf-8 import csv from config import ADDRESSES_FILE from models import Birthday, get_this_week_list def parse_data_file(in_file=ADDRESSES_FILE): """ :return: [] of {} List of birthdays """ reader = csv.DictReader(open(in_file, "r")) for row in reader: ...
raceup/happy-birthday-bot
hbb/bot.py
bot.py
py
1,857
python
en
code
0
github-code
36
[ { "api_name": "config.ADDRESSES_FILE", "line_number": 10, "usage_type": "name" }, { "api_name": "csv.DictReader", "line_number": 16, "usage_type": "call" }, { "api_name": "models.get_this_week_list", "line_number": 28, "usage_type": "call" }, { "api_name": "models...
12896234781
""" Provides RESTful URLs for Route objects """ from flask import Blueprint, request from back_end.api import jsonify_decorator, token_decorator from back_end.db import routes from back_end.exceptions import InvalidContent ROUTES = Blueprint('route', __name__) @ROUTES.route('/<routeid>', methods=['GET']) @jsonify_d...
vedantchokshi/various-plans
back_end/api/routes.py
routes.py
py
1,842
python
en
code
1
github-code
36
[ { "api_name": "flask.Blueprint", "line_number": 10, "usage_type": "call" }, { "api_name": "back_end.db.routes.get_from_id", "line_number": 20, "usage_type": "call" }, { "api_name": "back_end.db.routes", "line_number": 20, "usage_type": "name" }, { "api_name": "bac...
3985469839
import os from skimage import io import copy import numpy as np import random from glob import glob import json from sklearn.preprocessing import MultiLabelBinarizer import torch import torch.utils.data as data from torchvision import transforms, datasets from src.datasets.root_paths import DATA_ROOTS CLASSES = ['Sea...
jbayrooti/divmaker
src/datasets/bigearthnet.py
bigearthnet.py
py
5,152
python
en
code
3
github-code
36
[ { "api_name": "torch.utils.data.Dataset", "line_number": 59, "usage_type": "attribute" }, { "api_name": "torch.utils.data", "line_number": 59, "usage_type": "name" }, { "api_name": "src.datasets.root_paths.DATA_ROOTS", "line_number": 67, "usage_type": "name" }, { ...
10045098498
import requests import json import datetime,time from kafka import KafkaProducer # Liste des cryptos à récupérer # Configuration du Kafka Producer producer = KafkaProducer(bootstrap_servers=['broker:29092'], value_serializer=lambda x: json.dumps(x).encode('utf-8')) crypto_list = ["bitcoin", "ethereum", "ripple"] st...
stdynv/ARCHIDISTR
CryptoProducer.py
CryptoProducer.py
py
983
python
en
code
0
github-code
36
[ { "api_name": "kafka.KafkaProducer", "line_number": 10, "usage_type": "call" }, { "api_name": "json.dumps", "line_number": 10, "usage_type": "call" }, { "api_name": "time.time", "line_number": 13, "usage_type": "call" }, { "api_name": "time.time", "line_number...
6795419791
from django.conf import settings from rest_framework import viewsets, exceptions from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework_jwt.authentication import JSONWebTokenAuthentication from utils.certific...
tomasgarzon/exo-services
service-exo-events/event/api/views/event.py
event.py
py
4,675
python
en
code
0
github-code
36
[ { "api_name": "rest_framework.viewsets.ModelViewSet", "line_number": 27, "usage_type": "attribute" }, { "api_name": "rest_framework.viewsets", "line_number": 27, "usage_type": "name" }, { "api_name": "models.Event", "line_number": 28, "usage_type": "name" }, { "ap...
37435918590
#!/usr/bin/env python # coding: utf-8 # In[5]: import numpy as np # In[1]: import plotly import matplotlib.pyplot as plt # In[3]: #Equations of motion: #y = vt + .5a(t**2) #x = vt #y = x + 0.5a(x**2)/(v**2) # In[6]: #Let intial velocity v = 10 m/s, acceleration a = -9.8 m/s^2, and initial height h = 100 ...
abbychriss/toy-projects
Projectile motion.py
Projectile motion.py
py
679
python
en
code
0
github-code
36
[ { "api_name": "numpy.linspace", "line_number": 38, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.figure", "line_number": 40, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 40, "usage_type": "name" }, { "api_name": "matplotlib....
39238016680
import cv2 import numpy as np def get_seg_size(images, threshold=23, pmapxy=None): seg_sizes = [] index = 0 for image in images: """ if index % 10 == 0: cv2.imshow("thres", thresh_image) cv2.waitKey(0) """ index += 1 if pmapxy is not None: ...
Alice-OSENSE/feature_err_analysis
feature_func.py
feature_func.py
py
989
python
en
code
0
github-code
36
[ { "api_name": "numpy.multiply", "line_number": 19, "usage_type": "call" }, { "api_name": "cv2.countNonZero", "line_number": 22, "usage_type": "call" }, { "api_name": "cv2.Canny", "line_number": 31, "usage_type": "call" }, { "api_name": "cv2.countNonZero", "lin...
34000667448
import json, random, csv, sys def check_input(): out_file = '' if (len(sys.argv) == 3) & (sys.argv[1] == '-i'): coded_file = sys.argv[2] out_file = None elif (len(sys.argv) == 5) & (sys.argv[1] == '-i') & (sys.argv[3] == '-o'): coded_file = sys.argv[2] out_fil...
namdar-nejad/COMP-598
A7/Code/src/analyze.py
analyze.py
py
1,690
python
en
code
0
github-code
36
[ { "api_name": "sys.argv", "line_number": 7, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 8, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 11, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number":...
69826161703
""" General Numerical Solver for the 1D Time-Dependent Schrodinger Equation. Authors: - Jake Vanderplas <vanderplas@astro.washington.edu> - Andre Xuereb (imaginary time propagation, normalized wavefunction For a theoretical description of the algorithm, please see http://jakevdp.github.com/blog/2012/09/05/quantum-pyt...
akapet00/schrodinger
src/scripts/quantum_tunneling.py
quantum_tunneling.py
py
11,191
python
en
code
4
github-code
36
[ { "api_name": "seaborn.set", "line_number": 19, "usage_type": "call" }, { "api_name": "numpy.asarray", "line_number": 52, "usage_type": "attribute" }, { "api_name": "numpy.pi", "line_number": 67, "usage_type": "attribute" }, { "api_name": "numpy.arange", "line...
38265076029
from collections import OrderedDict import fnmatch import re IMAGENET_DEFAULT_MEAN = (0.485, 0.456, 0.406) IMAGENET_DEFAULT_STD = (0.229, 0.224, 0.225) DEFAULT_CONFIGS = OrderedDict({ 'ckdn': { 'metric_opts': { 'type': 'CKDN', }, 'metric_mode': 'FR', }, 'lpips': { ...
Sskun04085/IQA_PyTorch
pyiqa/default_model_configs.py
default_model_configs.py
py
6,004
python
hi
code
0
github-code
36
[ { "api_name": "collections.OrderedDict", "line_number": 8, "usage_type": "call" }, { "api_name": "re.split", "line_number": 220, "usage_type": "call" }, { "api_name": "fnmatch.filter", "line_number": 236, "usage_type": "call" }, { "api_name": "fnmatch.filter", ...
16968956587
# -*- coding: utf-8 -*- from django.template.loader import render_to_string from django.contrib.admin.utils import quote def get_mptt_admin_node_template(instance): ''' Get MPTT admin node template name by model instance :param instance: instance of mptt model :return: template name ''' return...
infolabs/django-edw
backend/edw/admin/mptt/utils.py
utils.py
py
1,309
python
en
code
6
github-code
36
[ { "api_name": "django.contrib.admin.utils.quote", "line_number": 27, "usage_type": "call" }, { "api_name": "django.template.loader.render_to_string", "line_number": 35, "usage_type": "call" }, { "api_name": "django.contrib.admin.utils.quote", "line_number": 38, "usage_typ...
10346160454
import pandas as pd from pulp import * import itertools df = pd.read_excel('beers.xlsx') costs = df.\ assign(Warehouse_to_Bar = lambda x: x.Warehouse_to_Bar.astype(str)).\ set_index('Warehouse_to_Bar').\ to_dict() warehouses = ['A','B'] bars = [str(x) for x in range(1,6)] supply_ = [1000,400...
Takfes/notes-operations-research
src/A.misc/03.pulp-transportation/pulp-transportation.py
pulp-transportation.py
py
1,493
python
en
code
0
github-code
36
[ { "api_name": "pandas.read_excel", "line_number": 5, "usage_type": "call" }, { "api_name": "itertools.product", "line_number": 21, "usage_type": "call" } ]
30731206475
####################################################################### # Necessaria a instalacao do biopython (pip install biopython) from Bio import pairwise2 from Bio.pairwise2 import format_alignment from Bio.Seq import Seq def alinhamento(seqt, numseq): nome1 = "guilherme" nome2 = "costa" nome3 = "ol...
GuilhermeC0sta/Alinhamento-Multiplo-de-DNA
CodWithGUI/alinhamento_func.py
alinhamento_func.py
py
3,205
python
en
code
0
github-code
36
[ { "api_name": "Bio.pairwise2.align.globalms", "line_number": 62, "usage_type": "call" }, { "api_name": "Bio.pairwise2.align", "line_number": 62, "usage_type": "attribute" }, { "api_name": "Bio.pairwise2", "line_number": 62, "usage_type": "name" }, { "api_name": "B...
2956310970
import socket import struct import subprocess import logging from datetime import datetime # Configuração do cliente MULTICAST_IP = '224.0.0.1' MULTICAST_PORT = 5004 CHUNK_SIZE = 1472 # Tamanho do pacote incluindo 4 bytes para o contador CLIENT_INTERFACE_IP = '0.0.0.0' # Use o IP de interface apropriado se necessári...
gpdolzan/R2LAST
cliente.py
cliente.py
py
4,325
python
pt
code
0
github-code
36
[ { "api_name": "datetime.datetime.now", "line_number": 15, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 15, "usage_type": "name" }, { "api_name": "logging.basicConfig", "line_number": 16, "usage_type": "call" }, { "api_name": "logging.D...
29394077350
import cv2 import numpy as np import glob from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph.opengl as gl import numpy as np from time import sleep dis_test_label = np.load("D:/PythonFile/NestProject/Nest_Model/pos_process/test_data/dis_test_data_complex_exp_shuffle_3.npy") dis_test_predict = np.load('D:...
yangyongjx/LoRaNet
pos_process/reprojection_img.py
reprojection_img.py
py
2,149
python
en
code
0
github-code
36
[ { "api_name": "numpy.load", "line_number": 9, "usage_type": "call" }, { "api_name": "numpy.load", "line_number": 10, "usage_type": "call" }, { "api_name": "numpy.load", "line_number": 12, "usage_type": "call" }, { "api_name": "numpy.load", "line_number": 13, ...
73819276585
from transformers import BertForTokenClassification, BertJapaneseTokenizer, get_linear_schedule_with_warmup from flask import Flask, render_template, request import argparse import json from predict import predict import torch import sys from pathlib import Path base_dir = Path(__file__).resolve().parents[1] sys.path.a...
ujiuji1259/NER
BERT/api.py
api.py
py
1,783
python
en
code
0
github-code
36
[ { "api_name": "pathlib.Path", "line_number": 9, "usage_type": "call" }, { "api_name": "sys.path.append", "line_number": 10, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 10, "usage_type": "attribute" }, { "api_name": "torch.cuda.is_available", ...
29101674414
# Debugging script to see how much GPS signal bounced around import csv import math import numpy as np from matplotlib import pyplot as plt ''' # distance between points dx_between_pts = [] prev_lat, prev_long = 0, 0 with open('2_2_23_gps.csv', mode ='r') as f: csv_f = csv.reader(f) for i, line in enumerate(csv_f...
bainro/jackal_melodic
plotGPS.py
plotGPS.py
py
2,117
python
en
code
0
github-code
36
[ { "api_name": "gpxpy.parse", "line_number": 45, "usage_type": "call" }, { "api_name": "math.isnan", "line_number": 58, "usage_type": "call" }, { "api_name": "numpy.sort", "line_number": 66, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.plot", "line_...
30630423030
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 16 19:35:10 2020 @author: isaacparker """ #Load libraries import matplotlib.pyplot as plt import numpy as np import seaborn as sns import pandas as pd from scipy.stats import lognorm, gaussian_kde # Specify font used in plots font = 'Adobe Myungjo...
PV-Lab/Data-Driven-PV
Figure_1.py
Figure_1.py
py
2,792
python
en
code
4
github-code
36
[ { "api_name": "matplotlib.style.use", "line_number": 21, "usage_type": "call" }, { "api_name": "matplotlib.style", "line_number": 21, "usage_type": "attribute" }, { "api_name": "matplotlib.rcParams", "line_number": 22, "usage_type": "attribute" }, { "api_name": "m...
2856409659
from matplotlib import pyplot as plt # 题目:某月气温变化表 # 知识点总结: # 1.x,y的输入 # 2.绘制 plt.plot() # 3.设置图片大小 plt.figure() # 4,保存到本地 plt.savefig() # 5.描述信息 xlabel() ylable() title() # 6.调整x,y的间距 xticks(),yticks() # 7.线条的样式 linestyle= # 8.标记出特殊的点 # 9.添加水印 # 设置图片大小 plt.figure(figsize=(16, 8), dpi=80) # 左闭右开 ...
srguf/DataAnalysis
matplotlib/折线图plot/单线/折线图.py
折线图.py
py
1,705
python
zh
code
0
github-code
36
[ { "api_name": "matplotlib.pyplot.figure", "line_number": 17, "usage_type": "call" }, { "api_name": "matplotlib.pyplot", "line_number": 17, "usage_type": "name" }, { "api_name": "matplotlib.pyplot.plot", "line_number": 24, "usage_type": "call" }, { "api_name": "mat...
22530303098
import numpy as np import pytest from gym.spaces import Box, Discrete from gym.wrappers import AtariPreprocessing, StepAPICompatibility from tests.testing_env import GenericTestEnv, old_step_fn class AleTesting: """A testing implementation for the ALE object in atari games.""" grayscale_obs_space = Box(low=...
openai/gym
tests/wrappers/test_atari_preprocessing.py
test_atari_preprocessing.py
py
4,102
python
en
code
33,110
github-code
36
[ { "api_name": "gym.spaces.Box", "line_number": 12, "usage_type": "call" }, { "api_name": "numpy.uint8", "line_number": 12, "usage_type": "attribute" }, { "api_name": "gym.spaces.Box", "line_number": 13, "usage_type": "call" }, { "api_name": "numpy.uint8", "lin...
33997460968
from fbchat import * from fbchat.models import * from Credentials import * import json import requests import re import os import time from threading import Thread import socket def finalVerification(url): if re.search("homework-help", url): return True return False def question_id(url): try: ...
namdao2000/MessengerBot
MessengerBot.py
MessengerBot.py
py
5,534
python
en
code
0
github-code
36
[ { "api_name": "re.search", "line_number": 14, "usage_type": "call" }, { "api_name": "requests.head", "line_number": 35, "usage_type": "call" }, { "api_name": "os.walk", "line_number": 48, "usage_type": "call" }, { "api_name": "time.time", "line_number": 76, ...
5275367948
import os import json import psycopg2 import psycopg2.extras from sentence_transformers import SentenceTransformer from sklearn.metrics.pairwise import cosine_similarity model = SentenceTransformer('distilbert-base-nli-mean-tokens') alpha = 0.9 #Function that will take a list of goals and goal ids and output the sim...
kcirtapfromspace/cloudfoundry_circleci
src/bert/cleaned_bert_similarity.py
cleaned_bert_similarity.py
py
1,797
python
en
code
1
github-code
36
[ { "api_name": "sentence_transformers.SentenceTransformer", "line_number": 8, "usage_type": "call" }, { "api_name": "sklearn.metrics.pairwise.cosine_similarity", "line_number": 16, "usage_type": "call" }, { "api_name": "psycopg2.extras", "line_number": 37, "usage_type": "a...
4778253189
import os import tempfile import pytest import warnings import numpy as np import onnxruntime as ort import torch from torch import nn as nn from typing import Optional, Union, Tuple, List import transformer_engine.pytorch as te from transformer_engine.common import recipe import transformer_engine_extensions as tex fr...
NVIDIA/TransformerEngine
tests/pytorch/test_onnx_export.py
test_onnx_export.py
py
55,538
python
en
code
1,056
github-code
36
[ { "api_name": "os.getenv", "line_number": 24, "usage_type": "call" }, { "api_name": "os.environ.get", "line_number": 31, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 31, "usage_type": "attribute" }, { "api_name": "os.path.join", "line_num...
36663492998
import news_parser as Util import datetime import time import DBHandler from tensorflow.keras.models import load_model import predict CompanyList=[] Headless = True # False : 창띄움, True : 창없음 MakeCompanyList = False # 회사 리스트 갱신 host = '데이터베이스 주소' ID= '계정명' PW='비밀번호' DB_name='DB이름' def GetNewsInfo(driver): headline...
woqls22/StockNews
BackEnd/PythonScripts/main.py
main.py
py
4,929
python
en
code
3
github-code
36
[ { "api_name": "news_parser.GetNews", "line_number": 17, "usage_type": "call" }, { "api_name": "news_parser.GetCompanyFromNews", "line_number": 18, "usage_type": "call" }, { "api_name": "news_parser.get_prices", "line_number": 24, "usage_type": "call" }, { "api_nam...
7507981867
import os, sys, random from datetime import datetime platforms = { "darwin": "MacOS", "win32": "Windows32", "win64": "Windows64", "linux": "Linux", } def run_tool(): while True: now = datetime.now() current_time = now.strftime("%H:%M:%S") command = input(f"[{current_time}] ...
Vincent2212/CommandLine
main.py
main.py
py
3,462
python
en
code
0
github-code
36
[ { "api_name": "datetime.datetime.now", "line_number": 13, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 13, "usage_type": "name" }, { "api_name": "sys.platform", "line_number": 17, "usage_type": "attribute" }, { "api_name": "os.system",...
8114541825
""" Defines a function wrapper that can be used to group calls to a 'listable' function into batches. """ import sys import traceback import asyncio from fsc.export import export from . import wrap_to_coroutine @export class BatchSubmitter: """ Function wrapper that collects calls to a function of one para...
FrescolinoGroup/pyasynctools
fsc/async_tools/_batch_submit.py
_batch_submit.py
py
4,827
python
en
code
0
github-code
36
[ { "api_name": "asyncio.get_event_loop", "line_number": 54, "usage_type": "call" }, { "api_name": "asyncio.Queue", "line_number": 67, "usage_type": "call" }, { "api_name": "asyncio.Task", "line_number": 80, "usage_type": "call" }, { "api_name": "sys.exit", "lin...
7667794703
#Usage: python3 kptable-appendix-11b.py [-h] [--help] import datetime import pathlib import pandas as pd import xlsxwriter from lukeghg.crf.crfxmlconstants import ch4co2eq, n2oco2eq, ctoco2 from lukeghg.crf.crfxmlfunctions import ConvertFloat,ConvertSign, ConvertToCO2, SumTwoValues, SumBiomassLs from lukeghg.crf.crfxml...
jariperttunen/lukeghg
lukeghg/lukeghg/nir/kptableappendix11b.py
kptableappendix11b.py
py
24,795
python
en
code
0
github-code
36
[ { "api_name": "lukeghg.crf.crfxmlfunctions.ConvertToCO2", "line_number": 71, "usage_type": "call" }, { "api_name": "lukeghg.crf.crfxmlconstants.ch4co2eq", "line_number": 71, "usage_type": "argument" }, { "api_name": "lukeghg.crf.crfxmlfunctions.SumBiomassLs", "line_number": 8...
31180051801
from dataclasses import dataclass from datetime import datetime from sqlalchemy_serializer import SerializerMixin from app import db @dataclass class Result(db.Model, SerializerMixin): __tablename__ = 'results' name: str last_build: int last_result: str last_exception: str traceback: str u...
TomerCohen95/JenkinsViewer
models.py
models.py
py
740
python
en
code
0
github-code
36
[ { "api_name": "app.db.Model", "line_number": 8, "usage_type": "attribute" }, { "api_name": "app.db", "line_number": 8, "usage_type": "name" }, { "api_name": "sqlalchemy_serializer.SerializerMixin", "line_number": 8, "usage_type": "name" }, { "api_name": "datetime....
2986802119
# https://towardsdatascience.com/a-detailed-guide-to-pytorchs-nn-transformer-module-c80afbc9ffb1 import math from datetime import datetime from os import path import torch import torch.nn as nn from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm from src.data_management.datasets.better_crnn_datas...
felix-20/gravitational_oceans
src/ai_nets/transformer.py
transformer.py
py
14,567
python
en
code
1
github-code
36
[ { "api_name": "torch.nn.Module", "line_number": 16, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 16, "usage_type": "name" }, { "api_name": "torch.nn.Dropout", "line_number": 21, "usage_type": "call" }, { "api_name": "torch.nn", "line_n...
2039679921
#!/usr/bin/env python3 import requests, json, dewiki, sys class ArgvError(Exception): def __init__(self): Exception.__init__(self, "Put in only '1' Value") class Search: ep = 'https://en.wikipedia.org/w/api.php' session = requests.Session() #endpoint text = '' def __init__(self, keywo...
youngmoneee/django_piscine
day03/ex02/request_wikipedia.py
request_wikipedia.py
py
1,638
python
en
code
0
github-code
36
[ { "api_name": "requests.Session", "line_number": 11, "usage_type": "call" }, { "api_name": "dewiki.from_string", "line_number": 35, "usage_type": "call" }, { "api_name": "dewiki.from_string", "line_number": 36, "usage_type": "call" }, { "api_name": "sys.argv", ...
18903389392
from uuid import uuid4 from logging import getLogger from uchicagoldrtoolsuite import log_aware from uchicagoldrtoolsuite.core.lib.convenience import log_init_attempt, \ log_init_success from .abc.transformer import Transformer from ..structures.archive import Archive from ..structures.stage import Stage __author...
uchicago-library/uchicagoldr-toolsuite
uchicagoldrtoolsuite/bit_level/lib/transformers/archivetostagetransformer.py
archivetostagetransformer.py
py
4,571
python
en
code
0
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 19, "usage_type": "call" }, { "api_name": "abc.transformer.Transformer", "line_number": 22, "usage_type": "name" }, { "api_name": "uchicagoldrtoolsuite.core.lib.convenience.log_init_attempt", "line_number": 37, "usage_type...
9084026058
import requests import json import re import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.common.exceptions import NoSuchElementException # Create a new Firefox session capa...
Axelflg/get_info_JSON
Find_info.py
Find_info.py
py
7,050
python
en
code
0
github-code
36
[ { "api_name": "selenium.webdriver.common.desired_capabilities.DesiredCapabilities.FIREFOX.copy", "line_number": 11, "usage_type": "call" }, { "api_name": "selenium.webdriver.common.desired_capabilities.DesiredCapabilities.FIREFOX", "line_number": 11, "usage_type": "attribute" }, { ...
74039762662
from rest_framework.decorators import api_view, permission_classes from rest_framework.response import Response from rest_framework import status from rest_framework import serializers from .models import * from .permissions import ValidApiKey import random #Supporting Functions def random_string(range_max,string=No...
ChrisBriant/nonogram_backend
api/views.py
views.py
py
5,695
python
en
code
0
github-code
36
[ { "api_name": "random.choice", "line_number": 17, "usage_type": "call" }, { "api_name": "rest_framework.serializers.ModelSerializer", "line_number": 65, "usage_type": "attribute" }, { "api_name": "rest_framework.serializers", "line_number": 65, "usage_type": "name" }, ...
19633985319
from pydub import AudioSegment from pydub.silence import split_on_silence import os import multiprocessing def split_audio(filename, audio_folder='audio_folder', output_folder='segments'): # Check if output folder exists and if not, create it if not os.path.isdir(output_folder): os.mkdir(output_folder)...
harshbhatia66/BallsDeepLearning
DataPipeline/segment_audio.py
segment_audio.py
py
1,714
python
en
code
0
github-code
36
[ { "api_name": "os.path.isdir", "line_number": 8, "usage_type": "call" }, { "api_name": "os.path", "line_number": 8, "usage_type": "attribute" }, { "api_name": "os.mkdir", "line_number": 9, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 11...
11642826592
from django.shortcuts import render from django.views.generic import CreateView, UpdateView, ListView from .models import Empresa from .forms import EmpresaForm from notafiscal.models import NotaFiscal def empresa_list(request): template_name ='empresa_list.html' objects = Empresa.objects.all() context ={...
vvalcristina/notafiscal
nfe/empresa/views.py
views.py
py
1,063
python
en
code
2
github-code
36
[ { "api_name": "models.Empresa.objects.all", "line_number": 10, "usage_type": "call" }, { "api_name": "models.Empresa.objects", "line_number": 10, "usage_type": "attribute" }, { "api_name": "models.Empresa", "line_number": 10, "usage_type": "name" }, { "api_name": ...
74144129703
#!/usr/bin/env python # -*- coding: utf-8 -*- # ======================================= # Author : NareN # git : https://github.com/DEVELByte # ======================================= import logging import os import re import argparse from develbyte import create_app logger = logging.getLogger("default") def pur...
im-naren/flask-starter-kit
runserver.py
runserver.py
py
1,027
python
en
code
0
github-code
36
[ { "api_name": "logging.getLogger", "line_number": 14, "usage_type": "call" }, { "api_name": "os.listdir", "line_number": 18, "usage_type": "call" }, { "api_name": "re.search", "line_number": 19, "usage_type": "call" }, { "api_name": "os.remove", "line_number":...
31292738689
import os import configparser def num_cpus(): try: return len(os.sched_getaffinity(0)) except AttributeError: return os.cpu_count() def max_workers(): return (num_cpus() * 2) + 1 # Read configuration file config = configparser.ConfigParser() config.read('config.ini') # Set bind variable ...
SaltisRS/ChatEndpoint-osrs
gunicorn_config.py
gunicorn_config.py
py
467
python
en
code
0
github-code
36
[ { "api_name": "os.sched_getaffinity", "line_number": 6, "usage_type": "call" }, { "api_name": "os.cpu_count", "line_number": 8, "usage_type": "call" }, { "api_name": "configparser.ConfigParser", "line_number": 14, "usage_type": "call" } ]
10978100631
from gensim import corpora, models, similarities import logging from Preprocess.py import MyCorpus processed_dir = 'Users/mlinegar/Data/LDA/BoW' _num_topics = 10 dictionary = corpora.Dictionary.load(processed_dir + "firsttry.dict") corpus = corpora.MmCorpus(processed_dir + "firsttry.mm") tfidf = models.TfidfModel(co...
mlinegar/RedditScraping
Analysis/Tranformations.py
Tranformations.py
py
435
python
en
code
0
github-code
36
[ { "api_name": "gensim.corpora.Dictionary.load", "line_number": 8, "usage_type": "call" }, { "api_name": "gensim.corpora.Dictionary", "line_number": 8, "usage_type": "attribute" }, { "api_name": "gensim.corpora", "line_number": 8, "usage_type": "name" }, { "api_nam...
2744613256
from django import forms from events.models import Event from datetime import datetime from django.contrib.admin import widgets class EventInputForm(forms.ModelForm): class Meta: model = Event fields = ['organization', 'name', 'start_time','end_time', 'description', 'mask_profile', 'contact_name', ...
DigitalEmpowermentATX/DECAwebsite
digital_inclusion/events/forms.py
forms.py
py
1,532
python
en
code
0
github-code
36
[ { "api_name": "django.forms.ModelForm", "line_number": 6, "usage_type": "attribute" }, { "api_name": "django.forms", "line_number": 6, "usage_type": "name" }, { "api_name": "events.models.Event", "line_number": 8, "usage_type": "name" }, { "api_name": "django.form...
28713706413
# ----encoding='utf-8'----- # Chentian's code paradise import smtplib import email # 负责构造文本 from email.mime.text import MIMEText # 负责构造图片 from email.mime.image import MIMEImage # 负责将多个对象集合起来 from email.mime.multipart import MIMEMultipart from email.header import Header mail_host="smtp.163.com" mail_sender="chentstud...
codefreshstudent/day8
测试文件夹/测试发邮件.py
测试发邮件.py
py
1,338
python
en
code
0
github-code
36
[ { "api_name": "email.mime.multipart.MIMEMultipart", "line_number": 18, "usage_type": "call" }, { "api_name": "email.header.Header", "line_number": 24, "usage_type": "call" }, { "api_name": "email.mime.multipart.MIMEMultipart", "line_number": 28, "usage_type": "call" }, ...
31888132367
# -*- coding: utf-8 -*- import argparse import os import schedule import logging import logging.config import sys import time from redtrics.core.runner import Runner logging.config.fileConfig(os.path.join(os.path.dirname(__file__), '..', 'etc', 'logging.ini')) logger = logging.getLogger(__name__) def main(): pa...
tuananh-nguyen/redtrics
redtrics/cli/app.py
app.py
py
994
python
en
code
0
github-code
36
[ { "api_name": "logging.config.fileConfig", "line_number": 12, "usage_type": "call" }, { "api_name": "logging.config", "line_number": 12, "usage_type": "attribute" }, { "api_name": "os.path.join", "line_number": 12, "usage_type": "call" }, { "api_name": "os.path", ...
35377030158
from clean_doc import clean_doc from gensim.models.doc2vec import LabeledSentence from gensim.models import Doc2Vec import gensim.models.doc2vec import gensim import multiprocessing cores = multiprocessing.cpu_count() assert gensim.models.doc2vec.FAST_VERSION > -1, "this will be painfully slow otherwise" class Lab...
wrat/Semantic-Relationship-Between-News
Doc2vec_model/doc2vec.py
doc2vec.py
py
1,124
python
en
code
0
github-code
36
[ { "api_name": "multiprocessing.cpu_count", "line_number": 8, "usage_type": "call" }, { "api_name": "gensim.models", "line_number": 9, "usage_type": "attribute" }, { "api_name": "gensim.models.doc2vec.LabeledSentence", "line_number": 18, "usage_type": "call" }, { "...
919257196
import requests from bs4 import BeautifulSoup import re from domains import CONTENT_AREA from emoji import emojize from urllib.parse import urlparse # ChatGPT d2ee59b7-b368-4a5f-b3af-2e33b7f33b4a example_url = [ "https://backlinko.com/actionable-seo-tips", "https://www.semrush.com/blog/seo-tips/", "https:/...
syahidmid/seoanalysis
scrapers/scrape.py
scrape.py
py
6,496
python
en
code
0
github-code
36
[ { "api_name": "requests.get", "line_number": 23, "usage_type": "call" }, { "api_name": "re.compile", "line_number": 43, "usage_type": "call" }, { "api_name": "re.IGNORECASE", "line_number": 49, "usage_type": "attribute" }, { "api_name": "domains.CONTENT_AREA", ...
40372645232
import datetime from django.utils import timezone from django.test import TestCase from django.urls import reverse from .models import Question def create_question(question_text, days): """Create a question with the given `question_text` and published the given numer of `days` offset to now (negative for qu...
gpuma/phuyu
polls/tests.py
tests.py
py
4,413
python
en
code
1
github-code
36
[ { "api_name": "django.utils.timezone.now", "line_number": 13, "usage_type": "call" }, { "api_name": "django.utils.timezone", "line_number": 13, "usage_type": "name" }, { "api_name": "datetime.timedelta", "line_number": 13, "usage_type": "call" }, { "api_name": "mo...