max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
listlengths
7
549k
ee/clickhouse/sql/person.py
wanderlog/posthog
0
8931
<reponame>wanderlog/posthog<gh_stars>0 from ee.clickhouse.sql.clickhouse import KAFKA_COLUMNS, STORAGE_POLICY, kafka_engine from ee.clickhouse.sql.table_engines import CollapsingMergeTree, ReplacingMergeTree from ee.kafka_client.topics import KAFKA_PERSON, KAFKA_PERSON_DISTINCT_ID, KAFKA_PERSON_UNIQUE_ID from posthog.s...
[ 1, 529, 276, 1112, 420, 29958, 29893, 3825, 1188, 29914, 2490, 29882, 468, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 321, 29872, 29889, 3808, 8697, 29889, 2850, 29889, 3808, 8697, 1053, 476, 5098, 29968, 29909, 29918, 15032, ...
backend/src/config.py
Rutvij-1/ASeniorIsAsking
0
123857
<filename>backend/src/config.py REDIS_HOST = "redis" REDIS_PORT = 6379
[ 1, 529, 9507, 29958, 27852, 29914, 4351, 29914, 2917, 29889, 2272, 13, 19386, 3235, 29918, 20832, 353, 376, 1127, 275, 29908, 13, 19386, 3235, 29918, 15082, 353, 29871, 29953, 29941, 29955, 29929, 13, 2 ]
Standard Library/struct/06_unpack_from.py
shubhamnag14/Python-Documents
2
123627
<reponame>shubhamnag14/Python-Documents from struct import Struct struct1 = Struct('@i13sf') sendBytes = b'\x7f\x00\x00\x00Hello Struct!\x00\x00\x00\xc3\xf5H@\x80\x00\x00\x00Hello Python!\x00\x00\x00\x85\xebQ@' print(struct1.unpack_from(sendBytes, 24))
[ 1, 529, 276, 1112, 420, 29958, 845, 431, 3391, 29876, 351, 29896, 29946, 29914, 11980, 29899, 20128, 13, 3166, 2281, 1053, 28771, 13, 13, 4984, 29896, 353, 28771, 877, 29992, 29875, 29896, 29941, 4668, 1495, 13, 6717, 11207, 353, 289, 1...
tests/test_zpl_fx.py
marcovannoord/simple_zpl2
16
165291
import pytest from simple_zpl2 import ZPLDocument def test_comment(): zdoc = ZPLDocument() zdoc.add_comment('Testing Comment') assert zdoc.zpl_bytes == b'^XA\n^FXTesting Comment^FS\n^XZ'
[ 1, 1053, 11451, 1688, 13, 3166, 2560, 29918, 29920, 572, 29906, 1053, 796, 7390, 6268, 13, 13, 13, 1753, 1243, 29918, 9342, 7295, 13, 1678, 503, 1514, 353, 796, 7390, 6268, 580, 13, 1678, 503, 1514, 29889, 1202, 29918, 9342, 877, 3057...
djangae/tests/test_storage.py
julietkb/djangae
467
80438
<gh_stars>100-1000 # coding: utf-8 # STANDARD LIB import os # THIRD PARTY import requests from django.core.files.base import ( ContentFile, File, ) from django.db import models from django.test.utils import override_settings # DJANGAE from djangae.contrib import sleuth from djangae.storage import ( CloudS...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 29937, 6850, 9468, 17011, 365, 8979, 13, 5215, 2897, 13, 13, 29937, 3446, 8193, 29928, 349, ...
tests/components/lateral_erosion/test_node_finder.py
scottrdavid/landlab
257
150445
<filename>tests/components/lateral_erosion/test_node_finder.py import numpy as np import pytest from landlab import RasterModelGrid from landlab.components.lateral_erosion.node_finder import angle_finder @pytest.mark.parametrize( "node_1,node_2", [(12, 8), (13, 3), (8, 2), (3, 1), (6, 2), (11, 1), (12, 6), (...
[ 1, 529, 9507, 29958, 21150, 29914, 14036, 29914, 29880, 1008, 284, 29918, 9672, 291, 29914, 1688, 29918, 3177, 29918, 2886, 261, 29889, 2272, 13, 5215, 12655, 408, 7442, 13, 5215, 11451, 1688, 13, 13, 3166, 2982, 8205, 1053, 390, 1901, ...
object-detection/yolov2/download_darknet_yolo.py
AaratiAkkapeddi/nnabla-examples
228
97258
# Copyright 2018,2019,2020,2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # 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 #...
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29896, 29947, 29892, 29906, 29900, 29896, 29929, 29892, 29906, 29900, 29906, 29900, 29892, 29906, 29900, 29906, 29896, 28465, 15025, 29889, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 284...
exercise070.py
AlissonRaphael/python_exercises
0
157266
print('---- Loja Super Baratão ----') acima_mil = total = 0 barato = None nome_protudo = '' while True: nome = str(input('Nome do Produto: ')).strip() preco = float(input('Insira o Preço: R$ ')) total += preco if preco >= 1000: acima_mil += 1 if barato == None: barato = preco nome_protu...
[ 1, 1596, 877, 807, 4309, 1764, 5670, 2261, 271, 1368, 23250, 1495, 13, 13, 562, 2946, 29918, 23853, 353, 3001, 353, 29871, 29900, 13, 1646, 1219, 353, 6213, 13, 25155, 29918, 771, 29873, 5333, 353, 6629, 13, 13, 8000, 5852, 29901, 13,...
__main__.py
Ghostik2005/zipper
1
169702
<reponame>Ghostik2005/zipper # coding: utf-8 __appname__ = 'zipper' __version__ = '2017.216.1600' import zipfile import os import sys def main(): c_path = os.getcwd() zip_name = os.path.basename(c_path) + '.zip' if not os.path.exists('./deploy'): print('You have to copy all files and libraries to...
[ 1, 529, 276, 1112, 420, 29958, 29954, 3069, 638, 29906, 29900, 29900, 29945, 29914, 2526, 2496, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 13, 1649, 932, 978, 1649, 353, 525, 2526, 2496, 29915, 13, 1649, 3259, 1649, 353, 525, 299...
problem/01000~09999/09498/9498.py3.py
njw1204/BOJ-AC
1
22733
print(("F"*6+"DCBAA")[int(input())//10])
[ 1, 1596, 29898, 703, 29943, 29908, 29930, 29953, 13578, 12696, 5688, 29909, 1159, 29961, 524, 29898, 2080, 3101, 458, 29896, 29900, 2314, 2 ]
chg/embed/basic.py
josepablocam/changestructor
0
188772
#!/usr/bin/env python3 from argparse import ArgumentParser import os import subprocess import numpy as np from transformers import RobertaTokenizer, RobertaModel import torch import tqdm from chg.db.database import get_store # fix odd fault... os.environ['KMP_DUPLICATE_LIB_OK'] = 'True' def remove_color_ascii(msg...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 3166, 1852, 5510, 1053, 23125, 11726, 13, 5215, 2897, 13, 5215, 1014, 5014, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 4327, 414, 1053, 1528, 19954, 6066, 3950, 29892, 1528, ...
Chapter 02/Chap02_Example2.30.py
Anancha/Programming-Techniques-using-Python
0
84473
<filename>Chapter 02/Chap02_Example2.30.py #isdecimal n1 = "947" print(n1.isdecimal()) # -- D1 n2 = "947 2" print(n2.isdecimal()) # -- D2 n3 = "abx123" print(n3.isdecimal()) # -- D3 n4 = "\u0034" print(n4.isdecimal()) # -- D4 n5 = "\u0038" print(n5.isdecimal()) # -- D5 n6 = "\u0041" print(n6.isdecimal()) # -- D6 n7 = "...
[ 1, 529, 9507, 29958, 1451, 3314, 29871, 29900, 29906, 29914, 1451, 481, 29900, 29906, 29918, 14023, 29906, 29889, 29941, 29900, 29889, 2272, 13, 29937, 275, 7099, 3039, 13, 29876, 29896, 353, 376, 29929, 29946, 29955, 29908, 13, 2158, 29898...
CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/config/explore.py
wdobbels/CAAPR
7
150106
<filename>CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/config/explore.py #!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # *...
[ 1, 529, 9507, 29958, 5454, 3301, 29934, 29914, 5454, 3301, 29934, 29918, 29909, 303, 307, 19095, 293, 29914, 7982, 29903, 29914, 16485, 29914, 4299, 292, 29914, 2917, 29914, 24516, 487, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 2991...
textvinf/__init__.py
vikigenius/textvinf
0
161476
# -*- coding: utf-8 -*- from typing import Any, Dict config: Dict[str, Any] = {}
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 19229, 1053, 3139, 29892, 360, 919, 13, 13, 2917, 29901, 360, 919, 29961, 710, 29892, 3139, 29962, 353, 6571, 13, 13, 2 ]
stac_fastapi/extensions/stac_fastapi/extensions/core/pagination/pagination.py
borism/stac-fastapi
64
160591
<filename>stac_fastapi/extensions/stac_fastapi/extensions/core/pagination/pagination.py """Pagination API extension.""" from typing import List, Optional import attr from fastapi import FastAPI from stac_fastapi.api.models import GETPagination, POSTPagination from stac_fastapi.types.extension import ApiExtension @...
[ 1, 529, 9507, 29958, 303, 562, 29918, 11255, 2754, 29914, 24299, 29914, 303, 562, 29918, 11255, 2754, 29914, 24299, 29914, 3221, 29914, 13573, 3381, 29914, 13573, 3381, 29889, 2272, 13, 15945, 29908, 29925, 351, 3381, 3450, 6081, 1213, 1594...
problems/0589-n-ary-tree-preorder-traversal.py
tzxyz/leetcode
0
120361
<reponame>tzxyz/leetcode from typing import List class Node: def __init__(self, val, children): self.val = val self.children = children class Solution: """ 给定一个 N 叉树,返回其节点值的前序遍历。 例如,给定一个 3叉树 : {"$id":"1","children":[{"$id":"2","children":[{"$id":"5","children":[],"val":5},{"$id...
[ 1, 529, 276, 1112, 420, 29958, 17559, 20230, 29914, 280, 300, 401, 13, 3166, 19229, 1053, 2391, 13, 13, 13, 1990, 9071, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 659, 29892, 4344, 1125, 13, 4706, 1583, 29889, 791, 353, 659...
curious_game/transformer.py
CuriosityLabTAU/physicial_curiosity
1
73030
<reponame>CuriosityLabTAU/physicial_curiosity from curious_game import * from nao_move import * import random import numpy as np class Transformer: def __init__(self, transform=None): # transform is the transformation the robot performs. we start with a linear transform, # i.e. transform is a nu...
[ 1, 529, 276, 1112, 420, 29958, 23902, 2363, 537, 28632, 6040, 29965, 29914, 14017, 5611, 29918, 2764, 2363, 537, 13, 3166, 12758, 29918, 11802, 1053, 334, 13, 3166, 1055, 29877, 29918, 11631, 1053, 334, 13, 5215, 4036, 13, 5215, 12655, ...
docs/source/usage/examples/_auto/automation/environment.py
morganjwilliams/pyrolite-meltsutil
5
1600831
<reponame>morganjwilliams/pyrolite-meltsutil<filename>docs/source/usage/examples/_auto/automation/environment.py<gh_stars>1-10 """ alphaMELTS Environment ------------------------ """ from pyrolite_meltsutil.env import MELTS_Env ######################################################################################## # ...
[ 1, 529, 276, 1112, 420, 29958, 29885, 6388, 29926, 14043, 10909, 29914, 2272, 1467, 568, 29899, 12873, 1372, 4422, 29966, 9507, 29958, 2640, 29914, 4993, 29914, 21125, 29914, 19057, 19891, 6921, 29914, 17405, 362, 29914, 20944, 29889, 2272, ...
src/tests/fidl/source_compatibility/gen/gen.py
gongcm/fuchisa-os
1
119408
# Copyright 2020 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Implements the gen subcommand for generating tests. """ from collections import deque from pathlib import Path from typing import List, Dict, Set import ...
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 450, 383, 19873, 423, 13189, 943, 29889, 2178, 10462, 21676, 29889, 13, 29937, 4803, 310, 445, 2752, 775, 338, 4095, 287, 491, 263, 350, 7230, 29899, 3293, 19405, 393, 508, 367, 13...
weighted_mean_prediction/random_forest/tuning_rf.py
fegb-dataset22/dataset22
0
72710
<reponame>fegb-dataset22/dataset22<filename>weighted_mean_prediction/random_forest/tuning_rf.py<gh_stars>0 import os.path import sys from typing import Callable import pandas as pd from matplotlib import pyplot as plt from optuna import Study from optuna.visualization import plot_parallel_coordinate from optuna.visual...
[ 1, 529, 276, 1112, 420, 29958, 29888, 387, 29890, 29899, 24713, 29906, 29906, 29914, 24713, 29906, 29906, 29966, 9507, 29958, 7915, 287, 29918, 12676, 29918, 11965, 2463, 29914, 8172, 29918, 1454, 342, 29914, 29873, 27964, 29918, 9600, 29889,...
tpDcc/tools/datalibrary/widgets/save.py
tpDcc/tpDcc-tools-datalibrary
0
39782
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains base save widget for data items """ from __future__ import print_function, division, absolute_import import os import logging import traceback from Qt.QtCore import Signal, QSize from Qt.QtWidgets import QSizePolicy, QFrame, QDialogButtonBox, Q...
[ 1, 396, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 15945, 29908, 13, 7355, 393, 3743, 2967, 4078, 11109, 363, 848, 4452, 13, 15945, 29908, ...
files/app.py
pnoj/judge-executor
0
137428
import requests from flask import Flask, request import os import info import isolate app = Flask(__name__) @app.route('/') def status(): executor_status = { "language": info.language, "status": config['status'], } return executor_status @app.route('/compile', methods=["POST"]) def compi...
[ 1, 1053, 7274, 13, 3166, 29784, 1053, 2379, 1278, 29892, 2009, 13, 5215, 2897, 13, 13, 5215, 5235, 13, 5215, 11695, 403, 13, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 13, 29992, 932, 29889, 13134, 11219, 1495, 13, 1753, ...
recommender/news/__init__.py
stungkit/stock_trend_analysis
7
1608727
from .Feed import * from .FPFeed import *
[ 1, 515, 869, 29737, 1053, 334, 13, 3166, 869, 26353, 29737, 1053, 334, 13, 2 ]
tools/downsampling_publish/src/downsampling_publish.py
verlab/3DSemanticMapping_JINT_2020
28
100197
#!/usr/bin/env python from roslib.message import get_message_class import rospy import rosgraph class DownPublisher(): def __init__(self): rospy.init_node('downsampling_publish', anonymous=True) prefix = rospy.get_param('~prefix', "/downsampling") rate = rospy.get_param('~rate', 1...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 3166, 14652, 1982, 29889, 4906, 1053, 679, 29918, 4906, 29918, 1990, 13, 5215, 696, 1028, 29891, 13, 5215, 14652, 4262, 13, 13, 1990, 9943, 21076, 1674, 261, 7295, 13, 1678, 822, ...
train_ema.py
qym7/WTALFakeLabels
3
17081
<gh_stars>1-10 ''' Author: <NAME> Date: 2021-12-25 17:33:51 LastEditTime: 2021-12-29 10:10:14 LastEditors: Please set LastEditors Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE FilePath: /yimingqin/code/WTAL-Uncertainty-Modeling/train.py ''' import torch impor...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 12008, 13, 13720, 29901, 529, 5813, 29958, 13, 2539, 29901, 29871, 29906, 29900, 29906, 29896, 29899, 29896, 29906, 29899, 29906, 29945, 29871, 29896, 29955, 29901, 29941...
Crunchyroll_Keypad/Crunchyroll_Keypad.py
Benjamin-Valderrama/Arduino
0
40336
<reponame>Benjamin-Valderrama/Arduino #Things to add: # # import pyautogui as pag import time import webbrowser as wb import serial # Instructions instructions = ''' Select one of the followings : \n \t 0 : Lunching the app \t 1 : Previous Chapter \t 2 : Next Chapter \t 3 : Saving the current Chapter \t 4 : Saving th...
[ 1, 529, 276, 1112, 420, 29958, 20841, 18323, 29899, 1440, 672, 20556, 29914, 1433, 28955, 13, 29937, 1349, 886, 304, 788, 29901, 13, 29937, 13, 29937, 13, 5215, 11451, 1300, 468, 1481, 408, 10203, 13, 5215, 931, 13, 5215, 591, 1327, 8...
python/setup.py
rpiotrow/lolo
34
24499
<reponame>rpiotrow/lolo from setuptools import setup from glob import glob import shutil import sys import os # single source of truth for package version version_ns = {} with open(os.path.join("lolopy", "version.py")) as f: exec(f.read(), version_ns) version = version_ns['__version__'] # Find the lolo jar JAR_FI...
[ 1, 529, 276, 1112, 420, 29958, 29878, 1631, 327, 798, 29914, 29880, 3543, 13, 3166, 731, 21245, 8789, 1053, 6230, 13, 3166, 13149, 1053, 13149, 13, 5215, 528, 4422, 13, 5215, 10876, 13, 5215, 2897, 13, 13, 29937, 2323, 2752, 310, 8760...
api/needley/models.py
kino-ma/needley
0
31200
<gh_stars>0 from django.db import models from django.utils import timezone from django.core.validators import MinLengthValidator from django.contrib.auth.models import AbstractUser class User(AbstractUser): email = models.EmailField(unique=True) # Nickname is display name nickname = models.CharField( ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 13239, 1053, 29431, 13, 3166, 9557, 29889, 3221, 29889, 3084, 4097, 1053, 3080, 6513, 24204, 13, 3166, 9557, 29889, 21570, 2988...
swagger_client/apis/booking_api.py
scubawhere/scubawhere-api-python-client
0
64259
# coding: utf-8 """ Scubawhere API Documentation This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API OpenAPI spec version: 1.0.0 ...
[ 1, 396, 14137, 29901, 23616, 29899, 29947, 13, 13, 15945, 29908, 13, 1678, 2522, 11495, 3062, 3450, 10854, 362, 13, 13, 1678, 910, 338, 278, 5106, 363, 885, 11495, 3062, 29915, 29879, 390, 4345, 3450, 29889, 910, 3450, 338, 871, 304, ...
controls/Detector.py
Barqawiz/Snnapy2-Filters
9
108342
""" License ------- The MIT License (MIT) Copyright (c) 2018 Snappy2 Project Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation ...
[ 1, 9995, 13, 29931, 293, 1947, 13, 26589, 13, 1678, 450, 341, 1806, 19245, 313, 26349, 29897, 13, 13, 1678, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29947, 22639, 14862, 29906, 8010, 13, 13, 1678, 20894, 2333, 338, 12...
ahgl/tournaments/management/commands/compute_stats.py
ourobouros/ahgl-site
1
1604575
<reponame>ourobouros/ahgl-site<gh_stars>1-10 # coding=utf8 from __future__ import print_function from django.core.management.base import BaseCommand, CommandError from tournaments.models import TeamRoundMembership, Tournament from profiles.models import Team class Command(BaseCommand): args = '<tournament_slug>...
[ 1, 529, 276, 1112, 420, 29958, 283, 13716, 283, 1883, 29914, 801, 3820, 29899, 2746, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14137, 29922, 9420, 29947, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 2...
1979.py
gabrielld06/Exercicios-URI
0
102214
<reponame>gabrielld06/Exercicios-URI<filename>1979.py # Busca em largura carecalol from collections import deque class Graph: def __init__(self, V, Adj): self.V = V self.Adj = Adj class Vertex: def __init__(self, d, cor): self.d = d self.cor = cor def enqueue(Q,v): Q.append(v) def dequeu...
[ 1, 529, 276, 1112, 420, 29958, 29887, 370, 12836, 430, 29900, 29953, 29914, 1252, 6269, 19382, 29899, 15551, 29966, 9507, 29958, 29896, 29929, 29955, 29929, 29889, 2272, 13, 29937, 8406, 1113, 953, 5573, 2002, 2562, 1052, 324, 13, 3166, 1...
src/compas_fab/ghpython/artists.py
yck011522/compas_fab
64
147034
<gh_stars>10-100 from __future__ import absolute_import from __future__ import division from __future__ import print_function import compas if compas.RHINO: from compas_ghpython.artists import RobotModelArtist __all__ = [ 'RobotArtist', 'RobotModelArtist', ] # deprecated alias Ro...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29...
server/webdriver_tests/place_landing_test.py
n-h-diaz/website
0
77910
<reponame>n-h-diaz/website<gh_stars>0 # Copyright 2021 Google LLC # # 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 ap...
[ 1, 529, 276, 1112, 420, 29958, 29876, 29899, 29882, 29899, 15321, 29920, 29914, 22942, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 5087, 365, 12182, 13, 29937, 13, 29937, 10413, 2...
api/routes/simulation_list.py
AlbertQueiroz/finalchallenge-api
3
198302
from flask import jsonify from api import app import logging as logger from api.controllers import responseListOfCoinsSimulation as request_simulation_list_coins response = request_simulation_list_coins.response_list() @app.route('/api/v1/simulationlist/', methods=['GET']) def simulation_list(): logger.debug("I...
[ 1, 515, 29784, 1053, 4390, 1598, 13, 3166, 7882, 1053, 623, 13, 13, 5215, 12183, 408, 17927, 13, 3166, 7882, 29889, 1285, 11897, 1053, 2933, 1293, 2776, 7967, 1144, 8942, 2785, 408, 2009, 29918, 3601, 2785, 29918, 1761, 29918, 1111, 114...
sols/696.py
Paul11100/LeetCode
0
116928
class Solution: # Count Consecutive Groups (Top Voted), O(n) time and space def countBinarySubstrings(self, s: str) -> int: s = list(map(len, s.replace('01', '0 1').replace('10', '1 0').split())) return sum(min(a, b) for a, b in zip(s, s[1:])) # Linear Scan (Solution), O(n) time, O(1) space...
[ 1, 770, 24380, 29901, 13, 1678, 396, 3917, 1281, 3471, 11067, 1632, 4410, 313, 7031, 478, 5715, 511, 438, 29898, 29876, 29897, 931, 322, 2913, 13, 1678, 822, 2302, 25196, 4035, 19651, 29898, 1311, 29892, 269, 29901, 851, 29897, 1599, 93...
rangeofprimenumbers.py
bjoffficial/Python
0
70351
<gh_stars>0 n=int(input("From number")) n1=int(input("To number")) for i in range(n,n1): for j in range(2,i): if i%j==0: break else: print(i)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29876, 29922, 524, 29898, 2080, 703, 4591, 1353, 5783, 30004, 13, 29876, 29896, 29922, 524, 29898, 2080, 703, 1762, 1353, 5783, 30004, 13, 1454, 474, 297, 3464, 29898, 29876, 29892, 29876...
dmxnet/bin/node.py
BasementCat/dmxnet
0
115419
<gh_stars>0 import argparse import time import glob import os from dmxpy.DmxPy import DmxPy from dmxnet import ESP def parse_args(): p = argparse.ArgumentParser(description="Run a node that translates network data to DMX commands") p.add_argument('-t', '--type', default='ESP', choices=['ESP'], help="Node ne...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 1852, 5510, 13, 5215, 931, 13, 5215, 13149, 13, 5215, 2897, 13, 13, 3166, 270, 16838, 2272, 29889, 29928, 16838, 19737, 1053, 360, 16838, 19737, 13, 13, 3166, 270, 16838, 1212, ...
applications/physbam/physbam-lib/Scripts/Archives/test/deformable_rigid.py
schinmayee/nimbus
20
69340
<gh_stars>10-100 #!/usr/bin/python import sys import os import tests result_directory=sys.argv[1] visual_test=tests.VISUAL_TESTS("Fluid 2D",sys.argv[1]) camera_directory=os.getcwd()+"/Scripts/test/cameras" def deformable_rigid_test(testname,number): test=tests.TEST(result_directory=result_directory, name=tes...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 13, 5215, 10876, 13, 5215, 2897, 13, 5215, 6987, 13, 13, 2914, 29918, 12322, 29922, 9675, 29889, 19218, 29...
tests/scraper/models.py
teolemon/django-dynamic-scraper
0
37438
from django.db import models from dynamic_scraper.models import Scraper, SchedulerRuntime from scrapy.contrib.djangoitem import DjangoItem class EventWebsite(models.Model): name = models.CharField(max_length=200) scraper = models.ForeignKey(Scraper, blank=True, null=True, on_delete=models.SET_NULL) url = ...
[ 1, 515, 9557, 29889, 2585, 1053, 4733, 13, 3166, 7343, 29918, 1557, 336, 546, 29889, 9794, 1053, 2522, 336, 546, 29892, 1102, 14952, 7944, 13, 3166, 24559, 2272, 29889, 21570, 29889, 14095, 667, 1053, 15337, 2001, 13, 13, 13, 1990, 6864...
treadmill/console.py
gaocegege/treadmill
2
145708
"""Treadmill console entry point. """ import logging import logging.config import click import requests # pylint complains about imports from treadmill not grouped, but import # dependencies need to come first. # # pylint: disable=C0412 from treadmill import cli # pylint complains "No value passed for parameter 'l...
[ 1, 9995, 29911, 949, 19958, 2991, 6251, 1298, 29889, 13, 15945, 29908, 13, 13, 5215, 12183, 13, 5215, 12183, 29889, 2917, 13, 13, 5215, 2828, 13, 5215, 7274, 13, 13, 29937, 282, 2904, 524, 15313, 1144, 1048, 24802, 515, 260, 949, 1995...
tests/test_propagation.py
ismailbennani/ReGraph
54
185981
<reponame>ismailbennani/ReGraph<gh_stars>10-100 """Test of the hierarchy functionality with all typings being partial.""" from regraph import NXHierarchy, NXGraph from regraph import Rule from regraph import RewritingError from regraph import primitives class TestPropagation(object): def __init__(self): ...
[ 1, 529, 276, 1112, 420, 29958, 275, 2549, 1785, 29876, 3270, 29914, 1123, 9527, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 15945, 29908, 3057, 310, 278, 21277, 9863, 411, 599, 2393, 886, 1641, 768...
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
1
20013
import math import re from typing import List, Dict from wbtools.db.generic import WBGenericDBManager from wbtools.lib.nlp.common import EntityType from wbtools.lib.nlp.literature_index.abstract_index import AbstractLiteratureIndex ALL_VAR_REGEX = r'({designations}|m|p|It)(_)?([A-z]+)?([0-9]+)([a-zA-Z]{{1,4}}[0-9]*)?...
[ 1, 1053, 5844, 13, 5215, 337, 13, 3166, 19229, 1053, 2391, 29892, 360, 919, 13, 13, 3166, 281, 29890, 8504, 29889, 2585, 29889, 19206, 1053, 399, 29933, 15809, 4051, 3260, 13, 3166, 281, 29890, 8504, 29889, 1982, 29889, 12938, 29886, 29...
tests/hacsbase/test_hacsbase_data.py
chbonkie/hacs
2
3999
"""Data Test Suite.""" from aiogithubapi.objects import repository import pytest import os from homeassistant.core import HomeAssistant from custom_components.hacs.hacsbase.data import HacsData from custom_components.hacs.helpers.classes.repository import HacsRepository from custom_components.hacs.hacsbase.configuratio...
[ 1, 9995, 1469, 4321, 2166, 568, 1213, 15945, 13, 3166, 7468, 468, 2985, 2754, 29889, 12650, 1053, 9810, 13, 5215, 11451, 1688, 13, 5215, 2897, 13, 3166, 3271, 465, 22137, 29889, 3221, 1053, 8778, 7900, 22137, 13, 3166, 2888, 29918, 1403...
tests/gpflow/models/test_gpr_posterior.py
vishalbelsare/GPflow
0
140974
<filename>tests/gpflow/models/test_gpr_posterior.py import numpy as np import pytest import gpflow from gpflow.models.gpr import GPR_deprecated, GPR_with_posterior from gpflow.posteriors import PrecomputeCacheType def make_models(regression_data): """Helper function to create models""" k = gpflow.kernels.Ma...
[ 1, 529, 9507, 29958, 21150, 29914, 29887, 29886, 1731, 29914, 9794, 29914, 1688, 29918, 29887, 558, 29918, 2490, 261, 1611, 29889, 2272, 13, 5215, 12655, 408, 7442, 13, 5215, 11451, 1688, 13, 13, 5215, 330, 29886, 1731, 13, 3166, 330, 2...
src/pymovie/astrometry_client.py
cmbennett01/pymovie
5
153239
<gh_stars>1-10 from urllib.parse import urlencode, quote # took out urlparse from urllib.request import urlopen, Request from urllib.error import HTTPError from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.application import MIMEApplication from email.encoders import...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 3142, 1982, 29889, 5510, 1053, 3142, 12508, 29892, 14978, 29871, 396, 3614, 714, 3142, 5510, 13, 3166, 3142, 1982, 29889, 3827, 1053, 5065, 417, 2238, 29892, 10...
app/admin.py
beedev-services/dragonsEdgeCreations
0
175218
from django.contrib import admin from .models import * admin.site.register(User) admin.site.register(Profile) admin.site.register(Customer) admin.site.register(Account) admin.site.register(Event) admin.site.register(Format) admin.site.register(Language) admin.site.register(Product) admin.site.register(Picture)
[ 1, 515, 9557, 29889, 21570, 1053, 4113, 13, 3166, 869, 9794, 1053, 334, 13, 13, 6406, 29889, 2746, 29889, 9573, 29898, 2659, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 13909, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 15122,...
io.py
PRASAD-DANGARE/PYTHON
1
130951
''' Description : Use Of Basic Input / Output Function Date : 07 Feb 2021 Function Author : <NAME> Input : Str Output : -- ''' print("Enter One Number") # to display on screen no = input() # to accept the standard input device ie keyword print ("Your Number Is : ", no) ...
[ 1, 14550, 30004, 13, 9868, 418, 584, 29871, 4803, 4587, 19219, 10567, 847, 10604, 29871, 6756, 13, 6678, 4712, 1678, 584, 259, 29900, 29955, 26319, 29871, 29906, 29900, 29906, 29896, 30004, 13, 6678, 13361, 29871, 584, 29871, 529, 5813, 3...
tests/unit/commands/local/start_lambda/test_cli.py
ourobouros/aws-sam-cli
2
2633
<reponame>ourobouros/aws-sam-cli from unittest import TestCase from mock import patch, Mock from samcli.commands.local.start_lambda.cli import do_cli as start_lambda_cli from samcli.commands.local.cli_common.user_exceptions import UserException from samcli.commands.validate.lib.exceptions import InvalidSamDocumentExce...
[ 1, 529, 276, 1112, 420, 29958, 283, 13716, 283, 1883, 29914, 10467, 29899, 13445, 29899, 11303, 13, 3166, 443, 27958, 1053, 4321, 8259, 13, 3166, 11187, 1053, 13261, 29892, 26297, 13, 13, 3166, 3514, 11303, 29889, 26381, 29889, 2997, 2988...
autogluon/scheduler/fifo.py
brc7/autogluon
1
194448
import json import logging import multiprocessing as mp import os import pickle import threading import time from collections import OrderedDict import numpy as np import copy from tqdm.auto import tqdm from .reporter import DistStatusReporter, FakeReporter from .resource import DistributedResource from .scheduler im...
[ 1, 1053, 4390, 13, 5215, 12183, 13, 5215, 6674, 307, 985, 292, 408, 22326, 13, 5215, 2897, 13, 5215, 5839, 280, 13, 5215, 3244, 292, 13, 5215, 931, 13, 3166, 16250, 1053, 8170, 287, 21533, 13, 5215, 12655, 408, 7442, 13, 5215, 3509,...
conftest.py
opennode/waldur-ansible
1
192464
<reponame>opennode/waldur-ansible<filename>conftest.py from waldur_ansible.common.tests.integration import integration_tests_config def pytest_addoption(parser): parser.addoption(integration_tests_config.TEST_TAG_FLAG, action="append", help="specify what type of tests to run")
[ 1, 529, 276, 1112, 420, 29958, 459, 2108, 356, 29914, 18370, 332, 29899, 550, 1821, 29966, 9507, 29958, 535, 615, 342, 29889, 2272, 13, 3166, 281, 2741, 332, 29918, 550, 1821, 29889, 9435, 29889, 21150, 29889, 27925, 1053, 13465, 29918, ...
pontoon/sync/vcs/models.py
zbraniecki/pontoon
1
140755
<reponame>zbraniecki/pontoon<gh_stars>1-10 """ Models for working with remote translation data stored in a VCS. """ import logging import os import shutil from itertools import chain from datetime import datetime from django.utils import timezone from django.utils.functional import cached_property from pontoon.base ...
[ 1, 529, 276, 1112, 420, 29958, 29920, 29890, 661, 16776, 29875, 29914, 1112, 517, 265, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 23785, 363, 1985, 411, 7592, 13962, 848, 6087, 297, 263, 478, ...
add_code_of_conduct.py
PeterEltgroth/repo-bulk-deprecate
1
172326
import os import subprocess import os.path from gql import gql, Client from gql.transport.requests import RequestsHTTPTransport working_dir = "/tmp/the-great-archiving" ORG = "cf-platform-eng" def run_command(cmd, dir=None): p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, cw...
[ 1, 1053, 2897, 13, 5215, 1014, 5014, 13, 5215, 2897, 29889, 2084, 13, 13, 3166, 330, 1519, 1053, 330, 1519, 29892, 12477, 13, 3166, 330, 1519, 29889, 27882, 29889, 24830, 1053, 10729, 29879, 10493, 27395, 13, 13, 22899, 29918, 3972, 353...
shell_args_generator/arg_builder/man_builder/ManUsageHandler.py
FyodorovAleksej/shell_args_generator
0
62329
from shell_args_generator.arg_builder.AbstractBuilderHandler import AbstractBuilderHandler from shell_args_generator.arg_parser.arg_entity import Argument class ManUsageHandler(AbstractBuilderHandler): def __init__(self, __handle_pattern: str, __props: dict): super().__init__(__handle_pattern, __props) ...
[ 1, 515, 6473, 29918, 5085, 29918, 27959, 29889, 1191, 29918, 16409, 29889, 9118, 5627, 4598, 1053, 25513, 5627, 4598, 13, 3166, 6473, 29918, 5085, 29918, 27959, 29889, 1191, 29918, 16680, 29889, 1191, 29918, 10041, 1053, 23125, 13, 13, 13, ...
examples/example.py
f-dangel/unfoldNd
21
4461
<gh_stars>10-100 """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 ke...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 15945, 29908, 5328, 304, 671, 4954, 348, 8771, 29940, 29881, 29952, 1412, 319, 10230, 411, 4954, 7345, 305, 29889, 15755, 29889, 2525, 8771, 16159, 1213, ...
malon_lp/malon_lp/admin/json_encoder.py
pucarasec/Build-C2-RedTeam-Course
9
70491
import json from datetime import datetime from base64 import b64encode from sqlalchemy.ext.declarative import DeclarativeMeta def to_camel_case(s: str) -> str: return ''.join(map(str.capitalize, s.split('_'))) class BaseEncoder(json.JSONEncoder): def default(self, obj): if type(obj) == datetime: ...
[ 1, 1053, 4390, 13, 3166, 12865, 1053, 12865, 13, 3166, 2967, 29953, 29946, 1053, 289, 29953, 29946, 12508, 13, 3166, 4576, 284, 305, 6764, 29889, 1062, 29889, 311, 16544, 1230, 1053, 3826, 4675, 1230, 19346, 13, 13, 13, 1753, 304, 29918...
servicelog/urls.py
rickvanderzwet/makerspaceleiden-crm
0
156087
<reponame>rickvanderzwet/makerspaceleiden-crm from django.urls import path from django.contrib.auth import views as auth_views from . import views urlpatterns = [ path('crud/<int:machine_id>/<int:servicelog_id>', views.servicelog_crud, name='service_log_crud'), path('crud/<int:machine_id>', views.servicelog_c...
[ 1, 529, 276, 1112, 420, 29958, 9131, 29894, 3825, 7659, 300, 29914, 29885, 21079, 3535, 280, 3615, 29899, 29883, 1758, 13, 3166, 9557, 29889, 26045, 1053, 2224, 13, 3166, 9557, 29889, 21570, 29889, 5150, 1053, 8386, 408, 4817, 29918, 7406...
alchemist/db/model.py
movermeyer/alchemist
4
175246
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import, division from alchemist.db import session from alchemist.conf import settings from importlib import import_module from alchemist.db.query import Query from sqlalchemy.orm.util import has_identity from sqlalchemy.ext.declarative import cls...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 29892, 8380, 29918, 5215, 29892, 8542, 13, 3166, 394, 14969, 391, 29889, 2585, 1053, 4867, ...
ors2bryton.py
andbue/ors2bryton
0
12723
<reponame>andbue/ors2bryton from sys import argv from os.path import splitext from lxml import etree from struct import pack def main(): print(argv) gpx = argv[1] """ bryton: 1: go ahead 2: right 3: left 4: slight right 5: slight left 6: close rig...
[ 1, 529, 276, 1112, 420, 29958, 392, 29890, 434, 29914, 943, 29906, 29890, 719, 880, 13, 3166, 10876, 1053, 1852, 29894, 13, 3166, 2897, 29889, 2084, 1053, 8536, 568, 486, 13, 3166, 301, 3134, 1053, 634, 929, 13, 3166, 2281, 1053, 4870...
fake_http_header/constants.py
MichaelTatarski/fake-http-header
2
62510
<reponame>MichaelTatarski/fake-http-header from fake_http_header.data_import import load_dict from importlib.resources import read_text domain_to_search_engine_binary = read_text( "fake_http_header.data", "top-level-domain-to-search-engines.json" ) domain_to_languages_binary = read_text( "fake_http_header.data...
[ 1, 529, 276, 1112, 420, 29958, 24083, 29911, 14873, 2574, 29914, 29888, 1296, 29899, 1124, 29899, 6672, 13, 3166, 25713, 29918, 1124, 29918, 6672, 29889, 1272, 29918, 5215, 1053, 2254, 29918, 8977, 13, 3166, 1053, 1982, 29889, 13237, 1053, ...
mitmproxy/proxy/modes/tunnel_proxy.py
intfrr/mitmproxy
6
41010
<gh_stars>1-10 from mitmproxy import exceptions from mitmproxy import platform from mitmproxy.proxy import protocol class TunnelProxy(protocol.Layer, protocol.ServerConnectionMixin): def __init__(self, ctx): super().__init__(ctx) def __call__(self): layer = self.ctx.next_layer(self) ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 1380, 29885, 14701, 1053, 15283, 13, 3166, 1380, 29885, 14701, 1053, 7481, 13, 3166, 1380, 29885, 14701, 29889, 14701, 1053, 9608, 13, 13, 13, 1990, 323, 16163,...
vistrails/packages/tabledata/read/__init__.py
tacaswell/VisTrails
0
126843
from vistrails.core.modules.utils import make_modules_dict try: # read_numpy requires numpy import numpy except ImportError: # pragma: no cover numpy_modules = [] else: from read_numpy import _modules as numpy_modules from read_csv import _modules as csv_modules from read_excel import _modules as exce...
[ 1, 515, 325, 391, 9912, 29889, 3221, 29889, 7576, 29889, 13239, 1053, 1207, 29918, 7576, 29918, 8977, 13, 13, 2202, 29901, 13, 1678, 396, 1303, 29918, 23749, 6858, 12655, 13, 1678, 1053, 12655, 13, 19499, 16032, 2392, 29901, 396, 282, 2...
tests/test_utils.py
rahultesla/spectacles
1
31170
from spectacles import utils from spectacles.logger import GLOBAL_LOGGER as logger from unittest.mock import MagicMock import pytest import unittest TEST_BASE_URL = "https://test.looker.com" def test_compose_url_one_path_component(): url = utils.compose_url(TEST_BASE_URL, ["api"]) assert url == "https://test...
[ 1, 515, 6683, 23435, 1053, 3667, 29879, 13, 3166, 6683, 23435, 29889, 21707, 1053, 402, 28902, 1964, 29918, 14480, 17070, 408, 17927, 13, 3166, 443, 27958, 29889, 17640, 1053, 26494, 18680, 13, 5215, 11451, 1688, 13, 5215, 443, 27958, 13,...
sabnzbd/constants.py
jxyzn/sabnzbd
0
197091
<filename>sabnzbd/constants.py<gh_stars>0 #!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <<EMAIL>> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the Lice...
[ 1, 529, 9507, 29958, 29879, 370, 29876, 29920, 6448, 29914, 3075, 1934, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29941, 448, 29949, 29949, 13, 29937, 14187, 1266, 29871, 29...
setup.py
fkochan/TSPy
0
141144
from setuptools import setup, find_packages setup( name = "TSPy", version = "0.1", packages = find_packages(), install_requires = [], author = "fkochan", description = "A Python wrapper for the TradeStation WebAPI", url = "https://github.com/fkochan/TSPy" )
[ 1, 515, 731, 21245, 8789, 1053, 6230, 29892, 1284, 29918, 8318, 13, 13, 14669, 29898, 13, 1678, 1024, 353, 376, 29911, 5550, 29891, 613, 13, 1678, 1873, 353, 376, 29900, 29889, 29896, 613, 13, 1678, 9741, 353, 1284, 29918, 8318, 3285, ...
tests/api/services_test.py
comodit/synapse-client
2
182845
import unittest from tests.api.client import TestClient from syncli.api.services import ServicesApi class ServicesApiTest(unittest.TestCase): @classmethod def setUpClass(self): self.client = TestClient(ServicesApi) @classmethod def tearDownClass(self): self.client.disconnect() ...
[ 1, 1053, 443, 27958, 13, 13, 3166, 6987, 29889, 2754, 29889, 4645, 1053, 4321, 4032, 13, 3166, 16523, 492, 29889, 2754, 29889, 9916, 1053, 15538, 11713, 13, 13, 13, 1990, 15538, 11713, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 1...
leetcode/1143_longest_common_subsequence.py
leetcode-notes/daily-algorithms-practice
0
96848
<gh_stars>0 class Solution: def longestCommonSubsequence(self, text1: str, text2: str) -> int: dp = [[0]*(len(text2)+1) for _ in range(len(text1)+1)] m, n = len(text1), len(text2) for i in range(1, m+1): for j in range(1, n+1): if text1[i-1] == text2[j-1]: ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 1990, 24380, 29901, 13, 1678, 822, 27217, 18877, 4035, 16506, 29898, 1311, 29892, 1426, 29896, 29901, 851, 29892, 1426, 29906, 29901, 851, 29897, 1599, 938, 29901, 13, 4706, 270, 29886, 3...
external_executors/dnanexus_wes/dx-wes-lambda/localize_file.py
HumanCellAtlas/portability
2
195972
<gh_stars>1-10 """Applet to localize files to DNAnexus. Create or find an applet in dnanexus that can copy in a remote URL. """ import json import sys import dxpy # Two pieces of metadata we can use to tell if this applet is already built and # available on dnanexus. APPLET_VERSION = "0.1.4" APPLET_NAME = "wes_url_...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 2052, 1026, 304, 1887, 675, 2066, 304, 25348, 13996, 375, 29889, 13, 13, 4391, 470, 1284, 385, 623, 1026, 297, 270, 13707, 735, 375, 393, 508, 3509, ...
test/python/test_sigmoid.py
slyalin/openvino_tensorflow
0
182193
<filename>test/python/test_sigmoid.py<gh_stars>0 # ============================================================================== # Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # ============================================================================== """Openvino Tensorflow relu6 te...
[ 1, 529, 9507, 29958, 1688, 29914, 4691, 29914, 1688, 29918, 18816, 29885, 3398, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871...
SRC/image/pixelselectionmod.py
usnistgov/OOF3D
31
57905
<gh_stars>10-100 # -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 448, 29930, 29899, 3017, 448, 29930, 29899, 13, 13, 29937, 910, 7047, 471, 7371, 491, 405, 9047, 29892, 385, 946, 3819, 310, 278, 501, 29889, 2...
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
0
4911
from flask import Blueprint, Flask, send_from_directory from werkzeug.security import check_password_hash, generate_password_hash from app import db from app.mod_auth.forms import LoginForm from app.mod_auth.models import User mod_ecomm = Blueprint('products', __name__, url_prefix='/products', ...
[ 1, 515, 29784, 1053, 10924, 2158, 29892, 2379, 1278, 29892, 3638, 29918, 3166, 29918, 12322, 30004, 13, 3166, 23085, 13289, 29889, 8926, 1053, 1423, 29918, 5630, 29918, 8568, 29892, 5706, 29918, 5630, 29918, 8568, 30004, 13, 30004, 13, 3166...
create_google_prior.py
AdrianNunez/zeroshot-action-recognition-action-priors
3
36614
<gh_stars>1-10 # -*- coding: UTF-8 -*- import os import json import logging from googleapiclient.discovery import build from tqdm import tqdm from data import get_classes_ordered logging.getLogger('googleapicliet.discovery_cache').setLevel(logging.ERROR) variables_file = 'variables.json' with open(variables_file) as f...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 18351, 29899, 29947, 448, 29930, 29899, 13, 5215, 2897, 13, 5215, 4390, 13, 5215, 12183, 13, 3166, 5386, 481, 293, 1593, 29889...
bert/bert_model.py
qianyingw/bioner
1
54815
<filename>bert/bert_model.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 30 12:45:12 2020 @author: qwang """ from transformers import BertPreTrainedModel, BertConfig, BertModel from transformers import DistilBertPreTrainedModel, DistilBertConfig, DistilBertModel import torch import torch.nn...
[ 1, 529, 9507, 29958, 2151, 29914, 2151, 29918, 4299, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399...
float_range/test_float_range.py
alehpineda/python_morsels
0
131606
<filename>float_range/test_float_range.py from collections.abc import Generator import sys import unittest from float_range import float_range class FloatRangeTests(unittest.TestCase): """Tests for float_range.""" def test_has_iterability(self): self.assertEqual(list(float_range(1, 11, 2)), [1, 3,...
[ 1, 529, 9507, 29958, 7411, 29918, 3881, 29914, 1688, 29918, 7411, 29918, 3881, 29889, 2272, 13, 3166, 16250, 29889, 10736, 1053, 3251, 1061, 13, 5215, 10876, 13, 5215, 443, 27958, 13, 13, 13, 3166, 5785, 29918, 3881, 1053, 5785, 29918, ...
spirit/comment/poll/migrations/0002_auto_20190304_2115.py
Ke-xueting/Spirit
974
165648
<filename>spirit/comment/poll/migrations/0002_auto_20190304_2115.py # Generated by Django 2.1.7 on 2019-03-04 21:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('spirit_comment_poll', '0001_initial'), ] operations = [ migrations.AlterModelOpt...
[ 1, 529, 9507, 29958, 1028, 14987, 29914, 9342, 29914, 29886, 3028, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29906, 29918, 6921, 29918, 29906, 29900, 29896, 29929, 29900, 29941, 29900, 29946, 29918, 29906, 29896, 29896, 29945, 29889, 2272,...
dayu_widgets/radio_button.py
ZSD-tim/dayu_widgets
157
25902
<reponame>ZSD-tim/dayu_widgets #!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: <NAME> # Date : 2019.2 # Email : <EMAIL> ################################################################### """ MRadioButton """ from dayu_widgets.mixin import cur...
[ 1, 529, 276, 1112, 420, 29958, 29999, 7230, 29899, 9346, 29914, 3250, 29884, 29918, 8030, 29879, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13,...
retrieval.py
janghyuncho/PiCIE
113
133519
<filename>retrieval.py import os import sys import argparse import logging import time as t import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from modules import fpn from commons import * from utils import * from train_picie import * def initialize_classifier(args, n_query...
[ 1, 529, 9507, 29958, 276, 509, 16837, 29889, 2272, 13, 5215, 2897, 29871, 13, 5215, 10876, 29871, 13, 5215, 1852, 5510, 29871, 13, 5215, 12183, 13, 5215, 931, 408, 260, 29871, 13, 5215, 12655, 408, 7442, 29871, 13, 13, 5215, 4842, 305...
medusa.py
BatSec/Project-Butler
0
54408
import vlc import time import io import os from tkinter import * from tinytag import TinyTag, TinyTagException from PIL import Image, ImageTk class check: i = 0 mname = '' song = 1 goto = 0 def main(self): # change to \ for windows temp_track = TinyTag....
[ 1, 1053, 14204, 29883, 13, 5215, 931, 13, 5215, 12013, 13, 5215, 2897, 13, 3166, 18883, 1639, 1053, 334, 13, 3166, 27773, 3637, 351, 1053, 323, 4901, 8176, 29892, 323, 4901, 8176, 2451, 13, 3166, 349, 6227, 1053, 7084, 29892, 7084, 29...
MachineLearning/dataLoader_uber_old.py
ChanaRoss/Thesis
0
178454
# mathematical imports - import numpy as np # pytorch imports - import torch import torch.utils.data as data device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def createDiff(data): dataOut = np.zeros(shape=(data.shape[0],data.shape[1]-1)) for i in range(data.shape[1]-1): da...
[ 1, 396, 19475, 24802, 448, 13, 5215, 12655, 408, 7442, 13, 13, 29937, 282, 3637, 25350, 24802, 29871, 448, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 13239, 29889, 1272, 408, 848, 13, 13, 10141, 418, 353, 4842, 305, 29889, 10141...
odmf/config.py
jlu-ilr-hydro/odmf
3
62429
# Parse conf.py in the root directory and check for validity # # A more detailed explanation of a valid configuration can be found # in the documentation # import yaml from pathlib import Path import sys import os from logging import getLogger from . import prefix, __version__ logger = getLogger(__name__) class C...
[ 1, 396, 20969, 1970, 29889, 2272, 297, 278, 3876, 3884, 322, 1423, 363, 2854, 537, 13, 29937, 13, 29937, 319, 901, 13173, 8252, 310, 263, 2854, 5285, 508, 367, 1476, 13, 29937, 29871, 297, 278, 5106, 13, 29937, 13, 13, 5215, 343, 88...
{{cookiecutter.project_slug}}/src/{{cookiecutter.pkg_name}}/touch.py
royw/cookiecutter-pypackage
0
135057
<gh_stars>0 """Simple touch utility.""" def touch(filename: str) -> None: """Mimics the "touch filename" utility. :param filename: filename to touch """ with open(filename, "a"): pass
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 15427, 6023, 19725, 1213, 15945, 13, 13, 13, 1753, 6023, 29898, 9507, 29901, 851, 29897, 1599, 6213, 29901, 13, 1678, 9995, 29924, 326, 1199, 278, 376, 16747, 10422, 29908, ...
a03_drugbank_00_pp.py
Hoa-Lab/2021_Menieres
0
131253
<reponame>Hoa-Lab/2021_Menieres<filename>a03_drugbank_00_pp.py import pandas as pd from pathlib import Path import matplotlib.pyplot as plt import seaborn as sns #---------------------------------------------- f_drug='./raw/drugbank.csv' f_gl='./out/a01_gl-meni_00_genelist/gl_meni.txt' fd_out='./out/a03_drugbank_00_pp...
[ 1, 529, 276, 1112, 420, 29958, 29950, 19807, 29899, 28632, 29914, 29906, 29900, 29906, 29896, 29918, 28154, 631, 267, 29966, 9507, 29958, 29874, 29900, 29941, 29918, 29881, 11124, 9157, 29918, 29900, 29900, 29918, 407, 29889, 2272, 13, 5215, ...
Trabalho02.py
VictorCastao/Monitoria_PS
0
1609064
#Inicializando variáveis correspondentes ao número de dias e a soma soma_total = 0 soma_parcial = 0 dias = 0 resposta = 0 n = 0 indicador = False #Lendo número de dias n = int(input()) #Obtendo somas de cada dia while dias < n: #Atualizando dia atual dias = dias + 1 #Acessos do dia soma_parcial = in...
[ 1, 396, 797, 5611, 466, 1743, 1197, 29976, 27072, 3928, 5326, 5017, 13831, 316, 652, 294, 321, 263, 1047, 29874, 13, 29879, 4125, 29918, 7827, 353, 29871, 29900, 13, 29879, 4125, 29918, 862, 1455, 353, 29871, 29900, 13, 29881, 3173, 353...
ABC/056/a.py
fumiyanll23/AtCoder
0
89033
<reponame>fumiyanll23/AtCoder def main(): # input a, b = input().split() # compute # output print('H' if a==b else 'D') if __name__ == '__main__': main()
[ 1, 529, 276, 1112, 420, 29958, 29888, 15547, 10094, 645, 29906, 29941, 29914, 4178, 29907, 6119, 13, 1753, 1667, 7295, 13, 1678, 396, 1881, 13, 1678, 263, 29892, 289, 353, 1881, 2141, 5451, 580, 13, 13, 1678, 396, 10272, 13, 13, 1678,...
custom_scripts/load_animals.py
nphilou/influence-release
0
7910
import os from tensorflow.contrib.learn.python.learn.datasets import base import numpy as np import IPython from subprocess import call from keras.preprocessing import image from influence.dataset import DataSet from influence.inception_v3 import preprocess_input BASE_DIR = 'data' # TODO: change def fill(X, Y, id...
[ 1, 1053, 2897, 13, 13, 3166, 26110, 29889, 21570, 29889, 19668, 29889, 4691, 29889, 19668, 29889, 14538, 1691, 1053, 2967, 13, 5215, 12655, 408, 7442, 13, 5215, 5641, 1656, 13, 13, 3166, 1014, 5014, 1053, 1246, 13, 13, 3166, 13023, 294,...
2021-04-Python-SEA-ENGRSL-Workshops/Workshop_2-Python-in-Data/s02b_Differences.py
shawnduong/manimations
0
142661
<reponame>shawnduong/manimations from manim import * class s02b_Differences(Scene): def construct(self): # Actors and scaling. subtitleA = Text("While loops are condition based,").scale(0.75) subtitleB = Text("and for loops are iteration based.").scale(0.75) # Positioning. subtitleA.shift(0.25*UP) su...
[ 1, 529, 276, 1112, 420, 29958, 845, 1450, 299, 29884, 549, 29914, 1171, 326, 800, 13, 3166, 767, 326, 1053, 334, 13, 13, 1990, 269, 29900, 29906, 29890, 29918, 29928, 8349, 2063, 29898, 23472, 1125, 13, 13, 12, 1753, 3386, 29898, 1311...
reliabilly/tests/monitor_clients/test_data_monitoring_client.py
corpseware/reliabilly
1
161526
# pylint: disable=invalid-name,no-self-use import unittest from unittest import skipUnless from unittest.mock import MagicMock from reliabilly.components.tools.data_monitoring_client import DataMonitoringClient from reliabilly.settings import Settings, Constants class DataMonitoringClientTests(unittest.TestCase): ...
[ 1, 396, 282, 2904, 524, 29901, 11262, 29922, 20965, 29899, 978, 29892, 1217, 29899, 1311, 29899, 1509, 13, 5215, 443, 27958, 13, 3166, 443, 27958, 1053, 14383, 2525, 2222, 13, 3166, 443, 27958, 29889, 17640, 1053, 26494, 18680, 13, 3166, ...
proxy/core/tls/certificate.py
fisabiliyusri/proxy
0
15113
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by <NAME> and contributors. :license: BSD, see LICENSE for mo...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 1678, 10166, 29889, 2272, 13, 1678, 3695, 14087, 7377, 30022, 13, 268, 229, 157, 164, 229, 157, 164, 229, 157, 164, 23786, 29892, 127...
src/pss_crew.py
herzbube/YaDc
0
139634
#!/usr/bin/env python # -*- coding: UTF-8 -*- import discord import os from typing import Dict, List, Set, Tuple from cache import PssCache import emojis import pss_assert import pss_entity as entity import pss_core as core import pss_lookups as lookups import settings import utility as util # ---------- Constants ...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 18351, 29899, 29947, 448, 29930, 29899, 13, 13, 5215, 2313, 536, 13, 5215, 2897, 13, 3166, 19229, 1053, 360, 919, 29892, 2391, 29892, 3789, 29892,...
grimer/metadata.py
pirovc/grimer
5
8790
import pandas as pd from pandas.api.types import is_numeric_dtype from grimer.utils import print_log class Metadata: valid_types = ["categorical", "numeric"] default_type = "categorical" def __init__(self, metadata_file, samples: list=[]): # Read metadata and let pandas guess dtypes, index as str...
[ 1, 1053, 11701, 408, 10518, 13, 3166, 11701, 29889, 2754, 29889, 8768, 1053, 338, 29918, 21574, 29918, 29881, 1853, 13, 3166, 867, 4193, 29889, 13239, 1053, 1596, 29918, 1188, 13, 13, 13, 1990, 4737, 7221, 29901, 13, 1678, 2854, 29918, ...
tests/middleware/test_csrf_middleware.py
w3x10e8/core
0
355
<filename>tests/middleware/test_csrf_middleware.py from masonite.request import Request from masonite.view import View from masonite.auth.Csrf import Csrf from masonite.app import App from masonite.middleware import CsrfMiddleware from masonite.testsuite.TestSuite import generate_wsgi import pytest from masonite.except...
[ 1, 529, 9507, 29958, 21150, 29914, 17662, 2519, 29914, 1688, 29918, 2395, 9600, 29918, 17662, 2519, 29889, 2272, 13, 3166, 286, 1658, 568, 29889, 3827, 1053, 10729, 13, 3166, 286, 1658, 568, 29889, 1493, 1053, 4533, 13, 3166, 286, 1658, ...
app-dev/app/controllers.py
johnnybarrels/unicode
0
76650
from app import app, db from flask import request from app.models import User, Course, Test, Question, Result, enrolments, Submission from app.forms import LoginForm, RegistrationForm, NewTestForm, NewCourseForm, RenameTestForm, QuestionForm, QuestionSubmissionForm, AddStudentToCourseForm, MarkTestForm, FeedbackForm fr...
[ 1, 515, 623, 1053, 623, 29892, 4833, 13, 3166, 29784, 1053, 2009, 13, 3166, 623, 29889, 9794, 1053, 4911, 29892, 6325, 344, 29892, 4321, 29892, 894, 29892, 7867, 29892, 427, 1467, 1860, 29892, 3323, 6737, 13, 3166, 623, 29889, 9514, 105...
test/SpeedTest.py
prajwal309/TierraCrossSection
0
110328
#author:<NAME> #insitution: MIT import matplotlib.pyplot as plt import time import numpy as np try: from HAPILite import CalcCrossSection except: from ..HAPILite import CalcCrossSection WaveNumber = np.arange(0,10000,0.001) StartTime = time.time() CrossSection = CalcCrossSection("CO2",Temp=1000.0,WN_Grid=...
[ 1, 396, 8921, 29901, 29966, 5813, 29958, 13, 29937, 1144, 5008, 29901, 341, 1806, 13, 13, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 931, 13, 5215, 12655, 408, 7442, 13, 13, 2202, 29901, 13, 1678, 515, 379, 8787, 29931,...
Programa_principal.py
Mals12/Proyecto-AG
0
112825
<reponame>Mals12/Proyecto-AG from funcion_aptitud import apt_fit from funcion_poblacion import crea_poblacion from funcion_seleccion_padres import selec_padres from funcion_cruza import cruza_extre from funcion_mutación import mut_inser from funcion_reemplazo import reem_generacional import numpy as np import random as...
[ 1, 529, 276, 1112, 420, 29958, 29924, 1338, 29896, 29906, 29914, 1184, 17113, 29877, 29899, 10051, 13, 3166, 21802, 29918, 2156, 11267, 1053, 10882, 29918, 9202, 13, 3166, 21802, 29918, 29886, 711, 4620, 291, 1053, 907, 29874, 29918, 29886,...
tests/semver/constraints/test_multi_constraint.py
batisteo/poetry
0
36013
<filename>tests/semver/constraints/test_multi_constraint.py<gh_stars>0 from poetry.semver.constraints.constraint import Constraint from poetry.semver.constraints.multi_constraint import MultiConstraint def test_multi_version_match_succeeds(): require_start = Constraint('>', '1.0') require_end = Constraint('<'...
[ 1, 529, 9507, 29958, 21150, 29914, 12846, 369, 29914, 13646, 29879, 29914, 1688, 29918, 9910, 29918, 13646, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 22309, 29889, 12846, 369, 29889, 13646, 29879, 29889, 13646, 1053...
tests/integration/test_labels.py
spmistry/crux-python
0
15742
<filename>tests/integration/test_labels.py import pytest @pytest.mark.usefixtures("dataset", "helpers") def test_add_get_label(dataset, helpers): file_1 = dataset.create_file( path="/test_file_" + helpers.generate_random_string(16) + ".csv" ) label_result = file_1.add_label("label1", "value1") ...
[ 1, 529, 9507, 29958, 21150, 29914, 27925, 29914, 1688, 29918, 21134, 29889, 2272, 13, 5215, 11451, 1688, 13, 13, 13, 29992, 2272, 1688, 29889, 3502, 29889, 1509, 7241, 486, 1973, 703, 24713, 613, 376, 3952, 6774, 1159, 13, 1753, 1243, 2...
main.py
mcecchi/SuperScanTest
0
178499
<reponame>mcecchi/SuperScanTest<filename>main.py import os os.environ['KIVY_NO_ARGS'] = '1' import sys import getopt import subprocess import time import threading import json from kivy.event import EventDispatcher from kivy.clock import Clock from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy....
[ 1, 529, 276, 1112, 420, 29958, 29885, 346, 29883, 4161, 29914, 19111, 29083, 3057, 29966, 9507, 29958, 3396, 29889, 2272, 13, 5215, 2897, 13, 359, 29889, 21813, 1839, 29968, 5667, 29979, 29918, 6632, 29918, 1718, 10749, 2033, 353, 525, 29...
util/repomirror/validator.py
anwarchk/quay
1
91227
<reponame>anwarchk/quay import logging from util.config.validators import ConfigValidationException logger = logging.getLogger(__name__) class RepoMirrorConfigValidator(object): """ Helper class for validating the repository mirror configuration. """ def __init__(self, feature_repo_mirror): self._feature_rep...
[ 1, 529, 276, 1112, 420, 29958, 273, 29893, 1279, 29895, 29914, 339, 388, 13, 5215, 12183, 13, 3166, 3667, 29889, 2917, 29889, 3084, 4097, 1053, 12782, 19448, 2451, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 1...
examples/aspect_polarity_classification/train_apc_multilingual.py
onlyrico/PyABSA
0
1610350
# -*- coding: utf-8 -*- # file: train_apc_multilingual.py # time: 2021/5/26 0026 # author: yangheng <<EMAIL>> # github: https://github.com/yangheng95 # Copyright (C) 2021. All Rights Reserved. ######################################################################################################################## # ...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 934, 29901, 7945, 29918, 481, 29883, 29918, 4713, 6504, 950, 29889, 2272, 13, 29937, 931, 29901, 29871, 29906, 29900, 29906, 29896, 29914, 29945, 29...
tests/bugs/core_2339_test.py
reevespaul/firebird-qa
0
186803
<gh_stars>0 #coding:utf-8 # # id: bugs.core_2339 # title: Incorrect result for the derived expression based on aggregate and computation # decription: # tracker_id: CORE-2339 # min_versions: [] # versions: 2.5 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Ac...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 29883, 3689, 29901, 9420, 29899, 29947, 13, 29937, 13, 29937, 1178, 29901, 965, 24557, 29889, 3221, 29918, 29906, 29941, 29941, 29929, 13, 29937, 3611, 29901, 4706, 512, 15728, 1121,...