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
72471929789
# Imports import discord, os, pymongo, math, time, random, asyncio from colorama import Fore as C from settings import * from discord.ext import commands # Connect to MongoDB mongoClient = pymongo.MongoClient(os.environ.get('BOT_DB')) db = mongoClient.get_database("refuge").get_collection("server-data") db2 = mongoCli...
imvast/RefugeSRC
cogs/_Config.py
_Config.py
py
936
python
en
code
7
github-code
6
[ { "api_name": "pymongo.MongoClient", "line_number": 8, "usage_type": "call" }, { "api_name": "os.environ.get", "line_number": 8, "usage_type": "call" }, { "api_name": "os.environ", "line_number": 8, "usage_type": "attribute" }, { "api_name": "discord.ext.commands....
39722854852
import pygame from config import * class BaseField: def __init__(self, img_path: str): self._img_path = img_path def get_img_path(self): return self._img_path def draw_field(self, screen: pygame.Surface, pos_x: int, pos_y: int, is_centered: bool = False, ...
dominik24c/ai-tractor
app/base_field.py
base_field.py
py
809
python
en
code
0
github-code
6
[ { "api_name": "pygame.Surface", "line_number": 13, "usage_type": "attribute" }, { "api_name": "pygame.image.load", "line_number": 16, "usage_type": "call" }, { "api_name": "pygame.image", "line_number": 16, "usage_type": "attribute" }, { "api_name": "pygame.transf...
13230831123
# -*- coding: utf-8 -*- """ Class :class:`~.LW_model` provides common methods for ML proccess such as model evaluation and feature/model selecting Created on Wed Dec 11 18:39:56 2019 @author: Rogerluo """ import pandas as pd import matplotlib.pyplot as plt import numpy as np import os from functools import wrap...
rogerlwlw/lwmlearn-rogerluo
lwmlearn/lwmodel/lw_model_proxy.py
lw_model_proxy.py
py
60,881
python
en
code
1
github-code
6
[ { "api_name": "lwmlearn.lwlogging.init_log", "line_number": 45, "usage_type": "call" }, { "api_name": "lwmlearn.lwmodel.auto_list.get_default_models", "line_number": 133, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 142, "usage_type": "call" }, ...
6636877120
""" Instead of trying to construct a vector, we use Gaussians to create gradients that push our ships towards good stuff and away from bad stuff. This bot uses five gaussians: 1) Dock unowned planet (Gu) 2) Dock friendly planet (Gf) 3) Enemy planet (Ge) 4) Enemy Ship (Ges) 5) Friendly ship (Gfs) W...
rdubwiley09/halite_2
Non-ML/vector_field_v2/reinforcement_bot/bot.py
bot.py
py
8,747
python
en
code
0
github-code
6
[ { "api_name": "hlt.Game", "line_number": 48, "usage_type": "call" }, { "api_name": "logging.info", "line_number": 50, "usage_type": "call" }, { "api_name": "logging.info", "line_number": 68, "usage_type": "call" }, { "api_name": "logging.info", "line_number": ...
21555331913
import numpy as np import matplotlib.pyplot as plt import pandas as pd import dataset as data import utils X, y, tX, ty = data.get_data() X = data.normalize(X) tX = data.normalize(tX) X = X[:15000] tX = tX[:1000] y = y[:15000] ty = ty[:1000] #region init w and b k = 1e-2 w1 = np.random.uniform(-10, 10, (X.shape[1...
petnica-rac-seminari/stunning-calculator-2021
server/ucenje.py
ucenje.py
py
2,272
python
en
code
5
github-code
6
[ { "api_name": "dataset.get_data", "line_number": 8, "usage_type": "call" }, { "api_name": "dataset.normalize", "line_number": 10, "usage_type": "call" }, { "api_name": "dataset.normalize", "line_number": 11, "usage_type": "call" }, { "api_name": "numpy.random.unif...
649937797
import numbers import json import numpy as np from . import _z5py from .attribute_manager import AttributeManager from .shape_utils import normalize_slices, rectify_shape, get_default_chunks AVAILABLE_COMPRESSORS = _z5py.get_available_codecs() # TODO lz4 compression is currently not compatible with zarr # COMPRESSOR...
constantinpape/z5
src/python/module/z5py/dataset.py
dataset.py
py
20,679
python
en
code
99
github-code
6
[ { "api_name": "numpy.dtype", "line_number": 25, "usage_type": "call" }, { "api_name": "numpy.dtype", "line_number": 26, "usage_type": "call" }, { "api_name": "numpy.dtype", "line_number": 27, "usage_type": "call" }, { "api_name": "numpy.dtype", "line_number": ...
7903759446
# 백준 7562번 문제 - 나이트의 이동 from collections import deque import sys input = sys.stdin.readline dx = [1,1,-1,-1,2,2,-2,-2] dy = [2,-2,2,-2,1,-1,1,-1] t = int(input()) def bfs(cur_x, cur_y): queue = deque() queue.append((cur_x, cur_y)) while queue: x, y = queue.popleft() if x == move_x and y == m...
wnstjd9701/CodingTest
백준/category/너비우선탐색_BFS/나이트의이동.py
나이트의이동.py
py
826
python
en
code
0
github-code
6
[ { "api_name": "sys.stdin", "line_number": 4, "usage_type": "attribute" }, { "api_name": "collections.deque", "line_number": 9, "usage_type": "call" } ]
43078221034
import logging from threading import RLock from typing import Any, Callable, Dict, List, Optional, Union, Iterable import duckdb import pyarrow as pa from duckdb import DuckDBPyConnection from fugue import ArrowDataFrame, NativeExecutionEngine from fugue.collections.partition import ( EMPTY_PARTITION_SPEC, Par...
ofili/Wrangle-and-Analyze-Data
venv/Lib/site-packages/fugue_duckdb/execution_engine.py
execution_engine.py
py
17,048
python
en
code
0
github-code
6
[ { "api_name": "fugue.execution.execution_engine.SQLEngine", "line_number": 39, "usage_type": "name" }, { "api_name": "fugue.execution.execution_engine.ExecutionEngine", "line_number": 45, "usage_type": "name" }, { "api_name": "typing.Dict", "line_number": 47, "usage_type"...
33152016132
from django.contrib import admin from rest_framework import routers from django.urls import path from vet.views import ListPersona, ListClientesFamilia, ListRelacionPersonasClientes, ListVacunas, \ ListPacientesMascotas, ListPesos, DetailPacientesMascotas, DetailVacunas, DetailPesos router = routers.DefaultRouter(...
SILVIAHERNANDEZM03/veterinaria
vet/urls.py
urls.py
py
855
python
es
code
0
github-code
6
[ { "api_name": "rest_framework.routers.DefaultRouter", "line_number": 7, "usage_type": "call" }, { "api_name": "rest_framework.routers", "line_number": 7, "usage_type": "name" }, { "api_name": "django.urls.path", "line_number": 10, "usage_type": "call" }, { "api_na...
34555348707
from strength_calculation.post_processing import two_calculations import xlwt book = xlwt.Workbook() # создание листа с результатами первого расчета sheet1 = book.add_sheet('Sheet 1') sheet1.write(0, 0, 'i') sheet1.write(0, 1, 'Радиус, мм') sheet1.write(0, 2, 'sigma_r, МПа') sheet1.write(0, 3, 'sigma_t, МПа...
las-palmas1/turbine_calculation
strength_calculation/excel_table.py
excel_table.py
py
3,539
python
en
code
0
github-code
6
[ { "api_name": "xlwt.Workbook", "line_number": 4, "usage_type": "call" }, { "api_name": "strength_calculation.post_processing.two_calculations.part_number", "line_number": 36, "usage_type": "attribute" }, { "api_name": "strength_calculation.post_processing.two_calculations", "...
21664868821
from splinter import Browser from bs4 import BeautifulSoup import pandas as pd import datetime as dt def scripe_all(): browser = Browser('chrome', executable_path = 'chromedrivers', headless = True) news_title, news_p = mars_news(browser) results = { 'news_title': news_title, 'news_p'...
ejosephSr/web-scraping-challenge
scrape_mars.py
scrape_mars.py
py
3,569
python
en
code
0
github-code
6
[ { "api_name": "splinter.Browser", "line_number": 8, "usage_type": "call" }, { "api_name": "datetime.datetime.now", "line_number": 18, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 18, "usage_type": "attribute" }, { "api_name": "bs4.Beau...
40699973204
import sqlite3 from cryptography.fernet import Fernet class ApiKeysDatabaseService: def __init__(self, encryption_key: str, db_name: str = "api_keys.db"): self._db_name = db_name self._init_database() self._fernet = Fernet(encryption_key) def _init_database(self): connection = ...
StasDzundza/SmartAIAssistantTelegramBot
DBService/db_service.py
db_service.py
py
1,563
python
en
code
0
github-code
6
[ { "api_name": "cryptography.fernet.Fernet", "line_number": 8, "usage_type": "call" }, { "api_name": "sqlite3.connect", "line_number": 11, "usage_type": "call" }, { "api_name": "sqlite3.connect", "line_number": 27, "usage_type": "call" }, { "api_name": "sqlite3.con...
73049425148
# -*- coding: utf-8 -*- """ @author: Nicolas Verrier """ import time import os import matplotlib.pyplot as plt from scipy.fftpack import fft2, ifft2, ifftshift from scipy import signal import numpy as np import HoloProcessing as holo import CorrectionAberration as CAber import tifffile as tf import manip # Data folde...
madeba/MTD_transmission
Python_Tomo/Pretraitement.py
Pretraitement.py
py
6,116
python
en
code
1
github-code
6
[ { "api_name": "os.name", "line_number": 18, "usage_type": "attribute" }, { "api_name": "manip.Manip", "line_number": 23, "usage_type": "call" }, { "api_name": "os.path.exists", "line_number": 32, "usage_type": "call" }, { "api_name": "os.path", "line_number": ...
70808004669
import os import cv2 import numpy as np from tensorflow.keras.models import load_model import matplotlib.pyplot as plt test_dir = '/home/yash/Desktop/PyImageSearch/Fruit_classifier/data/test-multiple_fruits/' data_path = '/home/yash/Desktop/PyImageSearch/Fruit_classifier/data/train/' model = load_model('fruit_classif...
theartificialguy/Deep-Learning-Projects
Fruit Classifier/recognition.py
recognition.py
py
1,192
python
en
code
2
github-code
6
[ { "api_name": "tensorflow.keras.models.load_model", "line_number": 10, "usage_type": "call" }, { "api_name": "os.listdir", "line_number": 13, "usage_type": "call" }, { "api_name": "cv2.cvtColor", "line_number": 17, "usage_type": "call" }, { "api_name": "cv2.COLOR_...
38895233305
#length of English alphabet is equal to 26 from collections import OrderedDict #düzenlemeler yapıldı... class HarfAnalizMuhendisi(): harfSozluguKucuk_count = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0, 'k': 0, 'l'...
dataCalculus/stringAnalysisProject
harfAnalizi_2.py
harfAnalizi_2.py
py
2,554
python
en
code
0
github-code
6
[ { "api_name": "collections.OrderedDict", "line_number": 12, "usage_type": "call" }, { "api_name": "collections.OrderedDict", "line_number": 18, "usage_type": "call" } ]
8372147743
import logging import os import shutil import tarfile import tempfile import traceback from urllib.parse import urlparse from github import Github from builder.authentication.authenticate import session_client from builder.authentication.ssm import fetch_credentials module_logger = logging.getLogger('builder.retriev...
m1l0ai/m1l0_image_builder
builder/core/retriever.py
retriever.py
py
3,155
python
en
code
0
github-code
6
[ { "api_name": "logging.getLogger", "line_number": 14, "usage_type": "call" }, { "api_name": "urllib.parse.urlparse", "line_number": 25, "usage_type": "call" }, { "api_name": "os.path.join", "line_number": 32, "usage_type": "call" }, { "api_name": "os.path", "l...
36025312726
import typing class EnvState(object): """ This is the env state tuple, which will be stored in replay buffer _in_game: whether it is in game _state: env data """ def __init__( self, _in_game: bool, _state: typing.Any ): self.in_game = _in_game self...
ppaanngggg/DeepRL
DeepRL/Env/EnvState.py
EnvState.py
py
551
python
en
code
29
github-code
6
[ { "api_name": "typing.Any", "line_number": 14, "usage_type": "attribute" } ]
12599582225
# -*- coding: utf-8 -*- """ Created on Wed Jan 6 12:19:07 2016 @author: edouard.duchesnay@cea.fr """ from __future__ import print_function import sys, os, argparse doc_tag = "'''" skip_tag = '## SKIP' if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('input', help='Input pyth...
neurospin/pystatsml
bin/conv_python_to_rst.py
conv_python_to_rst.py
py
1,642
python
en
code
61
github-code
6
[ { "api_name": "argparse.ArgumentParser", "line_number": 14, "usage_type": "call" }, { "api_name": "sys.stderr", "line_number": 20, "usage_type": "attribute" }, { "api_name": "sys.exit", "line_number": 21, "usage_type": "call" }, { "api_name": "os.EX_USAGE", "l...
477960763
from configs import Config from torch.utils.data import DataLoader import torch as t import fire from Predictor.Utils import Vocab import pickle as pk from DataSets import DataSet, own_collate_fn from Predictor.Utils.loss import masked_cross_entropy, mixed_loss, masked_cross_entropy2 from Predictor.Utils import batch_s...
CNDPlab/TextSummarization
main.py
main.py
py
2,255
python
en
code
6
github-code
6
[ { "api_name": "configs.Config", "line_number": 18, "usage_type": "call" }, { "api_name": "Predictor.Utils.loss.masked_cross_entropy2", "line_number": 20, "usage_type": "name" }, { "api_name": "Predictor.Utils.batch_scorer", "line_number": 21, "usage_type": "name" }, {...
70725045308
# Databricks notebook source # MAGIC %md # MAGIC ### Working with races.csv file # COMMAND ---------- from delta.tables import * # COMMAND ---------- # DBTITLE 1,Run the configuration notebook # MAGIC %run "../0 - includes/configuration" # COMMAND ---------- # DBTITLE 1,Run the functions notebook # MAGIC %run "....
diassmith/formula1-project
03 - bronze - to - silver/clone/race - Silver clone.py
race - Silver clone.py
py
2,240
python
en
code
1
github-code
6
[ { "api_name": "pyspark.sql.functions.to_timestamp", "line_number": 44, "usage_type": "call" }, { "api_name": "pyspark.sql.functions.concat", "line_number": 44, "usage_type": "call" }, { "api_name": "pyspark.sql.functions.col", "line_number": 44, "usage_type": "call" }, ...
38932167077
# coding=utf-8 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from logging import getLogger from os import close, kill, unlink from os.path import abspath, isfile from ...
jschwartzentruber/grizzly
grizzly/target/puppet_target.py
puppet_target.py
py
10,789
python
en
code
null
github-code
6
[ { "api_name": "signal.SIGUSR1", "line_number": 13, "usage_type": "name" }, { "api_name": "logging.getLogger", "line_number": 32, "usage_type": "call" }, { "api_name": "target.Target", "line_number": 35, "usage_type": "name" }, { "api_name": "ffpuppet.FFPuppet", ...
41099478556
from django.urls import path from . import views from .views import ( JobsListView, JobsDetailView, JobsCreateView, JobsUpdateView, JobsDeleteView ) from .models import Jobs urlpatterns = [ path('', JobsListView.as_view(), name='employer-home'), path('jobs/<int:pk>/', JobsDetailView.as_vi...
rasikasd/JobFair-New
employer/urls.py
urls.py
py
634
python
en
code
0
github-code
6
[ { "api_name": "django.urls.path", "line_number": 13, "usage_type": "call" }, { "api_name": "views.JobsListView.as_view", "line_number": 13, "usage_type": "call" }, { "api_name": "views.JobsListView", "line_number": 13, "usage_type": "name" }, { "api_name": "django...
31933037251
from pyspark.ml import Pipeline from pyspark.ml.classification import LogisticRegression from pyspark.ml.evaluation import BinaryClassificationEvaluator from pyspark.ml.feature import HashingTF, Tokenizer from pyspark.ml.tuning import CrossValidator, ParamGridBuilder from pyspark.sql import SparkSession spark = SparkS...
geoffreylink/Projects
07 Machine Learning/SparkML/sparkML_TU_crossvalidator.py
sparkML_TU_crossvalidator.py
py
2,318
python
en
code
9
github-code
6
[ { "api_name": "pyspark.sql.SparkSession.builder.getOrCreate", "line_number": 8, "usage_type": "call" }, { "api_name": "pyspark.sql.SparkSession.builder", "line_number": 8, "usage_type": "attribute" }, { "api_name": "pyspark.sql.SparkSession", "line_number": 8, "usage_type...
7910694341
import RPi.GPIO as GPIO from flask import Flask, redirect, url_for, render_template, request, session app = Flask(__name__) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) #define sensors GPIOs button = 18 senPIR = 23 #define actuators GPIOs outpin1 = 21 outpin2 = 20 outpin3 = 16 outpin4 = 26 #initi...
Dimitriou/raspberry-flask-server
flask_server_gpio.py
flask_server_gpio.py
py
3,926
python
en
code
0
github-code
6
[ { "api_name": "flask.Flask", "line_number": 5, "usage_type": "call" }, { "api_name": "RPi.GPIO.setmode", "line_number": 8, "usage_type": "call" }, { "api_name": "RPi.GPIO", "line_number": 8, "usage_type": "name" }, { "api_name": "RPi.GPIO.BCM", "line_number": ...
4886892172
import os import time import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from MyDatasets1 import MyDataset from net import Darknet53 from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm # ' torch.argmax(output, dim=1)' class Trainne...
RockingHorse-L/yolov3
YOLOV3/TraiNet1.py
TraiNet1.py
py
7,022
python
en
code
2
github-code
6
[ { "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", "line_number": 19, "usage_type": "attribute" }, { "api_name": "net.Darknet53", ...
73816749626
"""Ed is the standard text editor.""" from discord.ext.commands import Cog, Context, command from arthur.bot import KingArthur class Ed(Cog): """Ed is the standard text editor.""" def __init__(self, bot: KingArthur) -> None: self.bot = bot @command(name="ed", help="[-GVhs] [-p string] [file]")...
python-discord/king-arthur
arthur/exts/fun/ed.py
ed.py
py
542
python
en
code
7
github-code
6
[ { "api_name": "discord.ext.commands.Cog", "line_number": 8, "usage_type": "name" }, { "api_name": "arthur.bot.KingArthur", "line_number": 11, "usage_type": "name" }, { "api_name": "discord.ext.commands.Context", "line_number": 15, "usage_type": "name" }, { "api_na...
43449613130
#!/usr/bin/env python3 import pymysql.cursors connection = pymysql.connect(host='localhost', user='root', password='', db='logs', charset='utf8mb4', cursorclass=pymysql.curs...
VadimAspirin/usml
back/report_generator.py
report_generator.py
py
6,501
python
en
code
0
github-code
6
[ { "api_name": "pymysql.cursors.connect", "line_number": 5, "usage_type": "call" }, { "api_name": "pymysql.cursors", "line_number": 5, "usage_type": "name" }, { "api_name": "pymysql.cursors.cursors", "line_number": 10, "usage_type": "attribute" }, { "api_name": "py...
11538132372
from sqlalchemy.orm import Session from database.model.device import IconModel, LastWillModel, TypeDeviceModel, TypeSensorModel, SensorModel from schema.device import TypeDeviceList, TypeSensorListSchema, SensorPostSchema from schema.icon import IconSchema from schema.last_will import LastWillSchema, LastWillListSchema...
andrequeiroz2/mantis
services/device_service/app/business/device.py
device.py
py
4,629
python
en
code
0
github-code
6
[ { "api_name": "sqlalchemy.orm.Session", "line_number": 11, "usage_type": "name" }, { "api_name": "schema.last_will.LastWillSchema", "line_number": 14, "usage_type": "name" }, { "api_name": "database.model.device.LastWillModel", "line_number": 16, "usage_type": "call" },...
25442798861
from tornado.web import RequestHandler from lib.mpd_client import * from web.server.constants import * class ControlsEndpoint(RequestHandler): def initialize(self, app): self.app = app def get(self, resource): logger.debug("ControlsEndpoint::get %s", resource) if resource == 'volume': return self.finish(...
jwayneroth/mpd-touch
web/server/endpoints/controlsendpoint.py
controlsendpoint.py
py
812
python
en
code
5
github-code
6
[ { "api_name": "tornado.web.RequestHandler", "line_number": 6, "usage_type": "name" } ]
38254714720
from django.shortcuts import render, reverse from django.urls import reverse from hknweb.utils import login_and_permission from hknweb.candidate.models import OffChallenge @login_and_permission("candidate.view_offchallenge") def challenge_detail_view(request, pk): """Detail view of an officer challenge.""" ...
Gabe-Mitnick/hknweb
hknweb/candidate/views/officer_challenge/detail.py
detail.py
py
1,263
python
en
code
null
github-code
6
[ { "api_name": "hknweb.candidate.models.OffChallenge.objects.get", "line_number": 12, "usage_type": "call" }, { "api_name": "hknweb.candidate.models.OffChallenge.objects", "line_number": 12, "usage_type": "attribute" }, { "api_name": "hknweb.candidate.models.OffChallenge", "li...
19491214327
import itertools import operator from functools import reduce def det_4x4(matrix): if len(matrix) != 4 or len(matrix[0]) != 4: raise ValueError("A matriz não é 4x4") indices = [0, 1, 2, 3] det = 0 for permutacao in itertools.permutations(indices): produto = 1 for ...
guib1/determinante4x4
execução_determinantes.py
execução_determinantes.py
py
1,065
python
pt
code
0
github-code
6
[ { "api_name": "itertools.permutations", "line_number": 12, "usage_type": "call" }, { "api_name": "functools.reduce", "line_number": 28, "usage_type": "call" }, { "api_name": "operator.mul", "line_number": 28, "usage_type": "attribute" } ]
1396428868
from keras_squeezenet import SqueezeNet from keras.preprocessing import image from keras.layers import GlobalAveragePooling2D, Dense, Dropout, Activation, Conv2D from keras.utils import plot_model from keras.models import Model from keras import optimizers from keras.callbacks import TensorBoard,ModelCheckpoint from k...
anjaliupadhyay18/BreastCancer-TransferLearning
legacy/squeezenet/SqueezeNet Keras.py
SqueezeNet Keras.py
py
5,556
python
en
code
0
github-code
6
[ { "api_name": "os.walk", "line_number": 23, "usage_type": "call" }, { "api_name": "os.walk", "line_number": 24, "usage_type": "call" }, { "api_name": "keras.preprocessing.image.ImageDataGenerator", "line_number": 38, "usage_type": "call" }, { "api_name": "keras.pr...
7796912765
import wx; from ModusBox import ModusBox; import PPLT; import os; import textwrap; import string; class SelectSlotDialog(wx.Dialog): def __init__(self, parent, PPLTSys): wx.Dialog.__init__(self, parent, -1, _("Select DeviceSlot"),size=(250,200)); self.__PPLTSys = PPLTSys; ...
BackupTheBerlios/pplt-svn
PPLT/PPLT/Center/AddSymbolDialog.py
AddSymbolDialog.py
py
9,828
python
en
code
0
github-code
6
[ { "api_name": "wx.Dialog", "line_number": 8, "usage_type": "attribute" }, { "api_name": "wx.Dialog.__init__", "line_number": 10, "usage_type": "call" }, { "api_name": "wx.Dialog", "line_number": 10, "usage_type": "attribute" }, { "api_name": "PPLT.Config", "li...
39434817718
import numpy as np import random import json from db import db from datetime import datetime, date, time, timedelta from trip import break_stop, trip from CFA import CCells, CFA from flight import flight_api from hotel import hotel_api class city_tour(): def __init__(self, country_code='TW', starting_city='KHH', s...
kevinreynold/mytripwander_CFA
app/backup/tripschedule_old.py
tripschedule_old.py
py
12,331
python
en
code
0
github-code
6
[ { "api_name": "db.db", "line_number": 13, "usage_type": "call" }, { "api_name": "numpy.random.uniform", "line_number": 38, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 38, "usage_type": "attribute" }, { "api_name": "db.db", "line_number...
23267395856
import click from cafebabel.auth import user_datastore from cafebabel.core import app from cafebabel.core.models import Role, User, UserProfile, UserRoles from peewee import create_model_tables, drop_model_tables def _initdb(): tables = [User, UserProfile, Role, UserRoles] drop_model_tables(tables, fail_silen...
cafebabel/cafebabel.com.backup
cli.py
cli.py
py
744
python
en
code
0
github-code
6
[ { "api_name": "cafebabel.core.models.User", "line_number": 9, "usage_type": "name" }, { "api_name": "cafebabel.core.models.UserProfile", "line_number": 9, "usage_type": "name" }, { "api_name": "cafebabel.core.models.Role", "line_number": 9, "usage_type": "name" }, { ...
26043193406
from __future__ import annotations import dataclasses from abc import ABC, ABCMeta, abstractmethod from dataclasses import dataclass from typing import Callable, ClassVar, Iterable, Optional, Tuple, Type, Union from pants.build_graph.build_file_aliases import BuildFileAliases from pants.core.goals.generate_lockfiles ...
pantsbuild/pants
src/python/pants/jvm/target_types.py
target_types.py
py
28,023
python
en
code
2,896
github-code
6
[ { "api_name": "pants.engine.target.Dependencies", "line_number": 44, "usage_type": "name" }, { "api_name": "pants.engine.target.StringField", "line_number": 48, "usage_type": "name" }, { "api_name": "pants.engine.target.AsyncFieldMixin", "line_number": 48, "usage_type": "...
37547901144
from. import settings import requests import logging class RotateProxy(object): #代理ip集合 proxy_list=[] @classmethod def init(cls): cls.ip_proxy = settings.IP_PROXY_CONFIG cls.proxy_url = cls.ip_proxy['URL'].format(num=cls.ip_proxy['FETCH_NUM']) response = requests.get(cls.p...
liyanpro/crawler-out-restaruant
out_restaurant/rotateproxy.py
rotateproxy.py
py
1,919
python
en
code
1
github-code
6
[ { "api_name": "requests.get", "line_number": 11, "usage_type": "call" }, { "api_name": "logging.warning", "line_number": 14, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 33, "usage_type": "call" } ]
31148278215
import pygame as py import sys from settings import * from level import Level #Class-Game---------------------------------------- class Game: def __init__(self): py.init() self.screen = py.display.set_mode((SCREEN_WIDTH, SCREEN_HIEGHT)) self.clock = py.time.Clock() self.level = Leve...
richfls/Stardew
main.py
main.py
py
921
python
en
code
0
github-code
6
[ { "api_name": "pygame.init", "line_number": 9, "usage_type": "call" }, { "api_name": "pygame.display.set_mode", "line_number": 10, "usage_type": "call" }, { "api_name": "pygame.display", "line_number": 10, "usage_type": "attribute" }, { "api_name": "pygame.time.Cl...
38035697606
#!/usr/bin/env python3 # Lab: Stored XSS into HTML context with nothing encoded # Lab-Link: https://portswigger.net/web-security/cross-site-scripting/stored/lab-html-context-nothing-encoded # Difficulty: APPRENTICE from bs4 import BeautifulSoup import requests import sys import urllib3 urllib3.disable_warnings(urllib3....
frank-leitner/portswigger-websecurity-academy
11_cross_site_scripting_XSS/Stored_XSS_into_HTML_context_with_nothing_encoded/script.py
script.py
py
1,638
python
en
code
159
github-code
6
[ { "api_name": "urllib3.disable_warnings", "line_number": 9, "usage_type": "call" }, { "api_name": "urllib3.exceptions", "line_number": 9, "usage_type": "attribute" }, { "api_name": "bs4.BeautifulSoup", "line_number": 15, "usage_type": "call" }, { "api_name": "sys....
45518548734
import numpy as np import matplotlib.pyplot as plt # x1 = np.arange(0, 4) # print(id(x1)) # x1 = np.arange(0, 4) # print(id(x1)) # x2 = np.copy(x1) # # print(id(x1)) # # print(id(x2)) l = [] for i in range(0, 1000): l.append(np.random.rand()) # print(l) plt.hist(l, color='r') plt.show()
CandyTt20/Demo
num_4.py
num_4.py
py
292
python
en
code
0
github-code
6
[ { "api_name": "numpy.random.rand", "line_number": 12, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 12, "usage_type": "attribute" }, { "api_name": "matplotlib.pyplot.hist", "line_number": 14, "usage_type": "call" }, { "api_name": "matplotlib...
15932314731
import copy import datetime import pytest import datetime import json import hydra_base as hb import logging log = logging.getLogger(__name__) class TestNetwork: """ Test for network-based functionality """ def test_add_network_unknown_attribute(self, client, projectmaker): project = pro...
hydraplatform/hydra-base
tests/test_network.py
test_network.py
py
40,360
python
en
code
8
github-code
6
[ { "api_name": "logging.getLogger", "line_number": 10, "usage_type": "call" }, { "api_name": "datetime.datetime.now", "line_number": 30, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 30, "usage_type": "attribute" }, { "api_name": "pytest...
33542442657
import asyncio import datetime import itertools from typing import Dict, Optional, Set import aiohttp import pandas as pd from loguru import logger from nba_crawler import nba_teams, utils async def get_nba_games( session: aiohttp.ClientSession, headers: dict, start_day: datetime.datetime, end_day: ...
markalansmith/nba_crawler
nba_crawler/endpoints.py
endpoints.py
py
2,388
python
en
code
0
github-code
6
[ { "api_name": "aiohttp.ClientSession", "line_number": 14, "usage_type": "attribute" }, { "api_name": "datetime.datetime", "line_number": 16, "usage_type": "attribute" }, { "api_name": "datetime.datetime", "line_number": 17, "usage_type": "attribute" }, { "api_name...
39177314783
# -*- coding: utf-8 -*- """ Created on Sun Mar 26 15:22:10 2023 @author: Adnane Sennoune """ import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg class Node: indice = -1 #indice est utilisée pour donner un index unique ...
AdnaneSen/TSP-ACO
TSP_Ant_colony.py
TSP_Ant_colony.py
py
9,085
python
en
code
2
github-code
6
[ { "api_name": "numpy.sqrt", "line_number": 34, "usage_type": "call" }, { "api_name": "numpy.random.default_rng", "line_number": 51, "usage_type": "call" }, { "api_name": "numpy.random", "line_number": 51, "usage_type": "attribute" }, { "api_name": "numpy.array", ...
34221048962
from typing import Dict, List, Union from tqdm import tqdm from up42.auth import Auth from up42.order import Order from up42.asset import Asset from up42.utils import get_logger from up42.tools import Tools logger = get_logger(__name__) class Storage(Tools): """ The Storage class enables access to the UP42...
stasSajinDD/up42-py
up42/storage.py
storage.py
py
3,293
python
en
code
null
github-code
6
[ { "api_name": "up42.utils.get_logger", "line_number": 11, "usage_type": "call" }, { "api_name": "up42.tools.Tools", "line_number": 14, "usage_type": "name" }, { "api_name": "up42.auth.Auth", "line_number": 25, "usage_type": "name" }, { "api_name": "typing.List", ...
70499451387
import os import sys import AWSIoTPythonSDK sys.path.insert(0, os.path.dirname(AWSIoTPythonSDK.__file__)) # Now the import statement should work from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient import sys import logging import time import getopt from random import uniform # Custom MQTT message callback def custom...
CountChu/AwsIotPythonTest
Code/AwsIotPythonTest.py
AwsIotPythonTest.py
py
5,380
python
en
code
2
github-code
6
[ { "api_name": "sys.path.insert", "line_number": 4, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 4, "usage_type": "attribute" }, { "api_name": "os.path.dirname", "line_number": 4, "usage_type": "call" }, { "api_name": "os.path", "line_number...
43578612075
import numpy as np import cv2 # cv2.VideoCapture.set(CV_CAP_PROP_FRAME_WIDTH = 512,CV_CAP_PROP_FRAME_HEIGHT =512) cap_left = cv2.VideoCapture(2) cap_right = cv2.VideoCapture(1) ret = cap_right.set(3,512) ret = cap_right.set(4,512) ret = cap_left.set(3,512) ret = cap_left.set(4,512) stereo = cv2.StereoBM_create(numD...
sanjanprakash/Stereovision-and-Object-Detection
src/image_capturing/test_cameras.py
test_cameras.py
py
1,064
python
en
code
12
github-code
6
[ { "api_name": "cv2.VideoCapture", "line_number": 6, "usage_type": "call" }, { "api_name": "cv2.VideoCapture", "line_number": 7, "usage_type": "call" }, { "api_name": "cv2.StereoBM_create", "line_number": 14, "usage_type": "call" }, { "api_name": "cv2.imshow", ...
40319706667
from ansible.module_utils.basic import AnsibleModule from ansible_collections.ansibleguy.opnsense.plugins.module_utils.base.handler import \ module_dependency_error, MODULE_EXCEPTIONS try: from ansible_collections.ansibleguy.opnsense.plugins.module_utils.helper.utils import profiler from ansible_collectio...
ansibleguy/collection_opnsense
plugins/modules/shaper_queue.py
shaper_queue.py
py
2,988
python
en
code
158
github-code
6
[ { "api_name": "ansible_collections.ansibleguy.opnsense.plugins.module_utils.base.handler.MODULE_EXCEPTIONS", "line_number": 13, "usage_type": "name" }, { "api_name": "ansible_collections.ansibleguy.opnsense.plugins.module_utils.base.handler.module_dependency_error", "line_number": 14, "u...
22117523194
import rospy from MyStatics.RealTimePlotter import RealTimePlotter from sensor_msgs.msg import Imu import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt class IMUPlotter(RealTimePlotter): def __init__(self, threshold = 1000, pace = 200): self.data_ = [] self.step_ = [] p...
jcmayoral/collision_detector_observers
collision_observers/imu/fake_imu/src/fake_imu/IMUPlotter.py
IMUPlotter.py
py
804
python
en
code
0
github-code
6
[ { "api_name": "matplotlib.use", "line_number": 5, "usage_type": "call" }, { "api_name": "MyStatics.RealTimePlotter.RealTimePlotter", "line_number": 8, "usage_type": "name" }, { "api_name": "rospy.init_node", "line_number": 14, "usage_type": "call" }, { "api_name":...
27539196625
from fastapi import APIRouter, Depends from ..controllers.auth import login_required from ..controllers.task import create, delete, list_, search, update from .models.task import CreateRequest, CreateResponse, ListResponse, SearchResponse, UpdateRequest, UpdateResponse router = APIRouter() @router.get('/{id_list}/t...
senavs/todo-list
backend/api/routes/task.py
task.py
py
1,772
python
en
code
0
github-code
6
[ { "api_name": "fastapi.APIRouter", "line_number": 7, "usage_type": "call" }, { "api_name": "fastapi.Depends", "line_number": 11, "usage_type": "call" }, { "api_name": "controllers.auth.login_required", "line_number": 11, "usage_type": "argument" }, { "api_name": "...
13080212528
#********************Author: Somnath Das*********************** #********Please ensure awscli is configured properly*********** import boto3 #import logging from botocore.exceptions import ClientError from colorama import Fore, Back, Style s3_client = boto3.client('s3') #Delete an item from your bucket... def delete...
sdas92/aws
s3/pythonPractice/s3ObjectDelete.py
s3ObjectDelete.py
py
737
python
en
code
1
github-code
6
[ { "api_name": "boto3.client", "line_number": 9, "usage_type": "call" }, { "api_name": "botocore.exceptions.ClientError", "line_number": 25, "usage_type": "name" } ]
17551132478
""" URL configuration for testProject project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='...
ColtenreQ/liquortory
testProject/urls.py
urls.py
py
1,322
python
en
code
0
github-code
6
[ { "api_name": "django.urls.path", "line_number": 24, "usage_type": "call" }, { "api_name": "django.contrib.admin.site", "line_number": 24, "usage_type": "attribute" }, { "api_name": "django.contrib.admin", "line_number": 24, "usage_type": "name" }, { "api_name": "...
38237869936
import argparse import numpy as np import csv def logistic(z): return 1 / (1 + np.exp(-z)) def save(outfile, X, y): data = np.hstack([y.reshape(y.size, -1), X]) with open(outfile, "w") as f: writer = csv.writer(f, delimiter=' ') for row in data: writer.writerow(row) def genera...
PKUFlyingPig/Hadoop_vs_Spark
generate_dataset.py
generate_dataset.py
py
1,250
python
en
code
10
github-code
6
[ { "api_name": "numpy.exp", "line_number": 6, "usage_type": "call" }, { "api_name": "numpy.hstack", "line_number": 9, "usage_type": "call" }, { "api_name": "csv.writer", "line_number": 11, "usage_type": "call" }, { "api_name": "numpy.random.seed", "line_number"...
14495747134
import pickle from glob import glob import streamlit as st from pointnet.app import sample_dataset from pointnet.dataset import get_dataset, download_dataset def run_app(classes, train_tfrecords, test_tfrecords): train_dataset = get_dataset(train_tfrecords, buffer_size=2048, batch_size=1, augment=False) test_...
lattice-ai/pointnet
run_app.py
run_app.py
py
1,001
python
en
code
6
github-code
6
[ { "api_name": "pointnet.dataset.get_dataset", "line_number": 9, "usage_type": "call" }, { "api_name": "pointnet.dataset.get_dataset", "line_number": 10, "usage_type": "call" }, { "api_name": "streamlit.markdown", "line_number": 12, "usage_type": "call" }, { "api_n...
74606042748
#!/usr/bin/env python # -*- coding: utf-8 -*- from lxml import etree from collections import defaultdict, OrderedDict class DaneTeryt(): def __init__(self, plik): self.doc = etree.parse(plik) def element(self, nazwa): elementy = self.doc.xpath("/teryt/catalog/row/col[@name='%s']" % nazwa) ...
jakubplata/TERYTorium
app/teryt.py
teryt.py
py
1,686
python
pl
code
0
github-code
6
[ { "api_name": "lxml.etree.parse", "line_number": 8, "usage_type": "call" }, { "api_name": "lxml.etree", "line_number": 8, "usage_type": "name" }, { "api_name": "collections.defaultdict", "line_number": 25, "usage_type": "call" }, { "api_name": "collections.default...
8259689492
import logging from django.test import TestCase, Client from django.core.urlresolvers import reverse from api.models import Item class ScrapeFromLodestoneTestCase(TestCase): def setUp(self): self.client = Client() self.lodestone_id = 'd19447e548d' self.response = self.client.post(revers...
sam-myers/loadstone_legacy
api/tests/test_scrape_lodestone_item.py
test_scrape_lodestone_item.py
py
2,361
python
en
code
0
github-code
6
[ { "api_name": "django.test.TestCase", "line_number": 9, "usage_type": "name" }, { "api_name": "django.test.Client", "line_number": 12, "usage_type": "call" }, { "api_name": "django.core.urlresolvers.reverse", "line_number": 14, "usage_type": "call" }, { "api_name"...
2063807107
import datetime from DataBase.DB import Search from typing import Dict def history(user_id: int) -> str: """ Функция запрашивает из базы данных список последних 10 строк, поиск осуществляется по user_id :param user_id: (int) айди пользователя :return: str смоделированную строку с информацией о зап...
Taiven396/tickets_bot
DataBase/Tickets_DB.py
Tickets_DB.py
py
3,433
python
ru
code
0
github-code
6
[ { "api_name": "DataBase.DB.Search.select", "line_number": 13, "usage_type": "call" }, { "api_name": "DataBase.DB.Search", "line_number": 13, "usage_type": "name" }, { "api_name": "DataBase.DB.Search.user_id", "line_number": 14, "usage_type": "attribute" }, { "api_...
23019695345
import argparse import numpy as np import py_cliff_environment import blocking_maze_environment import q_agents import model import learnable_model import gymnasium as gym ap = argparse.ArgumentParser(description="Finite MDP Trainer") ap.add_argument("--agent") ap.add_argument("--env", default="PyCliffWalking") ap.ad...
jfrancis71/PyGenBrix
finite_mdp/train.py
train.py
py
3,336
python
en
code
0
github-code
6
[ { "api_name": "argparse.ArgumentParser", "line_number": 11, "usage_type": "call" }, { "api_name": "gymnasium.spaces.Discrete", "line_number": 43, "usage_type": "call" }, { "api_name": "gymnasium.spaces", "line_number": 43, "usage_type": "attribute" }, { "api_name"...
23882730734
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from scipy.optimize import minimize # Definiowanie funkcji celu def func(x): return 9 + x[0]**2 + x[1]**2 # Początkowe punkty sympleksu initial_simplex = np.array([[6, 6], [8, 5], [8, 4]]) # Minimizacja funkcji celu z uż...
marchel99/studia_metody_numeryczne
metody_optymalizacja/optymalizacja.py
optymalizacja.py
py
977
python
pl
code
0
github-code
6
[ { "api_name": "numpy.array", "line_number": 13, "usage_type": "call" }, { "api_name": "scipy.optimize.minimize", "line_number": 16, "usage_type": "call" }, { "api_name": "numpy.linspace", "line_number": 19, "usage_type": "call" }, { "api_name": "numpy.linspace", ...
23181711292
from tika import parser from PIL import Image import pytesseract import io import re from schwifty import BIC def getTextFromImage(image): text = pytesseract.image_to_string(image) text = text.replace("\n", "").replace(" ", "").upper() return text def getTextFromPdf(file): content = file.read...
vkhamesi/mpp-ocr
src/iban.py
iban.py
py
2,595
python
en
code
0
github-code
6
[ { "api_name": "pytesseract.image_to_string", "line_number": 11, "usage_type": "call" }, { "api_name": "tika.parser.from_buffer", "line_number": 21, "usage_type": "call" }, { "api_name": "tika.parser", "line_number": 21, "usage_type": "name" }, { "api_name": "PIL.I...
4939774881
"""threading is used since we need take input for sending and listen on the recieving socket for the message and these both need to be done simultaneously, hence threading""" import socket from threading import Thread from colorama import winterm import sys from msvcrt import getche, getch #################...
luckylsk34/CLI-based-messenger
my_messenger server.py
my_messenger server.py
py
3,365
python
en
code
0
github-code
6
[ { "api_name": "colorama.winterm.WinTerm", "line_number": 17, "usage_type": "call" }, { "api_name": "colorama.winterm", "line_number": 17, "usage_type": "name" }, { "api_name": "socket.socket", "line_number": 19, "usage_type": "call" }, { "api_name": "socket.socket...
5261410226
import pandas as pd import json import os from config.avss.config_avsbench_semantics import cfg as avss_cfg root = avss_cfg.DATA.META_CSV_PATH with open(avss_cfg.DATA.LABEL_IDX_PATH, 'r') as fr: index_table = json.load(fr) df = pd.read_csv(root, dtype=str) df["a_obj"] = df["a_obj"].apply(lambda x: x.split("_")) ...
cyh-0/CAVP
dataset/avss/semi_sample.py
semi_sample.py
py
1,113
python
en
code
86
github-code
6
[ { "api_name": "config.avss.config_avsbench_semantics.cfg.DATA", "line_number": 6, "usage_type": "attribute" }, { "api_name": "config.avss.config_avsbench_semantics.cfg", "line_number": 6, "usage_type": "name" }, { "api_name": "config.avss.config_avsbench_semantics.cfg.DATA", ...
5446745727
import numpy as np import scipy import scipy.integrate as integrate import matplotlib import matplotlib.pyplot as plt def func(x, R): d = np.sqrt(x**2) if(d < R): return 1.0 elif(d == R): return 0.5 else: return 0.0 def func2(x, R): return x**3 + 2*(x**2) def func3(x, R, f...
mcastrorib/bergman_periodic_solution
python/early/gauss_quad.py
gauss_quad.py
py
2,223
python
en
code
0
github-code
6
[ { "api_name": "numpy.sqrt", "line_number": 8, "usage_type": "call" }, { "api_name": "numpy.cos", "line_number": 20, "usage_type": "call" }, { "api_name": "numpy.polynomial.legendre.leggauss", "line_number": 26, "usage_type": "call" }, { "api_name": "numpy.polynomi...
6691699364
import logging import aiogram.utils.markdown as md from aiogram import Bot, Dispatcher, types from aiogram.contrib.fsm_storage.memory import MemoryStorage from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters import Text from aiogram.dispatcher.filters.state import State, StatesGroup from aiogram.ty...
yusupovanton/invest_analytica
test.py
test.py
py
7,412
python
en
code
0
github-code
6
[ { "api_name": "logging.basicConfig", "line_number": 13, "usage_type": "call" }, { "api_name": "logging.INFO", "line_number": 13, "usage_type": "attribute" }, { "api_name": "aiogram.Bot", "line_number": 16, "usage_type": "call" }, { "api_name": "config.API_TOKEN", ...
35995426759
import asyncio import threading import time from . import utils class TaskPool(object): def __init__(self, workers): self._semaphore = asyncio.Semaphore(workers) self._tasks = set() self._closed = False async def put(self, coro): if self._closed: raise Ru...
Prashant118/pypeln
pypeln/async_utils.py
async_utils.py
py
4,448
python
en
code
null
github-code
6
[ { "api_name": "asyncio.Semaphore", "line_number": 9, "usage_type": "call" }, { "api_name": "asyncio.ensure_future", "line_number": 21, "usage_type": "call" }, { "api_name": "asyncio.gather", "line_number": 30, "usage_type": "call" }, { "api_name": "time.sleep", ...
21710278672
# -*- coding: utf-8 -*- """ Created on Tue Jul 13 20:22:58 2021 @author: kanza """ #https://amorphous.tf.chiba-u.jp/lecture.files/chem_computer/11_scipy%E3%81%AE%E5%9F%BA%E6%9C%AC%E3%81%A8%E5%BF%9C%E7%94%A8/11.html import numpy as np import matplotlib.pyplot as plt from scipy.special import lpmv # scipy.special.lpm...
poyokan/myFirstPythonStudying
ルジャンドル陪多項式.py
ルジャンドル陪多項式.py
py
886
python
en
code
0
github-code
6
[ { "api_name": "numpy.linspace", "line_number": 16, "usage_type": "call" }, { "api_name": "numpy.pi", "line_number": 16, "usage_type": "attribute" }, { "api_name": "numpy.cos", "line_number": 17, "usage_type": "call" }, { "api_name": "matplotlib.pyplot.subplots", ...
8480334048
"""Formulario del modelo Permission.""" # Forms from crispy_forms.bootstrap import FormActions from crispy_forms.helper import FormHelper from crispy_forms.layout import Div, Fieldset, Layout, Reset, Submit # Django from django import forms from django.db.models import Q # Models from sistemita.authorization.models ...
liqueed/sistemita2
sistemita/authorization/forms/permissions.py
permissions.py
py
2,248
python
en
code
0
github-code
6
[ { "api_name": "django.forms.ModelForm", "line_number": 16, "usage_type": "attribute" }, { "api_name": "django.forms", "line_number": 16, "usage_type": "name" }, { "api_name": "crispy_forms.helper.FormHelper", "line_number": 24, "usage_type": "call" }, { "api_name"...
21277210186
import numpy as np import pytest from mindspore import Tensor, nn from mindspore_rl.network.fully_connected_net import FullyConnectedLayers class Net(nn.Cell): """ Ground truth network """ def __init__(self): super().__init__() self.fc1 = nn.Dense(10, 20, bias_init="zeros") s...
mindspore-lab/mindrl
tests/st/test_fully_connected_layer.py
test_fully_connected_layer.py
py
1,555
python
en
code
21
github-code
6
[ { "api_name": "mindspore.nn.Cell", "line_number": 8, "usage_type": "attribute" }, { "api_name": "mindspore.nn", "line_number": 8, "usage_type": "name" }, { "api_name": "mindspore.nn.Dense", "line_number": 15, "usage_type": "call" }, { "api_name": "mindspore.nn", ...
38879268270
import os import sys import time from argparse import ArgumentParser sys.path.append("./src") from faceAverage import Averager if __name__ == '__main__' : start = time.time() parser = ArgumentParser() parser.add_argument('-i', '--input-dir', dest="input", help="Specify the input directory", type=str, req...
georgegach/face-average
run.py
run.py
py
2,049
python
en
code
13
github-code
6
[ { "api_name": "sys.path.append", "line_number": 5, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 5, "usage_type": "attribute" }, { "api_name": "time.time", "line_number": 10, "usage_type": "call" }, { "api_name": "argparse.ArgumentParser", "...
40262065416
import django django.setup() from kafka_consumer.models import SettingsModel import cv2 import os from time import sleep import six from django.core.management.base import BaseCommand from common.consumers import MessageConsumer from common.messages import SlicerMessage, ImageMessage from common.producers import Mess...
opendatalabcz/parking-spot-detection
backend/slicers/management/commands/slicer.py
slicer.py
py
3,463
python
en
code
7
github-code
6
[ { "api_name": "django.setup", "line_number": 2, "usage_type": "call" }, { "api_name": "common.consumers.MessageConsumer", "line_number": 21, "usage_type": "call" }, { "api_name": "common.topics.TOPIC_SLICE", "line_number": 21, "usage_type": "attribute" }, { "api_n...
20489884846
"""This module contains Ephemeris class. """ import math import json import pkg_resources from astro_toolbox.angle.radians import AngleRad from astro_toolbox.time.core import AstroDateTime PATH = pkg_resources.resource_filename('astro_toolbox', 'coordinates/data/') class Ephemeris(): """Ephemeris class computing...
rloustalet/astro-toolbox
src/astro_toolbox/coordinates/solar_system.py
solar_system.py
py
11,827
python
en
code
0
github-code
6
[ { "api_name": "pkg_resources.resource_filename", "line_number": 10, "usage_type": "call" }, { "api_name": "astro_toolbox.time.core.AstroDateTime", "line_number": 36, "usage_type": "call" }, { "api_name": "json.load", "line_number": 61, "usage_type": "call" }, { "a...
5894192258
import torch from torch import nn from torch.nn import Conv2d, MaxPool2d, Flatten, Linear class Tudui(nn.Module): def __init__(self): super(Tudui, self).__init__() self.module = nn.Sequential( Conv2d(in_channels=3, out_channels=32, kernel_size=5, stride=1, padding=2), # 根据官网公式计算 paddi...
TristanAlkaid/project
train/model.py
model.py
py
994
python
en
code
0
github-code
6
[ { "api_name": "torch.nn.Module", "line_number": 6, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 6, "usage_type": "name" }, { "api_name": "torch.nn.Sequential", "line_number": 9, "usage_type": "call" }, { "api_name": "torch.nn", "line_n...
7821001603
import numpy as np import matplotlib.pyplot as plt from skimage.transform import radon from scipy.spatial.distance import cosine as distcosine def genRadonProfile(M, A=4): theta = np.linspace(0., 180., A, endpoint=False) signal = radon(M, theta, circle=False) result = signal.flatten('F') return result...
echonesis/bcls-tk
compare/rtdist.py
rtdist.py
py
663
python
en
code
0
github-code
6
[ { "api_name": "numpy.linspace", "line_number": 8, "usage_type": "call" }, { "api_name": "skimage.transform.radon", "line_number": 9, "usage_type": "call" }, { "api_name": "scipy.spatial.distance.cosine", "line_number": 16, "usage_type": "call" }, { "api_name": "nu...
9817204984
from django.urls import path from .views import home,about,add_stock,delete,delete_stock urlpatterns = [ path('',home,name='home'), path('about/',about,name='about'), path('add_stock/',add_stock,name='add_stock'), path('delete/<id>',delete,name='delete'), path('delete_stock',delete_stock,name='delete_st...
swathirekha37/django_stock
quotes/urls.py
urls.py
py
327
python
en
code
0
github-code
6
[ { "api_name": "django.urls.path", "line_number": 5, "usage_type": "call" }, { "api_name": "views.home", "line_number": 5, "usage_type": "argument" }, { "api_name": "django.urls.path", "line_number": 6, "usage_type": "call" }, { "api_name": "views.about", "line...
10383624833
import unittest import torch from executorch.backends.xnnpack.test.tester import Tester class TestSigmoid(unittest.TestCase): class Sigmoid(torch.nn.Module): def __init__(self): super().__init__() self.sigmoid = torch.nn.Sigmoid() def forward(self, x): z = sel...
pytorch/executorch
backends/xnnpack/test/ops/sigmoid.py
sigmoid.py
py
984
python
en
code
479
github-code
6
[ { "api_name": "unittest.TestCase", "line_number": 7, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 8, "usage_type": "attribute" }, { "api_name": "torch.nn.Sigmoid", "line_number": 11, "usage_type": "call" }, { "api_name": "torch.nn", "l...
12680451696
import os import time import warnings import numpy as np import torch import torch.nn as nn from torch import optim from tqdm import tqdm from data_provider.data_factory import data_provider from exp.exp_basic import Exp_Basic from models import Crossformer, TimesNet, Reformer, Informer, Autoformer, FEDformer, NLinea...
ForestsKing/TSF-Library
exp/exp_main.py
exp_main.py
py
7,316
python
en
code
4
github-code
6
[ { "api_name": "warnings.filterwarnings", "line_number": 17, "usage_type": "call" }, { "api_name": "exp.exp_basic.Exp_Basic", "line_number": 20, "usage_type": "name" }, { "api_name": "models.Reformer", "line_number": 26, "usage_type": "name" }, { "api_name": "model...
33724636363
from dataclasses import dataclass from itertools import groupby,chain import inspect import openpyxl from openpyxl.styles import NamedStyle, PatternFill, Font, Alignment from openpyxl.utils import get_column_letter from datetime import datetime from calendar import monthrange from dateutil.relativedelta import relati...
QuoNaro/ruobr-student
ruobr_student/excel.py
excel.py
py
7,977
python
en
code
0
github-code
6
[ { "api_name": "datetime.datetime", "line_number": 31, "usage_type": "name" }, { "api_name": "dataclasses.dataclass", "line_number": 25, "usage_type": "name" }, { "api_name": "itertools.chain", "line_number": 46, "usage_type": "call" }, { "api_name": "datetime.date...
30028307432
from flask import Flask import requests import json from time import sleep from threading import Thread from datetime import datetime app = Flask(__name__) ru_rating = 0 world_rating = 0 pts = 0 def update(): global ru_rating, world_rating, pts while True: data = json.loads(requests.get('https://ctf...
icYFTL/Caerme
backend/server.py
server.py
py
1,067
python
en
code
0
github-code
6
[ { "api_name": "flask.Flask", "line_number": 8, "usage_type": "call" }, { "api_name": "json.loads", "line_number": 18, "usage_type": "call" }, { "api_name": "requests.get", "line_number": 18, "usage_type": "call" }, { "api_name": "datetime.datetime.now", "line_...
20281657257
import cv2 # opencv3 import glob # to get lists of matching files import numpy as np from PIL import Image from io import BytesIO def fancy_pca(img, alpha_std=100): ''' take in an image and does PCA to augment the colors while maintaing the structure of the image. This is 'Fancy PCA' from: ...
pixelatedbrian/fortnight-furniture
notebooks/image_aug.py
image_aug.py
py
10,782
python
en
code
10
github-code
6
[ { "api_name": "numpy.mean", "line_number": 63, "usage_type": "call" }, { "api_name": "numpy.cov", "line_number": 66, "usage_type": "call" }, { "api_name": "numpy.linalg.eigh", "line_number": 69, "usage_type": "call" }, { "api_name": "numpy.linalg", "line_numbe...
30366878831
from enable.api import Component from enable.kiva_graphics_context import GraphicsContext from traits.api import Bool, Instance, observe, Str DEFAULT_DRAWING_ORDER = [ "background", "image", "underlay", "plot", "selection", "border", "annotation", "overlay", ] class PlotComponent(Com...
enthought/chaco
chaco/plot_component.py
plot_component.py
py
2,548
python
en
code
286
github-code
6
[ { "api_name": "enable.api.Component", "line_number": 18, "usage_type": "name" }, { "api_name": "traits.api.Instance", "line_number": 57, "usage_type": "call" }, { "api_name": "traits.api.Str", "line_number": 60, "usage_type": "call" }, { "api_name": "traits.api.ob...
24986518441
from contextlib import contextmanager from typing import Generator, List, Optional, cast from fbmeshd import MeshService from fbmeshd.ttypes import MpathEntry, PeerMetrics, StatCounter from thrift.protocol import TBinaryProtocol from thrift.transport import TSocket, TTransport MESH_SERVICE_HOST = "localhost" MESH_SE...
facebookarchive/fbmeshd
fbmeshd/linkstatsd/meshquery.py
meshquery.py
py
3,654
python
en
code
30
github-code
6
[ { "api_name": "thrift.transport.TSocket.TSocket", "line_number": 22, "usage_type": "call" }, { "api_name": "thrift.transport.TSocket", "line_number": 22, "usage_type": "name" }, { "api_name": "thrift.transport.TTransport.TBufferedTransport", "line_number": 24, "usage_type...
17298495747
from flask import request from functools import wraps import requests from setup_movie_library import * ACCESS = { 'user': 1, 'admin': 2 } def requires_access_level(access_level): def decorator(f): @wraps(f) def decorated_function(*args, **kwargs): if 'Authorization' in reque...
benyanko/MoviezAPI
MovieLibraryMicroservice/movie_library_security.py
movie_library_security.py
py
1,050
python
en
code
2
github-code
6
[ { "api_name": "flask.request.headers", "line_number": 17, "usage_type": "attribute" }, { "api_name": "flask.request", "line_number": 17, "usage_type": "name" }, { "api_name": "flask.request.headers", "line_number": 18, "usage_type": "attribute" }, { "api_name": "f...
24994244046
import csv import sys from time import sleep import serial def format(rpm, analog_a, analog_b, digital, energy, gyro_x, gyro_y, gyro_z): return 'RM{: <5}A{:.1f}B{:.1f}{:s}\nE{: <6}{:<+3}{:<+3}{:<+3}\n'.format( rpm, analog_a, analog_b, digital, energy, gyro_x, gyro_y, gyro_z) port = serial.Serial(port=...
ztwilliams197/EVEI-Backup
simulate_serial.py
simulate_serial.py
py
1,177
python
en
code
0
github-code
6
[ { "api_name": "serial.Serial", "line_number": 10, "usage_type": "call" }, { "api_name": "serial.PARITY_NONE", "line_number": 12, "usage_type": "attribute" }, { "api_name": "serial.STOPBITS_ONE", "line_number": 13, "usage_type": "attribute" }, { "api_name": "serial...
34859159998
from kafka import KafkaConsumer TOPIC_NAME = "first-topic" KAFKA_BOOTSTRAP_SERVER = "localhost:9092" def kafka_consume_msgs(): print("kafka consumer initializing") consumer = KafkaConsumer(TOPIC_NAME, bootstrap_servers=KAFKA_BOOTSTRAP_SERVER, auto_offs...
zaka-ai/data-engineer-track
Big_data_streaming_and_automation/kafka_hands_on/kafka_programmatically/kafka_consumer.py
kafka_consumer.py
py
810
python
en
code
0
github-code
6
[ { "api_name": "kafka.KafkaConsumer", "line_number": 10, "usage_type": "call" } ]
30356438941
from traits.api import Button, Code, HasPrivateTraits, observe, Str from traitsui.api import Group, Handler, Item, View from traitsui.key_bindings import KeyBinding, KeyBindings key_bindings = KeyBindings( KeyBinding( binding1='Ctrl-s', description='Save to a file', method_name='save_file',...
enthought/traitsui
docs/source/traitsui_user_manual/examples/key_bindings.py
key_bindings.py
py
1,529
python
en
code
290
github-code
6
[ { "api_name": "traitsui.key_bindings.KeyBindings", "line_number": 5, "usage_type": "call" }, { "api_name": "traitsui.key_bindings.KeyBinding", "line_number": 6, "usage_type": "call" }, { "api_name": "traitsui.key_bindings.KeyBinding", "line_number": 11, "usage_type": "cal...
32725470828
""" Import the basic requirements package """ import time import math import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.datasets import load_digits """ Dataset export function """ def read_csv(): X, y = load_digits(return_X_y=True) print(X.shape) # Print ...
worldlanguage/nlp.github.io
pca.py
pca.py
py
2,159
python
en
code
1
github-code
6
[ { "api_name": "sklearn.datasets.load_digits", "line_number": 15, "usage_type": "call" }, { "api_name": "pandas.Series", "line_number": 24, "usage_type": "call" }, { "api_name": "numpy.arange", "line_number": 24, "usage_type": "call" }, { "api_name": "pandas.DataFr...
33089793669
from PyPDF2 import PdfFileWriter, PdfFileReader import os import sys inputpdf = PdfFileReader(open(sys.argv[1], "rb")) OUT = sys.argv[2] ranges = [] pages = [] num = "intro" COUNTER = 1 for i in range(inputpdf.numPages): output = PdfFileWriter() print(i) content = inputpdf.getPage(i).extractText() + "\n" ...
Jacarte/KTH-Licentiate-Thesis
build_images/split_document.py
split_document.py
py
819
python
en
code
0
github-code
6
[ { "api_name": "PyPDF2.PdfFileReader", "line_number": 5, "usage_type": "call" }, { "api_name": "sys.argv", "line_number": 5, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 6, "usage_type": "attribute" }, { "api_name": "PyPDF2.PdfFileWriter", ...
10381093540
import argparse from pathlib import Path import torch import torch.nn as nn import torch.nn.functional as F import mmcls from mmcls.apis import init_model ''' A PyTorch implementation of : `RMNet: Equivalently Removing Residual Connection from Networks <https://arxiv.org/abs/2111.00687>`_ ''' def RMOperation(block):...
fxmeng/mmclassification
tools/convert_models/resnet2rmnet.py
resnet2rmnet.py
py
4,185
python
en
code
null
github-code
6
[ { "api_name": "torch.nn.utils.fuse_conv_bn_eval", "line_number": 15, "usage_type": "call" }, { "api_name": "torch.nn.utils", "line_number": 15, "usage_type": "attribute" }, { "api_name": "torch.nn", "line_number": 15, "usage_type": "name" }, { "api_name": "torch.n...
16172216894
import torch import torchvision import numpy as np import sys sys.path.append("..") # 为了导入上层目录的d2lzh_pytorch import d2lzh_pytorch as d2l batch_size = 256 train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size) num_inputs = 784 num_outputs = 10 W = torch.tensor(np.random.normal(0, 0.01, (num_inputs, num_output...
kang9kang/DL-learning
torch-learning/DL-basics/softmaxTest.py
softmaxTest.py
py
1,605
python
en
code
1
github-code
6
[ { "api_name": "sys.path.append", "line_number": 5, "usage_type": "call" }, { "api_name": "sys.path", "line_number": 5, "usage_type": "attribute" }, { "api_name": "d2lzh_pytorch.load_data_fashion_mnist", "line_number": 9, "usage_type": "call" }, { "api_name": "torc...
26818107094
import RPi.GPIO as GPIO import time import requests #GPIO Mode (BOARD / BCM) GPIO.setmode(GPIO.BCM) #set GPIO Pins GPIO_TRIGGER = 18 GPIO_ECHO = 24 #set GPIO direction (IN / OUT) GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_ECHO, GPIO.IN) def distance(): # set Trigger to HIGH GPIO...
semba77/utrasonic
PSS/ultrasonic_distance.py
ultrasonic_distance.py
py
1,684
python
en
code
0
github-code
6
[ { "api_name": "RPi.GPIO.setmode", "line_number": 6, "usage_type": "call" }, { "api_name": "RPi.GPIO", "line_number": 6, "usage_type": "name" }, { "api_name": "RPi.GPIO.BCM", "line_number": 6, "usage_type": "attribute" }, { "api_name": "RPi.GPIO.setup", "line_n...
447934940
import urllib2 import pprint from bs4 import BeautifulSoup import json url=urllib2.urlopen("http://www.hmc.iitkgp.ac.in/web/boarders-list-ug/") content=url.read() soup=BeautifulSoup(content,"html.parser") data=[] table=soup.find_all('table',id="boarderUG") target=open("write.txt","w") for line in table: for row ...
Vipul999ujawane/stud-search
req.py
req.py
py
924
python
en
code
4
github-code
6
[ { "api_name": "urllib2.urlopen", "line_number": 6, "usage_type": "call" }, { "api_name": "bs4.BeautifulSoup", "line_number": 10, "usage_type": "call" }, { "api_name": "pprint.PrettyPrinter", "line_number": 36, "usage_type": "call" }, { "api_name": "json.dumps", ...
11319656017
# from scrapy import log from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from bird.items import BirdItem from scrapy.http import Request import time # from scrapy import log # from bird.pipelines import * flag=7 ISOTIMEFORMAT='%Y-%m-%dT%X' class BirdSpider(BaseSpider): name ="bird.or...
wjbianjason/wsep
bird/bird/spiders/bird_spider.py
bird_spider.py
py
4,735
python
en
code
0
github-code
6
[ { "api_name": "scrapy.spider.BaseSpider", "line_number": 11, "usage_type": "name" }, { "api_name": "scrapy.selector.HtmlXPathSelector", "line_number": 35, "usage_type": "call" }, { "api_name": "scrapy.http.Request", "line_number": 42, "usage_type": "call" }, { "ap...
73411157628
from airflow.models import BaseOperator from airflow.models import Variable from hooks.db.oracle_helper import OracleHelper class OracleGetResults(BaseOperator): """ It was necessary to split an operator from branchOperator in an operator (this) and in another function (check_if_contains_data_in_oracle) ...
brunocampos01/data-paths
projects/data_lake/hadoop_airflow/data-pipeline/src/operators/oracle_get_results.py
oracle_get_results.py
py
1,311
python
en
code
11
github-code
6
[ { "api_name": "airflow.models.BaseOperator", "line_number": 7, "usage_type": "name" }, { "api_name": "hooks.db.oracle_helper.OracleHelper", "line_number": 30, "usage_type": "call" }, { "api_name": "airflow.models.Variable.set", "line_number": 35, "usage_type": "call" },...
27341850157
import sqlite3 import json from tqdm import tqdm from dataclasses import dataclass from typing import Optional, Union, List, Tuple from morepython.os_utils import listdir @dataclass class Comment: comment_id: str video_id: str text: str likes: int publish_date: str update_date: str # ...
xenova/commentblock
src/database.py
database.py
py
7,721
python
en
code
23
github-code
6
[ { "api_name": "typing.Optional", "line_number": 28, "usage_type": "name" }, { "api_name": "typing.Optional", "line_number": 29, "usage_type": "name" }, { "api_name": "dataclasses.dataclass", "line_number": 11, "usage_type": "name" }, { "api_name": "json.load", ...
42417158913
from kivy.app import App from kivy.uix.button import Button from kivy.uix.label import Label from kivy.uix.textinput import TextInput from kivy.uix.spinner import Spinner from kivy.uix.gridlayout import GridLayout from kivy.uix.floatlayout import FloatLayout class MainScreen(GridLayout): def __init__(self, **kwarg...
fedosovmu/AndroidApp
main.py
main.py
py
1,068
python
en
code
0
github-code
6
[ { "api_name": "kivy.uix.gridlayout.GridLayout", "line_number": 9, "usage_type": "name" }, { "api_name": "kivy.uix.spinner.Spinner", "line_number": 14, "usage_type": "call" }, { "api_name": "kivy.uix.button.Button", "line_number": 19, "usage_type": "call" }, { "api...
21299354315
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import urlparse import xbmcgui import xbmcplugin import xbmcaddon import xbmc import xbmcvfs import urllib, urllib2, socket, cookielib, re, os, shutil,json import YDStreamExtractor import xml.etree.ElementTree as ET import ssl try: _create_unverified_https_co...
chris21779/repo
plugin.video.vodster/default.py
default.py
py
10,041
python
en
code
null
github-code
6
[ { "api_name": "ssl._create_unverified_context", "line_number": 19, "usage_type": "attribute" }, { "api_name": "ssl._create_default_https_context", "line_number": 25, "usage_type": "attribute" }, { "api_name": "sys.argv", "line_number": 29, "usage_type": "attribute" }, ...
35002555834
from django.http import HttpRequest, HttpResponse, HttpResponseForbidden from rest_framework import generics, permissions, serializers, status from rest_framework.request import Request from rest_framework.response import Response from oauth2_provider.contrib.rest_framework import TokenHasScope from rest_framework impo...
yogavidya/Django-RESTserver-test
Oauth2_test/apis.py
apis.py
py
6,956
python
en
code
0
github-code
6
[ { "api_name": "rest_framework.request.Request", "line_number": 32, "usage_type": "name" }, { "api_name": "django.http.HttpResponseForbidden", "line_number": 34, "usage_type": "call" }, { "api_name": "rest_framework.response.Response", "line_number": 41, "usage_type": "cal...
37504253138
import cv2 import numpy as np import math from imutils.object_detection import non_max_suppression def process_img(img): resize = cv2.resize(img, None, fx=1.0, fy=1.0, interpolation=cv2.INTER_LINEAR) gray = cv2.cvtColor(resize, cv2.COLOR_BGR2GRAY) thresh = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY + c...
thanhtiem/python_something
image_processing.py
image_processing.py
py
6,550
python
en
code
0
github-code
6
[ { "api_name": "cv2.resize", "line_number": 7, "usage_type": "call" }, { "api_name": "cv2.INTER_LINEAR", "line_number": 7, "usage_type": "attribute" }, { "api_name": "cv2.cvtColor", "line_number": 8, "usage_type": "call" }, { "api_name": "cv2.COLOR_BGR2GRAY", "...
38033158362
import logging import os import pandas as pd from azure.kusto.data import KustoClient, KustoConnectionStringBuilder from azure.kusto.data.helpers import dataframe_from_result_table from azure.storage.blob import BlobServiceClient import azure.functions as func app = func.FunctionApp() def main()->None: AAD_TENANT...
ab00935243/scheduletimertrigger
__init__.py
__init__.py
py
2,442
python
en
code
0
github-code
6
[ { "api_name": "azure.functions.FunctionApp", "line_number": 9, "usage_type": "call" }, { "api_name": "azure.functions", "line_number": 9, "usage_type": "name" }, { "api_name": "os.environ", "line_number": 12, "usage_type": "attribute" }, { "api_name": "os.environ"...
22930850030
from setuptools import setup, find_packages import datetime as dt package_nm = 'runtime_client' __version__ = "0.1.1" base_requires = [ "argparse >= 1.4.0", # "kfserving>=0.5.1", "dill >= 0.3.3", "joblib", "numpy", "pandas", "numba", ] tests_require = [ 'pytest', 'pytest-asyncio...
pydemia/kfserving-templates
packages/runtime_client/setup.py
setup.py
py
1,332
python
en
code
0
github-code
6
[ { "api_name": "datetime.datetime.now", "line_number": 36, "usage_type": "call" }, { "api_name": "datetime.datetime", "line_number": 36, "usage_type": "attribute" }, { "api_name": "setuptools.setup", "line_number": 45, "usage_type": "call" }, { "api_name": "setupto...
43690134163
from records import Records import csv class Builder: __mid_temp: float __precipitation: float __station_id: str __wind_force: int __year: int __month: int __day: int __rel_hum: float __max_temp: float __min_temp: float def _clear(self): self.__mid_temp = .0 ...
Velnbur/CWRR
src/builder.py
builder.py
py
2,476
python
en
code
0
github-code
6
[ { "api_name": "records.Records", "line_number": 29, "usage_type": "name" }, { "api_name": "csv.reader", "line_number": 31, "usage_type": "call" }, { "api_name": "records.append_record", "line_number": 50, "usage_type": "call" } ]