hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
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.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
87e63d757428783e3ecc5ef15f70b88d9ca3762f
2,176
py
Python
client/mod_hexify.py
ThERisEn/hack-bundle-tampermonkey
beaddcc600c3ea2ed689488291f9b7c878e80dee
[ "MIT" ]
null
null
null
client/mod_hexify.py
ThERisEn/hack-bundle-tampermonkey
beaddcc600c3ea2ed689488291f9b7c878e80dee
[ "MIT" ]
null
null
null
client/mod_hexify.py
ThERisEn/hack-bundle-tampermonkey
beaddcc600c3ea2ed689488291f9b7c878e80dee
[ "MIT" ]
4
2019-07-11T21:17:12.000Z
2022-02-02T03:13:42.000Z
#!/usr/local/bin/python ##/usr/bin/env python import sys #XXX hack if __name__ == "__main__": outputString = "invert:\n%s\n" % ( obfs(sys.argv[1])[0] ) #print( outputString )
29.405405
106
0.430147
#!/usr/local/bin/python ##/usr/bin/env python import sys #XXX hack def convertnewlines(s): #print("convert newlines len(s) = %s" %(len(s))) newstr = "" i = 0 while i < len(s): if s[i] == '\\' and i < len(s)-1: #if find escape character #print ("[%d] hit found, i=%s, s[i] = %c"%(len...
1,934
0
46
3280e03636de8c134c7f0634ed5b63114a9c6db1
678
py
Python
resources/users/userBlockUnblockResource.py
vishu221b/bookme-flask-REST-API-Collection
9ee923e13d786af9b11421370edac718743855af
[ "MIT" ]
null
null
null
resources/users/userBlockUnblockResource.py
vishu221b/bookme-flask-REST-API-Collection
9ee923e13d786af9b11421370edac718743855af
[ "MIT" ]
null
null
null
resources/users/userBlockUnblockResource.py
vishu221b/bookme-flask-REST-API-Collection
9ee923e13d786af9b11421370edac718743855af
[ "MIT" ]
null
null
null
from flask_restful import Resource from service import UserSocialService from flask_jwt_extended import get_jwt_identity, jwt_required
39.882353
90
0.696165
from flask_restful import Resource from service import UserSocialService from flask_jwt_extended import get_jwt_identity, jwt_required class BlockUnblockUsers(Resource): @jwt_required def post(self, action: str, user_to_be_blocked_unblocked): try: requestor_user = get_jwt_identity() ...
462
57
23
01b06b341499db12728598e5cc0fbe1674d9d8c8
4,266
py
Python
generateSchools.py
mattiastofte/VismaCalendar
38adc4196dd50ec8d6b4e0b312e8517fbc0ac80a
[ "MIT" ]
null
null
null
generateSchools.py
mattiastofte/VismaCalendar
38adc4196dd50ec8d6b4e0b312e8517fbc0ac80a
[ "MIT" ]
null
null
null
generateSchools.py
mattiastofte/VismaCalendar
38adc4196dd50ec8d6b4e0b312e8517fbc0ac80a
[ "MIT" ]
null
null
null
import json # https://www.akershus.no/ansvarsomrader/opplering/akershusoppleringen/visma-inschool/ TARGET_FILE = "schools.json" schoolString = """ <option value="https://asker-vgs.inschool.visma.no">Asker videregående skole</option> <option value="https://bjertnes-vgs.inschool.visma.no">Bjertnes videregående skole</...
52.02439
102
0.71894
import json # https://www.akershus.no/ansvarsomrader/opplering/akershusoppleringen/visma-inschool/ TARGET_FILE = "schools.json" schoolString = """ <option value="https://asker-vgs.inschool.visma.no">Asker videregående skole</option> <option value="https://bjertnes-vgs.inschool.visma.no">Bjertnes videregående skole</...
782
0
69
78fcb805ceb0a0b69f2ac86806e197864f206aa5
285
py
Python
scripts/exercicios/ex020.py
RuanBarretodosSantos/python
4142ccd71c4ffb4bb6a10d61c85f612758f5bb41
[ "MIT" ]
null
null
null
scripts/exercicios/ex020.py
RuanBarretodosSantos/python
4142ccd71c4ffb4bb6a10d61c85f612758f5bb41
[ "MIT" ]
null
null
null
scripts/exercicios/ex020.py
RuanBarretodosSantos/python
4142ccd71c4ffb4bb6a10d61c85f612758f5bb41
[ "MIT" ]
null
null
null
from random import shuffle aluno1 = str(input('Primeiro aluno: ')) aluno2 = str(input('Segundo aluno: ')) aluno3 = str(input('Terceiro aluno: ')) aluno4 = str(input('Quarto aluno: ')) lista = [aluno1, aluno2, aluno3, aluno4] shuffle(lista) print(f'A ordem de apresentação será{lista}')
35.625
45
0.715789
from random import shuffle aluno1 = str(input('Primeiro aluno: ')) aluno2 = str(input('Segundo aluno: ')) aluno3 = str(input('Terceiro aluno: ')) aluno4 = str(input('Quarto aluno: ')) lista = [aluno1, aluno2, aluno3, aluno4] shuffle(lista) print(f'A ordem de apresentação será{lista}')
0
0
0
1612d8341978584c169575a9aeedbaeabeeb32ac
257
py
Python
app/grandchallenge/archives/migrations/0007_remove_archive_images.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
7
2016-11-05T07:16:30.000Z
2017-11-23T03:38:03.000Z
app/grandchallenge/archives/migrations/0007_remove_archive_images.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
113
2015-05-26T09:27:59.000Z
2018-03-21T10:45:56.000Z
app/grandchallenge/archives/migrations/0007_remove_archive_images.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
7
2015-07-16T20:11:22.000Z
2017-06-06T02:41:24.000Z
# Generated by Django 3.1.9 on 2021-05-12 05:36 from django.db import migrations
25.7
78
0.735409
# Generated by Django 3.1.9 on 2021-05-12 05:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [("archives", "0006_archiveitem")] operations = [migrations.RemoveField(model_name="archive", name="images")]
0
151
23
b29a4891ed4e37c026e02822ff70a9d650254581
4,331
py
Python
trie/utils.py
lovesh/Merkle-Patricia-Trie
99574518e5c25c61caedfef92a24a41a8a59e31f
[ "Apache-2.0" ]
1
2019-09-25T10:32:24.000Z
2019-09-25T10:32:24.000Z
trie/utils.py
lovesh/Merkle-Patricia-Trie
99574518e5c25c61caedfef92a24a41a8a59e31f
[ "Apache-2.0" ]
1
2019-09-26T06:54:04.000Z
2019-09-30T04:57:27.000Z
trie/utils.py
lovesh/Merkle-Patricia-Trie
99574518e5c25c61caedfef92a24a41a8a59e31f
[ "Apache-2.0" ]
1
2019-04-22T16:59:27.000Z
2019-04-22T16:59:27.000Z
import binascii from eth_utils import int_to_big_endian from rlp.utils import ALL_BYTES from trie.constants import NIBBLE_TERMINATOR, hex_to_int, TT256 def encode_int(v): """encodes an integer into serialization""" if not isinstance(v, int) or v < 0 or v >= TT256: raise Exception("Integer invalid...
24.468927
67
0.574694
import binascii from eth_utils import int_to_big_endian from rlp.utils import ALL_BYTES from trie.constants import NIBBLE_TERMINATOR, hex_to_int, TT256 def ascii_chr(n): return ALL_BYTES[n] def decode_hex(s): if isinstance(s, str): return bytes.fromhex(s) if isinstance(s, bytes): retur...
1,561
0
253
ab064ffadcf374a31ce31eed00de4886fa218b4e
835
py
Python
metabase/metabase/doctype/metabase_settings/metabase_settings.py
srajelli/frappe-metabase
022f2e6967e3612ca3d725a82a7f961f879c0008
[ "MIT" ]
1
2020-08-26T23:23:41.000Z
2020-08-26T23:23:41.000Z
metabase/metabase/doctype/metabase_settings/metabase_settings.py
srajelli/frappe-metabase
022f2e6967e3612ca3d725a82a7f961f879c0008
[ "MIT" ]
null
null
null
metabase/metabase/doctype/metabase_settings/metabase_settings.py
srajelli/frappe-metabase
022f2e6967e3612ca3d725a82a7f961f879c0008
[ "MIT" ]
1
2020-08-26T23:24:19.000Z
2020-08-26T23:24:19.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Officexlr Business Solutions Pvt Ltd. and Contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document import jwt, json, time
36.304348
109
0.74012
# -*- coding: utf-8 -*- # Copyright (c) 2019, Officexlr Business Solutions Pvt Ltd. and Contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document import jwt, json, time class MetabaseSettings(Document): def get_sign...
505
12
46
2476a7edabf676815d3a4e6cec1eef52478ecb57
414
py
Python
setup_cx.py
deathbreakfast/ManageService
3b7e21b02af35f93aadc609890e3dff33812e937
[ "MIT" ]
null
null
null
setup_cx.py
deathbreakfast/ManageService
3b7e21b02af35f93aadc609890e3dff33812e937
[ "MIT" ]
null
null
null
setup_cx.py
deathbreakfast/ManageService
3b7e21b02af35f93aadc609890e3dff33812e937
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable executables = [ Executable( 'manageservice/manage-service.py', base = None, targetName = 'manage-service' ) ] setup( name='Manage Service', version = '1.0.0', description = 'A python service that can b...
23
107
0.591787
from cx_Freeze import setup, Executable executables = [ Executable( 'manageservice/manage-service.py', base = None, targetName = 'manage-service' ) ] setup( name='Manage Service', version = '1.0.0', description = 'A python service that can b...
0
0
0
d7bc453002cbc2c16e76d98f378065ebb6376b27
17,413
py
Python
indexer/language_codes.py
BCLibraries/bc-lib-search
68e8404d9529d20e6936a95c86323abd92401ce3
[ "MIT" ]
null
null
null
indexer/language_codes.py
BCLibraries/bc-lib-search
68e8404d9529d20e6936a95c86323abd92401ce3
[ "MIT" ]
null
null
null
indexer/language_codes.py
BCLibraries/bc-lib-search
68e8404d9529d20e6936a95c86323abd92401ce3
[ "MIT" ]
null
null
null
lang_code = {'aar': 'Afar', 'abk': 'Abkhaz', 'ace': 'Achinese', 'ach': 'Acoli', 'ada': 'Adangme', 'ady': 'Adygei', 'afa': 'Afroasiatic (Other)', 'afh': 'Afrihili (Artificial language)', 'afr': 'Afrikaans', ...
33.486538
81
0.351576
lang_code = {'aar': 'Afar', 'abk': 'Abkhaz', 'ace': 'Achinese', 'ach': 'Acoli', 'ada': 'Adangme', 'ady': 'Adygei', 'afa': 'Afroasiatic (Other)', 'afh': 'Afrihili (Artificial language)', 'afr': 'Afrikaans', ...
0
0
0
abda445136084ad7b0eb48d4fec7072f36e41a7c
1,193
py
Python
target-pendo/src/endpoints.py
kc-bonilla/data-pipeline-development
a99f08f65d32ae69bac0bfca575975fc2bb3fdb3
[ "MIT" ]
null
null
null
target-pendo/src/endpoints.py
kc-bonilla/data-pipeline-development
a99f08f65d32ae69bac0bfca575975fc2bb3fdb3
[ "MIT" ]
null
null
null
target-pendo/src/endpoints.py
kc-bonilla/data-pipeline-development
a99f08f65d32ae69bac0bfca575975fc2bb3fdb3
[ "MIT" ]
1
2021-09-24T02:19:54.000Z
2021-09-24T02:19:54.000Z
""" * endpoint: API endpoint relative path, when added to the base URL, creates the full path * kind: type of record to be updated ('account' or 'visitor') * group: type of Pendo attribute to be updated ('agent' or 'custom') """ # create and store {kind} for stream's url path # build ...
32.243243
93
0.577536
""" * endpoint: API endpoint relative path, when added to the base URL, creates the full path * kind: type of record to be updated ('account' or 'visitor') * group: type of Pendo attribute to be updated ('agent' or 'custom') """ class Endpoint: def __init__(self, stream): self.stream = stream ...
656
-6
127
d5b76556a3907acd705e61b472ad31a7725ad92a
12,753
py
Python
Code/SimulatePatientDynamics_Final.py
MichiKal/healthcare-resilience
ad67db3f9ff9af52e8d80a52f15bd2a9147ed155
[ "MIT" ]
null
null
null
Code/SimulatePatientDynamics_Final.py
MichiKal/healthcare-resilience
ad67db3f9ff9af52e8d80a52f15bd2a9147ed155
[ "MIT" ]
null
null
null
Code/SimulatePatientDynamics_Final.py
MichiKal/healthcare-resilience
ad67db3f9ff9af52e8d80a52f15bd2a9147ed155
[ "MIT" ]
null
null
null
__author__ = 'Jana Lasser' __copyright__ = 'Copyright 2021, Patient Dynamics Simulation' __credits__ = ['Jana Lasser', 'Ruggiero LoSardo','Michaela Kaleta'] __license__ = 'MIT' __status__ = 'Dev' # std imports import warnings from importlib import reload from os.path import join import argparse # third pa...
44.43554
168
0.581902
__author__ = 'Jana Lasser' __copyright__ = 'Copyright 2021, Patient Dynamics Simulation' __credits__ = ['Jana Lasser', 'Ruggiero LoSardo','Michaela Kaleta'] __license__ = 'MIT' __status__ = 'Dev' # std imports import warnings from importlib import reload from os.path import join import argparse # third pa...
0
0
0
d6c138ffed7aaad73533ff323d2749d05508435c
31
py
Python
editor/utils/__init__.py
moth1995/WE10JL_OF_Team_Editor
09f4f29871e93595cf68e33b34ef6d7379d20095
[ "MIT" ]
1
2022-01-25T06:12:18.000Z
2022-01-25T06:12:18.000Z
editor/utils/__init__.py
moth1995/WE10JL_OF_Team_Editor
09f4f29871e93595cf68e33b34ef6d7379d20095
[ "MIT" ]
null
null
null
editor/utils/__init__.py
moth1995/WE10JL_OF_Team_Editor
09f4f29871e93595cf68e33b34ef6d7379d20095
[ "MIT" ]
null
null
null
from .common_functions import *
31
31
0.83871
from .common_functions import *
0
0
0
f28e242d5a7ccb7c67aeb19bcb662f1a3c653316
606
py
Python
python_app/utils/responses.py
DarAkus1420/taller-de-integracion-3
ec4450488698666790d98f836c1d98073e1ec2ba
[ "MIT" ]
2
2021-08-18T15:57:53.000Z
2021-12-26T15:11:16.000Z
python_app/utils/responses.py
DarAkus1420/taller-de-integracion-3
ec4450488698666790d98f836c1d98073e1ec2ba
[ "MIT" ]
8
2021-08-15T04:23:29.000Z
2021-10-06T12:38:06.000Z
python_app/utils/responses.py
DarAkus1420/taller-de-integracion-3
ec4450488698666790d98f836c1d98073e1ec2ba
[ "MIT" ]
null
null
null
import json class Responses: """Class used to create the responses that will be sent through the http protocol""" @staticmethod def response(data: dict): '''Create a ``json`` for http responses Parameters ---------- data: dict The data that will be sent ...
18.9375
88
0.49835
import json class Responses: """Class used to create the responses that will be sent through the http protocol""" @staticmethod def response(data: dict): '''Create a ``json`` for http responses Parameters ---------- data: dict The data that will be sent ...
0
0
0
ac6ebf444fabda5dbb6f4c3cd5ed836a746971a8
1,487
py
Python
cloudformation/cf_dumper.py
ajinabraham/aws_security_tools
94448630b8382fb462030b4e8fb5dcf261cd3b5d
[ "BSD-3-Clause" ]
47
2018-11-11T02:12:41.000Z
2021-12-09T02:45:40.000Z
cloudformation/cf_dumper.py
ajinabraham/aws_security_tools
94448630b8382fb462030b4e8fb5dcf261cd3b5d
[ "BSD-3-Clause" ]
null
null
null
cloudformation/cf_dumper.py
ajinabraham/aws_security_tools
94448630b8382fb462030b4e8fb5dcf261cd3b5d
[ "BSD-3-Clause" ]
19
2018-11-18T03:16:25.000Z
2022-01-19T17:23:25.000Z
""" Python 3 Script to dump CloudFormation templates aws configure configure your AWS credentials you should have permission for listing and downloading CloudFormation stacks """ import os import boto3 import requests import yaml import shutil from cfn_flip import to_json if __name__ == "__main__": print("CloudF...
29.156863
93
0.662408
""" Python 3 Script to dump CloudFormation templates aws configure configure your AWS credentials you should have permission for listing and downloading CloudFormation stacks """ import os import boto3 import requests import yaml import shutil from cfn_flip import to_json class CFNDumper: def __init__(self, out...
673
-5
104
e467d242f4d78a79da9345a6da93d2b4b5eb3394
452
py
Python
dashboard_api/widget_def/migrations/0037_geodataset_colour_map.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
2
2017-08-29T23:05:51.000Z
2019-04-02T21:11:35.000Z
dashboard_api/widget_def/migrations/0037_geodataset_colour_map.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
1
2019-04-02T21:11:26.000Z
2019-04-03T15:12:57.000Z
dashboard_api/widget_def/migrations/0037_geodataset_colour_map.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
22.6
91
0.628319
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('widget_def', '0036_auto_20150910_1447'), ] operations = [ migrations.AddField( model_name='geodataset', ...
0
322
23
2a29a272655d13fe436b9a24329e58ed2abf7cf5
153
py
Python
PythonExercicios/ex051.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex051.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex051.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
a1 = int(input('Digite o primeiro termo da PA: ')) r = int(input('Digite a razão da PA: ')) a10 = a1 + (10 * r) for c in range(a1, a10, r): print(c)
25.5
50
0.588235
a1 = int(input('Digite o primeiro termo da PA: ')) r = int(input('Digite a razão da PA: ')) a10 = a1 + (10 * r) for c in range(a1, a10, r): print(c)
0
0
0
9a024979037005166c968dff1d02cb7023f8f9a3
2,316
py
Python
src/test/tests/rendering/line3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/rendering/line3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/rendering/line3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: line3d.py # # Tests: mesh - 3D unstructured, single domain # plots - Pseudocolor # annotations - Line3D # # Programmer: Kathleen Biagas # Date: August...
22.269231
78
0.661917
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: line3d.py # # Tests: mesh - 3D unstructured, single domain # plots - Pseudocolor # annotations - Line3D # # Programmer: Kathleen Biagas # Date: August...
0
0
0
530e61afa9d48005311325f5540d5fa1c6a95df1
38,055
py
Python
PyDSS/pydss_results.py
JMorganUSU/PyDSS
7e28c45204e6ba8e703162c24c8a585f038fff6a
[ "BSD-3-Clause" ]
1
2022-03-03T16:05:41.000Z
2022-03-03T16:05:41.000Z
PyDSS/pydss_results.py
JMorganUSU/PyDSS
7e28c45204e6ba8e703162c24c8a585f038fff6a
[ "BSD-3-Clause" ]
null
null
null
PyDSS/pydss_results.py
JMorganUSU/PyDSS
7e28c45204e6ba8e703162c24c8a585f038fff6a
[ "BSD-3-Clause" ]
1
2022-03-03T16:05:31.000Z
2022-03-03T16:05:31.000Z
"""Provides access to PyDSS result data.""" from collections import defaultdict from datetime import datetime import json import logging import os import re from pathlib import Path import h5py import numpy as np import pandas as pd from PyDSS.common import DatasetPropertyType from PyDSS.dataset_buffer import Datase...
34.191375
114
0.590172
"""Provides access to PyDSS result data.""" from collections import defaultdict from datetime import datetime import json import logging import os import re from pathlib import Path import h5py import numpy as np import pandas as pd from PyDSS.common import DatasetPropertyType from PyDSS.dataset_buffer import Datase...
12,238
0
457
deb0164cb1da008bff71b8a8e5bbde27e917b6c8
6,441
py
Python
tests/test_rl_accel.py
nickpack/reportlab
ad19a08d2ce7d047b01e78d8e15b9ec6d2889feb
[ "BSD-3-Clause" ]
null
null
null
tests/test_rl_accel.py
nickpack/reportlab
ad19a08d2ce7d047b01e78d8e15b9ec6d2889feb
[ "BSD-3-Clause" ]
null
null
null
tests/test_rl_accel.py
nickpack/reportlab
ad19a08d2ce7d047b01e78d8e15b9ec6d2889feb
[ "BSD-3-Clause" ]
1
2020-07-13T15:24:00.000Z
2020-07-13T15:24:00.000Z
__version__=''' $Id''' __doc__='''basic tests.''' from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, printLocation setOutDir(__name__) import unittest #noruntests if __name__ == "__main__": unittest.TextTestRunner().run(makeSuite()) printLocation()
40.765823
278
0.578792
__version__=''' $Id''' __doc__='''basic tests.''' from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, printLocation setOutDir(__name__) import unittest def getrc(defns,depth=1): from sys import getrefcount, _getframe f = _getframe(depth) G0 = f.f_globals L = f.f_locals i...
5,774
20
361
93568ba0bca2ff52ed63f1c2811c197fe38e50d3
200
py
Python
phase-diag.py
dantaylor688/dantaylor688.github.io
f430224693c94a7469826f88b88bd9b1460e1cc9
[ "MIT" ]
null
null
null
phase-diag.py
dantaylor688/dantaylor688.github.io
f430224693c94a7469826f88b88bd9b1460e1cc9
[ "MIT" ]
null
null
null
phase-diag.py
dantaylor688/dantaylor688.github.io
f430224693c94a7469826f88b88bd9b1460e1cc9
[ "MIT" ]
null
null
null
from numpy import * from matplotlib import * from pylab import * if __name__ == "__main__": x = arange(-2*pi,2*pi,0.01) figure(1) plot(x,sin(x)) xlabel('x') ylabel('\dot{x}')
18.181818
31
0.585
from numpy import * from matplotlib import * from pylab import * if __name__ == "__main__": x = arange(-2*pi,2*pi,0.01) figure(1) plot(x,sin(x)) xlabel('x') ylabel('\dot{x}')
0
0
0
6eaa28a28c8db5ee49f518406bb977f26bd87b8a
231
py
Python
src/colors.py
michael-stanin/PackmanReturns
ca0f943fe87e102d77179d0be7751ee7f1784134
[ "MIT" ]
null
null
null
src/colors.py
michael-stanin/PackmanReturns
ca0f943fe87e102d77179d0be7751ee7f1784134
[ "MIT" ]
null
null
null
src/colors.py
michael-stanin/PackmanReturns
ca0f943fe87e102d77179d0be7751ee7f1784134
[ "MIT" ]
null
null
null
#Define some basic colors BLACK = ( 0, 0, 0) BLUE = ( 50, 50, 255) WHITE = (255, 255, 255) GREEN = ( 0, 255, 0) RED = (255, 0, 0) GOLD = (255, 215, 0) GOLDEN_ROD = (218, 165, 32)
21
28
0.437229
#Define some basic colors BLACK = ( 0, 0, 0) BLUE = ( 50, 50, 255) WHITE = (255, 255, 255) GREEN = ( 0, 255, 0) RED = (255, 0, 0) GOLD = (255, 215, 0) GOLDEN_ROD = (218, 165, 32)
0
0
0
1739f46d27fd4254b1a8c91010e676bb2071c3b3
2,590
py
Python
perrec/fusion.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
3
2019-07-24T12:03:24.000Z
2019-08-28T14:42:51.000Z
perrec/fusion.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
null
null
null
perrec/fusion.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
null
null
null
# encoding=utf-8 import numpy as np def fusion(perm_score_sets, perm_list, ftype): """fusion method for combining scores output by different components Args: perm_score_sets (3d-array): List of permission scores. Each element is the score set output by one method. The size of the element is ...
37.536232
86
0.695753
# encoding=utf-8 import numpy as np def sum_fusion(perm_score_sets): # test_num * len(perm_list) score_matrix_sum = perm_score_sets.sum(axis=0) return score_matrix_sum def anz_fusion(perm_score_sets): # test_num * len(perm_list) score_matrix_sum = perm_score_sets.sum(axis=0) # test_num * len(...
1,390
0
138
420d8ef0e23d9a371a95d15121966f2201e3172d
3,163
py
Python
software/glasgow/device/config.py
emilazy/Glasgow
4575ad07ccce76b0b92d29a76fc18a3700a68823
[ "Apache-2.0", "0BSD" ]
3
2020-04-30T22:58:29.000Z
2021-02-25T11:58:51.000Z
software/glasgow/device/config.py
emilazy/Glasgow
4575ad07ccce76b0b92d29a76fc18a3700a68823
[ "Apache-2.0", "0BSD" ]
null
null
null
software/glasgow/device/config.py
emilazy/Glasgow
4575ad07ccce76b0b92d29a76fc18a3700a68823
[ "Apache-2.0", "0BSD" ]
null
null
null
import struct import re __all__ = ["GlasgowConfig"] class GlasgowConfig: """ Glasgow EEPROM configuration data. :ivar int size: Total size of configuration block (currently 64). :ivar str[1] revision: Revision letter, ``A``-``Z``. :ivar str[16] serial: Serial number, i...
33.648936
87
0.576984
import struct import re __all__ = ["GlasgowConfig"] class GlasgowConfig: """ Glasgow EEPROM configuration data. :ivar int size: Total size of configuration block (currently 64). :ivar str[1] revision: Revision letter, ``A``-``Z``. :ivar str[16] serial: Serial number, i...
922
0
79
11b8ebea444284392a8521e9ca33bd22be00da3c
1,330
py
Python
preprocessing/hexevent/convert_hexevent_to_vanilla_format.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
1
2021-05-13T15:30:39.000Z
2021-05-13T15:30:39.000Z
preprocessing/hexevent/convert_hexevent_to_vanilla_format.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
preprocessing/hexevent/convert_hexevent_to_vanilla_format.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
import numpy as np """ Helper script to convert original DSC data to the 'standard' Vanilla format I use for the data """ src = '../../data/hexevent' trgt = '../../data/hexevent' cons = np.load(f'{src}/cons_original_format.npy') high = np.load(f'{src}/high_original_format.npy') low = np.load(f'{src}/low_original_for...
34.102564
94
0.696992
import numpy as np """ Helper script to convert original DSC data to the 'standard' Vanilla format I use for the data """ src = '../../data/hexevent' trgt = '../../data/hexevent' cons = np.load(f'{src}/cons_original_format.npy') high = np.load(f'{src}/high_original_format.npy') low = np.load(f'{src}/low_original_for...
460
0
23
6b03ebd8e99efdfa7f138dff3baf0d399b2f6b26
11,346
py
Python
src/util/HOMURA_service.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
6
2020-12-31T06:13:56.000Z
2022-03-27T16:26:12.000Z
src/util/HOMURA_service.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
null
null
null
src/util/HOMURA_service.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
null
null
null
import os import json from types import CodeType import networkx as nx from util.constant import * from .utils import get_api_name_from_entity_id from .config import HOMURA_COMMUNITY_API_RECOMMEND_STORE_PATH, COMMUNITY_RECOMMEND_ENTRY_THREADS_STORE_PATH, API_THREAD_ID_MAP_STORE_PATH, API_THREAD_ID_RESORT_MAP_STORE_PA...
42.815094
248
0.582937
import os import json from types import CodeType import networkx as nx from util.constant import * from .utils import get_api_name_from_entity_id from .config import HOMURA_COMMUNITY_API_RECOMMEND_STORE_PATH, COMMUNITY_RECOMMEND_ENTRY_THREADS_STORE_PATH, API_THREAD_ID_MAP_STORE_PATH, API_THREAD_ID_RESORT_MAP_STORE_PA...
5,464
5,567
23
a6519e7e14c336c07e62d1308e20a78ac95ae885
2,008
py
Python
tests/unit/algorithms/lightning_anil_test_notravis.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
1
2021-07-07T17:03:45.000Z
2021-07-07T17:03:45.000Z
tests/unit/algorithms/lightning_anil_test_notravis.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
null
null
null
tests/unit/algorithms/lightning_anil_test_notravis.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest import torch import learn2learn as l2l import pytorch_lightning as pl from learn2learn.utils.lightning import EpisodicBatcher from learn2learn.algorithms import LightningANIL if __name__ == "__main__": unittest.main()
27.135135
88
0.609562
#!/usr/bin/env python3 import unittest import torch import learn2learn as l2l import pytorch_lightning as pl from learn2learn.utils.lightning import EpisodicBatcher from learn2learn.algorithms import LightningANIL class Lambda(torch.nn.Module): def __init__(self, fn): super(Lambda, self).__init__() ...
1,585
31
125
3d9622120c0661e314859ca13e83e531c9843144
20,759
py
Python
notebooks-text-format/africa_bayes_svi_hmc_pyro.py
arpitvaghela/probml-notebooks
32ecb309dd474b989fd1c6ce4ad6dab7a25bbead
[ "MIT" ]
166
2021-07-16T17:33:09.000Z
2022-03-30T03:35:34.000Z
notebooks-text-format/africa_bayes_svi_hmc_pyro.py
arpitvaghela/probml-notebooks
32ecb309dd474b989fd1c6ce4ad6dab7a25bbead
[ "MIT" ]
29
2021-07-21T16:31:51.000Z
2022-03-31T19:50:13.000Z
notebooks-text-format/africa_bayes_svi_hmc_pyro.py
arpitvaghela/probml-notebooks
32ecb309dd474b989fd1c6ce4ad6dab7a25bbead
[ "MIT" ]
48
2021-07-17T08:26:18.000Z
2022-03-31T03:36:18.000Z
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab...
38.947467
320
0.704177
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab...
4,744
16
304
1b2f7105e2b5c8b54c69cd0c91b498e22ed57462
70
py
Python
exercise3_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
exercise3_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
exercise3_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
print([i for i in [1, 2, 3 ,4 ,5 , 8, 13, 21, 34, 55, 89] if i <= 5])
35
69
0.457143
print([i for i in [1, 2, 3 ,4 ,5 , 8, 13, 21, 34, 55, 89] if i <= 5])
0
0
0
cdb63779df0c596ab10696e778afb86113c82735
1,615
py
Python
core/linkextractors/lxmlhtml.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
core/linkextractors/lxmlhtml.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
core/linkextractors/lxmlhtml.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from urllib.parse import urljoin from lxml import etree from framework.core.linkextractors import BaseLinkExtractor from framework.utils.href import HREF class LxmlLinkExtractor(BaseLinkExtractor): """base class for extractor,base_url可以为'',否则必须是绝对url """ def _extract_links(self,...
31.666667
85
0.634056
# -*- coding: utf-8 -*- from urllib.parse import urljoin from lxml import etree from framework.core.linkextractors import BaseLinkExtractor from framework.utils.href import HREF class LxmlLinkExtractor(BaseLinkExtractor): """base class for extractor,base_url可以为'',否则必须是绝对url """ def __init__(self, selec...
325
0
81
395a213ad55cb2d8b4680551dcf4c714cfe36f2b
1,722
py
Python
adventofcode/2015/02.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
10
2015-01-31T09:04:45.000Z
2022-01-08T04:09:48.000Z
adventofcode/2015/02.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
3
2016-05-16T07:37:01.000Z
2016-05-18T14:14:16.000Z
adventofcode/2015/02.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
6
2015-02-06T06:00:00.000Z
2020-02-13T16:13:48.000Z
from utils import ingest INPUT_FILE = '02.in' EXPECTED_ANSWERS = (1588178, 3783758, ) if __name__ == '__main__': main()
21.797468
80
0.602787
from utils import ingest INPUT_FILE = '02.in' EXPECTED_ANSWERS = (1588178, 3783758, ) def main(): solution = Solution() answers = (solution.solve1(), solution.solve2(), ) print(answers) assert(answers == EXPECTED_ANSWERS) class Solution: def __init__(self): self.data = ingest(INPUT_FIL...
1,060
382
149
7881583392bb83307b9c9663742b43e2fadc9318
12,692
py
Python
sibilant_full.py
MontrealCorpusTools/SPADE
e2b20506e09aeca8b37ab0eb5a382b6ab996a5c6
[ "MIT" ]
1
2020-06-11T17:29:53.000Z
2020-06-11T17:29:53.000Z
sibilant_full.py
MontrealCorpusTools/SPADE
e2b20506e09aeca8b37ab0eb5a382b6ab996a5c6
[ "MIT" ]
33
2018-07-26T19:29:27.000Z
2020-06-19T19:26:56.000Z
sibilant_full.py
MontrealCorpusTools/SPADE
e2b20506e09aeca8b37ab0eb5a382b6ab996a5c6
[ "MIT" ]
3
2018-02-23T20:50:55.000Z
2019-01-31T21:57:43.000Z
######################################### ## SPADE sibilant full analysis script ## ######################################### ## Processes and extracts linguistic and acoustic information pertaining to sibilants ## for *all* sibilant segments in the corpus ## Used for extracting data collected as part of the SPeech Ac...
56.914798
138
0.654349
######################################### ## SPADE sibilant full analysis script ## ######################################### ## Processes and extracts linguistic and acoustic information pertaining to sibilants ## for *all* sibilant segments in the corpus ## Used for extracting data collected as part of the SPeech Ac...
8,304
0
23
dac3c5a0337cc3437b9dcc4486a2a7389f3888d6
5,661
py
Python
skua/bigqueue.py
tor4z/Skua
b45b3aafc045ef19f5efb6d2b7e71479d8d1d6c7
[ "MIT" ]
null
null
null
skua/bigqueue.py
tor4z/Skua
b45b3aafc045ef19f5efb6d2b7e71479d8d1d6c7
[ "MIT" ]
null
null
null
skua/bigqueue.py
tor4z/Skua
b45b3aafc045ef19f5efb6d2b7e71479d8d1d6c7
[ "MIT" ]
null
null
null
import threading from queue import Empty, Full from time import time from .container import Container from .adapter.database import DatabaseWarning
34.518293
79
0.532415
import threading from queue import Empty, Full from time import time from .container import Container from .adapter.database import DatabaseWarning class BigQueue(Container): HASH = "_hash" OBJECT = "_object" def __init__(self, adapter=None, name=None, maxsize=0): super().__init__(adapter, name) ...
4,947
518
46
b14f31255c1c0de93f09b49119cd9b73f4d3e4cf
3,667
py
Python
modules/logging.py
Domterion/uwu-bot
714916cc1189007e91ec40e39a3f46bc5e96282f
[ "MIT" ]
11
2019-03-18T23:45:11.000Z
2020-09-19T07:18:35.000Z
modules/logging.py
Domterion/uwu-bot
714916cc1189007e91ec40e39a3f46bc5e96282f
[ "MIT" ]
null
null
null
modules/logging.py
Domterion/uwu-bot
714916cc1189007e91ec40e39a3f46bc5e96282f
[ "MIT" ]
5
2019-03-02T03:05:22.000Z
2019-09-09T20:18:46.000Z
import aiohttp import discord import discord.ext.commands from discord.ext import commands from discord import Webhook, AsyncWebhookAdapter
33.642202
81
0.578402
import aiohttp import discord import discord.ext.commands from discord.ext import commands from discord import Webhook, AsyncWebhookAdapter class logging(commands.Cog): def __init__(self, bot): self.bot = bot self.hidden = True self.can_be_disabled = False async def commandtask(self, ...
3,141
338
46
563a52db71ea33a401fa9e0da6e5200aa7b2ca8a
353
py
Python
rmcalyse/testing_scripts/multi_histogram_example.py
antgobar/rmcalyse
dee40416bfd7cf73a4ede6eb309b484397e11310
[ "MIT" ]
3
2021-02-17T18:09:16.000Z
2021-03-12T12:36:19.000Z
rmcalyse/testing_scripts/multi_histogram_example.py
antgobar/rmcalyse
dee40416bfd7cf73a4ede6eb309b484397e11310
[ "MIT" ]
null
null
null
rmcalyse/testing_scripts/multi_histogram_example.py
antgobar/rmcalyse
dee40416bfd7cf73a4ede6eb309b484397e11310
[ "MIT" ]
1
2021-03-12T12:37:24.000Z
2021-03-12T12:37:24.000Z
import random import numpy as np import matplotlib.pyplot as plt x = [random.gauss(3, 1) for _ in range(400)] y = [random.gauss(4, 2) for _ in range(400)] bins = np.linspace(-10, 10, 100) plt.hist(x, bins, alpha=0.5, label='x') plt.hist(y, bins, alpha=0.5, label='y') plt.legend(loc='upper left') plt.title('Title 1')...
22.0625
44
0.671388
import random import numpy as np import matplotlib.pyplot as plt x = [random.gauss(3, 1) for _ in range(400)] y = [random.gauss(4, 2) for _ in range(400)] bins = np.linspace(-10, 10, 100) plt.hist(x, bins, alpha=0.5, label='x') plt.hist(y, bins, alpha=0.5, label='y') plt.legend(loc='upper left') plt.title('Title 1')...
0
0
0
a59cbc1deea71316a94de7768e0bb92b595551ea
18,778
py
Python
modules/git_webhooks/github.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
1
2020-12-31T03:10:42.000Z
2020-12-31T03:10:42.000Z
modules/git_webhooks/github.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
3
2020-10-12T21:27:28.000Z
2021-08-12T09:46:55.000Z
modules/git_webhooks/github.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
1
2020-10-12T21:17:58.000Z
2020-10-12T21:17:58.000Z
from src import utils from src.Logging import Logger as log from . import colors import itertools COMMIT_URL = "https://github.com/%s/commit/%s" COMMIT_RANGE_URL = "https://github.com/%s/compare/%s...%s" CREATE_URL = "https://github.com/%s/tree/%s" PR_COMMIT_RANGE_URL = "https://github.com/%s/pull/%s/files/%s..%s" P...
36.111538
88
0.542656
from src import utils from src.Logging import Logger as log from . import colors import itertools COMMIT_URL = "https://github.com/%s/commit/%s" COMMIT_RANGE_URL = "https://github.com/%s/compare/%s...%s" CREATE_URL = "https://github.com/%s/tree/%s" PR_COMMIT_RANGE_URL = "https://github.com/%s/pull/%s/files/%s..%s" P...
15,157
0
886
8a3b2b33324d7add8ba5e993b8499f0f2691d093
4,472
py
Python
orangeshare/__main__.py
krzemienski/Orange-Share
26a1cb55c3d147bc16807bbf1faa73350f72be22
[ "MIT" ]
18
2021-07-31T18:10:25.000Z
2022-03-14T01:38:54.000Z
orangeshare/__main__.py
krzemienski/Orange-Share
26a1cb55c3d147bc16807bbf1faa73350f72be22
[ "MIT" ]
14
2021-08-06T19:10:01.000Z
2021-12-20T10:21:50.000Z
orangeshare/__main__.py
krzemienski/Orange-Share
26a1cb55c3d147bc16807bbf1faa73350f72be22
[ "MIT" ]
2
2021-11-13T15:53:20.000Z
2022-01-23T12:25:32.000Z
import argparse import logging import os import sys import threading from typing import Optional from orangeshare import Orangeshare def get_args() -> argparse.Namespace: """ Gets all commandline arguments and validates them. :return: The arguments """ parser = argparse.ArgumentParser(descripti...
33.125926
183
0.64602
import argparse import logging import os import sys import threading from typing import Optional from orangeshare import Orangeshare def get_args() -> argparse.Namespace: """ Gets all commandline arguments and validates them. :return: The arguments """ parser = argparse.ArgumentParser(descripti...
1,234
0
131
7ec229f86cfbfc1426536673582141f3387fea17
38,918
py
Python
src/m3_conversion.py
MillionConcepts/m3-conversion
485c0cf6dcad12971c15fd728b194b465a82e713
[ "BSD-3-Clause" ]
1
2022-02-14T09:22:46.000Z
2022-02-14T09:22:46.000Z
src/m3_conversion.py
MillionConcepts/m3-conversion
485c0cf6dcad12971c15fd728b194b465a82e713
[ "BSD-3-Clause" ]
null
null
null
src/m3_conversion.py
MillionConcepts/m3-conversion
485c0cf6dcad12971c15fd728b194b465a82e713
[ "BSD-3-Clause" ]
null
null
null
""" specialized utilities and PDSVersionConverter / PDS4Writer subclasses for converting m3 products. """ from ast import literal_eval import datetime as dt import os import re import shutil import numpy as np import pandas as pd import rasterio from toolz import merge from converter import PDSVersionC...
38.456522
81
0.564854
""" specialized utilities and PDSVersionConverter / PDS4Writer subclasses for converting m3 products. """ from ast import literal_eval import datetime as dt import os import re import shutil import numpy as np import pandas as pd import rasterio from toolz import merge from converter import PDSVersionC...
6,556
0
232
4afadc5608dcd7a84aaec56de5089976043b8848
370
py
Python
json_api_doc/__init__.py
jzellman/json-api-doc
9365fa5ceaa0a888f7a1253a7b2776c16c0600bf
[ "Apache-2.0" ]
null
null
null
json_api_doc/__init__.py
jzellman/json-api-doc
9365fa5ceaa0a888f7a1253a7b2776c16c0600bf
[ "Apache-2.0" ]
null
null
null
json_api_doc/__init__.py
jzellman/json-api-doc
9365fa5ceaa0a888f7a1253a7b2776c16c0600bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Julien Duponchelle""" __email__ = 'julien@duponchelle.info' __version__ = '0.9.0' from .serialization import serialize from .deserialization import deserialize, _flat, _resolve, _parse_included # keeps backwards compatibility parse = deserialize __all__ = ['serialize', 'dese...
24.666667
78
0.743243
# -*- coding: utf-8 -*- __author__ = """Julien Duponchelle""" __email__ = 'julien@duponchelle.info' __version__ = '0.9.0' from .serialization import serialize from .deserialization import deserialize, _flat, _resolve, _parse_included # keeps backwards compatibility parse = deserialize __all__ = ['serialize', 'dese...
0
0
0
cdcd8bbf8c55834d0bd53099b333572b39499729
29,318
py
Python
tests/integration/test_raceplans.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
tests/integration/test_raceplans.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
62
2021-09-14T18:47:38.000Z
2022-03-21T22:14:20.000Z
tests/integration/test_raceplans.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
"""Integration test cases for the raceplans route.""" from copy import deepcopy from datetime import datetime from json import dumps import os from aiohttp import hdrs from aiohttp.test_utils import TestClient as _TestClient from aioresponses import aioresponses import jwt import pytest from pytest_mock import MockFix...
34.011601
92
0.607681
"""Integration test cases for the raceplans route.""" from copy import deepcopy from datetime import datetime from json import dumps import os from aiohttp import hdrs from aiohttp.test_utils import TestClient as _TestClient from aioresponses import aioresponses import jwt import pytest from pytest_mock import MockFix...
0
0
0
3363af6c14f0de651a3ba55f5218617973010bd5
7,315
py
Python
test/pgic_test.py
JonJala/pgi_correct
12d46d7e0c810772099eefce901e3ff150b12277
[ "MIT" ]
3
2021-04-19T09:05:52.000Z
2021-07-18T15:31:39.000Z
test/pgic_test.py
JonJala/pgi_correct
12d46d7e0c810772099eefce901e3ff150b12277
[ "MIT" ]
null
null
null
test/pgic_test.py
JonJala/pgi_correct
12d46d7e0c810772099eefce901e3ff150b12277
[ "MIT" ]
null
null
null
""" Unit tests of components in pgic.py. This should be run via pytest """ import numpy as np import pgs_correct.pgic as pgic import pytest ########################################### ########################################### ########################################### #########################################...
35.168269
99
0.61285
""" Unit tests of components in pgic.py. This should be run via pytest """ import numpy as np import pgs_correct.pgic as pgic import pytest ########################################### class TestCalculateRho: ######### @pytest.mark.parametrize("h2, r2, expected_rho", [ (1.0, 1.0, 1.0), ...
1,619
2,571
92
7689ca957b8217513c9d81c4bae48dd047fbdb17
7,799
py
Python
first.py
MobtgZhang/2021MathorCupBigDataCompetition
6cfd93157cfc1bfeebbb5223104a6617bfa5d754
[ "MIT" ]
1
2022-01-22T06:13:30.000Z
2022-01-22T06:13:30.000Z
first.py
MobtgZhang/2021MathorCupBigDataCompetition
6cfd93157cfc1bfeebbb5223104a6617bfa5d754
[ "MIT" ]
null
null
null
first.py
MobtgZhang/2021MathorCupBigDataCompetition
6cfd93157cfc1bfeebbb5223104a6617bfa5d754
[ "MIT" ]
null
null
null
import os import uuid import time import logging import numpy as np import torch import torch.optim as optim import torch.nn as nn from src.data import CarDataset from src.data import batchfy,test_batchfy from src.utils import to_device,write_to_txt from src.evaluate import evaluate_dataset,draw_result,test_raw_datas...
48.141975
174
0.719579
import os import uuid import time import logging import numpy as np import torch import torch.optim as optim import torch.nn as nn from src.data import CarDataset from src.data import batchfy,test_batchfy from src.utils import to_device,write_to_txt from src.evaluate import evaluate_dataset,draw_result,test_raw_datas...
7,293
0
67
6ae069873210b10cbb278cb6717af1f16b39fc45
2,706
py
Python
pyversasense/jsonHelpers.py
flamm3blemuff1n/pyversasense
7da5064c2dacf7d648ad09dd327fdd4d9c81df59
[ "Apache-2.0" ]
null
null
null
pyversasense/jsonHelpers.py
flamm3blemuff1n/pyversasense
7da5064c2dacf7d648ad09dd327fdd4d9c81df59
[ "Apache-2.0" ]
null
null
null
pyversasense/jsonHelpers.py
flamm3blemuff1n/pyversasense
7da5064c2dacf7d648ad09dd327fdd4d9c81df59
[ "Apache-2.0" ]
null
null
null
from .device import Device from .peripheral import Peripheral from .sample import Sample from .measurement import Measurement def jsonToDeviceDict(json): """Convert json to list of Device objects.""" deviceDict = {} for jsonDevice in json: mac = jsonDevice.get("mac") address = jsonDevice.ge...
38.112676
159
0.669623
from .device import Device from .peripheral import Peripheral from .sample import Sample from .measurement import Measurement def jsonToDeviceDict(json): """Convert json to list of Device objects.""" deviceDict = {} for jsonDevice in json: mac = jsonDevice.get("mac") address = jsonDevice.ge...
0
0
0
8f6c5e3dfd9e90a3d6ae3cf38da3f5e4316c18e3
857
py
Python
Python Codes/InstaGram Profile Picture.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
1
2020-06-28T12:35:55.000Z
2020-06-28T12:35:55.000Z
Python Codes/InstaGram Profile Picture.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
1
2021-10-02T05:33:51.000Z
2021-10-02T05:34:02.000Z
Python Codes/InstaGram Profile Picture.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
3
2020-10-17T08:19:02.000Z
2021-10-11T12:33:18.000Z
import os import instaloader if __name__ == "__main__": user=input("Enter Insta Account: ") picture_download(user)
37.26087
70
0.683781
import os import instaloader def picture_download(username): parser=instaloader.Instaloader() #"Change Directory to Downloads" os.chdir(os.path.join(os.path.expanduser('~'),'Downloads')) #"Create custom folder" if os.path.isdir("d:/Notebook Ex/Python Codes/Insta Download"): os.chdir("d:/Not...
698
0
23
8f492f61a54e4d6fcedd9cc2ddebe66010a06e47
528
py
Python
run.py
SeanSuny/PT_Captcha
0717bb093122490b0919b5e3f0c263ecccf91cbe
[ "MIT" ]
null
null
null
run.py
SeanSuny/PT_Captcha
0717bb093122490b0919b5e3f0c263ecccf91cbe
[ "MIT" ]
null
null
null
run.py
SeanSuny/PT_Captcha
0717bb093122490b0919b5e3f0c263ecccf91cbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- ############################################################ # @Author : Sean # @Date : 2022-02-22 19:05:52 # @LastEditors : Sean # @LastEditTime : 2022-03-10 15:26:49 # @Description : 这是由 Sean 创建 # @FilePath : /run.py # @Copyright : Copyright ©2019-20...
29.333333
60
0.481061
#!/usr/bin/env python # -*- coding:utf-8 -*- ############################################################ # @Author : Sean # @Date : 2022-02-22 19:05:52 # @LastEditors : Sean # @LastEditTime : 2022-03-10 15:26:49 # @Description : 这是由 Sean 创建 # @FilePath : /run.py # @Copyright : Copyright ©2019-20...
0
0
0
841c77f153d335ac0cbed5cc4e711d5c0d91d30d
366
py
Python
forms_api/fields/submit_field.py
ponomar/forms_api
fac06b63a97378abd98f0c203a4a70b7291ad51b
[ "BSD-3-Clause" ]
null
null
null
forms_api/fields/submit_field.py
ponomar/forms_api
fac06b63a97378abd98f0c203a4a70b7291ad51b
[ "BSD-3-Clause" ]
null
null
null
forms_api/fields/submit_field.py
ponomar/forms_api
fac06b63a97378abd98f0c203a4a70b7291ad51b
[ "BSD-3-Clause" ]
null
null
null
from forms_api.fields.base_field import Field from forms_api.html import generate_submit
28.153846
61
0.718579
from forms_api.fields.base_field import Field from forms_api.html import generate_submit class SubmitField(Field): type = input_type = 'submit' def __init__(self, key=None, label=None, params=None): super().__init__(key=key, label=label, params=params) def html(self, **attributes): retur...
162
91
23
6bb608a268c9af1df9845d3fca18825cfe7a1533
1,942
py
Python
mysite/test.py
Kwounsu/Winee
608c9c630aff88f10d939bbe7706e967a88855f2
[ "MIT" ]
null
null
null
mysite/test.py
Kwounsu/Winee
608c9c630aff88f10d939bbe7706e967a88855f2
[ "MIT" ]
2
2020-06-05T20:53:31.000Z
2021-03-18T23:30:43.000Z
mysite/test.py
Kwounsu/Winee
608c9c630aff88f10d939bbe7706e967a88855f2
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.contrib.auth.models import User from myapp import models
43.155556
93
0.645211
from django.test import TestCase from django.urls import reverse from django.contrib.auth.models import User from myapp import models class WineListViewTest(TestCase): @classmethod def setUpTestData(cls): # Create user test_user1 = User.objects.create_user(username='testuser1', password='1X<IS...
758
1,027
23
d7ff8854a7a61d4e93e253d13f39b7389ac59287
2,505
py
Python
bin/diff_images.py
open-climate-tech/firecam
d0041332f3d8ba38b7db3b6426010bff0099f569
[ "Apache-2.0" ]
9
2020-11-25T03:51:50.000Z
2022-02-13T19:19:51.000Z
bin/diff_images.py
open-climate-tech/firecam
d0041332f3d8ba38b7db3b6426010bff0099f569
[ "Apache-2.0" ]
6
2020-03-27T01:35:10.000Z
2022-03-26T16:20:31.000Z
bin/diff_images.py
open-climate-tech/firecam
d0041332f3d8ba38b7db3b6426010bff0099f569
[ "Apache-2.0" ]
3
2020-06-08T15:49:40.000Z
2022-01-24T11:18:40.000Z
# Copyright 2020 Open Climate Tech Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
32.115385
113
0.653493
# Copyright 2020 Open Climate Tech Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
1,427
0
46
30dacab910f561d85f7309caed581620c94eedac
955
py
Python
examples/ES/noise.py
jkren6/PARL
7299032f8e1804bb4ada0f087fd485816046fa90
[ "Apache-2.0" ]
3,172
2018-05-22T02:02:29.000Z
2022-03-31T09:14:56.000Z
examples/ES/noise.py
ic7y/PARL
e8797bd0d31d81bc81aae8b12792ff922bcb8ea9
[ "Apache-2.0" ]
422
2018-05-17T16:58:45.000Z
2022-03-31T02:03:25.000Z
examples/ES/noise.py
ic7y/PARL
e8797bd0d31d81bc81aae8b12792ff922bcb8ea9
[ "Apache-2.0" ]
794
2018-05-21T18:33:19.000Z
2022-03-30T13:38:09.000Z
# Third party code # # The following code are copied or modified from: # https://github.com/ray-project/ray/blob/master/python/ray/rllib/utils/filter.py import numpy as np class SharedNoiseTable(object): """Shared noise table used by learner and actor. Learner and actor will create a same noise table by pas...
29.84375
81
0.677487
# Third party code # # The following code are copied or modified from: # https://github.com/ray-project/ray/blob/master/python/ray/rllib/utils/filter.py import numpy as np class SharedNoiseTable(object): """Shared noise table used by learner and actor. Learner and actor will create a same noise table by pas...
361
0
108
af19717c4c549fdc94dbb23204fa848d4a3b159c
180
py
Python
src/426B.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/426B.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/426B.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
n, m = [int(i) for i in input().split()] a = [input().split() for i in range(n)] while n%2==0: if a[:n//2] == a[n//2:n][::-1]: n //= 2 else: break print(n)
20
40
0.444444
n, m = [int(i) for i in input().split()] a = [input().split() for i in range(n)] while n%2==0: if a[:n//2] == a[n//2:n][::-1]: n //= 2 else: break print(n)
0
0
0
fbbf340074db4c358f55f7c4a0f2f946dabe3957
2,286
py
Python
gimmemotifs/tools/yamda.py
JGASmits/gimmemotifs
16d82004d62c22d67c2a2e01493b07ad4a62ef1e
[ "MIT" ]
null
null
null
gimmemotifs/tools/yamda.py
JGASmits/gimmemotifs
16d82004d62c22d67c2a2e01493b07ad4a62ef1e
[ "MIT" ]
null
null
null
gimmemotifs/tools/yamda.py
JGASmits/gimmemotifs
16d82004d62c22d67c2a2e01493b07ad4a62ef1e
[ "MIT" ]
null
null
null
from .motifprogram import MotifProgram import os from subprocess import Popen, PIPE class Yamda(MotifProgram): """ Predict motifs using YAMDA. Reference: Quang et al., 2018, https://doi.org/10.1093/bioinformatics/bty396 """ def _parse_params(self, params=None): """ Parse paramet...
24.847826
80
0.525372
from .motifprogram import MotifProgram import os from subprocess import Popen, PIPE class Yamda(MotifProgram): """ Predict motifs using YAMDA. Reference: Quang et al., 2018, https://doi.org/10.1093/bioinformatics/bty396 """ def __init__(self): self.name = "YAMDA" self.cmd = "run...
241
0
27
9f77b9d4d2d8a8250f96b841020ec2bdad8ae9ab
3,153
py
Python
plugins/rules.py
gorpoorko/Bot-Tcxs-Heroku
b272b1c491ec2bea14e65f1d4e0c96c23bc2d815
[ "FTL" ]
1
2020-12-11T10:15:46.000Z
2020-12-11T10:15:46.000Z
plugins/rules.py
gorpoorko/Bot-Tcxs-Heroku
b272b1c491ec2bea14e65f1d4e0c96c23bc2d815
[ "FTL" ]
null
null
null
plugins/rules.py
gorpoorko/Bot-Tcxs-Heroku
b272b1c491ec2bea14e65f1d4e0c96c23bc2d815
[ "FTL" ]
1
2021-06-22T19:27:38.000Z
2021-06-22T19:27:38.000Z
# -*- coding: utf-8 -*- # ███╗ ███╗ █████╗ ███╗ ██╗██╗ ██████╗ ██████╗ ███╗ ███╗██╗ ██████╗ # ████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔═══██╗████╗ ████║██║██╔═══██╗ # ██╔████╔██║███████║██╔██╗ ██║██║██║ ██║ ██║██╔████╔██║██║██║ ██║ # ██║╚██╔╝██║██╔══██║██║╚██╗██║██║██║ ██║ ██║██║╚██╔╝██║██║██║ █...
48.507692
292
0.46654
# -*- coding: utf-8 -*- # ███╗ ███╗ █████╗ ███╗ ██╗██╗ ██████╗ ██████╗ ███╗ ███╗██╗ ██████╗ # ████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔═══██╗████╗ ████║██║██╔═══██╗ # ██╔████╔██║███████║██╔██╗ ██║██║██║ ██║ ██║██╔████╔██║██║██║ ██║ # ██║╚██╔╝██║██╔══██║██║╚██╗██║██║██║ ██║ ██║██║╚██╔╝██║██║██║ █...
2,233
0
69
871b827e4d135a96b452c6f159dbe3cda9cd9258
2,269
py
Python
s011-largest-product-in-grid.py
urtuba/project_euler_solutions
7a4b20f2d70082ab62efb49231519fd9e4a5dc27
[ "MIT" ]
3
2021-07-13T00:00:56.000Z
2021-07-21T16:53:04.000Z
s011-largest-product-in-grid.py
urtuba/project_euler_solutions
7a4b20f2d70082ab62efb49231519fd9e4a5dc27
[ "MIT" ]
null
null
null
s011-largest-product-in-grid.py
urtuba/project_euler_solutions
7a4b20f2d70082ab62efb49231519fd9e4a5dc27
[ "MIT" ]
null
null
null
# Project Euler 11 - Largest product in a grid # GitHub: urtuba import numpy as np def load_2d_array(filename: str) -> np.ndarray: ''' Reads a txt file into 2d numpy integer array. :param filename: name of the txt file. :return: 2d numpy array ''' with open(filename, 'r') as file: arr...
33.367647
80
0.624063
# Project Euler 11 - Largest product in a grid # GitHub: urtuba import numpy as np def load_2d_array(filename: str) -> np.ndarray: ''' Reads a txt file into 2d numpy integer array. :param filename: name of the txt file. :return: 2d numpy array ''' with open(filename, 'r') as file: arr...
1,082
0
80
a226e79bfdf50d116f66a3442a68581d62bf1fe9
2,289
py
Python
lean/constants.py
bmello4688/lean-cli
20024db4d56ebb9ad8a149d1120baa94f96bfe0a
[ "Apache-2.0" ]
null
null
null
lean/constants.py
bmello4688/lean-cli
20024db4d56ebb9ad8a149d1120baa94f96bfe0a
[ "Apache-2.0" ]
null
null
null
lean/constants.py
bmello4688/lean-cli
20024db4d56ebb9ad8a149d1120baa94f96bfe0a
[ "Apache-2.0" ]
null
null
null
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect 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 copy of the License at http://www.apache...
41.618182
95
0.786806
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect 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 copy of the License at http://www.apache...
0
0
0
b4440c9ced88b5c5ff544a81303350b9cd3742b7
532
py
Python
0001_sum_in_array/find_sum__in_array.py
browniebroke/dailycodingproblem
9f4c0d50ad70333fe14ebe97ba01cb2551a8ba90
[ "MIT" ]
null
null
null
0001_sum_in_array/find_sum__in_array.py
browniebroke/dailycodingproblem
9f4c0d50ad70333fe14ebe97ba01cb2551a8ba90
[ "MIT" ]
null
null
null
0001_sum_in_array/find_sum__in_array.py
browniebroke/dailycodingproblem
9f4c0d50ad70333fe14ebe97ba01cb2551a8ba90
[ "MIT" ]
null
null
null
import random from timeit import timeit if __name__ == '__main__': # Correctness print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 19)) # True print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 40)) # False items = [random.choice(range(10_000)) for _ in range(10_000)] res1 = timeit("main(items, 17)", number...
26.6
66
0.586466
import random from timeit import timeit def main(array, sum_to_find): for i, a in enumerate(array): b = sum_to_find - a if b in array[i:]: return True return False if __name__ == '__main__': # Correctness print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 19)) # True print(...
138
0
23
d2c903101c0ee1999875e54bf8037eb1efaded77
2,808
py
Python
tests/destroyed_symlinks_test.py
christhekeele/pre-commit-hooks
2f7e22dc211ddec22670778553b91850a4ba8c1f
[ "MIT" ]
3
2021-08-23T04:25:59.000Z
2022-01-24T08:37:46.000Z
tests/destroyed_symlinks_test.py
christhekeele/pre-commit-hooks
2f7e22dc211ddec22670778553b91850a4ba8c1f
[ "MIT" ]
null
null
null
tests/destroyed_symlinks_test.py
christhekeele/pre-commit-hooks
2f7e22dc211ddec22670778553b91850a4ba8c1f
[ "MIT" ]
4
2021-06-03T09:56:50.000Z
2022-03-17T09:48:29.000Z
import os import subprocess import pytest from pre_commit_hooks.destroyed_symlinks import find_destroyed_symlinks from pre_commit_hooks.destroyed_symlinks import main TEST_SYMLINK = 'test_symlink' TEST_SYMLINK_TARGET = '/doesnt/really/matters' TEST_FILE = 'test_file' TEST_FILE_RENAMED = f'{TEST_FILE}_renamed' @pyt...
37.44
78
0.644587
import os import subprocess import pytest from pre_commit_hooks.destroyed_symlinks import find_destroyed_symlinks from pre_commit_hooks.destroyed_symlinks import main TEST_SYMLINK = 'test_symlink' TEST_SYMLINK_TARGET = '/doesnt/really/matters' TEST_FILE = 'test_file' TEST_FILE_RENAMED = f'{TEST_FILE}_renamed' @pyt...
2,430
0
45
afde40ddd9d46f292fbab526fe9f8a3c2e2ecec5
2,362
py
Python
experimental_scripts/analyze2.py
w4k2/AWAE
fa5c5d8dca1a6bc46d9819a42fa92d1120639b58
[ "MIT" ]
null
null
null
experimental_scripts/analyze2.py
w4k2/AWAE
fa5c5d8dca1a6bc46d9819a42fa92d1120639b58
[ "MIT" ]
null
null
null
experimental_scripts/analyze2.py
w4k2/AWAE
fa5c5d8dca1a6bc46d9819a42fa92d1120639b58
[ "MIT" ]
null
null
null
import numpy as np from itertools import combinations from tabulate import tabulate from scipy.stats import wilcoxon, ttest_rel, ttest_ind import matplotlib.pyplot as plt from tabulate import tabulate from matplotlib import rcParams ### E1 get end np.set_printoptions(precision=3) alpha = 0.05 results = np.load("re...
24.604167
86
0.583827
import numpy as np from itertools import combinations from tabulate import tabulate from scipy.stats import wilcoxon, ttest_rel, ttest_ind import matplotlib.pyplot as plt from tabulate import tabulate from matplotlib import rcParams ### E1 get end np.set_printoptions(precision=3) alpha = 0.05 results = np.load("re...
0
0
0
162f6272bf8978d27882f0a499422da9db60f43c
1,981
py
Python
pydrive2/drive.py
MinekPo1/PyDrive2
de824d3634cdd4eb6ef0196704ff23f0f8b18821
[ "Apache-2.0" ]
null
null
null
pydrive2/drive.py
MinekPo1/PyDrive2
de824d3634cdd4eb6ef0196704ff23f0f8b18821
[ "Apache-2.0" ]
null
null
null
pydrive2/drive.py
MinekPo1/PyDrive2
de824d3634cdd4eb6ef0196704ff23f0f8b18821
[ "Apache-2.0" ]
null
null
null
from .apiattr import ApiAttributeMixin from .files import GoogleDriveFile from .files import GoogleDriveFileList from .auth import LoadAuth import auth class GoogleDrive(ApiAttributeMixin, object): """Main Google Drive class.""" def __init__(self, auth=None): """Create an instance of GoogleDrive. ...
33.576271
98
0.683493
from .apiattr import ApiAttributeMixin from .files import GoogleDriveFile from .files import GoogleDriveFileList from .auth import LoadAuth import auth class GoogleDrive(ApiAttributeMixin, object): """Main Google Drive class.""" def __init__(self, auth=None): """Create an instance of GoogleDrive. ...
321
0
23
4a05970ef5a40fd9d697ce0de9a42cdde1e268e5
568
gyp
Python
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
4
2020-04-16T12:57:47.000Z
2020-04-18T09:12:26.000Z
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
null
null
null
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
null
null
null
{ "make_global_settings": [ ["CC", "/usr/bin/clang"], ["CXX", "/usr/bin/clang++"] ], "targets": [ { "target_name": "OSLogger", "sources": ["OSLogger.mm", "functions.cc"], "include_dirs": ["<!(node -e \"require('nan')\")"], "xcode_settings": { "CC": "clang", "MA...
22.72
68
0.463028
{ "make_global_settings": [ ["CC", "/usr/bin/clang"], ["CXX", "/usr/bin/clang++"] ], "targets": [ { "target_name": "OSLogger", "sources": ["OSLogger.mm", "functions.cc"], "include_dirs": ["<!(node -e \"require('nan')\")"], "xcode_settings": { "CC": "clang", "MA...
0
0
0
838af24b410963732c2e020aee8110a561953473
28,355
py
Python
zentral/contrib/inventory/views.py
WW-Digital/zentral
5a0907545612228315f335924e2c21860782c7b8
[ "Apache-2.0" ]
null
null
null
zentral/contrib/inventory/views.py
WW-Digital/zentral
5a0907545612228315f335924e2c21860782c7b8
[ "Apache-2.0" ]
null
null
null
zentral/contrib/inventory/views.py
WW-Digital/zentral
5a0907545612228315f335924e2c21860782c7b8
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta import logging from math import ceil from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse, reverse_lazy from django.http import Http404, HttpResponseRedirect from django.shortcuts import g...
38.578231
119
0.637101
from datetime import datetime, timedelta import logging from math import ceil from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse, reverse_lazy from django.http import Http404, HttpResponseRedirect from django.shortcuts import g...
20,965
4,511
1,100
a8c782e26fe8da0e90e7ec45473aa14c4cff94bd
482
py
Python
src/utils/auth.py
akhundMurad/fastapi-bigbluebutton
bfe94d87d8cb9768c17cf5513a05d2b46edf5b5c
[ "MIT" ]
1
2021-07-13T16:28:48.000Z
2021-07-13T16:28:48.000Z
src/utils/auth.py
akhundMurad/fastapi-bigbluebutton
bfe94d87d8cb9768c17cf5513a05d2b46edf5b5c
[ "MIT" ]
1
2022-03-04T19:06:43.000Z
2022-03-05T06:15:47.000Z
src/utils/auth.py
akhundMurad/fastapi-bigbluebutton
bfe94d87d8cb9768c17cf5513a05d2b46edf5b5c
[ "MIT" ]
null
null
null
from selector import get_user from utils.hashing import decode_token, verify_password
24.1
58
0.692946
from selector import get_user from utils.hashing import decode_token, verify_password async def authenticate_user(username: str, password: str): user = await get_user(username) if not user: return False if not verify_password( plain_password=password, hashed_password=user.p...
348
0
46
9ff0e4ddc4d849ee487ec4a87d68254a3520bfea
4,655
py
Python
typeidea_MTV/typeidea/blog/views.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
typeidea_MTV/typeidea/blog/views.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
typeidea_MTV/typeidea/blog/views.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
from datetime import date from django.core.cache import cache from django.db.models import Q,F from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.http import HttpResponse,HttpRequest from django.views.generic import ListView, DetailView from blog.models import Post, Categ...
28.913043
121
0.630934
from datetime import date from django.core.cache import cache from django.db.models import Q,F from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.http import HttpResponse,HttpRequest from django.views.generic import ListView, DetailView from blog.models import Post, Categ...
2,345
372
374
c74528859b1f29fe55276b27417d11f096badcfa
633
py
Python
tests/test_zodb_read_list.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
1
2021-09-06T10:19:55.000Z
2021-09-06T10:19:55.000Z
tests/test_zodb_read_list.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
null
null
null
tests/test_zodb_read_list.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from ZODB.FileStorage import FileStorage from ZODB.DB import DB storage = FileStorage('Data.fs') db = DB(storage) connection = db.open() root = connection.root() print root.keys() print root.items() print print 'account-list-1:' for aa in root['account-list-1']: print aa.__dict__ print p...
17.583333
40
0.671406
#!/usr/bin/env python class Account(object): def __init__(self): self.balance = 0.0 def deposit(self,amount): self.balance += amount def cash(self,amount): assert amount < self.balance self.balance -= amount from ZODB.FileStorage import FileStorage from ZODB.DB import DB...
129
1
103
a2b8f18dd125f6d90453e44f359be5c1b1974219
1,988
py
Python
authors/apps/authentication/backends.py
andela/ah-backend-stark
c38810e221f95567262034b860ee0512cf15f102
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/backends.py
andela/ah-backend-stark
c38810e221f95567262034b860ee0512cf15f102
[ "BSD-3-Clause" ]
29
2018-09-25T13:53:06.000Z
2021-06-10T20:51:58.000Z
authors/apps/authentication/backends.py
andela/ah-backend-stark
c38810e221f95567262034b860ee0512cf15f102
[ "BSD-3-Clause" ]
2
2019-08-02T12:23:24.000Z
2019-11-05T12:22:23.000Z
import jwt from django.conf import settings from rest_framework import authentication, exceptions from .models import User class JWTAuthentication(authentication.BaseAuthentication): """Configure JWT Here""" def get_authentication_credencials(self, request, token): """ Try to authenticate t...
29.235294
75
0.630282
import jwt from django.conf import settings from rest_framework import authentication, exceptions from .models import User class JWTAuthentication(authentication.BaseAuthentication): """Configure JWT Here""" def authenticate(self, request): token = request.META.get('HTTP_TOKEN', None) if ...
791
0
81
1f8e0e0fe8775ae4a14e483dd9ccf52d7596c71c
225
py
Python
backend/risks/exceptions.py
andrew-snek/project-x
d6eca21690dd210f29c571660a2762732f0ede6e
[ "MIT" ]
null
null
null
backend/risks/exceptions.py
andrew-snek/project-x
d6eca21690dd210f29c571660a2762732f0ede6e
[ "MIT" ]
4
2019-01-28T19:22:21.000Z
2022-02-27T10:29:21.000Z
backend/risks/exceptions.py
andrew-snek/project-x
d6eca21690dd210f29c571660a2762732f0ede6e
[ "MIT" ]
null
null
null
from rest_framework.exceptions import APIException
28.125
53
0.795556
from rest_framework.exceptions import APIException class CannotDeleteAlreadyInUse(APIException): status_code = 409 default_detail = 'Cannot delete, already in use.' default_code = 'cannot_delete_already_in_use'
0
150
23
e904338f5ed343053a24025b038c5f63577310df
392
py
Python
views/main.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
2
2020-01-15T07:18:11.000Z
2020-01-29T16:36:20.000Z
views/main.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
2
2019-11-19T08:50:11.000Z
2019-12-29T07:15:59.000Z
views/main.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template main_blueprint = Blueprint("main", __name__, template_folder="templates") @main_blueprint.route("/") @main_blueprint.route("/main") def main(): """ View method to render the home.html page - https://www.abhishekpednekar.com/ Returns ------- home.html:...
23.058824
80
0.686224
from flask import Blueprint, render_template main_blueprint = Blueprint("main", __name__, template_folder="templates") @main_blueprint.route("/") @main_blueprint.route("/main") def main(): """ View method to render the home.html page - https://www.abhishekpednekar.com/ Returns ------- home.html:...
0
0
0
5a859048157f52390f11ebf11682477bce024538
1,361
py
Python
plugins/heavyrain/plugin.py
Someguy123/Cardinal
10cd2f903670d5508a3824a4c8b0a36485ab9ef6
[ "MIT" ]
null
null
null
plugins/heavyrain/plugin.py
Someguy123/Cardinal
10cd2f903670d5508a3824a4c8b0a36485ab9ef6
[ "MIT" ]
null
null
null
plugins/heavyrain/plugin.py
Someguy123/Cardinal
10cd2f903670d5508a3824a4c8b0a36485ab9ef6
[ "MIT" ]
null
null
null
import random import time from twisted.internet import reactor
26.173077
109
0.712711
import random import time from twisted.internet import reactor class HeavyRain(object): # A dictionary which will contain the owner nicks and vhosts owners = None # A list of trusted vhosts trusted_vhosts = None def __init__(self, cardinal): self.owners = {} self.trusted_vhosts = [] self.cardinal = cardin...
971
282
46
7ab8bdf020a72a38095bb0dd20d869ce2e1bd3df
5,965
py
Python
reviews/config/commands.py
thewchan/reviews
f381a590ccdb37b04c1844684d4246f7570f7d2a
[ "MIT" ]
134
2021-05-01T22:33:57.000Z
2022-03-31T14:40:10.000Z
reviews/config/commands.py
thewchan/reviews
f381a590ccdb37b04c1844684d4246f7570f7d2a
[ "MIT" ]
233
2021-04-26T21:31:17.000Z
2022-03-31T08:15:12.000Z
reviews/config/commands.py
thewchan/reviews
f381a590ccdb37b04c1844684d4246f7570f7d2a
[ "MIT" ]
11
2021-04-27T15:36:34.000Z
2022-01-15T16:40:44.000Z
from datetime import datetime from time import sleep from typing import List, Tuple from rich.console import Group from rich.live import Live from rich.panel import Panel from ..controller import GithubPullRequestController, GitlabPullRequestController, PullRequestController from ..layout import ( RenderLayoutMan...
33.324022
104
0.649958
from datetime import datetime from time import sleep from typing import List, Tuple from rich.console import Group from rich.live import Live from rich.panel import Panel from ..controller import GithubPullRequestController, GitlabPullRequestController, PullRequestController from ..layout import ( RenderLayoutMan...
0
0
0
da84d08aae15798b975ebd2c177317bbea236ef2
4,034
py
Python
cava/nightwatch/generator/c/makefile.py
arthurp/lapis2
1c0644cf1eeb2ddc5a735ca002d561e308ed6014
[ "BSD-2-Clause" ]
null
null
null
cava/nightwatch/generator/c/makefile.py
arthurp/lapis2
1c0644cf1eeb2ddc5a735ca002d561e308ed6014
[ "BSD-2-Clause" ]
null
null
null
cava/nightwatch/generator/c/makefile.py
arthurp/lapis2
1c0644cf1eeb2ddc5a735ca002d561e308ed6014
[ "BSD-2-Clause" ]
null
null
null
from nightwatch.model import API # TODO: Add CMake support. """ cmake_minimum_required(VERSION 3.12) find_package(PkgConfig REQUIRED) pkg_check_modules(GLIB REQUIRED glib-2.0) include_directories(${GLIB_INCLUDE_DIRS}) link_directories(${GLIB_LIBRARY_DIRS} ../../cmake-build-debug/guestlib ../../cmake-build-debug/wor...
33.338843
133
0.740456
from nightwatch.model import API def source(api: API, errors): makefile = f""" ifdef RELEASE AVA_RELEASE=yes else ifdef R AVA_RELEASE=yes endif ifdef AVA_RELEASE AVA_RELEASE_FLAG=-DAVA_RELEASE -DNDEBUG -O2 -flto -ggdb -rdynamic else AVA_RELEASE_FLAG=-O0 -g -ggdb -rdynamic endif CC=gcc CXX=g++ LINKER={"g++" if a...
2,949
0
23
d1b28e19855950e08d6babef1c7d5225cdd1adcb
206
py
Python
listener.py
ASafarzadeh/AIFaceLock
5a5bd1a9faf146b323be24723305742682f054d0
[ "MIT" ]
null
null
null
listener.py
ASafarzadeh/AIFaceLock
5a5bd1a9faf146b323be24723305742682f054d0
[ "MIT" ]
null
null
null
listener.py
ASafarzadeh/AIFaceLock
5a5bd1a9faf146b323be24723305742682f054d0
[ "MIT" ]
null
null
null
import keyboard import time import os while True: if keyboard.is_pressed('Windows')and keyboard.is_pressed('`'): delay() time.sleep(5)
20.6
67
0.631068
import keyboard import time import os def delay(): os.startfile("lock.pyw") while True: if keyboard.is_pressed('Windows')and keyboard.is_pressed('`'): delay() time.sleep(5)
21
0
23
cb3d6679d6986d591180aef56c98b9e155d3adb3
2,014
py
Python
core/data/samplers.py
RuiBai1999/myrepo
1cf51db063b922ef58ff11da998c3f12f643420d
[ "MIT" ]
471
2021-09-13T11:28:34.000Z
2022-03-30T07:26:54.000Z
core/data/samplers.py
liuwenqi528/LibFewShot
ea8d618995a51079c79a6291af2ca02b01b846ea
[ "MIT" ]
24
2021-09-22T02:34:05.000Z
2022-02-19T07:26:39.000Z
core/data/samplers.py
liuwenqi528/LibFewShot
ea8d618995a51079c79a6291af2ca02b01b846ea
[ "MIT" ]
82
2021-09-16T12:48:01.000Z
2022-03-28T06:57:47.000Z
# -*- coding: utf-8 -*- import numpy as np import torch from torch.utils.data import Sampler class CategoriesSampler(Sampler): """A Sampler to sample a FSL task. Args: Sampler (torch.utils.data.Sampler): Base sampler from PyTorch. """ def __init__( self, label_list, l...
30.059701
77
0.57001
# -*- coding: utf-8 -*- import numpy as np import torch from torch.utils.data import Sampler class CategoriesSampler(Sampler): """A Sampler to sample a FSL task. Args: Sampler (torch.utils.data.Sampler): Base sampler from PyTorch. """ def __init__( self, label_list, l...
29
0
27
f4dfdda1fdb02e78c8bd30f11a83b3dbc225966a
7,722
py
Python
bicpl/obj.py
FNNDSC/pybicpl
c6211805953f2a57be6a3630cd852d3f87a662e0
[ "MIT" ]
null
null
null
bicpl/obj.py
FNNDSC/pybicpl
c6211805953f2a57be6a3630cd852d3f87a662e0
[ "MIT" ]
null
null
null
bicpl/obj.py
FNNDSC/pybicpl
c6211805953f2a57be6a3630cd852d3f87a662e0
[ "MIT" ]
null
null
null
import os import numpy as np import numpy.typing as npt from dataclasses import dataclass from bicpl.types import SurfProp, Colour @dataclass(frozen=True) class PolygonObj: """ Polygonal mesh in `.obj` file format. http://www.bic.mni.mcgill.ca/users/mishkin/mni_obj_format.pdf Note: the data represe...
34.168142
118
0.578736
import os import numpy as np import numpy.typing as npt from dataclasses import dataclass from bicpl.types import SurfProp, Colour @dataclass(frozen=True) class PolygonObj: """ Polygonal mesh in `.obj` file format. http://www.bic.mni.mcgill.ca/users/mishkin/mni_obj_format.pdf Note: the data represe...
775
0
50
21c9da6c066c767ba6dbb1d507644c104ded5a81
4,058
py
Python
migrations/versions/247c9e7de059_.py
hellwen/mytrade
fd2518ef043df1528d3d4fc9d1af74172f0d636a
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/247c9e7de059_.py
hellwen/mytrade
fd2518ef043df1528d3d4fc9d1af74172f0d636a
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/247c9e7de059_.py
hellwen/mytrade
fd2518ef043df1528d3d4fc9d1af74172f0d636a
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 247c9e7de059 Revises: None Create Date: 2015-12-02 15:03:20.582541 """ # revision identifiers, used by Alembic. revision = '247c9e7de059' down_revision = None from alembic import op import sqlalchemy as sa
39.019231
75
0.676934
"""empty message Revision ID: 247c9e7de059 Revises: None Create Date: 2015-12-02 15:03:20.582541 """ # revision identifiers, used by Alembic. revision = '247c9e7de059' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ###...
3,770
0
46
6b130a327765a587bde17b4ef51ad6ce550cc0e4
16,412
py
Python
src/sage/interfaces/latte.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/interfaces/latte.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/interfaces/latte.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Interface to LattE integrale programs """ #***************************************************************************** # Copyright (C) 2017 Vincent Delecroix <vincent.delecroix@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
35.143469
126
0.602181
r""" Interface to LattE integrale programs """ #***************************************************************************** # Copyright (C) 2017 Vincent Delecroix <vincent.delecroix@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
0
0
0
864fb7ebe95beb35893c514f912a85306dc62da8
3,629
py
Python
vulnerabilities/tests/test_alpine.py
bhuvi11/vulnerablecode
8044a9826568b24397d143e17624299f8008b0e0
[ "Apache-2.0" ]
null
null
null
vulnerabilities/tests/test_alpine.py
bhuvi11/vulnerablecode
8044a9826568b24397d143e17624299f8008b0e0
[ "Apache-2.0" ]
null
null
null
vulnerabilities/tests/test_alpine.py
bhuvi11/vulnerablecode
8044a9826568b24397d143e17624299f8008b0e0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in complian...
39.445652
99
0.63709
# # Copyright (c) nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in complian...
1,802
82
23
ff5a70baf4972d867ca8d968bf2847c28304808a
348
py
Python
baike_spider/html_downloader.py
iicoom/Python
977e552f53c1919bebb11fc4a0eaf2fbbb35f71a
[ "MIT" ]
null
null
null
baike_spider/html_downloader.py
iicoom/Python
977e552f53c1919bebb11fc4a0eaf2fbbb35f71a
[ "MIT" ]
null
null
null
baike_spider/html_downloader.py
iicoom/Python
977e552f53c1919bebb11fc4a0eaf2fbbb35f71a
[ "MIT" ]
null
null
null
import urllib #urllib2是一个标准库,安装python之后就自带了,并且只在于python2中 #在python3中,已经把urllib,urllib2等的合并为一个包urllib了。
19.333333
44
0.655172
import urllib class HtmlDownloader(object): def download(self, url): if url is None: return None response = urllib.urlopen(url) if response.getcode() != 200: return None return response.read() #urllib2是一个标准库,安装python之后就自带了,并且只在于python2中 #在python3中,已经把ur...
186
8
50
d2ef85c011c60c30665c3bb1c7daa00f27a9f583
394
py
Python
scripts/clean_output.py
ivanna-ostrovets/compilation-theory
766b827431c7b71720e6798350d363ee373a25f4
[ "MIT" ]
null
null
null
scripts/clean_output.py
ivanna-ostrovets/compilation-theory
766b827431c7b71720e6798350d363ee373a25f4
[ "MIT" ]
null
null
null
scripts/clean_output.py
ivanna-ostrovets/compilation-theory
766b827431c7b71720e6798350d363ee373a25f4
[ "MIT" ]
null
null
null
import os import shutil if __name__ == '__main__': path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) dirs_to_remove = ['output'] clean_output(path, dirs_to_remove)
23.176471
71
0.642132
import os import shutil def clean_output(path, dirs_to_remove): for root, dirs, files in os.walk(path): for dir in dirs: if dir in dirs_to_remove: shutil.rmtree(root + "/" + dir) if __name__ == '__main__': path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))...
173
0
23
520b6b58e129ff7fda3896c6ff71336d463f4c99
81,000
py
Python
skidl/libs/dc-dc_sklib.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
700
2016-08-16T21:12:50.000Z
2021-10-10T02:15:18.000Z
skidl/libs/dc-dc_sklib.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
118
2016-08-16T20:51:05.000Z
2021-10-10T08:07:18.000Z
skidl/libs/dc-dc_sklib.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
94
2016-08-25T14:02:28.000Z
2021-09-12T05:17:08.000Z
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' dc_dc = SchLib(tool=SKIDL).add_parts(*[ Part(name='ADP1108',dest=TEMPLATE,tool=SKIDL,keywords='switching buck boost converter step-down step-up',description='Micropower DC-DC conveter, step-up or step-down operation, 2V-30Vin, ad...
80.039526
426
0.610741
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' dc_dc = SchLib(tool=SKIDL).add_parts(*[ Part(name='ADP1108',dest=TEMPLATE,tool=SKIDL,keywords='switching buck boost converter step-down step-up',description='Micropower DC-DC conveter, step-up or step-down operation, 2V-30Vin, ad...
0
0
0
e758dd6d892125a54dd0a0809101ec74403d7e22
5,608
py
Python
chat_state.py
ProgrammingIncluded/PyAN
b5628891c2f0f7b4deb97d92c7b6ab1163a13b54
[ "MIT" ]
null
null
null
chat_state.py
ProgrammingIncluded/PyAN
b5628891c2f0f7b4deb97d92c7b6ab1163a13b54
[ "MIT" ]
null
null
null
chat_state.py
ProgrammingIncluded/PyAN
b5628891c2f0f7b4deb97d92c7b6ab1163a13b54
[ "MIT" ]
null
null
null
############################################ # Project: PyAN # File: chat_state.py # By: ProgrammingIncluded # Website: ProgrammingIncluded.com # Desc: File to hold chat screen and logic. ############################################ import input_buffer as ib import connect as cnt from command import print_buf import c...
28.180905
107
0.622147
############################################ # Project: PyAN # File: chat_state.py # By: ProgrammingIncluded # Website: ProgrammingIncluded.com # Desc: File to hold chat screen and logic. ############################################ import input_buffer as ib import connect as cnt from command import print_buf import c...
3,106
0
264
ab34fd8f2e7ea59b40d4c45ffef5279e314aabd8
10,280
py
Python
get_angle_route.py
cfhaiteeh/FightRoute
0055b13848d957d3876049ab8cba45d268fc34d6
[ "MIT" ]
13
2019-11-11T10:26:19.000Z
2021-07-03T05:08:06.000Z
get_angle_route.py
cfhaiteeh/FightRoute
0055b13848d957d3876049ab8cba45d268fc34d6
[ "MIT" ]
null
null
null
get_angle_route.py
cfhaiteeh/FightRoute
0055b13848d957d3876049ab8cba45d268fc34d6
[ "MIT" ]
3
2020-06-16T06:21:05.000Z
2020-08-19T04:03:11.000Z
from math import sqrt, acos, pi from model.model import Model from data_processing import csv_processing from sympy import * from sympy.abc import x, y, z from scipy.optimize import fsolve import math csv_data = csv_processing.get_data('data/data2.csv') # 叉乘 # data1############################################...
37.381818
227
0.563716
from math import sqrt, acos, pi from model.model import Model from data_processing import csv_processing from sympy import * from sympy.abc import x, y, z from scipy.optimize import fsolve import math csv_data = csv_processing.get_data('data/data2.csv') class Vector(object): def __init__(self, coordinates): ...
816
0
75
633b30c2d7f3dafe3015745b544ea24057f6af41
216
py
Python
setup.py
OneStrangeAlgorithm/reddit-inbox-parser
9d2ae76e4c8f9540d804d56fd3354081f5ba95da
[ "MIT" ]
null
null
null
setup.py
OneStrangeAlgorithm/reddit-inbox-parser
9d2ae76e4c8f9540d804d56fd3354081f5ba95da
[ "MIT" ]
null
null
null
setup.py
OneStrangeAlgorithm/reddit-inbox-parser
9d2ae76e4c8f9540d804d56fd3354081f5ba95da
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='inbox_personal_parser', version='1.0', install_requires=[ 'matplotlib', 'numpy','pandas' ], py_modules=['inbox_personal_parser'] )
24
42
0.625
from distutils.core import setup setup(name='inbox_personal_parser', version='1.0', install_requires=[ 'matplotlib', 'numpy','pandas' ], py_modules=['inbox_personal_parser'] )
0
0
0
564205bb675fa67eb13afacb4492b71d62426f73
7,864
py
Python
pgoapi/utilities.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
pgoapi/utilities.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
pgoapi/utilities.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
34.79646
133
0.63441
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
4,618
14
539
d1e5ada9d01b9503673843a5643f2a00aa529f2f
84
py
Python
fiblat/__init__.py
erikbrinkman/fibonacci_lattice
084ae618958bbd5a856d900ded55ae582269525d
[ "MIT" ]
null
null
null
fiblat/__init__.py
erikbrinkman/fibonacci_lattice
084ae618958bbd5a856d900ded55ae582269525d
[ "MIT" ]
null
null
null
fiblat/__init__.py
erikbrinkman/fibonacci_lattice
084ae618958bbd5a856d900ded55ae582269525d
[ "MIT" ]
null
null
null
from ._cube_lattice import cube_lattice from ._sphere_lattice import sphere_lattice
28
43
0.880952
from ._cube_lattice import cube_lattice from ._sphere_lattice import sphere_lattice
0
0
0
c671544be4fba8f56a178de1bfca22ffa337c680
2,198
py
Python
totalvoice/cliente/api/central/ura.py
kmee/totalvoice-python
715daf50509acb4f05c38db49d88629f7d0a8e71
[ "MIT" ]
25
2017-11-03T00:15:26.000Z
2021-01-22T01:30:08.000Z
totalvoice/cliente/api/central/ura.py
kmee/totalvoice-python
715daf50509acb4f05c38db49d88629f7d0a8e71
[ "MIT" ]
1
2018-08-08T12:49:48.000Z
2018-08-17T17:57:41.000Z
totalvoice/cliente/api/central/ura.py
kmee/totalvoice-python
715daf50509acb4f05c38db49d88629f7d0a8e71
[ "MIT" ]
10
2017-10-20T23:22:17.000Z
2022-03-08T20:40:19.000Z
# coding=utf-8 from totalvoice.cliente.api.helper import utils from totalvoice.cliente.api.helper.routes import Routes from totalvoice.cliente.api.totalvoice import Totalvoice import json, requests
25.55814
148
0.601001
# coding=utf-8 from totalvoice.cliente.api.helper import utils from totalvoice.cliente.api.helper.routes import Routes from totalvoice.cliente.api.totalvoice import Totalvoice import json, requests class Ura(Totalvoice): def __init__(self, cliente): super(Ura, self).__init__(cliente) def criar(self...
188
1,820
23
d229f8e2d90db9bb7e4669fc7adecf023a2f02ad
523
py
Python
dirtyjson/tests/test_decimal.py
lachesis/dirtyjson
45d359a9e061f5a2e00d8f38817372a0e39822ae
[ "AFL-2.1" ]
12
2016-04-28T08:17:30.000Z
2022-03-23T05:15:37.000Z
dirtyjson/tests/test_decimal.py
bayilyas/dirtyjson
aef799ced0733e1d3195670088ecfdef5937a3d0
[ "AFL-2.1" ]
3
2016-08-23T12:49:46.000Z
2021-11-10T17:34:33.000Z
dirtyjson/tests/test_decimal.py
bayilyas/dirtyjson
aef799ced0733e1d3195670088ecfdef5937a3d0
[ "AFL-2.1" ]
7
2016-09-17T05:48:28.000Z
2022-03-12T19:35:11.000Z
from decimal import Decimal from unittest import TestCase from dirtyjson.compat import StringIO import dirtyjson
26.15
76
0.650096
from decimal import Decimal from unittest import TestCase from dirtyjson.compat import StringIO import dirtyjson class TestDecimal(TestCase): NUMS = "1.0", "10.00", "1.1", "1234567890.1234567890", "500" def loads(self, s, **kw): sio = StringIO(s) res = dirtyjson.loads(s, **kw) self.a...
259
126
23
4f6b6b108f537af275b20de53fb34c8e874d43ed
5,694
py
Python
src/swordfish/monitor.py
LooseLab/swordfish
db1686cdc511aed9f4f19b499a9191b2aff81f3f
[ "MIT" ]
null
null
null
src/swordfish/monitor.py
LooseLab/swordfish
db1686cdc511aed9f4f19b499a9191b2aff81f3f
[ "MIT" ]
1
2022-01-28T16:57:27.000Z
2022-01-28T16:57:27.000Z
src/swordfish/monitor.py
LooseLab/swordfish
db1686cdc511aed9f4f19b499a9191b2aff81f3f
[ "MIT" ]
null
null
null
import logging import sys import time from pprint import pformat from rich.logging import RichHandler from rich.console import Console from swordfish.endpoints import EndPoint from swordfish.minotour_api import MinotourAPI from swordfish.utils import validate_mt_connection, write_toml_file, get_original_toml_settings...
40.671429
188
0.684932
import logging import sys import time from pprint import pformat from rich.logging import RichHandler from rich.console import Console from swordfish.endpoints import EndPoint from swordfish.minotour_api import MinotourAPI from swordfish.utils import validate_mt_connection, write_toml_file, get_original_toml_settings...
0
0
0
f2144acceca67c3cd830ee591a18174ffec1f2af
4,670
py
Python
dashboard/dashboard/pinpoint/handlers/cas.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/pinpoint/handlers/cas.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1
2022-01-12T14:28:55.000Z
2022-01-12T14:28:55.000Z
dashboard/dashboard/pinpoint/handlers/cas.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 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. """Service for tracking CAS reference from RBE and looking them up by builder and commit. RBE is the Remote Build Execution used for building and storing the...
32.887324
79
0.68758
# Copyright 2021 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. """Service for tracking CAS reference from RBE and looking them up by builder and commit. RBE is the Remote Build Execution used for building and storing the...
172
0
25
996c930d9d02aeb43c6461584b566692eacdf450
6,464
py
Python
wordle.py
salil91/wordle_bot
bcf2e101dbba489f9c063586faabd5a548e40d0e
[ "MIT" ]
null
null
null
wordle.py
salil91/wordle_bot
bcf2e101dbba489f9c063586faabd5a548e40d0e
[ "MIT" ]
null
null
null
wordle.py
salil91/wordle_bot
bcf2e101dbba489f9c063586faabd5a548e40d0e
[ "MIT" ]
null
null
null
# wordle.py - Play Wordle in the command line # Usage: wordle.py [-h] [--hard] [--answer ANSWER] [--show-answer] # # options: # -h, --help show this help message and exit # --hard Enable hard mode # -a ANSWER, --answer ANSWER # Provide the answer # --show-answe...
31.227053
98
0.575031
# wordle.py - Play Wordle in the command line # Usage: wordle.py [-h] [--hard] [--answer ANSWER] [--show-answer] # # options: # -h, --help show this help message and exit # --hard Enable hard mode # -a ANSWER, --answer ANSWER # Provide the answer # --show-answe...
5,490
0
115
035d6a6f8ab514691910e6331e9927a76dc1d2e1
5,796
py
Python
faster-rcnn-tutorial/detection/transformations.py
ifding/self-driving-car
fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0
[ "MIT" ]
13
2018-05-15T16:33:11.000Z
2019-02-14T06:46:31.000Z
faster-rcnn-tutorial/detection/transformations.py
ifding/self-driving-car
fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0
[ "MIT" ]
null
null
null
faster-rcnn-tutorial/detection/transformations.py
ifding/self-driving-car
fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0
[ "MIT" ]
15
2018-05-18T19:19:48.000Z
2021-11-03T04:36:50.000Z
from functools import partial from typing import List, Callable import albumentations as A import numpy as np import torch from sklearn.externals._pilutil import bytescale from torchvision.ops import nms def normalize_01(inp: np.ndarray): """Squash image input to the value range [0, 1] (no clipping)""" inp_o...
28.411765
102
0.634748
from functools import partial from typing import List, Callable import albumentations as A import numpy as np import torch from sklearn.externals._pilutil import bytescale from torchvision.ops import nms def normalize_01(inp: np.ndarray): """Squash image input to the value range [0, 1] (no clipping)""" inp_o...
1,796
0
351
25e0eda74a0a2d3acf19dbccee784b659b59d150
2,658
py
Python
data/szse_cn/actutor.py
dingyuanhong/Collection
43bfae16c93b643d1b09d84f27bfdbe5ef8ed497
[ "MIT" ]
1
2021-07-03T13:39:42.000Z
2021-07-03T13:39:42.000Z
data/szse_cn/actutor.py
dingyuanhong/Collection
43bfae16c93b643d1b09d84f27bfdbe5ef8ed497
[ "MIT" ]
null
null
null
data/szse_cn/actutor.py
dingyuanhong/Collection
43bfae16c93b643d1b09d84f27bfdbe5ef8ed497
[ "MIT" ]
1
2020-05-29T23:38:22.000Z
2020-05-29T23:38:22.000Z
from actuator.register import fm; from .task import * import data.db as database import copy this = self_handlers() @fm.route("szse.com","stock_run") @this.route("stock_run") @fm.route("szse.com","stocks_all") @this.route("stocks_all") @fm.route("szse.com","stock_list") @this.route("stock_list") @fm.route("szse.c...
27.978947
97
0.599699
from actuator.register import fm; from .task import * import data.db as database import copy class self_handlers: handlers = {}; def route(self,func): def registe(cls): self.handlers[func] = cls; return cls; return registe; this = self_handlers() @fm.route("szse.com",...
1,988
44
155
0b0b5074c0c90335e14a248846319d17179513c1
11,247
py
Python
4_archmage/ann.py
leriomaggio/develer-data-science
454e4d3b1aac5a167080d7c9abc58e7382105169
[ "MIT" ]
4
2018-10-18T07:44:19.000Z
2020-07-25T03:48:42.000Z
4_archmage/ann.py
leriomaggio/develer-data-science
454e4d3b1aac5a167080d7c9abc58e7382105169
[ "MIT" ]
4
2021-06-08T19:22:45.000Z
2022-03-11T23:32:44.000Z
4_archmage/ann.py
leriomaggio/develer-data-science
454e4d3b1aac5a167080d7c9abc58e7382105169
[ "MIT" ]
2
2019-07-30T02:33:29.000Z
2020-09-03T11:27:27.000Z
"""Python Implementation of Multi-Layer Perceptron""" import numpy as np from numpy.random import seed # ================= # Utility functions # ================= import random random.seed(123) # calculate a random number where: a <= rand < b # Make a matrix # our sigmoid function # derivative of our sigmoid fu...
27.70197
77
0.530897
"""Python Implementation of Multi-Layer Perceptron""" import numpy as np from numpy.random import seed # ================= # Utility functions # ================= import random random.seed(123) # calculate a random number where: a <= rand < b def rand(a, b): return (b-a)*random.random() + a # Make a matrix de...
4,052
0
301
74c8f7159b191cad22f78f7bba1eb84335f560f9
70
py
Python
api/src/utils/constants.py
ethanglaser/alt_api
3be37efcfaea477d52e240a389d74bf0d0a1faf0
[ "MIT" ]
null
null
null
api/src/utils/constants.py
ethanglaser/alt_api
3be37efcfaea477d52e240a389d74bf0d0a1faf0
[ "MIT" ]
null
null
null
api/src/utils/constants.py
ethanglaser/alt_api
3be37efcfaea477d52e240a389d74bf0d0a1faf0
[ "MIT" ]
1
2022-02-28T22:05:06.000Z
2022-02-28T22:05:06.000Z
#!/usr/bin/env python3 """ Common constants """ # put constants here
10
22
0.671429
#!/usr/bin/env python3 """ Common constants """ # put constants here
0
0
0
0dc7942fe2367dd38c0a75e4cf534ac6c6dba719
4,129
py
Python
plugins/modules/openafs_store_facts.py
CheyenneWills/ansible-openafs
efd4000685da594881ba5566518020d033001ece
[ "BSD-2-Clause" ]
null
null
null
plugins/modules/openafs_store_facts.py
CheyenneWills/ansible-openafs
efd4000685da594881ba5566518020d033001ece
[ "BSD-2-Clause" ]
null
null
null
plugins/modules/openafs_store_facts.py
CheyenneWills/ansible-openafs
efd4000685da594881ba5566518020d033001ece
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, Sine Nomine Associates # BSD 2-Clause License ANSIBLE_METADATA = { 'metadata_version': '1.1.', 'status': ['preview'], 'supported_by': 'community', } DOCUMENTATION = r''' --- module: openafs_store_facts short_description: Store OpenAFS facts in a json file descript...
30.138686
78
0.618067
#!/usr/bin/python # Copyright (c) 2020, Sine Nomine Associates # BSD 2-Clause License ANSIBLE_METADATA = { 'metadata_version': '1.1.', 'status': ['preview'], 'supported_by': 'community', } DOCUMENTATION = r''' --- module: openafs_store_facts short_description: Store OpenAFS facts in a json file descript...
2,703
0
46
4b16c2cbf4f9436ef3ec03d61ee4684b4f9599e0
15,450
py
Python
batchtools/check_status.py
pwighton/batchtools
70706ca8b1a9e0886fffc74b50a458391cab52f1
[ "BSD-3-Clause" ]
null
null
null
batchtools/check_status.py
pwighton/batchtools
70706ca8b1a9e0886fffc74b50a458391cab52f1
[ "BSD-3-Clause" ]
1
2021-02-19T23:09:24.000Z
2021-02-19T23:09:24.000Z
batchtools/check_status.py
pwighton/batchtools
70706ca8b1a9e0886fffc74b50a458391cab52f1
[ "BSD-3-Clause" ]
1
2021-02-19T17:42:56.000Z
2021-02-19T17:42:56.000Z
from collections import defaultdict import datetime import json import logging import os import sys import time from urllib.parse import urlparse import boto3 from botocore.exceptions import ClientError import click logging.basicConfig(format="%(message)s", level=logging.INFO) def read_json(json_file): """ (fi...
31.921488
138
0.580129
from collections import defaultdict import datetime import json import logging import os import sys import time from urllib.parse import urlparse import boto3 from botocore.exceptions import ClientError import click logging.basicConfig(format="%(message)s", level=logging.INFO) def read_file(input_file): file_co...
8,784
0
229
5a3d8360392d0193c6e8dd7ba09c2d1c9c53052f
36,176
py
Python
sdk/python/pulumi_azure_nextgen/insights/v20180301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/insights/v20180301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/insights/v20180301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities, _tables from...
35.466667
227
0.641613
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities, _tables from...
1,394
0
459
48604f9016b7a0e02473b3c43505936005371dbd
1,536
py
Python
tests/Unit/Domain/Python/Test_ElementId.py
nilsvu/spectre
1455b9a8d7e92db8ad600c66f54795c29c3052ee
[ "MIT" ]
117
2017-04-08T22:52:48.000Z
2022-03-25T07:23:36.000Z
tests/Unit/Domain/Python/Test_ElementId.py
GitHimanshuc/spectre
4de4033ba36547113293fe4dbdd77591485a4aee
[ "MIT" ]
3,177
2017-04-07T21:10:18.000Z
2022-03-31T23:55:59.000Z
tests/Unit/Domain/Python/Test_ElementId.py
geoffrey4444/spectre
9350d61830b360e2d5b273fdd176dcc841dbefb0
[ "MIT" ]
85
2017-04-07T19:36:13.000Z
2022-03-01T10:21:00.000Z
# Distributed under the MIT License. # See LICENSE.txt for details. from spectre.Domain import ElementId1D, ElementId2D, ElementId3D, SegmentId import unittest if __name__ == '__main__': unittest.main(verbosity=2)
36.571429
76
0.599609
# Distributed under the MIT License. # See LICENSE.txt for details. from spectre.Domain import ElementId1D, ElementId2D, ElementId3D, SegmentId import unittest class TestElementId(unittest.TestCase): def test_construction(self): element_id = ElementId1D(block_id=1) self.assertEqual(element_id.blo...
1,166
18
130
be04224e66685cffdcbb2ea5d93e2e88ae71ac13
2,368
py
Python
spira/yevon/process/layer_map.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
10
2018-07-13T09:46:21.000Z
2021-06-22T13:34:50.000Z
spira/yevon/process/layer_map.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
8
2018-09-09T11:32:40.000Z
2019-10-08T07:47:31.000Z
spira/yevon/process/layer_map.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
7
2019-01-17T18:50:17.000Z
2022-01-13T20:27:52.000Z
from spira.core.parameters.variables import DictParameter from spira.core.parameters.initializer import ParameterInitializer from spira.core.parameters.descriptor import Parameter from spira.yevon.process.all import * from spira.yevon.process import get_rule_deck RDD = get_rule_deck() __all__ = ['MapGdsiiToPhysical...
35.878788
97
0.670186
from spira.core.parameters.variables import DictParameter from spira.core.parameters.initializer import ParameterInitializer from spira.core.parameters.descriptor import Parameter from spira.yevon.process.all import * from spira.yevon.process import get_rule_deck RDD = get_rule_deck() __all__ = ['MapGdsiiToPhysical...
1,458
0
162
5be75af59e12d2c5a0e5929f16d7cf1f2b35602b
537
py
Python
scale/ingest/scan/configuration/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/ingest/scan/configuration/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/ingest/scan/configuration/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
"""Defines exceptions that can occur when interacting with Scan configuration""" from util.exceptions import ValidationException class InvalidScanConfiguration(ValidationException): """Exception indicating that the provided Scan configuration was invalid""" def __init__(self, description): """Construc...
38.357143
97
0.750466
"""Defines exceptions that can occur when interacting with Scan configuration""" from util.exceptions import ValidationException class InvalidScanConfiguration(ValidationException): """Exception indicating that the provided Scan configuration was invalid""" def __init__(self, description): """Construc...
0
0
0
8e260b23a5b3a090c4476a794c44dbbc1cde1aa1
10,998
py
Python
dlpy/model_conversion/onnx_transforms.py
arharvey918/python-dlpy
423985ebe65acbcbe9a7996bb26aee5e66eddc49
[ "Apache-2.0" ]
1
2018-08-27T15:10:11.000Z
2018-08-27T15:10:11.000Z
dlpy/model_conversion/onnx_transforms.py
arharvey918/python-dlpy
423985ebe65acbcbe9a7996bb26aee5e66eddc49
[ "Apache-2.0" ]
null
null
null
dlpy/model_conversion/onnx_transforms.py
arharvey918/python-dlpy
423985ebe65acbcbe9a7996bb26aee5e66eddc49
[ "Apache-2.0" ]
1
2019-09-19T15:59:26.000Z
2019-09-19T15:59:26.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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...
30.381215
77
0.59329
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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...
4,482
0
469
dd6d3fd84248e6d50eee9ab718e0a5620c853348
1,104
py
Python
Task 8.py
ElenaTest-dev/test-repository
f4b5671f43eac612d93993afce0c443e8e1a27cd
[ "Apache-2.0" ]
null
null
null
Task 8.py
ElenaTest-dev/test-repository
f4b5671f43eac612d93993afce0c443e8e1a27cd
[ "Apache-2.0" ]
null
null
null
Task 8.py
ElenaTest-dev/test-repository
f4b5671f43eac612d93993afce0c443e8e1a27cd
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException @pytest.fixture
38.068966
86
0.742754
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException @pytest.fixture def driver(request)...
728
0
73
503881dc00b3d350acf581bc073bb082a0eacc56
803
py
Python
listremove.py
carltraveler/FormalVerfication
52b7d15e066a477b732fb80cade4fbd64f60b879
[ "MIT" ]
null
null
null
listremove.py
carltraveler/FormalVerfication
52b7d15e066a477b732fb80cade4fbd64f60b879
[ "MIT" ]
null
null
null
listremove.py
carltraveler/FormalVerfication
52b7d15e066a477b732fb80cade4fbd64f60b879
[ "MIT" ]
null
null
null
OntCversion = '2.0.0' import ontology.builtins import ontology.libont
18.674419
40
0.523039
OntCversion = '2.0.0' import ontology.builtins import ontology.libont def VaasAssert(expr): if not expr: raise Exception("AssertError") def main(): equal = 9 l4 = l3 = l = [9, 8, "hello", 6] l1 = [9, 8, "world" ,6] l2 = [9, 8, "hello", 6] if l is l2: equal = 1 else: ...
687
0
46