repo_name stringlengths 7 94 | repo_path stringlengths 4 237 | repo_head_hexsha stringlengths 40 40 | content stringlengths 10 680k | apis stringlengths 2 840k |
|---|---|---|---|---|
mtsolmn/lantz-drivers | lantz/drivers/sacher/Sacher_EPOS.py | f48caf9000ddd08f2abb837d832e341410af4788 | # sacher_epos.py, python wrapper for sacher epos motor
# David Christle <christle@uchicago.edu>, August 2014
#
"""
Possbily Maxon EPOS now
"""
"""
This is the actual version that works
But only in the lab32 virtual environment
"""
# from instrument import Instrument
# import qt
import ctypes
import ctypes.wintypes
i... | [((67, 10, 67, 90), 'ctypes.windll.LoadLibrary', 'ctypes.windll.LoadLibrary', ({(67, 36, 67, 89): '"""C:\\\\Users\\\\Carbro\\\\Desktop\\\\Charmander\\\\EposCmd.dll"""'}, {}), "('C:\\\\Users\\\\Carbro\\\\Desktop\\\\Charmander\\\\EposCmd.dll'\n )", False, 'import ctypes\n'), ((253, 13, 253, 23), 'numpy.ceil', 'np.ceil... |
haotianliu001/HRNet-Lesion | tools/generate_lst.py | 9dae108879456e084b2200e39d7e58c1c08c2b16 | import argparse
import os
image_dir = 'image'
label_dir = 'label'
splits = ['train', 'val', 'test']
image_dirs = [
'image/{}',
'image/{}_crop'
]
label_dirs = [
'label/{}/annotations',
'label/{}/annotations_crop',
]
def generate(root):
assert len(image_dirs) == len(label_dirs)
for split in sp... | [((50, 13, 50, 38), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ({}, {}), '()', False, 'import argparse\n'), ((32, 36, 32, 66), 'os.path.join', 'os.path.join', ({(32, 49, 32, 53): 'root', (32, 55, 32, 65): 'label_path'}, {}), '(root, label_path)', False, 'import os\n'), ((28, 34, 28, 64), 'os.path.join', 'os.... |
f-dangel/unfoldNd | examples/example.py | 63e9abc4867d8678c2ac00da567dc106e9f6f2c7 | """How to use ``unfoldNd``. A comparison with ``torch.nn.Unfold``."""
# imports, make this example deterministic
import torch
import unfoldNd
torch.manual_seed(0)
# random batched RGB 32x32 image-shaped input tensor of batch size 64
inputs = torch.randn((64, 3, 32, 32))
# module hyperparameters
kernel_size = 3
dil... | [((8, 0, 8, 20), 'torch.manual_seed', 'torch.manual_seed', ({(8, 18, 8, 19): '(0)'}, {}), '(0)', False, 'import torch\n'), ((11, 9, 11, 37), 'torch.randn', 'torch.randn', ({(11, 21, 11, 36): '(64, 3, 32, 32)'}, {}), '((64, 3, 32, 32))', False, 'import torch\n'), ((20, 15, 22, 1), 'torch.nn.Unfold', 'torch.nn.Unfold', (... |
NicsTr/pretix | src/pretix/helpers/escapejson.py | e6d2380d9ed1836cc64a688b2be20d00a8500eab | from django.utils.encoding import force_str
from django.utils.functional import keep_lazy
from django.utils.safestring import SafeText, mark_safe
_json_escapes = {
ord('>'): '\\u003E',
ord('<'): '\\u003C',
ord('&'): '\\u0026',
}
_json_escapes_attr = {
ord('>'): '\\u003E',
ord('<'): '\\u003C',
... | [((21, 1, 21, 25), 'django.utils.functional.keep_lazy', 'keep_lazy', ({(21, 11, 21, 14): 'str', (21, 16, 21, 24): 'SafeText'}, {}), '(str, SafeText)', False, 'from django.utils.functional import keep_lazy\n'), ((27, 1, 27, 25), 'django.utils.functional.keep_lazy', 'keep_lazy', ({(27, 11, 27, 14): 'str', (27, 16, 27, 24... |
snowind/pyxley | pyxley/charts/plotly/base.py | cff9e50b8d80b9794c6907355e541f166959cd6c |
from ..charts import Chart
from flask import jsonify, request
_BASE_CONFIG = {
"showLink": False,
"displaylogo": False,
"modeBarButtonsToRemove": ["sendDataToCloud"]
}
class PlotlyAPI(Chart):
""" Base class for Plotly.js API
This class is used to create charts using the plotly.js api
... | [] |
CospanDesign/python | pyqt/getting_started/close_window.py | 9f911509aae7abd9237c14a4635294c7719c9129 | #!/usr/bin/python
import sys
from PyQt4 import QtGui
from PyQt4 import QtCore
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
qbtn = QtGui.QPushButton('Quit', self)
qbtn.clicked.connect(QtCore.QCoreApplication.instance().quit)
... | [((22, 8, 22, 36), 'PyQt4.QtGui.QApplication', 'QtGui.QApplication', ({(22, 27, 22, 35): 'sys.argv'}, {}), '(sys.argv)', False, 'from PyQt4 import QtGui\n'), ((13, 11, 13, 42), 'PyQt4.QtGui.QPushButton', 'QtGui.QPushButton', ({(13, 29, 13, 35): '"""Quit"""', (13, 37, 13, 41): 'self'}, {}), "('Quit', self)", False, 'fro... |
bdecost/gpytorch | test/means/test_zero_mean.py | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import torch
import unittest
from gpytorch.means import ZeroMean
class TestZeroMean(unittest.TestCase):
def setUp(self):
self.mean = ZeroMean()
def tes... | [((13, 20, 13, 30), 'gpytorch.means.ZeroMean', 'ZeroMean', ({}, {}), '()', False, 'from gpytorch.means import ZeroMean\n'), ((16, 12, 16, 42), 'torch.Tensor', 'torch.Tensor', ({(16, 25, 16, 41): '[[1, 2], [2, 4]]'}, {}), '([[1, 2], [2, 4]])', False, 'import torch\n'), ((22, 12, 22, 78), 'torch.Tensor', 'torch.Tensor', ... |
rizzak/python_training | generator/contact.py | 38bbe5d7e38892e8dcc28caeae1481b98cce7356 | import jsonpickle
import random
import string
from model.contact import Contact
import os.path
import getopt
import sys
try:
opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"])
except getopt.GetoptError as err:
getopt.usage()
sys.exit(2)
n = 5
f = "data/contacts.json"
for o,... | [((11, 17, 11, 84), 'getopt.getopt', 'getopt.getopt', ({(11, 31, 11, 43): 'sys.argv[1:]', (11, 45, 11, 51): '"""n:f:"""', (11, 53, 11, 83): "['number of contacts', 'file']"}, {}), "(sys.argv[1:], 'n:f:', ['number of contacts', 'file'])", False, 'import getopt\n'), ((47, 4, 47, 52), 'jsonpickle.set_encoder_options', 'js... |
arvindm95/unladen-swallow | Lib/test/test_runpy.py | 8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3 | # Test the runpy module
import unittest
import os
import os.path
import sys
import tempfile
from test.test_support import verbose, run_unittest, forget
from runpy import _run_code, _run_module_code, run_module
# Note: This module can't safely test _run_module_as_main as it
# runs its tests in the current process, whic... | [] |
RedisAI/benchmarks | experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py | 65b8509b81795da73f25f51941c61fbd9765914c | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: imagedata.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [((13, 10, 13, 36), 'google.protobuf.symbol_database.Default', '_symbol_database.Default', ({}, {}), '()', True, 'from google.protobuf import symbol_database as _symbol_database\n'), ((43, 4, 49, 47), 'google.protobuf.descriptor.FieldDescriptor', '_descriptor.FieldDescriptor', (), '', True, 'from google.protobuf import... |
akashtalole/python-flask-restful-api | app/api/admin_sales/discounted.py | 475d8fd7be1724183716a197aac4257f8fbbeac4 | from sqlalchemy import func
from flask_rest_jsonapi import ResourceList
from marshmallow_jsonapi import fields
from marshmallow_jsonapi.flask import Schema
from app.api.helpers.utilities import dasherize
from app.api.bootstrap import api
from app.models import db
from app.models.discount_code import DiscountCode
from ... | [((48, 9, 48, 24), 'marshmallow_jsonapi.fields.String', 'fields.String', ({}, {}), '()', False, 'from marshmallow_jsonapi import fields\n'), ((49, 11, 49, 26), 'marshmallow_jsonapi.fields.String', 'fields.String', ({}, {}), '()', False, 'from marshmallow_jsonapi import fields\n'), ((50, 12, 50, 27), 'marshmallow_jsonap... |
g4brielvs/spaCy | spacy/lang/sr/__init__.py | cca8651fc8133172ebaa9d9fc438ed1fbf34fb33 | from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .lex_attrs import LEX_ATTRS
from ...language import Language
class SerbianDefaults(Language.Defaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS
class Ser... | [] |
TJUsym/TJU_Advanced_CV_Homework | mmdet/ops/dcn/__init__.py | 2d85943390e9ba53b80988e0ab8d50aef0cd17da | from .functions.deform_conv import deform_conv, modulated_deform_conv
from .functions.deform_pool import deform_roi_pooling
from .modules.deform_conv import (DeformConv, ModulatedDeformConv,
DeformConvPack, ModulatedDeformConvPack)
from .modules.deform_pool import (DeformRoIPooling, De... | [] |
zaubermaerchen/imas_cg_api | api/skill/serializer.py | 45ebdde8c47ff4fabbf58b75721721f142afb46b | # coding: utf-8
from rest_framework import serializers
from data.models import Skill, SkillValue
class ListSerializer(serializers.ModelSerializer):
skill_value_list = serializers.SerializerMethodField(read_only=True)
class Meta:
model = Skill
fields = [
'skill_id',
'ta... | [((7, 23, 7, 72), 'rest_framework.serializers.SerializerMethodField', 'serializers.SerializerMethodField', (), '', False, 'from rest_framework import serializers\n'), ((35, 11, 35, 48), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((36, 12,... |
sichkar-valentyn/Image_processing_in_Python | Codes/Converting_RGB_to_GreyScale.py | 43d7c979bcd742cc202a28c2dea6ea5bc87562a2 | # File: Converting_RGB_to_GreyScale.py
# Description: Opening RGB image as array, converting to GreyScale and saving result into new file
# Environment: PyCharm and Anaconda environment
#
# MIT License
# Copyright (c) 2018 Valentyn N Sichkar
# github.com/sichkar-valentyn
#
# Reference to:
# Valentyn N Sichkar. Image pr... | [((27, 12, 27, 42), 'PIL.Image.open', 'Image.open', ({(27, 23, 27, 41): '"""images/eagle.jpg"""'}, {}), "('images/eagle.jpg')", False, 'from PIL import Image\n'), ((28, 11, 28, 30), 'numpy.array', 'np.array', ({(28, 20, 28, 29): 'image_RGB'}, {}), '(image_RGB)', True, 'import numpy as np\n'), ((41, 8, 41, 38), 'matplot... |
hamza-gheggad/gcp-iam-collector | template_renderer.py | 02b46453b9ec23af07a0d81f7250f1de61e0ee23 | import colorsys
import json
from jinja2 import Environment, PackageLoader
import graph
def create_html(formatted_nodes, formatted_edges, role_color_map, output_name):
env = Environment(loader=PackageLoader('visualisation', '.'))
template = env.get_template('visualisation.template')
default_filters = list... | [((11, 27, 11, 55), 'graph.type_properties.keys', 'graph.type_properties.keys', ({}, {}), '()', False, 'import graph\n'), ((9, 29, 9, 64), 'jinja2.PackageLoader', 'PackageLoader', ({(9, 43, 9, 58): '"""visualisation"""', (9, 60, 9, 63): '"""."""'}, {}), "('visualisation', '.')", False, 'from jinja2 import Environment, ... |
danglotb/powerapi | powerapi/cli/tools.py | 67b2508588bfe1e20d90f9fe6bccda34d3455262 | # Copyright (c) 2018, INRIA
# Copyright (c) 2018, University of Lille
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, t... | [((63, 8, 63, 33), 'powerapi.cli.parser.MainParser.__init__', 'MainParser.__init__', ({(63, 28, 63, 32): 'self'}, {}), '(self)', False, 'from powerapi.cli.parser import MainParser, ComponentSubParser\n'), ((69, 32, 69, 61), 'powerapi.cli.parser.ComponentSubParser', 'ComponentSubParser', ({(69, 51, 69, 60): '"""mongodb"... |
PyXRD/pyxrd | pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | # coding=UTF-8
# ex:ts=4:sw=4:et=on
#
# Copyright (c) 2013, Mathijs Dumon
# All rights reserved.
# Complete license can be found in the LICENSE file.
from mvc.models.properties import StringProperty
from pyxrd.generic.io.custom_io import storables, Storable
from pyxrd.generic.models.base import DataModel
from pyxrd.... | [((15, 1, 15, 21), 'pyxrd.generic.io.custom_io.storables.register', 'storables.register', ({}, {}), '()', False, 'from pyxrd.generic.io.custom_io import storables, Storable\n'), ((42, 11, 45, 5), 'mvc.models.properties.StringProperty', 'StringProperty', (), '', False, 'from mvc.models.properties import StringProperty\n... |
vishalbelsare/SLAPP3 | 1 plainProgrammingBug/start 1 plainProgrammingBug.py | da187b771831aaaabaee16a26ad341db2e968104 | # start 1 plainProgrammingBug.py
import random
def SimpleBug():
# the environment
worldXSize = 80
worldYSize = 80
# the bug
xPos = 40
yPos = 40
# the action
for i in range(100):
xPos += randomMove()
yPos += randomMove()
xPos = (xPos + worldX... | [((27, 11, 27, 32), 'random.randint', 'random.randint', ({(27, 26, 27, 28): '(-1)', (27, 30, 27, 31): '(1)'}, {}), '(-1, 1)', False, 'import random\n')] |
kjco/bioinformatics-algorithms | ba5a-min-coins/money_change.py | 3c466157b89c1cbd54749563e39d86a307d7a3f3 |
money = 8074
#money = 18705
#coin_list = [24,23,21,5,3,1]
coin_list = [24,13,12,7,5,3,1]
#coin_list = map(int, open('dataset_71_8.txt').read().split(','))
d = {0:0}
for m in range(1,money+1):
min_coin = 1000000
for coin in coin_list:
if m >= coin:
if d[m-coin]+1 < min_coin:... | [] |
igordejanovic/textx-bibtex | examples/remove_comments.py | b1374a39b96da9c1bc979c367b9ed3feb04f4f01 | """
Remove comments from bib file.
"""
from textx import metamodel_for_language
from txbibtex import bibentry_str
BIB_FILE = 'references.bib'
bibfile = metamodel_for_language('bibtex').model_from_file(BIB_FILE)
# Drop line comments.
print('\n'.join([bibentry_str(e) for e in bibfile.entries
if e.__cla... | [((8, 10, 8, 42), 'textx.metamodel_for_language', 'metamodel_for_language', ({(8, 33, 8, 41): '"""bibtex"""'}, {}), "('bibtex')", False, 'from textx import metamodel_for_language\n'), ((11, 17, 11, 32), 'txbibtex.bibentry_str', 'bibentry_str', ({(11, 30, 11, 31): 'e'}, {}), '(e)', False, 'from txbibtex import bibentry_... |
bopopescu/Social-Lite | google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py | ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [((39, 1, 39, 44), 'googlecloudsdk.calliope.base.ReleaseTracks', 'base.ReleaseTracks', ({(39, 20, 39, 43): 'base.ReleaseTrack.ALPHA'}, {}), '(base.ReleaseTrack.ALPHA)', False, 'from googlecloudsdk.calliope import base\n'), ((67, 1, 67, 43), 'googlecloudsdk.calliope.base.ReleaseTracks', 'base.ReleaseTracks', ({(67, 20, ... |
notoraptor/paperoni | paperoni/io.py | acdf2d3d790b98d6a171177ffd9d6342f86bc7ea | import json
from .papers import Papers
from .researchers import Researchers
def ResearchersFile(filename):
"""Parse a file containing researchers."""
try:
with open(filename, "r") as file:
data = json.load(file)
except FileNotFoundError:
data = {}
return Researchers(data, ... | [((11, 19, 11, 34), 'json.load', 'json.load', ({(11, 29, 11, 33): 'file'}, {}), '(file)', False, 'import json\n'), ((21, 19, 21, 34), 'json.load', 'json.load', ({(21, 29, 21, 33): 'file'}, {}), '(file)', False, 'import json\n')] |
zachkont/sd2 | src/lib/sd2/test_addresses.py | 92d8c55a8c7ac51c00ba514be01955aa7162e4ef | #############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import logging
import pytest
from . import addresses
def test_pytest():
assert True
def test_object_e... | [] |
Asha-ai/BERT_abstractive_proj | config_model.py | f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9 | import texar.tf as tx
beam_width = 5
hidden_dim = 768
bert = {
'pretrained_model_name': 'bert-base-uncased'
}
# See https://texar.readthedocs.io/en/latest/code/modules.html#texar.tf.modules.BERTEncoder.default_hparams
bert_encoder = {}
# From https://github.com/asyml/texar/blob/413e07f859acbbee979f274b52942edd5... | [((30, 27, 30, 100), 'texar.tf.modules.default_transformer_poswise_net_hparams', 'tx.modules.default_transformer_poswise_net_hparams', (), '', True, 'import texar.tf as tx\n')] |
e-elson/bd | wishes/migrations/0005_auto_20201029_0904.py | e35c59686e5ec81925c22353e269601f286634db | # Generated by Django 3.1.2 on 2020-10-29 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wishes', '0004_auto_20201029_0857'),
]
operations = [
migrations.AlterField(
model_name='gallery',
name='image',
... | [((16, 18, 16, 54), 'django.db.models.FilePathField', 'models.FilePathField', (), '', False, 'from django.db import migrations, models\n')] |
NASA-DEVELOP/dnppy | undeployed/legacy/Landsat/DNtoReflectance.py | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | #-------------------------------------------------------------------------------
# Name: Landsat Digital Numbers to Radiance/Reflectance
# Purpose: To convert landsat 4,5, or 7 pixel values from digital numbers
# to Radiance, Reflectance, or Temperature
# Author: Quinten Geddes Quinte... | [] |
termux-one/EasY_HaCk | .modules/.theHarvester/discovery/twittersearch.py | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | import string
import requests
import sys
import myparser
import re
class search_twitter:
def __init__(self, word, limit):
self.word = word.replace(' ', '%20')
self.results = ""
self.totalresults = ""
self.server = "www.google.com"
self.hostname = "www.google.com"
s... | [] |
genaforvena/nn_scrapper | scrap_instagram.py | 897766a52202aa056afd657995ed39b2b91e1fe2 | import urllib.request
import json
access_token = "265791501.a4af066.f45a9f44719a4b2cb2d137118524e32b"
api_url = "https://api.instagram.com/v1"
nn_lat = 56.296504
nn_lng = 43.936059
def request(endpoint, req_params = ""):
req = api_url + endpoint + "?access_token=" + access_token + "&" + req_params
print(req)
... | [] |
kajusK/HiddenPlaces | tests/unit/utils/test_validators.py | aa976f611a419bc33f8a65f0314956ec09fe2bfd | """Unit tests for app.validators. """
from wtforms import ValidationError
import flask
from pytest import raises
from app.utils.validators import password_rules, image_file, allowed_file
class DummyField(object):
"""Dummy field object to emulate wtforms field."""
def __init__(self, data=None, errors=(), raw_d... | [((60, 16, 60, 30), 'app.utils.validators.allowed_file', 'allowed_file', ({}, {}), '()', False, 'from app.utils.validators import password_rules, image_file, allowed_file\n'), ((73, 16, 73, 30), 'app.utils.validators.allowed_file', 'allowed_file', ({}, {}), '()', False, 'from app.utils.validators import password_rules,... |
vshulyak/ts-eval | ts_eval/utils/nans.py | 2049b1268cf4272f5fa1471851523f8da14dd84c | import warnings
import numpy as np
def nans_in_same_positions(*arrays):
"""
Compares all provided arrays to see if they have NaNs in the same positions.
"""
if len(arrays) == 0:
return True
for arr in arrays[1:]:
if not (np.isnan(arrays[0]) == np.isnan(arr)).all():
ret... | [((22, 9, 22, 34), 'warnings.catch_warnings', 'warnings.catch_warnings', ({}, {}), '()', False, 'import warnings\n'), ((23, 8, 23, 64), 'warnings.simplefilter', 'warnings.simplefilter', (), '', False, 'import warnings\n'), ((24, 15, 24, 41), 'numpy.nanmean', 'np.nanmean', (), '', True, 'import numpy as np\n'), ((13, 16... |
UOC/dlkit | tests/authorization/test_searches.py | a9d265db67e81b9e0f405457464e762e2c03f769 | """Unit tests of authorization searches."""
import pytest
from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only
from dlkit.abstract_osid.osid import errors
from dlkit.primordium.id.primitives import Id
from dlkit.primordium.type.primitives import Type
from dlkit.runtime ... | [((15, 10, 15, 39), 'dlkit.runtime.proxy_example.SimpleRequest', 'proxy_example.SimpleRequest', ({}, {}), '()', False, 'from dlkit.runtime import PROXY_SESSION, proxy_example\n'), ((16, 12, 16, 47), 'dlkit.runtime.PROXY_SESSION.get_proxy_condition', 'PROXY_SESSION.get_proxy_condition', ({}, {}), '()', False, 'from dlki... |
keceli/mechdriver | mechroutines/models/_flux.py | 978994ba5c77b6df00078b639c4482dacf269440 | """
NEW: Handle flux files
"""
import autofile
def read_flux(ts_save_path, vrc_locs=(0,)):
""" Read the geometry from the filesys
"""
vrc_fs = autofile.fs.vrctst(ts_save_path)
if vrc_fs[-1].file.flux.exists(vrc_locs):
flux_str = vrc_fs[-1].file.flux.read(vrc_locs)
else:
flux_st... | [((12, 13, 12, 45), 'autofile.fs.vrctst', 'autofile.fs.vrctst', ({(12, 32, 12, 44): 'ts_save_path'}, {}), '(ts_save_path)', False, 'import autofile\n')] |
nachiket273/ML_Algo_Implemented | RandomForest/RandomForest.py | 74ae47fdf620545fdf8c934c5997784faadaebb7 | import math
import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator
import sys
import os
sys.path.append(os.path.abspath('../DecisionTree'))
from DecisionTree import DecisionTree
class RandomForest(BaseEstimator):
"""
Simple implementation of Random Forest.
This class has implementat... | [((7, 16, 7, 50), 'os.path.abspath', 'os.path.abspath', ({(7, 32, 7, 49): '"""../DecisionTree"""'}, {}), "('../DecisionTree')", False, 'import os\n'), ((73, 13, 73, 43), 'numpy.concatenate', 'np.concatenate', (), '', True, 'import numpy as np\n'), ((75, 8, 75, 29), 'numpy.random.shuffle', 'np.random.shuffle', ({(75, 26... |
iotctl/pycopy | tests/basics/generator_pend_throw.py | eeb841afea61b19800d054b3b289729665fc9aa4 | def gen():
i = 0
while 1:
yield i
i += 1
g = gen()
try:
g.pend_throw
except AttributeError:
print("SKIP")
raise SystemExit
print(next(g))
print(next(g))
g.pend_throw(ValueError())
v = None
try:
v = next(g)
except Exception as e:
print("raised", repr(e))
print("ret was:"... | [] |
USArmyResearchLab/ARL_Battlespace | src/UnitTypes/ProjectileModule.py | 2f17a478f62c20a4db387d5d3e4bbeaa3197cd49 | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 15 09:49:47 2020
@author: james.z.hare
"""
from src.UnitModule import UnitClass, advance
from copy import deepcopy
import math
class ProjectileClass(UnitClass):
"""
The Projectile Class
This is a subclass to the UnitClass
Virtual Functions
----... | [((56, 8, 56, 65), 'src.UnitModule.UnitClass.__init__', 'UnitClass.__init__', (), '', False, 'from src.UnitModule import UnitClass, advance\n'), ((76, 29, 76, 58), 'copy.deepcopy', 'deepcopy', ({(76, 38, 76, 51): 'self.Position', (76, 53, 76, 57): 'memo'}, {}), '(self.Position, memo)', False, 'from copy import deepcopy... |
HelloYeew/helloyeew-lab-computer-programming-i | OOP_MiniQuiz/run_car_Level2.py | 60b05072f32f23bab4a336b506ba7f66e52c045d | from car import *
def compare(car1,car2):
print(car1)
print(car2)
car1 = Car("Nissan","Tiida",450000)
car2 = Car("Toyota","Vios",400000)
car3 = Car("BMW","X3",3400000)
compare(car3,car1)
compare(car1,car2) | [] |
michel-slm/python-prelude | prelude/monads.py | b3ca89ff2bf150f772764f59d2796d2fcce1013d | from abc import ABCMeta, abstractmethod
from prelude.typeclasses import Monad
from prelude.decorators import monad_eq, singleton
@monad_eq
class Either(Monad):
__metaclass__ = ABCMeta
@classmethod
def mreturn(cls, val):
return Right(val)
@abstractmethod
def __iter__(self):
pass
c... | [] |
JJavier98/TFG-Dron-de-Vigilancia | Deep Sort/src/imgconverter.py | 7fd68a981854ac480ad2f0c936a0dd58d2a9f38b | #!/usr/bin/env python
from __future__ import print_function
import roslib
roslib.load_manifest('msgs_to_cv2')
import sys
import rospy
import cv2
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
class image_converter:
def __init__(self):
self.bridge... | [] |
Food-X-Technologies/foodx_devops_tools | foodx_devops_tools/azure/__init__.py | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | # Copyright (c) 2021 Food-X Technologies
#
# This file is part of foodx_devops_tools.
#
# You should have received a copy of the MIT License along with
# foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>.
"""Azure related utilities."""
| [] |
posita/beartype | beartype/vale/__init__.py | e56399686e1f2ffd5128a4030b19314504e32450 | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2021 Beartype authors.
# See "LICENSE" for further details.
'''
**Beartype validators.**
This submodule publishes a PEP-compliant hierarchy of subscriptable (indexable)
classes enabling callers ... | [((46, 5, 46, 30), 'beartype.vale._is._valeis._IsFactory', '_IsFactory', (), '', False, 'from beartype.vale._is._valeis import _IsFactory\n'), ((47, 9, 47, 42), 'beartype.vale._is._valeisobj._IsAttrFactory', '_IsAttrFactory', (), '', False, 'from beartype.vale._is._valeisobj import _IsAttrFactory\n'), ((48, 10, 48, 45)... |
movermeyer/cellardoor | tests/test_authentication.py | 25192b07224ff7bd33fd29ebac07340bef53a2ed | import unittest
from mock import Mock
import base64
from cellardoor import errors
from cellardoor.authentication import *
from cellardoor.authentication.basic import BasicAuthIdentifier
class FooIdentifier(Identifier):
pass
class BarAuthenticator(Authenticator):
pass
class TestAuthentication(unittest.TestCase... | [((37, 24, 37, 48), 'mock.Mock', 'Mock', (), '', False, 'from mock import Mock\n'), ((39, 31, 39, 55), 'mock.Mock', 'Mock', (), '', False, 'from mock import Mock\n'), ((40, 8, 40, 29), 'mock.Mock', 'Mock', (), '', False, 'from mock import Mock\n'), ((50, 20, 50, 43), 'mock.Mock', 'Mock', (), '', False, 'from mock impor... |
somritabanerjee/speedplusbaseline | src/styleaug/__init__.py | 5913c611d8c182ad8070abcf5f1baffc554dfd90 | from .styleAugmentor import StyleAugmentor | [] |
Westlake-AI/openmixup | configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py | ea81250819e740dd823e30cb7ce382d14a3c1b91 | _base_ = [
'../../../_base_/datasets/imagenet/swin_sz224_4xbs256.py',
'../../../_base_/default_runtime.py',
]
# model settings
model = dict(
type='MixUpClassification',
pretrained=None,
alpha=0.2,
mix_mode="cutmix",
mix_args=dict(
attentivemix=dict(grid_size=32, top_k=None, beta=8),... | [] |
PaNOSC-ViNYL/McStasScript | mcstasscript/interface/reader.py | bd94ebc6cac290c3c9662871df40d76edbe4a44e | import os
from mcstasscript.instr_reader.control import InstrumentReader
from mcstasscript.interface.instr import McStas_instr
class McStas_file:
"""
Reader of McStas files, can add to an existing McStasScript
instrument instance or create a corresponding McStasScript python
file.
Methods
---... | [((37, 22, 37, 48), 'mcstasscript.instr_reader.control.InstrumentReader', 'InstrumentReader', ({(37, 39, 37, 47): 'filename'}, {}), '(filename)', False, 'from mcstasscript.instr_reader.control import InstrumentReader\n'), ((71, 11, 71, 35), 'os.path.isfile', 'os.path.isfile', ({(71, 26, 71, 34): 'filename'}, {}), '(fil... |
ucsd-progsys/csolve-bak | src/regrtest.py | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | #!/usr/bin/python
# Copyright (c) 2009 The Regents of the University of California. All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and its documentation for any purpose, provided that the
# abov... | [] |
NathanMH/ComputerClub | country_capital_guesser.py | 197585c1a77f71ee363547740d6e09f945e7526f | #! /usr/bin/env python3
#######################
"""####################
Index:
1. Imports and Readme
2. Functions
3. Main
4. Testing
####################"""
#######################
###################################################################
# 1. IMPORTS AND README
#############################... | [((25, 0, 25, 26), 'country_list_getter.main', 'country_list_getter.main', ({}, {}), '()', False, 'import country_list_getter\n'), ((29, 11, 29, 89), 'easygui.ynbox', 'easygui.ynbox', ({(29, 25, 29, 54): '"""Do you want to play a game?"""', (29, 56, 29, 73): '"""Country Guesser"""', (29, 75, 29, 88): "('Yes', 'No')"}, ... |
aframires/freesound-loop-annotator | data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py | a24e0c23bfc671e41e8627150e7b9fcae5c8cb13 | # Need this to import from parent directory when running outside pycharm
import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
from ac_utils.general import save_to_json, load_from_json
import click
import xml.etree.ElementTree
from urllib import unquote
def find_c... | [((28, 1, 28, 16), 'click.command', 'click.command', ({}, {}), '()', False, 'import click\n'), ((29, 1, 29, 31), 'click.argument', 'click.argument', ({(29, 16, 29, 30): '"""dataset_path"""'}, {}), "('dataset_path')", False, 'import click\n'), ((38, 20, 38, 80), 'os.path.join', 'os.path.join', ({(38, 33, 38, 45): 'datas... |
SergeoLacruz/inventree-python | inventree/part.py | 94681428f61de4ca51171e685812ebc436b9be42 | # -*- coding: utf-8 -*-
import logging
import re
import inventree.base
import inventree.stock
import inventree.company
import inventree.build
logger = logging.getLogger('inventree')
class PartCategory(inventree.base.InventreeObject):
""" Class representing the PartCategory database model """
URL = 'part/... | [((12, 9, 12, 39), 'logging.getLogger', 'logging.getLogger', ({(12, 27, 12, 38): '"""inventree"""'}, {}), "('inventree')", False, 'import logging\n'), ((140, 14, 140, 46), 're.sub', 're.sub', ({(140, 21, 140, 36): '"""[^a-zA-Z0-9]"""', (140, 38, 140, 40): '""""""', (140, 42, 140, 45): 'key'}, {}), "('[^a-zA-Z0-9]', '',... |
avstarkov/aiohttp | tests/test_web_urldispatcher.py | b0a03cffccf677bf316227522a9b841c15dcb869 | import functools
import os
import shutil
import tempfile
from unittest import mock
from unittest.mock import MagicMock
import pytest
from aiohttp import abc, web
from aiohttp.web_urldispatcher import SystemRoute
@pytest.fixture(scope='function')
def tmp_dir_path(request):
"""
Give a path for a temporary dir... | [((14, 1, 14, 33), 'pytest.fixture', 'pytest.fixture', (), '', False, 'import pytest\n'), ((112, 1, 115, 2), 'pytest.mark.parametrize', 'pytest.mark.parametrize', ({(112, 25, 112, 49): '"""dir_name,filename,data"""', (112, 51, 115, 1): "[('', 'test file.txt', 'test text'), ('test dir name', 'test dir file .txt',\n '... |
nairouz/R-GAE | R-GMM-VGAE/model_citeseer.py | acc7bfe36153a4c7d6f68e21a557bb4d99dab639 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Authors : Nairouz Mrabah (mrabah.nairouz@courrier.uqam.ca) & Mohamed Fawzi Touati (touati.mohamed_fawzi@courrier.uqam.ca)
# @Paper : Rethinking Graph Autoencoder Models for Attributed Graph Clustering
# @License : MIT License
import torch
import numpy as np
import tor... | [((22, 17, 22, 56), 'numpy.sqrt', 'np.sqrt', ({(22, 25, 22, 55): '6.0 / (input_dim + output_dim)'}, {}), '(6.0 / (input_dim + output_dim))', True, 'import numpy as np\n'), ((42, 18, 42, 41), 'numpy.zeros', 'np.zeros', ({(42, 27, 42, 40): '(q.shape[0],)'}, {}), '((q.shape[0],))', True, 'import numpy as np\n'), ((43, 8, ... |
VaibhavBhujade/Blockchain-ERP-interoperability | odoo-13.0/addons/stock_account/models/account_chart_template.py | b5190a037fb6615386f7cbad024d51b0abd4ba03 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models, _
import logging
_logger = logging.getLogger(__name__)
class AccountChartTemplate(models.Model):
_inherit = "account.chart.template"
@api.model
def generate_journals(self, ac... | [((7, 10, 7, 37), 'logging.getLogger', 'logging.getLogger', ({(7, 28, 7, 36): '__name__'}, {}), '(__name__)', False, 'import logging\n'), ((15, 35, 15, 59), 'odoo._', '_', ({(15, 37, 15, 58): '"""Inventory Valuation"""'}, {}), "('Inventory Valuation')", False, 'from odoo import api, models, _\n')] |
BarneyQiao/pcl.pytorch | lib/roi_data/loader.py | 4e0280e5e1470f705e620eda26f881d627c5016c | import math
import numpy as np
import numpy.random as npr
import torch
import torch.utils.data as data
import torch.utils.data.sampler as torch_sampler
from torch.utils.data.dataloader import default_collate
from torch._six import int_classes as _int_classes
from core.config import cfg
from roi_data.minibatch import ... | [((51, 27, 51, 49), 'numpy.empty', 'np.empty', ({(51, 36, 51, 48): '(DATA_SIZE,)'}, {}), '((DATA_SIZE,))', True, 'import numpy as np\n'), ((27, 23, 27, 66), 'roi_data.minibatch.get_minibatch', 'get_minibatch', ({(27, 37, 27, 46): 'single_db', (27, 48, 27, 65): 'self._num_classes'}, {}), '(single_db, self._num_classes)'... |
andywu113/fuhe_predict | venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py | 7fd816ae83467aa659d420545cd3e25a5e933d5f | import warnings
from distutils.version import LooseVersion
import numpy as np
import pytest
from scipy import linalg
from sklearn.model_selection import train_test_split
from sklearn.utils.testing import assert_allclose
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import ass... | [((24, 11, 24, 35), 'sklearn.datasets.load_diabetes', 'datasets.load_diabetes', ({}, {}), '()', False, 'from sklearn import linear_model, datasets\n'), ((26, 4, 26, 18), 'numpy.dot', 'np.dot', ({(26, 11, 26, 14): 'X.T', (26, 16, 26, 17): 'X'}, {}), '(X.T, X)', True, 'import numpy as np\n'), ((27, 5, 27, 19), 'numpy.dot... |
FeroxTL/pynginxconfig-new | parser.py | 71cb78c635930b0a764d3274646d436e8d2f1c4d | #coding: utf8
import copy
import re
from blocks import Block, EmptyBlock, KeyValueOption, Comment, Location
def parse(s, parent_block):
config = copy.copy(s)
pos, brackets_level, param_start = 0, 0, 0
while pos < len(config):
if config[pos] == '#' and brackets_level == 0:
re_sharp_co... | [((66, 6, 66, 18), 'blocks.EmptyBlock', 'EmptyBlock', ({}, {}), '()', False, 'from blocks import Block, EmptyBlock, KeyValueOption, Comment, Location\n'), ((89, 6, 89, 18), 'blocks.EmptyBlock', 'EmptyBlock', ({}, {}), '()', False, 'from blocks import Block, EmptyBlock, KeyValueOption, Comment, Location\n'), ((9, 13, 9,... |
triompha/EarthWarrior3D | cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py | d68a347902fa1ca1282df198860f5fb95f326797 | import os
import subprocess
import sys
print 'Build Config:'
print ' Host:win7 x86'
print ' Branch:develop'
print ' Target:win32'
print ' "%VS110COMNTOOLS%..\IDE\devenv.com" "build\cocos2d-win32.vc2012.sln" /Build "Debug|Win32"'
if(os.path.exists('build/cocos2d-win32.vc2012.sln') == False):
node_... | [] |
NumberAI/python-bandwidth-iris | iris_sdk/models/data/ord/rate_center_search_order.py | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.ord.rate_center_search_order import \
RateCenterSearchOrderMap
class RateCenterSearchOrder(RateCenterSearchOrderMap, BaseData):
pass | [] |
thanusha22/CEC-1 | optimizer.py | 02ad9247b006a348cc871a5714cf5abfa4a516af |
from pathlib import Path
import optimizers.PSO as pso
import optimizers.MVO as mvo
import optimizers.GWO as gwo
import optimizers.MFO as mfo
import optimizers.CS as cs
import optimizers.BAT as bat
import optimizers.WOA as woa
import optimizers.FFA as ffa
import optimizers.SSA as ssa
import optimizers.GA as ga
import o... | [((26, 0, 26, 38), 'warnings.simplefilter', 'warnings.simplefilter', (), '', False, 'import warnings\n'), ((113, 24, 113, 58), 'time.strftime', 'time.strftime', ({(113, 38, 113, 57): '"""%Y-%m-%d-%H-%M-%S"""'}, {}), "('%Y-%m-%d-%H-%M-%S')", False, 'import time\n'), ((173, 8, 173, 78), 'plot_convergence.run', 'conv_plot... |
slawak/dataclasses-avroschema | tests/fields/test_primitive_types.py | 04e69a176b3e72bfa0acd3edbd044ecd161b1a68 | import dataclasses
import pytest
from dataclasses_avroschema import fields
from . import consts
@pytest.mark.parametrize("primitive_type", fields.PYTHON_INMUTABLE_TYPES)
def test_primitive_types(primitive_type):
name = "a_field"
field = fields.Field(name, primitive_type, dataclasses.MISSING)
avro_type ... | [((10, 1, 10, 73), 'pytest.mark.parametrize', 'pytest.mark.parametrize', ({(10, 25, 10, 41): '"""primitive_type"""', (10, 43, 10, 72): 'fields.PYTHON_INMUTABLE_TYPES'}, {}), "('primitive_type', fields.PYTHON_INMUTABLE_TYPES)", False, 'import pytest\n'), ((19, 1, 19, 73), 'pytest.mark.parametrize', 'pytest.mark.parametr... |
mcx/opensim-core | Bindings/Python/examples/Moco/examplePredictAndTrack.py | c109f8cec3a81c732f335cd39752da6ae573b604 | # -------------------------------------------------------------------------- #
# OpenSim Moco: examplePredictAndTrack.py #
# -------------------------------------------------------------------------- #
# Copyright (c) 2018 Stanford University and the Authors #
# ... | [((35, 3, 35, 38), 'os.getenv', 'os.getenv', ({(35, 13, 35, 37): '"""OPENSIM_USE_VISUALIZER"""'}, {}), "('OPENSIM_USE_VISUALIZER')", False, 'import os\n'), ((41, 12, 41, 24), 'opensim.Model', 'osim.Model', ({}, {}), '()', True, 'import opensim as osim\n'), ((69, 11, 69, 36), 'opensim.CoordinateActuator', 'osim.Coordina... |
aaronFritz2302/ZoomAuto | StorageSystem.py | 41af90dc35104bfea970b6b61694e105a625535c | import sqlite3
from pandas import DataFrame
conn = sqlite3.connect('./data.db',check_same_thread=False)
class DataBase():
cursor = conn.cursor()
def __init__(self):
self.createTable()
def createTable(self):
'''
Creates A Table If it Doesnt Exist
... | [((4, 7, 4, 59), 'sqlite3.connect', 'sqlite3.connect', (), '', False, 'import sqlite3\n')] |
mflaxman10/pymapd | pymapd/_parsers.py | 00b72ae399a0ff829507ee0b3a2b7404f3a06c26 | """
Utility methods for parsing data returned from MapD
"""
import datetime
from collections import namedtuple
from sqlalchemy import text
import mapd.ttypes as T
from ._utils import seconds_to_time
Description = namedtuple("Description", ["name", "type_code", "display_size",
... | [((12, 14, 14, 52), 'collections.namedtuple', 'namedtuple', ({(12, 25, 12, 38): '"""Description"""', (12, 40, 14, 51): "['name', 'type_code', 'display_size', 'internal_size', 'precision', 'scale',\n 'null_ok']"}, {}), "('Description', ['name', 'type_code', 'display_size',\n 'internal_size', 'precision', 'scale', ... |
rohit901/featuretools | featuretools/entityset/entity.py | 20bee224782acf94909c2bf33239fd5332a8c1de | import logging
import warnings
import dask.dataframe as dd
import numpy as np
import pandas as pd
from featuretools import variable_types as vtypes
from featuretools.utils.entity_utils import (
col_is_datetime,
convert_all_variable_data,
convert_variable_data,
get_linked_vars,
infer_variable_types... | [((20, 5, 20, 40), 'featuretools.utils.gen_utils.import_or_none', 'import_or_none', ({(20, 20, 20, 39): '"""databricks.koalas"""'}, {}), "('databricks.koalas')", False, 'from featuretools.utils.gen_utils import import_or_none, is_instance\n'), ((22, 9, 22, 52), 'logging.getLogger', 'logging.getLogger', ({(22, 27, 22, 5... |
wilvk/githubdl | githubdl/url_helpers.py | 1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920 | import re
from urllib.parse import urlparse
import logging
def check_url_is_http(repo_url):
predicate = re.compile('^https?://.*$')
match = predicate.search(repo_url)
return False if match is None else True
def check_url_is_ssh(repo_url):
predicate = re.compile(r'^git\@.*\.git$')
match = predicate... | [((6, 16, 6, 43), 're.compile', 're.compile', ({(6, 27, 6, 42): '"""^https?://.*$"""'}, {}), "('^https?://.*$')", False, 'import re\n'), ((11, 16, 11, 45), 're.compile', 're.compile', ({(11, 27, 11, 44): '"""^git\\\\@.*\\\\.git$"""'}, {}), "('^git\\\\@.*\\\\.git$')", False, 'import re\n'), ((16, 18, 16, 36), 'urllib.pa... |
AlsikeE/Ez | RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | import itertools
from ez_lib import ez_flow_tool
from collections import defaultdict
from ez_scheduler import EzScheduler
from ez_lib.ez_ob import CenUpdateInfo, UpdateNext
from misc import constants, logger
from domain.message import *
from collections import deque
from misc import global_vars
import time
import even... | [((14, 8, 14, 62), 'misc.logger.getLogger', 'logger.getLogger', ({(14, 25, 14, 40): '"""cen_scheduler"""', (14, 42, 14, 61): 'constants.LOG_LEVEL'}, {}), "('cen_scheduler', constants.LOG_LEVEL)", False, 'from misc import constants, logger\n'), ((21, 36, 21, 49), 'collections.defaultdict', 'defaultdict', ({}, {}), '()',... |
clovadev/opencv-python | src/trackbar.py | f9c685f8dc658f630a9742f4dd55663bde03fe7d | import numpy as np
import cv2 as cv
def nothing(x):
pass
# Create a black image, a window
img = np.zeros((300, 512, 3), np.uint8)
cv.namedWindow('image')
# create trackbars for color change
cv.createTrackbar('R', 'image', 0, 255, nothing)
cv.createTrackbar('G', 'image', 0, 255, nothing)
cv.createTrackbar('B', ... | [((10, 6, 10, 39), 'numpy.zeros', 'np.zeros', ({(10, 15, 10, 28): '(300, 512, 3)', (10, 30, 10, 38): 'np.uint8'}, {}), '((300, 512, 3), np.uint8)', True, 'import numpy as np\n'), ((11, 0, 11, 23), 'cv2.namedWindow', 'cv.namedWindow', ({(11, 15, 11, 22): '"""image"""'}, {}), "('image')", True, 'import cv2 as cv\n'), ((1... |
ambertests/adventofcode | aoc_2015/src/day20.py | 140ed1d71ed647d30d1e6572964cab1e89dfd105 | from functools import reduce
# https://stackoverflow.com/questions/6800193/what-is-the-most-efficient-way-of-finding-all-the-factors-of-a-number-in-python
def factors(n):
step = 2 if n%2 else 1
return set(reduce(list.__add__,
([i, n//i] for i in range(1, int(n**0.5)+1, step) if not ... | [] |
jean/labels | setup.py | dcb6f40fb4e222068e302202dd5d7d98b4771e4b | import pathlib
import setuptools
def read(*args: str) -> str:
file_path = pathlib.Path(__file__).parent.joinpath(*args)
return file_path.read_text("utf-8")
setuptools.setup(
name="labels",
version="0.3.0.dev0",
author="Raphael Pierzina",
author_email="raphael@hackebrot.de",
maintainer="R... | [((26, 13, 26, 44), 'setuptools.find_packages', 'setuptools.find_packages', ({(26, 38, 26, 43): '"""src"""'}, {}), "('src')", False, 'import setuptools\n'), ((6, 16, 6, 38), 'pathlib.Path', 'pathlib.Path', ({(6, 29, 6, 37): '__file__'}, {}), '(__file__)', False, 'import pathlib\n')] |
caseywstark/colab | colab/__init__.py | e05293e45a657eda19d733bf05624a1613a7a9b7 | # -*- coding: utf-8 -*-
__about__ = """
This project demonstrates a social networking site. It provides profiles,
friends, photos, blogs, tribes, wikis, tweets, bookmarks, swaps,
locations and user-to-user messaging.
In 0.5 this was called "complete_project".
"""
| [] |
quamilek/ralph | src/ralph/ui/forms/util.py | bf7231ea096924332b874718b33cd1f43f9c783b | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from ralph.business.models import Venture, VentureRole
def all_ventures():
yield '', '---------'
for v in Venture.objects.filter(show_in... | [((25, 13, 28, 13), 'ralph.business.models.VentureRole.objects.order_by', 'VentureRole.objects.order_by', ({(26, 16, 26, 45): '"""-venture__is_infrastructure"""', (26, 47, 26, 62): '"""venture__name"""', (27, 16, 27, 38): '"""parent__parent__name"""', (27, 40, 27, 54): '"""parent__name"""', (27, 56, 27, 62): '"""name""... |
matan-h/friendly | tests/syntax/missing_in_with_for.py | 3ab0fc6541c837271e8865e247750007acdd18fb | for x range(4):
print(x)
| [] |
eventprotocol/event-protocol-webapp | services/users/manage.py | 38ccdc63bc744576ebb3631b7e17cfd4a09216b6 | """
manage.py for flask application
"""
import unittest
import coverage
import os
from flask.cli import FlaskGroup
from project import create_app, db
from project.api.models import User
# Code coverage
COV = coverage.Coverage(
branch=True,
include='project/*',
omit=[
'project/tests/*',
'p... | [((14, 6, 21, 1), 'coverage.Coverage', 'coverage.Coverage', (), '', False, 'import coverage\n'), ((25, 6, 25, 18), 'project.create_app', 'create_app', ({}, {}), '()', False, 'from project import create_app, db\n'), ((26, 6, 26, 39), 'flask.cli.FlaskGroup', 'FlaskGroup', (), '', False, 'from flask.cli import FlaskGroup\... |
erelcan/keras-transformer | keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py | ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f | import os
from keras.callbacks import ModelCheckpoint
from keras_transformer.training.custom_callbacks.CustomCallbackABC import CustomCallbackABC
from keras_transformer.utils.io_utils import save_to_pickle
class CustomCheckpointer(ModelCheckpoint, CustomCallbackABC):
def __init__(self, workspace_path, artifacts,... | [((10, 25, 10, 77), 'os.path.join', 'os.path.join', ({(10, 38, 10, 52): 'workspace_path', (10, 54, 10, 76): '"""model-{epoch:01d}.h5"""'}, {}), "(workspace_path, 'model-{epoch:01d}.h5')", False, 'import os\n')] |
arashk7/Yolo5_Dataset_Generator | train_test_val.py | aeba58b51201b8521478c777b40c4d31f0c60be9 | import os
import shutil
input_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5'
output_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5\ZhitangYolo5'
in_img_dir = os.path.join(input_dir, 'Images')
in_label_dir = os.path.join(input_dir, 'Labels')
out_img_dir = os.path.join(output_dir, 'images')
out_label_dir = os.path.jo... | [] |
dauden1184/home-assistant | homeassistant/components/media_player/pjlink.py | f4c6d389b77d0efa86644e76604eaea5d21abdb5 | """
Support for controlling projector via the PJLink protocol.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.pjlink/
"""
import logging
import voluptuous as vol
from homeassistant.components.media_player import (
PLATFORM_SCHEMA, SUPP... | [((20, 10, 20, 37), 'logging.getLogger', 'logging.getLogger', ({(20, 28, 20, 36): '__name__'}, {}), '(__name__)', False, 'import logging\n'), ((28, 4, 28, 27), 'voluptuous.Required', 'vol.Required', ({(28, 17, 28, 26): 'CONF_HOST'}, {}), '(CONF_HOST)', True, 'import voluptuous as vol\n'), ((29, 4, 29, 49), 'voluptuous.... |
Kaushalya/algo_journal | leetcode/regex_matching.py | bcea8afda0dc86b36452378e3bcff9b0f57d6856 | # Level: Hard
def isMatch(s: str, p: str) -> bool:
if not p:
return not s
n_s = len(s)
n_p = len(p)
j = 0
i = -1
while i < n_s-1:
i = i+ 1
if j >= n_p:
return False
if p[j] == '*':
while s[i]==s[i-1]:
i += 1
j... | [] |
luzik/waliki | tests/factories.py | b7db696075ceebb5676be61f44e2d806cc472255 | import factory
from django.contrib.auth.models import User, Group, Permission
from waliki.models import ACLRule, Page, Redirect
class UserFactory(factory.django.DjangoModelFactory):
username = factory.Sequence(lambda n: u'user{0}'.format(n))
password = factory.PostGenerationMethodCall('set_password', 'pass')
... | [((8, 15, 8, 71), 'factory.PostGenerationMethodCall', 'factory.PostGenerationMethodCall', ({(8, 48, 8, 62): '"""set_password"""', (8, 64, 8, 70): '"""pass"""'}, {}), "('set_password', 'pass')", False, 'import factory\n'), ((9, 12, 9, 74), 'factory.LazyAttribute', 'factory.LazyAttribute', ({(9, 34, 9, 73): "lambda o: '%... |
dalteocraft/nxt_editor | nxt_editor/commands.py | 18992da7cfa89769568434ec08d787510e09f1c4 | # Built-in
import copy
import logging
import time
# External
from Qt.QtWidgets import QUndoCommand
# Internal
from nxt_editor import colors
from nxt_editor import user_dir
from nxt import nxt_path
from nxt.nxt_layer import LAYERS, SAVE_KEY
from nxt.nxt_node import (INTERNAL_ATTRS, META_ATTRS, get_node_as_dict,
... | [((20, 9, 20, 50), 'logging.getLogger', 'logging.getLogger', ({(20, 27, 20, 49): 'nxt_editor.LOGGER_NAME'}, {}), '(nxt_editor.LOGGER_NAME)', False, 'import logging\n'), ((1657, 21, 1657, 72), 'nxt.nxt_path.str_path_to_node_namespace', 'nxt_path.str_path_to_node_namespace', ({(1657, 57, 1657, 71): 'base_node_path'}, {})... |
libracore/mietrechtspraxis | mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py | 7b2320a70b98b086be136a86b1ab4fadfce215ff | # -*- coding: utf-8 -*-
# Copyright (c) 2021, libracore AG and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from datetime import datetime
from PyPDF2 import PdfFileWriter
from frappe.utils.file_manager im... | [((131, 1, 131, 19), 'frappe.whitelist', 'frappe.whitelist', ({}, {}), '()', False, 'import frappe\n'), ((133, 4, 133, 137), 'frappe.enqueue', 'frappe.enqueue', (), '', False, 'import frappe\n'), ((137, 13, 137, 28), 'PyPDF2.PdfFileWriter', 'PdfFileWriter', ({}, {}), '()', False, 'from PyPDF2 import PdfFileWriter\n'), ... |
Matthias1590/EasySockets | easysockets/client_socket.py | 70d33a04e862b682b87bdf2103bcc1d7da06994e | from .connection import Connection
import socket
class ClientSocket:
def __init__(self) -> None:
self.__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
def connect(self, host: str, port: int) -> Connection:
self.__socket.connect((host, port))
return Connection(self.__socke... | [((7, 24, 7, 73), 'socket.socket', 'socket.socket', ({(7, 38, 7, 52): 'socket.AF_INET', (7, 54, 7, 72): 'socket.SOCK_STREAM'}, {}), '(socket.AF_INET, socket.SOCK_STREAM)', False, 'import socket\n')] |
yurivict/USD | pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | #!/pxrpythonsubst
#
# Copyright 2017 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | [((726, 4, 726, 19), 'unittest.main', 'unittest.main', ({}, {}), '()', False, 'import sys, unittest\n'), ((32, 12, 32, 39), 'pxr.Sdf.Layer.CreateAnonymous', 'Sdf.Layer.CreateAnonymous', ({}, {}), '()', False, 'from pxr import Sdf, Usd, UsdGeom, Vt, Gf, Tf\n'), ((33, 16, 33, 44), 'pxr.Usd.Stage.Open', 'Usd.Stage.Open', ... |
avadavat/round_robin_generator | round_robin_generator/matchup_times.py | 242d522386f6af26db029232fcffb51004ff4c59 | import pandas as pd
from datetime import timedelta
def generate_times(matchup_df: pd.DataFrame, tournament_start_time, game_duration, game_stagger):
time_df = pd.DataFrame(index=matchup_df.index, columns=matchup_df.columns)
if game_stagger == 0:
for round_num in range(time_df.shape[0]):
ro... | [((6, 14, 6, 78), 'pandas.DataFrame', 'pd.DataFrame', (), '', True, 'import pandas as pd\n'), ((10, 49, 10, 95), 'datetime.timedelta', 'timedelta', (), '', False, 'from datetime import timedelta\n'), ((20, 54, 20, 96), 'datetime.timedelta', 'timedelta', (), '', False, 'from datetime import timedelta\n'), ((23, 28, 23, ... |
seisatsu/DennisMUD-ESP32 | src/commands/locate_item.py | b63d4b914c5e8d0f9714042997c64919b20be842 | #######################
# Dennis MUD #
# locate_item.py #
# Copyright 2018-2020 #
# Michael D. Reiley #
#######################
# **********
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal i... | [] |
bcgov-c/wally | modelling/scsb/models/monthly-comparisons.py | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | import json
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
from sklearn.tree import DecisionTreeRegressor
from xgboost import XGBRegressor
from catboost import CatBoostRegressor
from sklearn.model_selection import ... | [((16, 15, 16, 56), 'pandas.read_csv', 'pd.read_csv', ({(16, 27, 16, 55): '"""../data/scsb_all_zones.csv"""'}, {}), "('../data/scsb_all_zones.csv')", True, 'import pandas as pd\n'), ((17, 13, 17, 52), 'pandas.read_csv', 'pd.read_csv', ({(17, 25, 17, 51): '"""../data/scsb_zone_25.csv"""'}, {}), "('../data/scsb_zone_25.c... |
xzhnshng/databricks-zero-to-mlops | src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py | f1691c6f6137ad8b938e64cea4700c7011efb800 | # Databricks notebook source
# MAGIC %md
# MAGIC # XGBoost training
# MAGIC This is an auto-generated notebook. To reproduce these results, attach this notebook to the **10-3-ML-Cluster** cluster and rerun it.
# MAGIC - Compare trials in the [MLflow experiment](#mlflow/experiments/406583024052808/s?orderByKey=metrics.%... | [((17, 0, 17, 110), 'mlflow.set_experiment', 'mlflow.set_experiment', ({(17, 22, 17, 109): '"""/Users/noah.gift@gmail.com/databricks_automl/label_news_articles_csv-2022_03_12-15_38"""'}, {}), "(\n '/Users/noah.gift@gmail.com/databricks_automl/label_news_articles_csv-2022_03_12-15_38'\n )", False, 'import mlflow\n... |
mfinzi/lucky-guess-chemist | lucky_guess/__init__.py | 01898b733dc7d026f70d0cb6337309cb600502fb |
import importlib
import pkgutil
__all__ = []
for loader, module_name, is_pkg in pkgutil.walk_packages(__path__):
module = importlib.import_module('.'+module_name,package=__name__)
try:
globals().update({k: getattr(module, k) for k in module.__all__})
__all__ += module.__all__
except Att... | [((5, 36, 5, 67), 'pkgutil.walk_packages', 'pkgutil.walk_packages', ({(5, 58, 5, 66): '__path__'}, {}), '(__path__)', False, 'import pkgutil\n'), ((6, 13, 6, 70), 'importlib.import_module', 'importlib.import_module', (), '', False, 'import importlib\n')] |
BaptisteLafoux/aztec_tiling | shuffling_algorithm.py | 413acd8751b8178942e91fbee32987f02bc5c695 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 30 22:04:48 2020
@author: baptistelafoux
"""
import domino
import numpy as np
import numpy.lib.arraysetops as aso
def spawn_block(x, y):
if np.random.rand() > 0.5:
d1 = domino.domino(np.array([x, y]), np.array([x + 1, y]), ... | [((48, 17, 48, 34), 'numpy.array', 'np.array', ({(48, 26, 48, 33): '[*grid]'}, {}), '([*grid])', True, 'import numpy as np\n'), ((118, 17, 118, 34), 'numpy.array', 'np.array', ({(118, 26, 118, 33): '[*grid]'}, {}), '([*grid])', True, 'import numpy as np\n'), ((15, 7, 15, 23), 'numpy.random.rand', 'np.random.rand', ({},... |
h3ct0r/gas_mapping_example | scripts/matrix_operations.py | 57bd8333b4832281fbb89019df440374e2b50b9b | import numpy as np
def get_position_of_minimum(matrix):
return np.unravel_index(np.nanargmin(matrix), matrix.shape)
def get_position_of_maximum(matrix):
return np.unravel_index(np.nanargmax(matrix), matrix.shape)
def get_distance_matrix(cell_grid_x, cell_grid_y, x, y):
return np.sqrt((x - cell_grid_x)... | [((13, 11, 13, 67), 'numpy.sqrt', 'np.sqrt', ({(13, 19, 13, 66): '((x - cell_grid_x) ** 2 + (y - cell_grid_y) ** 2)'}, {}), '((x - cell_grid_x) ** 2 + (y - cell_grid_y) ** 2)', True, 'import numpy as np\n'), ((5, 28, 5, 48), 'numpy.nanargmin', 'np.nanargmin', ({(5, 41, 5, 47): 'matrix'}, {}), '(matrix)', True, 'import ... |
biljiang/pyprojects | ShanghaiPower/build_up.py | 10095c6b8f2f32831e8a36e122d1799f135dc5df | from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["license_chk.py"]))
| [((4, 20, 4, 49), 'Cython.Build.cythonize', 'cythonize', ({(4, 30, 4, 48): "['license_chk.py']"}, {}), "(['license_chk.py'])", False, 'from Cython.Build import cythonize\n')] |
yamt/neutron | quantum/plugins/nicira/extensions/nvp_qos.py | f94126739a48993efaf1d1439dcd3dadb0c69742 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Nicira, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/lic... | [((166, 17, 166, 52), 'quantum.manager.QuantumManager.get_plugin', 'manager.QuantumManager.get_plugin', ({}, {}), '()', False, 'from quantum import manager\n'), ((170, 21, 172, 75), 'quantum.api.v2.base.create_resource', 'base.create_resource', (), '', False, 'from quantum.api.v2 import base\n'), ((174, 13, 175, 53), '... |
TrendingTechnology/easyneuron | easyneuron/math/__init__.py | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | """easyneuron.math contains all of the maths tools that you'd ever need for your AI projects, when used alongside Numpy.
To suggest more to be added, please add an issue on the GitHub repo.
"""
from easyneuron.math.distance import euclidean_distance | [] |
shane-breeze/AlphaTwirl | tests/unit/concurrently/test_TaskPackageDropbox_put.py | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | # Tai Sakuma <tai.sakuma@gmail.com>
import pytest
try:
import unittest.mock as mock
except ImportError:
import mock
from alphatwirl.concurrently import TaskPackageDropbox
##__________________________________________________________________||
@pytest.fixture()
def workingarea():
return mock.MagicMock()
@... | [((12, 1, 12, 17), 'pytest.fixture', 'pytest.fixture', ({}, {}), '()', False, 'import pytest\n'), ((16, 1, 16, 17), 'pytest.fixture', 'pytest.fixture', ({}, {}), '()', False, 'import pytest\n'), ((20, 1, 20, 17), 'pytest.fixture', 'pytest.fixture', ({}, {}), '()', False, 'import pytest\n'), ((14, 11, 14, 27), 'mock.Mag... |
gokarslan/networking-odl2 | networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py | 6a6967832b2c02dfcff6a9f0ab6e36472b849ce8 | # Copyright (c) 2017 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [((26, 0, 26, 64), 'oslo_config.cfg.CONF.import_group', 'cfg.CONF.import_group', ({(26, 22, 26, 31): '"""ml2_odl"""', (26, 33, 26, 63): '"""networking_odl.common.config"""'}, {}), "('ml2_odl', 'networking_odl.common.config')", False, 'from oslo_config import cfg\n'), ((33, 8, 33, 69), 'oslo_config.cfg.CONF.set_override... |
Dragonite/djangohat | users/migrations/0002_auto_20191113_1352.py | 68890703b1fc647785cf120ada281d6f3fcc4121 | # Generated by Django 2.2.2 on 2019-11-13 13:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='users',
name='site_key',
fi... | [((16, 18, 16, 118), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n')] |
cjh0613/baserow | premium/backend/src/baserow_premium/api/admin/dashboard/views.py | 62871f5bf53c9d25446976031aacb706c0abe584 | from datetime import timedelta
from django.contrib.auth import get_user_model
from drf_spectacular.utils import extend_schema
from rest_framework.response import Response
from rest_framework.permissions import IsAdminUser
from rest_framework.views import APIView
from baserow.api.decorators import accept_timezone
fr... | [((19, 7, 19, 23), 'django.contrib.auth.get_user_model', 'get_user_model', ({}, {}), '()', False, 'from django.contrib.auth import get_user_model\n'), ((25, 5, 38, 5), 'drf_spectacular.utils.extend_schema', 'extend_schema', (), '', False, 'from drf_spectacular.utils import extend_schema\n'), ((39, 5, 39, 22), 'baserow.... |
dan3612812/socketChatRoom | src/clientOld.py | b0d548477687de2d9fd521826db9ea75e528de5c | # -*- coding: UTF-8 -*-
import sys
import socket
import time
import threading
import select
HOST = '192.168.11.98'
PORT = int(sys.argv[1])
queue = []
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
queue.append(s)
print("add client to queue")
def socketRecv():
while True:
... | [((12, 4, 12, 53), 'socket.socket', 'socket.socket', ({(12, 18, 12, 32): 'socket.AF_INET', (12, 34, 12, 52): 'socket.SOCK_STREAM'}, {}), '(socket.AF_INET, socket.SOCK_STREAM)', False, 'import socket\n'), ((33, 15, 33, 50), 'threading.Thread', 'threading.Thread', (), '', False, 'import threading\n'), ((23, 8, 23, 23), '... |
lukaszlaszuk/insightconnect-plugins | plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Component:
DESCRIPTION = "Import observable(s) into Anomali ThreatStream with approval"
class Input:
FILE = "file"
OBSERVABLE_SETTINGS = "observable_settings"
class Output:
RESULTS = "results"
class ImportObservableI... | [((20, 13, 171, 8), 'json.loads', 'json.loads', ({(20, 24, 171, 7): '"""\n {\n "type": "object",\n "title": "Variables",\n "properties": {\n "file": {\n "$ref": "#/definitions/file",\n "title": "File",\n "description": "File of data to be imported into Anomali ThreatStream",\n "order": 1\n ... |
citrix-openstack-build/trove | trove/tests/unittests/quota/test_quota.py | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [((34, 24, 34, 78), 'trove.quota.models.Resource', 'Resource', ({(34, 33, 34, 51): 'Resource.INSTANCES', (34, 53, 34, 77): '"""max_instances_per_user"""'}, {}), "(Resource.INSTANCES, 'max_instances_per_user')", False, 'from trove.quota.models import Resource\n'), ((35, 22, 35, 72), 'trove.quota.models.Resource', 'Resou... |
viniciusandd/uri-analisador-sintatico | analisador_sintatico/blueprints/api/parsers.py | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | from flask_restful import reqparse
def retornar_parser():
parser = reqparse.RequestParser()
parser.add_argument('sentenca', type=str, required=True)
return parser
| [((4, 13, 4, 37), 'flask_restful.reqparse.RequestParser', 'reqparse.RequestParser', ({}, {}), '()', False, 'from flask_restful import reqparse\n')] |
gunlyungyou/AerialDetection | demo_large_image.py | a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26 | from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections
import mmcv
from mmcv import Config
from mmdet.datasets import get_dataset
import cv2
import os
import numpy as np
from tqdm import tqdm
import DOTA_devkit.polyiou as polyiou
import math
import pdb
CLASS_NAMES_KR = ('소형 선박', '대... | [((21, 9, 21, 38), 'numpy.min', 'np.min', (), '', True, 'import numpy as np\n'), ((22, 9, 22, 38), 'numpy.min', 'np.min', (), '', True, 'import numpy as np\n'), ((23, 9, 23, 38), 'numpy.max', 'np.max', (), '', True, 'import numpy as np\n'), ((24, 9, 24, 38), 'numpy.max', 'np.max', (), '', True, 'import numpy as np\n'),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.