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
037744f5dba4229c0b6c5cea67c731554dec1c2e
4,134
py
Python
gwlfe/Output/Loading/SurfaceLoad_1.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
gwlfe/Output/Loading/SurfaceLoad_1.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
gwlfe/Output/Loading/SurfaceLoad_1.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
from numpy import repeat from numpy import where from numpy import zeros from gwlfe.BMPs.Stream.FilterEff import FilterEff from gwlfe.BMPs.Stream.FilterEff import FilterEff_f from gwlfe.Input.LandUse.NLU import NLU from gwlfe.Input.WaterBudget.Water import Water from gwlfe.Input.WaterBudget.Water import Water_f from g...
56.630137
117
0.613933
03774b59b4c6c799146a4e74d9ffd95863d36292
473
py
Python
pyddclient/util.py
opus49/pyddclient
21e0805c7194b53499f54aa8ffe2a5ea2227390d
[ "MIT" ]
null
null
null
pyddclient/util.py
opus49/pyddclient
21e0805c7194b53499f54aa8ffe2a5ea2227390d
[ "MIT" ]
null
null
null
pyddclient/util.py
opus49/pyddclient
21e0805c7194b53499f54aa8ffe2a5ea2227390d
[ "MIT" ]
null
null
null
"""Module for utility functions""" import requests from .urls import EXTERNAL_SERVICE_URLS def get_public_address(): """Use an external service to determine public IP address.""" for url in EXTERNAL_SERVICE_URLS: try: response = requests.post(url=url) if response.status_code =...
27.823529
65
0.649049
037766759a9258dfb25d9187a247cdbdd106d145
298
py
Python
bayesian_bootstrap/demos/linear_regression.py
vishalbelsare/bayesian_bootstrap
57a093a128ac1aaf7ff7a6cf70f6b05d684589d7
[ "MIT" ]
118
2017-06-27T05:23:12.000Z
2022-03-21T05:50:44.000Z
bayesian_bootstrap/demos/linear_regression.py
vishalbelsare/bayesian_bootstrap
57a093a128ac1aaf7ff7a6cf70f6b05d684589d7
[ "MIT" ]
18
2017-08-28T13:25:16.000Z
2022-03-12T16:58:38.000Z
bayesian_bootstrap/demos/linear_regression.py
vishalbelsare/bayesian_bootstrap
57a093a128ac1aaf7ff7a6cf70f6b05d684589d7
[ "MIT" ]
19
2017-07-06T13:10:32.000Z
2022-01-25T19:50:34.000Z
import numpy as np from matplotlib import pyplot as plt import seaborn as sns from bayesian_bootstrap.bootstrap import linear_regression X = np.linspace(-5, 5, 50) y = 2 * X + np.random.normal(0, 1, 50) results = linear_regression(X.reshape(-1, 1), y, 1000) sns.distplot(results[:, 0]) plt.show()
27.090909
58
0.734899
037768973dc5e711b35caf7686491249ccbe4125
4,257
py
Python
python/host_driver.py
aska-0096/iGEMMgen
cff8507355d86e47f5b099cd9b8a81d94fab93d7
[ "MIT" ]
20
2020-04-14T14:39:24.000Z
2022-02-23T19:37:04.000Z
python/host_driver.py
aska-0096/iGEMMgen
cff8507355d86e47f5b099cd9b8a81d94fab93d7
[ "MIT" ]
38
2020-04-21T12:23:07.000Z
2021-12-31T02:26:21.000Z
python/host_driver.py
aska-0096/iGEMMgen
cff8507355d86e47f5b099cd9b8a81d94fab93d7
[ "MIT" ]
9
2020-04-20T06:34:16.000Z
2022-02-23T19:37:06.000Z
################################################################################ # # MIT License # # Copyright (c) 2020-2021 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to dea...
46.78022
124
0.694386
037797ea8d92876db951c3ad245f30af20c897ce
1,055
py
Python
angalabiri/users/signals.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/users/signals.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/users/signals.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
from django.http import request from django.contrib.auth import get_user_model from paystackapi.paystack import Paystack from config import settings from paystackapi.customer import Customer from paystackapi.verification import Verification from django.db.models.signals import post_save, pre_save from django.dispa...
27.763158
73
0.757346
0377b4cb3bd2bf3011f298be0a1be243afeef9d8
11,165
py
Python
appengine/findit/pipelines/compile_failure/test/analyze_compile_failure_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/pipelines/compile_failure/test/analyze_compile_failure_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/pipelines/compile_failure/test/analyze_compile_failure_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 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 logging import mock from common import constants from common import monitoring from dto.start_waterfall_try_job_inputs import StartCompileTryJobInput...
37.719595
80
0.708374
0377c0248cd4a51f4ac7011c799f8779fd64c2f4
1,376
py
Python
firetower/collectors/local_logs.py
gmcquillan/firetower
7eafcaea3d428807e1b5578bd325466e47211092
[ "MIT" ]
3
2015-11-08T11:30:56.000Z
2019-11-20T07:31:47.000Z
firetower/collectors/local_logs.py
gmcquillan/firetower
7eafcaea3d428807e1b5578bd325466e47211092
[ "MIT" ]
null
null
null
firetower/collectors/local_logs.py
gmcquillan/firetower
7eafcaea3d428807e1b5578bd325466e47211092
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json from optparse import OptionParser from firetower import client from firetower.util import log_watcher class LocalLogClient(client.Client): #TODO(gavin): This isn't getting called as expected. def collect(self, file, lines): """Accept, process, emit logline data to...
28.666667
74
0.611192
0377c3f1a0ab62e31a6e5ffc517b51bb26168137
2,660
py
Python
bugzoo/client/__init__.py
pdreiter/BugZoo
e164ee67ff8bd3addfcc87b5e38ff1774992196b
[ "MIT" ]
null
null
null
bugzoo/client/__init__.py
pdreiter/BugZoo
e164ee67ff8bd3addfcc87b5e38ff1774992196b
[ "MIT" ]
null
null
null
bugzoo/client/__init__.py
pdreiter/BugZoo
e164ee67ff8bd3addfcc87b5e38ff1774992196b
[ "MIT" ]
null
null
null
import logging from .api import APIClient from .bug import BugManager from .container import ContainerManager from .file import FileManager from .dockerm import DockerManager from ..exceptions import ConnectionFailure logger = logging.getLogger(__name__) # type: logging.Logger __all__ = ['Client'] class Client(ob...
33.25
79
0.633083
0377d7a8cd613b4a60c062c47e20632999e44bbf
498
py
Python
tests/pystrings/test_name_that_number.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/pystrings/test_name_that_number.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/pystrings/test_name_that_number.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from pystrings.name_that_number import name_that_number class Tests(unittest.TestCase): def test1(self): self.assertEqual(name_that_number(0), 'zero') def test2(self): self.assertEqual(name_that_number(4), 'four') def test3(self): self.assertEqual(name_that_numbe...
23.714286
62
0.686747
0378053f183ed06151e5715ccaa9dcae824ee2b7
775
py
Python
python/ctci/7_dp/9_parenthesis.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/ctci/7_dp/9_parenthesis.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/ctci/7_dp/9_parenthesis.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
def parenthesis(n): r = set() arr = [None] * (n * 2) paren(0,n,n,arr, r) return r ## Weaving or bracktracking, you are with 2 groups of items so first you # recursively call one progressing in the first group of elements and then call # the other one recrusively too progressing on the other gorup of elements...
28.703704
79
0.637419
037809bdc5e075001d6cf451b0ddd21fa9d83bc8
923
py
Python
plan2explore/training/__init__.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
189
2020-05-13T01:12:03.000Z
2022-03-23T01:38:56.000Z
plan2explore/training/__init__.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
13
2020-05-12T22:51:07.000Z
2022-03-12T00:28:47.000Z
plan2explore/training/__init__.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
24
2020-05-14T03:47:50.000Z
2021-09-26T04:20:36.000Z
# Copyright 2019 The Dreamer Authors. Copyright 2020 Plan2Explore 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...
38.458333
95
0.7974
0378151ff84e057ef63e05e5d5d691c0c279e7ff
2,156
py
Python
tests/app/dao/test_service_permissions_dao.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
51
2016-04-03T23:36:17.000Z
2022-03-21T20:04:52.000Z
tests/app/dao/test_service_permissions_dao.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
1,335
2015-12-15T14:28:50.000Z
2022-03-30T16:24:27.000Z
tests/app/dao/test_service_permissions_dao.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
30
2016-01-08T19:05:32.000Z
2021-12-20T16:37:23.000Z
import pytest from app.dao.service_permissions_dao import ( dao_fetch_service_permissions, dao_remove_service_permission, ) from app.models import ( EMAIL_TYPE, INBOUND_SMS_TYPE, INTERNATIONAL_SMS_TYPE, LETTER_TYPE, SMS_TYPE, ) from tests.app.db import create_service, create_service_permiss...
40.679245
110
0.82885
03782ebf148ecc0739fff196920bd9f3994710a3
767
py
Python
libs/datasets/sources/hhs_hospital_dataset.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
libs/datasets/sources/hhs_hospital_dataset.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
libs/datasets/sources/hhs_hospital_dataset.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
from functools import lru_cache from covidactnow.datapublic.common_fields import CommonFields from libs.datasets import data_source from libs.datasets.timeseries import MultiRegionDataset class HHSHospitalDataset(data_source.DataSource): SOURCE_NAME = "HHSHospital" COMMON_DF_CSV_PATH = "data/hospital-hhs/tim...
30.68
77
0.760104
0378331ef0e8bd8abb0d0bbbb73c4501bdda8b94
22,560
py
Python
automaticcleanup/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
automaticcleanup/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
automaticcleanup/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- # # AutomaticCleanup E2 # # $Id$ # # Coded by JuSt611 © 2011 # Derived from Automatic Timerlist Cleanup plugin written by Dr. Best # and EMC plugin written by moveq # and placed in the public domain. They have my thanks. # Support: http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid...
47.69556
281
0.72398
03783ba80cdbe6612cf4d1f5bb10b5ea691cdfd6
3,365
py
Python
timeline/views.py
sdediego/django-post-timeline
0d7cee6ac1334747c2de8f7dc4a6e76380572977
[ "BSD-3-Clause" ]
1
2017-04-25T10:19:19.000Z
2017-04-25T10:19:19.000Z
timeline/views.py
sdediego/django-post-timeline
0d7cee6ac1334747c2de8f7dc4a6e76380572977
[ "BSD-3-Clause" ]
null
null
null
timeline/views.py
sdediego/django-post-timeline
0d7cee6ac1334747c2de8f7dc4a6e76380572977
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.shortcuts import get_list_or_404, get_object_or_404, redirect, render from django.views.decorators.http import require_http_methods from...
39.127907
87
0.722734
03785a2e6c810c24f5ef53107dd6345f28d46280
2,317
py
Python
aws_xray_sdk/core/emitters/udp_emitter.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
aws_xray_sdk/core/emitters/udp_emitter.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
aws_xray_sdk/core/emitters/udp_emitter.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
import logging import socket from aws_xray_sdk.core.daemon_config import DaemonConfig from ..exceptions.exceptions import InvalidDaemonAddressException log = logging.getLogger(__name__) PROTOCOL_HEADER = "{\"format\":\"json\",\"version\":1}" PROTOCOL_DELIMITER = '\n' DEFAULT_DAEMON_ADDRESS = '127.0.0.1:2000' clas...
32.633803
104
0.638757
03785b3123fc4e80ea638b30bd8d0f1573010d51
896
py
Python
tests/write_example.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
9
2015-01-05T08:02:34.000Z
2020-07-09T22:26:13.000Z
tests/write_example.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
3
2017-05-22T22:06:05.000Z
2020-07-11T11:10:09.000Z
tests/write_example.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-02-12T08:42:42.000Z
2020-07-09T22:27:49.000Z
from infi.asi import create_platform_command_executer from infi.asi.cdb.write import Write6Command, Write10Command from infi.asi.coroutines.sync_adapter import sync_wait from infi.asi import create_os_file from infi.exceptools import print_exc if len(sys.argv) not in (5, 6): sys.stderr.write("usage: %s device_name...
33.185185
100
0.710938
037862a9ed4fa141bd5b2689eea6e61c73becaf9
12,270
py
Python
python/redmonster/application/zfind.py
timahutchinson/redmonster
73adfb20213b89e43b950eb6a7f6525f3d11cec4
[ "CNRI-Python" ]
5
2017-03-22T21:29:40.000Z
2022-03-24T16:02:21.000Z
python/redmonster/application/zfind.py
timahutchinson/redmonster
73adfb20213b89e43b950eb6a7f6525f3d11cec4
[ "CNRI-Python" ]
4
2016-06-24T10:50:23.000Z
2016-11-09T19:48:00.000Z
python/redmonster/application/zfind.py
timahutchinson/redmonster
73adfb20213b89e43b950eb6a7f6525f3d11cec4
[ "CNRI-Python" ]
6
2016-06-21T16:52:34.000Z
2020-03-12T05:24:14.000Z
# Top level script to run redmonster as a whole. # # Required arguments: # plate (int): 4-digit plate number # mjd (int): 4-digit mjd for given plate # templates (list of strings): List of template names, as strings, to be run, up to a max of 5. Template files must be in $REDMONSTER_DIR/templates/ # # Optional argumen...
48.690476
149
0.515729
037865cc421fd91d70f77abc09f683e938182b80
25,067
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/aio/operations/_replications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/aio/operations/_replications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/aio/operations/_replications_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.249077
219
0.675669
03786b6be6d70f40d44231bb9f06deb94eff9547
676
py
Python
ncortex/optimization/ilqr.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
ncortex/optimization/ilqr.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
ncortex/optimization/ilqr.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
''' Implementation of the Iterated Linear Quadratic Regulator (iLQR) Algorithm ''' # import tensorflow as tf def run_ilqr(env, x_0, u_init): #pylint: disable=unused-argument ''' Runs the iLQR algorithm on an environment. ''' # TODO: implement iLQR # # Validate u_init shape. # N = u_init.shape[0] ...
26
78
0.633136
0378997341abc39173d7aa44cb984de19e9f191c
934
py
Python
alipay/aop/api/response/AlipayCommerceTransportAuthBindingGetResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceTransportAuthBindingGetResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceTransportAuthBindingGetResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.TransportAuthStatusData import TransportAuthStatusData class AlipayCommerceTransportAuthBindingGetResponse(AlipayResponse): def __init__(self): super(Ali...
31.133333
118
0.720557
0378a2acff1e13e9a6045584ca7fd444abb67b44
6,921
py
Python
trax/rl/space_serializer.py
GeorgeDittmar/trax
a0483a12cb7ebece40b5e302e8e81fd9249c6ef6
[ "Apache-2.0" ]
1
2020-11-20T22:29:41.000Z
2020-11-20T22:29:41.000Z
trax/rl/space_serializer.py
anilkeshwani/trax
327ca0999bcbc1794c263db6b09c3a202e82a065
[ "Apache-2.0" ]
null
null
null
trax/rl/space_serializer.py
anilkeshwani/trax
327ca0999bcbc1794c263db6b09c3a202e82a065
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 a...
31.747706
80
0.710013
0378bf2cae163ff5baf440adccb50de8b675e709
347
py
Python
Exercicios do curso em video/pythonProject/pythonexercicios/ex004.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
Exercicios do curso em video/pythonProject/pythonexercicios/ex004.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
Exercicios do curso em video/pythonProject/pythonexercicios/ex004.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
a = input('Digite algo: ') print('O tipo primitivo desse valor é', type(a)) print('Só tem espaço? ', a.isspace()) print('É um número? ', a.isnumeric()) print('É alfabético? ', a.isalpha()) print('É alfanumérico? ', a.isalnum()) print('Está em maiúsculo? ', a.isupper()) print('É minúsculo? ', a.islower()) print('Está ca...
34.7
48
0.659942
0378c70b032202e5699407ee824563e1d9c00e20
13,739
py
Python
zerver/forms.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/forms.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
4
2021-03-11T01:43:45.000Z
2021-12-02T17:56:50.000Z
zerver/forms.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
from django import forms from django.conf import settings from django.contrib.auth import authenticate from django.contrib.auth.forms import SetPasswordForm, AuthenticationForm, \ PasswordResetForm from django.core.exceptions import ValidationError from django.urls import reverse from django.core.validators import...
43.204403
109
0.651066
0378ca9af53bd8b7e33a8e02330cbf6955afdcaa
13,521
py
Python
unet.py
guoyingying432/lung-segmentation-by-unet-and-tensorflow
f766b06cac2ad46f607cd81a9fa618f32c51bfc0
[ "MIT" ]
null
null
null
unet.py
guoyingying432/lung-segmentation-by-unet-and-tensorflow
f766b06cac2ad46f607cd81a9fa618f32c51bfc0
[ "MIT" ]
null
null
null
unet.py
guoyingying432/lung-segmentation-by-unet-and-tensorflow
f766b06cac2ad46f607cd81a9fa618f32c51bfc0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 12 18:24:43 2019 The class of unet_3D for the centernet detection @author: wjcongyu """ import os import os.path as osp import tensorflow as tf from tensorflow import math from tensorflow import keras from tensorflow.keras import layers as KL from tensorflow.ke...
46.146758
149
0.560905
0378cae15dfcf5d6c605477debd45920a3087415
19,604
py
Python
vistrails/core/console_mode.py
MaritimeResearchInstituteNetherlands/VisTrails
9b42ca9b3550b599467b0c7dfa56f57bbd97a4f2
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/core/console_mode.py
VizierDB/Vistrails
895f7204fbf56a9cdf3f46afae72969c2fc64a24
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/core/console_mode.py
VizierDB/Vistrails
895f7204fbf56a9cdf3f46afae72969c2fc64a24
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
44.554545
92
0.576107
0379051c9d03d8f8b202d6d393d7ff95ed4cef0e
2,024
py
Python
micropython/tank/joystick.py
WallaceLiu/python_learn
ea8c4c20856a25491c756f74b3b572463ea7d7ea
[ "Apache-2.0" ]
null
null
null
micropython/tank/joystick.py
WallaceLiu/python_learn
ea8c4c20856a25491c756f74b3b572463ea7d7ea
[ "Apache-2.0" ]
null
null
null
micropython/tank/joystick.py
WallaceLiu/python_learn
ea8c4c20856a25491c756f74b3b572463ea7d7ea
[ "Apache-2.0" ]
1
2022-01-14T13:18:51.000Z
2022-01-14T13:18:51.000Z
# joystick control: import struct # define button code: BUTTON_A = 305 BUTTON_B = 304 BUTTON_X = 307 BUTTON_Y = 306 BUTTON_PLUS = 313 BUTTON_MINUS = 312 BUTTON_START = 317 BUTTON_HOME = 316 class JoyStick(): def __init__(self, eventFile): self.eventFile = eventFile self.buttonHandler = None ...
32.645161
60
0.503953
037945fd32070407d44cd785cd63e98ad644779b
218
py
Python
hello/hello.py
antoniaritter/cs257
8031b91104e42fa8b3d60ee4668d2f65c89572b6
[ "MIT" ]
null
null
null
hello/hello.py
antoniaritter/cs257
8031b91104e42fa8b3d60ee4668d2f65c89572b6
[ "MIT" ]
null
null
null
hello/hello.py
antoniaritter/cs257
8031b91104e42fa8b3d60ee4668d2f65c89572b6
[ "MIT" ]
1
2021-10-03T22:41:55.000Z
2021-10-03T22:41:55.000Z
# Matthew Rasmussen and Antonia Ritter # CS 257 # Jan 6 2021 print("Hello world") print("How are you doing? No really, how are you?") print("What's invisible and smells like bananas?") print("Monkey farts")
24.222222
52
0.692661
037964dd83d757e84cd338976063c4356fa7f789
2,898
py
Python
scripts/evalSimilarity.py
rakshithShetty/captionGAN
3a1d33923aee05ea46d2556f59cb892132a1e5c2
[ "MIT" ]
66
2017-12-04T05:23:29.000Z
2022-03-16T02:43:23.000Z
scripts/evalSimilarity.py
Jevin754/captionGAN
b9d1331e7a64ed20e152a749eaa1f086c0be556d
[ "MIT" ]
5
2018-02-28T06:25:53.000Z
2021-11-07T16:38:03.000Z
scripts/evalSimilarity.py
Jevin754/captionGAN
b9d1331e7a64ed20e152a749eaa1f086c0be556d
[ "MIT" ]
17
2017-11-16T01:45:15.000Z
2022-02-06T08:09:08.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import json import os import random import scipy.io import codecs from collections import defaultdict import sys #%matplotlib inline if len(sys.argv) == 1: target = '135235570_5698072cd4.jpg' elif len(sys.argv) == 2: target = sys.argv[1] el...
26.587156
91
0.676674
03798ffba5b2622b71d217328d884fa63255eb40
14,799
py
Python
demisto_sdk/commands/generate_docs/generate_integration_doc.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/generate_docs/generate_integration_doc.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/generate_docs/generate_integration_doc.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
import os.path import re from typing import Any, List, Optional, Tuple from demisto_sdk.commands.common.constants import DOCS_COMMAND_SECTION_REGEX from demisto_sdk.commands.common.tools import (LOG_COLORS, get_yaml, print_color, print_error, ...
38.141753
121
0.60923
0379a2d03fcaf03ca5288155a36f51cd05ccf38c
3,876
py
Python
test/functional/maxblocksinflight.py
CoinStudio/bitcoincashplus
ff7f57819a4cf503df7c77f7edf5fb6b5c2fb3a8
[ "MIT" ]
7
2018-01-01T12:07:09.000Z
2021-01-31T19:05:04.000Z
test/functional/maxblocksinflight.py
CoinStudio/bitcoincashplus
ff7f57819a4cf503df7c77f7edf5fb6b5c2fb3a8
[ "MIT" ]
5
2018-01-17T17:03:54.000Z
2018-06-11T15:32:48.000Z
test/functional/maxblocksinflight.py
CoinStudio/bitcoincashplus
ff7f57819a4cf503df7c77f7edf5fb6b5c2fb3a8
[ "MIT" ]
12
2017-12-28T20:33:15.000Z
2019-05-10T15:02:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from...
37.269231
93
0.614035
0379cc71b9b0f21e4d1a841ef0aed18a5c5e88ba
2,008
py
Python
venv/Lib/site-packages/pyrogram/raw/types/secure_value_type_passport.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/secure_value_type_passport.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/secure_value_type_passport.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...
31.375
103
0.635956
037a376c74993d3b6af2cff33e5861a11c0f0138
1,799
py
Python
scripts/fb/listIntersection.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/fb/listIntersection.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/fb/listIntersection.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" You are given two lists of closed intervals, firstList and secondList, where firstList[i] = [starti, endi] and secondList[j] = [startj, endj]. Each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval lists. A closed interval [a, b] (with a < b) denotes the set...
28.555556
207
0.575875
037a42bdaac2fd9fd1165e786f1afc203b6fc3af
45,025
py
Python
gender-age/fresnet.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
18
2018-04-13T02:55:03.000Z
2020-10-12T01:37:52.000Z
gender-age/fresnet.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
3
2020-07-31T02:01:33.000Z
2021-05-26T02:55:52.000Z
gender-age/fresnet.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
7
2018-08-29T06:41:19.000Z
2019-09-11T06:10:39.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.845133
107
0.422876
037a500500f33dfecb6fcb2902bcab3a120e9418
10,488
py
Python
foldit/variation_analysis.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
foldit/variation_analysis.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
foldit/variation_analysis.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
from pattern_extraction import * import argparse import numpy as np import pandas as pd import logging import json import sys import os import string import re from typing import Dict, Tuple, List from itertools import combinations, groupby, chain from util import category_lookup from plot_util import make_boxplot from...
58.592179
193
0.596301
037a8c95d1de49a0c8824f53954a07ca74148eea
52,066
py
Python
pyfstat/core.py
pepCV/PyFstat
b30919962e9730e24d514e9e9fe89289a002d428
[ "MIT" ]
null
null
null
pyfstat/core.py
pepCV/PyFstat
b30919962e9730e24d514e9e9fe89289a002d428
[ "MIT" ]
null
null
null
pyfstat/core.py
pepCV/PyFstat
b30919962e9730e24d514e9e9fe89289a002d428
[ "MIT" ]
null
null
null
""" The core tools used in pyfstat """ import os import logging import copy import glob import numpy as np import scipy.special import scipy.optimize import lal import lalpulsar import pyfstat.helper_functions as helper_functions import pyfstat.tcw_fstat_map_funcs as tcw # workaround for matplotlib on X-less remot...
36.006916
220
0.561998
037aec6cb675515b01a77ac87179874cc5055a58
1,626
py
Python
test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/__init__.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 ...
56.068966
102
0.754613
037af0dda769d3ead1a5eb94734e560539c23018
992
py
Python
sh/scripts/view_infra_networks.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
sh/scripts/view_infra_networks.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
sh/scripts/view_infra_networks.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import argparse from beautifultable import BeautifulTable from stests.core import cache from stests.core import factory from stests.core.utils import args_validator from stests.core.utils import cli as utils # CLI argument parser. ARGS = argparse.ArgumentParser("Displays set of registered networks.") # Table colu...
19.076923
70
0.652218
037b437df04730cba8c4cc947bf91294e88323d4
5,192
py
Python
qiskit/circuit/library/standard_gates/rzx.py
obliviateandsurrender/qiskit-terra
046a63632f22f9b010d793bf91a0b65d06ba8921
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/standard_gates/rzx.py
obliviateandsurrender/qiskit-terra
046a63632f22f9b010d793bf91a0b65d06ba8921
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/standard_gates/rzx.py
obliviateandsurrender/qiskit-terra
046a63632f22f9b010d793bf91a0b65d06ba8921
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
32.860759
82
0.445108
037b4f9148eff945bf1e2c9dc588d4c525101b2d
39,710
py
Python
skgstat/tests/test_variogram.py
rhugonnet/scikit-gstat
a142ca13aa3b048c46613d1247396c80c32a8145
[ "MIT" ]
null
null
null
skgstat/tests/test_variogram.py
rhugonnet/scikit-gstat
a142ca13aa3b048c46613d1247396c80c32a8145
[ "MIT" ]
null
null
null
skgstat/tests/test_variogram.py
rhugonnet/scikit-gstat
a142ca13aa3b048c46613d1247396c80c32a8145
[ "MIT" ]
null
null
null
import unittest import os import pickle import numpy as np import pandas as pd from numpy.testing import assert_array_almost_equal import matplotlib.pyplot as plt try: import plotly.graph_objects as go PLOTLY_FOUND = True except ImportError: print('No plotly installed. Skip plot tests') PLOTLY_FOUND =...
29.590164
148
0.564518
037b567a451894222d2e92dde6be9aa75e86ad72
4,177
py
Python
tests/test_open.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
38
2020-01-13T22:45:18.000Z
2022-03-31T05:44:35.000Z
tests/test_open.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
41
2020-01-27T00:57:58.000Z
2022-03-10T19:52:20.000Z
tests/test_open.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
4
2020-01-14T19:27:38.000Z
2021-08-23T03:08:37.000Z
import unittest from pathlib import Path import geowombat as gw from geowombat.data import l8_224078_20200518 import dask import xarray as xr import rasterio as rio class TestOpen(unittest.TestCase): def test_open(self): with gw.open(l8_224078_20200518) as src: self.assertEqual(src.gw.nban...
29.624113
105
0.645679
037b6809d629871e196a6cd21db1dc502be78e9a
1,403
py
Python
backend/app/main/model/weak_entities.py
mike42/bring-a-plate
a28f9b221502614466ff53c0f870bc01ca29c311
[ "MIT" ]
2
2016-10-14T03:52:17.000Z
2020-02-25T08:58:40.000Z
backend/app/main/model/weak_entities.py
mike42/bring-a-plate
a28f9b221502614466ff53c0f870bc01ca29c311
[ "MIT" ]
null
null
null
backend/app/main/model/weak_entities.py
mike42/bring-a-plate
a28f9b221502614466ff53c0f870bc01ca29c311
[ "MIT" ]
null
null
null
from sqlalchemy import Table, Column, Integer, ForeignKey, Boolean from app.main import db event_has_host = Table('event_has_host', db.Model.metadata, Column('event_id', Integer, ForeignKey('event.id')), Column('host_id', Integer, ForeignKey('host.id')) ...
56.12
119
0.598717
037b791bb2afc5691359b226d41384ec8fb5d9e3
2,589
py
Python
parsing_updated/my_parser.py
asmerdov/CS_GO_Sensors_Data_Analysis
82669ae925258e2d6f29e8c55dfe682c0c1558e2
[ "MIT" ]
1
2020-11-22T17:20:47.000Z
2020-11-22T17:20:47.000Z
parsing_updated/my_parser.py
asmerdov/CS_GO_Sensors_Data_Analysis
82669ae925258e2d6f29e8c55dfe682c0c1558e2
[ "MIT" ]
null
null
null
parsing_updated/my_parser.py
asmerdov/CS_GO_Sensors_Data_Analysis
82669ae925258e2d6f29e8c55dfe682c0c1558e2
[ "MIT" ]
null
null
null
import sys from demodump import DemoDump sys.path.append('/Users/asm/Projects/CybersportsmenDataAnalysis/parsing_updated/demoinfo-csgo-python/src/demoinfocsgo') demo = DemoDump() #Create demodump instance demo.open("pov_2_lp.dem") #open a demo file #register on events demo.register_on_netmsg(net_SetConVar, on_list_r...
31.192771
146
0.693704
037b8ddff5ee48c52b1f490aa26dd540a190eeba
14,370
py
Python
old.py
maxspencer/pdfrefiner
d2ff9ee83b10bbe8bb20c1adc189ca289afffc10
[ "MIT" ]
1
2016-06-14T11:41:57.000Z
2016-06-14T11:41:57.000Z
old.py
maxspencer/pdfrefiner
d2ff9ee83b10bbe8bb20c1adc189ca289afffc10
[ "MIT" ]
null
null
null
old.py
maxspencer/pdfrefiner
d2ff9ee83b10bbe8bb20c1adc189ca289afffc10
[ "MIT" ]
null
null
null
import collections import functools import re import subprocess import sys import tempfile from bs4 import BeautifulSoup class Box(object): def __init__(self, left, top, width = 0, height = 0, right = None, bottom = None): self.left = left self.top = top if right is not None: ...
26.9606
109
0.564997
037be52568d7d7d15f77e48f1cf10b59939a2179
18,877
py
Python
custom_components/aarlo/pyaarlo/base.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/aarlo/pyaarlo/base.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/aarlo/pyaarlo/base.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
import pprint import time from .constant import ( AIR_QUALITY_KEY, AUTOMATION_PATH, CONNECTION_KEY, DEFAULT_MODES, DEFINITIONS_PATH, HUMIDITY_KEY, MODE_ID_TO_NAME_KEY, MODE_IS_SCHEDULE_KEY, MODE_KEY, MODE_NAME_TO_ID_KEY, MODE_UPDATE_INTERVAL, MODEL_BABY, MODEL_ESSENT...
37.086444
105
0.524872
037be7e55b839496dcee70457bbf0e6e0683c338
10,193
py
Python
tbridge/medians.py
HSouch/TBRIDGE
1f266c64d905eca48749092687376708bcf09d48
[ "BSD-3-Clause" ]
null
null
null
tbridge/medians.py
HSouch/TBRIDGE
1f266c64d905eca48749092687376708bcf09d48
[ "BSD-3-Clause" ]
null
null
null
tbridge/medians.py
HSouch/TBRIDGE
1f266c64d905eca48749092687376708bcf09d48
[ "BSD-3-Clause" ]
null
null
null
from numpy import arange, nan, inf, sort, median, floor, max, nanmedian, transpose, asarray, std from numpy.random import choice, randint from scipy.interpolate import interp1d import multiprocessing as mp from astropy.io import fits from astropy.table import Table import tbridge import os import shutil from pathlib...
38.609848
110
0.653488
037bed32cafd20aa165f8110f4bbe836dedb7402
1,112
py
Python
src/proposals/migrations/0001_initial.py
ccwang002/dinglab_logo_proposal
31e712914581b60b9d30da12cdec18a09b1a6829
[ "MIT" ]
null
null
null
src/proposals/migrations/0001_initial.py
ccwang002/dinglab_logo_proposal
31e712914581b60b9d30da12cdec18a09b1a6829
[ "MIT" ]
null
null
null
src/proposals/migrations/0001_initial.py
ccwang002/dinglab_logo_proposal
31e712914581b60b9d30da12cdec18a09b1a6829
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-24 04:02 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import proposals.models class Migration(migrations.Migration): initial = True dependenc...
37.066667
220
0.679856
037bf59c4b09e5601437bba89a220dc97bf13fc5
21,933
py
Python
termine-be/cli.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
25
2020-04-06T19:21:15.000Z
2022-03-15T06:39:28.000Z
termine-be/cli.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
10
2020-04-21T20:38:55.000Z
2022-02-27T02:36:39.000Z
termine-be/cli.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
10
2020-04-08T18:21:45.000Z
2021-12-17T14:49:23.000Z
import csv import io import json import logging import sys from datetime import date, datetime, timedelta import hug from peewee import fn, DatabaseError from api import api from access_control.access_control import UserRoles, get_or_create_auto_user from config import config from db import directives from db.migrati...
39.805808
227
0.622988
037c3b1dbc13966d4559a748d2cbf848cabd1d29
1,732
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_GG.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_GG.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_GG.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. GG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GG = PhoneMetadata(id='GG', country_code=44, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[135789]\\d{6,9}', possible_length=(7...
101.882353
167
0.72806
037c5a8d55cacf7242c2e8d8adf854541bc0e845
2,728
py
Python
venv/Lib/site-packages/pyrogram/raw/types/page_block_details.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/page_block_details.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/page_block_details.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...
34.1
130
0.616935
037c5cc2f5be30f12b2d6fb39ce79346d56c80cd
2,800
py
Python
esp32/pal.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
esp32/pal.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
esp32/pal.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
import uio import time import machine import network import logger import env import socket # The following can be overwritten or extended in the Hardware Abstraction Layer class LED(object): @staticmethod def on(): raise NotImplementedError() @staticmethod def off(): raise NotImp...
23.140496
116
0.634286
037c6bd5bf23edaf082b436fb4728937a610656e
2,439
py
Python
nevergrad/parametrization/helpers.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
2
2021-02-17T20:50:44.000Z
2021-08-21T12:27:58.000Z
nevergrad/parametrization/helpers.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
null
null
null
nevergrad/parametrization/helpers.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
1
2021-04-07T10:34:20.000Z
2021-04-07T10:34:20.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import typing as tp from . import core from . import container from . import choice def flatten_parameter( para...
42.789474
132
0.670357
037cb54aac999a27c21c13f841feb80028eba68f
1,366
py
Python
ote_sdk/ote_sdk/utils/labels_utils.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/utils/labels_utils.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/utils/labels_utils.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
1
2020-12-13T22:13:51.000Z
2020-12-13T22:13:51.000Z
""" This module implements utilities for labels """ # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from typing import List, Optional from ote_sdk.entities.label import LabelEntity from ote_sdk.entities.label_schema import LabelSchemaEntity from ote_sdk.entities.scored_label impor...
27.32
78
0.7306
037cb69ca55a4fb404d98684fd5ea9c7f705dcb1
1,410
py
Python
users_app/views.py
mrm1415/users
eac1ae65460a9a020de5b7113c7e476f8c6e4243
[ "MIT" ]
null
null
null
users_app/views.py
mrm1415/users
eac1ae65460a9a020de5b7113c7e476f8c6e4243
[ "MIT" ]
null
null
null
users_app/views.py
mrm1415/users
eac1ae65460a9a020de5b7113c7e476f8c6e4243
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
37.105263
91
0.771631
037ccb42cda78b1440f3e212e4d7b9d121ea5c57
3,355
py
Python
sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
49.338235
172
0.70611
037ce255bf04971e11cbdd1f59d5f556103611a8
18
py
Python
btd6_memory_info/generated/Facepunch/Steamworks/Inventory/Recipe/recipe.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Facepunch/Steamworks/Inventory/Recipe/recipe.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Facepunch/Steamworks/Inventory/Recipe/recipe.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Recipe: pass
18
18
0.833333
037d0aaaa6fd0198a8d8e07cdb5a93770686ab16
1,986
py
Python
SoftEtherVPN.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
SoftEtherVPN.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
SoftEtherVPN.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
#!/usr/bin/env python import csv import requests import base64 from os import environ from logging import basicConfig, getLogger from time import sleep from pathlib import Path url = "http://www.vpngate.net/api/iphone/" basicConfig(format='[%(asctime)s - %(levelname)s] %(message)s', datefmt="%H:%M:%S") ...
29.641791
163
0.58006
037d0ae9640e87615f2b7841d250727c153d80d3
1,635
py
Python
post_processing/creer dictionnaire mot_postags/make_dict.py
tuili/PAr142
8ccc538469350d99480a65664d8665d63aa97f27
[ "Apache-2.0" ]
null
null
null
post_processing/creer dictionnaire mot_postags/make_dict.py
tuili/PAr142
8ccc538469350d99480a65664d8665d63aa97f27
[ "Apache-2.0" ]
null
null
null
post_processing/creer dictionnaire mot_postags/make_dict.py
tuili/PAr142
8ccc538469350d99480a65664d8665d63aa97f27
[ "Apache-2.0" ]
1
2019-03-02T11:55:37.000Z
2019-03-02T11:55:37.000Z
# -*- coding: utf-8 -*- """ Created on Fri Dec 30 14:35:14 2016 @author: thomas """ import pickle as pk def add_words_to_dictionnary(path_to_text, dictionnary): with open(dictionnary, "r") as f: data = f.read().split('\n')[0:-1] lenght = len(data) count = 1 for line in data: ...
27.711864
75
0.530275
037d263e882e10df0f1b5e7b43a3f506a1fced19
9,577
py
Python
test/test_parse_da.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:56.000Z
2020-08-13T12:21:56.000Z
test/test_parse_da.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
test/test_parse_da.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:58.000Z
2020-08-13T12:21:58.000Z
# # Copyright 2017 Mycroft AI 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 writ...
50.671958
78
0.569698
037d4c3fe5141dfdcce62247838120610c8dfbcf
952
py
Python
pybot/dist/api.py
dennisdunn/botlab
b0ff58e89658d6ebf884a42b919ceb7251609f26
[ "MIT" ]
null
null
null
pybot/dist/api.py
dennisdunn/botlab
b0ff58e89658d6ebf884a42b919ceb7251609f26
[ "MIT" ]
null
null
null
pybot/dist/api.py
dennisdunn/botlab
b0ff58e89658d6ebf884a42b919ceb7251609f26
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import Flask, request, redirect, json, jsonify from flask_cors import CORS from motor import Motor app = Flask(__name__) CORS(app) motorCtl = Motor() @app.route("/", methods=['GET']) def index(): return redirect("/static/index.html", code=302) @app.route("/api/v1/steering/<c...
19.833333
57
0.62605
037d79e2988d03dce07d2dc65b0b5519ea052779
20,326
py
Python
deep_t2i/trainer_GAN.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
null
null
null
deep_t2i/trainer_GAN.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
null
null
null
deep_t2i/trainer_GAN.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
1
2020-11-30T06:11:02.000Z
2020-11-30T06:11:02.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/04b_trainer_GAN.ipynb (unless otherwise specified). __all__ = ['AnimeHeadsTrainer', 'BirdsTrainer'] # Cell import time from tqdm.auto import tqdm import torch import torch.nn as nn import torch.optim as optim from torch import autograd from kornia.augmentation import Ra...
41.651639
226
0.663977
037d93129ca5da5fb8804d95c0409d61d7ddac5f
2,051
py
Python
mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
from __future__ import print_function from keras.datasets import mnist from commonconstants import MNIST_FLATTENED_NORMALISED_PICKLE, MNIST_PICKLE from file_helper import file_exists, read_from_pickle, save_as_pickle from data_helper import flatten_dataset def setup_flattened_normalised_mnist_pickle(): print...
33.622951
75
0.671867
037da8006438b102c57f0e0f80a168f69f95d342
13,920
py
Python
rllite/RainbowDQN/RainbowDQN.py
ZJU-RL/zjurl
6aab83aaba7249bc43d112f21787c45b111d8aa4
[ "MIT" ]
3
2019-03-07T13:24:21.000Z
2019-08-08T12:49:51.000Z
rllite/RainbowDQN/RainbowDQN.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
rllite/RainbowDQN/RainbowDQN.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
import math import random import gym import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.optim as optim import torch.autograd as autograd import torch.nn.functional as F from rllite.common import NoisyLinear from rllite.common import ReplayBuffer from rllite.common impor...
36.631579
143
0.628089
037db4e0c55009276c50ee68ab23928cee1c8b0d
2,621
py
Python
db_cinema_project/utils/table.py
goo-goo-goo-joob/hse_db_course
767aabfd8d804231e41742625725194bdb7ce90b
[ "MIT" ]
null
null
null
db_cinema_project/utils/table.py
goo-goo-goo-joob/hse_db_course
767aabfd8d804231e41742625725194bdb7ce90b
[ "MIT" ]
null
null
null
db_cinema_project/utils/table.py
goo-goo-goo-joob/hse_db_course
767aabfd8d804231e41742625725194bdb7ce90b
[ "MIT" ]
null
null
null
from functools import partial from PyQt5 import QtWidgets class Table(QtWidgets.QWidget): def __init__(self, res, names=None, button_edit=None, button_edit_text=None, button_delete=None, button_delete_text=None, table_title='Таблица', button_new=None, button_new_text=None, ): ...
43.683333
87
0.606257
037dba80879b882c5f3581d2c21634ea508814b0
700
py
Python
twilight/cogs/abc/cog.py
Just-Jojo/Twilight-bot
1256e9568b7d05e60fb9697df950435de72add38
[ "MIT" ]
null
null
null
twilight/cogs/abc/cog.py
Just-Jojo/Twilight-bot
1256e9568b7d05e60fb9697df950435de72add38
[ "MIT" ]
8
2020-11-17T04:57:17.000Z
2021-03-19T22:25:49.000Z
twilight/cogs/abc/cog.py
Just-Jojo/Twilight-bot
1256e9568b7d05e60fb9697df950435de72add38
[ "MIT" ]
2
2021-01-05T22:32:45.000Z
2021-02-02T13:39:23.000Z
import abc import logging import discord from discord.ext import commands __all__ = ["Cog", "MetaClass"] class Cog(commands.Cog): """Base cog for Twilight's cogs. This mixin has an `on_ready` listener to alert that it is online """ def __init__(self, *_args): bot: "Twilight" log:...
20.588235
88
0.622857
037e234c27d36ead97154c804bb9b73b6cf53c76
569
py
Python
scripts/data_transform.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
scripts/data_transform.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
scripts/data_transform.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
import csv import glob # Read all csv data files data = [] for f in glob.glob("raw_data/data_FF.csv"): data.append(f) # Processing for f in data: name = f.split('/')[-1].split('.')[-2] with open(f, 'r') as d: reader = list(csv.reader(d)) reader = reader[2:] # Remove titles reader...
25.863636
69
0.551845
037e28b7f7dcaaba20762e342fdce57d6851d694
4,404
py
Python
game_state/GameState.py
Quikks1lver/gran-forest
894dc8a05d7067dd14f05cc3318fbc584df748c1
[ "MIT" ]
1
2021-06-13T19:40:30.000Z
2021-06-13T19:40:30.000Z
game_state/GameState.py
Quikks1lver/sweet-retreat
894dc8a05d7067dd14f05cc3318fbc584df748c1
[ "MIT" ]
50
2021-05-11T00:34:42.000Z
2021-11-15T02:15:05.000Z
game_state/GameState.py
Quikks1lver/sweet-retreat
894dc8a05d7067dd14f05cc3318fbc584df748c1
[ "MIT" ]
null
null
null
import pygame from sys import maxsize from typing import List from characters.Enemy import Enemy from characters.EnemyFactory import EnemyFactory from color.Colors import Colors from text.Text import Text from text.TimedText import Timed_Text from timing.ClockMethods import Clock_Methods class Game_State(): """ ...
41.54717
150
0.643052
037e4c4d938feb36e25f0bb4909c16b6f51bd7cf
9,168
py
Python
examples/blackbox_exp.py
superplay1/c3
5540458a13c1bb05c5e528f65056ec33f1fb9a69
[ "Apache-2.0" ]
1
2021-04-13T12:52:14.000Z
2021-04-13T12:52:14.000Z
examples/blackbox_exp.py
marcorossignolo/c3
2b41aac7f9df227a423f7cacdaa943731c7e40e7
[ "Apache-2.0" ]
null
null
null
examples/blackbox_exp.py
marcorossignolo/c3
2b41aac7f9df227a423f7cacdaa943731c7e40e7
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np from c3.system.model import Model as Mdl from c3.c3objs import Quantity as Qty from c3.experiment import Experiment as Exp from c3.generator.generator import Generator as Gnr import c3.signal.gates as gates import c3.system.chip as chip import c3.generator.devices as devices import c3.lib...
33.955556
88
0.565663
037eab8cee087c5f76b37f9212a00ec4e2a065ad
5,147
py
Python
ac2020/days/Day3.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
ac2020/days/Day3.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
ac2020/days/Day3.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
from ac2020.days import AbstractDay class Day3(AbstractDay.AbstractDay): """ Advent of Code 2020 - Day 3 =========================== With the toboggan login problems resolved, you set off toward the airport. While travel by toboggan might be easy, it's certainly not safe: there's very minimal ste...
43.252101
120
0.422771
037ecc3c3276ea23157e7793ac603616f12ccd35
808
py
Python
silk_ml/scores.py
resuelve/silk-ml
7cabfdc50fcbc41efb5360afae0f8081c2df2b8b
[ "MIT" ]
6
2019-07-30T15:30:13.000Z
2019-08-21T16:16:50.000Z
silk_ml/scores.py
resuelve/silk-ml
7cabfdc50fcbc41efb5360afae0f8081c2df2b8b
[ "MIT" ]
null
null
null
silk_ml/scores.py
resuelve/silk-ml
7cabfdc50fcbc41efb5360afae0f8081c2df2b8b
[ "MIT" ]
1
2019-07-26T18:28:16.000Z
2019-07-26T18:28:16.000Z
from sklearn.metrics import confusion_matrix def ls_score(y, y_predicted): """ Score that punishes the false negative values, that goes from -1 to 1 Args: y (list): 1d array-like, or label indicator array / sparse matrix ground truth (correct) labels. y_predicted (list):1d array-l...
32.32
77
0.623762
037eda7bda5662d8a6f02a5ede0850ead79274be
1,718
py
Python
seamo/tests/test_geocoder.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
3
2018-08-20T18:34:03.000Z
2018-10-02T23:41:52.000Z
seamo/tests/test_geocoder.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
null
null
null
seamo/tests/test_geocoder.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
1
2018-10-02T23:42:24.000Z
2018-10-02T23:42:24.000Z
""" This is a test file for universal_geocoder.py """ import init import geocoder import constants as cn import unittest import pandas as pd import os #from scripts.core import geopandas_geocoder # from .core import geopandas_geocoder # import core.geopandas_geocoder as gg class UniGeoTest(unittest.TestCase): def se...
33.686275
86
0.782305
037f0b2893029651d6ad181e7c4e1ef344c7e811
10,818
py
Python
scan/test/scan/test_data/scanner.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/test/scan/test_data/scanner.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/test/scan/test_data/scanner.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
28.543536
79
0.561841
037f184175e5456c9d88d688c77bc00fc51c0abd
776
py
Python
client/verta/verta/_swagger/_public/uac/model/ModelDBActionEnumModelDBServiceActions.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/uac/model/ModelDBActionEnumModelDBServiceActions.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/uac/model/ModelDBActionEnumModelDBServiceActions.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModelDBActionEnumModelDBServiceActions(BaseType): _valid_values = [ "UNKNOWN", "ALL", "CREATE", "READ", "UPDATE", "DELETE", "DEPLOY", "PUBLIC_READ", ] def __init__(self, val): if va...
25.866667
108
0.721649
037f4ede101e36385a483501e9c215bf8c060bf4
29,037
py
Python
pyEpiabm/pyEpiabm/tests/test_unit/test_sweep/test_host_progression_sweep.py
SABS-R3-Epidemiology/epiabm
8eb83fd2de84104f6f77929e3771095f7b033ddc
[ "BSD-3-Clause" ]
11
2021-12-02T15:24:02.000Z
2022-03-10T14:02:13.000Z
pyEpiabm/pyEpiabm/tests/test_unit/test_sweep/test_host_progression_sweep.py
SABS-R3-Epidemiology/epiabm
8eb83fd2de84104f6f77929e3771095f7b033ddc
[ "BSD-3-Clause" ]
119
2021-11-24T13:56:48.000Z
2022-03-30T11:52:07.000Z
pyEpiabm/pyEpiabm/tests/test_unit/test_sweep/test_host_progression_sweep.py
SABS-R3-Epidemiology/epiabm
8eb83fd2de84104f6f77929e3771095f7b033ddc
[ "BSD-3-Clause" ]
3
2022-01-13T03:05:19.000Z
2022-03-11T22:00:17.000Z
import unittest from unittest import mock import numpy as np import pandas as pd import pyEpiabm as pe from pyEpiabm.property import InfectionStatus from pyEpiabm.tests.test_unit.parameter_config_tests import TestPyEpiabm class TestHostProgressionSweep(TestPyEpiabm): """Tests the 'HostProgressionSweep' class. ...
51.851786
81
0.64714
037f5af4ae87554cbdc987ee2383594b498438cf
4,571
py
Python
facebook_business/asyncobjects/asyncbatch.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/asyncobjects/asyncbatch.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/asyncobjects/asyncbatch.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
from typing import List from facebook_business.adobjects.asyncsession import AsyncSession from facebook_business.api import FacebookAdsApiBatch, FacebookResponse class FacebookAdsAsyncApiBatch(FacebookAdsApiBatch): def __init__(self, api, success=None, failure=None): super().__init__(api, success, failure...
38.091667
118
0.60862
037f5b054bf673b579b81277d2d5fa959e1345fb
419
py
Python
OpenCV/capture/capture.py
rgabeflores/Scripts
c8138cb4543e576924de2107abb5a65f0b84264c
[ "MIT" ]
2
2018-05-12T10:58:51.000Z
2021-11-16T11:52:27.000Z
src/OpenCV/capture.py
learn-py/Posts
da394236db0a52c93ca1c0374ad121b263555272
[ "MIT" ]
null
null
null
src/OpenCV/capture.py
learn-py/Posts
da394236db0a52c93ca1c0374ad121b263555272
[ "MIT" ]
null
null
null
import cv2 if __name__ == '__main__': cap = cv2.VideoCapture(0) fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.AVI', fourcc, 20.0, (640, 480)) while True: ret, frame = cap.read() cv2.imshow('Frame', frame) out.write(frame) if cv2.waitKey(1) & 0x...
22.052632
65
0.572792
037fa369df22af173581cefd0baf3f63ac5e39e3
1,500
py
Python
github_comments/gfm.py
alikins/github-comments
6ccca44d6f6fa87cdeaffe65ef695cb2b099d707
[ "MIT" ]
1
2015-11-05T14:32:35.000Z
2015-11-05T14:32:35.000Z
github_comments/gfm.py
alikins/github-comments
6ccca44d6f6fa87cdeaffe65ef695cb2b099d707
[ "MIT" ]
1
2016-03-13T22:56:54.000Z
2016-03-14T01:35:58.000Z
github_comments/gfm.py
alikins/github-comments
6ccca44d6f6fa87cdeaffe65ef695cb2b099d707
[ "MIT" ]
null
null
null
# # convert github flavored markdown to regular markdown # from from https://gist.github.com/gasman/856894 # from hashlib import md5 import re def gfm(text): # Extract pre blocks. extractions = {} def pre_extraction_callback(matchobj): digest = md5(matchobj.group(0)).hexdigest() extractio...
34.090909
90
0.624667
037fc195af259a3ad059a873f73acb2db2e88cee
1,875
py
Python
alipay/aop/api/response/AlipayMarketingPartnershipsBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayMarketingPartnershipsBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayMarketingPartnershipsBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.MarketingPartnerShip import MarketingPartnerShip class AlipayMarketingPartnershipsBatchqueryResponse(AlipayResponse): def __init__(self): super(AlipayMar...
29.761905
118
0.645333
037fedf94fb772bdd91da745879f18887411acf6
2,073
py
Python
scripts/artifacts/ChessWithFriends.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/ChessWithFriends.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/ChessWithFriends.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
from scripts.ilapfuncs import open_sqlite_db_readonly from scripts.plugin_base import ArtefactPlugin from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv from scripts import artifact_report class ChessWithFriendsPlugin(ArtefactPlugin): """ """ def __init__(self...
31.892308
106
0.629522
03803f0910c90247bd38ca6670ba1709fbd1a687
16,424
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/19/train.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/19/train.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/19/train.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="1" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
35.549784
128
0.654834
038063fae13771166363d39d5ca394ebebd99cb3
6,596
py
Python
tests/api/v1_3_3/test_site_design.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v1_3_3/test_site_design.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v1_3_3/test_site_design.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI site_design API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 restrictio...
42.554839
1,191
0.701637
03809bf243f9192c3bbf8001d4d13ef1daa5aac1
839
py
Python
fieuishell/ModalInputDefaultUI.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fieuishell/ModalInputDefaultUI.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fieuishell/ModalInputDefaultUI.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
import asyncio import typing from abc import ABC import fieui.InputDefaultModalUI T = typing.TypeVar("T") class InputDefaultModalShellUI(fieui.InputDefaultModalUI.AbstractInputDefaultModalUI[T], ABC): _shell = None def __init__(self, shell: "Shell"): self._shell = shell async def execute(self,...
29.964286
94
0.586412
0380b3e6f0e9a6fc8d0e9a8113bcab935adbe1ed
868
py
Python
hashicorp_vault_client/test/test_body32.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/test/test_body32.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/test/test_body32.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest ...
21.7
104
0.68318
0380dfb25391754856489bdcaed065d12fe8f5e2
1,575
py
Python
PYTHON/Bouncing-ball-game.py
Danish-Belal/CodeCollection
cd3914d3d73542dd5f20755c4b1e42906f443b03
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
PYTHON/Bouncing-ball-game.py
Danish-Belal/CodeCollection
cd3914d3d73542dd5f20755c4b1e42906f443b03
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
PYTHON/Bouncing-ball-game.py
Danish-Belal/CodeCollection
cd3914d3d73542dd5f20755c4b1e42906f443b03
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
import pygame import random BLACK = (0, 0, 0) WHITE = (255, 255, 255) SCREEN_WIDTH = 700 SCREEN_HEIGHT = 500 BALL_SIZE = 25 class Ball: def __init__(self): self.x = 0 self.y = 0 self.change_x = 0 self.change_y = 0 def make_ball(): ball = Ball() ball.x = random.randrange(BALL_SIZE, SCR...
25.819672
71
0.619048
0380ffddaf09bd07e186426137bd5101da2630bb
1,516
py
Python
examples/plotting/field_pole_figure.py
tobyfrancis/pymicro
5c2ed0bb6990463ea6ee59586c9f59cd9b7b13ba
[ "MIT" ]
null
null
null
examples/plotting/field_pole_figure.py
tobyfrancis/pymicro
5c2ed0bb6990463ea6ee59586c9f59cd9b7b13ba
[ "MIT" ]
null
null
null
examples/plotting/field_pole_figure.py
tobyfrancis/pymicro
5c2ed0bb6990463ea6ee59586c9f59cd9b7b13ba
[ "MIT" ]
null
null
null
from pymicro.crystal.microstructure import * from pymicro.crystal.texture import * from matplotlib import pyplot as plt, colors, colorbar, cm if __name__ == '__main__': '''This example demonstrate how a field can be used to color each symbol on the pole figure with the :py:meth:~`pymicro.crystal.texture.set_ma...
36.97561
90
0.680739
038131271a83625b2289f501a0f2676036e743a6
8,381
py
Python
train.py
iArunava/IMDB-Sentiment-Analysis-using-PyTorch
4b603ce1975408226c6f4ca615d125e02ae0de5d
[ "MIT" ]
4
2019-01-06T09:18:17.000Z
2019-12-06T01:26:07.000Z
imdb-reviews Sentiment Classification (PYTORCH)/train.py
code-neverends/Machine-Learning-Projects
cb026d32a928f8a21ed20c726bd86285e7bc0b04
[ "MIT" ]
1
2019-06-20T08:14:25.000Z
2019-06-20T08:14:25.000Z
imdb-reviews Sentiment Classification (PYTORCH)/train.py
code-neverends/Machine-Learning-Projects
cb026d32a928f8a21ed20c726bd86285e7bc0b04
[ "MIT" ]
2
2020-05-05T20:17:51.000Z
2020-12-30T23:55:38.000Z
import os import subprocess import numpy as np import torch import torch.nn as nn from string import punctuation from collections import Counter from torch.utils.data import TensorDataset, DataLoader from SentimentRNN import SentimentRNN from test import test def train(FLAGS): # download the files if needed pr...
34.069106
103
0.63632
0381585ae856b9694d30ce8e96b7d0eb9213622c
14,234
py
Python
tests/artifactcache/expiry.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/artifactcache/expiry.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/artifactcache/expiry.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2018 Codethink Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.058824
101
0.694394
0381649a5d18be24db67ad59cf29c13d9f3bc6fc
5,336
py
Python
tests/sentry_plugins/pushover/test_plugin.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
tests/sentry_plugins/pushover/test_plugin.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
tests/sentry_plugins/pushover/test_plugin.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import responses from exam import fixture from django.core.urlresolvers import reverse from sentry.models import Rule from sentry.plugins.base import Notification from sentry.testutils import PluginTestCase from sentry.utils import json from six.moves.urllib.parse import parse_q...
40.732824
99
0.623313
03818ba2a691ab2df6dc918e65ec855f640f42d8
757
py
Python
src/logger.py
TUI-NICR/multi-task-person-perception
81666eb42be9522fd726448e82e8bbf04138ffa3
[ "BSD-3-Clause" ]
4
2021-07-28T06:26:07.000Z
2022-01-24T09:31:34.000Z
src/logger.py
TUI-NICR/multi-task-person-perception
81666eb42be9522fd726448e82e8bbf04138ffa3
[ "BSD-3-Clause" ]
null
null
null
src/logger.py
TUI-NICR/multi-task-person-perception
81666eb42be9522fd726448e82e8bbf04138ffa3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ .. codeauthor:: Dominik Höchemer <dominik.hoechemer@tu-ilmenau.de> .. codeauthor:: Daniel Seichter <daniel.seichter@tu-ilmenau.de> """ import csv import os import xml.etree.cElementTree as ET from .io_utils import create_directory_if_not_exists class CSVLogger(object): def __init__(s...
26.103448
66
0.611625
0381abd9e346a7ec0aed2f031114f5fb07afaaba
1,366
py
Python
assignment.py
jae-finger/lambdata-jae-finger
80b25dc286726210de2b7923a553293e32a0465c
[ "MIT" ]
null
null
null
assignment.py
jae-finger/lambdata-jae-finger
80b25dc286726210de2b7923a553293e32a0465c
[ "MIT" ]
2
2020-03-31T11:25:10.000Z
2021-02-02T22:35:06.000Z
assignment.py
jae-finger/lambdata_jaefinger
80b25dc286726210de2b7923a553293e32a0465c
[ "MIT" ]
null
null
null
# my_lambdata/assignment.py (OOP approach w/ inheritance) import pandas class CustomFrame(pandas.DataFrame): """ Param: my_df (pandas.DataFrame) containing a column called "abbrev" """ def add_state_names(self): """ Adds corresponding state names to a dataframe. """ # typ...
35.947368
96
0.569546
0381b470fb7f4771eb84c71df628d7632a842059
71
py
Python
tests/assets/analyzerpackage/analyzerpackage/utils.py
SimonBiggs/layer_linter
9eb518b74118e4a2d8079e2f32ecc12612ca9e86
[ "BSD-3-Clause" ]
63
2018-06-21T10:39:54.000Z
2021-06-04T14:28:44.000Z
tests/assets/analyzerpackage/analyzerpackage/utils.py
SimonBiggs/layer_linter
9eb518b74118e4a2d8079e2f32ecc12612ca9e86
[ "BSD-3-Clause" ]
86
2018-06-20T13:30:30.000Z
2019-06-04T12:47:28.000Z
tests/assets/analyzerpackage/analyzerpackage/utils.py
SimonBiggs/layer_linter
9eb518b74118e4a2d8079e2f32ecc12612ca9e86
[ "BSD-3-Clause" ]
4
2018-08-14T08:49:55.000Z
2019-02-16T09:24:47.000Z
from . import one def foo(): from .two import alpha return 1
10.142857
26
0.619718
0381b7050468be5bc940e97c1e6e60c4054a1d86
4,340
py
Python
impbot/core/test_data.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/core/test_data.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/core/test_data.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
from impbot.handlers import command from impbot.util import tests_util class FooHandler(command.CommandHandler): pass class BarHandler(command.CommandHandler): pass class DataTest(tests_util.DataHandlerTest): def test_keys(self): data = FooHandler().data self.assertFalse(data.exists("t...
42.135922
77
0.60023
0381bca72b39b2890773283d43186821f38f4347
205
py
Python
discord/ext/vbu/cogs/utils/menus/__init__.py
jonigirl/Novus
f6b41db03ad1049ad236508580178aa661a9b8c5
[ "MIT" ]
2
2022-01-22T16:05:42.000Z
2022-01-22T16:06:07.000Z
discord/ext/vbu/cogs/utils/menus/__init__.py
jonigirl/Novus
f6b41db03ad1049ad236508580178aa661a9b8c5
[ "MIT" ]
null
null
null
discord/ext/vbu/cogs/utils/menus/__init__.py
jonigirl/Novus
f6b41db03ad1049ad236508580178aa661a9b8c5
[ "MIT" ]
null
null
null
from .callbacks import DataLocation, MenuCallbacks from .check import Check, ModalCheck, CheckFailureAction from .converter import Converter from .menu import Menu, MenuIterable from .option import Option
34.166667
56
0.839024
0381d40906743c7f5c3bd2d07760ca5f50276d28
486
py
Python
src/xworkflows/compat.py
rbarrois/xworkflows
c6adfb200c61dd0df768c92856355d301c2caf87
[ "BSD-2-Clause" ]
94
2015-01-08T21:55:07.000Z
2022-02-19T10:50:05.000Z
src/xworkflows/compat.py
rbarrois/xworkflows
c6adfb200c61dd0df768c92856355d301c2caf87
[ "BSD-2-Clause" ]
7
2016-04-28T15:40:06.000Z
2021-05-20T18:03:23.000Z
src/xworkflows/compat.py
rbarrois/xworkflows
c6adfb200c61dd0df768c92856355d301c2caf87
[ "BSD-2-Clause" ]
17
2015-08-13T00:29:09.000Z
2021-11-11T09:17:53.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2011-2013 Raphaël Barrois # This code is distributed under the two-clause BSD License. import sys is_python3 = (sys.version_info[0] >= 3) if is_python3: def u(text, errors=''): return str(text) def is_string(var): return isinstance(var, str) else: ...
22.090909
60
0.631687
0381d70eaa36a3af2bc2ccfe4139521daf4c8744
1,127
py
Python
discordaio/__init__.py
Ryozuki/pydiscord
0be3f167a9832075bc967b9ae8437509ec925988
[ "MIT" ]
5
2018-02-24T00:27:37.000Z
2019-02-06T21:35:02.000Z
discordaio/__init__.py
Ryozuki/pydiscord
0be3f167a9832075bc967b9ae8437509ec925988
[ "MIT" ]
null
null
null
discordaio/__init__.py
Ryozuki/pydiscord
0be3f167a9832075bc967b9ae8437509ec925988
[ "MIT" ]
1
2018-03-02T10:06:07.000Z
2018-03-02T10:06:07.000Z
""" discord.aio is an asynchronous Discord API wrapper for python 3.6+ """ from .client import DiscordBot from .channel import Channel, ChannelMessage, Attachment, Embed, EmbedAuthor, EmbedField, EmbedFooter, \ EmbedImage, EmbedProvider, EmbedThumbnail, EmbedVideo from .emoji import Emoji from .user import User, U...
41.740741
112
0.828749
0381d750b01472ba1d68abfccf742682a62dee8c
585
py
Python
options/train_options.py
cassiePython/RCNN
b28cb68d39ed28fc1ab9b817e8296f965b2a6a96
[ "MIT" ]
16
2019-08-06T03:19:58.000Z
2022-01-24T12:31:44.000Z
options/train_options.py
cassiePython/RCNN
b28cb68d39ed28fc1ab9b817e8296f965b2a6a96
[ "MIT" ]
2
2020-05-24T00:04:31.000Z
2020-12-29T09:41:28.000Z
options/train_options.py
cassiePython/RCNN
b28cb68d39ed28fc1ab9b817e8296f965b2a6a96
[ "MIT" ]
2
2019-09-16T07:21:44.000Z
2020-09-10T07:56:24.000Z
from .base_options import BaseOptions class TrainOptions(BaseOptions): def initialize(self): BaseOptions.initialize(self) self._parser.add_argument('--total_epoch', type=int, default=100, help='total epoch for training') self._parser.add_argument('--learning_rate', type=float, default=0.0...
41.785714
110
0.695726
03820a02df20be1e1e7f57500f7c9fede012ce4c
8,474
py
Python
pyxform/utils.py
DavisRayM/pyxform
7e86931f2d6d3882461d9ab3dfa4d8b326d2cdfc
[ "BSD-2-Clause" ]
1
2020-10-19T15:37:36.000Z
2020-10-19T15:37:36.000Z
pyxform/utils.py
nribeka/pyxform
bee96541d39519b7e6f3dab3422874ed48ddf7ae
[ "BSD-2-Clause" ]
null
null
null
pyxform/utils.py
nribeka/pyxform
bee96541d39519b7e6f3dab3422874ed48ddf7ae
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pyxform utils module. """ import codecs import copy import json import os import re from xml.dom.minidom import Element, Text, parseString import unicodecsv as csv import xlrd try: from json.decoder import JSONDecodeError except ImportError: # json module raises a ValueError except...
30.927007
91
0.589568
03821075738f4a7a304e447da9148b2b02c4f9d8
2,629
py
Python
lib/command.py
KanjiuAkuma/JBetSystem
b3ec6e3e21b2f18659bf80b5eeee054aaf321662
[ "MIT" ]
1
2020-06-21T18:12:29.000Z
2020-06-21T18:12:29.000Z
lib/command.py
KanjiuAkuma/JBetSystem
b3ec6e3e21b2f18659bf80b5eeee054aaf321662
[ "MIT" ]
6
2020-01-12T18:42:54.000Z
2020-03-05T03:59:39.000Z
lib/command.py
KanjiuAkuma/JBetSystem
b3ec6e3e21b2f18659bf80b5eeee054aaf321662
[ "MIT" ]
null
null
null
""" Created by Joscha Vack on 1/11/2020. """ import sys from lib.logger import log_call # noinspection PyBroadException class Command(object): def __init__(self, data, remove_prefix): log_call('Command.__init__', data=data.Message, remove_prefix=remove_prefix) self._data = data self._para...
27.385417
126
0.607836
038236328f21813fb46c6bee68536a990d7a2ee2
1,790
py
Python
PyFlow/Packages/PyFlowMaya/__init__.py
IlgarLunin/PyFlowMaya
d02fab352a454be9f32c3cfbf7c12679e389cf8b
[ "MIT" ]
5
2019-10-26T03:35:12.000Z
2022-01-17T10:58:48.000Z
PyFlow/Packages/PyFlowMaya/__init__.py
IlgarLunin/PyFlowMaya
d02fab352a454be9f32c3cfbf7c12679e389cf8b
[ "MIT" ]
null
null
null
PyFlow/Packages/PyFlowMaya/__init__.py
IlgarLunin/PyFlowMaya
d02fab352a454be9f32c3cfbf7c12679e389cf8b
[ "MIT" ]
2
2020-10-10T20:54:55.000Z
2020-11-14T15:15:40.000Z
PACKAGE_NAME = 'PyFlowMaya' from collections import OrderedDict from PyFlow.UI.UIInterfaces import IPackage # Nodes from PyFlow.Packages.PyFlowMaya.Nodes.EventCurrentFrameChanged import eventCurrentFrameChanged from PyFlow.Packages.PyFlowMaya.Nodes.ScriptEntry import scriptEntry # Pins from PyFlow.Packages.PyFlowMay...
26.716418
94
0.831844
0382383eaa2d48437833feee530ddf7e0a0a4af9
977
py
Python
portals/wwits/groups/service_setup/query_tech_class/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/service_setup/query_tech_class/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/service_setup/query_tech_class/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from dataclasses import dataclass from typing import List from portals.wwits.mixins import WWITSBaseMixin @dataclass class ParmModel: Version: str Env: str Source: str Session: int RC: int ResultMsg: str UserID: str Class: str @dataclass class TechClassModel(WWITSBaseMixin): Clas...
19.156863
47
0.709314