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
79625c2ee696f79411c9cf6e8dce3a994d8052f6
1,069
py
Python
packages/mcni/python/mcni/neutron_coordinates_transformers/transformer_generator.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mcni/python/mcni/neutron_coordinates_transformers/transformer_generator.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mcni/python/mcni/neutron_coordinates_transformers/transformer_generator.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2005-2010 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~~~...
24.295455
100
0.571562
79625c6080b053380153cdf47d8805064d495444
3,753
py
Python
tetra/fermi.py
tflovorn/tetra
c5a1e1938f8720c9023b45a7a001220a3e06fa1d
[ "MIT" ]
10
2018-03-30T19:56:45.000Z
2021-12-29T13:53:26.000Z
tetra/fermi.py
tflovorn/tetra
c5a1e1938f8720c9023b45a7a001220a3e06fa1d
[ "MIT" ]
null
null
null
tetra/fermi.py
tflovorn/tetra
c5a1e1938f8720c9023b45a7a001220a3e06fa1d
[ "MIT" ]
2
2018-03-30T19:57:08.000Z
2022-01-26T22:31:35.000Z
from scipy.optimize import bisect from tetra.numstates import NumStates from tetra.ksample import OptimizeGs, MakeEks from tetra.submesh import MakeSubmesh, MakeTetra def FindFermiToTol(n0, Efn, R, num_electrons, tol=None, tetras0=None, Eks0=None): '''Returns the Fermi energy E_F, at which the integrated number of...
36.436893
81
0.654676
79625c8b40d50701e21288f1870dab9151b46636
5,682
py
Python
lesion_metrics/cli/per_lesion.py
jcreinhold/lesion-metrics
88eb1295422af97fc86f4bad66c34838f412849b
[ "Apache-2.0" ]
1
2022-01-15T15:47:03.000Z
2022-01-15T15:47:03.000Z
lesion_metrics/cli/per_lesion.py
jcreinhold/lesion-metrics
88eb1295422af97fc86f4bad66c34838f412849b
[ "Apache-2.0" ]
5
2021-12-09T14:54:33.000Z
2022-02-10T01:54:37.000Z
lesion_metrics/cli/per_lesion.py
jcreinhold/lesion-metrics
88eb1295422af97fc86f4bad66c34838f412849b
[ "Apache-2.0" ]
null
null
null
"""Console script for lesion_metrics on per-lesion basis.""" import argparse import builtins import sys import typing import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=FutureWarning) warnings.filterwarnings("ignore", category=UserWarning) import medio.image as mioi ...
35.5125
88
0.642731
79625ccb53676e88eba5f50b6eb6d867a1eba479
503
py
Python
source/csv_writer.py
regnekraft/bloodbowl2_coachstats
0c729337659ad0839400822e01fb94224d6f58b8
[ "MIT" ]
null
null
null
source/csv_writer.py
regnekraft/bloodbowl2_coachstats
0c729337659ad0839400822e01fb94224d6f58b8
[ "MIT" ]
null
null
null
source/csv_writer.py
regnekraft/bloodbowl2_coachstats
0c729337659ad0839400822e01fb94224d6f58b8
[ "MIT" ]
null
null
null
import csv class Csv_writer: def create_csv(self, csv_file_path, csv_filename, header_row_list, list_with_rows): with open(csv_file_path + csv_filename, 'w', newline='', encoding='iso-8859-1') as file: writer = csv.writer(file, delimiter=";") #writer.writerow(['uuid', 'fullname']) ...
38.692308
96
0.624254
79625cf35a23ab0844957c05ffbd7f6b40b0ca99
19,486
py
Python
stable_baselines3/ppo/policies.py
rolandgvc/stable-baselines3
805a87ed8b340c6a1a2e674468d5769a8cda38b0
[ "MIT" ]
null
null
null
stable_baselines3/ppo/policies.py
rolandgvc/stable-baselines3
805a87ed8b340c6a1a2e674468d5769a8cda38b0
[ "MIT" ]
null
null
null
stable_baselines3/ppo/policies.py
rolandgvc/stable-baselines3
805a87ed8b340c6a1a2e674468d5769a8cda38b0
[ "MIT" ]
null
null
null
from typing import Optional, List, Tuple, Callable, Union, Dict, Type, Any from functools import partial import gym import torch as th import torch.nn as nn import numpy as np from stable_baselines3.common.policies import (BasePolicy, register_policy, MlpExtractor, creat...
51.824468
115
0.618803
79625cffe63def34c069d1c998773770cb026965
2,184
py
Python
tests/unit_tests/dataframe_test.py
7vikpeculiar/superset
800ced5e257d5d83d6dbe4ced0e7318ac40d026f
[ "Apache-2.0" ]
1
2022-02-10T11:30:05.000Z
2022-02-10T11:30:05.000Z
tests/unit_tests/dataframe_test.py
7vikpeculiar/superset
800ced5e257d5d83d6dbe4ced0e7318ac40d026f
[ "Apache-2.0" ]
10
2022-01-05T01:31:07.000Z
2022-03-16T01:09:46.000Z
tests/unit_tests/dataframe_test.py
7vikpeculiar/superset
800ced5e257d5d83d6dbe4ced0e7318ac40d026f
[ "Apache-2.0" ]
1
2022-03-31T20:11:08.000Z
2022-03-31T20:11:08.000Z
# 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 # "License"); you may not u...
39
87
0.67674
79625dc24928ee61589e243e3ff80d0fd7b12925
1,000
py
Python
Python/Airflow/DAG_schedule.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/Airflow/DAG_schedule.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/Airflow/DAG_schedule.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
from datetime import datetime from airflow import DAG # Specifying a task to take place each Monday at 7am reporting_dag = DAG( dag_id="publish_EMEA_sales_report", # Insert the cron expression schedule_interval="0 7 * * 1", start_date=datetime(2019, 11, 24), default_args={"owner": "sales"} ) # Sp...
37.037037
101
0.798
79625e696b8b3f65b794d58f63ecc989abb3b328
4,899
py
Python
uedinst/merlin.py
LaurentRDC/uedinst
b6ab38c32e1889209a95be60fd7177b3f9e9200e
[ "BSD-3-Clause" ]
null
null
null
uedinst/merlin.py
LaurentRDC/uedinst
b6ab38c32e1889209a95be60fd7177b3f9e9200e
[ "BSD-3-Clause" ]
1
2022-03-02T20:51:32.000Z
2022-03-02T20:51:32.000Z
uedinst/merlin.py
LaurentRDC/uedinst
b6ab38c32e1889209a95be60fd7177b3f9e9200e
[ "BSD-3-Clause" ]
2
2019-11-05T20:30:10.000Z
2022-03-02T20:44:41.000Z
from contextlib import AbstractContextManager from enum import IntEnum from os.path import abspath, join from time import sleep from .merlin_drivers import MERLIN_connection class Merlin(AbstractContextManager): """ Wrapper around the MERLIN_connection API. This API can be used as a context manager: ...
28.988166
78
0.589508
79625e9138335b07e59c41461717d10c0d8145a3
4,230
py
Python
roll.py
AlvaroRuizDelgado/Fading_Suns_dice_roller
220f8974ec32d10f30698dbcd315f49d95fe9dc4
[ "MIT" ]
null
null
null
roll.py
AlvaroRuizDelgado/Fading_Suns_dice_roller
220f8974ec32d10f30698dbcd315f49d95fe9dc4
[ "MIT" ]
1
2019-05-07T09:32:34.000Z
2019-05-07T09:33:17.000Z
roll.py
AlvaroRuizDelgado/Fading_Suns_dice_roller
220f8974ec32d10f30698dbcd315f49d95fe9dc4
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # Last edited: 19/05/07 import sys import math from random import randint # Constants CRITICAL_FAIL = 20 ALWAYS_FAIL = 19 def roll(argv): if (len(argv) == 0 or "--help" in argv or "-h" in argv): print_help() sys.exit(0) # Roll characteristics die_range = 20 d...
34.112903
165
0.545154
796260141053b95f1c55d3d8efdcf54d4dfd2a91
137
py
Python
rpi_hardware/util/__init__.py
sacherjj/rpi-hardware
b63ab86e9fcf008dd41ce1eca24d93a076a8cb7b
[ "MIT" ]
6
2018-12-03T14:31:50.000Z
2021-03-08T18:48:56.000Z
rpi_hardware/util/__init__.py
sacherjj/rpi-hardware
b63ab86e9fcf008dd41ce1eca24d93a076a8cb7b
[ "MIT" ]
1
2018-10-25T12:52:04.000Z
2018-10-25T13:52:49.000Z
rpi_hardware/util/__init__.py
sacherjj/rpi-hardware
b63ab86e9fcf008dd41ce1eca24d93a076a8cb7b
[ "MIT" ]
null
null
null
from .singleton import Singleton from .crc import crc8_check, crc8_value from .decorators import simple_decorator, cached_with_immediate
34.25
63
0.861314
7962608fda7255b1ced8c4e8525701f53f5f0d99
5,638
py
Python
blender/arm/lib/armpack.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
2,583
2016-07-27T08:25:47.000Z
2022-03-31T10:42:17.000Z
blender/arm/lib/armpack.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
2,122
2016-07-31T14:20:04.000Z
2022-03-31T20:44:14.000Z
blender/arm/lib/armpack.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
451
2016-08-12T05:52:58.000Z
2022-03-31T01:33:07.000Z
# Msgpack parser with typed arrays # Based on u-msgpack-python v2.4.1 - v at sergeev.io # https://github.com/vsergeev/u-msgpack-python # # 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 withou...
33.963855
88
0.571834
7962611c1de6ac928e27dd78d975f3a303bc6441
562
py
Python
Tools/demo/beer.py
hbbtstar/cpython
ce6ab1eb7483f66347188305bbbb7e3388794ad8
[ "PSF-2.0" ]
null
null
null
Tools/demo/beer.py
hbbtstar/cpython
ce6ab1eb7483f66347188305bbbb7e3388794ad8
[ "PSF-2.0" ]
null
null
null
Tools/demo/beer.py
hbbtstar/cpython
ce6ab1eb7483f66347188305bbbb7e3388794ad8
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python3 """ A Python version of the classic "bottles of beer on the wall" programming example. By Guido van Rossum, demystified after a version by Fredrik Lundh. """ import sys n = 100 if sys.argv[1:]: n = int(sys.argv[1]) def bottle(n): if n == 0: return "no more bottles of beer" if n =...
21.615385
73
0.631673
796261e3bdcd3e62033265d0a1a9d82735db57b2
3,109
py
Python
basicts/options/AGCRN/AGCRN_PEMS04.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
3
2022-02-22T12:50:08.000Z
2022-03-13T03:38:46.000Z
basicts/options/AGCRN/AGCRN_PEMS04.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
basicts/options/AGCRN/AGCRN_PEMS04.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
import os from easydict import EasyDict # architecture from basicts.archs.AGCRN_arch import AGCRN # runner from basicts.runners.AGCRN_runner import AGCRNRunner from basicts.data.base_dataset import BaseDataset from basicts.metrics.mae import masked_mae from basicts.metrics.mape import masked_mape from basicts.metrics....
27.513274
72
0.625281
796262032ed90045919fdf726195d6002524e691
570
py
Python
lectures/06-python-strings-lists-tuples/examples/dna2.py
donaldscoon/biosys-analytics
8d4593277bd701c77ff5c2d5eb3aee7c67ab33a4
[ "MIT" ]
1
2019-01-15T16:30:25.000Z
2019-01-15T16:30:25.000Z
lectures/06-python-strings-lists-tuples/examples/dna2.py
donaldscoon/biosys-analytics
8d4593277bd701c77ff5c2d5eb3aee7c67ab33a4
[ "MIT" ]
null
null
null
lectures/06-python-strings-lists-tuples/examples/dna2.py
donaldscoon/biosys-analytics
8d4593277bd701c77ff5c2d5eb3aee7c67ab33a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Tetra-nucleotide counter""" import sys import os args = sys.argv[1:] if len(args) != 1: print('Usage: {} DNA'.format(os.path.basename(sys.argv[0]))) sys.exit(1) dna = args[0] count_a, count_c, count_g, count_t = 0, 0, 0, 0 for letter in dna.lower(): if letter...
20.357143
74
0.540351
79626212970be10fd57b86a4a13760d00f1244d3
1,494
py
Python
main.py
VictorKoenders/icesugar_template
fa279b81b9e1b75a840bae9ec798ea356a5c8fa3
[ "BSD-2-Clause" ]
1
2020-12-30T11:45:41.000Z
2020-12-30T11:45:41.000Z
main.py
VictorKoenders/icesugar_template
fa279b81b9e1b75a840bae9ec798ea356a5c8fa3
[ "BSD-2-Clause" ]
null
null
null
main.py
VictorKoenders/icesugar_template
fa279b81b9e1b75a840bae9ec798ea356a5c8fa3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 from nmigen import * from nmigen_boards.icesugar import ICESugarPlatform import shutil import os from blink import Blink class Top(Elaboratable): def elaborate(self, platform): # Get the 3 LEDs led_r = platform.request('led_r') led_g = platform.request('led_g') ...
26.210526
90
0.609103
7962645124b45b94aa18426e789f5b4b0926aca0
1,038
py
Python
account/migrations/0003_auto_20170922_1544.py
natotthomer/nattr
f3f7b1bc67ff05f346e7f221d7f88b8500bd8e77
[ "MIT" ]
1
2017-11-10T19:55:12.000Z
2017-11-10T19:55:12.000Z
account/migrations/0003_auto_20170922_1544.py
natotthomer/nattr
f3f7b1bc67ff05f346e7f221d7f88b8500bd8e77
[ "MIT" ]
9
2021-03-08T20:46:52.000Z
2022-03-11T23:26:33.000Z
account/migrations/0003_auto_20170922_1544.py
natotthomer/nattr
f3f7b1bc67ff05f346e7f221d7f88b8500bd8e77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-22 15:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20170...
34.6
153
0.649326
7962652423fd83029856c78a73167bf796c79da6
465
py
Python
binterpret/gui.py
flammified/binterpret
647ce698397695d28191e999d765ac70184e6620
[ "Apache-2.0" ]
null
null
null
binterpret/gui.py
flammified/binterpret
647ce698397695d28191e999d765ac70184e6620
[ "Apache-2.0" ]
null
null
null
binterpret/gui.py
flammified/binterpret
647ce698397695d28191e999d765ac70184e6620
[ "Apache-2.0" ]
null
null
null
try: from kivy.uix.floatlayout import FloatLayout from kivy.app import App from kivy.properties import ObjectProperty, StringProperty from kivy.core.window import Window except ImportError as e: print("Kivy is not installed in your environment. --gui can not be used.") exit(1) class BinterpretW...
27.352941
78
0.711828
796265ddae68e2d9c608853ec5c70afebb0a3c3a
127
py
Python
elephant/gpfa/__init__.py
rdarie/elephant
9f327d042a54531117ddf36c732262d4e78a5d85
[ "BSD-3-Clause" ]
null
null
null
elephant/gpfa/__init__.py
rdarie/elephant
9f327d042a54531117ddf36c732262d4e78a5d85
[ "BSD-3-Clause" ]
null
null
null
elephant/gpfa/__init__.py
rdarie/elephant
9f327d042a54531117ddf36c732262d4e78a5d85
[ "BSD-3-Clause" ]
null
null
null
try: from .gpfa import GPFA except ImportError: # please run command `pip install -r requirements-extras.txt` pass
21.166667
65
0.708661
796265f3da52a7d4a29801137fb01f30d0780fca
1,371
py
Python
Data Science With Python/12-introduction-to-databases-in-python/02-applying-filtering-ordering-and-grouping-to-queries/02-filter-data-selected-from-a-table-simple.py
aimanahmedmoin1997/DataCamp
c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d
[ "MIT" ]
3
2019-05-12T04:49:24.000Z
2020-05-06T00:40:28.000Z
Data Science With Python/12-introduction-to-databases-in-python/02-applying-filtering-ordering-and-grouping-to-queries/02-filter-data-selected-from-a-table-simple.py
aimanahmedmoin1997/DataCamp
c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d
[ "MIT" ]
null
null
null
Data Science With Python/12-introduction-to-databases-in-python/02-applying-filtering-ordering-and-grouping-to-queries/02-filter-data-selected-from-a-table-simple.py
aimanahmedmoin1997/DataCamp
c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d
[ "MIT" ]
7
2018-11-06T17:43:31.000Z
2020-11-07T21:08:16.000Z
''' Filter data selected from a Table - Simple Having connected to the database, it's now time to practice filtering your queries! As mentioned in the video, a where() clause is used to filter the data that a statement returns. For example, to select all the records from the census table where the sex is Female (or '...
44.225806
217
0.753465
79626693122b0653110ebcfbf29c909dc9125922
23,269
py
Python
env/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
366
2019-04-07T20:34:48.000Z
2022-03-29T07:35:38.000Z
env/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
env/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
61
2019-04-08T00:58:14.000Z
2022-03-20T23:04:28.000Z
""" Locally Optimal Block Preconditioned Conjugate Gradient Method (LOBPCG). References ---------- .. [1] A. V. Knyazev (2001), Toward the Optimal Preconditioned Eigensolver: Locally Optimal Block Preconditioned Conjugate Gradient Method. SIAM Journal on Scientific Computing 23, no. 2, pp. ...
35.68865
79
0.601788
796267872f9ac8ce9de4326e429b2b4fedd0ea6d
16,251
py
Python
submodules/utils/annolist/AnnoList_pb2.py
parthc-rob/KittiBox
86d7ac6d8053bb41f43840e24100adc56621f3ec
[ "MIT" ]
562
2016-06-26T06:27:10.000Z
2022-02-20T15:12:46.000Z
submodules/utils/annolist/AnnoList_pb2.py
parthc-rob/KittiBox
86d7ac6d8053bb41f43840e24100adc56621f3ec
[ "MIT" ]
58
2017-02-03T01:03:19.000Z
2021-07-01T12:12:54.000Z
submodules/utils/annolist/AnnoList_pb2.py
parthc-rob/KittiBox
86d7ac6d8053bb41f43840e24100adc56621f3ec
[ "MIT" ]
229
2016-07-22T05:34:40.000Z
2021-10-20T08:39:15.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: AnnoList.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refl...
37.272936
1,341
0.734293
796269c85bf49b1284f40b55d71e066ec0c5801b
121,369
py
Python
tests/scripts/thread-cert/test_lowpan.py
jjlee3/openthread
abba21bca6e1b07ca76b0241dfaf045e57396818
[ "BSD-3-Clause" ]
3
2018-06-20T11:13:33.000Z
2020-12-08T15:15:10.000Z
tests/scripts/thread-cert/test_lowpan.py
jjlee3/openthread
abba21bca6e1b07ca76b0241dfaf045e57396818
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/test_lowpan.py
jjlee3/openthread
abba21bca6e1b07ca76b0241dfaf045e57396818
[ "BSD-3-Clause" ]
3
2017-08-29T01:31:57.000Z
2020-05-07T22:56:52.000Z
#!/usr/bin/python # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # not...
45.034879
156
0.581928
796269ede409d09eab69f4507df0001bcc234b4c
4,251
py
Python
Lib/lib-tk/test/test_tkinter/test_misc.py
karkranikhil/python
a96b80dfda19ed4cdcc35b087fb8474757e34a93
[ "bzip2-1.0.6" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
SLpackage/private/thirdparty/python/python_2.7.16/lib/python2.7/lib-tk/test/test_tkinter/test_misc.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
SLpackage/private/thirdparty/python/python_2.7.16/lib/python2.7/lib-tk/test/test_tkinter/test_misc.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
import unittest import Tkinter as tkinter from test.test_support import requires, run_unittest from test_ttk.support import AbstractTkTest requires('gui') class MiscTest(AbstractTkTest, unittest.TestCase): def test_after(self): root = self.root cbcount = {'count': 0} def callback(start=0...
34.560976
78
0.602682
79626c9198958ae72f3eead25c985e00527fe97a
6,638
py
Python
scrooge/stores/tests/test_models.py
SpisTresci/scrooge
787b7d5f8ece8f3f24feb4273505e6c0ea60b5d7
[ "MIT" ]
1
2021-01-04T04:30:24.000Z
2021-01-04T04:30:24.000Z
scrooge/stores/tests/test_models.py
SpisTresci/scrooge
787b7d5f8ece8f3f24feb4273505e6c0ea60b5d7
[ "MIT" ]
6
2019-12-21T03:19:17.000Z
2020-01-07T07:28:04.000Z
scrooge/stores/tests/test_models.py
SpisTresci/scrooge
787b7d5f8ece8f3f24feb4273505e6c0ea60b5d7
[ "MIT" ]
null
null
null
from decimal import Decimal from django.db.utils import IntegrityError from test_plus.test import TestCase from scrooge.datasource.models import XmlDataSourceModel from scrooge.offers.models import Offer from scrooge.stores.models import Store class TestStore(TestCase): def setUp(self): data_source = Xm...
40.723926
119
0.591443
79626d1e558dfd74d78c48857b609a8a6e321ca1
26,397
py
Python
theano/tensor/var.py
shaibagon/Theano
b4244cfaa1c99007015bb01e859699eec3518053
[ "BSD-3-Clause" ]
1
2018-01-31T12:29:10.000Z
2018-01-31T12:29:10.000Z
theano/tensor/var.py
AtousaTorabi/Theano_old
ba2d2f74406243112e813df31429721c791a889a
[ "BSD-3-Clause" ]
null
null
null
theano/tensor/var.py
AtousaTorabi/Theano_old
ba2d2f74406243112e813df31429721c791a889a
[ "BSD-3-Clause" ]
null
null
null
import copy import numpy import theano from theano.compat import all, PY3 from theano.scalar import ComplexError, IntegerDivisionError from theano.gof import Constant, Variable from theano.gof.utils import hashtype from theano.tensor.utils import hash_from_ndarray from theano.tensor.type import TensorType class AsT...
36.8159
79
0.598098
79626d7a32085885ab565338e9ac401e978ac7c9
4,526
py
Python
benchmark/startQiskit_QC1184.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1184.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1184.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=51 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...
33.036496
165
0.621299
79626d89026a7038bb25ecbfadcce49b5bd56f03
43,098
py
Python
pandas/tests/reshape/test_reshape.py
nagey/pandas
ba60321d00d686a3137ffe26f919d64e84d43aa0
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2021-06-28T18:35:43.000Z
2021-06-28T18:35:43.000Z
pandas/tests/reshape/test_reshape.py
nagey/pandas
ba60321d00d686a3137ffe26f919d64e84d43aa0
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/reshape/test_reshape.py
nagey/pandas
ba60321d00d686a3137ffe26f919d64e84d43aa0
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101 import pytest from pandas import DataFrame, Series import pandas as pd from numpy import nan import numpy as np from pandas.util.testing import assert_frame_equal from pandas.core.reshape.reshape import ( melt, lreshape, get_dummies, wide_to_long) impor...
44.022472
79
0.446053
79626e1148f82fc9b84be10ded44d4df7fcc0d35
845
py
Python
korona/templates/html/tags/button.py
bharadwajyarlagadda/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
2
2016-10-11T03:57:30.000Z
2018-01-19T20:13:47.000Z
korona/templates/html/tags/button.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
16
2016-08-19T04:08:45.000Z
2016-09-27T03:26:39.000Z
korona/templates/html/tags/button.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
1
2016-10-11T03:57:33.000Z
2016-10-11T03:57:33.000Z
# -*- coding: utf-8 -*- """<button> template""" from ..environment import env button = env.from_string("""\ <button {% if name -%} name="{{ name }}" {% endif -%} {% if type -%} type="{{ type }}" {% endif -%} {% if value -%} value="{{ value }}" {% endif -%} {% if form -%} form="{{ form }}" {% e...
42.25
74
0.48284
79626e848e123ba47fc3e535487693ded1f8b241
1,912
py
Python
tensorflow/example2.py
linksdl/acs_project_maching-learning
8cc034ec07432c3a79cefc2eacc8e9a77019748d
[ "Apache-2.0" ]
1
2021-12-10T14:10:56.000Z
2021-12-10T14:10:56.000Z
tensorflow/example2.py
linksdl/acs_project_maching-learning
8cc034ec07432c3a79cefc2eacc8e9a77019748d
[ "Apache-2.0" ]
null
null
null
tensorflow/example2.py
linksdl/acs_project_maching-learning
8cc034ec07432c3a79cefc2eacc8e9a77019748d
[ "Apache-2.0" ]
1
2020-11-04T02:29:40.000Z
2020-11-04T02:29:40.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- """ @Project : acs-project-machine_learning @File : example2.py @Author : Billy Sheng @Contact : shengdl999links@gmail.com @Date : 2020/12/25 3:52 下午 @Version : 1.0.0 @License : Apache License 2.0 @Desc : None """ import tensorflow as tf from tensorfl...
21.727273
84
0.696653
79626ea857fde30a47184153468514f3b542b00e
4,807
py
Python
lib/python2.7/site-packages/openopt/kernel/baseSolver.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
5
2017-01-23T16:23:43.000Z
2022-01-20T16:14:06.000Z
lib/python2.7/site-packages/openopt/kernel/baseSolver.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
1
2015-04-24T06:46:25.000Z
2015-04-24T06:46:25.000Z
lib/python2.7/site-packages/openopt/kernel/baseSolver.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
8
2016-05-30T13:35:17.000Z
2021-06-15T22:24:29.000Z
__docformat__ = "restructuredtext en" from numpy import asarray, copy, ravel, isnan, isscalar, asscalar#where from nonOptMisc import where from openopt.kernel.Point import Point class baseSolver: def __init__(self):pass __name__ = 'Undefined. If you are a user and got the message, inform developers please.' ...
41.8
134
0.593509
79626f344408ef50ff58d7f9af7b70367d77460c
927
py
Python
tests/modules/kms/test_plan.py
Kiranug/cloud-foundation-fabric
c4b2f85a3b197a6386081431d8e00d69f4b1ccfb
[ "Apache-2.0" ]
84
2022-01-12T21:25:12.000Z
2022-03-31T05:40:02.000Z
tests/modules/kms/test_plan.py
Kiranug/cloud-foundation-fabric
c4b2f85a3b197a6386081431d8e00d69f4b1ccfb
[ "Apache-2.0" ]
77
2022-01-12T18:49:05.000Z
2022-03-29T13:05:17.000Z
tests/modules/kms/test_plan.py
Kiranug/cloud-foundation-fabric
c4b2f85a3b197a6386081431d8e00d69f4b1ccfb
[ "Apache-2.0" ]
55
2022-01-15T13:47:30.000Z
2022-03-31T17:35:48.000Z
# Copyright 2022 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 agreed to in writing, ...
35.653846
74
0.737864
79626f9e187fa1ed05b6b44956c912aff0b482f2
175
py
Python
start-demos/lesson04/circle_area.py
Andyliwr/PythonStudyLoad
24d78da61740e310c33c3769c93a207bf0e665c8
[ "MIT" ]
1
2018-12-11T07:59:44.000Z
2018-12-11T07:59:44.000Z
start-demos/lesson04/circle_area.py
Andyliwr/python-learn
24d78da61740e310c33c3769c93a207bf0e665c8
[ "MIT" ]
null
null
null
start-demos/lesson04/circle_area.py
Andyliwr/python-learn
24d78da61740e310c33c3769c93a207bf0e665c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*-coding:utf-8*- # 程序实现的功能:计算圆的面积 import math rValue = float(input("请输入圆的半径:")) area = 2 * math.pi * rValue * rValue print("圆的面积是:{:10f}".format(area))
25
36
0.668571
7962709f487e23724ab118b273ced9d379dd833c
5,050
py
Python
bapiw/api.py
mitchldtn/bapiw
2ce88953a0a0e7c60efe108c2343f64109a879ff
[ "MIT" ]
null
null
null
bapiw/api.py
mitchldtn/bapiw
2ce88953a0a0e7c60efe108c2343f64109a879ff
[ "MIT" ]
null
null
null
bapiw/api.py
mitchldtn/bapiw
2ce88953a0a0e7c60efe108c2343f64109a879ff
[ "MIT" ]
null
null
null
import requests import json from datetime import datetime # Official Binance API Docs # https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md class API: API_URL = 'https://api.binance.com/api' PUBLIC_API_VERSION = 'v3' PRIVATE_API_VERSION = 'v3' # Intervals used when ...
40.4
127
0.626535
796270bb5c15c9f7a15dafede750d2c02ad78efb
4,921
py
Python
mmplib.py
ff-/mailMyPy
1c1ce33d4869a8fb5fd5ade6dac14d204d8eed47
[ "MIT" ]
1
2016-01-12T01:13:08.000Z
2016-01-12T01:13:08.000Z
mmplib.py
ff-/mailMyPy
1c1ce33d4869a8fb5fd5ade6dac14d204d8eed47
[ "MIT" ]
null
null
null
mmplib.py
ff-/mailMyPy
1c1ce33d4869a8fb5fd5ade6dac14d204d8eed47
[ "MIT" ]
1
2015-10-22T07:30:14.000Z
2015-10-22T07:30:14.000Z
import imaplib, smtplib, email, re, sqlalchemy, hashlib, time from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from lxml import etree ###### IMAP def imapConnect(login): try: mail = imaplib.IMAP4_SSL('imap.gmail.com') mail.login(login['username'],login['password']) pass exc...
30.565217
122
0.71835
796271427f9eabb99b067e5d7f21e961ff35b78b
656
py
Python
bottle_air/keras_utils.py
Apaezmx/simplifai
07fc221268edeb5dfb83f47375acd25bf38ec605
[ "Apache-2.0" ]
17
2018-06-08T13:55:11.000Z
2020-04-16T17:34:53.000Z
bottle_air/keras_utils.py
Apaezmx/simplifai
07fc221268edeb5dfb83f47375acd25bf38ec605
[ "Apache-2.0" ]
null
null
null
bottle_air/keras_utils.py
Apaezmx/simplifai
07fc221268edeb5dfb83f47375acd25bf38ec605
[ "Apache-2.0" ]
2
2018-08-02T13:44:40.000Z
2018-08-27T09:13:58.000Z
from keras import backend as K from keras.engine.topology import Layer import numpy as np import tensorflow as tf def activate(activation, tensor): """ Maps a string activation to the keras backend function """ if activation == 'tanh': return K.tanh(tensor) elif activation == 'sigmoid': return K.sigmoid(...
27.333333
84
0.699695
7962716882a2219a6a14e9edd8251a00d19a0a7c
45,523
py
Python
group/utils/transforms.py
xueyee/GroupFormer
577234f8ad8425af2cd343c8859f8119e29f715c
[ "Apache-2.0" ]
31
2021-08-31T12:37:40.000Z
2022-03-28T07:30:52.000Z
group/utils/transforms.py
xueyee/GroupFormer
577234f8ad8425af2cd343c8859f8119e29f715c
[ "Apache-2.0" ]
6
2021-08-31T12:38:22.000Z
2022-03-26T08:58:03.000Z
group/utils/transforms.py
xueyee/GroupFormer
577234f8ad8425af2cd343c8859f8119e29f715c
[ "Apache-2.0" ]
2
2022-03-14T04:02:46.000Z
2022-03-22T05:24:50.000Z
from __future__ import division import torch import math import sys import random from PIL import Image try: import accimage except ImportError: accimage = None import numpy as np import numbers import types import collections import warnings from . import functional as F if sys.version_info < (3, 3): Seq...
37.560231
119
0.598884
79627378dc0c6e33bd7d6f32a3c5d0f57b60cc34
1,841
py
Python
tests/test_camera.py
hefangwuwu/relaxrender
adcf3fa5dc7d38f0af8308083fadf665dd30bdb2
[ "MIT" ]
4
2018-06-08T16:42:30.000Z
2018-06-21T19:41:58.000Z
tests/test_camera.py
hefangwuwu/relaxrender
adcf3fa5dc7d38f0af8308083fadf665dd30bdb2
[ "MIT" ]
70
2018-06-15T08:46:25.000Z
2018-06-25T10:47:16.000Z
tests/test_camera.py
hefangwuwu/relaxrender
adcf3fa5dc7d38f0af8308083fadf665dd30bdb2
[ "MIT" ]
56
2018-06-08T11:46:05.000Z
2018-06-25T04:15:17.000Z
import unittest import numpy as np import relaxrender.camera as c import relaxrender.triangle as t import relaxrender.points as rp class TestCamera(unittest.TestCase): def setUp(self): self.pos = np.array([1.0, 1.0, 1.0]) self.up = np.array([1.0, 1.0, 0]) self.right = np.array([1.0, -1.0,...
31.741379
85
0.56491
7962737a6e8f0f59182e4eb5d61963f43533058b
48
py
Python
django_jwt/exceptions.py
Casassarnau/django-jwt-oidc
0c047c060ff08736b56f408432fbff9ad5799ad3
[ "MIT" ]
5
2022-02-21T10:19:19.000Z
2022-03-29T19:05:44.000Z
django_jwt/exceptions.py
Casassarnau/django-jwt-oidc
0c047c060ff08736b56f408432fbff9ad5799ad3
[ "MIT" ]
null
null
null
django_jwt/exceptions.py
Casassarnau/django-jwt-oidc
0c047c060ff08736b56f408432fbff9ad5799ad3
[ "MIT" ]
1
2022-03-27T08:39:47.000Z
2022-03-27T08:39:47.000Z
class JWTClientException(Exception): pass
16
37
0.75
796275de9e8bc2aa793358e943d1dd1cee643994
5,960
py
Python
integration/tests/cook/test_dynamic_clusters.py
kevo1ution/Cook
62c23a41dcc543dd0ca2173b849e41644b5437f0
[ "Apache-2.0" ]
null
null
null
integration/tests/cook/test_dynamic_clusters.py
kevo1ution/Cook
62c23a41dcc543dd0ca2173b849e41644b5437f0
[ "Apache-2.0" ]
null
null
null
integration/tests/cook/test_dynamic_clusters.py
kevo1ution/Cook
62c23a41dcc543dd0ca2173b849e41644b5437f0
[ "Apache-2.0" ]
null
null
null
import logging import os import subprocess import time import unittest import pytest from tests.cook import util @pytest.mark.timeout(util.DEFAULT_TEST_TIMEOUT_SECS) # individual test timeout class TestDynamicClusters(util.CookTest): @classmethod def setUpClass(cls): cls.cook_url = util.retrieve_c...
48.852459
141
0.623993
79627674588ec92a0bbde8536360c14c2367e835
132
py
Python
profiles_api/admin.py
nts2pd/profiles-rest-api
76abb1dc1001b5e3129b20a7274f74cb740cebe1
[ "MIT" ]
null
null
null
profiles_api/admin.py
nts2pd/profiles-rest-api
76abb1dc1001b5e3129b20a7274f74cb740cebe1
[ "MIT" ]
5
2021-03-19T11:59:23.000Z
2022-02-10T09:42:37.000Z
profiles_api/admin.py
nts2pd/profiles-rest-api
76abb1dc1001b5e3129b20a7274f74cb740cebe1
[ "MIT" ]
null
null
null
from django.contrib import admin from profiles_api import models admin.site.register([models.UserProfile, models.ProfileFeedItem])
26.4
65
0.840909
796276e91c1b36d82cd112cf17cc03beefbc7765
623
py
Python
1stRound/Easy/374 Guess Number Higher or Lower/Binarysearch.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
1stRound/Easy/374 Guess Number Higher or Lower/Binarysearch.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
1stRound/Easy/374 Guess Number Higher or Lower/Binarysearch.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num): class Solution(object): def guessNumber(self, n): """ :type n: int :rtype: int """ left, right = 1, n #[lef...
25.958333
80
0.4687
79627706ee307782359de513c4abf52976722add
300
py
Python
tackle/providers/tackle/tests/debug/test_provider_tackle_debug.py
geometry-labs/tackle-box
83424a10416955ba983f0c14ec89bd79673a4282
[ "BSD-3-Clause" ]
1
2021-04-13T23:10:11.000Z
2021-04-13T23:10:11.000Z
tackle/providers/tackle/tests/debug/test_provider_tackle_debug.py
geometry-labs/tackle-box
83424a10416955ba983f0c14ec89bd79673a4282
[ "BSD-3-Clause" ]
4
2021-01-27T00:06:12.000Z
2021-02-12T01:20:32.000Z
tackle/providers/tackle/tests/debug/test_provider_tackle_debug.py
geometry-labs/tackle-box
83424a10416955ba983f0c14ec89bd79673a4282
[ "BSD-3-Clause" ]
1
2021-05-07T05:07:29.000Z
2021-05-07T05:07:29.000Z
"""Tests dict input objects for `tackle.providers.tackle.block` module.""" from tackle.main import tackle def test_provider_system_hook_debug(change_dir): """Verify the hook call works properly.""" output = tackle(no_input=True) assert output['t'] is None assert 'g' not in output
27.272727
74
0.723333
796278173e202d203cffaff4f4be62e06ea0c649
65
py
Python
modules/shared/domain/email/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
6
2020-08-09T23:41:08.000Z
2021-03-16T22:05:40.000Z
modules/shared/domain/email/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
1
2020-10-02T02:59:38.000Z
2020-10-02T02:59:38.000Z
modules/shared/domain/email/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
2
2021-03-16T22:05:43.000Z
2021-04-30T06:35:25.000Z
from .send_email import EmailSender __all__ = ('EmailSender',)
13
35
0.753846
79627a06ebdea8e7b52eb97a549afce026fee17b
142
py
Python
main.py
NickVeselov/Dungeon-generator
fc1fb6f9862887381db4b5084e3aa9685232b913
[ "MIT" ]
null
null
null
main.py
NickVeselov/Dungeon-generator
fc1fb6f9862887381db4b5084e3aa9685232b913
[ "MIT" ]
null
null
null
main.py
NickVeselov/Dungeon-generator
fc1fb6f9862887381db4b5084e3aa9685232b913
[ "MIT" ]
null
null
null
import dungeon_generator if __name__ == '__main__': dg = dungeon_generator.dungeon_generator() dg.read_components() dg.write_result()
17.75
44
0.760563
79627aa06b9df345e1dd8d097a0c5fbcdf0116b6
9,314
py
Python
test/api/test_dataset_collections.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
test/api/test_dataset_collections.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
test/api/test_dataset_collections.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import json import tarfile from base import api from base.populators import DatasetCollectionPopulator, DatasetPopulator from six import StringIO class DatasetCollectionApiTestCase(api.ApiTestCase): def setUp(self): super(DatasetCollectionApiTestCase, self).setUp() self.dataset_populator = Datas...
50.075269
153
0.699163
79627ac209f44ab9a5180963b280738b205d6a8b
31,052
py
Python
sahara/plugins/hdp/versions/version_1_3_2/versionhandler.py
matips/iosr-2015
84c0da43d4e8fed45052a1cec8dffaeda8e7683b
[ "Apache-2.0" ]
null
null
null
sahara/plugins/hdp/versions/version_1_3_2/versionhandler.py
matips/iosr-2015
84c0da43d4e8fed45052a1cec8dffaeda8e7683b
[ "Apache-2.0" ]
null
null
null
sahara/plugins/hdp/versions/version_1_3_2/versionhandler.py
matips/iosr-2015
84c0da43d4e8fed45052a1cec8dffaeda8e7683b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Hortonworks, Inc. # # 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 ...
44.107955
79
0.577708
79627afee26636547ab46bb8d762b3a52e4da91f
2,162
py
Python
pysnmp/RADLAN-SNA-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/RADLAN-SNA-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/RADLAN-SNA-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RADLAN-SNA-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-SNA-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:40:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
98.272727
477
0.784459
79627b958934df96b0eba0c2f50fe718da6b9150
688
py
Python
invenio_communities/fixtures/tasks.py
lnielsen/invenio-communities
e6e032960abd5d4062a63824d6d349a6158339af
[ "MIT" ]
3
2017-10-25T00:58:24.000Z
2021-05-02T23:42:02.000Z
invenio_communities/fixtures/tasks.py
lnielsen/invenio-communities
e6e032960abd5d4062a63824d6d349a6158339af
[ "MIT" ]
277
2015-04-30T09:39:22.000Z
2022-03-31T07:38:26.000Z
invenio_communities/fixtures/tasks.py
lnielsen/invenio-communities
e6e032960abd5d4062a63824d6d349a6158339af
[ "MIT" ]
44
2015-04-22T11:34:49.000Z
2022-03-22T09:56:33.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2021 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Celery tasks for fixtures.""" from celery import shared_task from invenio_access...
25.481481
72
0.74564
79627b9bf273d6f20eed09dec297c797623cc255
4,773
py
Python
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
1
2021-08-13T13:46:04.000Z
2021-08-13T13:46:04.000Z
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
null
null
null
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
1
2021-09-29T18:25:48.000Z
2021-09-29T18:25:48.000Z
import pytest from sqlalchemy.exc import IntegrityError from app.dao.inbound_shortnumbers_dao import ( dao_get_inbound_shortnumbers, dao_get_inbound_shortnumber_for_service, dao_get_available_inbound_shortnumbers, dao_set_inbound_shortnumber_to_service, dao_set_inbound_shortnumber_active_flag, ...
39.775
125
0.803059
79627bd41d2fe889930b10ee93e56212045a0d34
5,632
py
Python
scripts/load-data/common/load-us-counties.py
tistacorp/data
4520089648b8cb529a568de69790a685f205258e
[ "Apache-2.0" ]
null
null
null
scripts/load-data/common/load-us-counties.py
tistacorp/data
4520089648b8cb529a568de69790a685f205258e
[ "Apache-2.0" ]
null
null
null
scripts/load-data/common/load-us-counties.py
tistacorp/data
4520089648b8cb529a568de69790a685f205258e
[ "Apache-2.0" ]
1
2021-08-09T13:51:54.000Z
2021-08-09T13:51:54.000Z
#!/usr/bin/env python3 # ############################################################################# # Helper script to generate us-counties.csv file # * Download counties information from census.gov # * Download geo-location from datasciencetoolkit.org # Save result into the '../../common/us/counties.csv' file # # r...
43.658915
124
0.589844
79627c181bde25665139dc54b4dbbe3f7841c6cd
7,013
py
Python
clock-in.py
Silly-Boy/ZJU-Clock-In
72d20f5b61b177dbda472b50f0b734ef8c2c6f9d
[ "MIT" ]
1
2021-09-17T12:29:16.000Z
2021-09-17T12:29:16.000Z
clock-in.py
Silly-Boy/ZJU-Clock-In
72d20f5b61b177dbda472b50f0b734ef8c2c6f9d
[ "MIT" ]
null
null
null
clock-in.py
Silly-Boy/ZJU-Clock-In
72d20f5b61b177dbda472b50f0b734ef8c2c6f9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 打卡脚修改自ZJU-nCov-Hitcarder的开源代码,感谢这位同学开源的代码 import requests import json import re import datetime import time import sys import ddddocr class ClockIn(object): """Hit card class Attributes: username: (str) 浙大统一认证平台用户名(一般为学号) password: (str) 浙大统一认证平台密码 eai_sess:...
32.317972
222
0.578497
79627d2f9de4af7a3f5427b5ee0b669f2e3de754
4,924
py
Python
release/stubs.min/Autodesk/Revit/UI/Mechanical.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Autodesk/Revit/UI/Mechanical.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Autodesk/Revit/UI/Mechanical.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
# encoding: utf-8 # module Autodesk.Revit.UI.Mechanical calls itself Mechanical # from RevitAPIUI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class DuctFittingAndAccessoryPressureDropUIData(object,IDisposable): """ The input and ...
28.964706
215
0.717709
79627dedf32b92ff95899a027b22f0cba78c60ba
1,126
py
Python
tinydebug/TestSuite/TestSuite.py
CCExtractor/AZTinyDebug
133982d750dfd892616170a16d223a45e81da7e5
[ "MIT" ]
3
2020-01-12T19:26:03.000Z
2020-01-13T20:22:05.000Z
tinydebug/TestSuite/TestSuite.py
CCExtractor/AZTinyDebug
133982d750dfd892616170a16d223a45e81da7e5
[ "MIT" ]
null
null
null
tinydebug/TestSuite/TestSuite.py
CCExtractor/AZTinyDebug
133982d750dfd892616170a16d223a45e81da7e5
[ "MIT" ]
null
null
null
from tinydebug.Debugger import Debugger from tinydebug.ConsoleReporter import ConsoleReporter from tinydebug.util import func_from_file, write_results from pathlib import Path import json import os def run_all_tests(output_directory): if output_directory: output_directory = Path(output_directory) ...
36.322581
104
0.664298
79627e43d78c299454f0cdad6bfddde74bf38df1
318,606
py
Python
pandas/core/frame.py
egoddard/pandas
3b6915ef9435b13ac5d8c19634270ae231f8e47c
[ "BSD-3-Clause" ]
1
2021-11-04T15:10:30.000Z
2021-11-04T15:10:30.000Z
pandas/core/frame.py
rjfs/pandas
a0c8425a5f2b74e8a716defd799c4a3716f66eff
[ "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
rjfs/pandas
a0c8425a5f2b74e8a716defd799c4a3716f66eff
[ "BSD-3-Clause" ]
null
null
null
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ import collections fr...
34.347348
170
0.529664
79627eec4aaa7897ad3ae92a928531e46d1c32ae
4,110
py
Python
homeassistant/components/icloud/device_tracker.py
billyburly/home-assistant
9795449d22783e77a0ca7b745f15c89a830c5cc6
[ "Apache-2.0" ]
2
2017-08-29T15:40:44.000Z
2017-08-30T21:40:12.000Z
homeassistant/components/icloud/device_tracker.py
billyburly/home-assistant
9795449d22783e77a0ca7b745f15c89a830c5cc6
[ "Apache-2.0" ]
1
2017-01-20T22:09:40.000Z
2017-01-20T22:09:40.000Z
homeassistant/components/icloud/device_tracker.py
billyburly/home-assistant
9795449d22783e77a0ca7b745f15c89a830c5cc6
[ "Apache-2.0" ]
6
2019-12-01T19:06:52.000Z
2020-09-17T00:57:06.000Z
"""Support for tracking for iCloud devices.""" import logging from typing import Dict from homeassistant.components.device_tracker import SOURCE_TYPE_GPS from homeassistant.components.device_tracker.config_entry import TrackerEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import C...
30
78
0.673236
79627f6f1bbadeb346b5a7fb2baf53427d981554
119
py
Python
padelpy/__init__.py
ECRL/PaDELPy
9c6b49ea373e314e5929b8157a6ec062efc1701b
[ "MIT" ]
33
2019-07-16T07:43:38.000Z
2021-04-08T11:19:35.000Z
padelpy/__init__.py
ECRL/PaDELPy
9c6b49ea373e314e5929b8157a6ec062efc1701b
[ "MIT" ]
9
2019-10-18T14:44:46.000Z
2021-04-13T14:43:16.000Z
padelpy/__init__.py
ECRL/PaDELPy
9c6b49ea373e314e5929b8157a6ec062efc1701b
[ "MIT" ]
6
2020-01-08T02:53:12.000Z
2021-04-09T05:26:09.000Z
from padelpy.wrapper import padeldescriptor from padelpy.functions import from_mdl, from_smiles __version__ = '0.1.10'
29.75
51
0.831933
79627f9c50cb3221c3d85cee66097c187c4869f8
1,079
py
Python
dnatools/acgt2fasta.py
dunnousername/dnatools
8eb91e0332e482566954fbb4b17bc8e460191983
[ "MIT" ]
3
2019-07-14T02:12:15.000Z
2020-11-28T21:02:23.000Z
dnatools/acgt2fasta.py
dunnousername/dnatools
8eb91e0332e482566954fbb4b17bc8e460191983
[ "MIT" ]
null
null
null
dnatools/acgt2fasta.py
dunnousername/dnatools
8eb91e0332e482566954fbb4b17bc8e460191983
[ "MIT" ]
1
2020-02-19T01:31:12.000Z
2020-02-19T01:31:12.000Z
#!/usr/bin/python3 """ See fasta2acgt.py for more general info. Assumes DNA. """ import sys from argparse import ArgumentParser as AP from argparse import FileType parser = AP(description='Converts ACGT sequences to FASTA sequences') parser.add_argument('input', type=FileType('rb')) parser.add_argument('out...
22.957447
70
0.617238
796280394efc39765aaecf719958edbf1ee79c8e
9,677
py
Python
message.py
pfibiger/grumblechat
1767d04942fbdee67edf370dcec6345a7d29d8e0
[ "Apache-2.0" ]
1
2016-05-18T05:12:03.000Z
2016-05-18T05:12:03.000Z
message.py
pfibiger/grumblechat
1767d04942fbdee67edf370dcec6345a7d29d8e0
[ "Apache-2.0" ]
null
null
null
message.py
pfibiger/grumblechat
1767d04942fbdee67edf370dcec6345a7d29d8e0
[ "Apache-2.0" ]
null
null
null
from google.appengine.dist import use_library use_library('django', '1.2') from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.db import Key from google.appengine.ext.webapp import template from google.appengine.ext.webapp.util import run_wsgi_app from datetime imp...
45.219626
116
0.555337
79628044aa4600d68e3eae956df39affc6c05169
120
py
Python
config.py
salolivares/outpostAutoBump
8d012fca8fbfa36649f316ef0eb83fc362aea548
[ "MIT" ]
null
null
null
config.py
salolivares/outpostAutoBump
8d012fca8fbfa36649f316ef0eb83fc362aea548
[ "MIT" ]
null
null
null
config.py
salolivares/outpostAutoBump
8d012fca8fbfa36649f316ef0eb83fc362aea548
[ "MIT" ]
null
null
null
FIREFOX_PROFILE_PATH = '/home/sal/.mozilla/firefox/zntq7ccv.default' LOG_FILENAME = 'bump.log' MINUTES_BETWEEN_BUMP = 15
40
68
0.808333
7962807c1fdf4b61dbc5de2be20ec24298909d04
9,523
py
Python
data/aligned_dataset.py
wenqingchu/MMAN
139145e7d4a6cd5a49c6e000d69ef6b4e7005b95
[ "BSD-3-Clause" ]
null
null
null
data/aligned_dataset.py
wenqingchu/MMAN
139145e7d4a6cd5a49c6e000d69ef6b4e7005b95
[ "BSD-3-Clause" ]
null
null
null
data/aligned_dataset.py
wenqingchu/MMAN
139145e7d4a6cd5a49c6e000d69ef6b4e7005b95
[ "BSD-3-Clause" ]
null
null
null
import os.path import random import torchvision.transforms as transforms import torch import torch.nn as nn import math import numpy as np from data.base_dataset import BaseDataset from data.image_folder import make_dataset from PIL import Image, ImageOps def channel_1toN(img, num_channel): transform1 = transforms...
41.404348
117
0.553817
796280bbc480685f0207b667637f985b511454b5
141,782
py
Python
lib/matplotlib/patches.py
SoftwareDev/mat-plot-lib
abaf94859d5ef6e653a4d8a7ce2c59cea1724a57
[ "MIT", "BSD-3-Clause" ]
3
2015-02-25T21:51:26.000Z
2020-01-05T14:11:52.000Z
lib/matplotlib/patches.py
SoftwareDev/mat-plot-lib
abaf94859d5ef6e653a4d8a7ce2c59cea1724a57
[ "MIT", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
lib/matplotlib/patches.py
OceanWolf/matplotlib
a429c415bdb6e54ccfe004a48fdc034ea8e9d329
[ "MIT", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import map, zip import math import matplotlib as mpl import numpy as np import matplotlib.cbook as cbook import matplotlib.artist as artist from matplotlib.a...
32.377712
79
0.517527
796282e76323f586a37120cfb4e5ceaf7c5763cd
508
py
Python
test.py
ptsneves/mesonarduino
77bee12f11fbcdd702e74abf05397b201222aadf
[ "Apache-2.0" ]
null
null
null
test.py
ptsneves/mesonarduino
77bee12f11fbcdd702e74abf05397b201222aadf
[ "Apache-2.0" ]
null
null
null
test.py
ptsneves/mesonarduino
77bee12f11fbcdd702e74abf05397b201222aadf
[ "Apache-2.0" ]
null
null
null
import pexpect import os import sys import time power_cmd = "socat -t0 STDIO,raw,echo=0,escape=0x03,nonblock=1,b57600,end-close file:/tmp/myserial,b57600,cs8,parenb=0,cstopb=0,clocal=0,raw,echo=0" serialconn = pexpect.spawnu(power_cmd, timeout=2, env=os.environ, logfile=sys.stdout) serialconn.send('\r') serialcon...
31.75
149
0.761811
79628394d03796a8fe06763b104f3c509fcb642d
2,999
py
Python
cyber/python/examples/cyber_header_pb2.py
zhulianhai/apollo
ab47e53dff2a9fe836ac69fdf783a654a0220802
[ "Apache-2.0" ]
73
2019-07-26T06:24:21.000Z
2022-03-21T07:21:51.000Z
cyber/python/examples/cyber_header_pb2.py
zhulianhai/apollo
ab47e53dff2a9fe836ac69fdf783a654a0220802
[ "Apache-2.0" ]
15
2019-08-08T21:20:33.000Z
2022-02-22T17:57:27.000Z
cyber/python/examples/cyber_header_pb2.py
zhulianhai/apollo
ab47e53dff2a9fe836ac69fdf783a654a0220802
[ "Apache-2.0" ]
38
2019-04-15T10:58:37.000Z
2022-01-27T08:52:39.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: cyber_header.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
33.696629
245
0.742581
796283ca81651ae8be23443c072b864c56cf3765
402
py
Python
scenes/LightIntensity.py
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
113
2015-12-11T11:00:49.000Z
2022-03-27T01:33:12.000Z
scenes/LightIntensity.py
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
3
2016-04-04T12:45:28.000Z
2019-04-12T08:33:38.000Z
scenes/LightIntensity.py
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
50
2015-11-16T11:13:02.000Z
2022-03-26T07:05:25.000Z
# This is the Python code used in the Python Tag in LightIntensity.c4d import math import c4d #Welcome to the world of Python def main(): #get the light object of the tag light=op.GetObject() #get the current frame of the document frame=doc.GetTime().GetFrame(doc.GetFps()) #the frame count contr...
25.125
70
0.726368
796283d51ceac09368c84945dda3689cb7af5231
5,985
py
Python
jp.atcoder/abc185/abc185_f/26724747.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc185/abc185_f/26724747.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc185/abc185_f/26724747.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import typing import numba as nb import numpy as np @nb.njit def bit_length(n: int) -> int: l = 0 while 1 << l <= n: l += 1 return l # segment tree lazy S = typing.TypeVar('S') F = typing.TypeVar('F') @nb.njit def seg_build( op_s: typing.Callable[[S, S], S], e_s: typing...
25.576923
90
0.507769
796284ca10b972e49018d25c74aa5df4d60bd276
2,567
py
Python
beer.py
PetePrattis/Get-beer-info-from-Brewery-API
a70eb2cbf7d9166ce50a5b256a6f17ab6c5f23fc
[ "MIT" ]
1
2019-10-10T20:22:49.000Z
2019-10-10T20:22:49.000Z
beer.py
PetePrattis/Get-beer-info-from-Brewery-API
a70eb2cbf7d9166ce50a5b256a6f17ab6c5f23fc
[ "MIT" ]
null
null
null
beer.py
PetePrattis/Get-beer-info-from-Brewery-API
a70eb2cbf7d9166ce50a5b256a6f17ab6c5f23fc
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf8 -*- #Author Παναγιώτης Πράττης/Panagiotis Prattis ''' A program which uses the BreweryDB API http://www.brewerydb.com/developers that shows the beers in the database for the beer kind the user requested. The fields: BreweryDb.search({'type':'beer','q':'unibroue'} ''' ...
33.337662
81
0.624464
796286136649458377e8e56af948f6da56e04d6a
15,922
py
Python
nova/tests/unit/accelerator/test_cyborg.py
pdo2013/nova
3c86ff5b25f02aa45d71e35b3d7f722ab4c36fde
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/accelerator/test_cyborg.py
pdo2013/nova
3c86ff5b25f02aa45d71e35b3d7f722ab4c36fde
[ "Apache-2.0" ]
2
2021-03-31T20:04:16.000Z
2021-12-13T20:45:03.000Z
nova/tests/unit/accelerator/test_cyborg.py
pdo2013/nova
3c86ff5b25f02aa45d71e35b3d7f722ab4c36fde
[ "Apache-2.0" ]
1
2020-07-24T02:31:45.000Z
2020-07-24T02:31:45.000Z
# Copyright 2019 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
42.916442
79
0.660909
79628684de976f03343f876becc1c947e1f4915d
654
py
Python
django/okologiskegrunnkart/migrations/0014_auto_20201124_1248.py
Artsdatabanken/forvaltningsportal
0e8582e69d0627818860bab78d767cbebd8d5779
[ "MIT" ]
6
2020-03-02T06:59:01.000Z
2020-10-26T12:19:56.000Z
django/okologiskegrunnkart/migrations/0014_auto_20201124_1248.py
Artsdatabanken/forvaltningsportal
0e8582e69d0627818860bab78d767cbebd8d5779
[ "MIT" ]
261
2020-01-09T06:41:56.000Z
2020-11-25T14:08:44.000Z
django/okologiskegrunnkart/migrations/0014_auto_20201124_1248.py
Artsdatabanken/forvaltningsportal
0e8582e69d0627818860bab78d767cbebd8d5779
[ "MIT" ]
1
2021-01-31T17:51:11.000Z
2021-01-31T17:51:11.000Z
# Generated by Django 3.0.7 on 2020-11-24 11:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('okologiskegrunnkart', '0013_sublag_position'), ] operations = [ migrations.RenameField( model_name='sublag', old_nam...
23.357143
56
0.565749
7962869cbf346e94c874528314f0f62bd1c1bf0c
1,083
py
Python
jodconverter-web/src/main/office/program/python-core-2.7.6/lib/idlelib/RstripExtension.py
Congliang0229/kkFileView
1b5793c10aaa047f78c6be4abc41d807e71f71ab
[ "Apache-2.0" ]
42
2018-12-12T01:00:59.000Z
2022-03-27T07:32:29.000Z
jodconverter-web/src/main/office/program/python-core-2.7.6/lib/idlelib/RstripExtension.py
Congliang0229/kkFileView
1b5793c10aaa047f78c6be4abc41d807e71f71ab
[ "Apache-2.0" ]
13
2020-11-06T13:50:45.000Z
2022-01-25T07:17:37.000Z
jodconverter-web/src/main/office/program/python-core-2.7.6/lib/idlelib/RstripExtension.py
Congliang0229/kkFileView
1b5793c10aaa047f78c6be4abc41d807e71f71ab
[ "Apache-2.0" ]
8
2020-11-14T04:30:26.000Z
2021-01-16T17:55:19.000Z
'Provides "Strip trailing whitespace" under the "Format" menu.' class RstripExtension: menudefs = [ ('format', [None, ('Strip trailing whitespace', '<<do-rstrip>>'), ] ), ] def __init__(self, editwin): self.editwin = editwin self.editwin.text.bind("<<do-rstrip>>", self.do_rst...
31.852941
81
0.559557
7962871ed69d1b73386f47ce8fd42a3344676586
392
py
Python
src/kgmk/dsa/misc/compress_array/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/misc/compress_array/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/misc/compress_array/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import typing class CompressArray(): def __call__( self, a: typing.List[int], ) -> typing.NoReturn: from bisect import bisect_left v = sorted(set(a)) self.__v = v return [bisect_left(v, x) for x in a] def __getitem__( self, i: int, ) -> int: return self.retrieve(i) ...
14.518519
41
0.57398
79628786392ecee17c1623107715c5be01f285de
12,933
py
Python
envs/multiagent/environment.py
bic4907/MADDPG_simpletag
4afcad1d1d17f1fd5d12e3ef72e04af984dfaba5
[ "MIT" ]
2
2019-03-20T06:14:00.000Z
2019-12-12T04:02:25.000Z
envs/multiagent/environment.py
bic4907/MADDPG_simpletag
4afcad1d1d17f1fd5d12e3ef72e04af984dfaba5
[ "MIT" ]
null
null
null
envs/multiagent/environment.py
bic4907/MADDPG_simpletag
4afcad1d1d17f1fd5d12e3ef72e04af984dfaba5
[ "MIT" ]
null
null
null
import gym from gym import spaces from gym.envs.registration import EnvSpec import numpy as np from multiagent.multi_discrete import MultiDiscrete # environment for all agents in the multiagent world # currently code assumes that no agents will be created/destroyed at runtime! class MultiAgentEnv(gym.Env): metadat...
38.376855
124
0.573571
7962886f59d53ce2b54a2bf0aa6d1eded1090c1a
1,967
py
Python
tests/contrib/asyncio/test_tracer_safety.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
1
2019-11-24T23:09:29.000Z
2019-11-24T23:09:29.000Z
tests/contrib/asyncio/test_tracer_safety.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/asyncio/test_tracer_safety.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
1
2021-01-24T13:44:57.000Z
2021-01-24T13:44:57.000Z
import asyncio from nose.tools import eq_, ok_ from ddtrace.provider import DefaultContextProvider from .utils import AsyncioTestCase, mark_asyncio class TestAsyncioSafety(AsyncioTestCase): """ Ensure that if the ``AsyncioTracer`` is not properly configured, bad traces are produced but the ``Context`` o...
32.783333
72
0.643111
796288ff070409bbd71032b3dd1ee9c0bfd2ea4e
1,449
py
Python
aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListOfficeConversionTaskRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListOfficeConversionTaskRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListOfficeConversionTaskRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# 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 # "License"); you may not u...
33.697674
83
0.757764
7962892148e1085099ca51dae4b84d9ef879e472
8,717
py
Python
ndlib/models/opinions/AlgorithmicBiasMediaModel.py
ValentinaPansanella/ndlib
e4dbfdbf8cc69c92c31f7cce524189110b009c9f
[ "BSD-2-Clause" ]
null
null
null
ndlib/models/opinions/AlgorithmicBiasMediaModel.py
ValentinaPansanella/ndlib
e4dbfdbf8cc69c92c31f7cce524189110b009c9f
[ "BSD-2-Clause" ]
null
null
null
ndlib/models/opinions/AlgorithmicBiasMediaModel.py
ValentinaPansanella/ndlib
e4dbfdbf8cc69c92c31f7cce524189110b009c9f
[ "BSD-2-Clause" ]
null
null
null
from ndlib.models.DiffusionModel import DiffusionModel import numpy as np import tqdm import random import os import time import pickle class AlgorithmicBiasMediaModel(DiffusionModel): """ Model Parameters to be specified via ModelConfig :param epsilon: bounded confidence threshold from the Deffuant model...
34.59127
151
0.527704
79628952fc494e511494b87f3f8b3ee0d0782675
11,165
py
Python
bin/tools/pykg-config/pykg_config/result.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
bin/tools/pykg-config/pykg_config/result.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
bin/tools/pykg-config/pykg_config/result.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2009-2012, Geoffrey Biggs # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of condit...
39.592199
84
0.620869
796289a95bbf0a39bad9c4411fa90aeecb459d17
6,720
py
Python
nnunet/experiment_planning/alternative_experiment_planning/experiment_planner_baseline_3DUNet_v21_11GB.py
alexpron/nnUNet
e5e5e2d42aae64f88b576714a19fe955bf8dbd86
[ "Apache-2.0" ]
72
2020-10-30T08:55:17.000Z
2022-03-30T03:15:55.000Z
nnunet/experiment_planning/alternative_experiment_planning/experiment_planner_baseline_3DUNet_v21_11GB.py
alexpron/nnUNet
e5e5e2d42aae64f88b576714a19fe955bf8dbd86
[ "Apache-2.0" ]
16
2021-01-13T03:39:47.000Z
2022-03-31T21:35:32.000Z
nnunet/experiment_planning/alternative_experiment_planning/experiment_planner_baseline_3DUNet_v21_11GB.py
walehn/mynnUNet
77bc485ee025a61feb91cb0a0ed1c61a32a0f39f
[ "Apache-2.0" ]
20
2020-10-29T20:47:28.000Z
2022-03-26T07:18:00.000Z
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
53.76
147
0.622619
79628a2c84bf2aa5230735f43833c5923d1ee854
46
py
Python
Chapter 10/appfactory/Flaskapp/app.py
bpbpublications/Building-Web-Apps-with-Python-and-Flask
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
[ "MIT" ]
2
2021-05-08T23:10:12.000Z
2021-05-10T14:33:27.000Z
Chapter 10/appfactory/Flaskapp/app.py
bpbpublications/Building-Web-Apps-with-Python-and-Flask
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
[ "MIT" ]
null
null
null
Chapter 10/appfactory/Flaskapp/app.py
bpbpublications/Building-Web-Apps-with-Python-and-Flask
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
[ "MIT" ]
1
2021-07-08T19:17:53.000Z
2021-07-08T19:17:53.000Z
from flask import Flask app=Flask(__name__)
15.333333
24
0.782609
79628a3ca11d0200e3ce9f1121b129edd92f3af7
3,558
py
Python
fastapi_mvc/template/{{cookiecutter.folder_name}}/tests/unit/app/utils/test_redis.py
julianbrooks/fastapi-mvc-template
8fef3cb671254987f136415dfc4d8325334ce38e
[ "MIT" ]
23
2021-07-27T20:42:18.000Z
2021-12-14T00:02:05.000Z
fastapi_mvc/template/{{cookiecutter.folder_name}}/tests/unit/app/utils/test_redis.py
julianbrooks/fastapi-mvc-template
8fef3cb671254987f136415dfc4d8325334ce38e
[ "MIT" ]
5
2021-07-27T14:10:24.000Z
2021-12-11T20:06:43.000Z
fastapi_mvc/template/{{cookiecutter.folder_name}}/tests/unit/app/utils/test_redis.py
julianbrooks/fastapi-mvc-template
8fef3cb671254987f136415dfc4d8325334ce38e
[ "MIT" ]
5
2021-09-07T18:56:46.000Z
2021-12-14T00:02:20.000Z
import mock import pytest from aioredis import Redis from aioredis.exceptions import RedisError from {{cookiecutter.package_name}}.app.utils import RedisClient from {{cookiecutter.package_name}}.config import redis as redis_conf # monkey patch for allowing MagicMock to be used with await # https://stackoverflow.com/a...
30.410256
74
0.754075
79628ae3f6f9803e9cf8e180e1a8de5565a69394
1,164
py
Python
src/read_customer.py
kschwarz1116/Python-Cohort-Analysis
bbcfbfa18b179c0d7edfcc7bc052d628396122c0
[ "MIT" ]
null
null
null
src/read_customer.py
kschwarz1116/Python-Cohort-Analysis
bbcfbfa18b179c0d7edfcc7bc052d628396122c0
[ "MIT" ]
null
null
null
src/read_customer.py
kschwarz1116/Python-Cohort-Analysis
bbcfbfa18b179c0d7edfcc7bc052d628396122c0
[ "MIT" ]
null
null
null
""" Imports the list of customers """ from typing import Dict import csv import datetime as dt from customer import Customer, CUSTOMERS def read_customers(customer_file: str) -> Dict[int, Customer]: """ This function takes in a file name and outputs a dictionary containing the file's customers """ ...
29.846154
95
0.646048
79628befdf5cd7647bf54f52acf4bf979a37c260
10,826
py
Python
lib/galaxy/webapps/galaxy/api/datasets.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/galaxy/api/datasets.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/galaxy/api/datasets.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
""" API operations on the contents of a history dataset. """ import logging from typing import ( Any, cast, Dict, List, Optional, ) from fastapi import ( Body, Depends, Path, Query, Request, ) from starlette.responses import ( FileResponse, StreamingResponse, ) from gal...
36.823129
120
0.666913
79628c0f4264243e048d3721049c244d6cd221f8
13,807
py
Python
atmos/plots.py
mullenkamp/pareora-current-state-2016
017d6ca2e4c644335cb3d8c0b5c409a198d3c109
[ "Apache-2.0" ]
null
null
null
atmos/plots.py
mullenkamp/pareora-current-state-2016
017d6ca2e4c644335cb3d8c0b5c409a198d3c109
[ "Apache-2.0" ]
null
null
null
atmos/plots.py
mullenkamp/pareora-current-state-2016
017d6ca2e4c644335cb3d8c0b5c409a198d3c109
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Surface water plotting functions. """ def hydrograph_plot(flow, precip=None, x_period='day', x_n_periods=1, time_format='%d-%m %H', x_rot=45, alpha=0.6, flow_units='m^{3}/s', precip_units='mm', x_grid=False, export_path=None): """ Plotting function for hydrographs with/without a pr...
37.316216
190
0.614616
79628c8faae4a97b9a6a4cf5e09f1ae0e7667427
264
py
Python
tests/test_op_hadamard.py
ruanton/qsim
5cfe6fb5e20c85749490bf5c69921e9902fa2e75
[ "MIT" ]
null
null
null
tests/test_op_hadamard.py
ruanton/qsim
5cfe6fb5e20c85749490bf5c69921e9902fa2e75
[ "MIT" ]
null
null
null
tests/test_op_hadamard.py
ruanton/qsim
5cfe6fb5e20c85749490bf5c69921e9902fa2e75
[ "MIT" ]
null
null
null
import numpy as np from qsim import OperationHadamard, Circuit def test_operation_hadamard(): c = Circuit(qubit_count=1) o = OperationHadamard(c) assert o.qubits_count == 1 assert np.array_equal(o.op_matrix, np.array([[1, 1], [1, -1]])*0.5**0.5)
26.4
76
0.689394
79628cf88f58cccc2d1c290e7f09de9823237841
5,195
py
Python
elasticapm/contrib/starlette/utils.py
v1v/apm-agent-python
b47b53e1f0fe9529080a83c97467676061e220ec
[ "BSD-3-Clause" ]
null
null
null
elasticapm/contrib/starlette/utils.py
v1v/apm-agent-python
b47b53e1f0fe9529080a83c97467676061e220ec
[ "BSD-3-Clause" ]
null
null
null
elasticapm/contrib/starlette/utils.py
v1v/apm-agent-python
b47b53e1f0fe9529080a83c97467676061e220ec
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
31.484848
120
0.681232
79628dd7500777b50e7b5ce54d08de4780af5d2e
1,389
py
Python
2016/p8/p8.py
BrainBot/advent
de3866878f5417940a8e6dd54a91aad34dccea74
[ "MIT" ]
null
null
null
2016/p8/p8.py
BrainBot/advent
de3866878f5417940a8e6dd54a91aad34dccea74
[ "MIT" ]
null
null
null
2016/p8/p8.py
BrainBot/advent
de3866878f5417940a8e6dd54a91aad34dccea74
[ "MIT" ]
null
null
null
import re rect_cmd = re.compile(r'([0-9]+)x([0-9]+)') rotate_cmd = re.compile(r'([xy])=([0-9]+) by ([0-9]+)') def make_screen(height, width): return [[0 for cols in range(width)] for rows in range(height)] def print_screen(screen): for row in screen: for col in row: print '#' if col == 1 else '-', print "" ...
20.731343
66
0.62419
79628e2554194708295919facd285d4eeedd7432
4,298
py
Python
scripts/train_baselines_kitti.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
7
2022-01-06T18:37:57.000Z
2022-03-20T17:11:30.000Z
scripts/train_baselines_kitti.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
scripts/train_baselines_kitti.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
import torch import random import argparse import numpy as np import ipdb as pdb import os, pwd, yaml import pytorch_lightning as pl from torch.utils.data import DataLoader, random_split import warnings warnings.filterwarnings('ignore') from train_spline import pretrain_spline from leap.tools.utils import load_yaml fr...
38.720721
106
0.519311
79628f442372d862107329ac08d7da1cbeda745b
202
py
Python
ultron8/api/api_v1/endpoints/alive.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
ultron8/api/api_v1/endpoints/alive.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
43
2019-06-01T23:08:32.000Z
2022-02-07T22:24:53.000Z
ultron8/api/api_v1/endpoints/alive.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
from fastapi import APIRouter from starlette.responses import UJSONResponse router = APIRouter() @router.get("/alive") async def alive() -> UJSONResponse: return UJSONResponse({"status": "yes"})
20.2
45
0.742574
796290b609bcf09150487a450eb6c52306e8e4b9
204
py
Python
workflow/deploy/tensorflow-serving/src/webservice/util/util.py
helmut-hoffer-von-ankershoffen/jetson
b8dd14f8e35d10b406292287d3162eb08cdb48f7
[ "MIT" ]
127
2019-12-10T19:32:53.000Z
2022-03-31T02:58:19.000Z
workflow/deploy/tensorflow-serving/src/webservice/util/util.py
roboflow-ai/jetson
b8dd14f8e35d10b406292287d3162eb08cdb48f7
[ "MIT" ]
null
null
null
workflow/deploy/tensorflow-serving/src/webservice/util/util.py
roboflow-ai/jetson
b8dd14f8e35d10b406292287d3162eb08cdb48f7
[ "MIT" ]
37
2019-12-31T20:53:06.000Z
2022-02-09T19:44:13.000Z
def millis_interval(start, end): diff = end - start millis = diff.days * 24 * 60 * 60 * 1000 millis += diff.seconds * 1000 millis += diff.microseconds / 1000 return int(round(millis))
29.142857
44
0.632353
796291bdb41d201ea792694b69f3659459beb36a
2,701
py
Python
Tests/TestContentTypes.py
chouquette/fb-util-for-appx
9925835f5739f81c486d5f9f911f793d0f567a0f
[ "BSD-3-Clause" ]
1
2018-02-28T07:57:47.000Z
2018-02-28T07:57:47.000Z
Tests/TestContentTypes.py
chouquette/fb-util-for-appx
9925835f5739f81c486d5f9f911f793d0f567a0f
[ "BSD-3-Clause" ]
null
null
null
Tests/TestContentTypes.py
chouquette/fb-util-for-appx
9925835f5739f81c486d5f9f911f793d0f567a0f
[ "BSD-3-Clause" ]
1
2020-01-16T20:20:59.000Z
2020-01-16T20:20:59.000Z
#!/usr/bin/env python2.7 # # Copyright (c) 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory...
38.585714
78
0.638652
7962922a58634d6f5d22c84778adf048f26926c2
494
py
Python
node/blockchain/inner_models/type_map.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/inner_models/type_map.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/inner_models/type_map.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
from . import Block TYPE_MAP = {} for subclass in Block.__subclasses__(): key = subclass.__fields__['message'].type_.__fields__['type'].default assert key is not None TYPE_MAP[key] = subclass def get_block_subclass(type_): return TYPE_MAP[type_] def get_block_message_subclass(type_): return ge...
23.52381
73
0.763158
796292762d2fe8e0967868f4eb3c667daf210d36
8,752
py
Python
basisnet/personalization/centralized_so_nwp/trainer_so.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
basisnet/personalization/centralized_so_nwp/trainer_so.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
basisnet/personalization/centralized_so_nwp/trainer_so.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 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...
34.456693
83
0.719835
796293364c36c90128a528d00265d85d787e33f6
11,666
py
Python
invenio_previewer/__init__.py
diegodelemos/invenio-previewer
558fd22e0f29cc8cd7a6999abd4febcf6b248c49
[ "MIT" ]
null
null
null
invenio_previewer/__init__.py
diegodelemos/invenio-previewer
558fd22e0f29cc8cd7a6999abd4febcf6b248c49
[ "MIT" ]
null
null
null
invenio_previewer/__init__.py
diegodelemos/invenio-previewer
558fd22e0f29cc8cd7a6999abd4febcf6b248c49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2019 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. r"""Invenio module for previewing files. Invenio-Previewer provides extensible file ...
36.685535
79
0.721155
79629357e562068adb6b47492c8f1c911702b760
2,340
py
Python
dss_vae/utils/schedule_funs.py
baoy-nlp/DSS-VAE
855f5722301b2d22aef622e7bb8fef74a759f9de
[ "Apache-2.0" ]
37
2019-07-05T16:20:13.000Z
2021-12-21T05:04:49.000Z
dss_vae/utils/schedule_funs.py
baoy-nlp/DSS-VAE
855f5722301b2d22aef622e7bb8fef74a759f9de
[ "Apache-2.0" ]
2
2019-08-28T11:51:01.000Z
2021-06-06T11:39:21.000Z
dss_vae/utils/schedule_funs.py
baoy-nlp/DSS-VAE
855f5722301b2d22aef622e7bb8fef74a759f9de
[ "Apache-2.0" ]
3
2020-01-03T06:17:13.000Z
2021-11-29T12:32:01.000Z
# MIT License # Copyright (c) 2018 the NJUNLP groups. # 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 the rights # to use, copy, modify, me...
40.344828
92
0.705556
796293917aa7ab099c58ea804fa52fd113104f7c
4,758
py
Python
main.py
DoctorDoomLabs/vulncode-db
9c3bd3c953daea561e1c74482cd3b942da959f53
[ "Apache-2.0" ]
1
2019-04-15T09:50:43.000Z
2019-04-15T09:50:43.000Z
main.py
DoctorDoomLabs/vulncode-db
9c3bd3c953daea561e1c74482cd3b942da959f53
[ "Apache-2.0" ]
null
null
null
main.py
DoctorDoomLabs/vulncode-db
9c3bd3c953daea561e1c74482cd3b942da959f53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
31.72
100
0.733081
7962942c3a4e27b42880ed70e42eb7e10ee7a0d4
9,313
py
Python
tests/config_factory.py
JD4912/SSL
a057d293ca8e01d53a6c93c467ea6a59dce48bf0
[ "MIT" ]
null
null
null
tests/config_factory.py
JD4912/SSL
a057d293ca8e01d53a6c93c467ea6a59dce48bf0
[ "MIT" ]
1
2021-12-22T06:52:20.000Z
2021-12-22T06:52:20.000Z
tests/config_factory.py
JD4912/SSL
a057d293ca8e01d53a6c93c467ea6a59dce48bf0
[ "MIT" ]
null
null
null
"""Create real temporary ACME dns tiny configurations to run tests with real server""" import os import configparser from tempfile import NamedTemporaryFile from subprocess import Popen # domain with server.py running on it for testing DOMAIN = os.getenv("GITLABCI_DOMAIN") ACMEDIRECTORY = os.getenv("GITLABCI_ACMEDIREC...
41.026432
97
0.680447
796294a7f5d409c6bd5d2bb916001b538b662ab3
241
py
Python
examples/debtor/debtor.edit.py
mzijdemans/hostfact-api-python-client
801523000d9e9aef9dcfe2fc3e21391c0d99c26a
[ "MIT" ]
null
null
null
examples/debtor/debtor.edit.py
mzijdemans/hostfact-api-python-client
801523000d9e9aef9dcfe2fc3e21391c0d99c26a
[ "MIT" ]
null
null
null
examples/debtor/debtor.edit.py
mzijdemans/hostfact-api-python-client
801523000d9e9aef9dcfe2fc3e21391c0d99c26a
[ "MIT" ]
null
null
null
from hostfact_api import HostFactAPI api = HostFactAPI() debtorParams = { 'Identifier': '1', 'CompanyName': 'Company Y', 'AccountName': 'Company Y' } response = api.sendRequest('debtor', 'edit', debtorParams) print(response)
17.214286
58
0.684647
796294bad257b1d605a64057e96d16b66aac8f04
178
py
Python
Day5/graphics.py
ananthramas/pythonEducation
7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83
[ "MIT" ]
null
null
null
Day5/graphics.py
ananthramas/pythonEducation
7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83
[ "MIT" ]
null
null
null
Day5/graphics.py
ananthramas/pythonEducation
7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83
[ "MIT" ]
1
2021-03-16T00:04:42.000Z
2021-03-16T00:04:42.000Z
import turtle chintu = turtle.Turtle() chintu.shape("turtle") chintu.fillcolor("yellow"); chintu.left(45) chintu.forward(50) chintu.circle(50) chintu.clear() chintu.done()
11.866667
27
0.730337
7962955955b3e404a1ca030d6c77871b8713221e
1,475
py
Python
mldp/tests/collectors/test_standard_chunk_collector.py
prashantlv/mltoolkit
acc192bafc66b7661d541ef4f604b5e5ab7df5ca
[ "MIT" ]
1
2020-10-03T05:23:31.000Z
2020-10-03T05:23:31.000Z
mldp/tests/collectors/test_standard_chunk_collector.py
prashantlv/mltoolkit
acc192bafc66b7661d541ef4f604b5e5ab7df5ca
[ "MIT" ]
null
null
null
mldp/tests/collectors/test_standard_chunk_collector.py
prashantlv/mltoolkit
acc192bafc66b7661d541ef4f604b5e5ab7df5ca
[ "MIT" ]
null
null
null
import unittest from mldp.tests.common import generate_data_chunk, create_list_of_data_chunks from mldp.steps.general import ChunkAccumulator from mldp.steps.collectors import UnitCollector import itertools class ChunkAccumulatorTests(unittest.TestCase): def test_chunk_size_adjustment_with_random_data_and_params...
39.864865
80
0.678644
796295d53598c385eb546ea9b6cdb8149ad50099
6,943
py
Python
datastore.py
primatelabs/voodoopad-tools
0b09380491c0267874f5673a4b979ebb4591c4b0
[ "MIT" ]
null
null
null
datastore.py
primatelabs/voodoopad-tools
0b09380491c0267874f5673a4b979ebb4591c4b0
[ "MIT" ]
null
null
null
datastore.py
primatelabs/voodoopad-tools
0b09380491c0267874f5673a4b979ebb4591c4b0
[ "MIT" ]
1
2021-09-07T22:04:31.000Z
2021-09-07T22:04:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2004-2021 Primate Labs Inc. # # 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 # the rights to use, co...
36.161458
93
0.635028
79629736803026f72fd4e7af1bca641bb5b3d234
5,219
py
Python
17/17b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
1
2021-12-01T17:43:38.000Z
2021-12-01T17:43:38.000Z
17/17b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
17/17b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
#!/bin/env python3 import re from dataclasses import dataclass from functools import partial from itertools import product from typing import Callable from aocd import get_data @dataclass(frozen=True) class Point: x: int y: int def __add__(self, other): if isinstance(other, (self.__class__, Thro...
25.21256
85
0.532286
796297bb10847e69e11b8cfd27d85f9d82d29764
19,502
py
Python
streamsx/standard/relational.py
IBMStreams/streamsx.standard
b0132f894492dddd95aa43894b58564f6a0cf98b
[ "Apache-2.0" ]
null
null
null
streamsx/standard/relational.py
IBMStreams/streamsx.standard
b0132f894492dddd95aa43894b58564f6a0cf98b
[ "Apache-2.0" ]
12
2019-05-21T22:06:37.000Z
2020-07-02T08:03:32.000Z
streamsx/standard/relational.py
IBMStreams/pypi.streamsx.standard
b0132f894492dddd95aa43894b58564f6a0cf98b
[ "Apache-2.0" ]
4
2017-11-17T23:14:40.000Z
2020-01-24T09:18:49.000Z
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017,2018 """ Stream transformations using relational predicates. """ from streamsx.spl.op import Invoke, Map import streamsx.standard._version __version__ = streamsx.standard._version.__version__ class Aggregate(Map): """Aggregation aga...
38.541502
214
0.649626