hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a20a485df7f275a72f3399ed3c46ee21273835e
2,707
py
Python
vectors_simple_arithmetics.py
pavlovcoder/linear-algebra-python-library
8c56d94c38a4318e69b2292f8a781aed00a3cb2c
[ "MIT" ]
null
null
null
vectors_simple_arithmetics.py
pavlovcoder/linear-algebra-python-library
8c56d94c38a4318e69b2292f8a781aed00a3cb2c
[ "MIT" ]
null
null
null
vectors_simple_arithmetics.py
pavlovcoder/linear-algebra-python-library
8c56d94c38a4318e69b2292f8a781aed00a3cb2c
[ "MIT" ]
null
null
null
print( '-----------------------------------------\n'\ 'Python Library for Linear Algebra Operations | Vectors Initialization:\n'\ '-----------------------------------------\n' ) print( 'Task:\n'\ '-----------------------------------------\n'\ 'Write a simple Python module for adding, substract and scalar...
30.077778
98
0.576653
4a20a4a3840f8e0be87449347523d3d285af4b9f
1,161
py
Python
tests/test_pitch_spelling.py
CPJKU/partitura
b1053d663fc10fc839a3c9c81c9b3dbf53d9e4b2
[ "Apache-2.0" ]
56
2021-01-12T10:11:54.000Z
2022-03-14T04:37:38.000Z
tests/test_pitch_spelling.py
mgrachten/partitura
b1053d663fc10fc839a3c9c81c9b3dbf53d9e4b2
[ "Apache-2.0" ]
57
2020-12-06T18:53:38.000Z
2022-03-23T12:07:38.000Z
tests/test_pitch_spelling.py
mgrachten/partitura
b1053d663fc10fc839a3c9c81c9b3dbf53d9e4b2
[ "Apache-2.0" ]
6
2021-03-09T07:05:16.000Z
2021-11-13T20:01:38.000Z
import numpy as np import unittest from partitura import EXAMPLE_MUSICXML from partitura import load_musicxml from partitura.musicanalysis import estimate_spelling def compare_spelling(spelling, notes): comparisons = np.zeros((len(spelling), 3)) for i, (n, s) in enumerate(zip(notes, spelling)): compa...
31.378378
66
0.671835
4a20a56adc692940f9e414a30ed4bfa2c9e1a542
6,285
py
Python
tests/instruments/test_manifest.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
16
2018-03-20T09:06:23.000Z
2021-09-08T18:46:15.000Z
tests/instruments/test_manifest.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
118
2015-05-13T07:50:04.000Z
2018-02-14T17:37:20.000Z
tests/instruments/test_manifest.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
11
2018-03-02T11:17:26.000Z
2021-06-23T22:25:40.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018-2018 by Exopy Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ----------...
32.066327
79
0.661893
4a20a5b9361d950b1d1bc1198cb5df60fc54d50c
5,788
py
Python
brambling/tests/functional/test_organizer_forms.py
Shivanjain023/django-brambling
17539b82df37f22bd2b4293e73142b887c916344
[ "BSD-3-Clause" ]
8
2015-05-06T18:26:15.000Z
2018-02-07T22:18:32.000Z
brambling/tests/functional/test_organizer_forms.py
Shivanjain023/django-brambling
17539b82df37f22bd2b4293e73142b887c916344
[ "BSD-3-Clause" ]
578
2015-01-05T21:37:17.000Z
2018-02-14T16:43:50.000Z
brambling/tests/functional/test_organizer_forms.py
Shivanjain023/django-brambling
17539b82df37f22bd2b4293e73142b887c916344
[ "BSD-3-Clause" ]
1
2015-08-20T16:59:32.000Z
2015-08-20T16:59:32.000Z
from datetime import datetime, date, timedelta from django.test import TestCase, RequestFactory from django.utils import timezone from brambling.forms.organizer import ManualPaymentForm, EventCreateForm from brambling.models import Transaction, Event, OrganizationMember from brambling.tests.factories import ( Ord...
40.194444
109
0.65152
4a20a635f5e037078a0e577c56c6a289da083b87
3,856
py
Python
Spy-Games/code.py
Saradwata-Bandyopadhyay/greyatom-python-for-data-science
fe15b5bb27b928b0f7fe151e630d89ab07a95a0b
[ "MIT" ]
1
2020-07-02T07:38:07.000Z
2020-07-02T07:38:07.000Z
Spy-Games/code.py
Saradwata-Bandyopadhyay/greyatom-python-for-data-science
fe15b5bb27b928b0f7fe151e630d89ab07a95a0b
[ "MIT" ]
null
null
null
Spy-Games/code.py
Saradwata-Bandyopadhyay/greyatom-python-for-data-science
fe15b5bb27b928b0f7fe151e630d89ab07a95a0b
[ "MIT" ]
null
null
null
# -------------- #Code starts here #Function to read file def read_file(path): #Opening of the file located in the path in 'read' mode file=open(path,'r') #Reading of the first line of the file and storing it in a variable sentence=file.readline() #Closing of the file file.close() ...
25.202614
72
0.706432
4a20a699f17fc64adfa91e1d5de7bb9340ba55e2
11,418
py
Python
salesforce/fields.py
bryancolligan/django-salesforce
cec08115f97d75d9b7b96bb34c40e48974c7269f
[ "MIT" ]
null
null
null
salesforce/fields.py
bryancolligan/django-salesforce
cec08115f97d75d9b7b96bb34c40e48974c7269f
[ "MIT" ]
null
null
null
salesforce/fields.py
bryancolligan/django-salesforce
cec08115f97d75d9b7b96bb34c40e48974c7269f
[ "MIT" ]
null
null
null
# django-salesforce # # by Phil Christensen # (c) 2012-2013 Freelancers Union (http://www.freelancersunion.org) # See LICENSE.md for details # """ Customized fields for Salesforce, especially the primary key. (like django.db.models.fields) """ import warnings from decimal import Decimal from django.conf import settin...
38.969283
115
0.664039
4a20a7ecd9a50e4b719b00927fd375db2aa83df5
5,610
py
Python
evalml/pipelines/components/estimators/classifiers/catboost_classifier.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
evalml/pipelines/components/estimators/classifiers/catboost_classifier.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
evalml/pipelines/components/estimators/classifiers/catboost_classifier.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
"""CatBoost Classifier, a classifier that uses gradient-boosting on decision trees. CatBoost is an open-source library and natively supports categorical features.""" import copy import warnings import numpy as np from skopt.space import Integer, Real from evalml.model_family import ModelFamily from evalml.pipelines.c...
38.163265
166
0.64902
4a20a83a84dfbe7805d4d1459a3050f5bebfae75
13,362
py
Python
injection_curve_analysis_shenzhen/main.py
shixin2013/python-study
acedb1d25bfd2ee53d5bf12c66df4305138359b0
[ "MIT" ]
null
null
null
injection_curve_analysis_shenzhen/main.py
shixin2013/python-study
acedb1d25bfd2ee53d5bf12c66df4305138359b0
[ "MIT" ]
null
null
null
injection_curve_analysis_shenzhen/main.py
shixin2013/python-study
acedb1d25bfd2ee53d5bf12c66df4305138359b0
[ "MIT" ]
null
null
null
#python分为可变结构与不可变结构,不可变结构基本等于复杂结构,包括list map等。复杂结构的赋值和传参都是传递的引用 # for it in list 中,it是只读的,修改它不会改变list值 # ctrl+[,] 代码缩进 import os import datetime import shutil import configparser import sys import numpy as np from scipy.optimize import leastsq import matplotlib as mpl import matplotlib.pyplot as plt from scipy.interpo...
34.349614
154
0.592277
4a20a86e7d839bab12b45f3485abd44eeb5ea4f3
186
py
Python
src/xliff/apps.py
Integreat/integreat-cms
b3f80964a6182d714f26ac229342b47e1c7c4f29
[ "Apache-2.0" ]
14
2020-12-03T07:56:30.000Z
2021-10-30T13:09:50.000Z
src/xliff/apps.py
Integreat/integreat-cms
b3f80964a6182d714f26ac229342b47e1c7c4f29
[ "Apache-2.0" ]
367
2020-11-20T00:34:20.000Z
2021-12-14T15:20:42.000Z
src/xliff/apps.py
Integreat/integreat-cms
b3f80964a6182d714f26ac229342b47e1c7c4f29
[ "Apache-2.0" ]
3
2021-02-09T18:46:52.000Z
2021-12-07T10:41:39.000Z
""" Configuration of XLIFF app """ from django.apps import AppConfig class XLIFFConfig(AppConfig): """ XLIFF config inheriting the django AppConfig """ name = "xliff"
14.307692
48
0.672043
4a20a8bf59ab3c96c69f1159acc44ff088d1d57d
305
py
Python
assignmenthub/page_edits/migrations/0011_delete_privacypolicy.py
webspace95/assignment_hub_prototype
bf1b588fa817e1d622f965cb9536c986a4a965cf
[ "MIT" ]
null
null
null
assignmenthub/page_edits/migrations/0011_delete_privacypolicy.py
webspace95/assignment_hub_prototype
bf1b588fa817e1d622f965cb9536c986a4a965cf
[ "MIT" ]
null
null
null
assignmenthub/page_edits/migrations/0011_delete_privacypolicy.py
webspace95/assignment_hub_prototype
bf1b588fa817e1d622f965cb9536c986a4a965cf
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2022-03-11 09:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('page_edits', '0010_howweworktext_body'), ] operations = [ migrations.DeleteModel( name='PrivacyPolicy', ), ]
17.941176
50
0.616393
4a20a8c427f7355818383d0c14289c7ed04fc51c
319
py
Python
tests/test_utils.py
matt-carr/cloudstorage
6bcf731f14678ad1469234311a7748691be529cd
[ "MIT" ]
null
null
null
tests/test_utils.py
matt-carr/cloudstorage
6bcf731f14678ad1469234311a7748691be529cd
[ "MIT" ]
null
null
null
tests/test_utils.py
matt-carr/cloudstorage
6bcf731f14678ad1469234311a7748691be529cd
[ "MIT" ]
null
null
null
from cloudstorage.utils import rgetattr, rsetattr def test_rgetattr(): b = type('B', (), {'c': True})() a = type('A', (), {'b': b})() assert rgetattr(a, 'b.c') def test_rsetattr(): b = type('B', (), {'c': True})() a = type('A', (), {'b': b})() rsetattr(a, 'b.c', False) assert not a.b.c
21.266667
49
0.495298
4a20aa3496f82f952cc332c68731c9339df26881
12,525
py
Python
peering/tables.py
zimage/peering-manager
8765c276b01b182d267d9be81413087a1c6f7ce9
[ "Apache-2.0" ]
null
null
null
peering/tables.py
zimage/peering-manager
8765c276b01b182d267d9be81413087a1c6f7ce9
[ "Apache-2.0" ]
null
null
null
peering/tables.py
zimage/peering-manager
8765c276b01b182d267d9be81413087a1c6f7ce9
[ "Apache-2.0" ]
1
2020-03-31T02:04:39.000Z
2020-03-31T02:04:39.000Z
import django_tables2 as tables from .models import ( AutonomousSystem, Community, ConfigurationTemplate, DirectPeeringSession, InternetExchange, InternetExchangePeeringSession, Router, RoutingPolicy, ) from peeringdb.models import PeerRecord from peering_manager import settings from ut...
34.409341
247
0.663393
4a20aa63561c3f9e86f385d00836641dc6ddc374
1,487
py
Python
src/utils.py
YechielK/rcp2
7135d4fe2538dd5e7ac7e61a7351ed09473c95dc
[ "MIT" ]
10
2019-02-22T03:48:16.000Z
2022-02-06T00:23:53.000Z
src/utils.py
YechielK/rcp2
7135d4fe2538dd5e7ac7e61a7351ed09473c95dc
[ "MIT" ]
82
2019-02-19T20:28:00.000Z
2022-03-20T16:55:45.000Z
src/utils.py
YechielK/rcp2
7135d4fe2538dd5e7ac7e61a7351ed09473c95dc
[ "MIT" ]
30
2019-02-18T17:25:31.000Z
2022-01-22T14:38:29.000Z
"""General project utilities. The following top-level variables make it easier to reference specific directories in other scripts and notebooks: - :data:`src.utils.ROOT`: The project root (usually named ``rcp2/``). - :data:`src.utils.DATA`: The project data directory and subdirectories - :GEOID:`src.utils.GEOID`: GE...
28.056604
84
0.635508
4a20aa651cd49e38411e9cd47333c4b5633f2b0a
6,443
py
Python
homeassistant/components/opentherm_gw/sensor.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/opentherm_gw/sensor.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
homeassistant/components/opentherm_gw/sensor.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Support for OpenTherm Gateway sensors.""" import logging from pprint import pformat from homeassistant.components.sensor import ENTITY_ID_FORMAT from homeassistant.const import CONF_ID from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.he...
32.872449
86
0.625485
4a20aadc2e223c042e4faf492ce59ccaae0cddfd
1,881
py
Python
lib/_included_packages/plexnet/mediachoice.py
aleenator/plex-for-kodi
e6610e42ce1afd115cf59632b949e18597625323
[ "BSD-3-Clause" ]
233
2016-12-01T10:00:33.000Z
2022-03-26T21:43:47.000Z
lib/_included_packages/plexnet/mediachoice.py
aleenator/plex-for-kodi
e6610e42ce1afd115cf59632b949e18597625323
[ "BSD-3-Clause" ]
327
2016-11-30T18:27:32.000Z
2022-03-13T20:49:27.000Z
lib/_included_packages/plexnet/mediachoice.py
aleenator/plex-for-kodi
e6610e42ce1afd115cf59632b949e18597625323
[ "BSD-3-Clause" ]
140
2016-12-01T18:41:24.000Z
2022-03-08T17:08:44.000Z
from __future__ import absolute_import from . import plexstream from . import util class MediaChoice(object): SUBTITLES_DEFAULT = 0 SUBTITLES_BURN = 1 SUBTITLES_SOFT_DP = 2 SUBTITLES_SOFT_ANY = 3 def __init__(self, media=None, partIndex=0): self.media = media self.part = None ...
36.882353
108
0.633705
4a20ab1ebbc9ccce112835135639f5a6355837db
655
py
Python
foodData/processFile.py
IBM/mpnn
218697020de8ecb48b908cc1ed58c4633de398a1
[ "Apache-2.0" ]
1
2020-08-01T15:52:17.000Z
2020-08-01T15:52:17.000Z
foodData/processFile.py
IBM/mpnn
218697020de8ecb48b908cc1ed58c4633de398a1
[ "Apache-2.0" ]
6
2019-12-16T21:59:48.000Z
2022-02-10T00:13:21.000Z
foodData/processFile.py
IBM/mpnn
218697020de8ecb48b908cc1ed58c4633de398a1
[ "Apache-2.0" ]
6
2019-11-02T05:48:42.000Z
2021-09-03T03:38:27.000Z
import numpy as np with open("./foodData/doinfer.txt") as f: data=f.readlines() seq=[] ang1=[] ang2=[] for i in range(len(data)): if(i%3==0): line=np.asarray(list(data[i].strip())) seq.append(line) elif(i%3==1): ang1s=np.asarray(data[i].strip().split(" ")) ang1.append(ang1s...
22.586207
52
0.610687
4a20ab49c67c68a77a93bb079909eaa8f1336f63
1,448
py
Python
runtests.py
Frojd/Fabrik
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
[ "MIT" ]
12
2015-11-03T20:41:29.000Z
2019-02-15T17:13:27.000Z
runtests.py
Frojd/Fabrik
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
[ "MIT" ]
35
2015-08-23T17:10:00.000Z
2017-05-10T12:08:57.000Z
runtests.py
Frojd/Fabrik
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import sys from fabric.state import env from fabric.state import output test_suite = [ "tests.test_api", "tests.test_ext", "tests.test_recipes", "tests.test_cli", ] def prepare_test(): import logging from fabrik.logger import logger # Mute fabric...
21.61194
74
0.638122
4a20abda3b0a642c283108bad2c1a485b3c3c4ec
1,212
py
Python
iamheadless_publisher_site_homepages/pydantic_models.py
plain-ie/iamheadless_publisher_site_homepages
f7263de520c895664b508702495b34aac4aed8ae
[ "MIT" ]
null
null
null
iamheadless_publisher_site_homepages/pydantic_models.py
plain-ie/iamheadless_publisher_site_homepages
f7263de520c895664b508702495b34aac4aed8ae
[ "MIT" ]
null
null
null
iamheadless_publisher_site_homepages/pydantic_models.py
plain-ie/iamheadless_publisher_site_homepages
f7263de520c895664b508702495b34aac4aed8ae
[ "MIT" ]
null
null
null
from typing import List, Optional from django.shortcuts import reverse from iamheadless_publisher_site.pydantic_models import BaseItemContentsPydanticModel, BaseItemDataPydanticModel, BaseItemPydanticModel from .conf import settings from .urls import urlpatterns class HomepageContentPydanticModel(BaseItemContentsP...
26.347826
134
0.738449
4a20ac5c60790cf00cf9c5c037e3f3dc134dc263
5,264
py
Python
ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py
nikhilym/alexa-apis-for-python
be6b31529dba4c9b4db7d5e5b7cb509761b0c58d
[ "Apache-2.0" ]
null
null
null
ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py
nikhilym/alexa-apis-for-python
be6b31529dba4c9b4db7d5e5b7cb509761b0c58d
[ "Apache-2.0" ]
null
null
null
ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py
nikhilym/alexa-apis-for-python
be6b31529dba4c9b4db7d5e5b7cb509761b0c58d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
38.144928
182
0.644377
4a20aed61d0204e37a37c7f23b6baeb5000eb8a9
4,663
py
Python
google/ads/google_ads/v6/proto/enums/user_list_prepopulation_status_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/enums/user_list_prepopulation_status_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/enums/user_list_prepopulation_status_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/enums/user_list_prepopulation_status.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf...
42.779817
707
0.802702
4a20afc19233a7e37a9e29715e16e35c544240a4
2,958
py
Python
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
49.3
221
0.683908
4a20afe462651150f3ec887cb82a129364f3bfc5
3,433
py
Python
autotabular/pipeline/components/data_preprocessing/label_encoder/label_encoder.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
autotabular/pipeline/components/data_preprocessing/label_encoder/label_encoder.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
autotabular/pipeline/components/data_preprocessing/label_encoder/label_encoder.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
from decimal import Decimal from typing import Dict, Optional, Tuple, Union import numpy as np from autotabular.pipeline.base import DATASET_PROPERTIES_TYPE, PIPELINE_DATA_DTYPE from autotabular.pipeline.components.base import AutotabularPreprocessingAlgorithm from autotabular.pipeline.constants import DENSE, INPUT, S...
36.136842
82
0.635304
4a20b1067f827fadd75ce7cab3b1fe45ddca37fd
634
py
Python
app/config.py
Berthedusabeyezu/News-Highlight
cd4af3edb031a5bf1013684058434e05d07f5c99
[ "MIT" ]
null
null
null
app/config.py
Berthedusabeyezu/News-Highlight
cd4af3edb031a5bf1013684058434e05d07f5c99
[ "MIT" ]
null
null
null
app/config.py
Berthedusabeyezu/News-Highlight
cd4af3edb031a5bf1013684058434e05d07f5c99
[ "MIT" ]
null
null
null
class Config: ''' General configuration parent class ''' NEWS_API_BASE_URL ='https://newsapi.org/v2/sources?category={}&apiKey={}' ARTICLES_API_BASE_URL = 'https://newsapi.org/v2/everything?sources={}&apiKey={}' class ProdConfig(Config): ''' Production configuration child class Args...
21.133333
84
0.657729
4a20b37c735c455139512fa2d7c7f96b1d836065
206
py
Python
services/catalog/src/simcore_service_catalog/db/repositories/_base.py
elisabettai/osparc-simcore
ad7b6e05111b50fe95e49306a992170490a7247f
[ "MIT" ]
null
null
null
services/catalog/src/simcore_service_catalog/db/repositories/_base.py
elisabettai/osparc-simcore
ad7b6e05111b50fe95e49306a992170490a7247f
[ "MIT" ]
1
2021-11-29T13:38:09.000Z
2021-11-29T13:38:09.000Z
services/catalog/src/simcore_service_catalog/db/repositories/_base.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
null
null
null
from dataclasses import dataclass from sqlalchemy.ext.asyncio import AsyncEngine @dataclass class BaseRepository: """ Repositories are pulled at every request """ db_engine: AsyncEngine
15.846154
46
0.747573
4a20b490512902e94929b357933dbd9ce1abcdee
2,154
py
Python
trainer.py
vicioux/mobile-semantic-segmentation
4879e76b274c90323960996c42d8aec916e44ee2
[ "MIT" ]
34
2019-01-21T14:21:06.000Z
2022-03-23T12:27:35.000Z
trainer.py
tsingjinyun/mobile-semantic-segmentation
4879e76b274c90323960996c42d8aec916e44ee2
[ "MIT" ]
2
2019-10-26T09:19:42.000Z
2021-07-18T21:59:26.000Z
trainer.py
tsingjinyun/mobile-semantic-segmentation
4879e76b274c90323960996c42d8aec916e44ee2
[ "MIT" ]
8
2019-06-12T07:58:58.000Z
2020-11-06T02:29:56.000Z
import pandas as pd import torch class Trainer: def __init__(self, data_loaders, criterion, device, on_after_epoch=None): self.data_loaders = data_loaders self.criterion = criterion self.device = device self.history = [] self.on_after_epoch = on_after_epoch def train(s...
29.506849
77
0.589136
4a20b4b4ccfbcfefb214f689ab9338ce7e4531b7
527
py
Python
env/lib/python3.8/site-packages/plotly/validators/splom/hoverlabel/_bordercolor.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/splom/hoverlabel/_bordercolor.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/splom/hoverlabel/_bordercolor.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="bordercolor", parent_name="splom.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, p...
32.9375
81
0.639469
4a20b61b2a5c91e76a0264fb45c79c023867c30b
2,440
py
Python
apps/project/ActuatorAdaptor.py
GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES-_PYTHON
da231c97bacbc3aa26096b1f94ee9201466678ca
[ "CNRI-Python" ]
null
null
null
apps/project/ActuatorAdaptor.py
GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES-_PYTHON
da231c97bacbc3aa26096b1f94ee9201466678ca
[ "CNRI-Python" ]
null
null
null
apps/project/ActuatorAdaptor.py
GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES-_PYTHON
da231c97bacbc3aa26096b1f94ee9201466678ca
[ "CNRI-Python" ]
null
null
null
''' Created on Jan 26, 2019 ActuatorAdaptor.py : class to process actuator message and set message to SenseHat @author: GANESHRAM KANAKASABAI ''' from project import ActuatorData from project import SenseHatLedActivator from project import SmtpClientConnector class ActuatorAdaptor(object): ''' ActuatorAdaptor...
49.795918
169
0.684426
4a20b6c4205121c200c7e1aab9edb4541d97b347
726
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/stencil_two_side.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/stencil_two_side.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/stencil_two_side.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
38.210526
118
0.796143
4a20b6dd7221700126c11c2c26569db6c53f35dc
34,351
py
Python
baselines/policy/bounded_mlp_policy.py
WolfLo/OPTIMIST
b6b49f34e53b3f626ae764bb1e9672fcabb54d19
[ "MIT" ]
5
2019-06-17T13:15:56.000Z
2019-10-16T04:38:00.000Z
baselines/policy/bounded_mlp_policy.py
WolfLo/OPTIMIST
b6b49f34e53b3f626ae764bb1e9672fcabb54d19
[ "MIT" ]
null
null
null
baselines/policy/bounded_mlp_policy.py
WolfLo/OPTIMIST
b6b49f34e53b3f626ae764bb1e9672fcabb54d19
[ "MIT" ]
2
2019-08-11T22:38:21.000Z
2019-11-04T15:25:32.000Z
from baselines.common.mpi_running_mean_std import RunningMeanStd import baselines.common.tf_util as U import tensorflow as tf import gym from baselines.common import set_global_seeds from baselines.common.distributions import make_pdtype import numpy as np import scipy.stats as sts #import time class MlpPolicyBounded...
44.323871
139
0.562254
4a20b74a81048abd2b2832f147a0673c8f733498
33,049
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_authentication_scheme.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_authentication_scheme.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_authentication_scheme.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
32.983034
154
0.414052
4a20b7fffcf477295cf6aacd13446c84740dc405
2,393
py
Python
4. Convolutional Neural Networks/yad2k/models/keras_darknet19.py
Boonichi/Deep-Learning-Specialization
4061c4a2b38cadeb12d582cdcb2e7de7b1d3b407
[ "MIT" ]
null
null
null
4. Convolutional Neural Networks/yad2k/models/keras_darknet19.py
Boonichi/Deep-Learning-Specialization
4061c4a2b38cadeb12d582cdcb2e7de7b1d3b407
[ "MIT" ]
null
null
null
4. Convolutional Neural Networks/yad2k/models/keras_darknet19.py
Boonichi/Deep-Learning-Specialization
4061c4a2b38cadeb12d582cdcb2e7de7b1d3b407
[ "MIT" ]
null
null
null
"""Darknet19 Model Defined in Keras.""" import functools from functools import partial from keras.layers import Conv2D, MaxPooling2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormalization from keras.models import Model from keras.regularizers import l2 from ....
33.704225
77
0.712077
4a20b86888ac0635902dcb9c8181891a3ed8a937
8,948
py
Python
tests/synth_tests/test_synth_workload.py
agalup/GPUMemManSurvey
494e41c2587b69472ad5a17a602ff290b1b1a6ab
[ "MIT" ]
13
2021-02-26T15:15:29.000Z
2021-09-22T19:06:27.000Z
tests/synth_tests/test_synth_workload.py
agalup/GPUMemManSurvey
494e41c2587b69472ad5a17a602ff290b1b1a6ab
[ "MIT" ]
null
null
null
tests/synth_tests/test_synth_workload.py
agalup/GPUMemManSurvey
494e41c2587b69472ad5a17a602ff290b1b1a6ab
[ "MIT" ]
1
2021-09-29T21:24:15.000Z
2021-09-29T21:24:15.000Z
import sys sys.path.append('../../scripts') import os import shutil import time from datetime import datetime from timedprocess import Command from Helper import generateResultsFromSynthetic # from Helper import plotMean import csv import argparse def main(): # Run all files from a directory print("################...
48.367568
232
0.625726
4a20b9436646cb889c258999ca83affbaec971a1
775
py
Python
docs/examples/data_access/django/example/app/views.py
connec/oso
a12d94206807b69beb6fe7a9070b9afcacdfc845
[ "Apache-2.0" ]
2,167
2020-07-28T15:49:48.000Z
2022-03-31T06:11:28.000Z
docs/examples/data_access/django/example/app/views.py
connec/oso
a12d94206807b69beb6fe7a9070b9afcacdfc845
[ "Apache-2.0" ]
1,060
2020-07-25T18:37:07.000Z
2022-03-30T05:49:44.000Z
docs/examples/data_access/django/example/app/views.py
connec/oso
a12d94206807b69beb6fe7a9070b9afcacdfc845
[ "Apache-2.0" ]
118
2020-08-05T19:27:14.000Z
2022-03-31T16:37:39.000Z
from base64 import urlsafe_b64decode from django.http import HttpResponse from app.models import Post, User def user_from_request(request): try: username = ( urlsafe_b64decode(request.headers.get("Authorization").split(" ")[1]) .decode("utf-8") .split(":")[0] ...
27.678571
87
0.643871
4a20bb31bd413d5ecb81423145b4590b8d0a29e9
160
py
Python
Note-6 A3CNet/Note 6 simple ACNet/Agent_test.py
summerRainn/DeepLearningNotes
6657694d5e22e73969e47699b4e31a28385d0f19
[ "MIT" ]
345
2017-08-23T13:48:50.000Z
2022-03-17T05:43:34.000Z
Note-6 A3CNet/Note 6 simple ACNet/Agent_test.py
summerRainn/DeepLearningNotes
6657694d5e22e73969e47699b4e31a28385d0f19
[ "MIT" ]
8
2017-09-30T15:01:23.000Z
2019-12-18T08:46:08.000Z
Note-6 A3CNet/Note 6 simple ACNet/Agent_test.py
summerRainn/DeepLearningNotes
6657694d5e22e73969e47699b4e31a28385d0f19
[ "MIT" ]
224
2017-08-31T01:10:55.000Z
2022-03-09T06:14:12.000Z
from Agent import Agent GAME = 'CartPole-v0' MAX_EPISODES = 100 def main(): A = Agent(GAME) A.run(MAX_EPISODES) if __name__ == '__main__': main()
14.545455
26
0.65
4a20bbf8e2fd44536cbd6c45b559eb3783b09e47
964
py
Python
testkraut/tests/localtests/check_fsl_workflow/bet_wf.py
hanke/testkraut
8a4c942e19e0381e26770c58fbd67b85db50c1d8
[ "MIT" ]
2
2017-10-16T14:56:59.000Z
2019-07-18T13:49:58.000Z
testkraut/tests/localtests/check_fsl_workflow/bet_wf.py
hanke/testkraut
8a4c942e19e0381e26770c58fbd67b85db50c1d8
[ "MIT" ]
null
null
null
testkraut/tests/localtests/check_fsl_workflow/bet_wf.py
hanke/testkraut
8a4c942e19e0381e26770c58fbd67b85db50c1d8
[ "MIT" ]
5
2015-03-05T07:11:36.000Z
2019-11-25T10:46:15.000Z
import os import nipype.interfaces.fsl as fsl # fsl import nipype.interfaces.io as nio # Data i/o import nipype.pipeline.engine as pe # pypeline engine fsl.FSLCommand.set_default_output_type('NIFTI_GZ') test_workflow = pe.Workflow(name='justbet') datasource = pe.Node(interface=nio.DataGra...
37.076923
67
0.70332
4a20bcea7c2d9c858609521074d50dffedfe1c2b
3,495
py
Python
experiments/camera_demo.py
lxy5513/Multi-Style-Transfer
469bb322c21cf1c22143cb154baa5c31f9774113
[ "MIT" ]
4
2019-07-15T04:33:02.000Z
2021-04-13T13:34:39.000Z
experiments/camera_demo.py
lxy5513/Multi-Style-Transfer
469bb322c21cf1c22143cb154baa5c31f9774113
[ "MIT" ]
1
2020-07-09T10:25:44.000Z
2020-07-09T10:25:44.000Z
experiments/camera_demo.py
lxy5513/Multi-Style-Transfer
469bb322c21cf1c22143cb154baa5c31f9774113
[ "MIT" ]
1
2019-04-09T23:18:35.000Z
2019-04-09T23:18:35.000Z
import os import cv2 import numpy as np import torch from torch.autograd import Variable from net import Net from option import Options import utils from utils import StyleLoader def run_demo(args, mirror=False): # style_model = Net(ngf=args.ngf) # style_model.load_state_dict(torch.load(args.model)) mo...
31.205357
86
0.553362
4a20bd1a64630d45f4404859b7aee37ca3b6fe17
4,567
py
Python
third_party/cpuinfo/configure.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
null
null
null
third_party/cpuinfo/configure.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
null
null
null
third_party/cpuinfo/configure.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python import confu parser = confu.standard_parser("cpuinfo configuration script") parser.add_argument("--log", dest="log_level", choices=("none", "error", "warning", "info", "debug"), default="error") parser.add_argument("--mock", dest="mock", action="store_true") def main(args): options = p...
40.776786
127
0.554631
4a20bdf15f6152a01b76ce227aeccc28d7600f54
2,998
py
Python
aim/ql/grammar/atom.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
1
2021-07-19T19:21:30.000Z
2021-07-19T19:21:30.000Z
aim/ql/grammar/atom.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
2
2021-08-25T16:17:16.000Z
2022-02-10T05:49:55.000Z
aim/ql/grammar/atom.py
paulmchen/aim
53212cdce7a80cb8dadfaf7869a31fbf4ee6ce5b
[ "Apache-2.0" ]
1
2021-01-29T02:10:14.000Z
2021-01-29T02:10:14.000Z
from pyrser import grammar, meta from aim.ql.tokens.token import TokenList, Token class Atom(grammar.Grammar): entry = "input" grammar = """ input = [ atom:>_ eof ] atom = [ [ number | list | path ]:>_ ...
22.541353
79
0.441961
4a20be9548d6bda876577d34fddfeebb9746802b
4,381
py
Python
TIDALDL-PY/tidal_dl/lang/czech.py
calliswell/Tidal-Media-Downloader
f2716e014ea8c721761a41a151df8c07394f1993
[ "Apache-2.0" ]
2
2021-07-10T09:31:48.000Z
2021-07-11T14:45:52.000Z
TIDALDL-PY/tidal_dl/lang/czech.py
calliswell/Tidal-Media-Downloader
f2716e014ea8c721761a41a151df8c07394f1993
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/czech.py
calliswell/Tidal-Media-Downloader
f2716e014ea8c721761a41a151df8c07394f1993
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : czech.py @Time : 2020/08/20 @Author : Tomikk @Version : 1.0 @Contact : justtomikk@gmail.com @Desc : ''' class LangCzech(object): SETTING = "Nastavení" VALUE = "Hodnota" SETTING_DOWNLOAD_PATH = "Umístění stažené...
42.95098
96
0.683862
4a20c0e4e755b53673a835ed797ebed63bcc898f
10,400
py
Python
jsonpickle/ext/numpy.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
jsonpickle/ext/numpy.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
jsonpickle/ext/numpy.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import sys import zlib import warnings import numpy as np import ast from ..handlers import BaseHandler, register, unregister from ..compat import unicode from ..util import b64decode, b64encode __all__ = ['register_handlers', 'unregister_handlers'] n...
36.491228
118
0.616154
4a20c199ad66c7b12449a20d0d8b3d6006aabef4
28,659
py
Python
github_to_sqlite/utils.py
AlvaroJoseLopes/github-to-sqlite
6f61f94f8b43b3021e79c6b6ef4d5f47f6e8785b
[ "Apache-2.0" ]
null
null
null
github_to_sqlite/utils.py
AlvaroJoseLopes/github-to-sqlite
6f61f94f8b43b3021e79c6b6ef4d5f47f6e8785b
[ "Apache-2.0" ]
null
null
null
github_to_sqlite/utils.py
AlvaroJoseLopes/github-to-sqlite
6f61f94f8b43b3021e79c6b6ef4d5f47f6e8785b
[ "Apache-2.0" ]
null
null
null
import base64 import requests import re import time import yaml FTS_CONFIG = { # table: columns "commits": ["message"], "issue_comments": ["body"], "issues": ["title", "body"], "pull_requests": ["title", "body"], "labels": ["name", "description"], "licenses": ["name"], "milestones": ["t...
32.021229
89
0.559545
4a20c455b9e3eab990d31739667b7094d254ce97
9,207
py
Python
d2lbook/library.py
sxjscience/d2l-book
557dfb40424f21e2c00a61f808275d3bc2b855ab
[ "Apache-2.0" ]
null
null
null
d2lbook/library.py
sxjscience/d2l-book
557dfb40424f21e2c00a61f808275d3bc2b855ab
[ "Apache-2.0" ]
null
null
null
d2lbook/library.py
sxjscience/d2l-book
557dfb40424f21e2c00a61f808275d3bc2b855ab
[ "Apache-2.0" ]
null
null
null
"""Save codes into library""" from typing import List from d2lbook import notebook import logging import os import copy import re import pathlib import ast import astor from yapf.yapflib.yapf_api import FormatCode import isort def _write_header(f): f.write('# This file is generated automatically through:\n') f...
36.828
87
0.557076
4a20c53430bf3e8e0271e436c916b592bf4225a2
5,994
py
Python
uge/api/impl/qrstat_executor.py
guiguem/config-api
40bff0ed498c571910f76ef08fb5a8b35a686e78
[ "Apache-2.0" ]
null
null
null
uge/api/impl/qrstat_executor.py
guiguem/config-api
40bff0ed498c571910f76ef08fb5a8b35a686e78
[ "Apache-2.0" ]
null
null
null
uge/api/impl/qrstat_executor.py
guiguem/config-api
40bff0ed498c571910f76ef08fb5a8b35a686e78
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # #___INFO__MARK_BEGIN__ ########################################################################## # Copyright 2016,2017 Univa Corporation # # 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 ...
41.054795
148
0.627794
4a20c5bc3e19670ae70cdc980c8c2eed32e8c6ba
1,059
py
Python
primeFactorList.py
lshdfp726/GetFactors
bb5aa353df63542cf97dfd9da3678d9c8c3cec93
[ "MIT" ]
null
null
null
primeFactorList.py
lshdfp726/GetFactors
bb5aa353df63542cf97dfd9da3678d9c8c3cec93
[ "MIT" ]
null
null
null
primeFactorList.py
lshdfp726/GetFactors
bb5aa353df63542cf97dfd9da3678d9c8c3cec93
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding:UTF8 -*- 'prime factor' import isPrime import getFactors primefactorArray = [] #一个数的质因数列表 def primeFactorList(number): 'get prime factor list' if isPrime.prime(number):#如果是质数,返回1和其本身 return [1,number] else: array = getFactors.getfactors(number) array.remove(1) arra...
23.021739
76
0.729934
4a20c74416cd35e999514b8963034293a84b53a0
7,843
py
Python
python/setup.py
lorepieri8/he-transformer
894b2204c9f9b62519207493d13756e12268e12b
[ "Apache-2.0" ]
null
null
null
python/setup.py
lorepieri8/he-transformer
894b2204c9f9b62519207493d13756e12268e12b
[ "Apache-2.0" ]
null
null
null
python/setup.py
lorepieri8/he-transformer
894b2204c9f9b62519207493d13756e12268e12b
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, Extension from setuptools.command.build_ext import build_ext import sys import setuptools import os # TODO: get from environment __version__ = '0.0.0.dev0' PYNGRAPH_ROOT_DIR = os.path.abspath(os.path.dirname(__file__)) BOOST_ROOT_DIR = os.path.abspath(os.path.dirname(__file__)) def fin...
33.660944
79
0.659569
4a20c7c734d163a83bf377946183c9383cc18966
350
py
Python
home/views.py
ishaileshmishra/todo_api_jango
8a78d018b635c55b40f88b04deada86b873cc883
[ "MIT" ]
2
2020-06-21T06:44:58.000Z
2021-09-22T05:38:33.000Z
home/views.py
ishaileshmishra/todo_api_jango
8a78d018b635c55b40f88b04deada86b873cc883
[ "MIT" ]
null
null
null
home/views.py
ishaileshmishra/todo_api_jango
8a78d018b635c55b40f88b04deada86b873cc883
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import TemplateView # Create your views here. # home/views.py # Create your views here. class HomePageView(TemplateView): def get(self, request, **kwargs): return render(request, 'index.html', context=None) class AboutPageView(TemplateView): ...
29.166667
58
0.751429
4a20c8ceea3a4c256f3a6cfda2908b8e2e6055e1
463
py
Python
accounts/views/__init__.py
bbengfort/ledger
f3b961be568d3a373228ee2ccf52afc7fb7ca9a8
[ "MIT" ]
1
2018-08-15T22:34:33.000Z
2018-08-15T22:34:33.000Z
accounts/views/__init__.py
bbengfort/ledger
f3b961be568d3a373228ee2ccf52afc7fb7ca9a8
[ "MIT" ]
75
2018-05-07T21:13:27.000Z
2021-09-22T17:45:20.000Z
accounts/views/__init__.py
bbengfort/ledger
f3b961be568d3a373228ee2ccf52afc7fb7ca9a8
[ "MIT" ]
2
2018-08-15T22:34:34.000Z
2020-07-04T17:27:41.000Z
# accounts.views # Views and controllers for the account app. # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Wed May 02 15:42:02 2018 -0400 # # ID: __init__.py [] benjamin@bengfort.com $ """ Views and controllers for the account app. """ #############################################################...
24.368421
74
0.477322
4a20c8d21037d3242e6498e01c12ab402706dee0
2,188
py
Python
doc/plugin_samples/vm_balance.py
oVirt/ovirt-scheduler-proxy
33f0db60549d1fb2efbbd86cdfb29dfa8a8b5d74
[ "Apache-2.0" ]
2
2017-08-03T16:45:00.000Z
2022-02-05T14:03:09.000Z
doc/plugin_samples/vm_balance.py
oVirt/ovirt-scheduler-proxy
33f0db60549d1fb2efbbd86cdfb29dfa8a8b5d74
[ "Apache-2.0" ]
null
null
null
doc/plugin_samples/vm_balance.py
oVirt/ovirt-scheduler-proxy
33f0db60549d1fb2efbbd86cdfb29dfa8a8b5d74
[ "Apache-2.0" ]
1
2017-08-03T16:45:05.000Z
2017-08-03T16:45:05.000Z
from __future__ import print_function from ovirtsdk.api import API import sys class vm_balance(): """moves a vm from a host with to many""" # What are the values this module will accept, used to present # the user with options properties_validation = 'maximum_vm_count=[0-9]*' def _get_connection...
31.710145
69
0.59415
4a20c9bccb42937fa4c22449a3ba43b3d3eeb75a
5,163
py
Python
src/python/pants/backend/python/subsystems/setuptools_test.py
mpcusack-color/pants
0ce449f9181c690dbf60b2bc51b0e97f285eb9ae
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/subsystems/setuptools_test.py
mpcusack-color/pants
0ce449f9181c690dbf60b2bc51b0e97f285eb9ae
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
src/python/pants/backend/python/subsystems/setuptools_test.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent from pants.backend.python.goals.lockfile import GeneratePythonLockfile from pants.backend.python.macros.python_artifact imp...
33.309677
98
0.550843
4a20c9f888612469e5b8f547f25e16a294e55008
3,988
py
Python
aries_cloudagent/vc/vc_ld/models/linked_data_proof.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
247
2019-07-02T21:10:21.000Z
2022-03-30T13:55:33.000Z
aries_cloudagent/vc/vc_ld/models/linked_data_proof.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
1,462
2019-07-02T20:57:30.000Z
2022-03-31T23:13:35.000Z
aries_cloudagent/vc/vc_ld/models/linked_data_proof.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
377
2019-06-20T21:01:31.000Z
2022-03-30T08:27:53.000Z
"""LinkedDataProof.""" from marshmallow import INCLUDE, fields, post_dump from ....messaging.valid import INDY_ISO8601_DATETIME, UUIDFour, Uri from ....messaging.models.base import BaseModel, BaseModelSchema from typing import Optional class LDProof(BaseModel): """Linked Data Proof model.""" class Meta: ...
27.503448
88
0.621113
4a20caa6731635b89943624c01d838076fa82fbc
5,963
py
Python
scripts/var_visualization.py
BalazsHoranyi/TimeSeries-D3M-Wrappers
61d97bf5235fcfa9ffd95f7e0982e04f650e54de
[ "MIT" ]
null
null
null
scripts/var_visualization.py
BalazsHoranyi/TimeSeries-D3M-Wrappers
61d97bf5235fcfa9ffd95f7e0982e04f650e54de
[ "MIT" ]
null
null
null
scripts/var_visualization.py
BalazsHoranyi/TimeSeries-D3M-Wrappers
61d97bf5235fcfa9ffd95f7e0982e04f650e54de
[ "MIT" ]
null
null
null
# compare ARIMA and VAR predictions on examples from population spawn dataset from common_primitives import dataset_to_dataframe as DatasetToDataFrame from d3m import container from d3m.primitives.time_series_forecasting.vector_autoregression import VAR from Sloth.predict import Arima from d3m.container import DataFram...
50.109244
203
0.714406
4a20caf3a41b350b746a569b806b6f9d148809be
219
py
Python
mysite/mysite/listDb.py
xinkaiwang/robotJump
622e97451f450b755aecbd60e15b2cd47d875f47
[ "MIT" ]
null
null
null
mysite/mysite/listDb.py
xinkaiwang/robotJump
622e97451f450b755aecbd60e15b2cd47d875f47
[ "MIT" ]
null
null
null
mysite/mysite/listDb.py
xinkaiwang/robotJump
622e97451f450b755aecbd60e15b2cd47d875f47
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") import django django.setup() # your imports, e.g. Django models from buckets.models import * all = ImageInfo.objects.all()
16.846154
59
0.753425
4a20cb0e1297b40af29ba359338e6430bf62ff25
5,992
py
Python
gym/gym/envs/my_games/Atari/physics.py
tailintalent/mela
6220f530ff8516d0652ca0849a57ab883b893199
[ "MIT" ]
3
2019-11-12T08:15:07.000Z
2020-05-07T16:49:15.000Z
gym/gym/envs/my_games/Atari/physics.py
tailintalent/mela
6220f530ff8516d0652ca0849a57ab883b893199
[ "MIT" ]
1
2020-12-07T14:29:57.000Z
2020-12-07T14:29:57.000Z
gym/gym/envs/my_games/Atari/physics.py
tailintalent/mela
6220f530ff8516d0652ca0849a57ab883b893199
[ "MIT" ]
null
null
null
import numpy as np def get_physics(physics_settings, dt): physics_list = [] for physics_name, physics_params in physics_settings: if physics_name == "linear": physics_class = Linear elif physics_name == "gravity": physics_class = Uniform_Gravity elif physics_nam...
35.455621
99
0.535547
4a20cd1a211fb78bdf888dd10abb78dc0d383b02
1,254
py
Python
location/factory.py
iandees/loco
5369decfc1c12a46a1b5011cff52225f90138761
[ "MIT" ]
2
2018-07-04T23:35:24.000Z
2019-01-22T01:54:57.000Z
location/factory.py
iandees/loco
5369decfc1c12a46a1b5011cff52225f90138761
[ "MIT" ]
5
2018-06-30T21:51:48.000Z
2018-06-30T22:12:18.000Z
location/factory.py
iandees/loco
5369decfc1c12a46a1b5011cff52225f90138761
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Flask, session from flask_sslify import SSLify from werkzeug.contrib.fixers import ProxyFix from location import blueprints, oauth_providers from location.core import cache, db, env, login_manager, migrate, oauth def create_app(package_name): app = Flask(package_name, in...
27.866667
71
0.72807
4a20cfb50fdcf31f32b5eb01c4c3bec04b14d09c
553
py
Python
judge/config.py
Zoctan/WYUOpenJudge
59c74dc12f22012d6e28f7dffa3cb633c87d4686
[ "Apache-2.0" ]
null
null
null
judge/config.py
Zoctan/WYUOpenJudge
59c74dc12f22012d6e28f7dffa3cb633c87d4686
[ "Apache-2.0" ]
1
2018-05-26T10:39:24.000Z
2018-05-26T10:39:24.000Z
judge/config.py
Zoctan/WYUOpenJudge
59c74dc12f22012d6e28f7dffa3cb633c87d4686
[ "Apache-2.0" ]
1
2018-05-18T10:29:06.000Z
2018-05-18T10:29:06.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os setting = 'charset=utf8' class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or \ 'the quick brown fox jumps over the lazy dog' SQLALCHEMY_TRACK_MODIFICATIONS = True @staticmethod def init_app(app): pass class D...
16.757576
62
0.663653
4a20cfcac68e5b7476f45f583c8ee923a0278fb0
5,107
py
Python
Tests/test_closure.py
0xFireball/exascript2
f6c69ac41f8fa1e5e9e42a677717e85b9ff9d0c3
[ "Apache-2.0" ]
null
null
null
Tests/test_closure.py
0xFireball/exascript2
f6c69ac41f8fa1e5e9e42a677717e85b9ff9d0c3
[ "Apache-2.0" ]
null
null
null
Tests/test_closure.py
0xFireball/exascript2
f6c69ac41f8fa1e5e9e42a677717e85b9ff9d0c3
[ "Apache-2.0" ]
1
2019-09-18T05:37:46.000Z
2019-09-18T05:37:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of th...
15.336336
96
0.447425
4a20d043e1808e9cc5923fd54110496eab7e33a6
812
py
Python
demo/demo/urls.py
SureeLee/TestDjango
70edef664ef9b537cf0aa507277b3efb37cf7d39
[ "Apache-2.0" ]
null
null
null
demo/demo/urls.py
SureeLee/TestDjango
70edef664ef9b537cf0aa507277b3efb37cf7d39
[ "Apache-2.0" ]
null
null
null
demo/demo/urls.py
SureeLee/TestDjango
70edef664ef9b537cf0aa507277b3efb37cf7d39
[ "Apache-2.0" ]
null
null
null
"""demo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
33.833333
79
0.697044
4a20d10509d5fc8572416ed54640bc42a55913f8
191
py
Python
text_generation/text_generation.py
ivan-jaramillo/text-generation
c6d4b52179cabeeb577549be7fbc5bc421adafe5
[ "MIT" ]
null
null
null
text_generation/text_generation.py
ivan-jaramillo/text-generation
c6d4b52179cabeeb577549be7fbc5bc421adafe5
[ "MIT" ]
4
2021-07-11T16:21:01.000Z
2021-08-20T03:30:20.000Z
text_generation/text_generation.py
ivan-jaramillo/text-generation
c6d4b52179cabeeb577549be7fbc5bc421adafe5
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers.experimental import preprocessing import numpy as np import os import time def main(): pass if __name__ == '__main__': main()
13.642857
62
0.743455
4a20d24d17e68a3914225d77f90c9afb5286d63a
4,555
py
Python
test/test_postgres.py
pennsignals/dsdk
fc8d40444fd077b4341e8dfe6d36f5a4b04ca8b5
[ "MIT" ]
6
2020-03-27T20:56:27.000Z
2022-01-11T16:10:22.000Z
test/test_postgres.py
pennsignals/dsdk
fc8d40444fd077b4341e8dfe6d36f5a4b04ca8b5
[ "MIT" ]
37
2019-12-11T21:15:21.000Z
2021-12-22T14:57:38.000Z
test/test_postgres.py
pennsignals/dsdk
fc8d40444fd077b4341e8dfe6d36f5a4b04ca8b5
[ "MIT" ]
5
2020-03-31T16:30:48.000Z
2022-02-10T20:50:34.000Z
# -*- coding: utf-8 -*- """Test postgres.""" from contextlib import contextmanager from os import environ as os_env from typing import Any, Generator from pandas import DataFrame, read_sql_query from dsdk import Asset, Batch, Postgres, configure_logger from dsdk.model import Batch as ModelBatch logger = configure_l...
25.589888
75
0.528211
4a20d300a4d9427c1cca5969dd4dd8b1cb1b51a8
15,827
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
51.553746
325
0.672774
4a20d3a97b20991dd5a0c4a6bfeb3b6d4a4df73e
1,209
py
Python
api/utils/transfer.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/utils/transfer.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/utils/transfer.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
import pexpect class Transfer(object): def __init__(self, ip, user, passwd,): self.ip = ip self.user = user self.passwd = passwd def file_transfer(self, dst_path, filename, to_local=False): print("远程传输开始...") passwd_key = '.*assword.*' if not to_local: ...
36.636364
134
0.612076
4a20d3aeb5be6a283c3d65224facd995093f95b0
23,754
py
Python
plgx-esp-ui/polylogyx/blueprints/v1/hosts.py
dhoomakethu/plgx-esp
b466b52a5e16a0d12a61e505e48add83bee5bad4
[ "MIT" ]
20
2019-12-09T13:55:13.000Z
2022-01-10T09:10:42.000Z
plgx-esp-ui/polylogyx/blueprints/v1/hosts.py
dhoomakethu/plgx-esp
b466b52a5e16a0d12a61e505e48add83bee5bad4
[ "MIT" ]
13
2019-12-03T13:27:27.000Z
2021-12-03T05:22:49.000Z
plgx-esp-ui/polylogyx/blueprints/v1/hosts.py
dhoomakethu/plgx-esp
b466b52a5e16a0d12a61e505e48add83bee5bad4
[ "MIT" ]
16
2019-11-15T11:45:06.000Z
2022-01-07T08:07:11.000Z
from flask_restplus import Namespace, Resource, inputs from polylogyx.blueprints.v1.utils import * from polylogyx.utils import require_api_key, assemble_configuration, assemble_additional_configuration from polylogyx.dao.v1 import hosts_dao as dao, tags_dao from polylogyx.wrappers.v1 import host_wrappers as wrapper, p...
44.903592
329
0.615896
4a20d54b6022592ce577936c8a87736324e0056c
3,742
py
Python
axiom/tags.py
hawkowl/axiom
8636e29aa224d05388a0f58106dc29f895b82209
[ "MIT" ]
23
2015-01-08T07:29:32.000Z
2021-11-03T11:27:48.000Z
axiom/tags.py
hawkowl/axiom
8636e29aa224d05388a0f58106dc29f895b82209
[ "MIT" ]
109
2015-01-08T05:54:56.000Z
2022-03-02T04:06:40.000Z
axiom/tags.py
hawkowl/axiom
8636e29aa224d05388a0f58106dc29f895b82209
[ "MIT" ]
16
2015-01-08T07:08:43.000Z
2021-07-28T02:53:17.000Z
from epsilon.extime import Time from axiom.item import Item from axiom.attributes import text, reference, integer, AND, timestamp class Tag(Item): typeName = 'tag' schemaVersion = 1 name = text(doc=""" The short string which is being applied as a tag to an Item. """) created = timestamp(doc...
29.698413
85
0.614645
4a20d5a70974506d0bd75e0638db9a5df1642bf8
18,608
py
Python
ava_nmt/build_model.py
SwordYork/sequencing
bcbc2006bf17315411ac3d629f7014f790b70418
[ "MIT" ]
45
2017-08-06T15:02:12.000Z
2021-01-24T19:12:13.000Z
ava_nmt/build_model.py
SwordYork/sequencing
bcbc2006bf17315411ac3d629f7014f790b70418
[ "MIT" ]
null
null
null
ava_nmt/build_model.py
SwordYork/sequencing
bcbc2006bf17315411ac3d629f7014f790b70418
[ "MIT" ]
14
2017-08-07T04:56:55.000Z
2019-01-07T09:43:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Sword York # GitHub: https://github.com/SwordYork/sequencing # No rights reserved. # import json import numpy import sequencing as sq import tensorflow as tf from sequencing import TIME_MAJOR, MODE, LinearOp from sequencing.utils.metrics import Delta_BLEU...
44.623501
100
0.594153
4a20d75f6b8429fbcaf8846ba18df6aba06ef0e1
1,449
py
Python
WeatherScreens/ImageScreen.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
2
2020-10-26T19:18:11.000Z
2020-10-27T17:27:40.000Z
WeatherScreens/ImageScreen.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
null
null
null
WeatherScreens/ImageScreen.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
1
2020-12-18T03:42:42.000Z
2020-12-18T03:42:42.000Z
from PIL import Image, ImageDraw, ImageFont from suntime import Sun, SunTimeException from dateutil import tz from datetime import datetime, date, timedelta import pyowm import math from random import randrange from . import constants import dateutil.parser from . import ScreenBase class ImageScreen(ScreenBase.Screen...
34.5
94
0.643892
4a20d8c8785576d9bad952a75a13645b72f2ff75
104,386
py
Python
trainer.py
qianrusun1015/Disentangled-Person-Image-Generation
e4703860bb1b351050ce50f339985ff0811f1d64
[ "MIT" ]
165
2018-03-28T10:50:36.000Z
2022-01-09T10:56:58.000Z
trainer.py
qianrusun1015/Disentangled-Person-Image-Generation
e4703860bb1b351050ce50f339985ff0811f1d64
[ "MIT" ]
13
2018-04-11T08:04:44.000Z
2020-11-20T12:50:33.000Z
trainer.py
saswat0/Disentangled-Person-Image-Generation
e4703860bb1b351050ce50f339985ff0811f1d64
[ "MIT" ]
38
2018-05-16T08:50:11.000Z
2021-05-14T02:56:52.000Z
from __future__ import print_function # from trainer_Base import * import os, pdb import StringIO import scipy.misc import numpy as np import glob from itertools import chain from collections import deque import pickle, shutil from tqdm import tqdm from tqdm import trange from skimage.measure import compare_ssim as s...
59.751574
210
0.632776
4a20d93affcc8ad2ed570ef54764661ad5943e47
16,763
py
Python
original/fast_jtnn/chemutils.py
sehandev/JT-VAE
8e60eb560034bbc23d9989938d36b08a739edbb6
[ "MIT" ]
4
2021-03-31T08:15:54.000Z
2022-02-04T03:42:52.000Z
original/fast_jtnn/chemutils.py
sehandev/JT-VAE
8e60eb560034bbc23d9989938d36b08a739edbb6
[ "MIT" ]
1
2021-03-31T08:30:23.000Z
2021-03-31T08:30:23.000Z
original/fast_jtnn/chemutils.py
sehandev/JT-VAE
8e60eb560034bbc23d9989938d36b08a739edbb6
[ "MIT" ]
null
null
null
import rdkit import rdkit.Chem as Chem from scipy.sparse import csr_matrix from scipy.sparse.csgraph import minimum_spanning_tree from collections import defaultdict from rdkit.Chem.EnumerateStereoisomers import EnumerateStereoisomers, StereoEnumerationOptions from .vocab import Vocab MST_MAX_WEIGHT = 100 MAX_NCAND =...
38.983721
440
0.602756
4a20dac80ece721a7004f3f28f0b0aa53c85edf9
4,899
py
Python
client_code/Switch/__init__.py
jshaffstall/anvil-extras
521eec32a98cc038fea27379ff6c0ab024f31c7f
[ "MIT" ]
null
null
null
client_code/Switch/__init__.py
jshaffstall/anvil-extras
521eec32a98cc038fea27379ff6c0ab024f31c7f
[ "MIT" ]
null
null
null
client_code/Switch/__init__.py
jshaffstall/anvil-extras
521eec32a98cc038fea27379ff6c0ab024f31c7f
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # # Copyright (c) 2021 The Anvil Extras project team members listed at # https://github.com/anvilistas/anvil-extras/graphs/contributors # # This software is published at https://github.com/anvilistas/anvil-extras from anvil import CheckBox, app from anvil.js import get_dom_node as _get_d...
30.61875
155
0.683609
4a20dafa46ccc66cd904c280fe20e96de1554d62
13,872
py
Python
samples/openapi3/client/petstore/python/petstore_api/model/dog.py
deleonio/openapi-generator
6eaba7d0886ff4d683d826ae8324270bacbd3233
[ "Apache-2.0" ]
3
2021-09-19T20:02:36.000Z
2021-12-15T13:11:39.000Z
samples/openapi3/client/petstore/python/petstore_api/model/dog.py
deleonio/openapi-generator
6eaba7d0886ff4d683d826ae8324270bacbd3233
[ "Apache-2.0" ]
29
2021-04-07T07:38:57.000Z
2022-03-30T12:10:22.000Z
samples/openapi3/client/petstore/python/petstore_api/model/dog.py
deleonio/openapi-generator
6eaba7d0886ff4d683d826ae8324270bacbd3233
[ "Apache-2.0" ]
1
2021-08-11T10:03:42.000Z
2021-08-11T10:03:42.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noq...
42.552147
174
0.578431
4a20db3424f66aad6eedebb00800e7a1c7b53d46
14,707
py
Python
scam/consensus/multiprocess_validation.py
grayfallstown/scam-blockchain
2183020cc74bbd1a63dda6eb0d0e73c2a3429594
[ "Apache-2.0" ]
12
2021-08-04T14:35:02.000Z
2022-02-09T04:31:44.000Z
scam/consensus/multiprocess_validation.py
grayfallstown/scam-blockchain
2183020cc74bbd1a63dda6eb0d0e73c2a3429594
[ "Apache-2.0" ]
8
2021-08-04T20:58:10.000Z
2021-09-11T17:08:28.000Z
scam/consensus/multiprocess_validation.py
grayfallstown/scam-blockchain
2183020cc74bbd1a63dda6eb0d0e73c2a3429594
[ "Apache-2.0" ]
4
2021-07-28T09:50:55.000Z
2022-03-15T08:43:53.000Z
import asyncio import logging import traceback from concurrent.futures.process import ProcessPoolExecutor from dataclasses import dataclass from typing import Dict, List, Optional, Sequence, Tuple, Union, Callable from scam.consensus.block_header_validation import validate_finished_header_block from scam.consensus.blo...
46.103448
117
0.659346
4a20db9677114435c75ffa5bb36e4ff4e39ccc8b
33,553
py
Python
python/ccxt/bithumb.py
nagabrahmam-mantha/ccxt
b7ec0c03b935a63064b8b73226b39f1099933969
[ "MIT" ]
3
2020-03-04T06:38:18.000Z
2022-01-23T13:40:12.000Z
python/ccxt/bithumb.py
nagabrahmam-mantha/ccxt
b7ec0c03b935a63064b8b73226b39f1099933969
[ "MIT" ]
null
null
null
python/ccxt/bithumb.py
nagabrahmam-mantha/ccxt
b7ec0c03b935a63064b8b73226b39f1099933969
[ "MIT" ]
1
2022-03-01T07:02:42.000Z
2022-03-01T07:02:42.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
39.106061
292
0.458588
4a20dba65542f6d6e552a94371287171f2fc6491
745
py
Python
valleydeight/object_types.py
benkrikler/valedictory
36968f4da5bb5a6c4e85bd7f02fdc32db08e9579
[ "MIT" ]
1
2019-02-22T17:12:48.000Z
2019-02-22T17:12:48.000Z
valleydeight/object_types.py
benkrikler/valedictory
36968f4da5bb5a6c4e85bd7f02fdc32db08e9579
[ "MIT" ]
1
2019-02-22T16:40:36.000Z
2019-02-22T16:40:36.000Z
valleydeight/object_types.py
benkrikler/valleydeight
36968f4da5bb5a6c4e85bd7f02fdc32db08e9579
[ "MIT" ]
null
null
null
from .base import BaseValidator __all__ = ["Object"] class Object(BaseValidator): def __init__(self, class_type, expand_dicts=True, expand_lists=True, args=None, **kwargs): super(BaseValidator, self).__init__(**kwargs) self.class_type = class_type self.expand_dicts = expand_dicts ...
31.041667
94
0.66443
4a20dbf8b3e9200f09a683b836d62147c6b1a800
430
py
Python
industrial_benchmark_python/test_gym_wrapper.py
siemens/industrialbenchmark
a38da654c87c16436e2382f68da3bf264e5523d0
[ "Apache-2.0" ]
74
2017-06-27T11:56:59.000Z
2022-03-24T04:18:22.000Z
industrial_benchmark_python/test_gym_wrapper.py
siemens/industrialbenchmark
a38da654c87c16436e2382f68da3bf264e5523d0
[ "Apache-2.0" ]
6
2017-11-02T14:53:28.000Z
2021-06-18T13:58:46.000Z
industrial_benchmark_python/test_gym_wrapper.py
siemens/industrialbenchmark
a38da654c87c16436e2382f68da3bf264e5523d0
[ "Apache-2.0" ]
23
2017-02-19T00:06:27.000Z
2022-02-25T12:39:25.000Z
from industrial_benchmark_python.IBGym import IBGym import numpy as np DISCOUNT = 0.97 env = IBGym(70) env.reset() returns = [] for _ in range(100): acc_return = 0. for i in range(100): state, reward, done, info = env.step(env.action_space.sample()) acc_return += reward * DISCOUNT**i retur...
26.875
80
0.67907
4a20dc19f34d16c2ebafb74b85bd1694815f05ca
47,884
py
Python
src/cogent3/core/moltype.py
StephenRogers1/cogent3
1116a0ab14d9c29a560297205546714e2db1896c
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/core/moltype.py
StephenRogers1/cogent3
1116a0ab14d9c29a560297205546714e2db1896c
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/core/moltype.py
StephenRogers1/cogent3
1116a0ab14d9c29a560297205546714e2db1896c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ moltype.py MolType provides services for resolving ambiguities, or providing the correct ambiguity for recoding. It also maintains the mappings between different kinds of alphabets, sequences and alignments. One issue with MolTypes is that they need to know about Sequence, Alphabet, and othe...
31.711258
110
0.599574
4a20dc1fbde09375778b625c05d4cdb99acc7a13
476
py
Python
apps/users/migrations/0004_employee_non_employee.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
apps/users/migrations/0004_employee_non_employee.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
apps/users/migrations/0004_employee_non_employee.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-04 16:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_employee_in_directory'), ] operations = [ migrations.AddField...
22.666667
68
0.630252
4a20dccddccf13012c67541905786914710c119f
3,673
py
Python
djangoappengine/main/main.py
elreydetoda/feedsanitizer
81a7cfc3f3d1312cd8c236b3e8cc9e84b0d72932
[ "MIT" ]
2
2020-03-13T15:07:55.000Z
2020-03-14T14:45:42.000Z
djangoappengine/main/main.py
elreydetoda/feedsanitizer
81a7cfc3f3d1312cd8c236b3e8cc9e84b0d72932
[ "MIT" ]
null
null
null
djangoappengine/main/main.py
elreydetoda/feedsanitizer
81a7cfc3f3d1312cd8c236b3e8cc9e84b0d72932
[ "MIT" ]
1
2020-10-16T04:11:58.000Z
2020-10-16T04:11:58.000Z
import os import sys # Add parent folder to sys.path, so we can import boot. # App Engine causes main.py to be reloaded if an exception gets raised # on the first request of a main.py instance, so don't add project_dir multiple # times. project_dir = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__fi...
34.980952
90
0.702968
4a20dcdf5e0de8acee4af7b43c390fc92b57384e
2,981
py
Python
generate.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
1,871
2020-12-22T14:44:29.000Z
2022-03-31T14:21:40.000Z
generate.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
300
2020-12-23T17:51:43.000Z
2022-03-30T17:34:42.000Z
generate.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
235
2020-12-23T19:45:19.000Z
2022-03-31T20:33:47.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright (c) 2021 Josh Levy-Kramer <josh@levykramer.co.uk>. All rights reserved. # This file is based on code by the authors denoted below and has been modified from its original version. # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apach...
39.746667
167
0.691714
4a20dd2d5f49d77a0b4d479ff84edd0bc875ad0a
3,305
py
Python
adafruit_register/i2c_bit.py
jepler/Adafruit_CircuitPython_Register
9f86b5179936bcb81d9765de2fe25c140b42036f
[ "MIT" ]
1
2020-09-27T20:08:57.000Z
2020-09-27T20:08:57.000Z
adafruit_register/i2c_bit.py
jepler/Adafruit_CircuitPython_Register
9f86b5179936bcb81d9765de2fe25c140b42036f
[ "MIT" ]
null
null
null
adafruit_register/i2c_bit.py
jepler/Adafruit_CircuitPython_Register
9f86b5179936bcb81d9765de2fe25c140b42036f
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2016 Scott Shawcroft for Adafruit Industries # # 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 ...
38.430233
88
0.688956
4a20dd8089114cba15741c74746eee58c62c53e9
3,677
py
Python
pyocd/target/target_LPC824M201JHI33.py
aabadie/pyOCD
5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d
[ "Apache-2.0" ]
null
null
null
pyocd/target/target_LPC824M201JHI33.py
aabadie/pyOCD
5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d
[ "Apache-2.0" ]
null
null
null
pyocd/target/target_LPC824M201JHI33.py
aabadie/pyOCD
5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d
[ "Apache-2.0" ]
null
null
null
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2013 ARM 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 ...
43.77381
107
0.717433
4a20dde54f36c6d053aeb419765bca818ed2beab
4,654
py
Python
modules/ImgTrans.py
hanzhi713/WeChat-CLI-Tool
c2ae8f20bf4bdab4dec2abfe92e8cec94e377ad2
[ "MIT" ]
7
2017-11-30T00:19:03.000Z
2019-05-17T01:51:06.000Z
modules/ImgTrans.py
hanzhi713/WeChat-CLI-Tool
c2ae8f20bf4bdab4dec2abfe92e8cec94e377ad2
[ "MIT" ]
null
null
null
modules/ImgTrans.py
hanzhi713/WeChat-CLI-Tool
c2ae8f20bf4bdab4dec2abfe92e8cec94e377ad2
[ "MIT" ]
null
null
null
from .__templates__ import Interactive from .__config__ import multi_process, terminal_QR import numpy as np import time import itchat import io from cmath import * from PIL import Image if multi_process: from multiprocessing import Process else: from .__stoppable__ import Process class ImgTrans(Interactive):...
39.109244
148
0.587667
4a20de5d8952b578d0e768ba31a61df95bbfd5fc
15,833
py
Python
.aux/venv/lib/python3.9/site-packages/bandit/core/manager.py
sonntagsgesicht/regtest
160ef1089f797fbade48160efb0e1a386adbada7
[ "Apache-2.0" ]
null
null
null
.aux/venv/lib/python3.9/site-packages/bandit/core/manager.py
sonntagsgesicht/regtest
160ef1089f797fbade48160efb0e1a386adbada7
[ "Apache-2.0" ]
1
2020-11-26T17:32:49.000Z
2020-11-26T17:32:49.000Z
.aux/venv/lib/python3.9/site-packages/bandit/core/manager.py
sonntagsgesicht/regtest
160ef1089f797fbade48160efb0e1a386adbada7
[ "Apache-2.0" ]
1
2021-02-22T13:55:32.000Z
2021-02-22T13:55:32.000Z
# -*- coding:utf-8 -*- # # Copyright 2014 Hewlett-Packard Development Company, L.P. # # SPDX-License-Identifier: Apache-2.0 import collections import fnmatch import json import logging import os import sys import tokenize import traceback import six from bandit.core import constants as b_constants from bandit.core i...
37.968825
79
0.604434
4a20e01b8630e0fd4453470d9f4910ddea4a2456
8,782
py
Python
src/sagemaker_containers/_transformer.py
uditbhatia/sagemaker-containers
3c499c8a4e00c7ff7486a4632c9330b5ea2313d3
[ "Apache-2.0" ]
null
null
null
src/sagemaker_containers/_transformer.py
uditbhatia/sagemaker-containers
3c499c8a4e00c7ff7486a4632c9330b5ea2313d3
[ "Apache-2.0" ]
null
null
null
src/sagemaker_containers/_transformer.py
uditbhatia/sagemaker-containers
3c499c8a4e00c7ff7486a4632c9330b5ea2313d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' file acc...
40.846512
114
0.686062
4a20e066c34b6d78fb1764d2feb7ec119a5b3dc3
13,471
py
Python
sdk/python/pulumi_openstack/vpnaas/ip_sec_policy.py
ederst/pulumi-openstack
e11af3f9ade3bc0de8b3feb9db5a9e86ad5ba989
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_openstack/vpnaas/ip_sec_policy.py
ederst/pulumi-openstack
e11af3f9ade3bc0de8b3feb9db5a9e86ad5ba989
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-11T09:01:32.000Z
2021-03-11T09:01:32.000Z
sdk/python/pulumi_openstack/vpnaas/ip_sec_policy.py
ederst/pulumi-openstack
e11af3f9ade3bc0de8b3feb9db5a9e86ad5ba989
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
48.110714
177
0.654443
4a20e07d4b1b10db8796f9d543041b4116ad4930
339
py
Python
auctions/migrations/0010_auto_20201216_2221.py
juannajul/CS50Ecommerce
d3e8b07b4f3266f99075d408c42019426d6b7f07
[ "MIT" ]
null
null
null
auctions/migrations/0010_auto_20201216_2221.py
juannajul/CS50Ecommerce
d3e8b07b4f3266f99075d408c42019426d6b7f07
[ "MIT" ]
null
null
null
auctions/migrations/0010_auto_20201216_2221.py
juannajul/CS50Ecommerce
d3e8b07b4f3266f99075d408c42019426d6b7f07
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-12-17 02:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('auctions', '0009_auction_winner'), ] operations = [ migrations.AlterModelOptions( name='bid', options={'ordering': ('bid',)}...
18.833333
47
0.578171
4a20e091d257e92a398bc6fbddf4de28b5dc4a6c
2,026
py
Python
config/urls.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
config/urls.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
config/urls.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.views import defaults as default_views from django.views.generic import TemplateView urlpatterns = [ # path("", TemplateView.as_view(template_name="pages/h...
33.213115
86
0.630306
4a20e0e608e7b3a2c1730d310fd90880d5354170
2,286
py
Python
emmet-core/emmet/core/symmetry.py
JaGeo/emmet
db01498d1136fc499961277f0b0edce3b9ddf386
[ "BSD-3-Clause-LBNL" ]
null
null
null
emmet-core/emmet/core/symmetry.py
JaGeo/emmet
db01498d1136fc499961277f0b0edce3b9ddf386
[ "BSD-3-Clause-LBNL" ]
null
null
null
emmet-core/emmet/core/symmetry.py
JaGeo/emmet
db01498d1136fc499961277f0b0edce3b9ddf386
[ "BSD-3-Clause-LBNL" ]
null
null
null
from typing import Any, Dict from pydantic import BaseModel, Field from pymatgen.core import Structure from pymatgen.symmetry.analyzer import SpacegroupAnalyzer, spglib from emmet.core.settings import EmmetSettings from emmet.core.utils import ValueEnum SETTINGS = EmmetSettings() class CrystalSystem(ValueEnum): ...
27.878049
94
0.62336
4a20e0f159e2ab0f0e6790966bba8cc48fcc8d1a
1,139
py
Python
xyz12/pf-auth/pf_auth/model/operator.py
problemfighter/pf-flask-react
ac38e3fa0fac0765eea7ec3c03937f93c55a9815
[ "Apache-2.0" ]
3
2021-11-22T07:57:23.000Z
2022-01-15T09:08:50.000Z
xyz12/pf-auth/pf_auth/model/operator.py
problemfighter/pf-flask-react
ac38e3fa0fac0765eea7ec3c03937f93c55a9815
[ "Apache-2.0" ]
null
null
null
xyz12/pf-auth/pf_auth/model/operator.py
problemfighter/pf-flask-react
ac38e3fa0fac0765eea7ec3c03937f93c55a9815
[ "Apache-2.0" ]
null
null
null
from pf_auth.common.password_util import get_password_hash, validate_password from pf_sqlalchemy.db.orm import Base, database class Operator(Base): firstName = database.Column("first_name", database.String(100)) lastName = database.Column("last_name", database.String(100)) name = database.Column("name", d...
43.807692
102
0.737489
4a20e2977d57238d22e875d2bb102955f3714cee
5,226
py
Python
workflow/scripts/convert_refseq_to_prokka_gff.py
microbial-pangenomes-lab/2021_ecoli_pathogenicity
f25925c21679e2f89692ae3cfa512060c8bc04bf
[ "MIT" ]
1
2022-01-14T07:21:08.000Z
2022-01-14T07:21:08.000Z
workflow/scripts/convert_refseq_to_prokka_gff.py
microbial-pangenomes-lab/2021_ecoli_pathogenicity
f25925c21679e2f89692ae3cfa512060c8bc04bf
[ "MIT" ]
null
null
null
workflow/scripts/convert_refseq_to_prokka_gff.py
microbial-pangenomes-lab/2021_ecoli_pathogenicity
f25925c21679e2f89692ae3cfa512060c8bc04bf
[ "MIT" ]
1
2022-03-10T12:02:34.000Z
2022-03-10T12:02:34.000Z
import sys, os import argparse import gffutils as gff from io import StringIO from Bio import SeqIO def clean_gff_string(gff_string): splitlines = gff_string.splitlines() lines_to_delete = [] for index in range(len(splitlines)): if '##sequence-region' in splitlines[index]: lines_to_del...
33.935065
94
0.516265
4a20e37679cc40d6a48571a8c5a66c9fa8852e99
1,396
py
Python
database/__init__.py
c3wien/Poke-That-Gmeind
4481e81d74cff311e7e64b0c8b5643b9d6bbe31e
[ "MIT" ]
null
null
null
database/__init__.py
c3wien/Poke-That-Gmeind
4481e81d74cff311e7e64b0c8b5643b9d6bbe31e
[ "MIT" ]
null
null
null
database/__init__.py
c3wien/Poke-That-Gmeind
4481e81d74cff311e7e64b0c8b5643b9d6bbe31e
[ "MIT" ]
null
null
null
import atexit from tempfile import gettempdir from os.path import join from sqlalchemy import create_engine, exc, event, select from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base from config import DB_USER, DB_PASSWORD, DB_HOST, DB_NAME if all([DB_USER, DB_...
31.022222
103
0.743553
4a20e37c26924dcbe502727f6968c166da881f0c
339
py
Python
lib/west_tools/tool_tests/__init__.py
poharrison/westpa
8618ab598f9bb38a7bc1479932f5332b137dfcbc
[ "MIT" ]
140
2015-01-07T23:30:36.000Z
2022-03-28T17:15:30.000Z
lib/west_tools/tool_tests/__init__.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
157
2015-01-03T03:38:36.000Z
2022-03-31T14:12:16.000Z
lib/west_tools/tool_tests/__init__.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
56
2015-01-02T21:21:40.000Z
2022-03-03T16:27:54.000Z
from westpa import rc, h5io data_manager = rc.get_data_manager() ##Store west.h5 file in RAM for testing west_file_name = 'west.h5' west_file = h5io.WESTPAH5File(west_file_name, driver='core', backing_store=False) data_manager.we_h5file = west_file data_manager.we_h5file_version = int(west_file['/'].attrs['west_file...
30.818182
86
0.79351
4a20e3c2add43eb8ca6cbb03a40e8b2a755c5f9e
232
py
Python
sonosrestapi/music_serve_account.py
hallo02/sonos-rest-api-wrapper
6d2dca7dcf4b778c5cda57703df5f1c8eacb58e9
[ "MIT" ]
null
null
null
sonosrestapi/music_serve_account.py
hallo02/sonos-rest-api-wrapper
6d2dca7dcf4b778c5cda57703df5f1c8eacb58e9
[ "MIT" ]
null
null
null
sonosrestapi/music_serve_account.py
hallo02/sonos-rest-api-wrapper
6d2dca7dcf4b778c5cda57703df5f1c8eacb58e9
[ "MIT" ]
1
2019-10-13T09:45:35.000Z
2019-10-13T09:45:35.000Z
class Music_serive_account: def __init__(self, id , user_id_hash_code, is_guest, service): self.id = id self.user_id_hash_code = user_id_hash_code self.is_guets = is_guest self.service = service
29
66
0.681034
4a20e40281c5dc041885023b89fbe038568a2273
334
py
Python
InfoExtractor/doc-extractor/__init__.py
flysky2008/hub_dlcp
fcc7ad722a79f325048009d3b5700f6fe1492de7
[ "Apache-2.0" ]
null
null
null
InfoExtractor/doc-extractor/__init__.py
flysky2008/hub_dlcp
fcc7ad722a79f325048009d3b5700f6fe1492de7
[ "Apache-2.0" ]
null
null
null
InfoExtractor/doc-extractor/__init__.py
flysky2008/hub_dlcp
fcc7ad722a79f325048009d3b5700f6fe1492de7
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function # Add projects here from ner_tf_BiLSTM import data from ner_tf_BiLSTM import eval from ner_tf_BiLSTM import main from ner_tf_BiLSTM import model from ner_tf_BiLSTM import utils __all__ = { data, eval, main, ...
22.266667
43
0.832335
4a20e415ed06aed8433c062f57a173761e2ef5d8
3,563
py
Python
backtrader/backtrader/indicators/lrsi.py
harshabakku/live-back-testing-trader
1fd69c7598dc15bea740f160eed886f396bcba2c
[ "MIT" ]
1
2021-07-14T22:04:08.000Z
2021-07-14T22:04:08.000Z
backtrader/backtrader/indicators/lrsi.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
null
null
null
backtrader/backtrader/indicators/lrsi.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
3
2021-03-07T16:29:40.000Z
2022-03-17T21:42:38.000Z
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015, 2016, 2017 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Li...
31.254386
79
0.546169
4a20e48b38248954f6d7fc46dd09cfa5711c4795
4,722
py
Python
loveshare/settings.py
reduceweight/loveshare
570250272b3b5b36e682ebf4b6deb5f83f350386
[ "MIT" ]
1
2018-04-11T05:41:43.000Z
2018-04-11T05:41:43.000Z
loveshare/settings.py
reduceweight/loveshare
570250272b3b5b36e682ebf4b6deb5f83f350386
[ "MIT" ]
8
2018-07-15T13:45:20.000Z
2022-03-11T23:17:36.000Z
loveshare/settings.py
reduceweight/loveshare
570250272b3b5b36e682ebf4b6deb5f83f350386
[ "MIT" ]
null
null
null
""" Django settings for loveshare project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os,...
30.464516
95
0.702457
4a20e4c07861531a6a40f48209f5deefdef7b43f
3,221
py
Python
fast_image_classification/train.py
Franciutte/FastImageClassification
c82601665ff09e2dd5690a3445f07690181d6899
[ "MIT" ]
10
2020-04-18T13:21:44.000Z
2022-03-26T12:00:18.000Z
fast_image_classification/train.py
Franciutte/FastImageClassification
c82601665ff09e2dd5690a3445f07690181d6899
[ "MIT" ]
5
2020-10-12T09:04:14.000Z
2022-02-10T01:14:49.000Z
fast_image_classification/train.py
Franciutte/FastImageClassification
c82601665ff09e2dd5690a3445f07690181d6899
[ "MIT" ]
8
2020-04-06T08:30:05.000Z
2022-03-26T12:00:31.000Z
import pandas as pd import yaml import argparse from sklearn.model_selection import train_test_split from tensorflow.keras.callbacks import ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from fast_image_classification.models import get_model_classification from fast_image_classification.training_utilities import ( ...
33.206186
88
0.687054
4a20e4e67bc9757b8d7437c4af6d11088de4a875
2,535
py
Python
cogdl/tasks/multiplex_node_classification.py
kwyoke/cogdl
df919b4fc7db40f8b035665edbcc7ed59f9d448e
[ "MIT" ]
1
2021-10-19T13:32:23.000Z
2021-10-19T13:32:23.000Z
cogdl/tasks/multiplex_node_classification.py
LONG-9621/cogdl
5e1d70240a3bced319b0f0e04af79acb72f65bed
[ "MIT" ]
null
null
null
cogdl/tasks/multiplex_node_classification.py
LONG-9621/cogdl
5e1d70240a3bced319b0f0e04af79acb72f65bed
[ "MIT" ]
null
null
null
import copy import os import random import warnings from collections import defaultdict import networkx as nx import numpy as np import scipy.sparse as sp import torch import torch.nn.functional as F from scipy import sparse as sp from sklearn.linear_model import LogisticRegression from sklearn.metrics import f1_score...
33.8
85
0.687179
4a20e55b58c0666dfd5791291a482f767bdc0a5f
1,049
py
Python
budget.py
kyaradawbin/accountant
190b34da29d26a98e9e001e6c6d7dfd4b47b5fc9
[ "MIT" ]
1
2019-03-01T03:38:12.000Z
2019-03-01T03:38:12.000Z
budget.py
kyaradawbin/accountant
190b34da29d26a98e9e001e6c6d7dfd4b47b5fc9
[ "MIT" ]
null
null
null
budget.py
kyaradawbin/accountant
190b34da29d26a98e9e001e6c6d7dfd4b47b5fc9
[ "MIT" ]
null
null
null
def budget(): salary = float(input("Please input your salary: ")) monthly_income = round(salary/12, 2) print("Your monthly income is:", monthly_income) print() housing = round(monthly_income * .25, 2) transport = round(monthly_income * .15, 2) food = round(monthly_income * .12, 2) savin...
31.787879
103
0.64633
4a20e5c76b6ad66c5944653030d1e864b28372c8
27,620
py
Python
tests/httpx/models/test_responses.py
newvicx/httpx_extensions
4a3d6e6789e9f328f49a3b27def20b0416cdb748
[ "MIT" ]
null
null
null
tests/httpx/models/test_responses.py
newvicx/httpx_extensions
4a3d6e6789e9f328f49a3b27def20b0416cdb748
[ "MIT" ]
null
null
null
tests/httpx/models/test_responses.py
newvicx/httpx_extensions
4a3d6e6789e9f328f49a3b27def20b0416cdb748
[ "MIT" ]
null
null
null
import json import pickle import pytest import httpx from httpx._compat import brotli import httpx_extensions class StreamingBody: def __iter__(self): yield b"Hello, " yield b"world!" def streaming_body(): yield b"Hello, " yield b"world!" async def async_streaming_body(): yield ...
29.196617
98
0.672556
4a20e6cc9c684b8d96a5e98318c1c11b41576a6a
591
py
Python
lib/third_party/cloud_ml_engine_sdk/dataflow/_error_filter.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/third_party/cloud_ml_engine_sdk/dataflow/_error_filter.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/third_party/cloud_ml_engine_sdk/dataflow/_error_filter.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
"""Utilities for cleaning dataflow errors to be user friendly.""" TENSORFLOW_OP_MATCHER = "\n\nCaused by op" def filter_tensorflow_error(error_string): """Removes information from a tensorflow error to hide Dataflow details. TF appends the operation details if they exist, but the stacktrace is not useful to t...
31.105263
79
0.769882
4a20e7c7324697d656d802a939b4183facf0a343
10,549
py
Python
airflow/utils/log/es_task_handler.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2021-11-04T20:11:58.000Z
2021-11-04T20:11:58.000Z
airflow/utils/log/es_task_handler.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
3
2020-07-07T20:39:24.000Z
2021-09-29T17:34:46.000Z
airflow/utils/log/es_task_handler.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2020-11-04T03:17:51.000Z
2020-11-04T03:17:51.000Z
# -*- coding: utf-8 -*- # # 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 #...
39.657895
128
0.640345