hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
27e3755913f4398c03514047adbb3c295de8c708
3,501
py
Python
client/client_socketing.py
tomheaton/pcj8-jazzed-jerboas
a0ca3c9056f56c29f51dfb8d30a76d469f7a972f
[ "MIT" ]
1
2021-09-18T21:15:59.000Z
2021-09-18T21:15:59.000Z
client/client_socketing.py
tomheaton/pcj8-jazzed-jerboas
a0ca3c9056f56c29f51dfb8d30a76d469f7a972f
[ "MIT" ]
null
null
null
client/client_socketing.py
tomheaton/pcj8-jazzed-jerboas
a0ca3c9056f56c29f51dfb8d30a76d469f7a972f
[ "MIT" ]
1
2021-07-11T14:01:43.000Z
2021-07-11T14:01:43.000Z
import socket import select import errno from pynput import keyboard from rich import print from rich.console import Console from rich.panel import Panel from rich.text import Text from utils import clear import sys from time import sleep from prompt_toolkit.validation import Validator, ValidationError from prompt_tool...
29.923077
98
0.627535
52579bbc1414f6a9615e0d507bcd3a7a98053a2b
950
py
Python
src/security/jwt_service.py
joaodobread/python-falcon-api
7c2f71000c5bebb88c658b52de61998d2896e495
[ "MIT" ]
null
null
null
src/security/jwt_service.py
joaodobread/python-falcon-api
7c2f71000c5bebb88c658b52de61998d2896e495
[ "MIT" ]
null
null
null
src/security/jwt_service.py
joaodobread/python-falcon-api
7c2f71000c5bebb88c658b52de61998d2896e495
[ "MIT" ]
null
null
null
import os from jwt import encode, decode class JwtService: __instance = None def __init__(self): self.__secret = str(os.getenv('SECRET_KEY')) def sign(self, payload): """Encode a payload to a jwt Args: payload (JSON): any payload to be transformed to jwt token ...
22.093023
70
0.558947
55de459d7e94f386688b4a548f6a0cf17f1fb664
10,549
py
Python
jcvi/compara/reconstruct.py
l-Imoon/jcvi
db70bb98c7969bb0cc7b9941a2cc2dc8c5d1b783
[ "BSD-2-Clause" ]
null
null
null
jcvi/compara/reconstruct.py
l-Imoon/jcvi
db70bb98c7969bb0cc7b9941a2cc2dc8c5d1b783
[ "BSD-2-Clause" ]
null
null
null
jcvi/compara/reconstruct.py
l-Imoon/jcvi
db70bb98c7969bb0cc7b9941a2cc2dc8c5d1b783
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ From synteny blocks, reconstruct ancestral order by interleaving the genes in between the anchors. This is the bottom-up method used first in Bowers (2003), and in Tang (2010), to reconstruct pre-alpha and pre-rho order, respectively. """ from __future__ import print_f...
27.471354
80
0.570196
3d8b6d37115259f1df14c968941594046e535b84
11,710
py
Python
aries_cloudagent/admin/tests/test_admin_server.py
VersesGitHub/aries-cloudagent-python
eb7182aaad3ab35ea0783e4b97118333f303e8d8
[ "Apache-2.0" ]
1
2021-03-10T14:54:13.000Z
2021-03-10T14:54:13.000Z
aries_cloudagent/admin/tests/test_admin_server.py
VersesGitHub/aries-cloudagent-python
eb7182aaad3ab35ea0783e4b97118333f303e8d8
[ "Apache-2.0" ]
22
2021-02-13T18:48:53.000Z
2021-04-27T07:29:50.000Z
aries_cloudagent/admin/tests/test_admin_server.py
VersesGitHub/aries-cloudagent-python
eb7182aaad3ab35ea0783e4b97118333f303e8d8
[ "Apache-2.0" ]
2
2021-03-23T14:17:16.000Z
2021-03-23T14:26:22.000Z
from aiohttp import ClientSession, DummyCookieJar, TCPConnector, web from aiohttp.test_utils import unused_port from asynctest import TestCase as AsyncTestCase from asynctest import mock as async_mock from ...config.default_context import DefaultContextBuilder from ...config.injection_context import InjectionContext ...
37.774194
88
0.61725
435447166cfbbbf89de904411a4a1f8161cbebe4
52,939
py
Python
code/examples/classifier_compression/sinreq_v2_svhn_runcode/evaluate_svhn_sin2.py
he-actlab/waveq.code
024d55af6d989d4074d3e555d03b76a2f7eac209
[ "CNRI-Python" ]
1
2020-04-09T03:21:32.000Z
2020-04-09T03:21:32.000Z
code/examples/classifier_compression/sinreq_v2_svhn_runcode/evaluate_svhn_sin2.py
he-actlab/waveq.code
024d55af6d989d4074d3e555d03b76a2f7eac209
[ "CNRI-Python" ]
4
2020-09-26T00:53:47.000Z
2022-02-10T01:23:34.000Z
code/examples/classifier_compression/sinreq_v2_svhn_runcode/evaluate_svhn_sin2.py
sinreq-learn/sinreq-learn.code
a205d3fa22a41d5f4fc1ef1e5698c4f1dbb11e6a
[ "BSD-4-Clause-UC" ]
null
null
null
#!/usr/bin/python # developer: Ahmed Taha Elthakeb # email: (a1yousse@eng.ucsd.edu) """ [21-oct-2018] - test case: alexnet - changing reward function to be func(val_acc + train_acc) on 10k images """ from __future__ import division import pandas as pd import numpy as np import tensorflow as tf impor...
45.87435
221
0.664293
88ad81816a2264bed06555b6d12eb9e4cd6e66f2
439
py
Python
composer/algorithms/seq_length_warmup/__init__.py
moinnadeem/composer
bc3f41b766bd4450f05a99f44db4a6b3901ea1c8
[ "Apache-2.0" ]
null
null
null
composer/algorithms/seq_length_warmup/__init__.py
moinnadeem/composer
bc3f41b766bd4450f05a99f44db4a6b3901ea1c8
[ "Apache-2.0" ]
null
null
null
composer/algorithms/seq_length_warmup/__init__.py
moinnadeem/composer
bc3f41b766bd4450f05a99f44db4a6b3901ea1c8
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Sequence length warmup progressively increases the sequence length during training of NLP models. See the :doc:`Method Card </method_cards/seq_length_warmup>` for more details. """ from composer.algorithms.seq_length_warmup.seq_lengt...
36.583333
110
0.820046
6d8cdc7c2d9859017caa199b14773820634d8e21
6,460
py
Python
tf3d/object_detection/metric.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
tf3d/object_detection/metric.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
tf3d/object_detection/metric.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 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...
43.648649
80
0.691796
f34bb1ec6785694426d9d3e0239cc531e51e3518
1,489
py
Python
juce/projucer/xml_structure.py
tobanteAudio/python-juce
a2cf1027463073160b7ad506b892f6b28d454f34
[ "MIT" ]
10
2019-07-12T23:23:21.000Z
2021-05-10T09:33:43.000Z
juce/projucer/xml_structure.py
tobanteAudio/python-juce
a2cf1027463073160b7ad506b892f6b28d454f34
[ "MIT" ]
null
null
null
juce/projucer/xml_structure.py
tobanteAudio/python-juce
a2cf1027463073160b7ad506b892f6b28d454f34
[ "MIT" ]
1
2021-12-03T11:07:35.000Z
2021-12-03T11:07:35.000Z
"""Defines the jucer file xml tag & attribute keys """ # PROJECT ATTRIBUTE_ID = 'id' ATTRIBUTE_NAME = 'name' ATTRIBUTE_PROJECT_TYPE = 'projectType' ATTRIBUTE_JUCER_VERSION = 'jucerVersion' ATTRIBUTE_VERSION = 'version' ATTRIBUTE_COMPANY = 'companyName' ATTRIBUTE_COMPANY_WEBSITE = 'companyWebsite' ATTRIBUTE_COMPANY_EMA...
33.840909
61
0.842848
174e73bfced8accac0482b5f8ef99632df1bcb13
47,848
py
Python
daq/proto/system_config_pb2.py
didovesei/daq
569aca190756738fb052876f1b034c842f7ae650
[ "Apache-2.0" ]
null
null
null
daq/proto/system_config_pb2.py
didovesei/daq
569aca190756738fb052876f1b034c842f7ae650
[ "Apache-2.0" ]
null
null
null
daq/proto/system_config_pb2.py
didovesei/daq
569aca190756738fb052876f1b034c842f7ae650
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: daq/proto/system_config.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection ...
48.77472
3,987
0.748286
9d35e069644b295f6e313829996a8244de12ebbf
5,729
py
Python
morphine/__init__.py
AlexandreAdam/morphine
07e4c377ea4e9601a66d40da5480f788d0b64635
[ "BSD-3-Clause" ]
14
2020-05-22T20:43:20.000Z
2022-02-04T05:07:00.000Z
morphine/__init__.py
AlexandreAdam/morphine
07e4c377ea4e9601a66d40da5480f788d0b64635
[ "BSD-3-Clause" ]
1
2021-11-12T06:22:01.000Z
2021-11-12T06:22:01.000Z
morphine/__init__.py
AlexandreAdam/morphine
07e4c377ea4e9601a66d40da5480f788d0b64635
[ "BSD-3-Clause" ]
4
2021-03-05T01:38:12.000Z
2022-03-30T09:00:16.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.md """poppy-derivatives (morphine) morphine is a Python package that simulates physical optical propagation including diffraction, with automatic differentiation. poppy was developed by Marshall Perrin and colleagues at STScI, for use simulating the James W...
44.757813
127
0.617734
cdccf6c01653163bb8ca38561bfba641eb360f29
834
py
Python
src/data_generator/vocab_builder.py
luciencho/jddc_solo
efddf0885d5e3c640835874f70d57d25123de141
[ "BSD-3-Clause" ]
null
null
null
src/data_generator/vocab_builder.py
luciencho/jddc_solo
efddf0885d5e3c640835874f70d57d25123de141
[ "BSD-3-Clause" ]
null
null
null
src/data_generator/vocab_builder.py
luciencho/jddc_solo
efddf0885d5e3c640835874f70d57d25123de141
[ "BSD-3-Clause" ]
null
null
null
# coding:utf-8 from __future__ import unicode_literals from __future__ import division from __future__ import print_function import os from src.utils import utils from src.data_generator import vocabulary def process(hparam): utils.raise_inexistence(hparam.tmp_dir) tokenizer = vocabulary.Tokenizer(segment=h...
33.36
81
0.713429
2c8301e7f6dd53f513e11bb87c11aeeaec457aa8
778
py
Python
setup.py
msarfati/InstraCommander
85062fb6ff98cd34b8500964f27f9f73708506a9
[ "Apache-2.0" ]
null
null
null
setup.py
msarfati/InstraCommander
85062fb6ff98cd34b8500964f27f9f73708506a9
[ "Apache-2.0" ]
null
null
null
setup.py
msarfati/InstraCommander
85062fb6ff98cd34b8500964f27f9f73708506a9
[ "Apache-2.0" ]
1
2016-01-29T03:44:55.000Z
2016-01-29T03:44:55.000Z
# -*- coding: utf-8 -*- from setuptools import setup import os version = '0.1' def fpath(name): return os.path.join(os.path.dirname(__file__), name) def read(fname): return open(fpath(fname)).read() setup(version=version, name='InstaCommander', description="Prototype Terminal client for Instagra...
21.027027
94
0.659383
228709c38d5f526749aebebaccb9e62a47701122
6,605
py
Python
utils/flags/_base.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
utils/flags/_base.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
utils/flags/_base.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
40.27439
88
0.654807
03c333f43c3e74a3a225cbedf0c3461ec988ac9f
11,516
py
Python
python_tools/pipeline_kickoff/create_title_file_from_samplesheet.py
mskcc/ACCESS-Pipeline
b0f226a9ac5152f3afe0d38c8cd54aa25b8b01cf
[ "MIT" ]
4
2018-08-23T04:37:43.000Z
2021-07-03T12:49:51.000Z
python_tools/pipeline_kickoff/create_title_file_from_samplesheet.py
andurill/ACCESS-Pipeline
3441040dfaecba58150c13a95a6a93657b00778a
[ "MIT" ]
32
2018-06-08T12:44:55.000Z
2022-01-13T01:29:35.000Z
python_tools/pipeline_kickoff/create_title_file_from_samplesheet.py
andurill/ACCESS-Pipeline
3441040dfaecba58150c13a95a6a93657b00778a
[ "MIT" ]
4
2018-05-25T21:43:48.000Z
2022-01-07T18:51:43.000Z
#!/usr/bin/env python import xlrd import argparse import pandas as pd from python_tools.constants import * # Suppress pandas copy warning pd.options.mode.chained_assignment = None ################################## # Pipeline Kickoff Step #1 # # This module is used to create a title file with the information needed ...
37.881579
172
0.660125
e19f15e91231261ecf872a02a68b473338978665
409
py
Python
aoc_wim/aoc2019/q09.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
20
2019-10-15T07:33:13.000Z
2022-01-19T13:40:36.000Z
aoc_wim/aoc2019/q09.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
5
2019-02-01T23:31:27.000Z
2021-12-03T06:55:58.000Z
aoc_wim/aoc2019/q09.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
8
2019-12-03T15:41:23.000Z
2021-12-06T17:13:57.000Z
""" --- Day 9: Sensor Boost --- https://adventofcode.com/2019/day/9 """ from aocd import data from aoc_wim.aoc2019 import IntComputer def compute(data, inputs=()): comp = IntComputer(data, inputs=inputs) comp.run() result = ",".join([str(x) for x in reversed(comp.output)]) return result if __name__ ...
21.526316
62
0.655257
cce370f69dbea7884b0bdb87ae331ae8e0c1d8ea
1,948
py
Python
apps/example_apps/loadingbar_test_app/main.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
51
2017-12-03T21:59:13.000Z
2021-01-02T17:13:34.000Z
apps/example_apps/loadingbar_test_app/main.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
153
2017-10-27T19:59:46.000Z
2020-01-14T23:58:57.000Z
apps/example_apps/loadingbar_test_app/main.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
26
2017-11-16T11:10:56.000Z
2022-03-29T18:44:48.000Z
from time import sleep from apps import ZeroApp from ui import ProgressBar, TextProgressBar, CircularProgressBar, GraphicalProgressBar, IdleDottedMessage, Throbber, \ Listbox class LoadingBarExampleApp(ZeroApp): def __init__(self, i, o): super(LoadingBarExampleApp, self).__init__(i, o) self.m...
44.272727
118
0.62269
394ffbe0516880724322089aeeab43d40c5b9680
538
py
Python
manage.py
496080199/dccron
2c0bb0cecd6004dcb517f4013d49c0d7c002c118
[ "MIT" ]
2
2018-09-18T02:52:14.000Z
2021-02-08T07:15:30.000Z
manage.py
496080199/dccron
2c0bb0cecd6004dcb517f4013d49c0d7c002c118
[ "MIT" ]
null
null
null
manage.py
496080199/dccron
2c0bb0cecd6004dcb517f4013d49c0d7c002c118
[ "MIT" ]
2
2018-09-18T02:52:15.000Z
2018-12-20T02:00:03.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dccron.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are y...
33.625
73
0.685874
20f25fa6dd75cbe781fae60cf34249d95bb42341
18,961
py
Python
demographics_etl.py
evanfrisch/demographics_etl
dc33fb34cbbf67619aaea66b39177b24f572f0e7
[ "MIT" ]
null
null
null
demographics_etl.py
evanfrisch/demographics_etl
dc33fb34cbbf67619aaea66b39177b24f572f0e7
[ "MIT" ]
null
null
null
demographics_etl.py
evanfrisch/demographics_etl
dc33fb34cbbf67619aaea66b39177b24f572f0e7
[ "MIT" ]
1
2019-05-31T13:21:41.000Z
2019-05-31T13:21:41.000Z
# demographics_etl.py ####### # This class provides capabilities to extract, transform, # and load data from student, staff, and school geographic # data files that it downloads from the web. ###### import pandas as pd import numpy as np import os import datetime import urllib import shutil import logging ...
46.817284
173
0.642582
8b7d118f8f7f1f558c6652ed2bf0d9225fa8c948
1,147
py
Python
chapter5/DjangoTest/tests/testDjangoTodo_1.py
Haoxing/cloudagileops
adc548fae84081b9f769cb3f9fce0558efc5a20e
[ "Apache-2.0" ]
1
2021-01-03T23:51:22.000Z
2021-01-03T23:51:22.000Z
chapter5/DjangoTest/tests/testDjangoTodo_1.py
cloudAgileOps/cloudagileops
a5c2c84f4fc8999ce9e335eccd276dd167169385
[ "Apache-2.0" ]
2
2019-01-23T10:41:22.000Z
2019-04-14T13:40:54.000Z
chapter5/DjangoTest/tests/testDjangoTodo_1.py
Haoxing/cloudagileops
adc548fae84081b9f769cb3f9fce0558efc5a20e
[ "Apache-2.0" ]
2
2019-01-23T10:24:29.000Z
2019-03-19T09:24:04.000Z
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import NoAlertPresentException...
23.895833
62
0.697472
e18b1d6fc0fdbc28886abb32c986963e1b858acf
336
py
Python
storyboard/urls.py
AkashPushkar/assisted-storyboarding
bf4d389ec408e4145b3c725a48d8395f79ac2f2c
[ "MIT" ]
null
null
null
storyboard/urls.py
AkashPushkar/assisted-storyboarding
bf4d389ec408e4145b3c725a48d8395f79ac2f2c
[ "MIT" ]
null
null
null
storyboard/urls.py
AkashPushkar/assisted-storyboarding
bf4d389ec408e4145b3c725a48d8395f79ac2f2c
[ "MIT" ]
1
2021-03-01T03:58:48.000Z
2021-03-01T03:58:48.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('fetchImages/', views.fetchImages, name='fetch-Images'), path('fetchSceneImages/', views.fetchSceneImages, name='fetch-Scene-Images'), path('fetchExemplarImages/', views.fetchExemplarImages, name='fetch-Exem...
30.545455
86
0.744048
0054a900274fd4121b50be04f60600ec3d08ce9b
15,046
py
Python
src/waldur_mastermind/marketplace_openstack/utils.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/marketplace_openstack/utils.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/marketplace_openstack/utils.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
import logging from django.conf import settings from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist from django.db import transaction from rest_framework import exceptions from waldur_core.structure import models as structure_models from waldur_core.structure.backend import ServiceBackend f...
32.218415
101
0.691945
616243c5c52c00287c5f0a3eec6c46cf040b847e
1,111
py
Python
library/tcs3472.py
tanyafish/micropython-envirobit
02c67292e5d492710ee90df259d985d1c2403afd
[ "MIT" ]
null
null
null
library/tcs3472.py
tanyafish/micropython-envirobit
02c67292e5d492710ee90df259d985d1c2403afd
[ "MIT" ]
null
null
null
library/tcs3472.py
tanyafish/micropython-envirobit
02c67292e5d492710ee90df259d985d1c2403afd
[ "MIT" ]
null
null
null
from microbit import i2c, sleep, pin8 import struct ADDR = 0x29 LEVEL = 65.535 class tcs3472: def __init__(self): i2c.write(ADDR, b'\x80\x03') i2c.write(ADDR, b'\x81\x2b') def scaled(self): crgb = self.raw() if crgb[0] > 0: return tuple(float(x) / crgb[0] for x in...
22.22
62
0.520252
4df7457c1bde49e8dc678022347327e05e8858a7
993
py
Python
corpus_blender/corpus_blender.py
wiserdor/MusicNLP
b6fdcf56e512e63b4d594c98c6252147c7428097
[ "MIT" ]
null
null
null
corpus_blender/corpus_blender.py
wiserdor/MusicNLP
b6fdcf56e512e63b4d594c98c6252147c7428097
[ "MIT" ]
null
null
null
corpus_blender/corpus_blender.py
wiserdor/MusicNLP
b6fdcf56e512e63b4d594c98c6252147c7428097
[ "MIT" ]
null
null
null
from nltk.corpus import gutenberg # brown, comparative_sentences, sentence_polarity import nltk import random # Download corpus # nltk.download('brown') # nltk.download('comparative_sentences') # nltk.download('sentence_polarity') nltk.download('gutenberg') num_of_sents_to_predict = 15000 # the grater the number, t...
31.03125
112
0.712991
e55eb70ec3f31d517b31a6b3236892641fadd6bd
520
py
Python
test_c.py
DanteFalzone0/tryptobot
f4498d4eafdeeee965df1941f88724e93d250d51
[ "MIT" ]
2
2022-03-28T01:03:23.000Z
2022-03-31T18:09:04.000Z
test_c.py
DanteFalzone0/tryptobot
f4498d4eafdeeee965df1941f88724e93d250d51
[ "MIT" ]
null
null
null
test_c.py
DanteFalzone0/tryptobot
f4498d4eafdeeee965df1941f88724e93d250d51
[ "MIT" ]
null
null
null
import ctypes import os # find lib on linux or windows libc = ctypes.CDLL("libc.so.6") os.system("gcc -fPIC -shared tryptobot.c -o libtryptobot.so") libtrypto = ctypes.CDLL("./libtryptobot.so") libtrypto.handle_message.argtypes = (ctypes.c_char_p,) libtrypto.handle_message.restype = ctypes.POINTER(ctypes.c_char) re...
32.5
124
0.759615
39778480bbb31bd8de7ad1d83d3834bc9212478b
269,087
py
Python
nova/tests/unit/compute/test_compute_mgr.py
mriedem/nova
5e252d1c66c205d395b27e28cda0e6739876762c
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_compute_mgr.py
mriedem/nova
5e252d1c66c205d395b27e28cda0e6739876762c
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_compute_mgr.py
mriedem/nova
5e252d1c66c205d395b27e28cda0e6739876762c
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
49.391887
79
0.630729
60781ebc0489536d1e77efca830a30190326c2e3
2,654
py
Python
erpx_prulia/prulia_trainings/report/training_registration_report/training_registration_report.py
nickgandhi33/erpx-prulia
fbe41f5252c949d23683dccd98aa0837c0173b72
[ "MIT" ]
null
null
null
erpx_prulia/prulia_trainings/report/training_registration_report/training_registration_report.py
nickgandhi33/erpx-prulia
fbe41f5252c949d23683dccd98aa0837c0173b72
[ "MIT" ]
null
null
null
erpx_prulia/prulia_trainings/report/training_registration_report/training_registration_report.py
nickgandhi33/erpx-prulia
fbe41f5252c949d23683dccd98aa0837c0173b72
[ "MIT" ]
2
2020-08-19T18:40:39.000Z
2020-08-19T19:00:45.000Z
# Copyright (c) 2013, Alpha Herald Management and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt def execute(filters=None): if not filters: filters = {} columns = get_columns() data = get_regist...
35.386667
145
0.692916
a4545f15fd9b9360873b0a5545d8f5992402a58d
7,431
py
Python
openprocurement/bridge/rbot/tests/handlers.py
openprocurement/openprocurement.bridge.rbot
32d362287df2f3a3e186b838d6c8fa39a007c452
[ "Apache-2.0" ]
null
null
null
openprocurement/bridge/rbot/tests/handlers.py
openprocurement/openprocurement.bridge.rbot
32d362287df2f3a3e186b838d6c8fa39a007c452
[ "Apache-2.0" ]
null
null
null
openprocurement/bridge/rbot/tests/handlers.py
openprocurement/openprocurement.bridge.rbot
32d362287df2f3a3e186b838d6c8fa39a007c452
[ "Apache-2.0" ]
1
2021-01-19T14:29:24.000Z
2021-01-19T14:29:24.000Z
import unittest from copy import deepcopy from datetime import datetime from mock import MagicMock, call, patch from munch import munchify from openprocurement.bridge.basic.tests.base import AdaptiveCache from openprocurement.bridge.rbot.handlers import RendererBot from openprocurement.bridge.rbot.tests.data import TE...
48.888158
120
0.646885
f268f10040619ed5481170a0baee989a1617e7c5
3,255
py
Python
end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py
fabaff/openapi-python-client
c9a4d033fd6741d19abce148ead552391d21d4e9
[ "MIT" ]
160
2021-06-14T22:23:45.000Z
2022-03-30T12:41:22.000Z
end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py
fabaff/openapi-python-client
c9a4d033fd6741d19abce148ead552391d21d4e9
[ "MIT" ]
147
2021-06-13T16:29:10.000Z
2022-03-31T13:23:40.000Z
end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py
fabaff/openapi-python-client
c9a4d033fd6741d19abce148ead552391d21d4e9
[ "MIT" ]
36
2021-07-08T04:53:10.000Z
2022-03-26T11:25:43.000Z
from typing import Any, Dict, Optional, Union import httpx from ...client import Client from ...models.an_int_enum import AnIntEnum from ...models.http_validation_error import HTTPValidationError from ...types import UNSET, Response def _get_kwargs( *, client: Client, int_enum: AnIntEnum, ) -> Dict[str,...
21.556291
94
0.631336
b8b2c334a23104a61e2e1d9d2e325f91b07c127c
3,043
py
Python
.leetcode/6.zig-zag-conversion.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/6.zig-zag-conversion.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/6.zig-zag-conversion.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=6 lang=python3 # # [6] ZigZag Conversion # # https://leetcode.com/problems/zigzag-conversion/description/ # # algorithms # Medium (38.23%) # Likes: 2272 # Dislikes: 5688 # Total Accepted: 559.1K # Total Submissions: 1.5M # Testcase Example: '"PAYPALISHIRING"\n3' # # The string "PAYPALISHIRI...
19.632258
109
0.528426
9cb464bb2db20ee6ac8f546ca497959cce860ac6
677
py
Python
utils/SRCNN/compute_psnr.py
roman-vygon/pyFAST
fda27d6e027f9b8607d97209a4474fd08363e3b0
[ "MIT" ]
null
null
null
utils/SRCNN/compute_psnr.py
roman-vygon/pyFAST
fda27d6e027f9b8607d97209a4474fd08363e3b0
[ "MIT" ]
1
2020-06-30T16:13:36.000Z
2020-06-30T16:13:36.000Z
utils/SRCNN/compute_psnr.py
roman-vygon/pyFAST
fda27d6e027f9b8607d97209a4474fd08363e3b0
[ "MIT" ]
null
null
null
# Generated with SMOP 0.41 from libsmop import * # compute_psnr.m @function def compute_psnr(im1=None,im2=None,*args,**kwargs): varargin = compute_psnr.varargin nargin = compute_psnr.nargin if size(im1,3) == 3: im1=rgb2ycbcr(im1) # compute_psnr.m:5 im1=im1(arange(),arange(),1) # comp...
22.566667
51
0.641064
9db663fb7156c3e4734bbbfc0e84d663f5406346
1,090
py
Python
Codes/gracekoo/54_spiral-matrix.py
liuxiaohui1221/algorithm
d80e64185ceb4798ac5389bfbd226dc1d406f6b5
[ "Apache-2.0" ]
256
2017-10-25T13:02:15.000Z
2022-02-25T13:47:59.000Z
Codes/gracekoo/54_spiral-matrix.py
liuxiaohui1221/algorithm
d80e64185ceb4798ac5389bfbd226dc1d406f6b5
[ "Apache-2.0" ]
56
2017-10-27T01:34:20.000Z
2022-03-01T00:20:55.000Z
Codes/gracekoo/54_spiral-matrix.py
liuxiaohui1221/algorithm
d80e64185ceb4798ac5389bfbd226dc1d406f6b5
[ "Apache-2.0" ]
83
2017-10-25T12:51:53.000Z
2022-02-15T08:27:03.000Z
# -*- coding: utf-8 -*- # @Time: 2020/2/26 14:27 # @Author: GraceKoo # @File: 54_spiral-matrix.py # @Desc:https://leetcode-cn.com/problems/spiral-matrix/ from typing import List class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: def spiral_matrix(r1, c1, r2, c2): for ...
27.948718
64
0.450459
c270a8102baafd40d2ed0b9448ee77c0361fe6e9
2,127
py
Python
SIFT/CODE/get_interest_points.py
BumbleBee0819/ComputerVision_CourseHW
e9b7c19bc0db04c32b0cbaf7c1dfa413dc0ce796
[ "MIT" ]
null
null
null
SIFT/CODE/get_interest_points.py
BumbleBee0819/ComputerVision_CourseHW
e9b7c19bc0db04c32b0cbaf7c1dfa413dc0ce796
[ "MIT" ]
null
null
null
SIFT/CODE/get_interest_points.py
BumbleBee0819/ComputerVision_CourseHW
e9b7c19bc0db04c32b0cbaf7c1dfa413dc0ce796
[ "MIT" ]
null
null
null
# calling the harris corner detector def compute_harris_response(image): """ compute the Harris corner detector response function for each pixel in the image""" #derivatives imx,imy = gauss_derivatives(image, 5) #kernel for blurring gauss = matlab_style_gauss2D((5,5),1) #compute comp...
32.723077
131
0.67607
d0921bae35f77fb8354fd5cb618c7b9723d45a90
3,735
py
Python
tests/flask/test_validation.py
ponytailer/flask-validator
8317a413d49f612991c2251df88bf45d256cec24
[ "MIT" ]
3
2021-11-12T20:33:38.000Z
2021-12-21T03:06:56.000Z
tests/flask/test_validation.py
ponytailer/flask-validator
8317a413d49f612991c2251df88bf45d256cec24
[ "MIT" ]
null
null
null
tests/flask/test_validation.py
ponytailer/flask-validator
8317a413d49f612991c2251df88bf45d256cec24
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Any, Optional import pytest from pydantic import BaseModel from pydantic.dataclasses import dataclass as pydantic_dataclass from flask import Flask, jsonify from schema_validator import DataSource, SchemaValidator from schema_validator.flask import validate @data...
22.365269
72
0.633735
88a185665c5b241fec40d366c8d060e7d9d2a9c1
9,390
py
Python
tests/sensors/test_sql_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
tests/sensors/test_sql_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
tests/sensors/test_sql_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.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...
37.261905
110
0.668371
d18a1246550f955d7faa739305f474e42809a96f
52,541
py
Python
holoviews/operation/datashader.py
arabidopsis/holoviews
5bd1cc5d12b77f9fbb2b783356020859f60bcb28
[ "BSD-3-Clause" ]
null
null
null
holoviews/operation/datashader.py
arabidopsis/holoviews
5bd1cc5d12b77f9fbb2b783356020859f60bcb28
[ "BSD-3-Clause" ]
null
null
null
holoviews/operation/datashader.py
arabidopsis/holoviews
5bd1cc5d12b77f9fbb2b783356020859f60bcb28
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division from collections import Callable, Iterable import warnings import param import numpy as np import pandas as pd import xarray as xr import datashader as ds import datashader.reductions as rd import datashader.transfer_functions as tf import dask.dataframe as dd from par...
42.235531
117
0.592965
0a1f34a980121d0ea1aaff5aeebb88c4e667b894
5,092
py
Python
scripts/Rsmith/load_halo_sav.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/Rsmith/load_halo_sav.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/Rsmith/load_halo_sav.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 14 14:49:22 2015 @author: hoseung PURPOSE: halo mass evolution catalog for Jinsu's phase space diagram study. OUTPUT: Consists of 10 columns, for each galaxy in each snapshot. # ID x y z vx vy vz Rvir Mvir Mass ((nnouts*ngal) x ncolumns...
30.674699
119
0.630401
904a4d6af62cd2a696de0858406f355d9fb33519
692
py
Python
tree/bt/124 binary tree max path sum.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
tree/bt/124 binary tree max path sum.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
tree/bt/124 binary tree max path sum.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def maxPathSum(self, root): """ :type root: TreeNode :rtype: int """ maxSum = -float("in...
24.714286
63
0.514451
2e6cc75185e80236b9c967ed57218f9b3a7788c7
2,722
py
Python
scheduler/setup.py
Billcountry/google-cloud-python
8b183246398b92c277b2e6681a28fb62a10b47b2
[ "Apache-2.0" ]
null
null
null
scheduler/setup.py
Billcountry/google-cloud-python
8b183246398b92c277b2e6681a28fb62a10b47b2
[ "Apache-2.0" ]
null
null
null
scheduler/setup.py
Billcountry/google-cloud-python
8b183246398b92c277b2e6681a28fb62a10b47b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.651163
75
0.687362
147351468f27425ce5d2468f62413e88e42a10d7
5,489
py
Python
conans/client/generators/visualstudio.py
matthiasng/conan
634eadc319da928084633a344d42785edccb8d6c
[ "MIT" ]
2
2019-01-09T10:01:29.000Z
2019-01-09T10:01:31.000Z
conans/client/generators/visualstudio.py
matthiasng/conan
634eadc319da928084633a344d42785edccb8d6c
[ "MIT" ]
9
2017-10-07T06:23:10.000Z
2021-06-29T15:22:27.000Z
conans/client/generators/visualstudio.py
matthiasng/conan
634eadc319da928084633a344d42785edccb8d6c
[ "MIT" ]
2
2018-09-05T11:58:44.000Z
2018-09-05T12:14:11.000Z
import os import re from conans.model import Generator from conans.paths import BUILD_INFO_VISUAL_STUDIO from conans.client.tools.files import VALID_LIB_EXTENSIONS class VisualStudioGenerator(Generator): template = '''<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.micro...
45.741667
124
0.682456
c88f3ebcd315c67b73bc1b1e7683ddf677b52969
20,519
py
Python
pandaf/008/data.py
cpausmit/Kraken
54a5b69d274f928a5e53475b9c281815fadfc139
[ "MIT" ]
null
null
null
pandaf/008/data.py
cpausmit/Kraken
54a5b69d274f928a5e53475b9c281815fadfc139
[ "MIT" ]
null
null
null
pandaf/008/data.py
cpausmit/Kraken
54a5b69d274f928a5e53475b9c281815fadfc139
[ "MIT" ]
2
2017-03-22T17:33:38.000Z
2017-09-29T02:38:24.000Z
from FWCore.ParameterSet.VarParsing import VarParsing options = VarParsing('analysis') options.register('config', default = '', mult = VarParsing.multiplicity.singleton, mytype = VarParsing.varType.string, info = 'Single-switch config. Values: 03Feb2017, 23Sep2016, Spring16, Summer16') options.register('globaltag', de...
36.575758
238
0.750426
50336ca897ec0cb093975095db4b91031da59144
2,285
py
Python
src/Products/ZopeVersionControl/ZopeVersion.py
zopefoundation/Products.ZopeVersionControl
ffb633e67683bd2ca396fae8382f40871189ca5d
[ "ZPL-2.1" ]
null
null
null
src/Products/ZopeVersionControl/ZopeVersion.py
zopefoundation/Products.ZopeVersionControl
ffb633e67683bd2ca396fae8382f40871189ca5d
[ "ZPL-2.1" ]
4
2017-10-24T15:53:07.000Z
2021-03-26T07:01:39.000Z
src/Products/ZopeVersionControl/ZopeVersion.py
zopefoundation/Products.ZopeVersionControl
ffb633e67683bd2ca396fae8382f40871189ca5d
[ "ZPL-2.1" ]
4
2015-04-03T05:33:41.000Z
2020-01-14T22:45:24.000Z
############################################################################## # # Copyright (c) 2001 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
34.621212
78
0.658643
53fe81d484fb73e217fc08d9072acdf04d0ba54d
8,582
py
Python
src/utils/voxels.py
daniil-777/dynamic_plane_convolutional_onet
000b29184c392b9b3733edca7fc6edebb4e82ec9
[ "MIT" ]
28
2020-11-12T18:02:19.000Z
2022-03-27T13:27:57.000Z
src/utils/voxels.py
daniil-777/dpco
000b29184c392b9b3733edca7fc6edebb4e82ec9
[ "MIT" ]
2
2021-07-29T10:17:19.000Z
2021-08-25T12:53:56.000Z
src/utils/voxels.py
daniil-777/dpco
000b29184c392b9b3733edca7fc6edebb4e82ec9
[ "MIT" ]
4
2020-12-19T18:20:35.000Z
2022-02-26T21:46:55.000Z
import numpy as np import trimesh from scipy import ndimage from skimage.measure import block_reduce from src.utils.libvoxelize.voxelize import voxelize_mesh_ from src.utils.libmesh import check_mesh_contains from src.common import make_3d_grid class VoxelGrid: def __init__(self, data, loc=(0., 0., 0.), scale=1)...
29.902439
92
0.522139
959f52f6f2b37c71bfa84c367f5185be555a2eff
2,673
py
Python
dashboard/dashboard/api/describe_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
1
2019-11-01T23:31:22.000Z
2019-11-01T23:31:22.000Z
dashboard/dashboard/api/describe_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
6
2020-07-19T21:51:44.000Z
2022-02-13T08:22:58.000Z
dashboard/dashboard/api/describe_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
1
2020-06-02T01:31:18.000Z
2020-06-02T01:31:18.000Z
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function from __future__ import division from __future__ import absolute_import import json import unittest from dashboard imp...
31.081395
74
0.692106
219761d0949c9b0e008f91b56006937474b880dd
1,926
py
Python
marcador/migrations/0001_initial.py
duarteocarmo/BookmarkManager
ad7e6d2037277f3474343c848ae175e25bc91adc
[ "MIT" ]
null
null
null
marcador/migrations/0001_initial.py
duarteocarmo/BookmarkManager
ad7e6d2037277f3474343c848ae175e25bc91adc
[ "MIT" ]
null
null
null
marcador/migrations/0001_initial.py
duarteocarmo/BookmarkManager
ad7e6d2037277f3474343c848ae175e25bc91adc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
37.764706
123
0.55919
8e639dc40d64aa50f487fd851a61e6177b344d1e
1,766
py
Python
StanCode_project/break_out_game/breakout.py
freeloop17/sc-projects
c36cda1a166577ae06fa1ea2af7362d92db07041
[ "MIT" ]
null
null
null
StanCode_project/break_out_game/breakout.py
freeloop17/sc-projects
c36cda1a166577ae06fa1ea2af7362d92db07041
[ "MIT" ]
null
null
null
StanCode_project/break_out_game/breakout.py
freeloop17/sc-projects
c36cda1a166577ae06fa1ea2af7362d92db07041
[ "MIT" ]
null
null
null
""" stanCode Breakout Project Adapted from Eric Roberts's Breakout by Sonja Johnson-Yu, Kylie Jue, Nick Bowman, and Jerry Liao YOUR DESCRIPTION HERE """ from campy.gui.events.timer import pause from breakoutgraphics import BreakoutGraphics from campy.gui.events.mouse import onmouseclicked FRAME_RATE = 1000 / 120 # 1...
27.59375
102
0.5906
6e495e7f82c2bbd1af87dfe193d649dbada1895c
445
py
Python
resource/pypi/cffi-1.9.1/testing/cffi0/snippets/setuptools_package_1/snip_setuptools_verify1/__init__.py
hipnusleo/Laserjet
f53e0b740f48f2feb0c0bb285ec6728b313b4ccc
[ "Apache-2.0" ]
null
null
null
resource/pypi/cffi-1.9.1/testing/cffi0/snippets/setuptools_package_1/snip_setuptools_verify1/__init__.py
hipnusleo/Laserjet
f53e0b740f48f2feb0c0bb285ec6728b313b4ccc
[ "Apache-2.0" ]
null
null
null
resource/pypi/cffi-1.9.1/testing/cffi0/snippets/setuptools_package_1/snip_setuptools_verify1/__init__.py
hipnusleo/Laserjet
f53e0b740f48f2feb0c0bb285ec6728b313b4ccc
[ "Apache-2.0" ]
null
null
null
from cffi import FFI import sys ffi = FFI() ffi.cdef(""" // some declarations from the man page struct passwd { char *pw_name; ...; }; struct passwd *getpwuid(int uid); """) C = ffi.verify(""" // passed to the real C compiler #include <sys/types.h> #include <pwd.h> """...
24.722222
66
0.602247
e98e900945da12f55b4d22bff25c5a60c960b7b3
5,994
py
Python
examples/pwr_run/checkpointing/jobs_max_par/job26.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_par/job26.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_par/job26.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
30.738462
118
0.703871
70b1261627527efb8861385241e97ab5135cb664
1,744
py
Python
tests/integration/compiler/Functions.py
edvald/storyscript
a912586a65c1ee31cb634092e952767da6215269
[ "Apache-2.0" ]
null
null
null
tests/integration/compiler/Functions.py
edvald/storyscript
a912586a65c1ee31cb634092e952767da6215269
[ "Apache-2.0" ]
null
null
null
tests/integration/compiler/Functions.py
edvald/storyscript
a912586a65c1ee31cb634092e952767da6215269
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from storyscript.Api import Api def test_functions_function(): """ Ensures that functions are compiled correctly. """ result = Api.loads('function f\n x = 0').result() assert result['tree']['1']['method'] == 'function' assert result['tree']['1']['function'] == 'f' ...
34.88
79
0.573968
41f621cfaff823fb58d9ddad067ce45b128e0560
91
py
Python
web-client/ozon/__init__.py
libremente/service-app
3cc710d2d91ca61c9f628dd023326c16cf934c51
[ "MIT" ]
null
null
null
web-client/ozon/__init__.py
libremente/service-app
3cc710d2d91ca61c9f628dd023326c16cf934c51
[ "MIT" ]
null
null
null
web-client/ozon/__init__.py
libremente/service-app
3cc710d2d91ca61c9f628dd023326c16cf934c51
[ "MIT" ]
null
null
null
# import sys # import pathlib # # sys.path.append(pathlib.Path(__file__).parent.resolve())
18.2
58
0.736264
e45c82c67b13b83ffd1169afd7a06b7459386961
717
py
Python
dashboard/task_list.py
iRove108/wimstudy
01e38b6431ef8de07d8b9e3a7e68d25d6ca5a67a
[ "MIT" ]
null
null
null
dashboard/task_list.py
iRove108/wimstudy
01e38b6431ef8de07d8b9e3a7e68d25d6ca5a67a
[ "MIT" ]
null
null
null
dashboard/task_list.py
iRove108/wimstudy
01e38b6431ef8de07d8b9e3a7e68d25d6ca5a67a
[ "MIT" ]
null
null
null
def print_tasks(): print("The available tasks are:") for t in list_of_tasks: print(display_full_task(t)) ''' for x in range(0, num_tasks): n = input("\ninput name: \n") #Customize Questions t = input("input time: \n") c = input("input category: \n") task=task_list(n,t,c) ...
26.555556
83
0.644351
ae66814d37fa94acbff885f349ffeb904966bbea
804
py
Python
emp_directory/emp_directory/urls.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
1
2021-02-09T16:14:36.000Z
2021-02-09T16:14:36.000Z
emp_directory/emp_directory/urls.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
emp_directory/emp_directory/urls.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
"""emp_directory URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
33.5
77
0.702736
6ddb1b68f7908848ac1d85e3832cc3c40dc8977e
3,315
py
Python
google/cloud/forseti/scanner/audit/base_rules_engine.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
google/cloud/forseti/scanner/audit/base_rules_engine.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
google/cloud/forseti/scanner/audit/base_rules_engine.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2017 The Forseti Security 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 ap...
34.894737
76
0.687783
207adb1a0d1b88c7df108694d8bedb726e5f36f2
1,209
py
Python
azure-mgmt-cdn/azure/mgmt/cdn/models/supported_optimization_types_list_result.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/cdn/models/supported_optimization_types_list_result.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/cdn/models/supported_optimization_types_list_result.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.675676
95
0.63689
400f46989565afa0ca65f4195e7855009610039f
6,309
py
Python
train/comms/pt/pytorch_nccl_backend.py
shz0116/param-1
f114a2e154dafc2421d4bfbcca7f389146041496
[ "MIT" ]
null
null
null
train/comms/pt/pytorch_nccl_backend.py
shz0116/param-1
f114a2e154dafc2421d4bfbcca7f389146041496
[ "MIT" ]
null
null
null
train/comms/pt/pytorch_nccl_backend.py
shz0116/param-1
f114a2e154dafc2421d4bfbcca7f389146041496
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import numpy as np import torch import torch.distributed as dist import torch.nn as nn from comms_utils import backendFunctions ...
32.520619
88
0.634015
b0fb274419eeb8b9605deefe8b03d8e2c83ce63a
1,640
py
Python
app/core/migrations/0004_restaurante.py
TxiviDavid/tur-i
c83b8c17a955357c9ee5c64d1075b6832f4bf821
[ "MIT" ]
null
null
null
app/core/migrations/0004_restaurante.py
TxiviDavid/tur-i
c83b8c17a955357c9ee5c64d1075b6832f4bf821
[ "MIT" ]
null
null
null
app/core/migrations/0004_restaurante.py
TxiviDavid/tur-i
c83b8c17a955357c9ee5c64d1075b6832f4bf821
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-07 14:56 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_puntointeres_user'), ] opera...
45.555556
210
0.607927
d025372de0675f169a5040294a3a59b4747f151c
2,838
py
Python
contrib/testgen/base58.py
allgamecoin-dev/allgamecoin
20a6276e5ebdb1d1bc822e3bcd6081153e1073ed
[ "MIT" ]
4
2018-06-24T08:35:34.000Z
2018-08-27T02:48:26.000Z
contrib/testgen/base58.py
allgamescoindev/allgamescoin
20a6276e5ebdb1d1bc822e3bcd6081153e1073ed
[ "MIT" ]
null
null
null
contrib/testgen/base58.py
allgamescoindev/allgamescoin
20a6276e5ebdb1d1bc822e3bcd6081153e1073ed
[ "MIT" ]
null
null
null
''' AllGamesCoin base58 encoding and decoding. Based on https://allgamescointalk.org/index.php?topic=1026.0 (public domain) ''' import hashlib # for compatibility with following code... class SHA256: new = hashlib.sha256 if str != bytes: # Python 3.x def ord(c): return c def chr(n): r...
27.028571
97
0.630374
4fe7835c738705e729c4fe18247f90b62c4aa4ed
9,035
py
Python
project/tests/test_filters.py
eduzen/django-silk
8f8d159a4209f4c294aba16bce3b1ca5789dc2d2
[ "MIT" ]
2,027
2018-01-10T16:48:35.000Z
2022-03-31T17:11:44.000Z
project/tests/test_filters.py
eduzen/django-silk
8f8d159a4209f4c294aba16bce3b1ca5789dc2d2
[ "MIT" ]
270
2018-01-10T10:24:53.000Z
2022-03-24T11:12:23.000Z
project/tests/test_filters.py
eduzen/django-silk
8f8d159a4209f4c294aba16bce3b1ca5789dc2d2
[ "MIT" ]
210
2018-01-10T14:03:28.000Z
2022-03-08T06:20:55.000Z
import calendar import random from datetime import datetime, timedelta from itertools import groupby from math import floor import pytz from django.test import TestCase from django.utils import timezone from silk import models from silk.request_filters import ( AfterDateFilter, BeforeDateFilter, FunctionN...
38.283898
92
0.665634
3748491d1276427723883d66fdb9c13037a3823f
2,105
py
Python
calendareshop/voting/admin.py
Kaarhai/calendar-eshop
4ba4141034fe0042f0b3eec6194efd4b5c815f66
[ "BSD-3-Clause" ]
1
2016-09-20T22:01:05.000Z
2016-09-20T22:01:05.000Z
calendareshop/voting/admin.py
Kaarhai/calendar-eshop
4ba4141034fe0042f0b3eec6194efd4b5c815f66
[ "BSD-3-Clause" ]
6
2016-10-08T09:57:49.000Z
2022-03-11T23:16:41.000Z
calendareshop/voting/admin.py
Kaarhai/calendar-eshop
4ba4141034fe0042f0b3eec6194efd4b5c815f66
[ "BSD-3-Clause" ]
2
2016-10-03T21:47:55.000Z
2019-10-17T07:56:09.000Z
# -*- coding: utf-8 -*- import datetime from django.contrib import admin from django.core.mail import send_mail from django.template.loader import render_to_string from django.conf import settings from django import forms from .models import Voter, VotedImage, Vote from common.widgets import AdminImageWidget from comm...
29.236111
82
0.678385
6ea5395ce3f1204eb95168edd688f17c98d37916
263
py
Python
tests/test_project.py
pangealab/cronus
f16ad98b700659c7d6772f0aa5f4710d8eed57ab
[ "MIT" ]
1
2021-12-04T21:05:55.000Z
2021-12-04T21:05:55.000Z
tests/test_project.py
pangealab/cronus
f16ad98b700659c7d6772f0aa5f4710d8eed57ab
[ "MIT" ]
null
null
null
tests/test_project.py
pangealab/cronus
f16ad98b700659c7d6772f0aa5f4710d8eed57ab
[ "MIT" ]
1
2021-12-04T21:05:56.000Z
2021-12-04T21:05:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import cronus class UnitTests(unittest.TestCase): def test_import(self): self.assertIsNotNone(cronus) def test_project(self): self.assertTrue(False, "write more tests here")
20.230769
55
0.684411
52a6e3ffb941b2bb99a2e8106e9cc1788a751335
246
py
Python
api/admin.py
cheriaa43/drf_shoestore_backend
1db4aa42a77a2a47cb8ff2e967bc90f7cb17cc6f
[ "MIT" ]
null
null
null
api/admin.py
cheriaa43/drf_shoestore_backend
1db4aa42a77a2a47cb8ff2e967bc90f7cb17cc6f
[ "MIT" ]
null
null
null
api/admin.py
cheriaa43/drf_shoestore_backend
1db4aa42a77a2a47cb8ff2e967bc90f7cb17cc6f
[ "MIT" ]
null
null
null
from django.contrib import admin from api.models import Manufacturer, ShoeType, ShoeColor, Shoe # Register your models here. admin.site.register(Manufacturer) admin.site.register(ShoeType) admin.site.register(ShoeColor) admin.site.register(Shoe)
30.75
62
0.825203
80c828ef53745660cd0e0ef4f823ca76909f5b63
13,851
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/nos/nos_facts.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/modules/network/nos/nos_facts.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/modules/network/nos/nos_facts.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # # (c) 2018 Extreme Networks Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any late...
30.11087
150
0.620966
0a200838e962fa4e02d63ce80a441356948f7893
34,330
py
Python
python-javaobj3/javaobj.py
dongce/testsc
3dd6e5626b4dfbebb22c3074349d1f7e2cae36b9
[ "BSD-3-Clause" ]
null
null
null
python-javaobj3/javaobj.py
dongce/testsc
3dd6e5626b4dfbebb22c3074349d1f7e2cae36b9
[ "BSD-3-Clause" ]
null
null
null
python-javaobj3/javaobj.py
dongce/testsc
3dd6e5626b4dfbebb22c3074349d1f7e2cae36b9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -- Content-Encoding: UTF-8 -- """ Provides functions for reading and writing (writing is WIP currently) Java objects serialized or will be deserialized by ObjectOutputStream. This form of object representation is a standard data interchange format in Java world. javaobj module exposes an API famili...
31.846011
82
0.556306
31386b07ee24bbbce64aa8def23ee9007d00f0ad
12,528
py
Python
art/estimators/certification/randomized_smoothing/tensorflow.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
1
2021-08-27T23:02:02.000Z
2021-08-27T23:02:02.000Z
art/estimators/certification/randomized_smoothing/tensorflow.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
34
2021-06-23T09:14:19.000Z
2022-03-24T09:16:11.000Z
art/estimators/certification/randomized_smoothing/tensorflow.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
1
2021-08-30T14:59:41.000Z
2021-08-30T14:59:41.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
50.313253
120
0.651341
b0a1dec9ea1eedc69f77c0bf16d5b0fc1cd726b6
16,935
py
Python
pypy/module/bz2/test/test_bz2_file.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/module/bz2/test/test_bz2_file.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/module/bz2/test/test_bz2_file.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
from __future__ import with_statement import py from pypy.conftest import gettestobjspace from pypy.module.bz2.test.support import CheckAllocation import os import random if os.name == "nt": from py.test import skip skip("bz2 module is not available on Windows") def setup_module(mod): DATA = 'BZh...
36.655844
1,180
0.605196
1a2ea122f01cb5680dc97307e94fd9cddb4075fa
1,987
py
Python
src-py/libcloud-trunk/javaimpl/compute/base/StorageVolumeImpl.py
Schnitzl42/JLibcloud
42914a5e1b0e80b2d2fd61a37592998ecb4a4de1
[ "Apache-2.0" ]
1
2016-01-30T19:23:16.000Z
2016-01-30T19:23:16.000Z
src-py/libcloud-trunk/javaimpl/compute/base/StorageVolumeImpl.py
Schnitzl42/JLibcloud
42914a5e1b0e80b2d2fd61a37592998ecb4a4de1
[ "Apache-2.0" ]
null
null
null
src-py/libcloud-trunk/javaimpl/compute/base/StorageVolumeImpl.py
Schnitzl42/JLibcloud
42914a5e1b0e80b2d2fd61a37592998ecb4a4de1
[ "Apache-2.0" ]
null
null
null
''' Created on 05.01.2014 @author: root ''' from org.askalon.jlibcloud.compute.wrapperInterfaces.base import StorageVolume as JStorageVolume from javaimpl.compute.utils import none_check class StorageVolumeImpl(JStorageVolume): ''' classdocs ''' def __init__(self, volume): ''' Construc...
26.144737
96
0.534977
f7a0b0edc64e4aaac9455dc4f3e7bca1ab20b894
275
py
Python
app.py
collectif-CAKUVA/dashboard-project
bcea1ef7bcfe2ea99514cbc7de394bd7537b8647
[ "MIT" ]
null
null
null
app.py
collectif-CAKUVA/dashboard-project
bcea1ef7bcfe2ea99514cbc7de394bd7537b8647
[ "MIT" ]
6
2021-02-09T09:32:40.000Z
2021-02-15T11:07:51.000Z
app.py
collectif-CAKUVA/dashboard-project
bcea1ef7bcfe2ea99514cbc7de394bd7537b8647
[ "MIT" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) # defining a route @app.route("/", methods=['GET', 'POST', 'PUT']) # decorator def home(): # route handler function # returning a response return render_template('index.html') app.run(debug=True)
18.333333
60
0.687273
ad3431935222624bac1a38997f7c773346fb3e05
83,349
py
Python
python/ccxt/async_support/kraken.py
m-tools-apps/ccxt
05cdd7352e1f96ec6e20c17faf9e4ff8a7807210
[ "MIT" ]
null
null
null
python/ccxt/async_support/kraken.py
m-tools-apps/ccxt
05cdd7352e1f96ec6e20c17faf9e4ff8a7807210
[ "MIT" ]
2
2022-01-30T22:41:43.000Z
2022-01-30T22:41:55.000Z
python/ccxt/async_support/kraken.py
m-tools-apps/ccxt
05cdd7352e1f96ec6e20c17faf9e4ff8a7807210
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
41.570574
285
0.458782
70ad1e6d3e45eca419e34b512d5fbdc04fff7b8c
17,350
py
Python
denumerator/denumerator.py
swarupsro/Security-Tools
1f54c34483c9f48261e1eb2de5ef2596c1a252b5
[ "MIT-0", "MIT" ]
1
2021-12-21T06:50:19.000Z
2021-12-21T06:50:19.000Z
denumerator/denumerator.py
Minh98617/security-tools
59b2d36475b7246e7c4b7b71f78c8207353eec55
[ "MIT" ]
null
null
null
denumerator/denumerator.py
Minh98617/security-tools
59b2d36475b7246e7c4b7b71f78c8207353eec55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=invalid-name """ @TODO - results summary """ """ --- dENUMerator --- by bl4de | bloorq@gmail.com | HackerOne: bl4de Enumerates list of subdomains (output from tools like Sublist3r or subbrute) and creates output file with servers responding on port 80/HTTP This indicates (i...
31.09319
282
0.539366
87c98050e9f1c2490aaf15f8032b89e1d5c86de1
602
py
Python
invenio_drafts_resources/resources/records/args.py
ppanero/invenio-drafts-resources
ee713714ad8442065d7b1a64f7345277bdfbf490
[ "MIT" ]
null
null
null
invenio_drafts_resources/resources/records/args.py
ppanero/invenio-drafts-resources
ee713714ad8442065d7b1a64f7345277bdfbf490
[ "MIT" ]
77
2020-07-14T11:40:27.000Z
2022-03-28T11:00:32.000Z
invenio_drafts_resources/resources/records/args.py
ppanero/invenio-drafts-resources
ee713714ad8442065d7b1a64f7345277bdfbf490
[ "MIT" ]
21
2020-07-13T06:27:24.000Z
2021-12-16T07:02:57.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # Copyright (C) 2021 Northwestern University. # # Invenio-Drafts-Resources is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Schemas for parameter parsing.""" from invenio_recor...
27.363636
75
0.76412
eecc870a1da7f87409396ba5ee46fc7ae9f8e147
132
py
Python
backups/apps.py
jorgesaw/kmarket_old
4a7ddb22cd96f8c223a21bef9a614a0ac4a08f06
[ "MIT" ]
null
null
null
backups/apps.py
jorgesaw/kmarket_old
4a7ddb22cd96f8c223a21bef9a614a0ac4a08f06
[ "MIT" ]
5
2021-03-19T09:28:21.000Z
2022-02-10T12:11:57.000Z
backups/apps.py
jorgesaw/kmarket_old
4a7ddb22cd96f8c223a21bef9a614a0ac4a08f06
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BackupsConfig(AppConfig): name = 'backups' verbose_name = '6. Gestor de Back-Ups'
18.857143
42
0.719697
1c6227593f1f49ff5aee97748ff52327488ed493
5,288
py
Python
mmedit/datasets/sr_vid4_dataset.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
2
2021-06-15T04:19:01.000Z
2021-06-16T02:23:35.000Z
mmedit/datasets/sr_vid4_dataset.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
1
2021-08-05T16:20:39.000Z
2021-08-05T16:20:39.000Z
mmedit/datasets/sr_vid4_dataset.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
2
2021-12-26T16:23:09.000Z
2021-12-28T03:44:10.000Z
from collections import defaultdict import numpy as np from .base_sr_dataset import BaseSRDataset from .registry import DATASETS @DATASETS.register_module() class SRVid4Dataset(BaseSRDataset): """Vid4 dataset for video super resolution. The dataset loads several LQ (Low-Quality) frames and a center GT ...
38.043165
79
0.569402
f608f4707f39fee33aef33d9ea962e8c7d8536a2
470
py
Python
scripts/create_insights.py
gokhankesler/python-etl-design
155e1d693310a71c808e3b56c369d8ebac30fb6d
[ "MIT" ]
null
null
null
scripts/create_insights.py
gokhankesler/python-etl-design
155e1d693310a71c808e3b56c369d8ebac30fb6d
[ "MIT" ]
1
2022-03-25T21:19:29.000Z
2022-03-25T22:26:03.000Z
scripts/create_insights.py
gokhankesler/python-etl-design
155e1d693310a71c808e3b56c369d8ebac30fb6d
[ "MIT" ]
null
null
null
from common.base import session # Create the view with the appropriate metrics query = """ CREATE OR REPLACE VIEW insights AS SELECT county, COUNT(*) AS sales_count, SUM(CAST(price AS int)) AS sales_total, MAX(CAST(price AS int)) AS sales_max, MIN(CAST(price AS int)) AS sales_min, AV...
26.111111
58
0.704255
ee02f516d1d4b8bba9aa8d88b3601d0053df5f52
897
py
Python
setup.py
armymaksim/VoltMobi
a5e378044ab9df99b4ca7c291c91a2ca7264dd28
[ "MIT" ]
null
null
null
setup.py
armymaksim/VoltMobi
a5e378044ab9df99b4ca7c291c91a2ca7264dd28
[ "MIT" ]
null
null
null
setup.py
armymaksim/VoltMobi
a5e378044ab9df99b4ca7c291c91a2ca7264dd28
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os.path import join, dirname setup( name='image_manager', version='0.0.1', install_requires=['cchardet', 'aiodns', 'aiohttp', 'asyncpg', 'asyncpgsa', ...
32.035714
71
0.546265
b38e4efd01d9d214a3c247265f16c9fcdcff9e02
7,814
py
Python
scripts/azurerm_key_vault.py
piotr-gbyliczek/py-az2tf
67ba6de7128bfabd33db0fb707a9f9b9ee2b273d
[ "MIT" ]
186
2019-05-30T23:57:02.000Z
2022-03-25T21:45:12.000Z
scripts/azurerm_key_vault.py
piotr-gbyliczek/py-az2tf
67ba6de7128bfabd33db0fb707a9f9b9ee2b273d
[ "MIT" ]
56
2019-05-31T00:58:34.000Z
2022-03-15T22:04:45.000Z
scripts/azurerm_key_vault.py
piotr-gbyliczek/py-az2tf
67ba6de7128bfabd33db0fb707a9f9b9ee2b273d
[ "MIT" ]
84
2019-05-31T00:01:23.000Z
2022-03-14T13:40:34.000Z
def azurerm_key_vault(crf,cde,crg,headers,requests,sub,json,az2tfmess,cldurl): ############# # 090 key vault tfp="azurerm_key_vault" azr="" if crf in tfp: # REST or cli url="https://" + cldurl + "/subscriptions/" + sub + "/providers/Microsoft.KeyVault/vaults" params = ...
38.117073
106
0.390325
8f9ce532a7a0555cb5bbf5ea9b425fb9eda6996e
3,585
py
Python
nimda/tests/test_services_flowdock.py
kyhau/nimda
5b139b1976f046b66db71b0579af929c3144ebf8
[ "MIT" ]
2
2018-10-10T15:10:24.000Z
2021-01-15T06:43:18.000Z
nimda/tests/test_services_flowdock.py
kyhau/nimda
5b139b1976f046b66db71b0579af929c3144ebf8
[ "MIT" ]
7
2020-04-30T22:15:13.000Z
2020-05-08T09:17:30.000Z
nimda/tests/test_services_flowdock.py
kyhau/nimda
5b139b1976f046b66db71b0579af929c3144ebf8
[ "MIT" ]
null
null
null
""" Tests butler.services flowdock """ import requests_mock from os.path import exists, join from nimda.services import FlowdockService import nimda.flowdock.service_defs as DEFS from nimda.tests.conftest import logger def test_flowdock_service_init(default_testing_config): """Test FlowdockService _init_with_con...
37.736842
110
0.643236
21d9a664acd44aa92b13d779d3f867678eba2439
113
py
Python
py_apitest/__main__.py
thewisenerd/py-apitest
6b30ce111b4b4d7baf6825ff07daf14f1da1185a
[ "Unlicense" ]
null
null
null
py_apitest/__main__.py
thewisenerd/py-apitest
6b30ce111b4b4d7baf6825ff07daf14f1da1185a
[ "Unlicense" ]
null
null
null
py_apitest/__main__.py
thewisenerd/py-apitest
6b30ce111b4b4d7baf6825ff07daf14f1da1185a
[ "Unlicense" ]
null
null
null
# Execute with # $ python -m py_apitest (2.7+) import py_apitest if __name__ == '__main__': py_apitest.main()
14.125
31
0.690265
3fe6598a8b5a8ce90513852330c21c4d6751cf95
1,025
py
Python
dabl/portfolios/portfolio_lr.py
bhishanpdl/dabl
96693a8e5655b0aec18cacfaa334584eb8e57f53
[ "BSD-3-Clause" ]
500
2019-04-01T13:50:18.000Z
2022-03-07T01:50:45.000Z
dabl/portfolios/portfolio_lr.py
bhishanpdl/dabl
96693a8e5655b0aec18cacfaa334584eb8e57f53
[ "BSD-3-Clause" ]
111
2019-04-01T17:48:40.000Z
2020-03-27T16:39:19.000Z
dabl/portfolios/portfolio_lr.py
bhishanpdl/dabl
96693a8e5655b0aec18cacfaa334584eb8e57f53
[ "BSD-3-Clause" ]
60
2019-04-01T14:58:35.000Z
2021-08-13T02:58:20.000Z
from sklearn.linear_model import LogisticRegression def portfolio_lr(): lr = [ LogisticRegression(C=1, max_iter=10000), LogisticRegression(C=0.1, max_iter=10000), LogisticRegression(C=10, max_iter=10000), LogisticRegression(C=0.01, max_iter=10000), LogisticRegression(C=10, ...
42.708333
78
0.684878
cb49c27f47ab0a21cdd804cd9d373e7678b25961
2,021
py
Python
tests/integration/common.py
csiro-easi/eo-datasets
7805c569763f828cb0ace84c93932bddb882a6a3
[ "Apache-2.0" ]
null
null
null
tests/integration/common.py
csiro-easi/eo-datasets
7805c569763f828cb0ace84c93932bddb882a6a3
[ "Apache-2.0" ]
null
null
null
tests/integration/common.py
csiro-easi/eo-datasets
7805c569763f828cb0ace84c93932bddb882a6a3
[ "Apache-2.0" ]
null
null
null
from functools import partial from pathlib import Path from pprint import pformat, pprint from typing import Dict import rapidjson from click.testing import CliRunner, Result from deepdiff import DeepDiff from ruamel import yaml diff = partial(DeepDiff, significant_digits=6) def check_prepare_outputs( invoke_sc...
28.871429
84
0.733795
1f48917d6ecdb362bc77354d4bd0de4cccdc81b0
632
py
Python
bot/enums/state.py
christianbernasconi96/clothing_recommendation
d8f9dae291172f4606bbb6c855fb170f725543ff
[ "MIT" ]
null
null
null
bot/enums/state.py
christianbernasconi96/clothing_recommendation
d8f9dae291172f4606bbb6c855fb170f725543ff
[ "MIT" ]
null
null
null
bot/enums/state.py
christianbernasconi96/clothing_recommendation
d8f9dae291172f4606bbb6c855fb170f725543ff
[ "MIT" ]
null
null
null
from enum import Enum class State(str, Enum): def __str__(self): return str(self.value) STATE_TOSTART = 'STATE_TO_START' STATE_WAIT_ACTION = 'STATE_WAIT_ACTION' STATE_WAIT_SIMILAR_IMAGE = 'STATE_WAIT_SIMILAR' STATE_WAIT_STYLE_BASE = 'STATE_WAIT_STYLE_BASE' STATE_WAIT_STYLE_STYLE =...
37.176471
62
0.780063
23270c37c6d8acf79db6dbcd99f3d64a82b2988d
7,736
py
Python
ynab_moka/models/save_sub_transaction.py
dangior/ynab-moka
5ac6dde00c21d2074c15fa8a7f51bb1fefa876a0
[ "MIT" ]
null
null
null
ynab_moka/models/save_sub_transaction.py
dangior/ynab-moka
5ac6dde00c21d2074c15fa8a7f51bb1fefa876a0
[ "MIT" ]
null
null
null
ynab_moka/models/save_sub_transaction.py
dangior/ynab-moka
5ac6dde00c21d2074c15fa8a7f51bb1fefa876a0
[ "MIT" ]
null
null
null
# coding: utf-8 """ YNAB API Endpoints Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudge...
33.201717
333
0.608195
1c0bfda0d5002b8fe414cc399b6868239fde8b7e
2,339
py
Python
test/functional/feature_config_args.py
Polpette/compare-number435398
9099a2d43a69f8cb1f6894b8489b83a519a940a3
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
Polpette/compare-number435398
9099a2d43a69f8cb1f6894b8489b83a519a940a3
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
Polpette/compare-number435398
9099a2d43a69f8cb1f6894b8489b83a519a940a3
[ "MIT" ]
1
2019-12-21T21:36:08.000Z
2019-12-21T21:36:08.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various command line arguments and configuration file parameters.""" import os from test_framework.te...
46.78
169
0.695596
7073cf31da34af24e6dead58e39837ce0448446c
2,086
py
Python
setup.py
chenzhaoyangATgithub/chinese_province_city_area_mapper
ef57b59c87543dd79325b0e1718f83370c4e42ec
[ "MIT" ]
3
2019-04-15T15:02:42.000Z
2019-08-21T07:30:39.000Z
setup.py
suntutu/chinese_province_city_area_mapper
a7d39b660db883f3dae84eea8d4d0338187b54ed
[ "MIT" ]
null
null
null
setup.py
suntutu/chinese_province_city_area_mapper
a7d39b660db883f3dae84eea8d4d0338187b54ed
[ "MIT" ]
3
2019-07-09T02:56:32.000Z
2021-01-13T08:00:46.000Z
# -*- coding: utf-8 -*- from setuptools import setup from setuptools.command.test import test as TestCommand import os import sys import cpca class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = [] # try: # from multi...
30.231884
118
0.625599
46490f908beb7e891804663528eb1e82b4e39cf2
185
py
Python
_test/test-chapter/some_sol.py
DavidLeoni/juprova
c3ba382b394493a69d9b82e1dffbeb9d16587ad1
[ "Apache-2.0" ]
2
2021-04-28T08:31:14.000Z
2021-08-13T19:43:55.000Z
_test/test-chapter/some_sol.py
DavidLeoni/juprova
c3ba382b394493a69d9b82e1dffbeb9d16587ad1
[ "Apache-2.0" ]
16
2020-10-24T15:16:59.000Z
2022-03-19T04:05:48.000Z
_test/test-chapter/some_sol.py
DavidLeoni/softpython-it
f832762e60556b2b3be13f2befbfb5343716a81a
[ "CC-BY-4.0" ]
3
2020-09-11T11:59:22.000Z
2021-07-28T09:09:36.000Z
import file # 10 # Python import sys sys.path.append('../../') import jupman # this is a solution, jupman tags should get suppressed: # work! #jupman-raise print('hi') #/jupman-raise
13.214286
56
0.697297
e6a2a28435486665540b3a6253852aa4ebba7cc1
393
py
Python
packages/python/plotly/plotly/validators/carpet/_carpet.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/carpet/_carpet.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/carpet/_carpet.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class CarpetValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="carpet", parent_name="carpet", **kwargs): super(CarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ed...
32.75
77
0.669211
aac94f2ae72c67ca7c2fd9e0ccf4d09c6350f740
1,623
py
Python
leetcode/p695 Max Area of Island.py
AtlantisFox/Green-Point-Challenge
e4f7ee6fbc8c3480bb10e818eb85d4aafdd7db58
[ "MIT" ]
1
2017-10-31T01:46:25.000Z
2017-10-31T01:46:25.000Z
leetcode/p695 Max Area of Island.py
AtlantisFox/Green-Point-Challenge
e4f7ee6fbc8c3480bb10e818eb85d4aafdd7db58
[ "MIT" ]
1
2017-10-31T12:31:24.000Z
2017-10-31T15:32:54.000Z
leetcode/p695 Max Area of Island.py
AtlantisFox/Green-Point-Challenge
e4f7ee6fbc8c3480bb10e818eb85d4aafdd7db58
[ "MIT" ]
null
null
null
""" 裸广搜 """ class Solution: f = None d = ((0, -1), (0, 1), (-1, 0), (1, 0)) n = 0 m = 0 def bfs(self, grid, i, j): queue = [(i, j)] self.f[i][j] = True ans = 1 while len(queue) != 0: now = queue.pop(0) for k in range(4): x = ...
26.177419
101
0.384473
bc9a60794c626efedd046197c65f283b2d776f8c
3,307
py
Python
legacy/python-w3act/w3add.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
1
2021-05-18T21:47:29.000Z
2021-05-18T21:47:29.000Z
legacy/python-w3act/w3add.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
67
2017-11-22T11:13:18.000Z
2022-03-25T09:48:49.000Z
legacy/python-w3act/w3add.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
4
2020-01-17T17:23:54.000Z
2021-04-11T09:46:09.000Z
#!/usr/bin/env python """ Adds new seeds to already-running jobs. """ import argparse import logging import shutil import sys import traceback from datetime import datetime from glob import glob import heritrix import dateutil.parser import requests import w3act from crawl import settings requests.packages.urllib3....
39.843373
263
0.661627
56baf127757f10a6cb87dfc58a02ec1cddf7203c
1,641
py
Python
docs/cryptography-docs.py
ashemedai/cryptography
a51a62c2d309745dff21aeb7271e8df2003259a2
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2021-04-19T20:48:29.000Z
2021-04-19T20:48:29.000Z
docs/cryptography-docs.py
ashemedai/cryptography
a51a62c2d309745dff21aeb7271e8df2003259a2
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
docs/cryptography-docs.py
ashemedai/cryptography
a51a62c2d309745dff21aeb7271e8df2003259a2
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function from docutils import nodes from sphinx.util.compat import Directive DA...
26.467742
79
0.72273
95cc4b998efb39cd907924a606c7d363143770e7
568
py
Python
Put_This_Folder_Contents_in_C_Driver/GHPlotLib/PythonInits/GHPL_Indices_Plt.py
MahmoudAbdelRahman/GhPlotLib
30a3b627a1770e1dcb5e90bdbde988b1290512e6
[ "BSD-2-Clause" ]
11
2017-06-10T22:16:13.000Z
2021-09-26T09:44:11.000Z
Put_This_Folder_Contents_in_C_Driver/GHPlotLib/PythonInits/GHPL_Indices_Plt.py
MahmoudAbdelRahman/GhPlotLib
30a3b627a1770e1dcb5e90bdbde988b1290512e6
[ "BSD-2-Clause" ]
null
null
null
Put_This_Folder_Contents_in_C_Driver/GHPlotLib/PythonInits/GHPL_Indices_Plt.py
MahmoudAbdelRahman/GhPlotLib
30a3b627a1770e1dcb5e90bdbde988b1290512e6
[ "BSD-2-Clause" ]
6
2017-08-01T10:13:33.000Z
2021-09-25T17:52:04.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jun 22 14:15:18 2017 @author: Mahmoud M. Abdelrahman """ import numpy as np import pickle matrixShape = ##Shape## matrixDType = ##Dtype## workingDir = "##workingDir##" fileNameString = "##fileNameString##" datafile = open(workingDir+fileNameString+"_T...
18.933333
61
0.676056
32993acc04d61dd64421674b978262b3f5e725c7
22,680
py
Python
magnum/drivers/heat/template_def.py
Linaro/magnum
b2e3f2346b8550f71e1ed2c737e82aa6050bcfec
[ "Apache-2.0" ]
2
2020-07-15T14:43:39.000Z
2021-05-02T14:42:13.000Z
magnum/drivers/heat/template_def.py
Linaro/magnum
b2e3f2346b8550f71e1ed2c737e82aa6050bcfec
[ "Apache-2.0" ]
null
null
null
magnum/drivers/heat/template_def.py
Linaro/magnum
b2e3f2346b8550f71e1ed2c737e82aa6050bcfec
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Rackspace Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
39.238754
79
0.648369
f1af18fef48af7c9d4186d5541ea294f7c991254
1,164
py
Python
gpMgmt/bin/gppylib/operations/test/unit/test_unit_deletesystem.py
nurikk/gpdb
04fe0202c59721826d1eda2b19d73e5572893fcb
[ "PostgreSQL", "Apache-2.0" ]
3
2017-12-10T16:41:21.000Z
2020-07-08T12:59:12.000Z
gpMgmt/bin/gppylib/operations/test/unit/test_unit_deletesystem.py
chrishajas/gpdb
564b9235a46e2ead1650b753b2d070796cced6f6
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/operations/test/unit/test_unit_deletesystem.py
chrishajas/gpdb
564b9235a46e2ead1650b753b2d070796cced6f6
[ "PostgreSQL", "Apache-2.0" ]
4
2017-12-10T16:41:35.000Z
2020-11-28T12:20:30.000Z
#!/usr/bin/env python import unittest2 as unittest from gppylib.operations.deletesystem import validate_pgport from mock import patch, MagicMock, Mock class GpDeletesystemTestCase(unittest.TestCase): @patch('os.getenv', return_value=None) @patch('gppylib.operations.deletesystem.get_masterport', return_value=1...
48.5
147
0.744845
d9940282bd3d1d9973187b5ae9d8b7a0e309fb6e
149,868
py
Python
jp.atcoder/abc182/abc182_c/17998244.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc182/abc182_c/17998244.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc182/abc182_c/17998244.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import itertools import math import string import sys from bisect import bisect_left as bi_l from bisect import bisect_right as bi_r from collections import Counter, defaultdict, deque from functools import lru_cache, reduce from heapq import heapify, heappop, heappush from operator import or_, xor sys.setr...
28.743383
1,213
0.475445
5149affffddf2ce6804faeb5f44035664992a3e7
5,088
py
Python
tensorflow_probability/python/bijectors/__init__.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
1
2018-11-07T16:31:11.000Z
2018-11-07T16:31:11.000Z
tensorflow_probability/python/bijectors/__init__.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/__init__.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 applicable law o...
44.631579
112
0.821737
f8cfa89c71959da17d9b4cd5d85e7a02026035d9
2,073
py
Python
package/setup.py
uwbmrb/onedep2bmrb
ddc473a66bd31f447e7909b80f225f0fc1691d24
[ "Unlicense" ]
1
2020-07-24T05:59:50.000Z
2020-07-24T05:59:50.000Z
package/setup.py
uwbmrb/onedep2bmrb
ddc473a66bd31f447e7909b80f225f0fc1691d24
[ "Unlicense" ]
null
null
null
package/setup.py
uwbmrb/onedep2bmrb
ddc473a66bd31f447e7909b80f225f0fc1691d24
[ "Unlicense" ]
null
null
null
#!/usr/bin/python -u # # use with `python setup.py bdist_egg` # other targets not intended # import os import sys import shutil import glob import hashlib import setuptools # CHANGEME!!! SAS_PATH = "/share/dmaziuk/projects/sas/SAS/python/sas" SAS_DIRS = ("ddl","mmcif","nmrstar") STAROBJ_PATH = "/share/dmaziuk/project...
28.39726
92
0.624216
a33f754e07386ad1c10b9c3ccde93c2686247aa8
209
py
Python
tourism/tourism/doctype/registration/test_registration.py
namrataindictrans123/Tourism-repo
c56872933b4c9d66e94879bf6b512118fcc85c81
[ "MIT" ]
null
null
null
tourism/tourism/doctype/registration/test_registration.py
namrataindictrans123/Tourism-repo
c56872933b4c9d66e94879bf6b512118fcc85c81
[ "MIT" ]
null
null
null
tourism/tourism/doctype/registration/test_registration.py
namrataindictrans123/Tourism-repo
c56872933b4c9d66e94879bf6b512118fcc85c81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, frappe and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestRegistration(unittest.TestCase): pass
19
45
0.770335
907ca7edbead1b721b7201c641911b8eabc17985
24,024
py
Python
.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/test/test_ntpath.py
VPetras/mobile-test-app
6708dade6873ae2fb1ecb13aa70662f95fb42dc6
[ "MIT" ]
3
2019-06-25T22:14:51.000Z
2021-07-31T23:09:42.000Z
.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/test/test_ntpath.py
VPetras/mobile-test-app
6708dade6873ae2fb1ecb13aa70662f95fb42dc6
[ "MIT" ]
6
2020-01-31T18:04:48.000Z
2021-06-05T10:53:55.000Z
.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/test/test_ntpath.py
VPetras/mobile-test-app
6708dade6873ae2fb1ecb13aa70662f95fb42dc6
[ "MIT" ]
1
2019-09-30T23:47:05.000Z
2019-09-30T23:47:05.000Z
import ntpath import os import sys import unittest import warnings from test.support import TestFailed, FakePath from test import support, test_genericpath from tempfile import TemporaryFile try: import nt except ImportError: # Most tests can complete without the nt module, # but for those that require it ...
44.654275
95
0.531718
5a18f458a9181035c1446b5d16ed0bd6167b13d9
3,147
py
Python
yt_p2p/plot_scripts/plot_velocity_profiles.py
brittonsmith/yt_p2p
f85e5033cd2db8fc0bb3a2c5f7a62e3c78666d51
[ "BSD-3-Clause-Clear" ]
null
null
null
yt_p2p/plot_scripts/plot_velocity_profiles.py
brittonsmith/yt_p2p
f85e5033cd2db8fc0bb3a2c5f7a62e3c78666d51
[ "BSD-3-Clause-Clear" ]
null
null
null
yt_p2p/plot_scripts/plot_velocity_profiles.py
brittonsmith/yt_p2p
f85e5033cd2db8fc0bb3a2c5f7a62e3c78666d51
[ "BSD-3-Clause-Clear" ]
null
null
null
from matplotlib import pyplot, ticker import numpy as np import os import yt from yt.visualization.color_maps import \ yt_colormaps from yt.utilities.physical_constants import G import matplotlib as mpl mpl.rcParams['axes.unicode_minus'] = False from yt.extensions.p2p.plots import \ plot_profile_distribution,...
34.582418
84
0.623769
4ddc7deae005e3c3378c0868360751f1f7799516
2,465
py
Python
aif360/algorithms/preprocessing/disparate_impact_remover.py
vijaykeswani/AIF360
4a2ea80504e83c1152ad5f02556c3396111fc25b
[ "Apache-2.0" ]
1
2019-01-13T06:43:50.000Z
2019-01-13T06:43:50.000Z
aif360/algorithms/preprocessing/disparate_impact_remover.py
vijaykeswani/AIF360
4a2ea80504e83c1152ad5f02556c3396111fc25b
[ "Apache-2.0" ]
2
2021-08-25T16:16:43.000Z
2022-02-10T05:26:14.000Z
aif360/algorithms/preprocessing/disparate_impact_remover.py
vijaykeswani/AIF360
4a2ea80504e83c1152ad5f02556c3396111fc25b
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from aif360.algorithms import Transformer class DisparateImpactRemover(Transformer): """Disparate impact remover is a preprocessing technique th...
38.515625
80
0.684381
e0bb7e9b59b5a29191e5d390ab8dd0ad617c9292
11,222
py
Python
models/gcn.py
lixiang0526/github-segmention
8f05d0974f6153f0dcd25a2744055dbe10336294
[ "MIT" ]
1
2021-09-28T00:31:51.000Z
2021-09-28T00:31:51.000Z
models/gcn.py
FreedomLiX/github-segmention
8f05d0974f6153f0dcd25a2744055dbe10336294
[ "MIT" ]
null
null
null
models/gcn.py
FreedomLiX/github-segmention
8f05d0974f6153f0dcd25a2744055dbe10336294
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torchvision from base import BaseModel from utils.helpers import initialize_weights, set_trainable from itertools import chain ''' -> BackBone Resnet_GCN ''' class Block_Resnet_GCN(nn.Module): def __init__(self, kernel_size, in_channels, ou...
40.512635
128
0.602121
c2f16f419469aa5dbbfe3fff2897b41a98de2e11
909
py
Python
hello.py
VishaalK/PlaylistDiffer
b3bd01a93998db8def24c117623bd3d72b4f5c14
[ "MIT" ]
null
null
null
hello.py
VishaalK/PlaylistDiffer
b3bd01a93998db8def24c117623bd3d72b4f5c14
[ "MIT" ]
null
null
null
hello.py
VishaalK/PlaylistDiffer
b3bd01a93998db8def24c117623bd3d72b4f5c14
[ "MIT" ]
null
null
null
from flask import Flask, render_template import os import spotipy from spotipy.oauth2 import SpotifyClientCredentials app = Flask(__name__) @app.route('/') def hello_world(): client_credentials_manager = SpotifyClientCredentials(client_id=os.environ['client_id'], client_secret=os.environ['client_secret']) sp ...
41.318182
135
0.732673
2e125fd056125bba3a4afc665e2b018f4ea56126
6,143
py
Python
tensorflow_probability/python/sts/dynamic_regression_test.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-07-12T22:40:42.000Z
2020-07-12T22:40:42.000Z
tensorflow_probability/python/sts/dynamic_regression_test.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/sts/dynamic_regression_test.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 applicable law o...
36.349112
107
0.733192