hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
917fe1032a845f82be14cfebf3e6e2d0b85201dc
273
py
Python
src/snakes/example.py
soutys/snakes
dda708471bf8cb9aa06d00db12e689997c310db4
[ "MIT" ]
null
null
null
src/snakes/example.py
soutys/snakes
dda708471bf8cb9aa06d00db12e689997c310db4
[ "MIT" ]
null
null
null
src/snakes/example.py
soutys/snakes
dda708471bf8cb9aa06d00db12e689997c310db4
[ "MIT" ]
1
2018-11-13T10:50:25.000Z
2018-11-13T10:50:25.000Z
import os WIDTH = 120 HEIGHT = 80 def get_example(): p = os.path.join(os.path.dirname(__file__), 'example.txt.py') with open(p) as plik: data = plik.read() return data.format(**{ 'WIDTH': WIDTH, 'HEIGHT': HEIGHT })
19.5
65
0.538462
917fec0a55bb3fd91f187528c29b984bc5fe524d
9,532
py
Python
postgres/tests/test_unit.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
1
2021-06-06T23:49:17.000Z
2021-06-06T23:49:17.000Z
postgres/tests/test_unit.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
null
null
null
postgres/tests/test_unit.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import mock import psycopg2 import pytest from mock import MagicMock from pytest import fail from semver import VersionInfo from six import iteritems from datadog_checks.postgres import PostgreSql, util pytest...
38.747967
114
0.712547
9180179a986f852b5829ef04dfeb2a4bdb5f38f9
2,222
py
Python
tests/test_tagext.py
frnsys/mwlib_simple
358e06c3f1d80398cdd3a1f9ccbd25cd9adcbcc5
[ "Unlicense" ]
1
2019-02-04T15:09:28.000Z
2019-02-04T15:09:28.000Z
tests/test_tagext.py
frnsys/mwlib_simple
358e06c3f1d80398cdd3a1f9ccbd25cd9adcbcc5
[ "Unlicense" ]
null
null
null
tests/test_tagext.py
frnsys/mwlib_simple
358e06c3f1d80398cdd3a1f9ccbd25cd9adcbcc5
[ "Unlicense" ]
null
null
null
#! /usr/bin/env py.test # -*- coding: utf-8 -*- # Copyright (c) 2007-2009 PediaPress GmbH # See README.rst for additional licensing information. from mwlib import uparser from mwlib import parser parse = uparser.simpleparse def test_rot13(): r = parse("""<rot13>test</rot13>""") # grfg txt = [x.caption for ...
26.452381
372
0.637714
9180226dc86c46c0d45313370ca134bdf7823249
26
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/TargetLeftHand/target_left_hand.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/TargetLeftHand/target_left_hand.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/TargetLeftHand/target_left_hand.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class TargetLeftHand: pass
26
26
0.884615
9180524f1cbd08df679149a349ce08c1a93f2f00
6,211
py
Python
benchmark.py
jsemoun/BaseQuery
7b231dbbe610312713125653eed4e0d86a61c6ad
[ "MIT" ]
1
2022-01-26T05:59:25.000Z
2022-01-26T05:59:25.000Z
benchmark.py
jsemoun/BaseQuery
7b231dbbe610312713125653eed4e0d86a61c6ad
[ "MIT" ]
1
2020-02-29T16:04:47.000Z
2020-02-29T16:04:47.000Z
benchmark.py
jsemoun/BaseQuery
7b231dbbe610312713125653eed4e0d86a61c6ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 try: import shutil from pysort import * from folderPrimer import * except Exception as e: print(e) exit(1) """ Author Github: https://github.com/g666gle Author Twitter: https://twitter.com/g666g1e Date: 12/1/2019 Description: This file is used by ru...
52.193277
194
0.539044
9180626f2990ef84adf27ee42f668dc1f081c584
1,939
py
Python
virtual/lib/python3.8/site-packages/importlib_resources/tests/test_path.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
18,636
2017-12-06T14:53:18.000Z
2022-03-31T13:12:34.000Z
virtual/lib/python3.8/site-packages/importlib_resources/tests/test_path.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
3,640
2017-12-06T16:58:35.000Z
2022-03-31T22:20:57.000Z
virtual/lib/python3.8/site-packages/importlib_resources/tests/test_path.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
1,987
2017-12-06T15:04:51.000Z
2022-03-26T10:05:15.000Z
import io import unittest import importlib_resources as resources from . import data01 from . import util class CommonTests(util.CommonTests, unittest.TestCase): def execute(self, package, path): with resources.path(package, path): pass class PathTests: def test_reading(self): #...
31.274194
78
0.647241
91806f0319a0061cfc83cc8385d6417c0cf5e41d
311
py
Python
onadata/apps/main/signals.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/main/signals.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/main/signals.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import def set_api_permissions(sender, instance=None, created=False, **kwargs): from onadata.libs.utils.user_auth import set_api_permissions_for_user if created: set_api_permissions_for_user(instance)
34.555556
82
0.800643
918078db3e2edfff4e3ca24333dc2a1bc71415a0
1,294
py
Python
backend/api/app/api/v1/resources/sources.py
Anyesh/mychef
7d83f947e939847d7f41df9e8fd174cf3f914c46
[ "MIT" ]
null
null
null
backend/api/app/api/v1/resources/sources.py
Anyesh/mychef
7d83f947e939847d7f41df9e8fd174cf3f914c46
[ "MIT" ]
null
null
null
backend/api/app/api/v1/resources/sources.py
Anyesh/mychef
7d83f947e939847d7f41df9e8fd174cf3f914c46
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.exc import IntegrityError from sqlalchemy.ext.asyncio.session import AsyncSession from starlette.status import ( HTTP_200_OK, HTTP_201_CREATED, HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND, ) from app.core.exceptions import DoesNotExist ...
34.052632
82
0.774343
918085bbb0264e12ffba41895f14119698189e23
9,439
py
Python
dataloader/image_folder.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
5
2019-12-23T05:13:15.000Z
2020-04-09T03:47:53.000Z
dataloader/image_folder.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
null
null
null
dataloader/image_folder.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
null
null
null
############################################################################### # Code from # https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py # Modified the original code so that it also loads images from the current # directory as well as the subdirectories ################################...
36.444015
123
0.600805
91809463800676169db2a5b56ad21bbfdb4df38c
5,768
py
Python
services/traction/acapy_client/api/basicmessage_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/api/basicmessage_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/api/basicmessage_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
38.198675
124
0.554438
9180aa142303b07f26be3a216967e07bfb41c472
1,033
py
Python
bin/zp_into_head.py
wisemanp/des_stacks
3657dc5abe1003e54c56e689348054c7d49c6e5e
[ "MIT" ]
1
2019-10-23T11:04:15.000Z
2019-10-23T11:04:15.000Z
bin/zp_into_head.py
wisemanp/des_stacks
3657dc5abe1003e54c56e689348054c7d49c6e5e
[ "MIT" ]
null
null
null
bin/zp_into_head.py
wisemanp/des_stacks
3657dc5abe1003e54c56e689348054c7d49c6e5e
[ "MIT" ]
null
null
null
#!/home/wiseman/anaconda3/bin/python import os import glob import astropy.io.fits as fits import numpy as np outdir = '/media/data3/wiseman/des/coadding/stacks/' years = ['1','2','3','4','none'] fields = ['E1','E2','S1','S2','C1','C2','C3','X1','X2','X3'] bands = ['g','r','i','z'] chips = range(1,63) for y in years: ...
34.433333
107
0.484027
9180bceaa442a81a0b4eef66bb7c22b99fc9fa88
352
py
Python
core/programs/views.py
lottspot/prevention-point
e4d5eaa437c3e979e8585bdada4efd33e995e39e
[ "MIT" ]
1
2020-07-18T02:14:51.000Z
2020-07-18T02:14:51.000Z
core/programs/views.py
lottspot/prevention-point
e4d5eaa437c3e979e8585bdada4efd33e995e39e
[ "MIT" ]
null
null
null
core/programs/views.py
lottspot/prevention-point
e4d5eaa437c3e979e8585bdada4efd33e995e39e
[ "MIT" ]
1
2020-02-22T18:21:04.000Z
2020-02-22T18:21:04.000Z
from core.viewsets import ModelViewSet from rest_framework.response import Response from core.models import Program, Service from core.programs.serializer import ProgramSerializer from core.services.serializers import ServiceSerializer class ProgramViewSet(ModelViewSet): queryset = Program.objects.all() seria...
32
55
0.840909
9180de3a8c8987c03f91e181bf2b4bc2be974de5
1,124
py
Python
chapter10/exercises/test.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/test.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/test.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
class Contact: min_session_length = 0.5 max_session_length = 3.5 @staticmethod def validate_session_length(session_length): ''' Validates a session length and returns True if the session is valid or False if not ''' if session_length < Contact.min_sessi...
28.1
63
0.617438
9180eefb493c07d970629d4900984d17b63b989b
2,547
py
Python
ann/backbone_utils.py
yt7589/codis
0b480b1d93235593503d34fe7c76b6188479f328
[ "Apache-2.0" ]
null
null
null
ann/backbone_utils.py
yt7589/codis
0b480b1d93235593503d34fe7c76b6188479f328
[ "Apache-2.0" ]
null
null
null
ann/backbone_utils.py
yt7589/codis
0b480b1d93235593503d34fe7c76b6188479f328
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from torch import nn from torchvision.ops import misc as misc_nn_ops from torchvision.models import resnet from ann.feature_pyramid_network import FeaturePyramidNetwork, LastLevelMaxPool from ann.intermediate_layer_getter import IntermediateLayerGetter class BackboneW...
39.184615
84
0.687083
91814bc355f9236f371b27bafdbd96f52d41e4d3
5,603
py
Python
pytype/tests/py3/test_async_generators.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py3/test_async_generators.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/py3/test_async_generators.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests for async generators.""" from pytype.tests import test_base class AsyncGeneratorFeatureTest(test_base.TargetPython3FeatureTest): """Tests for async iterable, iterator, context manager, generator.""" def testEmptyAnnotation(self): self.Check(""" from typing import AsyncIterator, AsyncIterable,...
26.182243
99
0.573978
9181563556e614b38854739cd5a302c376f60157
461
py
Python
src/types/current_turn.py
gak/giant-multiplayer-robot-helper
c903b094a6f03beb155d75d56ff8ef6554f3e320
[ "MIT" ]
2
2016-09-21T20:08:21.000Z
2019-12-05T18:48:37.000Z
src/types/current_turn.py
gak/giant-multiplayer-robot-helper
c903b094a6f03beb155d75d56ff8ef6554f3e320
[ "MIT" ]
2
2015-12-26T06:00:02.000Z
2021-05-19T22:58:33.000Z
src/types/current_turn.py
gak/giant-multiplayer-robot-helper
c903b094a6f03beb155d75d56ff8ef6554f3e320
[ "MIT" ]
1
2015-12-26T04:35:37.000Z
2015-12-26T04:35:37.000Z
import arrow class CurrentTurn(object): def parse(self, data): self.expires = data.get('Expires') self.is_first_turn = data.get('IsFirstTurn') self.number = data.get('Number') self.player_number = data.get('PlayerNumber') self.skipped = data.get('Skipped') self.star...
30.733333
53
0.616052
9181564ba3cffc7eee272abe5d2314a960fbd78c
12,704
py
Python
env/Lib/site-packages/azure/servicemanagement/schedulermanagementservice.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/servicemanagement/schedulermanagementservice.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/servicemanagement/schedulermanagementservice.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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://w...
38.969325
93
0.639405
918179aee4ea0571f31dc1bdfd650e43e73a98f9
2,318
py
Python
google-cloud-sdk/.install/.backup/lib/surface/app/instances/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/app/instances/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/app/instances/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google 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 or ag...
38
74
0.651424
9181861e1e707f07b2a0e11e4efe672bbb86bde9
4,016
py
Python
vpp/src/config.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
vpp/src/config.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
vpp/src/config.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os import sys DATASET_PATH_512='./data/humanprotein/input/test/' DATASET_PATH_1024='./data/humanprotein/input1024/test/' # DATASET_PATH_512='/ai/local/lichuanpeng/DataSet/Kaggle/HumanProtein/input/test/' # DATASET_PATH_1024='/ai/local/lichuanpeng/DataSet/Kaggle/HumanProtein/input1024/test/' class BaseConfig():...
35.857143
109
0.650398
91818907dea7f096303ecd79ecc9c02e51294bd0
2,806
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_geo_point.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_geo_point.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_geo_point.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
33.807229
103
0.613329
9181a19290e6eb85a947eea1104ad025614cb23a
6,794
py
Python
seqio/beam_utils_test.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
144
2021-04-16T00:43:10.000Z
2022-03-21T08:51:27.000Z
seqio/beam_utils_test.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
49
2021-04-26T06:28:51.000Z
2022-03-28T23:55:16.000Z
seqio/beam_utils_test.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
13
2021-04-27T10:28:27.000Z
2022-03-10T18:43:37.000Z
# Copyright 2021 The SeqIO 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 or agreed to in wr...
33.97
78
0.553724
9181c9bd4a4497dbf22a1f0935795c65533f08d8
3,813
py
Python
tensorflow/tools/test/check_futures_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/tools/test/check_futures_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/tools/test/check_futures_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 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...
35.305556
80
0.675846
9181d5d35ede68be349e01668d3af7542bfbfe7d
8,080
py
Python
sdks/python/appcenter_sdk/models/DistributionGroupRelease.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/DistributionGroupRelease.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/DistributionGroupRelease.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class DistributionGr...
30.722433
135
0.620297
9181f87446d3d9fd7a5fbf748fe6c585c2f8c9c4
903
py
Python
preprocessing/smri/utils/parcellation.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
null
null
null
preprocessing/smri/utils/parcellation.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
1
2021-08-12T07:54:37.000Z
2021-08-12T07:54:37.000Z
preprocessing/dwi/utils/parcellation.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
1
2021-08-08T11:56:19.000Z
2021-08-08T11:56:19.000Z
from pathlib import Path import pandas as pd parcellation_fname = Path( "/media/groot/Data/Parcellations/MNI/BN_Atlas_274_combined_1mm.nii.gz" ) parcellation_labels = pd.read_csv( "/media/groot/Data/Parcellations/MNI/BNA_with_cerebellum.csv", index_col=0 ) def parcellate_hemisphere(roiname: str): """ ...
22.02439
78
0.655592
91820dc6f65bbd6285b59224a6d320ae8400bf88
7,762
py
Python
docs/conf.py
dapetri/coin-it
933b56a85abca9e5130d7a657c9524e76bc09c35
[ "MIT" ]
null
null
null
docs/conf.py
dapetri/coin-it
933b56a85abca9e5130d7a657c9524e76bc09c35
[ "MIT" ]
null
null
null
docs/conf.py
dapetri/coin-it
933b56a85abca9e5130d7a657c9524e76bc09c35
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # coin-it documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a...
31.681633
83
0.705102
9182469ef9e3a014f4a292785f52dba74e09f250
2,053
py
Python
rocrate/model/softwareapplication.py
simleo/ro-crate-py
99ebd922a072b49f91c26ff63f2d3aa2df6fe8e1
[ "Apache-2.0" ]
null
null
null
rocrate/model/softwareapplication.py
simleo/ro-crate-py
99ebd922a072b49f91c26ff63f2d3aa2df6fe8e1
[ "Apache-2.0" ]
null
null
null
rocrate/model/softwareapplication.py
simleo/ro-crate-py
99ebd922a072b49f91c26ff63f2d3aa2df6fe8e1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2021 The University of Manchester, UK # Copyright 2020-2021 Vlaams Instituut voor Biotechnologie (VIB), BE # Copyright 2020-2021 Barcelona Supercomputing Center (BSC), ES # Copyright 2020-2021 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT # # Licensed under the Apache Lic...
25.987342
98
0.669264
9182722f17605cb08b0974e8e7848ae923488069
1,234
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/models/_models.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/models/_models.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/models/_models.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
34.277778
94
0.589141
91829b06f839be2f23413ea476083b3183ccb01f
186
py
Python
hw4/cs285/envs/ant/__init__.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
91
2020-06-13T16:26:42.000Z
2022-03-31T02:49:30.000Z
hw4/cs285/envs/ant/__init__.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
8
2020-09-26T01:29:18.000Z
2022-02-10T02:07:53.000Z
hw4/cs285/envs/ant/__init__.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
16
2020-08-04T01:17:45.000Z
2022-02-24T04:51:41.000Z
from gym.envs.registration import register register( id='ant-cs285-v0', entry_point='cs285.envs.ant:AntEnv', max_episode_steps=1000, ) from cs285.envs.ant.ant import AntEnv
20.666667
42
0.741935
9182aa6c1f41ef1c9dca9ec532feb43c29ab4026
30,381
py
Python
tests/test_updater_root_rotation_integration.py
maoyangLiu/tuf
420937a96d19ae0aa6681282e57bb78f364c609b
[ "Apache-2.0", "MIT" ]
1
2021-04-30T22:25:14.000Z
2021-04-30T22:25:14.000Z
tests/test_updater_root_rotation_integration.py
sashka3076/tuf
52207862008cc54db8a43e1543a653be0d0333f7
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_updater_root_rotation_integration.py
sashka3076/tuf
52207862008cc54db8a43e1543a653be0d0333f7
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 - 2017, New York University and the TUF contributors # SPDX-License-Identifier: MIT OR Apache-2.0 """ <Program Name> test_updater_root_rotation_integration.py <Author> Evan Cordell. <Started> August 8, 2016. <Copyright> See LICENSE-MIT OR LICENSE for licensing informa...
43.839827
84
0.727692
9182ad4835c8f4841aafe59e5685018c9777dbb2
4,369
py
Python
experiments/steven/online-vae/pusher/online-vae-state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/online-vae/pusher/online-vae-state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/online-vae/pusher/online-vae-state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp # from multiworld.envs.mujoco.sawyer_xyz.sawyer_pick_and_place import \ # SawyerPickAndPlaceEnv, SawyerPickAndPlaceEnvYZ from rlkit.envs.mujoco.sawyer_push_and_reach_env import ( SawyerPushAndReachXYEasyEnv ) from multiworld.envs.mujoco.sawyer_xyz.sawyer_reach import ( ...
35.520325
90
0.594873
91830432fa66f0330ac61abe5160734f95c0a5c1
4,121
py
Python
tests/test_process.py
achennu/microbenthos
c83fb60d05b5614546466601e973721640e685d4
[ "MIT" ]
3
2018-04-23T13:51:36.000Z
2021-08-05T01:53:51.000Z
tests/test_process.py
achennu/microbenthos
c83fb60d05b5614546466601e973721640e685d4
[ "MIT" ]
5
2018-04-09T20:08:40.000Z
2018-05-04T23:08:50.000Z
tests/test_process.py
achennu/microbenthos
c83fb60d05b5614546466601e973721640e685d4
[ "MIT" ]
2
2018-04-09T20:11:50.000Z
2021-08-06T03:34:06.000Z
import mock import pytest import sympy as sp from microbenthos import Process, Expression, ProcessEvent @pytest.fixture() def proc(): return Process(expr=dict(formula='x*y*z**3')) class TestProcess: def fail(self): pytest.xfail(reason='Not implemented') @pytest.mark.parametrize( 'expr'...
27.844595
93
0.58117
91830c1773939c42ecdab5304513ed3c5267222e
4,519
py
Python
python-code/opencv-learning/tiny-apps/hand_detection.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opencv-learning/tiny-apps/hand_detection.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opencv-learning/tiny-apps/hand_detection.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
#coding:utf-8 ''' https://github.com/arijitx/HandGesturePy/blob/master/hand_detection.py ''' """ #Author : Arijit Mukherjee #Date : June 2016 #B.P. Poddar Institute of Management and Technology #Inteligent Human-Computer Interaction with depth prediction using normal webcam and IR leds #Inspired by : http://research....
21.018605
92
0.704802
918313720e4ccd7cc6c7bef1b14bfbcebd9eb81b
999
py
Python
mesonwrap/tools/watching.py
mesonbuild/wrapweb
c616627d7448fcadd601e838bedf1d717474cb1c
[ "Apache-2.0" ]
22
2015-05-30T12:40:58.000Z
2020-01-02T10:46:11.000Z
mesonwrap/tools/watching.py
mesonbuild/wrapweb
c616627d7448fcadd601e838bedf1d717474cb1c
[ "Apache-2.0" ]
102
2015-05-30T17:12:02.000Z
2020-01-25T11:20:35.000Z
mesonwrap/tools/watching.py
mesonbuild/wrapweb
c616627d7448fcadd601e838bedf1d717474cb1c
[ "Apache-2.0" ]
8
2018-02-27T14:59:24.000Z
2020-01-24T18:13:16.000Z
import argparse from mesonwrap.tools import environment from mesonwrap.tools import repoinit def get_repositories(gh, organization='mesonbuild'): org = gh.get_organization(organization) team = org.get_team(repoinit.maintainers_team_id[organization]) return team.get_repos() def preamble(prog, args): ...
28.542857
69
0.704705
918357a8f758a85af3915b4afb231d68681eb0bc
6,949
py
Python
docs/source/conf.py
FrancoisLem/CarbonAI
a1c75a735e0050aa45291936020f373aaeb3a15b
[ "MIT" ]
18
2021-10-20T08:57:45.000Z
2022-03-04T18:49:34.000Z
docs/source/conf.py
FrancoisLem/CarbonAI
a1c75a735e0050aa45291936020f373aaeb3a15b
[ "MIT" ]
18
2021-10-04T17:45:30.000Z
2022-01-26T10:23:09.000Z
docs/source/conf.py
FrancoisLem/CarbonAI
a1c75a735e0050aa45291936020f373aaeb3a15b
[ "MIT" ]
7
2021-10-04T18:35:34.000Z
2022-02-07T18:08:13.000Z
# type: ignore # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup --------------------------------------------------------...
32.933649
81
0.647863
918360d651274e14498f9860ebf59cdc037012e3
27,620
py
Python
research/object_detection/exporter.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
2
2021-12-01T12:24:57.000Z
2021-12-08T14:10:46.000Z
research/object_detection/exporter.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
1
2020-11-17T09:35:24.000Z
2020-11-17T09:35:24.000Z
research/object_detection/exporter.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
null
null
null
# 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 # # Unless required by applica...
42.039574
94
0.711296
918363e058b7c05d3eba8d851666f6e34160e078
9,805
py
Python
mapclientplugins/saveargondocumentstep/resources_rc.py
mapclient-plugins/mapclientplugins.saveargondocumentstep
0b34cc1541f67b7babb88ef3aef3e157daa0e385
[ "Apache-2.0" ]
null
null
null
mapclientplugins/saveargondocumentstep/resources_rc.py
mapclient-plugins/mapclientplugins.saveargondocumentstep
0b34cc1541f67b7babb88ef3aef3e157daa0e385
[ "Apache-2.0" ]
null
null
null
mapclientplugins/saveargondocumentstep/resources_rc.py
mapclient-plugins/mapclientplugins.saveargondocumentstep
0b34cc1541f67b7babb88ef3aef3e157daa0e385
[ "Apache-2.0" ]
null
null
null
# Resource object code (Python 3) # Created by: object code # Created by: The Resource Compiler for Qt version 5.15.2 # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = b"\ \x00\x00\x0b&\ \x89\ PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\ \x00\x00@\x00\x00\x00@\x08\x0...
43.384956
96
0.714227
918390daf19d1fc24d75fa73700311731840b01d
1,533
py
Python
appengine/predator/app/common/model/test/crash_config_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/app/common/model/test/crash_config_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/app/common/model/test/crash_config_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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. import re from google.appengine.api import users from analysis.type_enums import CrashClient from common.appengine_testcase import AppengineTestCase from c...
23.584615
74
0.639269
9183bc4f49d819df8d86c51a17acd52c3550d828
1,868
py
Python
gassmnv.py
FankaRoy/pyrockphy
c29ebc3de25b4526b396fd477fb5dd7064cb0bda
[ "MIT" ]
null
null
null
gassmnv.py
FankaRoy/pyrockphy
c29ebc3de25b4526b396fd477fb5dd7064cb0bda
[ "MIT" ]
null
null
null
gassmnv.py
FankaRoy/pyrockphy
c29ebc3de25b4526b396fd477fb5dd7064cb0bda
[ "MIT" ]
1
2020-02-26T18:56:29.000Z
2020-02-26T18:56:29.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 12 05:23:16 2018 Python code by: Fanka, W. Roye T. Ref: MATLAB code by T. Mukerji; function [vp2,vs2,ro2,k2]=gassmnv(vp1,vs1,ro1,rofl1,kfl1,rofl2,kfl2,k0,\ phi) """ #import matplotlib.pyplot as plt import numpy a...
36.627451
80
0.476445
9183d1c0330a150f226eacccc374a06a3f41d538
1,896
py
Python
ibis/backends/hdf5/__init__.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/hdf5/__init__.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/hdf5/__init__.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
import pandas as pd import ibis.expr.operations as ops import ibis.expr.schema as sch from ibis.backends.base_file import FileClient from ibis.backends.pandas.core import execute, execute_node def connect(path): """Create a HDF5Client for use with Ibis Parameters ---------- path: str or pathlib.Path...
24.307692
78
0.614979
9183d96a2984eec98416aba7b1bb3e5189924e61
14,275
py
Python
IPython/core/tests/test_run.py
damianavila/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
IPython/core/tests/test_run.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/core/tests/test_run.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
1
2020-11-19T05:18:41.000Z
2020-11-19T05:18:41.000Z
# encoding: utf-8 """Tests for code execution (%run and related), which is particularly tricky. Because of how %run manages namespaces, and the fact that we are trying here to verify subtle object deletion and reference counting issues, the %run tests will be kept in this separate file. This makes it easier to aggreg...
31.100218
94
0.578424
9184040a54246bfa4efe4d255c5ff251673935d3
19,417
py
Python
tools/history-migration/src/kilda/history_migration/mapper.py
mfyuce/open-kilda
44f0580c028b8b56aa59536e62003bc416f07180
[ "Apache-2.0" ]
70
2017-10-10T12:59:21.000Z
2022-03-16T13:19:34.000Z
tools/history-migration/src/kilda/history_migration/mapper.py
mfyuce/open-kilda
44f0580c028b8b56aa59536e62003bc416f07180
[ "Apache-2.0" ]
2,433
2017-10-09T08:22:14.000Z
2022-03-31T07:57:24.000Z
tools/history-migration/src/kilda/history_migration/mapper.py
mfyuce/open-kilda
44f0580c028b8b56aa59536e62003bc416f07180
[ "Apache-2.0" ]
65
2017-10-09T07:53:37.000Z
2022-03-16T12:35:18.000Z
# Copyright 2021 Telstra Open Source # # 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.024119
80
0.696658
91842109f65f996318ff1051d66128752977bdcd
590
py
Python
App0/migrations/0032_auto_20210205_0114.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/migrations/0032_auto_20210205_0114.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/migrations/0032_auto_20210205_0114.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-04 23:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App0', '0031_orders_discount_per'), ] operations = [ migrations.AlterField( model_name='products', name='image_0', ...
24.583333
85
0.586441
9184658ab68ed1179f237d7a042a662b4b469c6c
815
py
Python
config.py
shureim/News-Highlights
371163656101b096b40f2f8c796dc27761803745
[ "MIT" ]
null
null
null
config.py
shureim/News-Highlights
371163656101b096b40f2f8c796dc27761803745
[ "MIT" ]
null
null
null
config.py
shureim/News-Highlights
371163656101b096b40f2f8c796dc27761803745
[ "MIT" ]
null
null
null
import os class Config: """ General configuration of parent class """ NEWS_API_BASE_URL = 'https://newsapi.org/v2/sources?apiKey={}' NEWS_API_TOP_HEADING_URL = 'https://newsapi.org/v2/top-headlines?sources={}&apiKey={}' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') SECRET_KEY = os.environ.g...
22.027027
90
0.676074
91846975fab9146611a27f16483dac329c20cfb3
6,229
py
Python
assemblyline/remote/datatypes/exporting_counter.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/remote/datatypes/exporting_counter.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/remote/datatypes/exporting_counter.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
import collections import logging import pprint import threading # use pytz (as demanded by apschedular) to ensure the timezone is set, # boxes with weird/new/different default timezone values can break things # if a value APS likes isn't set explicitly import pytz from assemblyline.common import forge from assemblyl...
35.19209
110
0.644084
918473b9ee86381a16b724120a38b02532945035
635
py
Python
project/sound_store/validators.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
project/sound_store/validators.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
project/sound_store/validators.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from .src.utils.helper import is_key def validate_provider_field(instance): pass def clean_primary_key(instance, force_insert, force_update): _id = instance.pk if _id is None: # INSERT operation - autoincrement primary key # don't need t...
27.608696
95
0.63937
9184820957550f328ce0c70de0b9b73a283cdb77
4,029
py
Python
attic/tests/flatten/test_XTP-1207.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
null
null
null
attic/tests/flatten/test_XTP-1207.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
3
2019-10-25T13:38:56.000Z
2022-03-30T09:13:33.000Z
attic/tests/post-deployment/tests/acceptance/end_uses/conduct_observation/edit_subarray_resources/test_XTP-1207.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
2
2019-11-04T09:59:06.000Z
2020-05-07T11:05:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_calc ---------------------------------- Acceptance tests for MVP. """ import random import os import signal from concurrent import futures from assertpy import assert_that from pytest_bdd import scenario, given, when, then import pytest from tango import DevicePro...
39.116505
138
0.754033
918485e79aa3cfcd4e28d8916333a59709344965
2,211
py
Python
retrobiocat_web/app/retrobiocat/functions/get_images.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/app/retrobiocat/functions/get_images.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/app/retrobiocat/functions/get_images.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from rdkit.Chem import rdDepictor import os from rdkit import Chem from rdkit.Chem import Draw, AllChem from rdkit.Chem.Draw import rdMolDraw2D from rdkit.Chem import rdChemReactions def apply_smiles_to_filename_check(smile): new_string = '' smile = str(smile) for letter in smile: if letter == '#'...
31.140845
117
0.670285
918491032d0a945ad559034219a6b7c5c49b7b58
2,487
py
Python
experiments/references/contextual_mdp/fetch_reach.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/references/contextual_mdp/fetch_reach.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/references/contextual_mdp/fetch_reach.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.contextual.gym_goal_env import ( sac_on_gym_goal_env_experiment ) from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( env_id='FetchReach-v1', qf_kwargs=dict( hidden_sizes=[40...
28.586207
72
0.530358
9184d4ff0f5eef250cb5e0b559b68045f636e0cd
3,774
py
Python
glauconite/operators/filter/filter_classes/filter_children_classes/ghose_filter.py
Jacob-Spiegel/GlauconiteFilterer
90cad22a74b648841bc0552bc859df412bf93bca
[ "Apache-2.0" ]
null
null
null
glauconite/operators/filter/filter_classes/filter_children_classes/ghose_filter.py
Jacob-Spiegel/GlauconiteFilterer
90cad22a74b648841bc0552bc859df412bf93bca
[ "Apache-2.0" ]
null
null
null
glauconite/operators/filter/filter_classes/filter_children_classes/ghose_filter.py
Jacob-Spiegel/GlauconiteFilterer
90cad22a74b648841bc0552bc859df412bf93bca
[ "Apache-2.0" ]
1
2020-10-20T17:03:14.000Z
2020-10-20T17:03:14.000Z
"""Ghose Filter This runs a Ghose filter for drug-likeliness. Ghose filter filters molecules by Molecular weight (MW), the number of atoms, and the logP value. We protonate the mol in this filter because hydrogens affect atom count. Our Ghose implementation counts hydrogens in against the total number of atoms. To pa...
34.623853
87
0.687864
9184f9490b1e7bad13a62f434d3cd2452d5e0032
17,434
py
Python
src/proxies.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
src/proxies.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
src/proxies.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
import json import random import re import time from base64 import b64decode from concurrent.futures import ThreadPoolExecutor, as_completed import requests from PyRoxy import ProxyType, Proxy import logging from logging_utils import configure_logger logger = configure_logger(__name__, logging.CRITICAL) TIMEOUT =...
50.242075
153
0.697774
9184fe5b28a66626dc2e3576ec8caa6df3232d71
3,695
py
Python
PyFunceble/syntax.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
PyFunceble/syntax.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
PyFunceble/syntax.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██...
35.190476
88
0.583221
91852b32e3521f46f1ab511c6fb3354d5e5bcf80
489
py
Python
pyhamcrest_toolbox/wrappers.py
ibolit/pyhamcrest_toolbox
1ae47130ab5cc1c9f653065906214f16946393b5
[ "BSD-3-Clause" ]
2
2018-12-19T10:38:59.000Z
2022-01-22T15:16:34.000Z
pyhamcrest_toolbox/wrappers.py
ibolit/pyhamcrest_toolbox
1ae47130ab5cc1c9f653065906214f16946393b5
[ "BSD-3-Clause" ]
1
2018-12-27T14:06:09.000Z
2018-12-28T19:51:13.000Z
pyhamcrest_toolbox/wrappers.py
ibolit/pyhamcrest_toolbox
1ae47130ab5cc1c9f653065906214f16946393b5
[ "BSD-3-Clause" ]
null
null
null
from hamcrest.core.core.isanything import IsAnything from hamcrest.core.core.isinstanceof import IsInstanceOf from pyhamcrest_toolbox.wrapper_base import MatcherPluginWrapper class InstanceOfPlugin(MatcherPluginWrapper): matcher_class = IsInstanceOf def describe_component_mismatch(self, item, mismatch_descr...
27.166667
78
0.815951
9185374c962ba5d88b3fe418579e3b899b076734
7,874
py
Python
tests/python/pants_test/backend/jvm/tasks/test_jar_create.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
tests/python/pants_test/backend/jvm/tasks/test_jar_create.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_jar_create.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from contextlib import closing from textwrap import dedent from pants.backend.codegen.thrift.java.java_thrift_library import JavaThriftLibrary from pants.backend.jvm.targets.jav...
41.010417
103
0.62827
9185388e10ad964e368be07a6a9cc5c2ae3708fa
2,275
py
Python
MachineLearning/TensorFlow/image-clssifier/GUI/tool/ui_ModelAddDialogChild.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
MachineLearning/TensorFlow/image-clssifier/GUI/tool/ui_ModelAddDialogChild.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
MachineLearning/TensorFlow/image-clssifier/GUI/tool/ui_ModelAddDialogChild.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Study\github\Lookoops\MachineLearning\TensorFlow\image-clssifier\GUI\tool\ui_ModelAddDialogChild.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui...
48.404255
157
0.727473
91853fb7883347e9a35b77fb11bcf59a56c11a59
21
py
Python
nitrile/__init__.py
barrettedwards/nitrile
60345cf75d4d91c60f79b8a74c630d3d17ddb598
[ "MIT" ]
null
null
null
nitrile/__init__.py
barrettedwards/nitrile
60345cf75d4d91c60f79b8a74c630d3d17ddb598
[ "MIT" ]
null
null
null
nitrile/__init__.py
barrettedwards/nitrile
60345cf75d4d91c60f79b8a74c630d3d17ddb598
[ "MIT" ]
null
null
null
from nitrile import *
21
21
0.809524
9185564470ab1cf27ee8bfe1e44c21bb95faa993
32,973
py
Python
api/python/tests/integration/test_packages.py
ajbouh/t4
07f5bd42b7dc403d946d05a830a26e605f4879be
[ "Apache-2.0" ]
null
null
null
api/python/tests/integration/test_packages.py
ajbouh/t4
07f5bd42b7dc403d946d05a830a26e605f4879be
[ "Apache-2.0" ]
null
null
null
api/python/tests/integration/test_packages.py
ajbouh/t4
07f5bd42b7dc403d946d05a830a26e605f4879be
[ "Apache-2.0" ]
null
null
null
""" Integration tests for T4 Packages. """ import os import pathlib from pathlib import Path import shutil import jsonlines from mock import patch, call, ANY import pytest import t4 from t4 import Package from t4.util import (QuiltException, APP_NAME, APP_AUTHOR, BASE_DIR, BASE_PATH, validate_pac...
36.636667
133
0.622358
918579f1208d2f1a1082ba206a78ef7eabb4a3af
1,577
py
Python
profile-rest-api/profiles_api/models.py
FrankthePygod/rest_api
10b4b356caa2d3672bd4e69ba2d322c1b9a66f06
[ "MIT" ]
null
null
null
profile-rest-api/profiles_api/models.py
FrankthePygod/rest_api
10b4b356caa2d3672bd4e69ba2d322c1b9a66f06
[ "MIT" ]
null
null
null
profile-rest-api/profiles_api/models.py
FrankthePygod/rest_api
10b4b356caa2d3672bd4e69ba2d322c1b9a66f06
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager class UserProfileManager(BaseUserManager): """manager for user profiles""" def create_user(self,email,name,passw...
29.754717
63
0.676601
91858d406bc47ac4ae10548e13161821c4c6af2f
11,711
py
Python
ducktape/tests/runner_client.py
imcdo/ducktape
390a72698ddbb58761e2119bac8eef2846722ac6
[ "Apache-2.0" ]
2
2020-08-31T18:22:10.000Z
2021-11-21T17:07:46.000Z
ducktape/tests/runner_client.py
ivandasch/ducktape
ae075a4bc9faf348098b3631aa9c721c4ebb5d0d
[ "Apache-2.0" ]
null
null
null
ducktape/tests/runner_client.py
ivandasch/ducktape
ae075a4bc9faf348098b3631aa9c721c4ebb5d0d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Confluent 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 writing, s...
39.036667
120
0.627957
91858eb1502da540c63034e0fa11c934842aa92d
362
py
Python
scripts/raster-processing/raster_clipping/findRasterExtents.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
10
2018-11-07T14:39:15.000Z
2022-03-30T11:27:27.000Z
scripts/raster-processing/raster_clipping/findRasterExtents.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
1
2019-09-24T07:22:33.000Z
2019-09-24T07:22:33.000Z
scripts/raster-processing/raster_clipping/findRasterExtents.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
5
2018-08-02T21:25:30.000Z
2020-08-08T18:52:50.000Z
import shapefile import argparse def get_area_extents(polygon_file): sf = shapefile.Reader(polygon_file) coordinates = sf.bbox return coordinates if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('polygon') args = parser.parse_args() polygon = args.poly...
17.238095
39
0.718232
9185c1aac448a5936ed609860a491a62379b667b
811
py
Python
SWSettings.py
StephenAWood/SWUtils
2d592e840e325e2447f05f23ef8bb6dce84716c3
[ "MIT" ]
null
null
null
SWSettings.py
StephenAWood/SWUtils
2d592e840e325e2447f05f23ef8bb6dce84716c3
[ "MIT" ]
null
null
null
SWSettings.py
StephenAWood/SWUtils
2d592e840e325e2447f05f23ef8bb6dce84716c3
[ "MIT" ]
null
null
null
# settings.py # A file to hold all of my constants. #Files and directories NHANES_DATA_PATH = '/Users/stephenwood/Dropbox/School/Current Projects/BETR Global/nhanes_data' # Time params. HOURS_IN_YEAR = 8760 DEFAULT_START_YEAR = 1930 NUMBER_OF_HUMANS = 8 # Human params HUMAN_MAX_AGE = 80 DEFAULT_AGE_AT_MODEL_START ...
18.860465
95
0.76942
91862023bb5dc8e8161e21d50ea55411692f064c
73,594
py
Python
test/runtest.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
test/runtest.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
test/runtest.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import logging import os import re import setproctitle import string import subprocess import sys import threading import time from collections import defaultdict, namedtuple, OrderedDict import nu...
29.42583
79
0.609153
91862f0cc0ba53c6b3bc31d7f5e93cbbbd7ae494
8,173
py
Python
tensorflow/contrib/signal/python/ops/shape_ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/signal/python/ops/shape_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/signal/python/ops/shape_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# 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 # # Unless required by applica...
42.567708
80
0.691912
91863e7711451f0e7703cf00ad72045f4970e80b
3,721
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_management_client_enums.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_management_client_enums.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_management_client_enums.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# 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 ...
17.306977
76
0.619726
91864528483faf2e66fe8d44fe53457cd316d4b6
2,889
py
Python
00_LIBRARIES/03_SEABORN/01_categorical_plots.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
2
2021-03-18T06:07:09.000Z
2021-05-08T22:14:14.000Z
00_LIBRARIES/03_SEABORN/01_categorical_plots.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
00_LIBRARIES/03_SEABORN/01_categorical_plots.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
# CATEGORICAL PLOTS WITH SEABORN # Santiago Garcia Arango, July 2020 import save_figure import seaborn as sns import matplotlib.pyplot as plt import pandas as pd import numpy as np import random # --------------------FIRST STEP: LOAD INFO------------------------------- # We have to load info (usually with pandas or n...
32.460674
79
0.616822
91864e8a75bedb67c30e1f2a3af3022f63710e44
14,214
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.910891
226
0.679682
91866755161f3fadaf8cf1a59d529de23bd84f26
424
py
Python
app/migrations/0004_auto_20190407_2325.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/migrations/0004_auto_20190407_2325.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/migrations/0004_auto_20190407_2325.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-07 21:25 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app', '0003_auto_20190407_1958'), ] operations = [ ...
21.2
66
0.641509
9186847ddd5fdc8f72590891c95407f50a54747a
10,853
py
Python
main.py
martin0004/drone_path_planning
b943a063c34805d5b8dcafe5facb5aee1692936e
[ "MIT" ]
null
null
null
main.py
martin0004/drone_path_planning
b943a063c34805d5b8dcafe5facb5aee1692936e
[ "MIT" ]
null
null
null
main.py
martin0004/drone_path_planning
b943a063c34805d5b8dcafe5facb5aee1692936e
[ "MIT" ]
null
null
null
from numpy.lib.function_base import median from config.config import * from enum import Enum import msgpack import time from udacidrone import Drone from udacidrone.connection import MavlinkConnection from udacidrone.messaging import MsgID from utils.frames import * from utils.mapping import * from utils.planning impor...
27.828205
106
0.587856
91869121ea1f36b3ed635a38f7e485928b2cd652
1,817
py
Python
fileUtils.py
tgadf/utils
e0176d4f8a5bed4ecc3b63cb4bf2ee1265840900
[ "MIT" ]
null
null
null
fileUtils.py
tgadf/utils
e0176d4f8a5bed4ecc3b63cb4bf2ee1265840900
[ "MIT" ]
null
null
null
fileUtils.py
tgadf/utils
e0176d4f8a5bed4ecc3b63cb4bf2ee1265840900
[ "MIT" ]
null
null
null
from os.path import basename, splitext, dirname, getsize from datetime import datetime, timedelta from fsUtils import isFile, isDir ############################################################################### # # General (get/save) # ############################################################################### d...
23.294872
79
0.556962
9186d33826ba7940f2544cc5b19a0ca8ca1d1f5b
505
py
Python
oscar/lib/python2.7/site-packages/flake8/main/cli.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/flake8/main/cli.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/flake8/main/cli.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Command-line implementation of flake8.""" from flake8.main import application def main(argv=None): # type: (Union[NoneType, List[str]]) -> NoneType """Execute the main bit of the application. This handles the creation of an instance of :class:`Application`, runs it, and then exits the app...
28.055556
79
0.655446
9186d5086da3faa19ad2730f3fbf3411715e421c
305
py
Python
graphic_templates/dot_chart/graphic_config.py
brmayes/dailygraphics-kit
ec3e4283a764b1bb519fbea67d330684100f9a70
[ "MIT" ]
1
2019-07-08T01:13:16.000Z
2019-07-08T01:13:16.000Z
graphic_templates/dot_chart/graphic_config.py
stiles/dailygraphics
9bd125b29fdd396636937eafbd7541e86ef4e8a2
[ "MIT" ]
1
2020-07-27T01:20:51.000Z
2020-07-27T01:20:51.000Z
graphic_templates/dot_chart/graphic_config.py
stiles/dailygraphics
9bd125b29fdd396636937eafbd7541e86ef4e8a2
[ "MIT" ]
1
2020-07-26T01:25:04.000Z
2020-07-26T01:25:04.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1tjL_dVh59j4-RxAR9aUXC27cLLl6q48my34hgY_ukgU' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.816393
918704e6c72b27d56458c0ae04f1141ceb668f6d
2,025
py
Python
pywick/datasets/tnt/listdataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/datasets/tnt/listdataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/datasets/tnt/listdataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
from pywick.datasets.tnt.dataset import Dataset class ListDataset(Dataset): """ Dataset which loads data from a list using given function. Considering a `elem_list` (can be an iterable or a `string` ) i-th sample of a dataset will be returned by `load(elem_list[i])`, where `load()` is a function ...
36.818182
78
0.625679
918721df1c81f918aaaa5d0d3183cf7c90e256bf
6,041
py
Python
01-Lesson-Plans/15-Algorithmic-Trading/2/Activities/02-Evr_Algo_Trading_Framework/Solved/jarvis.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/15-Algorithmic-Trading/2/Activities/02-Evr_Algo_Trading_Framework/Solved/jarvis.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/15-Algorithmic-Trading/2/Activities/02-Evr_Algo_Trading_Framework/Solved/jarvis.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
import numpy as np import pandas as pd from pathlib import Path import hvplot import hvplot.pandas def initialize(): """Initialize the dashboard, data storage, and account balances.""" # @TODO: We will complete this later! pass def build_dashboard(signals_df, portfolio_evaluation_df): """Build the d...
31.962963
112
0.688628
918742d06acafb26f7ca922cff1ee964f30dd2b6
8,077
py
Python
src/ggrc/views/converters.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/views/converters.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/views/converters.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Main view functions for import and export pages. This module handles all view related function to import and export pages including the import/export api endponts. """ from logging import getLogger imp...
34.517094
78
0.69865
9187443b28b4333f7844cfdfc2f65b55e90ee145
2,359
py
Python
test/mitmproxy/addons/test_blocklist.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/addons/test_blocklist.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/addons/test_blocklist.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
import pytest from mitmproxy.addons import blocklist from mitmproxy.exceptions import OptionsError from mitmproxy.test import taddons from mitmproxy.test import tflow @pytest.mark.parametrize( "filter,err", [ ("/~u index.html/TOOMANY/300", "Invalid number of parameters"), (":~d ~d ~d:200", "I...
33.225352
88
0.581602
91875493273fb0d0b274e274db27c923f23d3660
647
py
Python
aman/config.py
HmzAli/aman
cd82e841188e4a91356103136458beef6613e974
[ "MIT" ]
null
null
null
aman/config.py
HmzAli/aman
cd82e841188e4a91356103136458beef6613e974
[ "MIT" ]
6
2019-01-10T06:57:18.000Z
2019-12-15T07:34:49.000Z
aman/config.py
HmzAli/aman
cd82e841188e4a91356103136458beef6613e974
[ "MIT" ]
null
null
null
import os # Storage file settings HOME_DIR = os.getenv('HOME') DIR = '.aman' FILE_NAME = 'aliases' ALIAS_DIR_PATH = '{}/{}'.format(HOME_DIR, DIR) ALIAS_FILE_PATH = '{}/{}'.format(ALIAS_DIR_PATH, FILE_NAME) # CLI settings HELP_TEXT = 'Shell alias manager' USAGE_TEXT = ''' USAGE: To add / edit an alias to a singl...
20.21875
59
0.615147
918773944855de2bf5deae00fe90c2e5385f2be1
737
py
Python
py/cidoc_crm_types/properties/p38_deassigned.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p38_deassigned.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p38_deassigned.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p141_assigned import P141Assigned from dataclasses import dataclass @dataclass class P38Deassigned(P141Assigned): """ Scope note: This property records the identifier that was deassigned from an instance of E1 CRM Entity. Deassignment of an identifier may be necessary when an item is taken out of an invento...
29.48
159
0.751696
9187a86663015b3feceba5d32d7352266878c966
16,146
py
Python
user.py
jhutchings1/transfer-coronavirus-data-service
fbaa48f87e4413f68b680a9a4e2ae43a8ee13b01
[ "MIT" ]
null
null
null
user.py
jhutchings1/transfer-coronavirus-data-service
fbaa48f87e4413f68b680a9a4e2ae43a8ee13b01
[ "MIT" ]
null
null
null
user.py
jhutchings1/transfer-coronavirus-data-service
fbaa48f87e4413f68b680a9a4e2ae43a8ee13b01
[ "MIT" ]
null
null
null
import re import cognito from cognito_groups import get_group_by_name import config from logger import LOG # This class represents a user and performs # the necessary validations with cognito class User: def __init__(self, email_address): self.email_address = ( email_address.strip().lower().e...
35.253275
88
0.561068
9187b55d980979fc422b73b23cc8cbccc0f8b778
4,408
py
Python
lbrynet/tests/unit/core/test_HTTPBlobDownloader.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
lbrynet/tests/unit/core/test_HTTPBlobDownloader.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
lbrynet/tests/unit/core/test_HTTPBlobDownloader.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
from mock import MagicMock from twisted.trial import unittest from twisted.internet import defer from lbrynet.blob import BlobFile from lbrynet.core.HTTPBlobDownloader import HTTPBlobDownloader from lbrynet.tests.util import mk_db_and_blob_dir, rm_db_and_blob_dir class HTTPBlobDownloaderTest(unittest.TestCase): ...
45.916667
117
0.713702
9187b72f3681bab1f132cc5f3cb6c3d0a23d68b2
5,263
py
Python
salt/modules/rpmbuild.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/rpmbuild.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/rpmbuild.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' RPM Package builder system .. versionadded:: Beryllium This system allows for all of the components to build rpms safely in chrooted environments. This also provides a function to generate yum repositories This module impliments the pkgbuild interface ''' # Import python libs from __futu...
31.51497
230
0.622269
9187c2e101aa6f158be9c4fefce07a1cffa81f92
271
py
Python
Source_Code/Python/labinstrument/tools/cardSecurity.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
null
null
null
Source_Code/Python/labinstrument/tools/cardSecurity.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
3
2018-09-21T00:57:21.000Z
2018-09-21T01:49:40.000Z
Source_Code/Python/labinstrument/tools/cardSecurity.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
null
null
null
#!/usr/bin/Python __Author__ = "Adair.l" AGILENT_CARD_OPC= '00000000000000000000000000000000' AGILENT_CARD= '4147494C454E5420544543484E4F0000' RS_CARD_OPC= '00000000000000000000000000000000' RS_CARD_SECURITY= '000102030405060708090A0B0C0D0E0F'
30.111111
56
0.778598
9187fede09a0e3b2f91051c78a022979705ddf66
21,814
py
Python
kats/metrics/metrics.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/metrics/metrics.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/metrics/metrics.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import warnings from typing import cast, Dict, Generator, Optional, Sequence, Union try: from typing import Protocol except ImportError...
28.110825
92
0.669983
91881e6a1dc2488d91e7546e40bbaa47c362dc47
811
py
Python
migrations/versions/f417d645819c_third_migration.py
savannah8/my-blog
10450afd8405e7680ad632eb40de87fc048e2b38
[ "Unlicense" ]
null
null
null
migrations/versions/f417d645819c_third_migration.py
savannah8/my-blog
10450afd8405e7680ad632eb40de87fc048e2b38
[ "Unlicense" ]
null
null
null
migrations/versions/f417d645819c_third_migration.py
savannah8/my-blog
10450afd8405e7680ad632eb40de87fc048e2b38
[ "Unlicense" ]
null
null
null
"""third Migration Revision ID: f417d645819c Revises: fa1954f63252 Create Date: 2019-06-03 12:14:21.255913 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f417d645819c' down_revision = 'fa1954f63252' branch_labels = None depends_on = None def upgrade(): ...
26.16129
85
0.696671
918827aaa3f99416c59ec14b9c7e9a97098ce841
2,318
py
Python
data_processing/extract_food101.py
mrdbourke/food-not-food
993b1adccbeb6d8a483a542e988ac18eefe7287a
[ "MIT" ]
43
2021-11-05T22:08:42.000Z
2022-03-19T07:39:51.000Z
data_processing/extract_food101.py
mrdbourke/food-not-food
993b1adccbeb6d8a483a542e988ac18eefe7287a
[ "MIT" ]
5
2021-11-06T10:10:38.000Z
2022-03-21T22:28:49.000Z
data_processing/extract_food101.py
mrdbourke/food-not-food
993b1adccbeb6d8a483a542e988ac18eefe7287a
[ "MIT" ]
12
2021-11-06T09:54:45.000Z
2022-02-03T11:01:00.000Z
""" Extracts images from Food101 into "food" image category. No sorting is required since all images are of food. Training, evaluation and test sets are ignored. Original data downloaded here: https://www.kaggle.com/dansbecker/food-101 """ import random import pathlib import argparse import os from shutil import co...
30.906667
92
0.735116
918848e7ca931351e68674db845d65fe3084c282
855
py
Python
atom/nucleus/python/test/test_order_track.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_order_track.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_order_track.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
20.853659
79
0.692398
91886980cd420b623c49f2b3e0959c4fba7b29c4
2,722
py
Python
torchblocks/callback/modelcheckpoint.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
1
2021-04-26T08:01:25.000Z
2021-04-26T08:01:25.000Z
torchblocks/callback/modelcheckpoint.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
torchblocks/callback/modelcheckpoint.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
''' Automatically save model checkpoints during training. ''' import os import torch import numpy as np import logging from ..utils.paths import ensure_dir logger = logging.getLogger(__name__) DEFAULT_SAVE_MODEL_NAME = 'checkpoint' class ModelCheckpoint(object): def __init__(self, checkpoint_dir,...
37.805556
110
0.593681
91887593923a108b3ae9e733c1a2ac103e762258
18,820
py
Python
keno/ticket.py
matthewdeanmartin/keno
04724f5ebf53b5f11d150ec587750a18d0d3fee0
[ "MIT" ]
null
null
null
keno/ticket.py
matthewdeanmartin/keno
04724f5ebf53b5f11d150ec587750a18d0d3fee0
[ "MIT" ]
17
2018-07-14T17:48:04.000Z
2020-09-16T10:25:59.000Z
keno/ticket.py
matthewdeanmartin/keno
04724f5ebf53b5f11d150ec587750a18d0d3fee0
[ "MIT" ]
null
null
null
# coding=utf-8 """ All choice that a player makes when buying a ticket. Some choices are "sucker's bets" and should not be played. """ import random from collections import OrderedDict from typing import Dict, Union, List, Set from keno.game import Keno from keno.number_machine import StaticNumbersMachine from keno.s...
32.33677
105
0.519872
91889e9a22a0ec3686158a62c678abc16b31bf4d
4,173
py
Python
examples/launch_examples/run_modes.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
examples/launch_examples/run_modes.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
examples/launch_examples/run_modes.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
""" Example of different ways to sweep hyperparameters. """ import random import numpy as np from hyperopt import hp from rlkit.misc.hypopt import optimize_and_save from rlkit.launchers.launcher_util import ( create_log_dir, create_run_experiment_multiple_seeds, ) from rlkit.launchers.launcher_util import run_e...
28.195946
76
0.484304
9188a760e0911563052968d67a912f75ec3b651c
6,735
py
Python
mtgjson5/providers/cardmarket.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
mtgjson5/providers/cardmarket.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
mtgjson5/providers/cardmarket.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
""" MKM 3rd party provider """ import base64 import io import logging import math import os import pathlib import zlib from typing import Any, Dict, List, Optional, Union import pandas from mkmsdk.api_map import _API_MAP from mkmsdk.mkm import Mkm from singleton_decorator import singleton from ..classes import Mtgjso...
32.694175
86
0.604454
918911d3a963468baa88b6229e25e5bf7e92182a
12,586
py
Python
src/python/pants/option/custom_types.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/option/custom_types.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/option/custom_types.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import re from enum import Enum from typing import Dict, Iterable, List, Pattern, Sequence from pants.base.deprecated import warn_or_error from pants.option.errors import ParseE...
36.693878
100
0.692039
9189188e58ac9154ee2bf92bccb2aa28c19ea495
2,254
py
Python
leetcode_python/Math/global-and-local-inversions.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Math/global-and-local-inversions.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Math/global-and-local-inversions.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 class Solution(object): def isIdealPermutation(self, A): for idx, value in enumerate(A): if abs(idx - value) > 1: return False return True # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/82915149 class Solution(object): def isIdealPermutation(self, A):...
28.531646
129
0.574978
91891d24be5d8daf56b10c48ec9a4f40c4432f15
18,663
py
Python
lib/datasets/school_lunch.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
lib/datasets/school_lunch.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
lib/datasets/school_lunch.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # ----------------------------------------------------...
39.125786
138
0.564379
918924e603f738e8e232abb9c710069256ffdc26
34,932
py
Python
jina/types/document/__init__.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-25T19:28:50.000Z
2021-02-25T19:28:50.000Z
jina/types/document/__init__.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-27T05:56:45.000Z
2021-02-27T05:57:03.000Z
jina/types/document/__init__.py
deepampatel/jina
97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89
[ "Apache-2.0" ]
null
null
null
import base64 import io import json import mimetypes import os import urllib.parse import urllib.request import warnings from hashlib import blake2b from typing import Union, Dict, Optional, TypeVar, Any, Callable, Sequence, Tuple import numpy as np from google.protobuf import json_format from google.protobuf.field_ma...
41.29078
245
0.600052
91894d0f564e02daefddbe894304f5278a89b563
4,366
py
Python
More/E00_Publications/TypeSpecimens/AmstelvarBannerOPSZ.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
More/E00_Publications/TypeSpecimens/AmstelvarBannerOPSZ.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
More/E00_Publications/TypeSpecimens/AmstelvarBannerOPSZ.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
# ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyxyz.or...
40.425926
101
0.632616
9189505c1872b6e34dcd3c52c200cb220746c870
1,986
py
Python
traversal.py
thomaslorincz/arduino-dots-and-boxes
6410ffd696ba4898a1c047ece9d9a23888539b1d
[ "Apache-2.0" ]
null
null
null
traversal.py
thomaslorincz/arduino-dots-and-boxes
6410ffd696ba4898a1c047ece9d9a23888539b1d
[ "Apache-2.0" ]
null
null
null
traversal.py
thomaslorincz/arduino-dots-and-boxes
6410ffd696ba4898a1c047ece9d9a23888539b1d
[ "Apache-2.0" ]
null
null
null
def breadth_first_search(g, v): '''Discovers all vertices in graph g reachable from vertex v and returns the search graph. Paths on the search graph are guaranteed to follow shortest paths from v. Arguments: g (UndirectedAdjacencyGraph): Graph to search in. v (int): Vertex of the graph...
31.52381
79
0.627392
91895d100ea8aad1444287946d1c5d52ddaaf249
6,790
py
Python
hasher-matcher-actioner/hmalib/lambdas/api/api_root.py
LaudateCorpus1/ThreatExchange
d25ccb0070ef0e7c72a1909610c9bc31a79d6bfc
[ "BSD-3-Clause" ]
null
null
null
hasher-matcher-actioner/hmalib/lambdas/api/api_root.py
LaudateCorpus1/ThreatExchange
d25ccb0070ef0e7c72a1909610c9bc31a79d6bfc
[ "BSD-3-Clause" ]
3
2021-08-21T07:49:33.000Z
2022-03-12T01:03:31.000Z
hasher-matcher-actioner/hmalib/lambdas/api/api_root.py
LaudateCorpus1/ThreatExchange
d25ccb0070ef0e7c72a1909610c9bc31a79d6bfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import os import bottle import boto3 import json import typing as t from apig_wsgi import make_lambda_handler from bottle import response, error from uuid import uuid4 from mypy_boto3_dynamodb.service_resource import Table from threatexchange.cont...
30.723982
105
0.72592
9189705e6fe15aa22adb04dec06b5662a5348170
1,147
py
Python
clients/client/python/test/test_submit_self_service_settings_flow_with_password_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_settings_flow_with_password_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_settings_flow_with_password_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
31
194
0.768091
91897149f4801092964d08edba36f13ce283751b
3,499
py
Python
src/CompartmentalSystems/discrete_model_run_with_gross_fluxes.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
src/CompartmentalSystems/discrete_model_run_with_gross_fluxes.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
src/CompartmentalSystems/discrete_model_run_with_gross_fluxes.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
from .model_run import ModelRun from .discrete_model_run import DiscreteModelRun ############################################################################### class DMRError(Exception): """Generic error occurring in this module.""" pass ###################################################################...
28.680328
79
0.585024
918975497df8327cbb81c5a0d00a605eaaaf4853
1,163
py
Python
tests/integration/__init__.py
FrNecas/packit
daad3f859762cd8bdf89d32365bae118ca32c31b
[ "MIT" ]
null
null
null
tests/integration/__init__.py
FrNecas/packit
daad3f859762cd8bdf89d32365bae118ca32c31b
[ "MIT" ]
null
null
null
tests/integration/__init__.py
FrNecas/packit
daad3f859762cd8bdf89d32365bae118ca32c31b
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018-2019 Red Hat, Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
44.730769
80
0.773001
918982123e15a2f3645a46a4f1beaff65f466521
1,926
py
Python
run.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
34
2016-10-26T17:19:23.000Z
2020-04-30T09:12:34.000Z
run.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
2
2019-04-09T11:50:38.000Z
2019-07-05T03:31:57.000Z
run.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
12
2017-01-14T09:40:24.000Z
2020-04-16T07:40:56.000Z
from gevent import monkey monkey.patch_all() import logging import multiprocessing import falcon import gunicorn.app.base from app import configure, create_app, start from app.config import settings class Application(gunicorn.app.base.BaseApplication): def __init__(self, app, options=None): self.optio...
26.75
67
0.627207
91899c508f7b23d55937cf99f897874f5e8d758b
12,240
py
Python
src/input_data.py
arindamsarkar93/graph-representation-learning-ladder-gamma-variational-autoencoders
eb9ba106ee1e5c3435845c5b792df6a10ff8713d
[ "MIT" ]
6
2020-12-28T09:44:59.000Z
2021-11-10T06:46:09.000Z
src/input_data.py
arindamsarkar93/graph-representation-learning-ladder-gamma-variational-autoencoders
eb9ba106ee1e5c3435845c5b792df6a10ff8713d
[ "MIT" ]
null
null
null
src/input_data.py
arindamsarkar93/graph-representation-learning-ladder-gamma-variational-autoencoders
eb9ba106ee1e5c3435845c5b792df6a10ff8713d
[ "MIT" ]
null
null
null
import numpy as np import pickle as pkl import networkx as nx import scipy.sparse as sp import scipy.io as sio def sigmoid(x): return 1/(1 + np.exp(-x)) def parse_index_file(filename): index = [] for line in open(filename): index.append(int(line.strip())) return index def sample_mask(idx, l):...
32.125984
147
0.646324