hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795385e5db21ea4ade80c9c24ddd01a15262f45b
3,647
py
Python
tests/integration/test_notebooks.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-02-17T08:12:33.000Z
2021-02-17T08:12:33.000Z
tests/integration/test_notebooks.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2020-12-31T14:36:29.000Z
2020-12-31T14:36:29.000Z
tests/integration/test_notebooks.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-08-30T21:43:38.000Z
2021-08-30T21:43:38.000Z
# Copyright 2018 Iguazio # # 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 law or agreed to in writing, softwa...
31.713043
101
0.644914
795385e9dbfc4ccdbe6edceb97e419418e9a9c8a
1,886
py
Python
src/worker.py
shiburizu/Eddienput
b2ce192090ba658641383af84c7f3e09920a7d83
[ "MIT" ]
91
2021-04-05T21:48:35.000Z
2022-03-09T20:45:12.000Z
src/worker.py
shiburizu/Eddienput
b2ce192090ba658641383af84c7f3e09920a7d83
[ "MIT" ]
7
2021-04-08T04:47:29.000Z
2021-12-09T18:30:38.000Z
src/worker.py
shiburizu/Eddienput
b2ce192090ba658641383af84c7f3e09920a7d83
[ "MIT" ]
10
2021-04-06T10:35:24.000Z
2022-02-07T14:23:14.000Z
import sys import traceback from PyQt5.QtCore import QObject, pyqtSignal, QRunnable, pyqtSlot class WorkerSignals(QObject): ''' Defines the signals available from a running worker thread. Supported signals are: finished No data error tuple (exctype, value, traceback.format_exc(...
26.56338
90
0.630965
795387844ed09435eac7066733ef2c8c726fc78a
2,044
py
Python
test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.1
108
0.701076
7953881011de50a4a663c8d49ab43c3505fd97c1
4,558
py
Python
demo/demo.py
ignazioa/mobile-gaitlab
34681ce956ad885c388f8b811bf1eb236b1f20b7
[ "Apache-2.0" ]
null
null
null
demo/demo.py
ignazioa/mobile-gaitlab
34681ce956ad885c388f8b811bf1eb236b1f20b7
[ "Apache-2.0" ]
null
null
null
demo/demo.py
ignazioa/mobile-gaitlab
34681ce956ad885c388f8b811bf1eb236b1f20b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Demonstration of Video Gait Analysis # # In this notebook we present how to run OpenPose processing on a video and how apply neural networks from the paper to data processed by OpenPose. As a result, for a given mp4 file we will get predictions from all models. # # To run th...
32.791367
222
0.680123
795388346a96203adca6c3bb8e1daa74b07b4c8c
6,267
py
Python
core/models/mixins/domain_ruler_mixin.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
null
null
null
core/models/mixins/domain_ruler_mixin.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
4
2021-03-30T14:04:56.000Z
2021-06-10T19:40:52.000Z
core/models/mixins/domain_ruler_mixin.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from django.forms import ValidationError from django.utils.translation import gettext as _ __all__ = [ 'DomainRuleMixin', 'DeletionRuleChecker', 'IntegrityRuleChecker', 'RuleIntegrityError', 'RuleInstanceTypeError', ] class RuleValidationError(Exception): ...
29.013889
76
0.613212
795388b2a21b8e055b53e62b36eeaf02cb136185
4,185
py
Python
benchmark/startQiskit_QC1938.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1938.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1938.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=33 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
34.875
165
0.654958
795388bcbdf9e12af556954f71bd3aa0505aa755
6,024
py
Python
toontown/catalog/CatalogFlooringItem.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/catalog/CatalogFlooringItem.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/catalog/CatalogFlooringItem.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from CatalogSurfaceItem import * FTTextureName = 0 FTColor = 1 FTBasePrice = 2 FlooringTypes = {1000: ('phase_5.5/maps/floor_wood_neutral.jpg', CTBasicWoodColorOnWhite, 150), 1010: ('phase_5.5/maps/flooring_carpetA_neutral.jpg', CTFlatColorDark, 150), 1020: ('phase_4/maps/flooring_tile_neutral.jpg', CTFlatColorDark, ...
35.435294
117
0.65405
7953894d7bc2f0cf05ba26388582a009425b7fdd
43,458
py
Python
config.py
swinslow/scaffold
4cf48b9f1545ad789095cf93a68a78a5df63f8b5
[ "Apache-2.0" ]
null
null
null
config.py
swinslow/scaffold
4cf48b9f1545ad789095cf93a68a78a5df63f8b5
[ "Apache-2.0" ]
18
2020-01-09T21:50:34.000Z
2021-01-04T19:02:37.000Z
config.py
swinslow/scaffold
4cf48b9f1545ad789095cf93a68a78a5df63f8b5
[ "Apache-2.0" ]
null
null
null
# Copyright The Linux Foundation # SPDX-License-Identifier: Apache-2.0 import json import os from pathlib import Path from shutil import copyfile import yaml from datatypes import Config, Finding, JiraSecret, MatchText, Priority, Project, ProjectRepoType, Secrets, SLMCategoryConfig, SLMLicenseConfig, SLMPolicy, Stat...
45.793467
211
0.489668
79538987768c3623242cd947dfce222a2c98eb87
321,160
py
Python
graphs/n.py
jaatadia/tic-toc-sic
ee93e23bbe40c9ad5d981604d01076386a6b9b59
[ "MIT" ]
null
null
null
graphs/n.py
jaatadia/tic-toc-sic
ee93e23bbe40c9ad5d981604d01076386a6b9b59
[ "MIT" ]
null
null
null
graphs/n.py
jaatadia/tic-toc-sic
ee93e23bbe40c9ad5d981604d01076386a6b9b59
[ "MIT" ]
null
null
null
import csv import matplotlib.pyplot as plt import numpy as np from scipy.stats import mode # ----------------------------------- # DATA # ----------------------------------- n = [1.151309, 1.706339, 0.392103, 0.279633, 0.428113, 0.124932, 1.550828, 4.597046, 2.037313, 1.119261, 0.797872, 0.511729, 0.654323, 1.704...
13,381.666667
320,696
0.700109
79538992332f18ef9a73f228c4a3552c62cd6e0a
371
py
Python
experiments/heat-3d/tmp_files/1766.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/heat-3d/tmp_files/1766.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/heat-3d/tmp_files/1766.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/1766.c') procedure('kernel_heat_3d') loop(0) tile(0,2,8,2) tile(0,4,8,4) tile(0,6,...
23.1875
116
0.743935
79538b20d56d6e53874725977744fac27a6e3fdf
1,085
py
Python
geodashserver/data.py
geodashio/geodash-server
196a2a437e75dc6b2687cd778e87e37d11f7a1a2
[ "BSD-3-Clause" ]
1
2017-04-03T02:22:18.000Z
2017-04-03T02:22:18.000Z
geodashserver/data.py
geodashio/geodash-server
196a2a437e75dc6b2687cd778e87e37d11f7a1a2
[ "BSD-3-Clause" ]
1
2016-08-22T16:05:22.000Z
2016-08-22T16:05:22.000Z
geodashserver/data.py
geodashio/geodash-server
196a2a437e75dc6b2687cd778e87e37d11f7a1a2
[ "BSD-3-Clause" ]
null
null
null
import errno import psycopg2 from socket import error as socket_error #from jenks import jenks from django.conf import settings from django.template.loader import get_template from geodash.enumerations import MONTHS_SHORT3 from geodash.cache import provision_memcached_client from geodash.data import data_local_coun...
31
87
0.668203
79538c22d0f50b2f4d4d52c05c9b60fa2527d213
14,167
py
Python
speedydeploy/webserver.py
suvit/speedydeploy
124d7723f9e5935935f97bd3b1e433cfd251084d
[ "MIT" ]
null
null
null
speedydeploy/webserver.py
suvit/speedydeploy
124d7723f9e5935935f97bd3b1e433cfd251084d
[ "MIT" ]
null
null
null
speedydeploy/webserver.py
suvit/speedydeploy
124d7723f9e5935935f97bd3b1e433cfd251084d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement import os import time from fabric import api as fab from fab_deploy.utils import run_as from base import _, Daemon, Ubuntu from deployment import command from utils import upload_template, upload_first class FrontEnd(Daemon): config_dir = None ...
29.270661
96
0.549446
79538c3db177192d101c5635ba954704a0a10aa8
28,948
py
Python
notebooks/120.4-BDP-silly-models.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
notebooks/120.4-BDP-silly-models.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
notebooks/120.4-BDP-silly-models.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
# %% [markdown] # # THE MIND OF A MAGGOT # %% [markdown] # ## Imports import os import time import colorcet as cc import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.transforms as transforms import numpy as np import pandas as pd import seaborn as sns from scipy.linalg import orthogonal_procrus...
32.200222
89
0.627781
79538d4d2e5744f63d8d01e4385a1792c6f8580a
192
py
Python
Desafios/Desafio2.py
Felix-xilef/Curso-de-Python
cdff7c7f3850e6326e274c8c1987b9e1a18ce910
[ "MIT" ]
null
null
null
Desafios/Desafio2.py
Felix-xilef/Curso-de-Python
cdff7c7f3850e6326e274c8c1987b9e1a18ce910
[ "MIT" ]
null
null
null
Desafios/Desafio2.py
Felix-xilef/Curso-de-Python
cdff7c7f3850e6326e274c8c1987b9e1a18ce910
[ "MIT" ]
null
null
null
import os print("Digite:\n") dia = input('\tDia = ') mes = input('\tMês = ') ano = input('\tAno = ') print('\nVocê nasceu no dia', dia, 'de', mes, 'de', ano, '\nCorreto?') os.system("pause")
21.333333
70
0.578125
79538d70783cc891418df3649a8591b93e1e5933
5,084
py
Python
test/kb_variation_importer_server_test.py
pjtinker/kb_validation_demo
550ddb6c7cd5cf7ff32790659a885675bf53d113
[ "MIT" ]
1
2019-01-24T20:38:11.000Z
2019-01-24T20:38:11.000Z
test/kb_variation_importer_server_test.py
pjtinker/kb_validation_demo
550ddb6c7cd5cf7ff32790659a885675bf53d113
[ "MIT" ]
null
null
null
test/kb_variation_importer_server_test.py
pjtinker/kb_validation_demo
550ddb6c7cd5cf7ff32790659a885675bf53d113
[ "MIT" ]
1
2019-01-08T16:55:32.000Z
2019-01-08T16:55:32.000Z
# -*- coding: utf-8 -*- import unittest import os # noqa: F401 import json # noqa: F401 import time import requests import shutil import uuid from os import environ try: from ConfigParser import ConfigParser # py2 except: from configparser import ConfigParser # py3 from pprint import pprint # noqa: F401 ...
37.109489
104
0.596577
79538e437ed7a900d6d38303d112882f1d74dcea
1,167
py
Python
src/stage_00_template.py
nitinkakad/MLflow_CNN_App-FSDS
7e416a0d56278e3352619dbf69dc701ace93093b
[ "MIT" ]
null
null
null
src/stage_00_template.py
nitinkakad/MLflow_CNN_App-FSDS
7e416a0d56278e3352619dbf69dc701ace93093b
[ "MIT" ]
null
null
null
src/stage_00_template.py
nitinkakad/MLflow_CNN_App-FSDS
7e416a0d56278e3352619dbf69dc701ace93093b
[ "MIT" ]
null
null
null
import argparse import os import shutil from tqdm import tqdm import logging from src.utils.common import read_yaml, create_directories import random import urllib.request as req STAGE = "TEMPLATE" ## <<< change stage name logging.basicConfig( filename=os.path.join("logs", 'running_logs.log'), ...
28.463415
77
0.627249
79538e595767a5665244f718b0ce5886a47cffaa
955
py
Python
travel/urls.py
team-yuml-kkks/TravelAPI
62ccbdd071206f2e76d44b8661518d5bc9a7e7fd
[ "MIT" ]
null
null
null
travel/urls.py
team-yuml-kkks/TravelAPI
62ccbdd071206f2e76d44b8661518d5bc9a7e7fd
[ "MIT" ]
7
2019-12-04T23:05:25.000Z
2022-02-10T09:23:59.000Z
travel/urls.py
team-yuml-kkks/TravelAPI
62ccbdd071206f2e76d44b8661518d5bc9a7e7fd
[ "MIT" ]
null
null
null
"""travel URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
38.2
77
0.726702
79538f34c0325804a8bf33a22f346cebdcee4043
4,617
py
Python
build_files.py
david-hay-eips/recess-countdown
06861d7961f6bc64061385f6a45a5bd1f8df97b2
[ "CC0-1.0" ]
1
2021-03-30T15:54:01.000Z
2021-03-30T15:54:01.000Z
build_files.py
david-hay-eips/recess-countdown
06861d7961f6bc64061385f6a45a5bd1f8df97b2
[ "CC0-1.0" ]
null
null
null
build_files.py
david-hay-eips/recess-countdown
06861d7961f6bc64061385f6a45a5bd1f8df97b2
[ "CC0-1.0" ]
null
null
null
import csv with open('bell-times.csv') as csv_file: csv_reader = csv.reader(csv_file, delimiter=',') line_count = 0 for row in csv_reader: if line_count > 0: group = row[0] if group[1] == 'R': lunchOrRecess = "'lunch'" else: lunchOr...
45.712871
149
0.491878
79538f9daf2a410ce09288ab34ba4c44c5218eee
95
py
Python
dycco/tests/input/bad_shebang_and_coding.py
mccutchen/dycco
da8236e6faf922827ed68fd04a41c199b566d674
[ "MIT" ]
2
2016-05-01T15:18:43.000Z
2016-12-26T15:30:50.000Z
dycco/tests/input/bad_shebang_and_coding.py
mccutchen/dycco
da8236e6faf922827ed68fd04a41c199b566d674
[ "MIT" ]
4
2022-03-15T07:59:13.000Z
2022-03-24T14:49:39.000Z
dycco/tests/input/bad_shebang_and_coding.py
mccutchen/dycco
da8236e6faf922827ed68fd04a41c199b566d674
[ "MIT" ]
1
2016-05-01T15:18:50.000Z
2016-05-01T15:18:50.000Z
# Shebang must come first #!/usr/bin/env/python2.6 # -*- coding: utf8 -*- print 'Hello, World!'
23.75
25
0.652632
795390516bd4b5993c1324b8d43b3884defab4df
28,527
py
Python
custom_components/hasl/sensor.py
DSorlov/ha-sensor-sl
6d6b27baff5322bf9e1abc819ef23dca5af826d3
[ "Apache-2.0" ]
7
2018-12-02T19:14:16.000Z
2019-05-07T07:52:25.000Z
custom_components/hasl/sensor.py
DSorlov/ha-sensor-sl
6d6b27baff5322bf9e1abc819ef23dca5af826d3
[ "Apache-2.0" ]
23
2019-02-11T13:20:31.000Z
2019-05-10T11:03:12.000Z
custom_components/hasl/sensor.py
DSorlov/ha-sensor-sl
6d6b27baff5322bf9e1abc819ef23dca5af826d3
[ "Apache-2.0" ]
4
2019-03-13T12:22:58.000Z
2019-04-30T20:51:25.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Simple service for SL (Storstockholms Lokaltrafik).""" import datetime import json import logging from datetime import timedelta import math import homeassistant.helpers.config_validation as cv import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SC...
34.874083
79
0.541943
7953913a4d4d6e73a182c23626673ec8acf908b6
639
py
Python
backend/home/migrations/0003_room.py
open-home-iot/hint
b674f83ee61d7cc653acec15b92b98618f8e23b5
[ "MIT" ]
null
null
null
backend/home/migrations/0003_room.py
open-home-iot/hint
b674f83ee61d7cc653acec15b92b98618f8e23b5
[ "MIT" ]
3
2020-12-28T23:31:47.000Z
2021-04-18T09:30:43.000Z
backend/home/migrations/0003_room.py
megacorpincorporated/hint
136700c743a647cc9bf35548a7baeaac238e3b1f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-02-12 18:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0002_home_users'), ] operations = [ migrations.CreateModel( name='Room', fi...
27.782609
114
0.594679
79539144fef5607f1a74bc5b04749fd6229c7c3b
584
py
Python
chapter7/behavior_path.py
dannystaple/Learn-Robotics-Programming-Second-Edition
081ed9bbab59aab57334fe8f2f06a157a8639eb4
[ "MIT" ]
19
2020-05-13T12:53:59.000Z
2022-03-07T19:50:30.000Z
chapter7/behavior_path.py
dannystaple/Learn-Robotics-Programming-Second-Edition
081ed9bbab59aab57334fe8f2f06a157a8639eb4
[ "MIT" ]
1
2020-11-20T16:56:24.000Z
2020-12-01T06:24:45.000Z
chapter7/behavior_path.py
dannystaple/Learn-Robotics-Programming-Second-Edition
081ed9bbab59aab57334fe8f2f06a157a8639eb4
[ "MIT" ]
12
2019-12-24T18:13:14.000Z
2022-03-20T23:44:12.000Z
import robot from time import sleep def straight(bot, seconds): bot.set_left(100) bot.set_right(100) sleep(seconds) def turn_left(bot, seconds): bot.set_left(20) bot.set_right(80) sleep(seconds) def turn_right(bot, seconds): bot.set_left(80) bot.set_right(20) sleep(seconds) def s...
17.176471
29
0.681507
795391b1ebb945645521681cf0a83cf8f1ae7e42
5,346
py
Python
rubiks-cube-solver.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
59
2017-04-29T15:19:29.000Z
2022-03-18T22:17:20.000Z
rubiks-cube-solver.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
44
2017-05-25T00:05:31.000Z
2022-03-23T22:39:34.000Z
rubiks-cube-solver.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
19
2017-06-17T00:32:47.000Z
2021-12-18T00:03:56.000Z
#!/usr/bin/env python3 """ Solve any size rubiks cube: - For 2x2x2 and 3x3x3 just solve it - For 4x4x4 and larger, reduce to 3x3x3 and then solve """ # standard libraries import argparse import datetime as dt import logging import resource import sys from math import sqrt # rubiks cube libraries from rubikscubennnso...
31.633136
119
0.693416
7953943c1319cd9dea749571147c339625db2d5d
2,170
py
Python
frameworks/scrapy/crawler.py
Crossroadsman/python-notes
b12658e172c23e29e7c61e6aee73743dcb256aa5
[ "Apache-2.0" ]
null
null
null
frameworks/scrapy/crawler.py
Crossroadsman/python-notes
b12658e172c23e29e7c61e6aee73743dcb256aa5
[ "Apache-2.0" ]
null
null
null
frameworks/scrapy/crawler.py
Crossroadsman/python-notes
b12658e172c23e29e7c61e6aee73743dcb256aa5
[ "Apache-2.0" ]
null
null
null
"""crawler.py This is a spider and in a scrapy project it would be saved in the `<ProjectName>/spiders` subdirectory of the project. Execute the crawl by running scrapy with the crawl option and passing the spider's name: ``` (venv) $ pwd /Users/MyUser/MyProject (venv) $ scrapy crawl whirlaway ``` """ from scrapy.li...
37.413793
80
0.687097
7953949d298bf6b2f2f3bb5441231cd1d4ba6186
964
py
Python
catalog/tests/test_urls.py
ens-lgil/PGS_Catalog
24cfaf8e0dd3d6b4b024b5cefca226e6fc8eb659
[ "Apache-2.0" ]
1
2020-01-29T11:01:53.000Z
2020-01-29T11:01:53.000Z
catalog/tests/test_urls.py
ens-lgil/PGS_Catalog
24cfaf8e0dd3d6b4b024b5cefca226e6fc8eb659
[ "Apache-2.0" ]
null
null
null
catalog/tests/test_urls.py
ens-lgil/PGS_Catalog
24cfaf8e0dd3d6b4b024b5cefca226e6fc8eb659
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase, Client databases_list = ['default', 'benchmark'] class BrowseUrlTest(TestCase): """ Test the main URLs of the website """ databases = databases_list def test_urls(self): client = Client() urls = [ '/', '/about/', '/benc...
24.717949
51
0.478216
795395c84203cc827efadcce1c31146cf7034efa
30
py
Python
python/testData/quickFixes/PyRenameElementQuickFixTest/renameInInjectedFragment_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyRenameElementQuickFixTest/renameInInjectedFragment_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickFixes/PyRenameElementQuickFixTest/renameInInjectedFragment_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
a = """ def f(): a = 1 """
7.5
9
0.233333
79539722f7b24bd61da5836b034d40c6bbdb15ba
871
py
Python
rename.py
michaelczhou/travel_mod
198ac84f012ba7acca1c58b895a5edffaf8360e3
[ "MIT" ]
null
null
null
rename.py
michaelczhou/travel_mod
198ac84f012ba7acca1c58b895a5edffaf8360e3
[ "MIT" ]
null
null
null
rename.py
michaelczhou/travel_mod
198ac84f012ba7acca1c58b895a5edffaf8360e3
[ "MIT" ]
null
null
null
import os import sys def rename(): count = 1 #path = sys.path[0] #得到文件路径 #path = "/home/zc/Downloads/datesets/data2018/g" path = "/home/zc/project/travel_mod-build/g/" #path = "/home/zc/project/travel_mod-build/label/commit/" filelist = os.listdir(path) #得到文件名字 print(filelist) ...
34.84
69
0.58209
7953983cf2b03811a6284bae939a2c560007ca14
2,714
py
Python
tempest/api_schema/response/compute/v2_1/quotas.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
3
2016-07-15T12:27:23.000Z
2021-04-23T04:41:10.000Z
tempest/lib/api_schema/response/compute/v2_1/quotas.py
LIS/lis-tempest
8e6403b2d6de81c5d18ed867b4977385c8278b75
[ "Apache-2.0" ]
null
null
null
tempest/lib/api_schema/response/compute/v2_1/quotas.py
LIS/lis-tempest
8e6403b2d6de81c5d18ed867b4977385c8278b75
[ "Apache-2.0" ]
12
2016-07-14T18:13:05.000Z
2017-07-08T18:45:42.000Z
# Copyright 2014 NEC Corporation. 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 required ...
41.121212
78
0.537583
79539a3091e38a4253e4e77152e8de1b4bdc75af
2,775
py
Python
Lib/fontTools/pens/boundsPen.py
RimeOCRLIB/fonttools
af18936984da9ecdc984e4d521cf52934d47007d
[ "Adobe-Glyph" ]
null
null
null
Lib/fontTools/pens/boundsPen.py
RimeOCRLIB/fonttools
af18936984da9ecdc984e4d521cf52934d47007d
[ "Adobe-Glyph" ]
null
null
null
Lib/fontTools/pens/boundsPen.py
RimeOCRLIB/fonttools
af18936984da9ecdc984e4d521cf52934d47007d
[ "Adobe-Glyph" ]
1
2019-08-14T15:57:38.000Z
2019-08-14T15:57:38.000Z
from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * from fontTools.misc.arrayTools import updateBounds, pointInRect, unionRect from fontTools.misc.bezierTools import calcCubicBounds, calcQuadraticBounds from fontTools.pens.basePen import BasePen __all__ = ["BoundsPen", "...
28.90625
75
0.734775
79539b34451626856df2559112fcd02fb12d62fe
2,012
py
Python
airflow/api/common/experimental/get_dag_runs.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2019-10-03T21:38:59.000Z
2019-10-04T00:39:03.000Z
airflow/api/common/experimental/get_dag_runs.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
airflow/api/common/experimental/get_dag_runs.py
upjohnc/airflow-upjohn-k8s
caadbc1618d73e054de99138b0892cea3a9327c4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
37.259259
83
0.675447
79539b4fdd83ec200a19d95b7f4f9e9c20582825
130
py
Python
codigo/Live01/basic_botle.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live01/basic_botle.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live01/basic_botle.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
from bottle import route, run @route('/') def index(): return "<h1>olá pessoas</h1>" if __name__ == '__main__': run()
11.818182
33
0.6
79539bcb8efaa5cf164d1ddcde690d0e2ed47eef
2,591
py
Python
test/utils/test_cnn.py
q759729997/qytPytorch
b9b4b6aeff67596c493871c0842dc72c5b66c548
[ "Apache-2.0" ]
null
null
null
test/utils/test_cnn.py
q759729997/qytPytorch
b9b4b6aeff67596c493871c0842dc72c5b66c548
[ "Apache-2.0" ]
null
null
null
test/utils/test_cnn.py
q759729997/qytPytorch
b9b4b6aeff67596c493871c0842dc72c5b66c548
[ "Apache-2.0" ]
null
null
null
""" main_module - CNN工具类,测试时将对应方法的@unittest.skip注释掉. Main members: # __main__ - 程序入口. """ import sys import unittest import torch from torch import nn sys.path.insert(0, './') # 定义搜索路径的优先顺序,序号从0开始,表示最大优先级 import qytPytorch # noqa print('qytPytorch module path :{}'.format(qytPytorc...
35.986111
127
0.59012
79539c5abdb6274dcf63a4557cb0afc4f6f30a0b
3,328
py
Python
test/test_engine.py
kvonkoni/osler
6aec649548e1cd609decaaa0f6a91a8d6884bf60
[ "MIT" ]
null
null
null
test/test_engine.py
kvonkoni/osler
6aec649548e1cd609decaaa0f6a91a8d6884bf60
[ "MIT" ]
null
null
null
test/test_engine.py
kvonkoni/osler
6aec649548e1cd609decaaa0f6a91a8d6884bf60
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys, unittest lib_path = os.path.abspath(os.path.join('..')) sys.path.append(lib_path) from osler.assertion import Assertion from osler.criterion import Criterion from osler.diagnosis import Diagnosis from osler.issue import Issue from osler.graph import Node from osler.engine import M...
30.254545
116
0.654748
79539e73b19a3ab7611ed7c046028c12453ee7a4
430
py
Python
venv/Scripts/easy_install-3.7-script.py
Rr-shan/100days
d8b25686350dd89f2253d5e077aebe5099090a70
[ "MIT" ]
1
2020-05-13T13:50:55.000Z
2020-05-13T13:50:55.000Z
venv/Scripts/easy_install-3.7-script.py
Rr-shan/100days
d8b25686350dd89f2253d5e077aebe5099090a70
[ "MIT" ]
null
null
null
venv/Scripts/easy_install-3.7-script.py
Rr-shan/100days
d8b25686350dd89f2253d5e077aebe5099090a70
[ "MIT" ]
null
null
null
#!E:\100days\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]...
33.076923
87
0.681395
79539f171b11d067d372dd7f773b3f28ca1c0d21
5,696
py
Python
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
null
null
null
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
null
null
null
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
1
2022-01-19T14:49:42.000Z
2022-01-19T14:49:42.000Z
import requests, datetime as dt, numpy as np, pandas as pd, pytz from dateutil.relativedelta import relativedelta # Call for raw data (NASDAQ) def nsdq_data(ticker): try: today = dt.datetime.now(pytz.timezone('US/Eastern')).date() past = today - relativedelta(years= 5) price = current_pric...
34.107784
119
0.548631
79539f6ea84b2c8c29327390a590b0bc95e6f68c
1,897
py
Python
test_merge.py
LeoWood/bert
bb916e2038e9c8360463e60678d999606f58ad0d
[ "Apache-2.0" ]
1
2019-12-30T12:14:44.000Z
2019-12-30T12:14:44.000Z
test_merge.py
LeoWood/bert
bb916e2038e9c8360463e60678d999606f58ad0d
[ "Apache-2.0" ]
null
null
null
test_merge.py
LeoWood/bert
bb916e2038e9c8360463e60678d999606f58ad0d
[ "Apache-2.0" ]
1
2020-06-19T10:48:38.000Z
2020-06-19T10:48:38.000Z
#!/usr/bin/env python #-*- coding:utf-8 -*- # Author: LiuHuan # Datetime: 2019/6/21 10:45 from sklearn import metrics import os import pandas as pd import tensorflow as tf flags = tf.flags FLAGS = flags.FLAGS ## Required parameters flags.DEFINE_string( "output_dir", None, "output results dir") flags.DEFINE_...
37.94
125
0.574064
79539f8a521d976bffbaff98920b2a8d3a226599
1,699
py
Python
picture/src/7MX.py
zjh567/py-scripts
d54c220de000d3a52615d7ed5652ad61741a41c5
[ "Apache-2.0" ]
2
2020-01-13T16:15:32.000Z
2020-01-27T11:45:59.000Z
picture/src/7MX.py
zjh567/py-scripts
d54c220de000d3a52615d7ed5652ad61741a41c5
[ "Apache-2.0" ]
null
null
null
picture/src/7MX.py
zjh567/py-scripts
d54c220de000d3a52615d7ed5652ad61741a41c5
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 import requests import json import os import sys import re headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.5', 'Connection': 'keep-alive', 'Host': 'api.7mx.com', 'Upgrade-Insecure-Requests': 1, ...
27.403226
94
0.613891
79539fa18707fb2c5dddf7a543272153174ac5d6
2,357
py
Python
tests/test_patterns.py
cofin/aiosql
d29a75e07ab1b13c369f15fe7813a1763fdd7f28
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_patterns.py
cofin/aiosql
d29a75e07ab1b13c369f15fe7813a1763fdd7f28
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_patterns.py
cofin/aiosql
d29a75e07ab1b13c369f15fe7813a1763fdd7f28
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from aiosql.patterns import var_pattern def test_var_pattern_is_quote_aware(): sql = """ select foo_id, bar_id, to_char(created_at, 'YYYY-MM-DD"T"HH24:MI:SSOF') from foos join bars using(bar_id) join bazs using(baz_id) wher...
28.39759
101
0.533305
7953a027c0df955a9c042654a605e034b2b77bf7
23,115
py
Python
mmdet3d/models/dense_heads/anchor_free_mono3d_head.py
maskjp/mmdetection3d
98f332372b1a4c82bc2d57588a5d764f4176c869
[ "Apache-2.0" ]
1
2022-03-04T19:29:42.000Z
2022-03-04T19:29:42.000Z
mmdet3d/models/dense_heads/anchor_free_mono3d_head.py
maskjp/mmdetection3d
98f332372b1a4c82bc2d57588a5d764f4176c869
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/dense_heads/anchor_free_mono3d_head.py
maskjp/mmdetection3d
98f332372b1a4c82bc2d57588a5d764f4176c869
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from abc import abstractmethod import torch from mmcv.cnn import ConvModule, bias_init_with_prob, normal_init from mmcv.runner import force_fp32 from torch import nn as nn from mmdet.core import multi_apply from mmdet.models.builder import HEADS, build_loss from .base_m...
43.205607
79
0.584253
7953a098b63a73948d05222c479c2ab04e32dcf4
711
py
Python
test.py
nx-python/nx
eef890370950b2dec8be797d1e26113cfe457c2f
[ "ISC" ]
16
2018-03-25T17:22:38.000Z
2022-01-15T14:39:05.000Z
test.py
nx-python/nx
eef890370950b2dec8be797d1e26113cfe457c2f
[ "ISC" ]
6
2018-05-14T18:50:56.000Z
2020-04-29T03:45:10.000Z
test.py
nx-python/nx
eef890370950b2dec8be797d1e26113cfe457c2f
[ "ISC" ]
8
2018-03-23T15:54:39.000Z
2018-08-26T20:32:38.000Z
import nx import shutil BOTW_TITLE_ID = 0x01007ef00011e000 SAVEGAME_PATH = '0/game_data.sav' OUTPUT_PATH = 'botw_0_game_data.sav' def main(): botw = nx.titles[BOTW_TITLE_ID] # get botw Title object try: with botw.savedata as savedata: # mount BotW savedata partition with savedata.open...
29.625
109
0.684951
7953a21bcbd77cafccb7ff6974abb05e8cf3f365
2,353
py
Python
main.py
panyam/blogcentral
747a4e8dc0555c9e03069a2683f10c7d358acf75
[ "Apache-2.0" ]
null
null
null
main.py
panyam/blogcentral
747a4e8dc0555c9e03069a2683f10c7d358acf75
[ "Apache-2.0" ]
4
2020-12-04T20:32:40.000Z
2022-02-13T13:00:15.000Z
main.py
panyam/blogcentral
747a4e8dc0555c9e03069a2683f10c7d358acf75
[ "Apache-2.0" ]
null
null
null
# import googleclouddebugger # googleclouddebugger.enable() from flask import request, Flask, Blueprint, render_template, redirect, jsonify, session, send_from_directory import blogcentral_config as bcconfigs import utils # If `entrypoint` is not defined in app.yaml, App Engine will look for an app # called `app` in...
34.101449
114
0.697833
7953a25d23a3b7d64da053b5ad1e265dc8b42fcc
114
py
Python
pt01_object,design/cpt01/__init__.py
s3ich4n/object_study
302108212d1d1f18ae57135145416513de3cb7c2
[ "MIT" ]
null
null
null
pt01_object,design/cpt01/__init__.py
s3ich4n/object_study
302108212d1d1f18ae57135145416513de3cb7c2
[ "MIT" ]
2
2021-06-03T18:45:13.000Z
2021-06-04T13:09:29.000Z
pt01_object,design/cpt01/__init__.py
s3ich4n/object_study
302108212d1d1f18ae57135145416513de3cb7c2
[ "MIT" ]
null
null
null
# # 주요 객체들을 init하는 코드 # # @author Seongeun Yu (s3ich4n@gmail.com) # @date 2021/06/03 23:52 created. #
16.285714
46
0.596491
7953a2e39a3cc1ffd8515a09dbf907510aeaf666
16,620
py
Python
flexget/plugins/api_tmdb.py
cvium/Flexget
4279058887a77a78052a2a666bf9b8d9b98f5268
[ "MIT" ]
1
2017-08-25T07:17:04.000Z
2017-08-25T07:17:04.000Z
flexget/plugins/api_tmdb.py
cvium/Flexget
4279058887a77a78052a2a666bf9b8d9b98f5268
[ "MIT" ]
1
2015-11-10T01:07:54.000Z
2015-11-10T01:07:54.000Z
flexget/plugins/api_tmdb.py
cvium/Flexget
4279058887a77a78052a2a666bf9b8d9b98f5268
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from datetime import datetime, timedelta import logging import os import posixpath import socket import sys from urllib2 import URLError from sqlalchemy import Table, Column, Integer, Float, String, Unicode, Boolean, DateTime, func from sqlalchemy.sche...
44.084881
119
0.622082
7953a31de0de94a228a87b0755c51f225fdcdbd9
10,690
py
Python
accelbyte_py_sdk/api/dsmc/operations/deployment_config/update_override_region__fb90bf.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/dsmc/operations/deployment_config/update_override_region__fb90bf.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/dsmc/operations/deployment_config/update_override_region__fb90bf.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
32.791411
167
0.625631
7953a55a6f8eae953b80d6aa18ffc31c72dfcddf
15
py
Python
python100days/Day15/pdf1.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
null
null
null
python100days/Day15/pdf1.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
1
2021-06-02T00:58:26.000Z
2021-06-02T00:58:26.000Z
python100days/Day15/pdf2.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
null
null
null
''' 创建pdf文件 '''
5
7
0.466667
7953a5650bf6325534279c5b266f47607b03df10
83,494
py
Python
statsmodels/tsa/statespace/sarimax.py
dieterv77/statsmodels
ec3b6d02c96cd9c8f4b993434f0bbae4b3e91a21
[ "BSD-3-Clause" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
venv/lib/python3.6/site-packages/statsmodels/tsa/statespace/sarimax.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
venv/lib/python3.6/site-packages/statsmodels/tsa/statespace/sarimax.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
""" SARIMAX Model Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function from statsmodels.compat.python import long from warnings import warn import numpy as np from .kalman_filter import KalmanFilter from .mlemodel import MLEModel, MLEResults, MLEResultsWrap...
40.868331
79
0.602391
7953a5d75093b3de8e27ed4dda72300c6445d4df
1,224
py
Python
src/profiles/admin.py
TechFitU/SctVehCheck
4e034c6040dccda8477a3ded14b2fb571fde70b9
[ "MIT" ]
null
null
null
src/profiles/admin.py
TechFitU/SctVehCheck
4e034c6040dccda8477a3ded14b2fb571fde70b9
[ "MIT" ]
13
2020-02-11T22:48:15.000Z
2022-03-11T23:25:40.000Z
src/profiles/admin.py
TechFitU/SctVehCheck
4e034c6040dccda8477a3ded14b2fb571fde70b9
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from authtools.admin import NamedUserAdmin from django.contrib import admin from django.contrib.auth import get_user_model from django.urls import reverse from django.utils.html import format_html from django.utils.text import gettext_lazy from .models import Profile User = ge...
31.384615
71
0.714869
7953a790b7f28ae8dcc2e34539b7f57eb0423dc4
5,478
py
Python
MicroPython_BUILD/components/micropython/esp32/modules_examples/drivers/mpu6500.py
sio-funmatsu/MicroPython_ESP32_psRAM_LoBo
108f1ceaa79c120de652af744eda01b1a4a5dc8c
[ "Apache-2.0" ]
1
2020-04-27T23:05:18.000Z
2020-04-27T23:05:18.000Z
MicroPython_BUILD/components/micropython/esp32/modules_examples/drivers/mpu6500.py
sio-funmatsu/MicroPython_ESP32_psRAM_LoBo
108f1ceaa79c120de652af744eda01b1a4a5dc8c
[ "Apache-2.0" ]
null
null
null
MicroPython_BUILD/components/micropython/esp32/modules_examples/drivers/mpu6500.py
sio-funmatsu/MicroPython_ESP32_psRAM_LoBo
108f1ceaa79c120de652af744eda01b1a4a5dc8c
[ "Apache-2.0" ]
1
2020-04-27T23:14:37.000Z
2020-04-27T23:14:37.000Z
# # This file is part of MicroPython MPU9250 driver # Copyright (c) 2018 Mika Tuupola # # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php # # Project home: # https://github.com/tuupola/micropython-mpu9250 # """ MicroPython I2C driver for MPU6500 6-axis motion tracking device ""...
30.265193
82
0.678897
7953a7bb8cfc7eb72be3ded4082c542cfae8efdf
3,224
py
Python
homeassistant/components/cert_expiry/config_flow.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
homeassistant/components/cert_expiry/config_flow.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
57
2020-10-15T06:47:00.000Z
2022-03-31T06:11:18.000Z
homeassistant/components/cert_expiry/config_flow.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Config flow for the Cert Expiry platform.""" import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_HOST, CONF_PORT from .const import DEFAULT_PORT, DOMAIN # pylint: disable=unused-import from .errors import ( ConnectionRefused, ConnectionTim...
33.936842
83
0.600496
7953aa09634a29afe8d6584459063804241405df
10,007
bzl
Python
third_party_repositories.bzl
meteorcloudy/bazel-federation
b3252e9c00cd6c788139008cd0ce34a4b0481b53
[ "Apache-2.0" ]
49
2019-01-09T19:21:34.000Z
2021-11-10T22:21:27.000Z
third_party_repositories.bzl
meteorcloudy/bazel-federation
b3252e9c00cd6c788139008cd0ce34a4b0481b53
[ "Apache-2.0" ]
55
2019-03-19T15:35:05.000Z
2021-07-12T08:30:39.000Z
third_party_repositories.bzl
meteorcloudy/bazel-federation
b3252e9c00cd6c788139008cd0ce34a4b0481b53
[ "Apache-2.0" ]
17
2019-01-09T16:37:01.000Z
2021-11-09T12:07:53.000Z
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def _import_abseil_py(name): maybe( http_archive, name = name, sha256 = "3d...
38.04943
183
0.649545
7953aa21dafaffbdcec07b89fa4806af9606730c
1,765
py
Python
utils/indigo-service/service/test/tests.py
f1nzer/Indigo
59efbd0be0b42f449f706c3a3c8d094e483e5ef4
[ "Apache-2.0" ]
null
null
null
utils/indigo-service/service/test/tests.py
f1nzer/Indigo
59efbd0be0b42f449f706c3a3c8d094e483e5ef4
[ "Apache-2.0" ]
null
null
null
utils/indigo-service/service/test/tests.py
f1nzer/Indigo
59efbd0be0b42f449f706c3a3c8d094e483e5ef4
[ "Apache-2.0" ]
null
null
null
import os import time import unittest import requests if __name__ == "__main__": service_url = "http://front/v2" if ( "INDIGO_SERVICE_URL" in os.environ and len(os.environ["INDIGO_SERVICE_URL"]) > 0 ): service_url = os.environ["INDIGO_SERVICE_URL"] start_time = time.time() ...
29.915254
76
0.54051
7953aad3d22d939f69e06a0c0bfe3d6c81e4570b
2,050
py
Python
tests/resources/quandl_samples/rebuild_samples.py
SJCosgrove/quantoipian
70f8d14778a16f771d8c2ee196a5dba0788e920a
[ "Apache-2.0" ]
7
2018-02-20T20:42:49.000Z
2021-03-22T20:04:28.000Z
tests/resources/quandl_samples/rebuild_samples.py
SJCosgrove/quantoipian
70f8d14778a16f771d8c2ee196a5dba0788e920a
[ "Apache-2.0" ]
null
null
null
tests/resources/quandl_samples/rebuild_samples.py
SJCosgrove/quantoipian
70f8d14778a16f771d8c2ee196a5dba0788e920a
[ "Apache-2.0" ]
3
2018-01-28T20:18:40.000Z
2022-01-25T02:36:35.000Z
""" Script for rebuilding the samples for the Quandl tests. """ from __future__ import print_function import os import requests from io import BytesIO from zipfile import ZipFile from six.moves.urllib.parse import urlencode from zipline.testing import test_resource_path, write_compressed from zipline.data.bundles.quan...
26.282051
64
0.620976
7953ab388875e664da8966614e77f1e630755b9a
465
py
Python
application_src/application.py
mbabu2/codeartifact-jenkins-python-sample
f858ff844cb0c6a64cb9fb14a29693139debe570
[ "MIT-0" ]
3
2020-09-04T09:23:43.000Z
2022-03-24T10:15:39.000Z
application_src/application.py
mbabu2/codeartifact-jenkins-python-sample
f858ff844cb0c6a64cb9fb14a29693139debe570
[ "MIT-0" ]
null
null
null
application_src/application.py
mbabu2/codeartifact-jenkins-python-sample
f858ff844cb0c6a64cb9fb14a29693139debe570
[ "MIT-0" ]
8
2020-10-08T19:49:47.000Z
2022-03-24T16:11:57.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 from flask import Flask from fantastic_ascii import ascii from datetime import datetime app = Flask(__name__) @app.route('/') def hello_world(): now = datetime.now() current_time = now.strftime("%H:%M:%S") ...
27.352941
79
0.694624
7953adb83c06b41d3ca788cd89e69f4e8cee5cba
8,085
py
Python
wallee/models/bank_account.py
bluedynamics/wallee-python-sdk
7f20df96d2c3dba3b1ca5236e8deca578819eea2
[ "Apache-2.0" ]
2
2020-01-16T13:24:06.000Z
2020-11-21T17:40:17.000Z
postfinancecheckout/models/bank_account.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
4
2019-10-14T17:33:23.000Z
2021-10-01T14:49:11.000Z
postfinancecheckout/models/bank_account.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
2
2019-10-15T14:17:10.000Z
2021-09-17T13:07:09.000Z
# coding: utf-8 import pprint import six from enum import Enum class BankAccount: swagger_types = { 'description': 'str', 'id': 'int', 'identifier': 'str', 'linked_space_id': 'int', 'planned_purge_date': 'datetime', 'state': 'BankAccountState', 'type'...
28.772242
204
0.599382
7953adc2fa6ed20045357447a9b5c897735b6583
2,319
py
Python
test/functional/tests/initialize/test_negative_load.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
139
2019-03-29T08:01:40.000Z
2022-03-19T01:01:44.000Z
test/functional/tests/initialize/test_negative_load.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
604
2019-04-12T14:18:59.000Z
2022-03-31T18:19:56.000Z
test/functional/tests/initialize/test_negative_load.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
64
2019-03-29T08:44:01.000Z
2022-03-30T09:11:30.000Z
# # Copyright(c) 2019-2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import pytest from api.cas import casadm, casadm_parser from core.test_run import TestRun from storage_devices.disk import DiskType, DiskTypeSet, DiskTypeLowerThan from test_utils.size import Size, Unit @pytest.mark.require...
37.403226
92
0.678741
7953ade3ecbd9524402b412922a04bdd5e6070fd
61,745
py
Python
isolateserver.py
asdfghjjklllllaaa/client-py
2b9640ed5ccf3921a8292408cbcd7664260eed7d
[ "Apache-2.0" ]
null
null
null
isolateserver.py
asdfghjjklllllaaa/client-py
2b9640ed5ccf3921a8292408cbcd7664260eed7d
[ "Apache-2.0" ]
null
null
null
isolateserver.py
asdfghjjklllllaaa/client-py
2b9640ed5ccf3921a8292408cbcd7664260eed7d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Archives a set of files or directories to an Isolate Server.""" __version__ = '0.9.0' import collections import errno i...
34.475154
105
0.672168
7953aeafe5979b7b3e2320204aab2c5c09452534
4,060
py
Python
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/user_location_view_service/transports/base.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/user_location_view_service/transports/base.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/user_location_view_service/transports/base.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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 applicable law or...
36.25
79
0.667734
7953af27a1b5e4e5e1bb07e184806d41646342a7
85
py
Python
coins/apps.py
ken-www-learn/stock_money_jpw
ed3e144d0c6d4b405a2fa258f6ce999ce38935cc
[ "MIT" ]
1
2018-01-26T20:52:58.000Z
2018-01-26T20:52:58.000Z
coins/apps.py
ken-www-learn/stock_money_jpw
ed3e144d0c6d4b405a2fa258f6ce999ce38935cc
[ "MIT" ]
6
2020-06-05T16:52:05.000Z
2021-09-07T23:48:07.000Z
coincheck/coins/apps.py
mmalarz/coincheck
d403585da5d8485716ec8739f1849fe47174fede
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CoinsConfig(AppConfig): name = 'coins'
14.166667
33
0.741176
7953affa0a1b866b06f5f3ba337758f21e7231b5
115,368
py
Python
eth/abc.py
dbfreem/py-evm
02a1f6f38884b1f7a89640c2095ea5b0f20687c3
[ "MIT" ]
1,641
2017-11-24T04:24:22.000Z
2022-03-31T14:59:30.000Z
eth/abc.py
UniqueMR/py-evm
026ee20f8d9b70d7c1b6a4fb9484d5489d425e54
[ "MIT" ]
1,347
2017-11-23T10:37:36.000Z
2022-03-20T16:31:44.000Z
eth/abc.py
UniqueMR/py-evm
026ee20f8d9b70d7c1b6a4fb9484d5489d425e54
[ "MIT" ]
567
2017-11-22T18:03:27.000Z
2022-03-28T17:49:08.000Z
from abc import ( ABC, abstractmethod ) from typing import ( Any, Callable, ClassVar, ContextManager, Dict, FrozenSet, Iterable, Iterator, List, MutableMapping, NamedTuple, Optional, Sequence, Tuple, Type, TypeVar, Union, Hashable, ) from ...
27.900363
100
0.577691
7953b1f14535f64f86b0b2a80f5d3e6258138b5a
404
py
Python
Aula16/ex07.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula16/ex07.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula16/ex07.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
numeros = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze', 'doze', 'treze', 'catorze', 'quinze', 'dezesseis', 'dezessete', 'dezoito', 'dezenove', 'vinte') num = int(input('Digite um número entre 0 e 20: ')) while num < 0 or num > 20: num = int(input('Tente novamente...
50.5
202
0.611386
7953b49da9fc579045a2427fcbdba9038c1a23bc
1,647
py
Python
result_analysis/exp5/results_to_table.py
maartenbuyl/memory-enhanced-maze-exploration
e897b14ac3678a6d9a80d1366eaec9ebaa13255e
[ "MIT" ]
null
null
null
result_analysis/exp5/results_to_table.py
maartenbuyl/memory-enhanced-maze-exploration
e897b14ac3678a6d9a80d1366eaec9ebaa13255e
[ "MIT" ]
null
null
null
result_analysis/exp5/results_to_table.py
maartenbuyl/memory-enhanced-maze-exploration
e897b14ac3678a6d9a80d1366eaec9ebaa13255e
[ "MIT" ]
null
null
null
import numpy as np import os results_files = [ "post_results_lin.txt", "post_results_lstm.txt", "post_results_gruc.txt" ] # Output: (training set results, test set results) def file_into_tuple(file_name): prefix = os.path.dirname(__file__) + "/" file = open(prefix + file_name) lines = file.r...
25.734375
104
0.615058
7953b5b0e1296430a4137f3f04eaa97a07fd74c1
371
py
Python
src/models/Match.py
ItsSyed/automated-Wechat-cricket-commentary
95f031174f89ef3ce9fbfe078635ffa842c7af4a
[ "MIT" ]
2
2019-01-13T03:15:17.000Z
2020-05-05T17:43:13.000Z
src/models/Match.py
ItsSyed/automated-Wechat-cricket-commentary
95f031174f89ef3ce9fbfe078635ffa842c7af4a
[ "MIT" ]
null
null
null
src/models/Match.py
ItsSyed/automated-Wechat-cricket-commentary
95f031174f89ef3ce9fbfe078635ffa842c7af4a
[ "MIT" ]
1
2020-02-15T07:29:08.000Z
2020-02-15T07:29:08.000Z
class Match: def __init__(self, first_team, second_team, first_team_score, second_team_score): self.first_team = first_team self.second_team = second_team self.first_team_score = first_team_score self.second_team_score = second_team_score self.commentary = [] def __repr_...
33.727273
85
0.681941
7953b6ca7cc8e6b292bb8656253986e36304e11c
3,482
py
Python
py/moma/sensors/site_sensor_test.py
wx-b/dm_robotics
5d407622360ccf7f0b4b50bcee84589e2cfd0783
[ "Apache-2.0" ]
128
2021-09-08T18:39:39.000Z
2022-03-27T11:29:05.000Z
py/moma/sensors/site_sensor_test.py
wx-b/dm_robotics
5d407622360ccf7f0b4b50bcee84589e2cfd0783
[ "Apache-2.0" ]
7
2021-10-11T14:26:17.000Z
2022-03-15T17:26:45.000Z
py/moma/sensors/site_sensor_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
8
2021-09-08T18:25:49.000Z
2022-02-21T23:45:16.000Z
# Copyright 2020 DeepMind Technologies Limited. # # 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 law or ag...
39.123596
78
0.721424
7953b724fae4fb0ac18cedca102727f03851f0ce
1,140
py
Python
Python/examples/example.py
RyanShahidi/easyml
fe0ecab6de02c0d91ef7de937cfb72ce7fcf3a51
[ "MIT" ]
37
2016-11-16T20:11:34.000Z
2022-03-28T19:18:35.000Z
Python/examples/example.py
RyanShahidi/easyml
fe0ecab6de02c0d91ef7de937cfb72ce7fcf3a51
[ "MIT" ]
76
2016-11-06T18:04:41.000Z
2021-04-30T20:34:51.000Z
Python/examples/example.py
CCS-Lab/easyML
664076b4aba733751905ed351e5a320f20f1e520
[ "MIT" ]
18
2016-12-21T17:41:29.000Z
2021-05-10T20:43:49.000Z
from easymlpy import glmnet from glmnet import ElasticNet import numpy as np import pandas as pd from sklearn.preprocessing import StandardScaler # Load data prostate = pd.read_table('./Python/examples/prostate.txt') # Generate coefficients from data using easy_glmnet output = glmnet.easy_glmnet(prostate, 'lpsa', ...
32.571429
79
0.713158
7953b7a0c6b737b582b6536b7637ba4495958fc7
431
py
Python
app/core/migrations/0005_recipe_image.py
geraldini/recipe-app-api
653863e6c9d2b8132db1abdc80a3298a12e68d93
[ "MIT" ]
null
null
null
app/core/migrations/0005_recipe_image.py
geraldini/recipe-app-api
653863e6c9d2b8132db1abdc80a3298a12e68d93
[ "MIT" ]
null
null
null
app/core/migrations/0005_recipe_image.py
geraldini/recipe-app-api
653863e6c9d2b8132db1abdc80a3298a12e68d93
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-12-10 20:24 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_recipe'), ] operations = [ migrations.AddField( model_name='recipe', name='image', ...
21.55
93
0.62181
7953b7f6a43e1f4f88228b40bf1cbadd39707820
11,959
py
Python
goldcoin/timelord/timelord_state.py
DevMau5x/goldcoin-blockchain-2
ed223dd16fa290ea710db7202d6c52a056242cfa
[ "Apache-2.0" ]
17
2021-09-08T17:07:54.000Z
2022-03-30T04:11:58.000Z
goldcoin/timelord/timelord_state.py
DevMau5x/goldcoin-blockchain-2
ed223dd16fa290ea710db7202d6c52a056242cfa
[ "Apache-2.0" ]
15
2021-09-28T21:09:49.000Z
2022-03-22T21:13:23.000Z
goldcoin/timelord/timelord_state.py
Pierre21dd/gold2
4a35f207ed4c8a7745bfbc73fd3c190bd8b60a3f
[ "Apache-2.0" ]
9
2021-09-12T10:03:23.000Z
2022-03-15T08:35:11.000Z
import logging from typing import List, Optional, Tuple, Union from goldcoin.consensus.constants import ConsensusConstants from goldcoin.protocols import timelord_protocol from goldcoin.timelord.iters_from_block import iters_from_block from goldcoin.timelord.types import Chain, StateType from goldcoin.types.blockchain...
50.037657
119
0.676478
7953b803624f845a278bfeaeda1a9f663e0acc6a
271
py
Python
textract/parsers/msg_parser.py
nesnahnoj/py3-textract
61290fb44c964cf78ce64593fdf0076143dbcd91
[ "MIT" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/textract/parsers/msg_parser.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/textract/parsers/msg_parser.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
from ExtractMsg import Message from .utils import BaseParser class Parser(BaseParser): """Extract text from Microsoft Outlook files (.msg) """ def extract(self, filename, **kwargs): m = Message(filename) return m.subject + '\n\n' + m.body
20.846154
55
0.653137
7953b8108d79d024949d9d3557269c1d9bb95f74
221
py
Python
Chapter 4/BubblesR.py
itsmealex56/myPyVenture
7fa183905635a450095be00c2d3f3ddb94c70645
[ "MIT" ]
null
null
null
Chapter 4/BubblesR.py
itsmealex56/myPyVenture
7fa183905635a450095be00c2d3f3ddb94c70645
[ "MIT" ]
null
null
null
Chapter 4/BubblesR.py
itsmealex56/myPyVenture
7fa183905635a450095be00c2d3f3ddb94c70645
[ "MIT" ]
null
null
null
#This is Bubbles-R-Us smothies = ['coconut', 'strawberry', 'banana', 'pineapple', 'acai berry'] favorite = smothies[2] smothies[3] = 'tropical' length = len(smothies) print(length) for i in smothies: print(i+ '\n')
22.1
73
0.669683
7953b8556a87d1297a59820e5d5d9915c4b50acc
6,977
py
Python
client.py
rdaelanroosa/ME333_Final_Project
ba11f7b522b527d7a4ef340e47c81dedd1d41af6
[ "Unlicense" ]
null
null
null
client.py
rdaelanroosa/ME333_Final_Project
ba11f7b522b527d7a4ef340e47c81dedd1d41af6
[ "Unlicense" ]
null
null
null
client.py
rdaelanroosa/ME333_Final_Project
ba11f7b522b527d7a4ef340e47c81dedd1d41af6
[ "Unlicense" ]
null
null
null
import serial import matplotlib.pyplot as plt from genref import genRef PORT = '/dev/ttyUSB' MOTOR_SERVO_RATE = 200.0 PIC_MAX_STORE = 2000 menu = ''' MENU: a: Read current (ticks) b: Read current (mA) c: Read encoder (ticks) d: Read encoder (deg) e: Reset encoder f: Set PWM (-100 to 100...
22.726384
119
0.54909
7953b8aa3f269c99d524e5ba921ff2d06c5fa577
2,556
py
Python
soft/lib.tflite.static-old/customize.py
TITAN-PyCompat/ck-tensorflow
6e42c2dc7a98ced05c2e74990b215407f06b542b
[ "BSD-3-Clause" ]
null
null
null
soft/lib.tflite.static-old/customize.py
TITAN-PyCompat/ck-tensorflow
6e42c2dc7a98ced05c2e74990b215407f06b542b
[ "BSD-3-Clause" ]
null
null
null
soft/lib.tflite.static-old/customize.py
TITAN-PyCompat/ck-tensorflow
6e42c2dc7a98ced05c2e74990b215407f06b542b
[ "BSD-3-Clause" ]
null
null
null
# # Collective Knowledge (individual environment - setup) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # import os ############################################################################## # setup environment setup def setup(i): """ Input: { cf...
28.4
119
0.529343
7953b9875222fe4f0c778260be42a3df5f0109bc
3,674
py
Python
model.py
novakspela/vislice
20f05d7ca5ade915943468520483566afa915e2d
[ "MIT" ]
null
null
null
model.py
novakspela/vislice
20f05d7ca5ade915943468520483566afa915e2d
[ "MIT" ]
null
null
null
model.py
novakspela/vislice
20f05d7ca5ade915943468520483566afa915e2d
[ "MIT" ]
null
null
null
import random import json STEVILO_DOVOLJENIH_NAPAK = 9 PRAVILNA_CRKA = '+' PONOVLJENA_CRKA = 'O' NAPACNA_CRKA = '-' ZMAGA = 'W' PORAZ = 'X' ZACETEK = 'S' class Igra: def __init__(self, geslo, crke = None): self.geslo = geslo if crke is None: self.crke = [] else: ...
28.703125
138
0.577572
7953b987bb50782fea5d44c026883c934b5563f3
1,534
py
Python
block_timestamp.py
javipus/defi-tracking
baa944b0c54cf76152f9c083758663bb38105f07
[ "MIT" ]
1
2022-01-14T20:25:20.000Z
2022-01-14T20:25:20.000Z
block_timestamp.py
holocenecap/defi-tracking
baa944b0c54cf76152f9c083758663bb38105f07
[ "MIT" ]
null
null
null
block_timestamp.py
holocenecap/defi-tracking
baa944b0c54cf76152f9c083758663bb38105f07
[ "MIT" ]
1
2022-01-14T20:25:37.000Z
2022-01-14T20:25:37.000Z
#!/usr/bin/env python3 import time import datetime import argparse from web3 import Web3 from dotenv import load_dotenv import requests import os load_dotenv() # etherscan.io API: etherscan_api = "https://api.etherscan.io/api" # Get API keys from .env file: etherscan_key = os.environ.get("ETHERSCAN_KEY") # ETH nod...
29.5
136
0.749674
7953bac3d887c17808593551f652635244a675e4
5,701
py
Python
src/confocal_microscopy/plotting/gui.py
yngvem/zebrafish-bloodflow
632186ed94c160795b3306d4d7360d88e369054a
[ "MIT" ]
1
2020-10-27T17:30:49.000Z
2020-10-27T17:30:49.000Z
src/confocal_microscopy/plotting/gui.py
yngvem/confocal-microscopy
632186ed94c160795b3306d4d7360d88e369054a
[ "MIT" ]
null
null
null
src/confocal_microscopy/plotting/gui.py
yngvem/confocal-microscopy
632186ed94c160795b3306d4d7360d88e369054a
[ "MIT" ]
1
2021-11-18T13:49:28.000Z
2021-11-18T13:49:28.000Z
import numexpr as ne import numpy as np from PyQt5 import QtWidgets from PyQt5.QtCore import Qt from .gui_components import FloatSlider, IntSlider, SliceViewer, SurfaceViewer class ImageViewer(QtWidgets.QWidget): def __init__(self, image, voxel_size=(1, 1, 1), parent=None, flags=Qt.WindowFlags()): super(...
35.855346
147
0.638835
7953bb081816d954201a69136fdf1a22590bdbab
32,715
py
Python
abs_templates_ec/resistor/base.py
boblinchuan/BAG2_TEMPLATES_EC
e0e4a41c1780edb035cd619b9cea2e27e3fc5f51
[ "BSD-3-Clause" ]
1
2019-11-06T17:58:37.000Z
2019-11-06T17:58:37.000Z
abs_templates_ec/resistor/base.py
boblinchuan/BAG2_TEMPLATES_EC
e0e4a41c1780edb035cd619b9cea2e27e3fc5f51
[ "BSD-3-Clause" ]
null
null
null
abs_templates_ec/resistor/base.py
boblinchuan/BAG2_TEMPLATES_EC
e0e4a41c1780edb035cd619b9cea2e27e3fc5f51
[ "BSD-3-Clause" ]
1
2019-06-27T04:23:28.000Z
2019-06-27T04:23:28.000Z
# -*- coding: utf-8 -*- """This module defines abstract analog resistor array component classes. """ from typing import TYPE_CHECKING, Dict, Set, Tuple, Any, List, Optional, Union import abc from bag import float_to_si_string from bag.math import lcm from bag.util.search import BinaryIterator from bag.layout.templa...
37.091837
100
0.54608
7953bbbee5d1065fae66054563cf0e12a96e3b68
5,955
py
Python
rezoirclogs/tests/test_utils.py
supelec-rezo/rezoirclogs
2b84bfc80ba1f580d94b8bafb1a8abce8e3331ab
[ "0BSD" ]
2
2015-03-28T02:44:11.000Z
2018-07-09T13:32:09.000Z
rezoirclogs/tests/test_utils.py
supelec-rezo/rezoirclogs
2b84bfc80ba1f580d94b8bafb1a8abce8e3331ab
[ "0BSD" ]
null
null
null
rezoirclogs/tests/test_utils.py
supelec-rezo/rezoirclogs
2b84bfc80ba1f580d94b8bafb1a8abce8e3331ab
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- import unittest2 class ConvertUnknowEncodingTests(unittest2.TestCase): def setUp(self): self.unicode = u'pâté' self.utf = 'p\xc3\xa2t\xc3\xa9' self.latin = 'p\xe2t\xe9' def test_utf8(self): from rezoirclogs.utils import convert_unknow_encoding s...
47.261905
211
0.610076
7953bbde05dc228b343f61c04715c5a90c2ad275
662
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/input_port.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/input_port.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/input_port.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import logging from typing import Optional, Union module_logger = logging.getLogger(__name__) class InputPort: def __init__(self, *,...
34.842105
109
0.558912
7953bc222e4d786d37d258e0ecdda4841be9cf1f
4,596
py
Python
backend/app/app/api/api_v1/endpoints/users.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
3
2020-10-01T11:28:02.000Z
2020-10-31T15:35:51.000Z
backend/app/app/api/api_v1/endpoints/users.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
1
2022-02-09T04:19:20.000Z
2022-02-09T13:56:40.000Z
backend/app/app/api/api_v1/endpoints/users.py
totalhack/zillion-web
e567c04d3564aec8105d54533d318b79d943c9c6
[ "MIT" ]
null
null
null
from typing import Any, List from fastapi import APIRouter, Body, Depends, HTTPException from fastapi.encoders import jsonable_encoder from pydantic.networks import EmailStr from sqlalchemy.orm import Session from zillion.core import ZillionException from app import crud, models, schemas from app.api import deps from...
29.088608
88
0.666232
7953bcf96883a33493e63a660dc5f1bba756371d
951
py
Python
tests/test_parser.py
mcnanna/ugali
2572915b82af5b25e8762013e6d5baabdaa24b21
[ "MIT" ]
12
2016-10-26T20:45:33.000Z
2021-11-24T04:07:43.000Z
tests/test_parser.py
mcnanna/ugali
2572915b82af5b25e8762013e6d5baabdaa24b21
[ "MIT" ]
64
2017-04-14T15:04:24.000Z
2022-02-03T19:42:57.000Z
tests/test_parser.py
kadrlica/ugali
dcf53594658a2b577f4da271783b43ed0a79fec9
[ "MIT" ]
12
2016-06-23T21:42:46.000Z
2021-06-19T05:29:49.000Z
#!/usr/bin/env python """ Generic python script. """ __author__ = "Alex Drlica-Wagner" import os import ugali.utils.parser import numpy as np def test_targets(): test_data = \ """#name lon lat radius coord object_1 354.36 -63.26 1.0 CEL object_2 19.45 -17.46 1.0 CEL #object_3 18.94 -41.05 1.0 CEL """ ...
28.818182
78
0.587802
7953bd27e6aebf68c650d855505173b03892fda8
2,467
py
Python
ufff/metadata.py
fiwippi/ufff
cbf762cd5db8165e5ab008b43f09c60384dc6a25
[ "MIT" ]
null
null
null
ufff/metadata.py
fiwippi/ufff
cbf762cd5db8165e5ab008b43f09c60384dc6a25
[ "MIT" ]
null
null
null
ufff/metadata.py
fiwippi/ufff
cbf762cd5db8165e5ab008b43f09c60384dc6a25
[ "MIT" ]
null
null
null
from utils import parse_year def fix_index(item): try: if len(item) > 0: return item[0] except TypeError: # raised by TDRC return item def retrieve_metadata(mutagen_file, filename): # Album artist album_artist = mutagen_file.get("albumartist") if album_artist == None: ...
30.45679
83
0.561411
7953bdd60f9a319ae5258cec4b0507c261ee990f
2,772
py
Python
sagas/tests/sinkers/test_descriptor.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/tests/sinkers/test_descriptor.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/tests/sinkers/test_descriptor.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
""" $ pytest -s -v test_descriptor.py """ import logging import pytest from sagas.nlu.descriptor import Descriptor def test_descriptor(): import sagas.nlu.descriptor sagas.nlu.descriptor.logger.setLevel(logging.DEBUG) # $ str 'Rezervasyonumu onaylamak istiyorum.' results = [{'delivery': 'sentence', ...
42.646154
102
0.426407
7953bde9c4a76d07f9647e38085aa37988917db5
821
py
Python
tests/python/twitter/common/concurrent/test_concurrent.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
1,143
2015-01-05T04:19:24.000Z
2019-12-11T12:02:23.000Z
tests/python/twitter/common/concurrent/test_concurrent.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
144
2015-01-06T05:05:07.000Z
2019-12-12T18:02:37.000Z
tests/python/twitter/common/concurrent/test_concurrent.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
426
2015-01-08T08:33:41.000Z
2019-12-09T13:15:40.000Z
import time from functools import partial try: from Queue import Queue except ImportError: from queue import Queue import pytest from twitter.common.concurrent import deadline, defer, Timeout from twitter.common.contextutil import Timer def test_deadline_default_timeout(): timeout = partial(time.sleep, 0.5) ...
21.605263
62
0.735688
7953bdf6d4ba4d8a6d5b2fbc3caa1ea8192e4f63
6,110
py
Python
salt/output/highstate.py
mimianddaniel/booksalt
248c2349fd9a6edc30d48d11673ab72bed4583ce
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
salt/output/highstate.py
mika/salt-deb
7a6933c751273f627259581cb80de66d289bc8c4
[ "Apache-2.0" ]
null
null
null
salt/output/highstate.py
mika/salt-deb
7a6933c751273f627259581cb80de66d289bc8c4
[ "Apache-2.0" ]
null
null
null
''' The return data from the Highstate command is a standard data structure which is parsed by the highstate outputter to deliver a clean and readable set of information about the HighState run on minions. Two configurations can be set to modify the highstate outputter. These values can be set in the master config to ...
42.430556
79
0.470213
7953bff17bc48695f53d399470fe8d6c06f18d89
3,992
py
Python
var/spack/repos/builtin/packages/caffe/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2021-09-29T02:14:40.000Z
2022-01-27T20:50:36.000Z
var/spack/repos/builtin/packages/caffe/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2022-02-28T11:32:57.000Z
2022-03-02T11:37:37.000Z
var/spack/repos/builtin/packages/caffe/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Caffe(CMakePackage, CudaPackage): """Caffe is a deep learning framework made with expressi...
41.154639
93
0.612475
7953c0fb5bca4023d397ceccfb6f54e0dc0d47db
3,075
py
Python
tests/bugs/gh_6788_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/gh_6788_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/gh_6788_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.gh_6788 # title: Extend EXTRACT to extract time zone strings # decription: # https://github.com/FirebirdSQL/firebird/issues/6788 # # Commit ('master' only; not 4.0!): # https://github.com/FirebirdSQL/...
35.755814
178
0.642276
7953c1854ed2fa897943f084a371ada2d7bc737e
2,089
py
Python
setup.py
elpatiostudio/wagtail-localize
19820ecc914651d9041d4604e3d311dd75cf4e81
[ "BSD-3-Clause" ]
null
null
null
setup.py
elpatiostudio/wagtail-localize
19820ecc914651d9041d4604e3d311dd75cf4e81
[ "BSD-3-Clause" ]
null
null
null
setup.py
elpatiostudio/wagtail-localize
19820ecc914651d9041d4604e3d311dd75cf4e81
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from os import path from setuptools import find_packages, setup this_directory = path.abspath(path.dirname(__file__)) version = {} with open(path.join(this_directory, "wagtail_localize", "version.py")) as f: exec(f.read(), version) with open(path.join(this_directory, "README.md"), encodi...
29.842857
76
0.571087
7953c26495ad52cf686e9b70a7a0af0394b3da28
6,772
py
Python
config.py
php-tailors/docker-doctum
29399b3b11e7afe2cdff9ca16374e6947428967e
[ "Unlicense" ]
null
null
null
config.py
php-tailors/docker-doctum
29399b3b11e7afe2cdff9ca16374e6947428967e
[ "Unlicense" ]
4
2020-12-09T16:50:13.000Z
2020-12-30T17:52:08.000Z
config.py
php-tailors/docker-doctum
29399b3b11e7afe2cdff9ca16374e6947428967e
[ "Unlicense" ]
null
null
null
import re __version__ = '0.6.1' def xrepr(arg): if isinstance(arg, str): return "'%s'" % arg else: return repr(arg) def generated_warning(): return """\ ############################################################################# # NOTE: FILE GENERATED AUTOMATICALLY, DO NOT EDIT!!! #####...
31.793427
116
0.591258
7953c35812ea942fed41ad3112f7e3abc06cfd45
2,768
py
Python
test/mixins/test_delete_objects.py
newsgac/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
3
2019-04-05T13:40:12.000Z
2019-08-01T10:51:40.000Z
test/mixins/test_delete_objects.py
newsgac/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
143
2018-12-18T10:38:16.000Z
2022-03-21T19:02:48.000Z
test/mixins/test_delete_objects.py
Tommos0/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
1
2020-01-23T09:19:49.000Z
2020-01-23T09:19:49.000Z
import pytest from pymodm import MongoModel, fields, EmbeddedMongoModel from pymodm.connection import _get_db from newsgac.common.fields import ObjectField from newsgac.common.mixins import CreatedUpdated, DeleteObjectsMixin @pytest.fixture(autouse=True) def setup_db(db): # drops whole db for collection_name ...
35.948052
76
0.699061
7953c476e8e42c20de0cc219494b8c2c5c79522f
5,324
py
Python
heat/tests/aws/test_network_interface.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/aws/test_network_interface.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/aws/test_network_interface.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
1
2021-03-21T11:37:03.000Z
2021-03-21T11:37:03.000Z
# # 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 law or agreed to in writing, software # ...
36.217687
78
0.572126
7953c524836f86084d44e777d9b26e7aea5f385d
3,140
py
Python
truvari/region_vcf_iter.py
spiralgenetics/truvari
5962be4b4069e17298524362a83884dfcdfcec5a
[ "MIT" ]
145
2018-04-16T19:11:11.000Z
2022-02-11T04:19:04.000Z
truvari/region_vcf_iter.py
spiralgenetics/truvari
5962be4b4069e17298524362a83884dfcdfcec5a
[ "MIT" ]
79
2018-06-26T23:46:46.000Z
2022-02-08T21:49:09.000Z
truvari/region_vcf_iter.py
spiralgenetics/truvari
5962be4b4069e17298524362a83884dfcdfcec5a
[ "MIT" ]
32
2018-08-08T06:35:16.000Z
2022-02-11T04:20:03.000Z
""" Helper class to specify included regions of the genome when iterating events. """ import logging from collections import defaultdict from intervaltree import IntervalTree import truvari.comparisons as tcomp class RegionVCFIterator(): """ Helper class to specify include regions of the genome when iterating...
38.292683
114
0.584076
7953c552fc324dd714d55ae4dfaf310843a770f7
952
py
Python
iam/google/cloud/iam_credentials_v1/__init__.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2019-01-23T21:54:51.000Z
2019-01-23T21:54:51.000Z
iam/google/cloud/iam_credentials_v1/__init__.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2018-04-06T19:51:23.000Z
2018-04-06T19:51:23.000Z
iam/google/cloud/iam_credentials_v1/__init__.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
34
74
0.786765
7953c64a2602ea81e497151c7efd3c54792fb0be
670
py
Python
Models/MinecraftWikiCrawler.py
JE-Chen/Python-WebCrawler-JE
3d69ec5bd467c01a783e0281e18c01bb281bb1e8
[ "MIT" ]
1
2020-12-30T06:37:33.000Z
2020-12-30T06:37:33.000Z
Models/MinecraftWikiCrawler.py
JE-Chen/Python-WebCrawler-JE
3d69ec5bd467c01a783e0281e18c01bb281bb1e8
[ "MIT" ]
null
null
null
Models/MinecraftWikiCrawler.py
JE-Chen/Python-WebCrawler-JE
3d69ec5bd467c01a783e0281e18c01bb281bb1e8
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup class MinecraftWikiCrawler: def __init__(self): self.Prefix = 'https://minecraft-zh.gamepedia.com/' def Search(self, Tag): format_string = '' url = self.Prefix + Tag res = requests.get(url) content = res.content so...
29.130435
102
0.602985
7953c667283bb9692346613b1cbe8cdc30fda654
8,061
py
Python
shopping/ebay.py
saisyam/scrapers
1e34c2e3d9b052f0516c72210f0bcbdb8f631d89
[ "Apache-2.0" ]
null
null
null
shopping/ebay.py
saisyam/scrapers
1e34c2e3d9b052f0516c72210f0bcbdb8f631d89
[ "Apache-2.0" ]
5
2021-03-13T07:07:41.000Z
2021-03-23T11:28:21.000Z
shopping/ebay.py
saisyam/scrapers
1e34c2e3d9b052f0516c72210f0bcbdb8f631d89
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append("../") from bs4 import BeautifulSoup import unicodedata from utils import htmlutils from utils.base import BaseScraper class Ebay(BaseScraper): name = "ebay" def __init__(self, url, category): self.url = url self.category = category super().__init__(url)...
44.535912
152
0.546458
7953c7c13ca1aebb0f865d8f68bc4923f49e5300
1,739
py
Python
category_builder.py
vvkishere/categorybuilder
598fbb38d0043b7f90dcc3f30577511feeb1f1a9
[ "Apache-2.0" ]
1
2019-12-16T05:14:52.000Z
2019-12-16T05:14:52.000Z
category_builder.py
vvkishere/categorybuilder
598fbb38d0043b7f90dcc3f30577511feeb1f1a9
[ "Apache-2.0" ]
null
null
null
category_builder.py
vvkishere/categorybuilder
598fbb38d0043b7f90dcc3f30577511feeb1f1a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.522727
77
0.679701
7953c89fa3e445cacc469b4d49ca0683515cfe90
8,129
py
Python
scripts/brac/flow_evaluation_vis.py
Thibaud-Ardoin/d4rl
631cdcbf93441384dcf96df39a70c287749ab2ad
[ "Apache-2.0" ]
null
null
null
scripts/brac/flow_evaluation_vis.py
Thibaud-Ardoin/d4rl
631cdcbf93441384dcf96df39a70c287749ab2ad
[ "Apache-2.0" ]
null
null
null
scripts/brac/flow_evaluation_vis.py
Thibaud-Ardoin/d4rl
631cdcbf93441384dcf96df39a70c287749ab2ad
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
35.343478
83
0.723336
7953c8aa5c07bcc2ad1ed6be884e0893f6a1936b
5,012
py
Python
signaturit_sdk/tests/test_signature.py
ohduran-forks/python-sdk
c79a3a0d4a266cf2f1c716119ec74c7ae1add4c6
[ "MIT" ]
4
2017-02-16T13:37:00.000Z
2020-10-07T09:58:35.000Z
signaturit_sdk/tests/test_signature.py
ohduran-forks/python-sdk
c79a3a0d4a266cf2f1c716119ec74c7ae1add4c6
[ "MIT" ]
1
2017-04-11T17:46:26.000Z
2017-04-12T16:12:46.000Z
signaturit_sdk/tests/test_signature.py
ohduran-forks/python-sdk
c79a3a0d4a266cf2f1c716119ec74c7ae1add4c6
[ "MIT" ]
6
2015-11-16T15:16:24.000Z
2020-03-26T09:50:22.000Z
import unittest import os from signaturit_sdk.signaturit_client import SignaturitClient import httpretty import warnings class TestSignature(unittest.TestCase): TEST_FILE_URL = '/tmp/test.pdf' def setUp(self): warnings.filterwarnings("ignore", category=ResourceWarning, message="unclosed.*") def ...
42.474576
115
0.55427
7953c9e06ea97241deaab4656d03a9910586926a
7,637
py
Python
sdtv3/SDT3PrintSDT4.py
Homegateway/SDTTool
97e698ce3078595a6755ec0b599838dc903eaa3d
[ "Apache-2.0" ]
2
2018-05-14T16:00:23.000Z
2018-12-26T14:02:51.000Z
sdtv3/SDT3PrintSDT4.py
Homegateway/SDTTool
97e698ce3078595a6755ec0b599838dc903eaa3d
[ "Apache-2.0" ]
null
null
null
sdtv3/SDT3PrintSDT4.py
Homegateway/SDTTool
97e698ce3078595a6755ec0b599838dc903eaa3d
[ "Apache-2.0" ]
2
2016-09-05T09:24:41.000Z
2020-06-23T14:05:45.000Z
# SDT2PrintSDT4.py # # Print SDT4 to SDT4 from .SDT3Classes import * from common.SDTHelper import decTab, incTab, newLine # # Print functions # def print2DomainSDT4(domain, options): result = printXMLHeader(domain) incTab() result += r(printIncludes(domain.includes)) if len(domain.includes) > 0 else '' result +...
27.872263
151
0.676836
7953ca32ad0475a22becfd8e7d5e4e549941bc27
75
py
Python
hello.py
luis-ruiz-gonzalez/github-eii
e7af9e24615a356e23d0052e9def4e6c5ce70c13
[ "Apache-2.0" ]
null
null
null
hello.py
luis-ruiz-gonzalez/github-eii
e7af9e24615a356e23d0052e9def4e6c5ce70c13
[ "Apache-2.0" ]
1
2022-03-10T17:50:34.000Z
2022-03-10T17:50:34.000Z
hello.py
luis-ruiz-gonzalez/github-eii
e7af9e24615a356e23d0052e9def4e6c5ce70c13
[ "Apache-2.0" ]
null
null
null
print("Hello World!") print("Bye bye World!") print("Nada más que añadir")
18.75
28
0.693333
7953cbfb6c632f734c5cee8324621d2a1e10fb0d
19,387
py
Python
src/mot_neural_solver/tracker/mpn_tracker.py
yongxinw/mot_neural_solver
5dec429be531a56ce5720416cd6a2f00447a2950
[ "MIT" ]
1
2020-06-17T16:55:00.000Z
2020-06-17T16:55:00.000Z
src/mot_neural_solver/tracker/mpn_tracker.py
yongxinw/mot_neural_solver
5dec429be531a56ce5720416cd6a2f00447a2950
[ "MIT" ]
null
null
null
src/mot_neural_solver/tracker/mpn_tracker.py
yongxinw/mot_neural_solver
5dec429be531a56ce5720416cd6a2f00447a2950
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import torch from mot_neural_solver.data.mot_graph import Graph from mot_neural_solver.tracker.projectors import GreedyProjector, ExactProjector from mot_neural_solver.tracker.postprocessing import Postprocessor from mot_neural_solver.utils.graph import get_knn_mask, to_undire...
52.539295
156
0.631402
7953cc6bb3a8d10e80c1e6a8942c4ddc3ab9217b
2,657
py
Python
main.py
filipesouzacit/RL-with-MCTS
cca1a8a79e5973a30b423c45a090e2473975c189
[ "MIT" ]
1
2021-01-13T00:24:16.000Z
2021-01-13T00:24:16.000Z
main.py
filipesouzacit/RL-with-MCTS
cca1a8a79e5973a30b423c45a090e2473975c189
[ "MIT" ]
null
null
null
main.py
filipesouzacit/RL-with-MCTS
cca1a8a79e5973a30b423c45a090e2473975c189
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thus Jan 07 14:44:12 2021 @author: Filipe Souza Based on Josh Varty (https://github.com/JoshVarty/AlphaZeroSimple) """ import gym import numpy as np from model import CNNmodel from trainer import Trainer from tkinter import Tk,Label,mainloop def getAction(...
32.802469
125
0.610463
7953cd8bcc3fa20c75a79dbabbf67e3afe39de66
7,031
py
Python
app/models.py
robbi5/pulse
eefe4954ed15c3a3cf5cb19711a76a84198c8da3
[ "CC0-1.0" ]
12
2016-03-16T11:14:49.000Z
2021-03-14T00:16:28.000Z
app/models.py
robbi5/pulse
eefe4954ed15c3a3cf5cb19711a76a84198c8da3
[ "CC0-1.0" ]
9
2016-03-16T11:18:24.000Z
2021-04-02T15:54:46.000Z
app/models.py
robbi5/pulse
eefe4954ed15c3a3cf5cb19711a76a84198c8da3
[ "CC0-1.0" ]
2
2016-03-28T03:12:00.000Z
2020-02-04T23:57:49.000Z
from tinydb import TinyDB, where, Query import os import io import datetime import csv from app.data import CSV_FIELDS, FIELD_MAPPING, LABELS this_dir = os.path.dirname(__file__) try: db = TinyDB(os.path.join(this_dir, '../data/db.json')) except ValueError: print("Couldn't load TinyDB. Things may not work as expe...
25.944649
79
0.63348