hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
e972b70d6970fd1d6b55a67f98bddf5fb7dd6960
7,884
py
Python
tools/driver/p4c_src/main.py
DTharun/p4lang
d83d078f95ae2eaf054955fb645fa4d4a7e54847
[ "Apache-2.0" ]
27
2018-06-30T13:01:40.000Z
2022-01-28T09:07:21.000Z
tools/driver/p4c_src/main.py
DTharun/p4lang
d83d078f95ae2eaf054955fb645fa4d4a7e54847
[ "Apache-2.0" ]
8
2018-06-01T11:19:02.000Z
2018-06-09T13:09:15.000Z
tools/driver/p4c_src/main.py
DTharun/p4lang
d83d078f95ae2eaf054955fb645fa4d4a7e54847
[ "Apache-2.0" ]
6
2019-02-24T11:20:22.000Z
2021-05-25T17:21:07.000Z
# Copyright 2013-present Barefoot Networks, 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 agr...
42.616216
94
0.57864
8ad3ab9f5e46a8c67bba479a1bf16e0eaf194126
8,458
py
Python
tests/core/test_secrets.py
ShepardZhao/rancher
a747ac408ca34fb0bf465276f07557ec43bf9c89
[ "Apache-2.0" ]
1
2019-04-17T08:00:59.000Z
2019-04-17T08:00:59.000Z
tests/core/test_secrets.py
ShepardZhao/rancher
a747ac408ca34fb0bf465276f07557ec43bf9c89
[ "Apache-2.0" ]
1
2021-02-23T19:12:08.000Z
2021-02-23T19:12:08.000Z
tests/core/test_secrets.py
ShepardZhao/rancher
a747ac408ca34fb0bf465276f07557ec43bf9c89
[ "Apache-2.0" ]
2
2019-11-14T15:46:01.000Z
2020-05-06T15:31:37.000Z
from .common import random_str CERT = """-----BEGIN CERTIFICATE----- MIIDEDCCAfgCCQC+HwE8rpMN7jANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQGEwJV UzEQMA4GA1UECBMHQXJpem9uYTEVMBMGA1UEChMMUmFuY2hlciBMYWJzMRIwEAYD VQQDEwlsb2NhbGhvc3QwHhcNMTYwNjMwMDExMzMyWhcNMjYwNjI4MDExMzMyWjBK MQswCQYDVQQGEwJVUzEQMA4GA1UECBMHQXJpem9uYTEVMBMGA1UEChM...
33.039063
68
0.731497
8f037fb6cbc1907357d41dbef7cebde6c3f2bba5
594
py
Python
modoboa/admin/migrations/0011_domain_transport.py
Makakken-Crew/modoboa
faac20fe36e26bd7c01edc2adb12312dda4cfaa2
[ "ISC" ]
2
2021-04-20T19:40:09.000Z
2021-04-20T20:23:57.000Z
modoboa/admin/migrations/0011_domain_transport.py
vavilon/modoboa
9fcd133bc883a94cbf66c5bc9687787caadc8ca2
[ "0BSD" ]
19
2021-05-05T03:31:52.000Z
2021-12-11T09:58:52.000Z
modoboa/admin/migrations/0011_domain_transport.py
vavilon/modoboa
9fcd133bc883a94cbf66c5bc9687787caadc8ca2
[ "0BSD" ]
1
2020-01-10T11:43:00.000Z
2020-01-10T11:43:00.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-12-20 14:17 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('transport', '0001_initial'), ('admin', '0010_auto_2...
25.826087
122
0.648148
61d077aa9699b010c0112c50d2bb5210c65b0e8b
556
py
Python
firehose/functions/firehose/main.py
pei0804/serverless-sample
6ac55469aed7cf0d6e9f57109f0852122a951906
[ "MIT" ]
null
null
null
firehose/functions/firehose/main.py
pei0804/serverless-sample
6ac55469aed7cf0d6e9f57109f0852122a951906
[ "MIT" ]
null
null
null
firehose/functions/firehose/main.py
pei0804/serverless-sample
6ac55469aed7cf0d6e9f57109f0852122a951906
[ "MIT" ]
null
null
null
import boto3 def lambda_handler(event, context): firehose = boto3.client('firehose') firehose.put_record( DeliveryStreamName='firehose', Record={ 'Data': b'{"user_id": "a", "event": "AAA"}\n' } ) firehose.put_record( DeliveryStreamName='firehose', Re...
23.166667
57
0.508993
6b0be06b15cb9e6ce1469770bcfd2a0046cd5520
404
py
Python
core/migrations/0009_auto_20220115_2012.py
timehaswings/aoi_backend
17fa315d250022455e38235a10656ddaae4db655
[ "Apache-2.0" ]
1
2021-12-22T01:48:02.000Z
2021-12-22T01:48:02.000Z
core/migrations/0009_auto_20220115_2012.py
timehaswings/aoi_backend
17fa315d250022455e38235a10656ddaae4db655
[ "Apache-2.0" ]
null
null
null
core/migrations/0009_auto_20220115_2012.py
timehaswings/aoi_backend
17fa315d250022455e38235a10656ddaae4db655
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.7 on 2022-01-15 20:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0008_groupmenu'), ] operations = [ migrations.AlterField( model_name='menu', name='url', field=m...
21.263158
85
0.596535
fd21a1d60885c7ee0db39f822ef0fb571f20567b
24,169
py
Python
code/run_fewrel.py
CJWBW/my_erine
9cedbcb2efcdfe4e7cb0aabaff3a53e971131ebb
[ "MIT" ]
null
null
null
code/run_fewrel.py
CJWBW/my_erine
9cedbcb2efcdfe4e7cb0aabaff3a53e971131ebb
[ "MIT" ]
null
null
null
code/run_fewrel.py
CJWBW/my_erine
9cedbcb2efcdfe4e7cb0aabaff3a53e971131ebb
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Copyright (c) 2018, NVIDIA 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...
42.776991
127
0.582771
18a22f9ecd12b8cd2ba070dcb05f2e55ef3f8d64
86
py
Python
mne/datasets/kiloword/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
mne/datasets/kiloword/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
mne/datasets/kiloword/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
"""MNE visual_92_categories dataset.""" from .kiloword import data_path, get_version
21.5
44
0.790698
9fe809b289dcd40d88c83e33a194fe713490761a
6,367
py
Python
redis_wikicache.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
7
2015-01-23T17:24:04.000Z
2022-01-12T16:54:24.000Z
redis_wikicache.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
18
2017-12-09T01:11:23.000Z
2021-09-22T13:26:24.000Z
redis_wikicache.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
1
2015-06-22T02:17:55.000Z
2015-06-22T02:17:55.000Z
import pywikibot import redis from api.config import BotjagwarConfig from api.decorator import separate_process from import_wiktionary import EnWiktionaryDumpImporter config = BotjagwarConfig() class NoPage(Exception): pass class RedisSite(object): def __init__( self, language: str...
34.416216
85
0.586619
b2329006106df9a6fd2a3a4aef8a9cca3bde2071
59
py
Python
masonite/__init__.py
josephmancuso/masonite-azure-driver
06e766f9833b48d28a6ffd4afb24114be1a60a1c
[ "MIT" ]
1
2018-12-08T07:07:37.000Z
2018-12-08T07:07:37.000Z
masonite/__init__.py
vaibhavmule/masonite-cloudinary-driver
866b073717144b8e4755495a01cd4da20d295eaf
[ "MIT" ]
null
null
null
masonite/__init__.py
vaibhavmule/masonite-cloudinary-driver
866b073717144b8e4755495a01cd4da20d295eaf
[ "MIT" ]
1
2019-08-07T16:53:09.000Z
2019-08-07T16:53:09.000Z
from .contrib import drivers from .contrib import providers
29.5
30
0.847458
af0e056d6f71bb1927c037ea383c3b625321d406
2,180
py
Python
topaz/modules/ffi/function.py
mswart/topaz
4bc02d6f4bf29c20f045223ecb6ae8a5cc9df2ae
[ "BSD-3-Clause" ]
6
2015-04-10T20:11:03.000Z
2021-11-10T07:03:46.000Z
topaz/modules/ffi/function.py
mswart/topaz
4bc02d6f4bf29c20f045223ecb6ae8a5cc9df2ae
[ "BSD-3-Clause" ]
1
2017-01-24T10:17:55.000Z
2017-01-24T10:17:55.000Z
topaz/modules/ffi/function.py
mswart/topaz
4bc02d6f4bf29c20f045223ecb6ae8a5cc9df2ae
[ "BSD-3-Clause" ]
2
2017-01-23T18:47:35.000Z
2019-11-13T08:31:18.000Z
import sys from topaz.module import ClassDef from topaz.modules.ffi import type as ffitype from topaz.modules.ffi.pointer import W_PointerObject from topaz.modules.ffi.dynamic_library import coerce_dl_symbol from topaz.modules.ffi.function_type import W_FunctionTypeObject from topaz.objects.moduleobject import W_Funct...
36.949153
77
0.713761
d75b4cbc06c6d60918f9ffe5918cd5ca78a252c1
1,286
py
Python
tests/utils/model_space_test.py
HSE-LAMBDA/modelgym
7f8086c716a014852c1c91c6871bf75da6463ceb
[ "Apache-2.0" ]
18
2017-06-11T01:04:19.000Z
2022-03-09T04:45:19.000Z
tests/utils/model_space_test.py
HSE-LaMBDA/modelgym
7f8086c716a014852c1c91c6871bf75da6463ceb
[ "Apache-2.0" ]
37
2017-06-12T22:33:12.000Z
2019-03-07T08:20:43.000Z
tests/utils/model_space_test.py
HSE-LaMBDA/modelgym
7f8086c716a014852c1c91c6871bf75da6463ceb
[ "Apache-2.0" ]
20
2017-07-18T17:19:02.000Z
2019-04-09T16:22:53.000Z
import pytest from modelgym.utils import ModelSpace, process_model_spaces from modelgym.models import LGBMClassifier, RFClassifier def test_process_model_spaces(): rf_model_space = ModelSpace(RFClassifier, name="RF") processed = process_model_spaces([LGBMClassifier, rf_model_space]) assert len(processed) ...
38.969697
78
0.746501
7a52e70c3728755daa51b7cbe7ac413e27f720e3
4,988
py
Python
ooobuild/lo/sdbc/row_set.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/sdbc/row_set.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/sdbc/row_set.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
36.948148
424
0.685245
f322de074b3ea4b3fd5d3377bcfba25f5a9920b3
5,040
py
Python
talon_one/models/inline_response2006.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-03-05T06:41:26.000Z
2021-03-05T06:41:26.000Z
talon_one/models/inline_response2006.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-09-07T08:56:58.000Z
2021-09-07T08:56:58.000Z
talon_one/models/inline_response2006.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2019-05-21T10:27:54.000Z
2019-05-21T10:27:54.000Z
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
33.825503
647
0.624405
2e69639822990ba77ef76b36bc7df273573566e6
3,208
py
Python
fn_scheduler/fn_scheduler/components/scheduled_rule_pause_resume.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_scheduler/fn_scheduler/components/scheduled_rule_pause_resume.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_scheduler/fn_scheduler/components/scheduled_rule_pause_resume.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import logging from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError from resilient_lib import ResultPayload from fn_scheduler.components import SECTI...
35.252747
114
0.644638
d68650fff76d8fe33b5db8606628d7484753a51e
10,565
py
Python
support/data_upload.py
ErinBryson/Robs_Data_Collector
8f2de121ee821f09ba5ff274fc13258a9d571186
[ "MIT" ]
null
null
null
support/data_upload.py
ErinBryson/Robs_Data_Collector
8f2de121ee821f09ba5ff274fc13258a9d571186
[ "MIT" ]
6
2021-06-06T19:38:38.000Z
2021-08-11T19:44:17.000Z
support/data_upload.py
ErinBryson/robs_data_collector
8f2de121ee821f09ba5ff274fc13258a9d571186
[ "MIT" ]
null
null
null
######################################################################################################################## # FILE DETAILS # # ----------------------------------------------------------------------------...
33.22327
120
0.51027
0fa47268d9d628afe49da8d4a996c283e29911ea
12,996
py
Python
multiagent-particle-envs/multiagent/environment.py
ScorpioPeng/maddpg
d4b109da6f4a21958b20825d37ade86568c48237
[ "MIT" ]
null
null
null
multiagent-particle-envs/multiagent/environment.py
ScorpioPeng/maddpg
d4b109da6f4a21958b20825d37ade86568c48237
[ "MIT" ]
null
null
null
multiagent-particle-envs/multiagent/environment.py
ScorpioPeng/maddpg
d4b109da6f4a21958b20825d37ade86568c48237
[ "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.449704
124
0.573176
99f3850abb8be151725bc753504a25abee5542b0
111,507
py
Python
jax/_src/lax/control_flow.py
erwincoumans/jax
f0e55e3ce241f997b097bd9381504c08a9d35cf8
[ "ECL-2.0", "Apache-2.0" ]
14
2021-04-24T03:26:39.000Z
2022-01-28T14:25:13.000Z
jax/_src/lax/control_flow.py
erwincoumans/jax
f0e55e3ce241f997b097bd9381504c08a9d35cf8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/_src/lax/control_flow.py
erwincoumans/jax
f0e55e3ce241f997b097bd9381504c08a9d35cf8
[ "ECL-2.0", "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 or agreed ...
41.88843
114
0.698916
258427bece34d944a7764f3f20d42bcaf4c45523
205
py
Python
2019/day1/day1p2.py
darkterbear/advent-of-code-2015
543d5a70c4b4c84081602cfa3d0ba05fe0693e54
[ "MIT" ]
null
null
null
2019/day1/day1p2.py
darkterbear/advent-of-code-2015
543d5a70c4b4c84081602cfa3d0ba05fe0693e54
[ "MIT" ]
2
2019-12-01T20:03:18.000Z
2021-05-11T22:41:00.000Z
2019/day1/day1p2.py
darkterbear/advent-of-code-2015
543d5a70c4b4c84081602cfa3d0ba05fe0693e54
[ "MIT" ]
null
null
null
file = open('./input') def findFuel(mass): raw = mass // 3 - 2 if raw <= 0: return 0 return raw + findFuel(raw) sum = 0 for line in file: sum += findFuel(int(line)) print(sum)
12.8125
30
0.55122
00176c24a883ff7f6aeb39eed299e4a096e6b950
707
py
Python
my_env/Lib/site-packages/sklearn/experimental/enable_iterative_imputer.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
2
2021-05-02T07:59:56.000Z
2021-12-14T19:53:13.000Z
Web application/env/Lib/site-packages/sklearn/experimental/enable_iterative_imputer.py
arpit0891/Covid-19-and-Pneumonia-detection-from-X-Ray
6b2756e4672ab25083a0a50f44f36bec1833e789
[ "MIT" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
my_env/Lib/site-packages/sklearn/experimental/enable_iterative_imputer.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
1
2021-05-02T07:59:59.000Z
2021-05-02T07:59:59.000Z
"""Enables IterativeImputer The API and results of this estimator might change without any deprecation cycle. Importing this file dynamically sets :class:`sklearn.impute.IterativeImputer` as an attribute of the impute module:: >>> # explicitly require this experimental feature >>> from sklearn.exper...
33.666667
78
0.755304
f07ba3569c6681ee886ae93348a466be5a66df13
29,056
py
Python
networkx/algorithms/threshold.py
kakila/networkx
a7c7e0bd2057acf8066d796e53f6ea1a77be803e
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/threshold.py
kakila/networkx
a7c7e0bd2057acf8066d796e53f6ea1a77be803e
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/threshold.py
kakila/networkx
a7c7e0bd2057acf8066d796e53f6ea1a77be803e
[ "BSD-3-Clause" ]
null
null
null
""" Threshold Graphs - Creation, manipulation and identification. """ __author__ = """Aric Hagberg (hagberg@lanl.gov)\nPieter Swart (swart@lanl.gov)\nDan Schult (dschult@colgate.edu)""" # Copyright (C) 2004-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@la...
31.894621
115
0.608033
87e9c24c1b9dd8a0d152176d1baaf2d24870446a
4,910
py
Python
cogs/wikiScrape.py
LastAeon77/LibraryOfRuinaBot
87bbec4a796b6973a975e6eee3c2042754d8ae67
[ "MIT" ]
1
2020-08-26T12:16:22.000Z
2020-08-26T12:16:22.000Z
cogs/wikiScrape.py
LastAeon77/LibraryOfRuinaBot
87bbec4a796b6973a975e6eee3c2042754d8ae67
[ "MIT" ]
null
null
null
cogs/wikiScrape.py
LastAeon77/LibraryOfRuinaBot
87bbec4a796b6973a975e6eee3c2042754d8ae67
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import discord from discord.ext import commands import pandas as pd class LibraryScrape: def __init__(self, searchTerm): df = pd.read_csv("./data/wiki.csv") row = df.loc[df["SearchTerms"].str.lower() == searchTerm.lower()] self.searchType = row...
28.71345
83
0.569654
4472399a5142731d50df281c0363aab60b7b92fe
404
py
Python
baselines/deepq/__init__.py
qwertyanonym789/anonym_code
d939b907badabbb01759a3677a0605194564ee96
[ "MIT" ]
282
2018-06-20T23:00:01.000Z
2022-03-30T06:25:17.000Z
baselines/deepq/__init__.py
qwertyanonym789/anonym_code
d939b907badabbb01759a3677a0605194564ee96
[ "MIT" ]
10
2019-03-25T08:19:51.000Z
2021-11-22T12:25:22.000Z
baselines/deepq/__init__.py
qwertyanonym789/anonym_code
d939b907badabbb01759a3677a0605194564ee96
[ "MIT" ]
106
2018-06-20T23:06:40.000Z
2022-03-03T05:04:03.000Z
from baselines.deepq import models # noqa from baselines.deepq.build_graph import build_act, build_train # noqa from baselines.deepq.simple import learn, load # noqa from baselines.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa def wrap_atari_dqn(env): from baselines.common.atari_wrapp...
50.5
87
0.816832
f4cf823a11daf8fa4dbfb33f871bd4f608bd0841
2,052
py
Python
bindings/python/examples/return_region.py
mmccarty/legion
30e00fa6016527c4cf60025a461fb7865f8def6b
[ "Apache-2.0" ]
555
2015-01-19T07:50:27.000Z
2022-03-22T11:35:48.000Z
bindings/python/examples/return_region.py
mmccarty/legion
30e00fa6016527c4cf60025a461fb7865f8def6b
[ "Apache-2.0" ]
1,157
2015-01-07T18:34:23.000Z
2022-03-31T19:45:27.000Z
bindings/python/examples/return_region.py
mmccarty/legion
30e00fa6016527c4cf60025a461fb7865f8def6b
[ "Apache-2.0" ]
145
2015-02-03T02:31:42.000Z
2022-02-28T12:03:51.000Z
#!/usr/bin/env python3 # Copyright 2021 Stanford University # # 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...
27
74
0.681287
795af779c8632aff242bcdccdb44123e7a86ed56
14,133
py
Python
tests/test_minimalism.py
georgesdimitrov/arvo
86d33afc3f45d1f2e6f22aded8c2e2b12bc5db7d
[ "MIT" ]
11
2021-02-24T20:05:24.000Z
2022-03-13T14:27:04.000Z
tests/test_minimalism.py
georgesdimitrov/arvo
86d33afc3f45d1f2e6f22aded8c2e2b12bc5db7d
[ "MIT" ]
null
null
null
tests/test_minimalism.py
georgesdimitrov/arvo
86d33afc3f45d1f2e6f22aded8c2e2b12bc5db7d
[ "MIT" ]
3
2021-09-24T02:26:16.000Z
2022-03-22T12:34:36.000Z
import pytest from music21 import converter from arvo import minimalism from arvo import sequences @pytest.fixture def example_stream(): s = converter.parse("tinyNotation: C D E F G A B c d e f g") return s # Additive Process Tests def test_additive_process(example_stream): result = minimalism.additiv...
25.93211
88
0.51355
92ddd9021e3080cae79d3a084d3079595f9d0f28
2,236
py
Python
drf_spectacular/types.py
Mopsan/drf-spectacular
5d1280c29994793be517b443fd5d902525c6ab3e
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/types.py
Mopsan/drf-spectacular
5d1280c29994793be517b443fd5d902525c6ab3e
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/types.py
Mopsan/drf-spectacular
5d1280c29994793be517b443fd5d902525c6ab3e
[ "BSD-3-Clause" ]
null
null
null
import enum from datetime import datetime, date from decimal import Decimal from uuid import UUID class OpenApiTypes(enum.Enum): """ Basic types known to the OpenApi specification or at least common format extension of it. - Use BYTE for base64 encoded data wrapped in a string - Use BINARY for ra...
32.405797
72
0.636852
d34f9f5fc37012d32625baa62f9b895061d2172d
2,696
py
Python
tbx/core/migrations/0015_auto_20160218_1201.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
103
2015-02-24T17:58:21.000Z
2022-03-23T08:08:58.000Z
tbx/core/migrations/0015_auto_20160218_1201.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
145
2015-01-13T17:13:43.000Z
2022-03-29T12:56:20.000Z
tbx/core/migrations/0015_auto_20160218_1201.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
57
2015-01-03T12:00:37.000Z
2022-02-09T13:11:30.000Z
# -*- coding: utf-8 -*- from django.db import models, migrations import wagtail.images.models import django.db.models.deletion from django.conf import settings import taggit.managers class Migration(migrations.Migration): dependencies = [ ("torchbox", "0014_workpage_show_in_play_menu"), ] oper...
30.988506
77
0.546365
c7c86252b8187032ffab0bbff534cb8f55761934
12,250
py
Python
thirdweb/core/classes/marketplace_direct.py
nftlabs/nftlabs-sdk-python
ea533142dc0881872b347cd8ce635dc0bfff3153
[ "Apache-2.0" ]
30
2021-10-31T13:17:58.000Z
2022-02-04T13:41:13.000Z
thirdweb/core/classes/marketplace_direct.py
nftlabs/nftlabs-sdk-python
ea533142dc0881872b347cd8ce635dc0bfff3153
[ "Apache-2.0" ]
36
2021-11-03T20:30:38.000Z
2022-02-14T10:15:40.000Z
thirdweb/core/classes/marketplace_direct.py
nftlabs/nftlabs-sdk-python
ea533142dc0881872b347cd8ce635dc0bfff3153
[ "Apache-2.0" ]
10
2021-11-10T19:59:41.000Z
2022-01-21T21:26:55.000Z
from re import M from typing import Any, Dict, Optional, cast from eth_utils import is_address from thirdweb.abi import Marketplace from thirdweb.abi import IERC165 from thirdweb.abi.ierc1155 import IERC1155 from thirdweb.abi.ierc721 import IERC721 from thirdweb.abi.marketplace import IMarketplaceListingParameters fro...
33.378747
112
0.627347
174f5f45696778188a3c2256a0cf562a5968cb49
18
py
Python
.venv/lib/python3.8/site-packages/nbclient/_version.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
6
2019-01-23T03:51:31.000Z
2021-02-15T07:54:39.000Z
.venv/lib/python3.8/site-packages/nbclient/_version.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
52
2019-01-23T10:10:30.000Z
2021-06-27T10:23:10.000Z
.venv/lib/python3.8/site-packages/nbclient/_version.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
7
2019-01-23T10:06:03.000Z
2020-10-29T18:38:37.000Z
version = '0.5.4'
9
17
0.555556
01176a04b19fd37b8ba708957728e250140875bd
2,971
py
Python
src/bioregistry/schema/constants.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
src/bioregistry/schema/constants.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
src/bioregistry/schema/constants.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Schema constants.""" import rdflib.namespace __all__ = [ 'bioregistry_schema_terms', # Namespaces 'bioregistry_collection', 'bioregistry_resource', 'bioregistry_metaresource', 'bioregistry_schema', 'orcid', ] bioregistry_schema_terms = { 'Resource': "A type...
57.134615
117
0.705486
711581c102a78a817dafd2e61356974155dab7f3
1,712
py
Python
app/core/migrations/0001_initial.py
mxuanvan02/recipe-app-api
f037e5650cbf97a583d6654e035baa518328176e
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
mxuanvan02/recipe-app-api
f037e5650cbf97a583d6654e035baa518328176e
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
mxuanvan02/recipe-app-api
f037e5650cbf97a583d6654e035baa518328176e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-23 16:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.352941
266
0.639603
cc75956a5994bcbc5e2a64fda1299084eca1951b
20,297
py
Python
bop_toolkit_lib/renderer_py.py
Alex-B5/bop_toolkit_ab
a9fc94c68a84a0866b88169321048478763900ca
[ "MIT" ]
null
null
null
bop_toolkit_lib/renderer_py.py
Alex-B5/bop_toolkit_ab
a9fc94c68a84a0866b88169321048478763900ca
[ "MIT" ]
null
null
null
bop_toolkit_lib/renderer_py.py
Alex-B5/bop_toolkit_ab
a9fc94c68a84a0866b88169321048478763900ca
[ "MIT" ]
null
null
null
# Author: Tomas Hodan (hodantom@cmp.felk.cvut.cz) # Center for Machine Perception, Czech Technical University in Prague """A Python based renderer.""" import os import numpy as np from glumpy import app, gloo, gl from bop_toolkit_lib import inout from bop_toolkit_lib import misc from bop_toolkit_lib import renderer ...
34.227656
104
0.663793
f84aae3e00c7ffcc0d05092565deb86e680e3987
7,552
py
Python
rplugin/python3/lfx/main.py
dcampos/nvim-ulf
9b70096bf04133a33f09691b1ef1ac89f8f29a85
[ "MIT" ]
2
2020-10-15T09:34:53.000Z
2020-10-26T10:31:48.000Z
rplugin/python3/lfx/main.py
dcampos/nvim-ulf
9b70096bf04133a33f09691b1ef1ac89f8f29a85
[ "MIT" ]
null
null
null
rplugin/python3/lfx/main.py
dcampos/nvim-ulf
9b70096bf04133a33f09691b1ef1ac89f8f29a85
[ "MIT" ]
1
2020-10-15T09:35:05.000Z
2020-10-15T09:35:05.000Z
#!/usr/bin/env python3 from core.types import ClientConfig, Settings from core.sessions import create_session from core.protocol import WorkspaceFolder from core.sessions import Session from core.protocol import Request, Notification from core.url import filename_to_uri from core.logging import set_debug_logging, set_...
25.687075
90
0.620895
a1d0245a8cca7577ca292fa843f885bd44bba2c6
4,437
py
Python
gdmtl/datasets/assembler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/assembler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/assembler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
1
2022-02-26T00:49:03.000Z
2022-02-26T00:49:03.000Z
from __future__ import annotations from itertools import zip_longest from typing import Dict, Generic, List, Optional, Sequence, TypeVar import torch from irtools.pad import pad_batch from transformers import PreTrainedTokenizer T = TypeVar("T", str, List[int]) class Assembler(Generic[T]): """Assemble pre-toke...
38.921053
92
0.626549
21b62ee9ac048a021f53d66d14707f3bf6649f00
38,120
py
Python
api/data/constants/essence.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
1
2021-06-15T07:31:13.000Z
2021-06-15T07:31:13.000Z
api/data/constants/essence.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
1
2021-06-01T10:14:32.000Z
2021-06-02T10:54:12.000Z
api/data/constants/essence.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
2
2021-06-01T10:59:15.000Z
2021-06-03T18:29:36.000Z
ESSENCE_DICT = { "SOUL_WHIP": { "type": "Wither", "dungeonize": 300, "1": 200, "2": 300, "3": 400, "4": 550, "5": 750 }, "JERRY_STAFF": { "type": "Wither", "dungeonize": 0, "1": 5, "2": 10, "3": 25, "4": ...
18.649706
36
0.31393
fe2c29bc84b8d2fcc529fc29593ac37f259fbed7
13
py
Python
deplytils/__init__.py
joshuahaertel/putils
cd467560b4e97b1caee9ee2111a0748021744b07
[ "MIT" ]
null
null
null
deplytils/__init__.py
joshuahaertel/putils
cd467560b4e97b1caee9ee2111a0748021744b07
[ "MIT" ]
null
null
null
deplytils/__init__.py
joshuahaertel/putils
cd467560b4e97b1caee9ee2111a0748021744b07
[ "MIT" ]
null
null
null
"""putils"""
6.5
12
0.461538
e23183ddba3187ac893b4f19cac86853f913ef79
929
py
Python
run/wordsub_task3.py
osmanbaskaya/semeval14-task3
2d440cadd701de3cbff3a6be630157d3ade05176
[ "MIT" ]
1
2015-02-03T20:22:33.000Z
2015-02-03T20:22:33.000Z
run/wordsub_task3.py
osmanbaskaya/semeval14-task3
2d440cadd701de3cbff3a6be630157d3ade05176
[ "MIT" ]
null
null
null
run/wordsub_task3.py
osmanbaskaya/semeval14-task3
2d440cadd701de3cbff3a6be630157d3ade05176
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- __author__ = "Osman Baskaya" import sys import random from nltk.corpus import stopwords initial = sys.argv[1] # L or R n = int(sys.argv[2]) # number of substitutes s = int(sys.argv[3]) # seed random.seed(s) stop = set(stopwords.words('english')) map(stop.add, "lrb rrb r...
22.658537
89
0.488698
8f7cba65e894c39ecbec2f6660cb8c6f83b646b2
4,814
py
Python
src/main.py
DickKemp/Blockus
e720ce5a50e001c9f0316adc16c30b603ba92c9b
[ "MIT" ]
null
null
null
src/main.py
DickKemp/Blockus
e720ce5a50e001c9f0316adc16c30b603ba92c9b
[ "MIT" ]
1
2022-02-08T03:29:52.000Z
2022-02-08T03:29:52.000Z
src/main.py
DickKemp/Blockus
e720ce5a50e001c9f0316adc16c30b603ba92c9b
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Set from blokus.blokus import Blok, OverlapException, UnequalEdgesException from blokus.canvas import Canvas, CompositeShape, PolygonShape, Style, Box from blokus.point import Point import math import time def gen_next_level(levelset, b1, is_symmetric=False) -> Set...
38.822581
120
0.582052
eab18eb9b090b2f98580b0991568c0cffa072c0a
2,366
py
Python
tightai/utils.py
tightai/tightai
3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6
[ "Apache-2.0" ]
1
2020-09-13T08:10:59.000Z
2020-09-13T08:10:59.000Z
tightai/utils.py
tightai/tightai
3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6
[ "Apache-2.0" ]
1
2022-02-26T08:32:58.000Z
2022-02-26T08:32:58.000Z
tightai/utils.py
tightai/tightai
3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 10_utils.ipynb (unless otherwise specified). __all__ = ['resolve_path', 'print_dict', 'sort_by_key', 'sec_to_hours', 'to_datetime', 'format_date'] # Cell import pathlib # Cell def resolve_path(path): return pathlib.Path(path).resolve() # Cell def print_dict(item_dict)...
27.195402
129
0.591293
e18594963a3614f54e2a9e22384bd35c698602e6
8,741
py
Python
expandseq/__main__.py
jrowellfx/expandSeq
c5f5677d684fa8ba7a4e10b1346aaaa9a32e0cdc
[ "BSD-3-Clause" ]
null
null
null
expandseq/__main__.py
jrowellfx/expandSeq
c5f5677d684fa8ba7a4e10b1346aaaa9a32e0cdc
[ "BSD-3-Clause" ]
null
null
null
expandseq/__main__.py
jrowellfx/expandSeq
c5f5677d684fa8ba7a4e10b1346aaaa9a32e0cdc
[ "BSD-3-Clause" ]
null
null
null
# 3-Clause BSD License # # Copyright (c) 2008-2021, James Philip Rowell, # Alpha Eleven Incorporated # www.alpha-eleven.com # 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. Redistribut...
39.731818
120
0.642604
2172ebd6a9e6e15fb223e8b00db7841c94c9b137
12,631
py
Python
CIS/command.py
charlesfoster/covid-illumina-snakemake
fa70f169259c8a0037e83343a3b9afcd1c2f8285
[ "MIT" ]
1
2022-03-08T00:41:20.000Z
2022-03-08T00:41:20.000Z
CIS/command.py
charlesfoster/covid-illumina-snakemake
fa70f169259c8a0037e83343a3b9afcd1c2f8285
[ "MIT" ]
null
null
null
CIS/command.py
charlesfoster/covid-illumina-snakemake
fa70f169259c8a0037e83343a3b9afcd1c2f8285
[ "MIT" ]
1
2021-11-11T04:50:24.000Z
2021-11-11T04:50:24.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 3 15:57:54 2021 @author: cfos """ from CIS import __version__ import os import snakemake import argparse import sys import shutil import psutil from datetime import date from psutil import virtual_memory from psutil._common import bytes2human this...
31.187654
206
0.534399
69dfc38cc3c167d88b7cc364be4d540176eff86c
1,735
py
Python
scripts/create_agent.py
c-keil/SE2-equivariant-grasp-learning
f32230e45c6a7bc1693df9b27d1084d98347477e
[ "MIT" ]
null
null
null
scripts/create_agent.py
c-keil/SE2-equivariant-grasp-learning
f32230e45c6a7bc1693df9b27d1084d98347477e
[ "MIT" ]
null
null
null
scripts/create_agent.py
c-keil/SE2-equivariant-grasp-learning
f32230e45c6a7bc1693df9b27d1084d98347477e
[ "MIT" ]
1
2022-03-14T20:08:18.000Z
2022-03-14T20:08:18.000Z
from agents.agents_3d.dqn_3d_asr import DQN3DASR from utils.parameters import * from networks.equivariant_models_refactor import EquResUReg, EquShiftQ2ResN def createAgent(): """ Creates the DQN agent with equivariant q1, q2 networks """ if half_rotation: rz_range = (0, (num_rotations - 1) * ...
41.309524
109
0.692795
bdbf53c48b90b3b7aee15ced3764bbf92ac1e2a1
8,849
py
Python
restoredb.py
cecton/restoredb.py
fbd97293112b47ecc39204a7845664c9a0981fd1
[ "MIT" ]
null
null
null
restoredb.py
cecton/restoredb.py
fbd97293112b47ecc39204a7845664c9a0981fd1
[ "MIT" ]
null
null
null
restoredb.py
cecton/restoredb.py
fbd97293112b47ecc39204a7845664c9a0981fd1
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # restoredb # # This is a small example on how to use StreamDecompressor to make a # generic pg_restore-like command. # # TL;DR # # ~/$ restoredb -d dbname my_dump.pgdump.xz # # will restore a pgdump compressed in xz # # ~/$ restoredb -d dbname my_dump.sql.bz2 ...
31.491103
78
0.607413
da809a59ca07e1ca2608390106867d362000110b
7,637
py
Python
lm_pickers/maxcover.py
dulek/alt-tester
d3925e28b2b01ca25706546646b921de90fcd5c8
[ "MIT" ]
null
null
null
lm_pickers/maxcover.py
dulek/alt-tester
d3925e28b2b01ca25706546646b921de90fcd5c8
[ "MIT" ]
null
null
null
lm_pickers/maxcover.py
dulek/alt-tester
d3925e28b2b01ca25706546646b921de90fcd5c8
[ "MIT" ]
null
null
null
from collections import defaultdict import math import random from numpy import random as random_np from colorama import Fore from lib import logger from lib.utils import all_dijkstra_tree, get_lower_bound, get_lm_distances from lm_picker import LMPicker LOG = logger.getLogger() class MaxcoverPicker(LMPicker): ...
38.376884
80
0.47846
b5f1deaa87bc7a0aea8c3b5ed3c4fd851cedd627
1,554
py
Python
people/migrations/0001_initial.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
null
null
null
people/migrations/0001_initial.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
null
null
null
people/migrations/0001_initial.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.db.models.deletion import wagtail.wagtailcore.blocks from django.db import migrations, models import people.fields class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0006_add_verbose_names'), (...
40.894737
161
0.616474
c29b5951c1d572fdf7110582de9e146296eb2433
8,477
py
Python
tensorflow/compiler/plugin/poplar/tests/topk_onehot_test.py
DebeshJha/tensorflow-1
2b5a225c49d25273532d11c424d37ce394d7579a
[ "Apache-2.0" ]
2
2021-03-08T23:32:06.000Z
2022-01-13T03:43:49.000Z
tensorflow/compiler/plugin/poplar/tests/topk_onehot_test.py
DebeshJha/tensorflow-1
2b5a225c49d25273532d11c424d37ce394d7579a
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/plugin/poplar/tests/topk_onehot_test.py
DebeshJha/tensorflow-1
2b5a225c49d25273532d11c424d37ce394d7579a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. 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 by applica...
29.848592
114
0.518226
402ad993dfdf629ab07b3402f88defdf78811af5
8,801
py
Python
third_party/gstreamer/scripts/gst-plot-timeline.py
isabella232/aistreams
209f4385425405676a581a749bb915e257dbc1c1
[ "Apache-2.0" ]
6
2020-09-22T18:07:15.000Z
2021-10-21T01:34:04.000Z
third_party/gstreamer/scripts/gst-plot-timeline.py
isabella232/aistreams
209f4385425405676a581a749bb915e257dbc1c1
[ "Apache-2.0" ]
2
2020-11-10T13:17:39.000Z
2022-03-30T11:22:14.000Z
third_party/gstreamer/scripts/gst-plot-timeline.py
isabella232/aistreams
209f4385425405676a581a749bb915e257dbc1c1
[ "Apache-2.0" ]
3
2020-09-26T08:40:35.000Z
2021-10-21T01:33:56.000Z
#!/usr/bin/env python # # based on plot-timeline.py by Federico Mena-Quintero <federico at ximian dotcom> # example: # GST_DEBUG_COLOR_MODE=off GST_DEBUG="*:3" gst-launch-1.0 2>debug.log audiotestsrc num-buffers=10 ! audioconvert ! alsasink # gst-plot-timeline.py debug.log --output=debug.png import math import opt...
27.939683
143
0.614021
cee8f76ff69a5353235bde241610ac6aaff7ca27
868
py
Python
src/terra/api_lcd.py
terra-dashboard/staketaxcsv
5793105488bf799c61aee64a45f44e9ae8fef397
[ "MIT" ]
null
null
null
src/terra/api_lcd.py
terra-dashboard/staketaxcsv
5793105488bf799c61aee64a45f44e9ae8fef397
[ "MIT" ]
null
null
null
src/terra/api_lcd.py
terra-dashboard/staketaxcsv
5793105488bf799c61aee64a45f44e9ae8fef397
[ "MIT" ]
null
null
null
""" LCD documentation: * https://lcd.terra.dev/swagger/#/ * https://github.com/terra-money/terra.py/tree/main/terra_sdk/client/lcd/api """ import logging import time from urllib.parse import urlencode import requests from settings_csv import TERRA_LCD_NODE class LcdAPI: session = requests.Session() @clas...
26.30303
77
0.675115
8332b308a368d8b09433ba45a6b56b0e439dcbbc
4,985
py
Python
funtool_ipro_processes/adaptors/sequence_import.py
ActiveLearningLab/funtool-ipro-processes
35547048282d6f39868223fda2da5d3af07af0cf
[ "MIT" ]
null
null
null
funtool_ipro_processes/adaptors/sequence_import.py
ActiveLearningLab/funtool-ipro-processes
35547048282d6f39868223fda2da5d3af07af0cf
[ "MIT" ]
null
null
null
funtool_ipro_processes/adaptors/sequence_import.py
ActiveLearningLab/funtool-ipro-processes
35547048282d6f39868223fda2da5d3af07af0cf
[ "MIT" ]
null
null
null
import funtool.adaptor import funtool.state import funtool.state_collection import pymysql import pymysql.cursors import yaml import os import datetime import math def sequence_import(adaptor, state_collection, overriding_parameters=None, logging=None): adaptor_parameters= funtool.adaptor.get_adaptor_parameters...
45.318182
139
0.693079
49280a106f4820635fa50743e1dfa0b1cd09eac3
4,388
py
Python
rax/_src/types.py
google/rax
d6370d574246db9fb0566317f7cac8cd331526d7
[ "Apache-2.0" ]
19
2022-01-25T12:37:51.000Z
2022-03-30T17:12:45.000Z
rax/_src/types.py
google/rax
d6370d574246db9fb0566317f7cac8cd331526d7
[ "Apache-2.0" ]
1
2022-02-08T23:02:42.000Z
2022-02-08T23:02:42.000Z
rax/_src/types.py
google/rax
d6370d574246db9fb0566317f7cac8cd331526d7
[ "Apache-2.0" ]
null
null
null
# 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, ...
31.797101
80
0.670693
4a13c6a1a7547673d9cd98ad4bb31e9ead66b1ac
4,126
py
Python
benchmark/startQiskit_noisy1054.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1054.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1054.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=47 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
31.257576
82
0.618032
ab4d33eb50262c8bb65e58d3388be65b6e89f82b
2,221
py
Python
fiesta/fiesta/nuFlux.py
rodrigruiz/super-duper-fiesta
f09de41f6016fdef0790b783fba9111961e5e33c
[ "MIT" ]
null
null
null
fiesta/fiesta/nuFlux.py
rodrigruiz/super-duper-fiesta
f09de41f6016fdef0790b783fba9111961e5e33c
[ "MIT" ]
null
null
null
fiesta/fiesta/nuFlux.py
rodrigruiz/super-duper-fiesta
f09de41f6016fdef0790b783fba9111961e5e33c
[ "MIT" ]
null
null
null
import numpy as np def read_flux_file(f): """ Read atmospheric neutrino fluxes from an asscii file. The file is organised in 5 columns as follows: column1 -- log10(E/GeV) column2 -- F(nu_e)/(s^-1*m^-2) column3 -- F(nu_mu)/(s^-1*m^-2) column4 -- F(nu_e_bar)/(s^-1*m^-2) column5 -- F(nu_m...
32.188406
158
0.620891
c3c86d37e2301b330cfa9c55a6dc58ca4716592f
74
py
Python
samples/run_bbands.py
tibkiss/pyalgotrade
4979315281c362dcba2e6d53da27dc4a7377ebec
[ "Apache-2.0" ]
2
2015-04-03T10:29:14.000Z
2017-01-21T05:55:00.000Z
samples/run_bbands.py
tibkiss/pyalgotrade
4979315281c362dcba2e6d53da27dc4a7377ebec
[ "Apache-2.0" ]
null
null
null
samples/run_bbands.py
tibkiss/pyalgotrade
4979315281c362dcba2e6d53da27dc4a7377ebec
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append('samples') import bbands bbands.main(False)
9.25
26
0.756757
de36df902fc4d98c4ba9fbbcd0cb485250ed432e
1,616
py
Python
mindspore/ops/_op_impl/tbe/div.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
mindspore/ops/_op_impl/tbe/div.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
mindspore/ops/_op_impl/tbe/div.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
38.47619
79
0.679455
c410285b244864f2308d26b162b393ab2a29a959
359
py
Python
pythonClass.py
AlisonGurgel/pythonNotes
963f6c9a7d24471b37ec7f27c4337a8d7540ca1e
[ "CC0-1.0" ]
null
null
null
pythonClass.py
AlisonGurgel/pythonNotes
963f6c9a7d24471b37ec7f27c4337a8d7540ca1e
[ "CC0-1.0" ]
null
null
null
pythonClass.py
AlisonGurgel/pythonNotes
963f6c9a7d24471b37ec7f27c4337a8d7540ca1e
[ "CC0-1.0" ]
null
null
null
class Car: def __init__(this, n, y): this.carName = n this.carYear = y this.attFunc = print(this.carName, "\_/", this.carYear) def getYear(this): print(this.carYear) def start(that, km): print(f"{that.carName} start moving at {km}kmh") c1 = Car("BMW", 1990)...
19.944444
63
0.573816
241d9ded8a5c7ad9e75d56166fa6eb1fa3243de0
5,302
py
Python
scripts/testing/test_model_load.py
latika-bhurani/fk-visual-search
6061d75b00163774135cf9297f44b4bbcc6b62df
[ "Apache-2.0" ]
1
2018-12-19T17:46:58.000Z
2018-12-19T17:46:58.000Z
scripts/testing/test_model_load.py
latika-bhurani/fk-visual-search
6061d75b00163774135cf9297f44b4bbcc6b62df
[ "Apache-2.0" ]
null
null
null
scripts/testing/test_model_load.py
latika-bhurani/fk-visual-search
6061d75b00163774135cf9297f44b4bbcc6b62df
[ "Apache-2.0" ]
null
null
null
import base64 # import h import numpy as np import io from PIL import Image import keras from keras.layers.convolutional import Conv2D from keras.layers.convolutional import MaxPooling2D from keras.layers.core import Dense from keras.layers import BatchNormalization from keras.applications.vgg16 import VGG16 ...
47.339286
207
0.620709
d91fca0120368a2cb04a9679818504a34b2207b2
2,101
py
Python
examples/dice.py
jvanstraten/openql-ci-test
a8ff9c8c30991ff4ac81551a698a7e1c40471910
[ "Apache-2.0" ]
1
2021-11-10T11:45:57.000Z
2021-11-10T11:45:57.000Z
examples/dice.py
jvanstraten/openql-ci-test
a8ff9c8c30991ff4ac81551a698a7e1c40471910
[ "Apache-2.0" ]
6
2020-03-26T16:59:23.000Z
2021-04-30T07:51:12.000Z
examples/dice.py
jvanstraten/openql-ci-test
a8ff9c8c30991ff4ac81551a698a7e1c40471910
[ "Apache-2.0" ]
1
2022-02-21T22:07:04.000Z
2022-02-21T22:07:04.000Z
from openql import openql as ql import qxelarator from functools import reduce import os import matplotlib.pyplot as plt curdir = os.path.dirname(__file__) output_dir = os.path.join(curdir, 'test_output') ql.set_option('output_dir', output_dir) ql.set_option('write_qasm_files', 'yes') ql.set_option('scheduler', 'ASA...
28.391892
74
0.671109
21686540e82d4ecf18dc58d9ec797496b29cc5d7
539,374
py
Python
google/ads/google_ads/v3/services/enums.py
xflesym/google-ads-python
11abbea977345d3352b0c1efcea6f4312b25df30
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/services/enums.py
xflesym/google-ads-python
11abbea977345d3352b0c1efcea6f4312b25df30
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/services/enums.py
xflesym/google-ads-python
11abbea977345d3352b0c1efcea6f4312b25df30
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
46.501767
166
0.687753
a1297148dba1466ea88f7c774f54616096def0ec
90
py
Python
DataAnalysis/ProcessingTools/Queues/__init__.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
DataAnalysis/ProcessingTools/Queues/__init__.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
6
2020-03-24T17:34:24.000Z
2021-12-13T20:14:34.000Z
DataAnalysis/ProcessingTools/Queues/__init__.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
""" Created by adam on 5/4/18 """ __author__ = 'adam' if __name__ == '__main__': pass
12.857143
26
0.611111
11e0852edce6d92dee393e4fb99e5f1aeb16e80a
476
py
Python
packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="borderwidth", parent_name="layout.updatemenu", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, ...
31.733333
82
0.64916
ad5f43ff5c201e5110a5d48df8de10b5ba4570a3
9,924
py
Python
bui/layout/radio.py
vincent-lg/bui
a4a783fea2269190fb69c6491a4bc91753ccc580
[ "BSD-3-Clause" ]
3
2019-07-28T17:15:56.000Z
2020-04-12T14:05:12.000Z
bui/layout/radio.py
vincent-lg/bui
a4a783fea2269190fb69c6491a4bc91753ccc580
[ "BSD-3-Clause" ]
null
null
null
bui/layout/radio.py
vincent-lg/bui
a4a783fea2269190fb69c6491a4bc91753ccc580
[ "BSD-3-Clause" ]
null
null
null
"""Radio button object represented in layout.""" from bui.layout.attr import Attr from bui.layout.component import Component class RadioButton(Component): """ Create a radio button with multiple choices. A radio button is represented by multiple, mutually-exclusive buttons. Each button in the group ...
52.787234
88
0.366385
9324713e71eeec4389cfc11ae3d9fbbc0e32cb7a
2,694
py
Python
setup.py
MelkyFB-zz/home-assistant
81453e9508d97270674415f0b197c69a60355e51
[ "Apache-2.0" ]
1
2018-10-24T02:43:48.000Z
2018-10-24T02:43:48.000Z
setup.py
hassbeat/home-assistant
a08e5efe53b3d99fba3c6d46f37e1a8572a39278
[ "Apache-2.0" ]
null
null
null
setup.py
hassbeat/home-assistant
a08e5efe53b3d99fba3c6d46f37e1a8572a39278
[ "Apache-2.0" ]
1
2019-02-07T11:50:04.000Z
2019-02-07T11:50:04.000Z
#!/usr/bin/env python3 """Home Assistant setup script.""" from setuptools import setup, find_packages import homeassistant.const as hass_const PROJECT_NAME = 'Home Assistant' PROJECT_PACKAGE_NAME = 'homeassistant' PROJECT_LICENSE = 'Apache License 2.0' PROJECT_AUTHOR = 'The Home Assistant Authors' PROJECT_COPYRIGHT =...
31.694118
77
0.660356
8b8e343ce5e13ffd2c48aaed6fca2f02fa249892
6,835
py
Python
render/BitcoinTradingGraph.py
botemple/Bitcoin-Trader-RL
0da28ccf4fed4bdfcce7c77de2c1c8d04cad7477
[ "MIT" ]
10
2019-09-08T12:44:51.000Z
2021-07-19T09:05:21.000Z
render/BitcoinTradingGraph.py
botemple/Bitcoin-Trader-RL
0da28ccf4fed4bdfcce7c77de2c1c8d04cad7477
[ "MIT" ]
null
null
null
render/BitcoinTradingGraph.py
botemple/Bitcoin-Trader-RL
0da28ccf4fed4bdfcce7c77de2c1c8d04cad7477
[ "MIT" ]
2
2021-03-25T08:43:16.000Z
2021-04-20T12:53:40.000Z
import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib import style from datetime import datetime # finance module is no longer part of matplotlib # see: https://github.com/matplotlib/mpl_finance from mpl_finance import candlestick_ochl as candlestick style.use('ggplot') VOLUME_CHART_...
40.205882
99
0.573958
84ede800b0b9cca1d7bdc1d6a25b37fee3de973b
2,097
py
Python
var/spack/repos/builtin/packages/biobambam2/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/biobambam2/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/biobambam2/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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 Biobambam2(AutotoolsPackage): """Tools for early stage alignment file processing""" h...
41.94
154
0.67525
5734e017dc0541fc25d120148167be91c2166147
548
py
Python
utils/print_rejected_outlinks.py
truxonjm/BrozzlerAdmin
511fe3f07282cb9499e97877e62d7418cb9c1def
[ "Apache-2.0" ]
2
2019-12-23T23:33:46.000Z
2020-11-14T00:52:15.000Z
utils/print_rejected_outlinks.py
truxonjm/BrozzlerAdmin
511fe3f07282cb9499e97877e62d7418cb9c1def
[ "Apache-2.0" ]
1
2017-10-20T13:28:50.000Z
2017-10-20T17:13:22.000Z
utils/print_rejected_outlinks.py
truxonjm/BrozzlerAdmin
511fe3f07282cb9499e97877e62d7418cb9c1def
[ "Apache-2.0" ]
1
2021-06-12T11:40:02.000Z
2021-06-12T11:40:02.000Z
import doublethink from argparse import ArgumentParser parser = ArgumentParser(description="Utility to print all outlinks from a job.") parser.add_argument('job_id',help="job_id we want to print the rejected outlinks") parser.add_argument('--rethinkdb_server', default="localhost:28015", help="RethinkDB server") args =...
36.533333
93
0.75
5003b6fb507bbca926f169be33e5ede4a2a36812
527
py
Python
index/models.py
GadirMirzayev/Django-E-commerce
0ca289fdf584b29636a8fc9416319defad0be5a5
[ "MIT" ]
1
2021-08-20T07:44:39.000Z
2021-08-20T07:44:39.000Z
index/models.py
GadirMirzayev/Django-E-commerce
0ca289fdf584b29636a8fc9416319defad0be5a5
[ "MIT" ]
null
null
null
index/models.py
GadirMirzayev/Django-E-commerce
0ca289fdf584b29636a8fc9416319defad0be5a5
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Subscriber(models.Model): # information's email = models.EmailField('E-mail', max_length=63) # moderation's is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.Date...
26.35
56
0.688805
e6cd7b5df9e506ba7a3e77fc3e6763aa18802799
53
py
Python
SadapWA.py
McybearX/GameTTs
d62b675394833038cb7df3992af0b3de08ec4fa6
[ "Apache-2.0" ]
null
null
null
SadapWA.py
McybearX/GameTTs
d62b675394833038cb7df3992af0b3de08ec4fa6
[ "Apache-2.0" ]
null
null
null
SadapWA.py
McybearX/GameTTs
d62b675394833038cb7df3992af0b3de08ec4fa6
[ "Apache-2.0" ]
null
null
null
os.system("xdg-open https://youtube.com/c/MBEWLEGS")
26.5
52
0.735849
96f1b94a0f4a437fb506f1c3321640141bbdaaa1
6,434
py
Python
openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py
aristanetworks/horizon
6b4ba5194d46360bf1a436b6f9531facfbf5084a
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py
aristanetworks/horizon
6b4ba5194d46360bf1a436b6f9531facfbf5084a
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py
aristanetworks/horizon
6b4ba5194d46360bf1a436b6f9531facfbf5084a
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Nebula, Inc. # Copyright (c) 2012 X.commerce, a business unit of eBay 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...
36.146067
78
0.632577
220aad9bd6862c3b0e8bcaa6d4f340334793916b
17,723
py
Python
DPGAnalysis/SiStripTools/test/manyfederrors_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DPGAnalysis/SiStripTools/test/manyfederrors_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DPGAnalysis/SiStripTools/test/manyfederrors_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing process = cms.Process("ManyFEDErrors") #prepare options options = VarParsing.VarParsing("analysis") options.register ('globalTag', "DONOTEXIST", VarParsing.VarParsing.multiplicity.singlet...
58.880399
157
0.680415
21516e9fd09718c5f6e7f9e0328f11d174452960
11,901
py
Python
python/sparkdl/transformers/tf_image.py
arthurtibame/spark-deep-learning
51cc6c030f3c4752c579aa29836666605477fa1d
[ "Apache-2.0" ]
1
2020-06-29T23:45:08.000Z
2020-06-29T23:45:08.000Z
python/sparkdl/transformers/tf_image.py
diprup/spark-deep-learning
51cc6c030f3c4752c579aa29836666605477fa1d
[ "Apache-2.0" ]
null
null
null
python/sparkdl/transformers/tf_image.py
diprup/spark-deep-learning
51cc6c030f3c4752c579aa29836666605477fa1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Databricks, 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 writin...
45.423664
95
0.659188
2e09cfa56b53db6721fbed3306045c7d62615215
2,283
py
Python
felpy/backend/wpg_converters.py
twguest/FELPy
90ed49cc4bddd2188f3284168152d043144ae1fb
[ "Apache-2.0" ]
null
null
null
felpy/backend/wpg_converters.py
twguest/FELPy
90ed49cc4bddd2188f3284168152d043144ae1fb
[ "Apache-2.0" ]
null
null
null
felpy/backend/wpg_converters.py
twguest/FELPy
90ed49cc4bddd2188f3284168152d043144ae1fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from felpy.model.wavefront import Wavefront def complex_to_wpg(arr): ### converter """ converter function to transform complex wavefield into wpg style electric field array :param arr: complex wavefield array [x,y,t] (complex128 type) :returns...
29.269231
105
0.653088
c3ddd993b2b9eb359c85c7ca7ea5971fb33df643
635
py
Python
figures/Dots.py
damirmardanov/figure-generator
1ed7ee6d423f2d7392e95529336b8f2d35ea65fd
[ "MIT" ]
null
null
null
figures/Dots.py
damirmardanov/figure-generator
1ed7ee6d423f2d7392e95529336b8f2d35ea65fd
[ "MIT" ]
null
null
null
figures/Dots.py
damirmardanov/figure-generator
1ed7ee6d423f2d7392e95529336b8f2d35ea65fd
[ "MIT" ]
null
null
null
import numpy.random as rnd import random from matplotlib.patches import Circle from figures.Figure import Figures class DotsBuilder(Figures): @staticmethod def generate(xy, count=0): elements = [] for i in range(count): xy = rnd.uniform(2.8, 7.2, 2) radius...
23.518519
58
0.577953
01ea7f5ec8560871513426399bd579a41dd7e242
1,087
py
Python
SampleEnvSchema142/ArrayByte.py
ScreamingUdder/python-streaming-deserialisation-tools
9410445ca0f517c904745bd211af05cff40dec5d
[ "BSD-2-Clause" ]
null
null
null
SampleEnvSchema142/ArrayByte.py
ScreamingUdder/python-streaming-deserialisation-tools
9410445ca0f517c904745bd211af05cff40dec5d
[ "BSD-2-Clause" ]
null
null
null
SampleEnvSchema142/ArrayByte.py
ScreamingUdder/python-streaming-deserialisation-tools
9410445ca0f517c904745bd211af05cff40dec5d
[ "BSD-2-Clause" ]
null
null
null
# automatically generated, do not modify # namespace: import flatbuffers class ArrayByte(object): __slots__ = ['_tab'] # ArrayByte def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # ArrayByte def Value(self, j): o = flatbuffers.number_types.UOffsetTFlags....
32.939394
135
0.696412
bdd60322cd578ec69ca349f5076338adfba9ad1a
11,624
py
Python
tests/inference/qmhl_loss_test.py
zaqqwerty/qhbm-library
a4886adf91a3e2e2bc6f6b07a6e13ffe8cf0aa2e
[ "Apache-2.0" ]
19
2022-02-17T19:32:36.000Z
2022-03-31T01:07:19.000Z
tests/inference/qmhl_loss_test.py
zaqqwerty/qhbm-library
a4886adf91a3e2e2bc6f6b07a6e13ffe8cf0aa2e
[ "Apache-2.0" ]
37
2022-02-17T17:26:01.000Z
2022-03-31T21:32:16.000Z
tests/inference/qmhl_loss_test.py
zaqqwerty/qhbm-library
a4886adf91a3e2e2bc6f6b07a6e13ffe8cf0aa2e
[ "Apache-2.0" ]
8
2022-02-17T17:26:32.000Z
2022-03-18T12:11:33.000Z
# Copyright 2021 The QHBM Library Authors. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
41.81295
89
0.678768
859b921d912edbaee5dddf15826f6e4ffc5e7355
6,668
py
Python
tests/flytekit/unit/core/test_workflows.py
frsann/flytekit
6c032035563ae645b0b93558b3fe3362080057ea
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/core/test_workflows.py
frsann/flytekit
6c032035563ae645b0b93558b3fe3362080057ea
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/core/test_workflows.py
frsann/flytekit
6c032035563ae645b0b93558b3fe3362080057ea
[ "Apache-2.0" ]
null
null
null
import typing from collections import OrderedDict import pytest from flytekit.common.exceptions.user import FlyteValidationException, FlyteValueException from flytekit.common.translator import get_serializable from flytekit.core import context_manager from flytekit.core.condition import conditional from flytekit.core...
25.745174
110
0.657618
a75c94205ca5f6a9ad5dbf0bd477f45d6852ca87
1,119
py
Python
shoobsblog/users/tests/test_forms.py
mattshoobs/AgileStoryboard
80f14192702330c51b2ff130b25b4bc6d0c326a0
[ "Apache-1.1" ]
null
null
null
shoobsblog/users/tests/test_forms.py
mattshoobs/AgileStoryboard
80f14192702330c51b2ff130b25b4bc6d0c326a0
[ "Apache-1.1" ]
null
null
null
shoobsblog/users/tests/test_forms.py
mattshoobs/AgileStoryboard
80f14192702330c51b2ff130b25b4bc6d0c326a0
[ "Apache-1.1" ]
null
null
null
import pytest from shoobsblog.users.forms import UserCreationForm from shoobsblog.users.tests.factories import UserFactory pytestmark = pytest.mark.django_db class TestUserCreationForm: def test_clean_username(self): # A user with proto_user params does not exist yet. proto_user = UserFactory.bu...
27.292683
59
0.595174
68cf4b5a4056e02ad1b141e38907bfb306a13b0d
328
py
Python
auto_erpnext/config/docs.py
faztp12/auto_erpnext
a38f28cb3c4bae541426bd7375a68d01bb360d66
[ "MIT" ]
2
2020-12-28T16:34:34.000Z
2021-01-15T13:35:44.000Z
auto_erpnext/config/docs.py
faztp12/auto_erpnext
a38f28cb3c4bae541426bd7375a68d01bb360d66
[ "MIT" ]
null
null
null
auto_erpnext/config/docs.py
faztp12/auto_erpnext
a38f28cb3c4bae541426bd7375a68d01bb360d66
[ "MIT" ]
4
2018-12-20T10:50:41.000Z
2020-09-13T16:46:58.000Z
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/auto_erpnext" # docs_base_url = "https://[org_name].github.io/auto_erpnext" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Auto E...
27.333333
68
0.731707
1c3c16f2f9c12a308f80775d111741f371af1209
1,044
py
Python
python/bitcoin_101/bitcoin_client.py
fcracker79/python_bitcoin_101
3af1b1e1b817d9676981f3c6c87d93064ac8febe
[ "MIT" ]
1
2018-09-26T18:10:36.000Z
2018-09-26T18:10:36.000Z
python/bitcoin_101/bitcoin_client.py
fcracker79/python_bitcoin_101
3af1b1e1b817d9676981f3c6c87d93064ac8febe
[ "MIT" ]
null
null
null
python/bitcoin_101/bitcoin_client.py
fcracker79/python_bitcoin_101
3af1b1e1b817d9676981f3c6c87d93064ac8febe
[ "MIT" ]
null
null
null
import base64 from bitcoin_101 import bitjson_dumps, bitjson_loads import requests class BitcoinClient: def __init__(self): btcd_auth_header = b'Basic ' + base64.b64encode(b'bitcoin:qwertyuiop') self.btcd_headers = {'content-type': 'application/json', 'Authorization': btcd_auth_header} def __...
30.705882
99
0.59387
5282bca7fce8729741798cb0dce38a5acd071213
1,220
py
Python
data/youtube/download.py
tagny/iLID
38f5dcae0dc84fd9b78e170748aa38cd8f524c70
[ "MIT" ]
90
2016-02-19T12:37:20.000Z
2022-02-25T19:52:46.000Z
data/youtube/download.py
vyas97/iLID
4d124b76fdbc37fbafd12e860281a4bc3ddf87d9
[ "MIT" ]
7
2017-03-24T04:12:09.000Z
2020-06-16T11:27:54.000Z
data/youtube/download.py
vyas97/iLID
4d124b76fdbc37fbafd12e860281a4bc3ddf87d9
[ "MIT" ]
31
2016-02-01T12:52:51.000Z
2021-08-16T04:27:59.000Z
import yaml import subprocess import os def read_yaml(file_name): with open(file_name, "r") as f: return yaml.load(f) def download(language, source, source_name, source_type): output_path = "{0}/{1}".format(language, source_name) if os.path.exists(output_path): print "skipping {0} {1} because the target...
35.882353
160
0.722131
5631814b4c9c0c56f06fb651305b7cf15ec952b4
2,906
py
Python
tests/test_source_file/test_source_file.py
ethanio12345/OpenMC
3b0c044974c59773dac4e3ce261a87e18fc53de5
[ "MIT" ]
null
null
null
tests/test_source_file/test_source_file.py
ethanio12345/OpenMC
3b0c044974c59773dac4e3ce261a87e18fc53de5
[ "MIT" ]
null
null
null
tests/test_source_file/test_source_file.py
ethanio12345/OpenMC
3b0c044974c59773dac4e3ce261a87e18fc53de5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob import os import sys sys.path.insert(0, os.pardir) from testing_harness import * settings1="""<?xml version="1.0"?> <settings> <state_point batches="10" /> <source_point separate="true" /> <eigenvalue> <batches>10</batches> <inactive>5</inactive> <particles>1000</p...
28.213592
80
0.593255
89749c3e40460646ee17cfadfc9ba17fc593a687
1,977
py
Python
src/Graphing/image_to_plot.py
njanirudh/R-D-HBRS
220777628406366179106069eb9ce211e50e7543
[ "MIT" ]
3
2019-08-27T22:00:56.000Z
2020-04-15T06:31:39.000Z
src/Graphing/image_to_plot.py
njanirudh/R-D-HBRS
220777628406366179106069eb9ce211e50e7543
[ "MIT" ]
1
2019-10-29T13:21:21.000Z
2019-10-29T14:01:28.000Z
src/Graphing/image_to_plot.py
njanirudh/Research-Development-HBRS
220777628406366179106069eb9ce211e50e7543
[ "MIT" ]
null
null
null
from pylab import * from mpl_toolkits.mplot3d import Axes3D from matplotlib.cbook import get_sample_data from matplotlib._png import read_png import matplotlib.pyplot as plt import numpy as np import pandas import pandas as pd import sklearn.preprocessing as preproc fig = plt.figure() ax = fig.add_subplot(111, project...
33.508475
112
0.679312
3b534eaeb07df4e83f6454fec30f2f280d0634c5
1,779
py
Python
modules/m_wolframalpha.py
LunaNyan/Luna_Libertin_Discord_Bot
db7def99602b65b682a128430118e3941aabcd6e
[ "MIT" ]
8
2019-08-17T17:30:10.000Z
2021-07-21T01:59:32.000Z
modules/m_wolframalpha.py
LunaNyan/Luna_Libertin_Discord_Bot
db7def99602b65b682a128430118e3941aabcd6e
[ "MIT" ]
2
2019-07-16T10:01:39.000Z
2019-12-30T11:30:29.000Z
modules/m_wolframalpha.py
LunaNyan/Luna_Libertin_Discord_Bot
db7def99602b65b682a128430118e3941aabcd6e
[ "MIT" ]
3
2019-08-20T22:43:16.000Z
2020-07-13T23:24:08.000Z
import sys, requests, wolframalpha, xmltodict if __name__=="__main__": print("FATAL : Run this bot from right way.") sys.exit(1) client = "" def load(conf): global client client = wolframalpha.Client(conf.get("wolframalpha", "appid")) def wa_calc(query): res = client.query(query) answer = ...
32.345455
110
0.611017
cb7d34d1a1eb767227b03d4c2d5f535f41f883fe
4,143
py
Python
google/bigtable/admin/v2/bigtable-admin-v2-py/google/cloud/bigtable_admin_v2/types/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/bigtable/admin/v2/bigtable-admin-v2-py/google/cloud/bigtable_admin_v2/types/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/bigtable/admin/v2/bigtable-admin-v2-py/google/cloud/bigtable_admin_v2/types/__init__.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...
26.056604
74
0.732078
2b35e5686a7f62feaae4462a96f11f2cebcb570f
323
py
Python
tests/test_lyrics_prediction_file.py
castillogo/lyrics_project
59855bfe91b5a41a68d52540a7ca6a8494a94ded
[ "MIT" ]
null
null
null
tests/test_lyrics_prediction_file.py
castillogo/lyrics_project
59855bfe91b5a41a68d52540a7ca6a8494a94ded
[ "MIT" ]
1
2021-11-15T17:50:49.000Z
2021-11-15T17:50:49.000Z
tests/test_lyrics_prediction_file.py
castillogo/lyrics_project
59855bfe91b5a41a68d52540a7ca6a8494a94ded
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 16 15:59:40 2020 @author: casti """ import pytest from lyrics_prediction_file import print_evaluations Y_TEST = [1, 2, 3, 4, 5, 6, 7, 8, 9] Y_PRED = [1, 2, 3, 4, 5, 6, 7, 8, 9] def test_print_evaluations(): assert print_evaluations(Y_TEST, Y_PRED, 'Randomforest') >...
20.1875
64
0.656347
3227f5ea7b7d29ea7e4a9ac76db7d798389a8570
4,052
py
Python
render/render_depth.py
StefanieStoppel/pcn
71b17791380798d349c18f96514099183d89836e
[ "MIT" ]
9
2021-04-10T07:42:36.000Z
2022-03-27T15:21:38.000Z
render/render_depth.py
StefanieStoppel/pcn
71b17791380798d349c18f96514099183d89836e
[ "MIT" ]
null
null
null
render/render_depth.py
StefanieStoppel/pcn
71b17791380798d349c18f96514099183d89836e
[ "MIT" ]
2
2021-04-21T01:26:31.000Z
2021-05-23T13:31:10.000Z
# Author: Wentao Yuan (wyuan1@cs.cmu.edu) 05/31/2018 import bpy import mathutils import numpy as np import os import sys import time # Usage: blender -b -P render_depth.py [ShapeNet directory] [model list] [output directory] [num scans per model] def random_pose(): angle_x = np.random.uniform() * 2 * np.pi ...
33.213115
113
0.598963
2f2ae01c5dc0c8dc36854cb4c64f4b985bf765eb
783
pyde
Python
mode/examples/Topics/Simulate/MultipleParticleSystems/MultipleParticleSystems.pyde
katnino/processing.py
ff6450a6606908a014ce795340c06c8f6d90023d
[ "Apache-2.0" ]
4
2016-08-09T14:14:36.000Z
2021-12-10T07:51:35.000Z
mode/examples/Topics/Simulate/MultipleParticleSystems/MultipleParticleSystems.pyde
katnino/processing.py
ff6450a6606908a014ce795340c06c8f6d90023d
[ "Apache-2.0" ]
null
null
null
mode/examples/Topics/Simulate/MultipleParticleSystems/MultipleParticleSystems.pyde
katnino/processing.py
ff6450a6606908a014ce795340c06c8f6d90023d
[ "Apache-2.0" ]
null
null
null
""" Multiple Particle Systems by Daniel Shiffman. Click the mouse to generate a burst of particles at mouse location. Each burst is one instance of a particle system with Particles and CrazyParticles (a subclass of Particle). Note use of Inheritance and Polymorphism here. """ from crazy_particle import CrazyParticle...
20.076923
74
0.704981
7642637d3c29176328f3ca35a05a393c8d4bf9f7
7,369
py
Python
app.py
Rodrigoh2702/calendarizaciones
e1e9f1fac0a1a53da3a833dd3e94261a5c350989
[ "MIT" ]
null
null
null
app.py
Rodrigoh2702/calendarizaciones
e1e9f1fac0a1a53da3a833dd3e94261a5c350989
[ "MIT" ]
null
null
null
app.py
Rodrigoh2702/calendarizaciones
e1e9f1fac0a1a53da3a833dd3e94261a5c350989
[ "MIT" ]
null
null
null
import tkinter as tk from backend.proceso import Proceso from backend.algo.srtf import SRTF import copy class App(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) container = tk.Frame(self) container.pack(side="top", fill="both", expand=True) con...
36.300493
137
0.645135
a18ffc222cc5338097804fe2d91f57fd741d28e0
2,391
py
Python
tests/contrib/django/test_connection.py
vijayperiasamy-eb/dd-trace-py
2b0d396fc7f76582e8ffedff48933245a77ebaf2
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/django/test_connection.py
vijayperiasamy-eb/dd-trace-py
2b0d396fc7f76582e8ffedff48933245a77ebaf2
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/django/test_connection.py
vijayperiasamy-eb/dd-trace-py
2b0d396fc7f76582e8ffedff48933245a77ebaf2
[ "BSD-3-Clause" ]
1
2021-02-11T10:20:14.000Z
2021-02-11T10:20:14.000Z
import mock import time # 3rd party from django.contrib.auth.models import User from ddtrace.contrib.django.conf import settings from ddtrace.contrib.django.patch import apply_django_patches, connections # testing from .utils import DjangoTraceTestCase, override_ddtrace_settings class DjangoConnectionTest(DjangoTr...
32.753425
83
0.658302
c1004b9d5a10d906d787d22a81489d2591cc6768
18,652
py
Python
src/transformers/convert_graph_to_onnx.py
kct22aws/transformers
04cddaf402591e9f5bdb5f116a111d829a0ce4f4
[ "Apache-2.0" ]
5
2020-10-30T13:07:02.000Z
2021-03-17T12:18:30.000Z
src/transformers/convert_graph_to_onnx.py
kct22aws/transformers
04cddaf402591e9f5bdb5f116a111d829a0ce4f4
[ "Apache-2.0" ]
null
null
null
src/transformers/convert_graph_to_onnx.py
kct22aws/transformers
04cddaf402591e9f5bdb5f116a111d829a0ce4f4
[ "Apache-2.0" ]
1
2020-08-06T05:23:13.000Z
2020-08-06T05:23:13.000Z
# Copyright 2020 The HuggingFace Team. 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 by applicabl...
36.788955
119
0.66958
08dafe6011e7ec9c20106396fe2461e7f4b7f55b
5,061
py
Python
disentanglement_lib/evaluation/metrics/local_modularity_test.py
travers-rhodes/disentanglement_lib
73d4b995e88efdd5ffbe98a72e48a620c58f4dc7
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/evaluation/metrics/local_modularity_test.py
travers-rhodes/disentanglement_lib
73d4b995e88efdd5ffbe98a72e48a620c58f4dc7
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/evaluation/metrics/local_modularity_test.py
travers-rhodes/disentanglement_lib
73d4b995e88efdd5ffbe98a72e48a620c58f4dc7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The DisentanglementLib Authors. All rights reserved. # Copyright 2021 Travers Rhodes. 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 # ...
43.25641
84
0.753013
ccf2161242a1d75bd20b4a0b7769d6579c86d46e
774
py
Python
trigger/pulseRatioWOnoise.py
greatofdream/pmtTest
d8f1fc8e94c3999516b6eef01e228311e6135053
[ "MIT" ]
null
null
null
trigger/pulseRatioWOnoise.py
greatofdream/pmtTest
d8f1fc8e94c3999516b6eef01e228311e6135053
[ "MIT" ]
null
null
null
trigger/pulseRatioWOnoise.py
greatofdream/pmtTest
d8f1fc8e94c3999516b6eef01e228311e6135053
[ "MIT" ]
null
null
null
import numpy as np, h5py import argparse if __name__=="__main__": psr = argparse.ArgumentParser() psr.add_argument('-i', dest='ipt', help='input text file') psr.add_argument('-o', dest='opt', help='output text file') psr.add_argument('--ref', help='the reference of noise') args = psr.parse_args() ...
48.375
124
0.614987
7121561ed9035de74e1c98ca82d378979367c3eb
1,062
py
Python
kubernetes_asyncio/test/test_v1beta1_network_policy_spec.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
1
2021-01-13T09:28:57.000Z
2021-01-13T09:28:57.000Z
kubernetes_asyncio/test/test_v1beta1_network_policy_spec.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_network_policy_spec.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
25.902439
119
0.741055
aabc6334a63c35c9447a1544824aaf83e3382dcb
14,202
py
Python
requests_oauthlib/oauth2_session.py
Huddle/requests-oauthlib
503146ae39c1c050abf39d2fd5a43595e621cdf7
[ "0BSD" ]
null
null
null
requests_oauthlib/oauth2_session.py
Huddle/requests-oauthlib
503146ae39c1c050abf39d2fd5a43595e621cdf7
[ "0BSD" ]
null
null
null
requests_oauthlib/oauth2_session.py
Huddle/requests-oauthlib
503146ae39c1c050abf39d2fd5a43595e621cdf7
[ "0BSD" ]
null
null
null
from __future__ import unicode_literals import logging from oauthlib.common import generate_token, urldecode from oauthlib.oauth2 import WebApplicationClient, InsecureTransportError from oauthlib.oauth2 import TokenExpiredError, is_secure_transport import requests log = logging.getLogger(__name__) class TokenUpdat...
47.182724
87
0.623715
0299b702b90ae551cb69cf100ae411e60e0cc0f1
34,917
py
Python
dis_snek/models/snek/application_commands.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/models/snek/application_commands.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/models/snek/application_commands.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
import asyncio import inspect import logging import re from enum import IntEnum from typing import TYPE_CHECKING, Callable, Coroutine, Dict, List, Union, Optional, Any import attr import dis_snek.models.discord.channel as channel from dis_snek.client.const import ( GLOBAL_SCOPE, CONTEXT_MENU_NAME_LENGTH, ...
36.793467
134
0.63482
e0fbe8e2486effc235dfc7636d289fd16a8fef33
96,271
py
Python
tensorflow/lite/python/lite.py
henriwoodcock/tensorflow
d9ad2a9f62ada961b26d09c8f4856cb0c94d9f8a
[ "Apache-2.0" ]
null
null
null
tensorflow/lite/python/lite.py
henriwoodcock/tensorflow
d9ad2a9f62ada961b26d09c8f4856cb0c94d9f8a
[ "Apache-2.0" ]
null
null
null
tensorflow/lite/python/lite.py
henriwoodcock/tensorflow
d9ad2a9f62ada961b26d09c8f4856cb0c94d9f8a
[ "Apache-2.0" ]
1
2021-04-20T18:26:18.000Z
2021-04-20T18:26:18.000Z
# Lint as: python2, python3 # Copyright 2017 The TensorFlow Authors. 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 # ...
42.150175
125
0.702745
c74f62328b4f6dca2b8b49f8233d22e7fa310dab
913
py
Python
object.py
ZhongXinWang/python
4cf3ecdc9d9e811e777c6d8408a8319097cfdec3
[ "Apache-2.0" ]
null
null
null
object.py
ZhongXinWang/python
4cf3ecdc9d9e811e777c6d8408a8319097cfdec3
[ "Apache-2.0" ]
null
null
null
object.py
ZhongXinWang/python
4cf3ecdc9d9e811e777c6d8408a8319097cfdec3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #Author:Winston.Wang print('---------------面向对象------------------') class Person(object): def __init__(self,name,score): self.name=name self.__score = score def toString(self): return self.name,":",self.__score def setScore(self,score): self.__score = score clas...
21.232558
46
0.619934
f6fa341dbe765b78addfacf64b3a9795c95f2eff
6,973
py
Python
sqlserver/tests/test_connection.py
ganeshkumarsv/integrations-core
55cce423d171a65f87760ff903214af7a0e2a4e4
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/test_connection.py
ganeshkumarsv/integrations-core
55cce423d171a65f87760ff903214af7a0e2a4e4
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/test_connection.py
ganeshkumarsv/integrations-core
55cce423d171a65f87760ff903214af7a0e2a4e4
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import re import mock import pyodbc import pytest from datadog_checks.base import ConfigurationError from datadog_checks.sqlserver import SQLServer from datadog_checks.sqlserver.connection import Connect...
43.855346
106
0.687222
980ad55bf6fe6c9339d537913ea75a0ff7664e85
36
py
Python
tests/__init__.py
AaronLaw/crypto
92fb012daf1a770a8481522ef3c683494696f227
[ "MIT" ]
null
null
null
tests/__init__.py
AaronLaw/crypto
92fb012daf1a770a8481522ef3c683494696f227
[ "MIT" ]
null
null
null
tests/__init__.py
AaronLaw/crypto
92fb012daf1a770a8481522ef3c683494696f227
[ "MIT" ]
null
null
null
"""Unit test package for crypto."""
18
35
0.666667
61603c37f778f56256190b193c8f02b80e005c6b
85,116
py
Python
brian2/spatialneuron/morphology.py
Kyzarok/SNNProject
14b555e221dbdd5100cb4f6333e49030423462ea
[ "BSD-2-Clause" ]
2
2020-03-20T13:30:19.000Z
2020-03-20T13:30:57.000Z
brian2/spatialneuron/morphology.py
deep-introspection/brian2
6c50e3a22d0e83a2b75c5bcf6f7c1d889311fca1
[ "BSD-2-Clause" ]
null
null
null
brian2/spatialneuron/morphology.py
deep-introspection/brian2
6c50e3a22d0e83a2b75c5bcf6f7c1d889311fca1
[ "BSD-2-Clause" ]
null
null
null
''' Neuronal morphology module. This module defines classes to load and build neuronal morphologies. ''' import abc import numbers from abc import abstractmethod from collections import OrderedDict, defaultdict, namedtuple import os from brian2.units.allunits import meter from brian2.utils.logger import get_logger fro...
38.323278
105
0.569423
5846619656455af3a1c66349f2a5d9d0ac0ea4e1
377
py
Python
modules/time/timedelta.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
modules/time/timedelta.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
modules/time/timedelta.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
from datetime import time,date,timedelta time_1 = time() print('Time_1: {}'.format(time_1)) time_2 = time(hour=10,minute=45,second=47,microsecond=123458) print('Time_2: {}'.format(time_2)) today = date.today() outbreak = date(2002,11,10) daysSinceOutbreak = today - outbreak print(daysSinceOutbreak) tom...
25.133333
62
0.724138
b4c657c572bc2f244c70fb665fc34dd450042729
185
py
Python
PythonMundoDois/ex061.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex061.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex061.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
termo = int(input('Digite o termo: ')) razao = int(input('Digite a razão: ')) cont = 0 while cont <= 10: print(f'{termo} -> ', end='') termo += razao cont +=1 print('Fim.')
20.555556
38
0.556757