hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
87df4668217a77fd249d0ccb1840561c8017fb2d
6,792
py
Python
migration/management/commands/migratedata.py
dixonary/uwcs-zarya
e982f324c0a6aca156a15c6f597012f47bc070cc
[ "MIT" ]
7
2016-09-30T20:33:46.000Z
2020-03-16T15:04:20.000Z
migration/management/commands/migratedata.py
dixonary/uwcs-zarya
e982f324c0a6aca156a15c6f597012f47bc070cc
[ "MIT" ]
46
2016-10-01T17:52:59.000Z
2022-01-13T00:44:09.000Z
migration/management/commands/migratedata.py
dixonary/uwcs-zarya
e982f324c0a6aca156a15c6f597012f47bc070cc
[ "MIT" ]
6
2016-10-15T02:51:18.000Z
2020-10-02T12:47:54.000Z
from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from django.template.defaultfilters import slugify, linebreaks, date, truncatechars from wagtail.core.models import Page from wagtail.core.rich_text import RichText from migration.models import * from accounts.models im...
34.477157
115
0.626767
157
0.023115
0
0
0
0
0
0
1,088
0.160188
87e20d41ac964f6f9b382bbcfc612a4214737a5d
114
py
Python
env/Lib/site-packages/countdowntimer_model/apps.py
gtkacz/fantasytrashtalk
24ed8ba6c4fae2eca5b15f66b62338a8c87debd2
[ "MIT" ]
4
2021-03-29T07:35:41.000Z
2022-01-12T09:54:55.000Z
env/Lib/site-packages/countdowntimer_model/apps.py
gtkacz/fantasytrashtalk
24ed8ba6c4fae2eca5b15f66b62338a8c87debd2
[ "MIT" ]
4
2020-08-06T14:51:06.000Z
2021-09-22T18:53:50.000Z
env/Lib/site-packages/countdowntimer_model/apps.py
gtkacz/fantasytrashtalk
24ed8ba6c4fae2eca5b15f66b62338a8c87debd2
[ "MIT" ]
3
2020-04-20T18:54:10.000Z
2021-03-29T07:35:13.000Z
from django.apps import AppConfig class CountdowntimerModelConfig(AppConfig): name = 'countdowntimer_model'
19
43
0.807018
77
0.675439
0
0
0
0
0
0
22
0.192982
87e30755fa816cc3a2853bbeb8767db8ffb2216d
3,206
py
Python
restea/adapters/flaskwrap.py
kkszysiu/restea
34ef2ee683a259a05e530514e743a9f69fa5e663
[ "MIT" ]
null
null
null
restea/adapters/flaskwrap.py
kkszysiu/restea
34ef2ee683a259a05e530514e743a9f69fa5e663
[ "MIT" ]
null
null
null
restea/adapters/flaskwrap.py
kkszysiu/restea
34ef2ee683a259a05e530514e743a9f69fa5e663
[ "MIT" ]
null
null
null
import flask import restea.formats as formats from restea.adapters.base import ( BaseResourceWrapper, BaseRequestWrapper, ) class FlaskRequestWrapper(BaseRequestWrapper): ''' Object wrapping Flask request context. ''' @property def data(self): ''' Returns a payload sent to...
27.401709
76
0.585465
3,067
0.956644
0
0
780
0.243294
0
0
1,449
0.451965
87e4656207a6810c62e813656c8a6d18731bd5ed
3,265
py
Python
Python/ldap/neo2open.py
ebouaziz/miscripts
9520d31adfd8cf63a06d519b0c308f07dd107b90
[ "MIT" ]
null
null
null
Python/ldap/neo2open.py
ebouaziz/miscripts
9520d31adfd8cf63a06d519b0c308f07dd107b90
[ "MIT" ]
null
null
null
Python/ldap/neo2open.py
ebouaziz/miscripts
9520d31adfd8cf63a06d519b0c308f07dd107b90
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Create/update LDAP entries from custom directory to opendirectory schema import binascii import os import re import sys cmtcre = re.compile(r'#.*$') try: filename = sys.argv[1] except IndexError: filename = os.path.join(os.path.expanduser('~'), 'Desktop', 'openldap.ldif') def get_us...
32.326733
80
0.488821
0
0
1,350
0.413476
0
0
0
0
618
0.18928
87e4b92785c35afe3fe916f48cd07afc7baed2fa
33
py
Python
pyble/const/characteristic/time_with_dst.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
14
2015-03-30T23:11:36.000Z
2020-04-07T00:57:12.000Z
pyble/const/characteristic/time_with_dst.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
3
2016-05-17T06:11:07.000Z
2017-05-15T16:43:09.000Z
pyble/const/characteristic/time_with_dst.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
11
2016-03-11T08:53:03.000Z
2019-03-11T21:32:13.000Z
NAME="Time with DST" UUID=0x2A11
11
20
0.757576
0
0
0
0
0
0
0
0
15
0.454545
87e58bcf6dcfe22c279e06b2787f924dca81ae9f
429
py
Python
Practice Problem Solutions/5 - Lists/program.py
argosopentech/practical-programming-in-python
ae5aebcda6968ff327b6db3350840813d1c563ba
[ "CC0-1.0" ]
1
2021-01-17T17:29:36.000Z
2021-01-17T17:29:36.000Z
Practice Problem Solutions/5 - Lists/program.py
argosopentech/practical-programming-in-python
ae5aebcda6968ff327b6db3350840813d1c563ba
[ "CC0-1.0" ]
null
null
null
Practice Problem Solutions/5 - Lists/program.py
argosopentech/practical-programming-in-python
ae5aebcda6968ff327b6db3350840813d1c563ba
[ "CC0-1.0" ]
null
null
null
print('Grocery list:') print('"add" to add items and "view" to view list') grocery_list = [] while True: command = input('Enter command: ') if command == 'add': to_add = input('Enter new item: ') grocery_list.append(to_add) # elif stands for "else if" elif command == 'view': for ...
28.6
51
0.596737
0
0
0
0
0
0
0
0
149
0.347319
87e59bee00a7c9de9e64290a98d0644a47ad38c0
777
py
Python
notes.py
ahmed-mo2nis/Aida-VA
a84a2cfb9193ee821bc529eccc459c0fe942ddfc
[ "MIT" ]
null
null
null
notes.py
ahmed-mo2nis/Aida-VA
a84a2cfb9193ee821bc529eccc459c0fe942ddfc
[ "MIT" ]
null
null
null
notes.py
ahmed-mo2nis/Aida-VA
a84a2cfb9193ee821bc529eccc459c0fe942ddfc
[ "MIT" ]
null
null
null
from datetime import datetime from tts import tts def take_notes(speech_text): words_of_message = speech_text.split() words_of_message.remove("note") cleaned_message = ' '.join(words_of_message) f = open("notes.txt", "a+") f.write("'" + cleaned_message + "'" + " - note taken at: " + datetime.strfti...
29.884615
118
0.610039
0
0
0
0
0
0
0
0
242
0.311454
87ed12d5f9bc71d00ca1d48683542308a09965a9
1,813
py
Python
entity_embed/evaluation.py
TheAngryGoldfish/entity-embed
9493a9d194208a19aed5a40a3140245dbeea6b44
[ "MIT" ]
89
2021-04-06T23:07:06.000Z
2022-03-27T18:27:13.000Z
entity_embed/evaluation.py
TheAngryGoldfish/entity-embed
9493a9d194208a19aed5a40a3140245dbeea6b44
[ "MIT" ]
7
2021-04-13T18:51:43.000Z
2022-01-25T12:39:22.000Z
entity_embed/evaluation.py
TheAngryGoldfish/entity-embed
9493a9d194208a19aed5a40a3140245dbeea6b44
[ "MIT" ]
7
2021-04-21T15:08:23.000Z
2021-12-11T22:41:17.000Z
import csv import json def pair_entity_ratio(found_pair_set_len, entity_count): return found_pair_set_len / entity_count def precision_and_recall(found_pair_set, pos_pair_set, neg_pair_set=None): # if a neg_pair_set is provided, # consider the "universe" to be only the what's inside pos_pair_set and neg...
32.375
94
0.710976
0
0
0
0
0
0
0
0
187
0.103144
87ed2b0b13d4a75ac2bea0089d5ba5a31824d2a7
5,084
py
Python
src/replication.py
RipcordSoftware/avancedb-replication-monitor
bfa59cc36f5d8aa383a43ffeb6c82e938625ce34
[ "MIT" ]
8
2016-03-01T15:29:34.000Z
2019-06-16T21:15:45.000Z
src/replication.py
RipcordSoftware/avancedb-replication-monitor
bfa59cc36f5d8aa383a43ffeb6c82e938625ce34
[ "MIT" ]
38
2015-12-27T20:34:25.000Z
2016-02-19T15:48:12.000Z
src/replication.py
RipcordSoftware/replication-monitor
bfa59cc36f5d8aa383a43ffeb6c82e938625ce34
[ "MIT" ]
null
null
null
from enum import Enum from urllib.parse import urlparse from src.couchdb import CouchDB class Replication: _RETRY_LIMIT = 3 class ReplType(Enum): All = 1 Docs = 2 Designs = 3 def __init__(self, model, source, target, continuous=False, create=False, drop_first=False, repl_type=Re...
32.589744
120
0.633753
4,992
0.981904
0
0
964
0.189614
0
0
351
0.06904
87eef1718dbdf89a820e95d72c449d6bdaa14af5
11,001
py
Python
networks/isomera.py
andrewcpotter/holopy
e7eed9e2bdb0de61610c4d8c3455fcd00b76d896
[ "MIT" ]
1
2021-04-09T14:05:46.000Z
2021-04-09T14:05:46.000Z
networks/isomera.py
andrewcpotter/holopy
e7eed9e2bdb0de61610c4d8c3455fcd00b76d896
[ "MIT" ]
null
null
null
networks/isomera.py
andrewcpotter/holopy
e7eed9e2bdb0de61610c4d8c3455fcd00b76d896
[ "MIT" ]
2
2021-02-11T18:11:11.000Z
2021-08-29T23:40:24.000Z
#!/usr/bin/env python # coding: utf-8 #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Jan 5 2021 @author: Yuxuan Zhang based on the Iso-MPS codes """ #%% -- IMPORTS -- import sys sys.path.append("..") # import one subdirectory up in files # external packages import numpy as np import qiskit as qk import...
42.311538
172
0.533588
10,521
0.956368
0
0
0
0
0
0
5,099
0.463503
87ef94f2c86df3d553a5caae350054034bea8251
2,553
py
Python
custom_components/docker_monitor/switch.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/docker_monitor/switch.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/docker_monitor/switch.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
''' Docker Monitor component For more details about this component, please refer to the documentation at https://github.com/aneisch/docker_monitor ''' import logging from homeassistant.components.switch import ( ENTITY_ID_FORMAT, PLATFORM_SCHEMA, SwitchDevice ) from homeassistant.const import ( ATTR_A...
24.548077
77
0.657658
1,309
0.51273
0
0
436
0.170779
0
0
348
0.13631
87f03243de75a73d47a72950b4975d8c48a99186
23,240
py
Python
packages/simcore-sdk/tests/unit/test_node_ports_v2_port.py
Surfict/osparc-simcore
1e0b89574ec17ecb089674f9e5daa83d624430c8
[ "MIT" ]
null
null
null
packages/simcore-sdk/tests/unit/test_node_ports_v2_port.py
Surfict/osparc-simcore
1e0b89574ec17ecb089674f9e5daa83d624430c8
[ "MIT" ]
16
2021-10-04T20:31:52.000Z
2022-03-14T04:31:25.000Z
packages/simcore-sdk/tests/unit/test_node_ports_v2_port.py
Surfict/osparc-simcore
1e0b89574ec17ecb089674f9e5daa83d624430c8
[ "MIT" ]
null
null
null
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name # pylint:disable=no-member # pylint:disable=protected-access # pylint:disable=too-many-arguments import re import shutil import tempfile import threading from collections import namedtuple from pathlib import Path ...
34.947368
128
0.549871
703
0.03025
896
0.038554
21,358
0.919019
4,469
0.192298
5,607
0.241265
87f0863e9a634ae8445629a68e19dd2fc1288602
1,282
py
Python
utilities_common/platform_sfputil_helper.py
deran1980/sonic-utilities
a6ae218238e7e552f49191f81451bd55ff56ba51
[ "Apache-2.0" ]
null
null
null
utilities_common/platform_sfputil_helper.py
deran1980/sonic-utilities
a6ae218238e7e552f49191f81451bd55ff56ba51
[ "Apache-2.0" ]
4
2020-04-17T06:53:05.000Z
2020-12-01T02:37:34.000Z
utilities_common/platform_sfputil_helper.py
deran1980/sonic-utilities
a6ae218238e7e552f49191f81451bd55ff56ba51
[ "Apache-2.0" ]
null
null
null
import sys import click from sonic_py_common import multi_asic, device_info platform_sfputil = None def load_platform_sfputil(): global platform_sfputil try: import sonic_platform_base.sonic_sfp.sfputilhelper platform_sfputil = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper() ...
32.05
99
0.713729
0
0
0
0
0
0
0
0
281
0.219189
87f14b098265544dbf022e3f54455436deb0ad4b
24
py
Python
structures/tree/__init__.py
spencerpomme/pyalgolib
d055287caa4a779ea833c7efc305cd4f966bd841
[ "MIT" ]
null
null
null
structures/tree/__init__.py
spencerpomme/pyalgolib
d055287caa4a779ea833c7efc305cd4f966bd841
[ "MIT" ]
null
null
null
structures/tree/__init__.py
spencerpomme/pyalgolib
d055287caa4a779ea833c7efc305cd4f966bd841
[ "MIT" ]
null
null
null
# data structure module
12
23
0.791667
0
0
0
0
0
0
0
0
23
0.958333
87f27b1f15ae50f75fc47c17a7b0976a09fb4c5a
5,227
py
Python
geco/mips/loading/miplib.py
FreestyleBuild/GeCO
6db1a549b3145b3bc5d3025a9bccc03be6575564
[ "MIT" ]
8
2020-12-16T09:59:05.000Z
2022-03-18T09:48:43.000Z
geco/mips/loading/miplib.py
FreestyleBuild/GeCO
6db1a549b3145b3bc5d3025a9bccc03be6575564
[ "MIT" ]
101
2020-11-09T10:20:03.000Z
2022-03-24T13:50:06.000Z
geco/mips/loading/miplib.py
FreestyleBuild/GeCO
6db1a549b3145b3bc5d3025a9bccc03be6575564
[ "MIT" ]
3
2021-04-06T13:26:03.000Z
2022-03-22T13:22:16.000Z
import tempfile from urllib.request import urlretrieve, urlopen from urllib.error import URLError import pyscipopt as scip import os import pandas as pd class Loader: def __init__(self, persistent_directory=None): """ Initializes the MIPLIB loader object Parameters ---------- ...
33.50641
98
0.639755
3,887
0.743639
1,169
0.223646
884
0.169122
0
0
1,540
0.294624
87f3786df52a1d8399072312a80407b63e5e8a0e
40,723
py
Python
plugin.py
uwsbel/blenderPlugin
beeab9850c4cc2ea6a3f514ce958a5a153c38f95
[ "BSD-3-Clause" ]
3
2015-08-24T20:34:33.000Z
2021-01-03T10:49:33.000Z
plugin.py
uwsbel/blenderPlugin
beeab9850c4cc2ea6a3f514ce958a5a153c38f95
[ "BSD-3-Clause" ]
null
null
null
plugin.py
uwsbel/blenderPlugin
beeab9850c4cc2ea6a3f514ce958a5a153c38f95
[ "BSD-3-Clause" ]
null
null
null
/******************************************************* * Copyright (C) 2013-2014 Daniel Kaczmarek <dankaczma@gmail.com>, Simulation Based Engineering Lab <sbel.wisc.edu> * Some rights reserved. See LICENSE * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file at the top...
44.12026
438
0.550107
0
0
0
0
0
0
0
0
10,077
0.247452
87f3890301da3f9632807a211a2f02d6a412d63c
22,139
py
Python
datasets.py
perwin/s4g_barsizes
08da334090141c68b008d63b2fa52ee5ef7e7937
[ "BSD-3-Clause" ]
2
2020-04-04T19:46:59.000Z
2020-04-05T03:00:09.000Z
datasets.py
perwin/s4g_barsizes
08da334090141c68b008d63b2fa52ee5ef7e7937
[ "BSD-3-Clause" ]
null
null
null
datasets.py
perwin/s4g_barsizes
08da334090141c68b008d63b2fa52ee5ef7e7937
[ "BSD-3-Clause" ]
1
2019-11-04T11:39:23.000Z
2019-11-04T11:39:23.000Z
# Python code for assembling S$G-based local bar-size and fraction dataset # # ListDataFrame with # name, M_star, B-V_tc, g-r_tc, a_max_obs[arcsec, kpc], amax_dp[arcsec, kpc], distance, # distance_source, inclination # distance_source = direct (Cepheids, SBF, TRGB, etc), T-F, redshift # # Two separate datasets...
36.533003
239
0.705497
0
0
0
0
0
0
0
0
8,184
0.369664
87f41b6fabb95ec9e8a6026c4b7ef4ad3d3ed5cb
2,166
py
Python
Oled.py
Ths2-9Y-LqJt6/cattmate
42e59b35f37f21546bed60d0e1886795ac1e7c0c
[ "MIT" ]
1
2022-01-28T17:18:26.000Z
2022-01-28T17:18:26.000Z
Oled.py
mrjones-plip/cattmate
42e59b35f37f21546bed60d0e1886795ac1e7c0c
[ "MIT" ]
5
2019-12-10T21:04:33.000Z
2019-12-16T21:41:52.000Z
Oled.py
mrjones-plip/cattmate
42e59b35f37f21546bed60d0e1886795ac1e7c0c
[ "MIT" ]
null
null
null
#!/usr/bin/python import Adafruit_SSD1306 import os from retrying import retry from PIL import Image, ImageDraw, ImageFont class Oled: def __init__(self, display_bus, font_size): # declare member variables self.draw = None self.font = None self.disp = None self.width = Non...
30.507042
87
0.60711
2,040
0.941828
0
0
516
0.238227
0
0
665
0.307018
87f4710e0d278ffa4b65cd1fdbf57b6e8ed23f91
7,180
py
Python
ArtGAN/data/ingest_stl10.py
rh01/caffe-model-for-category-artgan
911b8fb44c62e8a2c71396099194d8925ed7c826
[ "BSD-3-Clause" ]
304
2018-07-17T00:18:54.000Z
2022-03-31T22:26:42.000Z
ArtGAN/data/ingest_stl10.py
cs-chan/Artwork-Synthesis-Classification
ad9cd090c669ca636f6c048d97608092d52dd3e0
[ "BSD-3-Clause" ]
9
2018-10-16T14:42:51.000Z
2022-01-13T11:22:02.000Z
ArtGAN/data/ingest_stl10.py
cs-chan/Artwork-Synthesis-Classification
ad9cd090c669ca636f6c048d97608092d52dd3e0
[ "BSD-3-Clause" ]
57
2018-07-19T02:38:29.000Z
2022-03-17T11:12:17.000Z
from configargparse import ArgParser from PIL import Image import logging import numpy as np import os def transform_and_save(img_arr, output_filename): """ Takes an image and optionally transforms it and then writes it out to output_filename """ img = Image.fromarray(img_arr) img.save(output_file...
38.810811
126
0.59429
5,880
0.818942
0
0
0
0
0
0
1,147
0.159749
87f4e0add218b91c8358380aec15e53a0b7ec2cc
615
py
Python
working_example/python/hello_serverless/lambda/create.py
darko-mesaros/workshop-serverless-with-cdk
bbfd30de43d01251565c019a8ac259706bd6f1d0
[ "MIT" ]
33
2020-08-12T08:08:08.000Z
2022-03-20T20:32:18.000Z
working_example/python/hello_serverless/lambda/create.py
darko-mesaros/workshop-serverless-with-cdk
bbfd30de43d01251565c019a8ac259706bd6f1d0
[ "MIT" ]
2
2020-08-12T09:54:53.000Z
2020-08-12T13:37:22.000Z
working_example/python/hello_serverless/lambda/create.py
darko-mesaros/workshop-serverless-with-cdk
bbfd30de43d01251565c019a8ac259706bd6f1d0
[ "MIT" ]
17
2020-08-12T08:09:46.000Z
2021-07-18T19:52:50.000Z
import os import json import boto3 def handler(event, context): table = os.environ.get('table') dynamodb = boto3.client('dynamodb') item = { "name":{'S':event["queryStringParameters"]["name"]}, "location":{'S':event["queryStringParameters"]["location"]}, "age":{'S':even...
24.6
72
0.564228
0
0
0
0
0
0
0
0
192
0.312195
87f74a05f4408addae7f347f4c814a7bd1356155
13,528
py
Python
pypeit/spectrographs/gemini_flamingos.py
ykwang1/PypeIt
a96cff699f1284905ce7ef19d06a9027cd333c63
[ "BSD-3-Clause" ]
null
null
null
pypeit/spectrographs/gemini_flamingos.py
ykwang1/PypeIt
a96cff699f1284905ce7ef19d06a9027cd333c63
[ "BSD-3-Clause" ]
null
null
null
pypeit/spectrographs/gemini_flamingos.py
ykwang1/PypeIt
a96cff699f1284905ce7ef19d06a9027cd333c63
[ "BSD-3-Clause" ]
null
null
null
""" Module for Gemini FLAMINGOS. .. include:: ../include/links.rst """ import os from pkg_resources import resource_filename from IPython import embed import numpy as np from pypeit import msgs from pypeit import telescopes from pypeit.core import framematch from pypeit.images import detector_container from pypeit....
39.325581
86
0.572664
13,164
0.973093
0
0
4,562
0.337226
0
0
7,311
0.540435
87f770b1768d8e4d055b07b5c891b13729c6f2ab
2,266
py
Python
tests/test_scene.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
4
2018-11-19T13:34:53.000Z
2020-01-11T11:58:13.000Z
tests/test_scene.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
null
null
null
tests/test_scene.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
3
2019-04-14T18:13:33.000Z
2021-04-05T14:45:56.000Z
import numpy as np from mllearn.problem_transform import BinaryRelevance from mllearn.problem_transform import CalibratedLabelRanking from mllearn.problem_transform import ClassifierChain from mllearn.problem_transform import RandomKLabelsets from mllearn.alg_adapt import MLKNN from mllearn.alg_adapt import MLDecisionT...
41.962963
93
0.789497
0
0
0
0
0
0
0
0
663
0.292586
87f779c5a2c7a99fdb8f61360480f8c96b502a7e
8,713
py
Python
scripts/Steamwatcher.py
nicovanbentum/Utility-Scripts
bf2934058388138ea21ec368b48f9e1ad6864704
[ "MIT" ]
null
null
null
scripts/Steamwatcher.py
nicovanbentum/Utility-Scripts
bf2934058388138ea21ec368b48f9e1ad6864704
[ "MIT" ]
1
2021-10-12T23:07:00.000Z
2021-10-12T23:07:00.000Z
scripts/Steamwatcher.py
nicovanbentum/Utility-Scripts
bf2934058388138ea21ec368b48f9e1ad6864704
[ "MIT" ]
null
null
null
""" This Python modules describes an application that checks for active steam downloads and shuts down the computer when they are all finished. """ import os import signal import threading import subprocess import winreg as reg import tkinter as tk import tkinter.filedialog import tkinter.messagebox import tkinter.scr...
33.771318
87
0.580627
8,262
0.948238
0
0
0
0
0
0
1,635
0.187651
87f916d84fbb3ebf66d1daf924621a5103749784
1,200
py
Python
mywebsite.py
jzorrof/my_website
3e0d31e5c4d981dd2116c9f7048aa3f111815ff7
[ "Apache-2.0" ]
null
null
null
mywebsite.py
jzorrof/my_website
3e0d31e5c4d981dd2116c9f7048aa3f111815ff7
[ "Apache-2.0" ]
null
null
null
mywebsite.py
jzorrof/my_website
3e0d31e5c4d981dd2116c9f7048aa3f111815ff7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Fanzhong' from flask import Flask, render_template from boto.s3.connection import S3Connection from boto.s3.key import Key import json app = Flask(__name__) ''' This is my website index I'll create my website from now data: 2015.04.10 ''' def get_from_s3(): conn = S3Connectio...
27.906977
91
0.660833
0
0
0
0
568
0.473333
0
0
381
0.3175
87fa240a88f3abeac45e080706b9c6859a916e21
14,483
py
Python
tests/neptune/new/internal/backends/test_neptune_backend_mock.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
13
2019-02-11T13:18:38.000Z
2019-12-26T06:26:07.000Z
tests/neptune/new/internal/backends/test_neptune_backend_mock.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
39
2019-03-07T13:40:10.000Z
2020-01-07T17:19:24.000Z
tests/neptune/new/internal/backends/test_neptune_backend_mock.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
4
2019-02-11T13:07:23.000Z
2019-11-26T08:20:24.000Z
# # Copyright (c) 2020, Neptune Labs Sp. z o.o. # # 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...
38.724599
99
0.501623
13,082
0.903266
0
0
0
0
0
0
1,589
0.109715
87fb11d641ea2166f5e03d1848db017c1904d410
1,725
py
Python
rasp/device/regressor_device.py
CreeperLin/RASP
c45f9ad57b18d92b663419538562d511149c329f
[ "MIT" ]
1
2021-07-20T14:56:58.000Z
2021-07-20T14:56:58.000Z
rasp/device/regressor_device.py
CreeperLin/RASP
c45f9ad57b18d92b663419538562d511149c329f
[ "MIT" ]
null
null
null
rasp/device/regressor_device.py
CreeperLin/RASP
c45f9ad57b18d92b663419538562d511149c329f
[ "MIT" ]
2
2020-04-21T06:49:04.000Z
2021-07-20T14:57:06.000Z
from ..utils.reporter import report class RegressorDevice(): tape = [] regressor = None @staticmethod def init(regressor): RegressorDevice.tape = [] RegressorDevice.regressor = regressor @staticmethod def reset(): RegressorDevice.tape = [] @staticmethod def a...
27.380952
81
0.672464
1,132
0.656232
0
0
1,043
0.604638
0
0
0
0
87fbec4be50353beb91a6993ffce8b10edc30d98
679
py
Python
cctbx_website/run_tests.py
dwpaley/cctbx_project
476428363d260126319e82aa24d1e79b6474d877
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx_website/run_tests.py
dwpaley/cctbx_project
476428363d260126319e82aa24d1e79b6474d877
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx_website/run_tests.py
dwpaley/cctbx_project
476428363d260126319e82aa24d1e79b6474d877
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function from libtbx import test_utils import libtbx.load_env #tst_list = [ # "$D/regression/tst_py_from_html.py" # ] tst_list = [ "$D/regression/tst_1_template.py", "$D/regression/tst_2_doc_high_level_objects.py", "$D/regression/tst_3_doc_model_manager....
25.148148
64
0.755523
0
0
0
0
0
0
0
0
344
0.506627
87fd884af907e9e970ccc13cfcca8085d841d1bd
1,520
py
Python
python/tlbm/wavy_channel/wavy_channel_generator.py
stu314159/HPC_Introduction_with_LBM
cbba81460513166b4814f3028807020be9b5c234
[ "MIT" ]
null
null
null
python/tlbm/wavy_channel/wavy_channel_generator.py
stu314159/HPC_Introduction_with_LBM
cbba81460513166b4814f3028807020be9b5c234
[ "MIT" ]
null
null
null
python/tlbm/wavy_channel/wavy_channel_generator.py
stu314159/HPC_Introduction_with_LBM
cbba81460513166b4814f3028807020be9b5c234
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 7 08:53:18 2021 @author: sblair """ import numpy as np import scipy.integrate as integrate from scipy.optimize import fsolve import matplotlib.pyplot as plt L_hx = 30; # cm, length of the heat exchanger nX = 100; # number of points in the x-dire...
19.74026
72
0.6375
0
0
0
0
0
0
0
0
536
0.352632
87fed2a33ced4e90675329ce32e82137ec7dfcce
3,355
py
Python
tests/client/test_decoders.py
timgates42/apistar
2edeb6946af3562c6310fcd6db393d3960152f32
[ "BSD-3-Clause" ]
4,284
2017-08-16T15:10:03.000Z
2022-03-23T23:16:35.000Z
tests/client/test_decoders.py
timgates42/apistar
2edeb6946af3562c6310fcd6db393d3960152f32
[ "BSD-3-Clause" ]
405
2017-08-16T20:45:55.000Z
2022-02-24T05:03:01.000Z
tests/client/test_decoders.py
timgates42/apistar
2edeb6946af3562c6310fcd6db393d3960152f32
[ "BSD-3-Clause" ]
452
2017-08-17T04:44:30.000Z
2022-03-15T16:50:22.000Z
import os from starlette.applications import Starlette from starlette.responses import PlainTextResponse, Response from starlette.testclient import TestClient from apistar.client import Client, decoders app = Starlette() @app.route("/text-response/") def text_response(request): return PlainTextResponse("hello,...
31.35514
84
0.665574
0
0
0
0
968
0.288525
0
0
1,144
0.340984
e20165267f4b4a5c094fd275f94d49afce2cec55
2,834
py
Python
Src/check_linguistic_info.py
rstodden/ATILF-LLF.v3
768c453fb0d28c3e237c1b22522a319c1b157c1f
[ "MIT" ]
null
null
null
Src/check_linguistic_info.py
rstodden/ATILF-LLF.v3
768c453fb0d28c3e237c1b22522a319c1b157c1f
[ "MIT" ]
null
null
null
Src/check_linguistic_info.py
rstodden/ATILF-LLF.v3
768c453fb0d28c3e237c1b22522a319c1b157c1f
[ "MIT" ]
null
null
null
import os, json from collections import Counter # test if exist and mkdir # ../Results/features/corpus_info/ # ../Results/labels for col in ["FEATS", "PARSEME:MWE", "UPOS", "XPOS", "DEPREL", "DEPS", "LEMMA"]: for file_type in ["train.cupt", "dev.cupt", "test.blind.cupt"]: counter_dict = dict() count_all = Counte...
36.805195
110
0.58151
0
0
0
0
0
0
0
0
563
0.198659
e20171e4e7c66b04f9ec33c3a6bff43dd7856257
1,403
py
Python
rex/eutil.py
dnanto/rex
88ba883765f3cb35fe17a3675dbbca65d0de832f
[ "MIT" ]
null
null
null
rex/eutil.py
dnanto/rex
88ba883765f3cb35fe17a3675dbbca65d0de832f
[ "MIT" ]
null
null
null
rex/eutil.py
dnanto/rex
88ba883765f3cb35fe17a3675dbbca65d0de832f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, FileType from Bio import Entrez from rex.util import batchify def parse_args(argv): parser = ArgumentParser(description="eutil", formatter_class=ArgumentDefaultsHelpFormatter) parser.add_argument( "eutil", def...
25.053571
92
0.707056
0
0
0
0
0
0
0
0
362
0.258019
e2030732a198280850be22b59cadf31448549da7
3,594
py
Python
src/relevancy_measures/calc_NCDG.py
dannycho7/RTP_Latest
1cb1dbd72419f9c2c61f20879b56872a9d28a3dc
[ "Apache-2.0" ]
null
null
null
src/relevancy_measures/calc_NCDG.py
dannycho7/RTP_Latest
1cb1dbd72419f9c2c61f20879b56872a9d28a3dc
[ "Apache-2.0" ]
null
null
null
src/relevancy_measures/calc_NCDG.py
dannycho7/RTP_Latest
1cb1dbd72419f9c2c61f20879b56872a9d28a3dc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import sys import argparse import math parser = argparse.ArgumentParser(description='Post-processing after labeling, please put your rating in a file with ' 'the same order as in docs.txt, one rating per line.') parser.add_argument('--doc', required=Tru...
35.584158
173
0.586533
0
0
0
0
0
0
0
0
961
0.26739
e2033f8cbe6a73bf5cc8da3c75dc093abcd8cd80
4,273
py
Python
opytimark/core/benchmark.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
3
2020-06-11T22:58:26.000Z
2021-03-15T20:12:29.000Z
opytimark/core/benchmark.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
1
2020-08-13T12:10:35.000Z
2020-08-17T14:30:45.000Z
opytimark/core/benchmark.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
null
null
null
"""Benchmark-based class. """ import opytimark.utils.exception as e class Benchmark: """A Benchmark class is the root of any benchmarking function. It is composed by several properties that defines the traits of a function, as well as a non-implemented __call__ method. """ def __init__(self, n...
24.699422
80
0.607302
4,201
0.98315
0
0
2,367
0.553943
0
0
1,888
0.441844
e20384b81ca4f4f0e6bcef7012f54531808f1314
468
py
Python
tronx/helpers/decorators.py
beastzx18/Tron
92207b841c80311e484e8f350b96f7df8a76d3b9
[ "MIT" ]
8
2021-08-22T06:43:34.000Z
2022-02-24T17:09:49.000Z
tronx/helpers/decorators.py
beastzx18/Tron
92207b841c80311e484e8f350b96f7df8a76d3b9
[ "MIT" ]
61
2021-09-12T11:05:33.000Z
2021-12-07T15:26:18.000Z
tronx/helpers/decorators.py
beastzx18/Tron
92207b841c80311e484e8f350b96f7df8a76d3b9
[ "MIT" ]
6
2021-09-08T08:43:04.000Z
2022-02-24T17:09:50.000Z
from pyrogram.types import CallbackQuery from .variables import USER_ID from pyrogram.errors import MessageNotModified def alert_user(func): async def wrapper(_, cb: CallbackQuery): if cb.from_user and not cb.from_user.id in USER_ID: await cb.answer( f"Sorry, but you can't use this userbot ! make your o...
20.347826
86
0.728632
0
0
0
0
0
0
303
0.647436
80
0.17094
e20433bc889dc0f32de713dc2c45f59d8175f0f2
481
py
Python
cachetclient/v1/__init__.py
amdemas/cachet-client
6a34ada87f99f8a3af593eefadc37a83f59827dd
[ "MIT" ]
null
null
null
cachetclient/v1/__init__.py
amdemas/cachet-client
6a34ada87f99f8a3af593eefadc37a83f59827dd
[ "MIT" ]
null
null
null
cachetclient/v1/__init__.py
amdemas/cachet-client
6a34ada87f99f8a3af593eefadc37a83f59827dd
[ "MIT" ]
null
null
null
from cachetclient.v1.client import Client # noqa from cachetclient.v1.subscribers import Subscriber # noqa from cachetclient.v1.components import Component # noqa from cachetclient.v1.component_groups import ComponentGroup # noqa from cachetclient.v1.incident_updates import IndicentUpdate # noqa from cachetclient...
40.083333
67
0.814969
0
0
0
0
0
0
0
0
55
0.114345
e20447ecbe22286bf4163b908e5eba34ac71394f
141
py
Python
documentation/admin.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
1
2017-04-27T19:35:42.000Z
2017-04-27T19:35:42.000Z
documentation/admin.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
null
null
null
documentation/admin.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin from establishment.documentation.models import DocumentationEntry admin.site.register(DocumentationEntry)
23.5
65
0.87234
0
0
0
0
0
0
0
0
0
0
e204c971bbb2c9c7ca0b1436805590f663181057
96
py
Python
libs/parsers/__init__.py
pullself/Compilers
590226d02e5291857cb3875bd1ed6315c37fc74e
[ "MIT" ]
null
null
null
libs/parsers/__init__.py
pullself/Compilers
590226d02e5291857cb3875bd1ed6315c37fc74e
[ "MIT" ]
null
null
null
libs/parsers/__init__.py
pullself/Compilers
590226d02e5291857cb3875bd1ed6315c37fc74e
[ "MIT" ]
null
null
null
import libs.parsers.parser import libs.parsers.constructor __all__ = ['parser', 'constructor']
19.2
35
0.78125
0
0
0
0
0
0
0
0
21
0.21875
e206029a10a5d9ac7e885778cd9c1b1b8647077a
3,732
py
Python
src/demo.py
FanShuixing/CenterNet
8d81281fb20ec1a98c3fd034bff957dc6ba531d8
[ "MIT" ]
null
null
null
src/demo.py
FanShuixing/CenterNet
8d81281fb20ec1a98c3fd034bff957dc6ba531d8
[ "MIT" ]
null
null
null
src/demo.py
FanShuixing/CenterNet
8d81281fb20ec1a98c3fd034bff957dc6ba531d8
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import cv2 from opts import opts from detectors.detector_factory import detector_factory import pandas as pd import json image_ext = ['jpg', 'jpeg', 'png', 'webp'] video_ext = ['...
37.32
103
0.497053
0
0
0
0
0
0
0
0
769
0.205067
e2062f6e1dd31afd24e042366439bb3f075d80bc
1,849
py
Python
example/app.py
jfwm2/gourde
ac338a76d009470159c365ff64c214a578b0f3e9
[ "Apache-2.0" ]
6
2018-03-30T13:43:14.000Z
2021-03-09T12:12:54.000Z
example/app.py
jfwm2/gourde
ac338a76d009470159c365ff64c214a578b0f3e9
[ "Apache-2.0" ]
22
2018-04-18T10:54:28.000Z
2019-11-18T08:24:47.000Z
example/app.py
jfwm2/gourde
ac338a76d009470159c365ff64c214a578b0f3e9
[ "Apache-2.0" ]
8
2018-04-18T10:50:23.000Z
2022-01-21T03:32:03.000Z
#!/usr/bin/env python """Gourde example.""" import argparse import flask from gourde import Gourde # Optional API. try: import flask_restplus except ImportError: flask_restplus = None class Error(Exception): """All local errors.""" pass # This could be as simple as : # gourde = Gourde(app) # app...
17.12037
67
0.666306
165
0.089237
0
0
161
0.087074
0
0
583
0.315306
e20721a05bdc5f184d3fae8e26cffd96f9a854af
4,963
py
Python
precise/skatervaluation/battlecode/arrangingbattles.py
OVVO-Financial/precise
ce744cadfca18f4ab77c68cc27bf8d712561127f
[ "MIT" ]
null
null
null
precise/skatervaluation/battlecode/arrangingbattles.py
OVVO-Financial/precise
ce744cadfca18f4ab77c68cc27bf8d712561127f
[ "MIT" ]
null
null
null
precise/skatervaluation/battlecode/arrangingbattles.py
OVVO-Financial/precise
ce744cadfca18f4ab77c68cc27bf8d712561127f
[ "MIT" ]
null
null
null
from precise.skaters.covariance.allcovskaters import ALL_D0_SKATERS from precise.skaters.covarianceutil.likelihood import cov_skater_loglikelihood from uuid import uuid4 import os import json import pathlib from pprint import pprint import traceback from collections import Counter from momentum.functions import rvar fr...
32.651316
128
0.557929
0
0
0
0
0
0
0
0
678
0.136611
e20a03cd63ed875b87f6b377a2d00238a2c57de9
7,995
py
Python
src/PCMF/Positive_CMF.py
N-YS-KK/PCMF
b85959aa4dcfc490ea06066d77c9a79dce016859
[ "MIT" ]
3
2021-08-11T03:02:38.000Z
2022-02-17T01:35:04.000Z
src/PCMF/Positive_CMF.py
N-YS-KK/PCMF
b85959aa4dcfc490ea06066d77c9a79dce016859
[ "MIT" ]
null
null
null
src/PCMF/Positive_CMF.py
N-YS-KK/PCMF
b85959aa4dcfc490ea06066d77c9a79dce016859
[ "MIT" ]
1
2021-08-07T11:28:57.000Z
2021-08-07T11:28:57.000Z
import numpy as np import tensorflow as tf class Positive_Collective_Matrix_Factorization: """ Our proposed model PCMF. Attributes ---------- X : numpy.ndarray Y : numpy.ndarray alpha : int Y weight of loss function. d_hidden : int Number of potential topics. ...
31.476378
111
0.507817
7,963
0.994505
0
0
0
0
0
0
3,783
0.472462
e20a8d95b63861ccc768d4ea908159a54c8a95bd
447
py
Python
UniquePaths.py
pauloadaoag/leetcode
6e6078ab237b2c912b9e0806a0bdf731fd2204e9
[ "MIT" ]
null
null
null
UniquePaths.py
pauloadaoag/leetcode
6e6078ab237b2c912b9e0806a0bdf731fd2204e9
[ "MIT" ]
null
null
null
UniquePaths.py
pauloadaoag/leetcode
6e6078ab237b2c912b9e0806a0bdf731fd2204e9
[ "MIT" ]
null
null
null
class Solution: # @return an integer def uniquePaths(self, m, n): if ((m == 0) or (n == 0)): return 0 if (n > m): return self.uniquePaths(n, m) row = [1] * m for i in range(1, n): # print row r2 = [1] last = 1 ...
22.35
39
0.39821
446
0.997763
0
0
0
0
0
0
31
0.069351
e20aae6a3c7bc628ede1c78033fd0f2eaf838cb5
5,080
py
Python
Spider/ScanningSpider/spiders/CVEDetails.py
halftion/discern
f304b0557aa0c7293566ced9075d9ff9365ea424
[ "BSD-3-Clause" ]
7
2021-04-20T14:06:28.000Z
2022-01-25T16:25:29.000Z
Spider/ScanningSpider/spiders/CVEDetails.py
halftion/discern
f304b0557aa0c7293566ced9075d9ff9365ea424
[ "BSD-3-Clause" ]
1
2021-11-08T02:44:17.000Z
2021-11-08T02:44:17.000Z
Spider/ScanningSpider/spiders/CVEDetails.py
halftion/discern
f304b0557aa0c7293566ced9075d9ff9365ea424
[ "BSD-3-Clause" ]
8
2021-02-22T01:42:46.000Z
2022-01-25T12:53:26.000Z
import re import scrapy import util from ScanningSpider.items import CVEItem from ScanningSpider.items import CVEDetailItem class CVEDetails(scrapy.Spider): name = "cve_detail" allowed_domains = ['cvedetails.com'] base_url = 'https://www.cvedetails.com/vulnerability-list/year-' baer_detail_url = "https...
68.648649
162
0.576969
5,105
0.976099
4,696
0.897897
0
0
0
0
2,316
0.44283
e20d9cffb20687d16b9b32885b1c7eab97057a0f
21,383
py
Python
dep/scm.py
harveyt/dep
5a52fda5ce75033c240c52fd98d3ffde99ed6617
[ "MIT" ]
null
null
null
dep/scm.py
harveyt/dep
5a52fda5ce75033c240c52fd98d3ffde99ed6617
[ "MIT" ]
null
null
null
dep/scm.py
harveyt/dep
5a52fda5ce75033c240c52fd98d3ffde99ed6617
[ "MIT" ]
null
null
null
# # Source Code Management # ====================== # # %%LICENSE%% # import os import re from dep import opts from dep.helpers import * class Repository: def __init__(self, work_dir, url, vcs, name): self.work_dir = work_dir self.url = url self.vcs = vcs self.name = name se...
38.389587
127
0.582191
21,240
0.993312
0
0
1,674
0.078286
0
0
4,338
0.202871
e20dfc2a207d87cb746506a4b2801706084ee98d
966
py
Python
env/Lib/site-packages/promise/compat.py
nerdyator/graphene-django-cookbook
e19aec7a6e910898558b16e910c7392b0b219390
[ "MIT" ]
2
2019-01-07T07:11:05.000Z
2019-11-10T18:08:40.000Z
env/Lib/site-packages/promise/compat.py
nerdyator/graphene-django-cookbook
e19aec7a6e910898558b16e910c7392b0b219390
[ "MIT" ]
null
null
null
env/Lib/site-packages/promise/compat.py
nerdyator/graphene-django-cookbook
e19aec7a6e910898558b16e910c7392b0b219390
[ "MIT" ]
2
2017-10-18T14:12:35.000Z
2020-03-24T06:01:23.000Z
try: from asyncio import Future, iscoroutine, ensure_future # type: ignore except ImportError: class Future: # type: ignore def __init__(self): raise Exception("You need asyncio for using Futures") def set_result(self): raise Exception("You need asyncio for using Fut...
28.411765
74
0.668737
321
0.332298
0
0
0
0
0
0
321
0.332298
e20e1a653bf9813e2805ad343ed123d0380ed481
3,579
py
Python
examples/run_flexible_building_optimal_operation.py
sonercandas/fledge
ac107df1236d898ea31f62a60a568cf00a9bda08
[ "MIT" ]
2
2020-05-25T03:06:55.000Z
2020-09-30T11:14:27.000Z
examples/run_flexible_building_optimal_operation.py
sonercandas/fledge
ac107df1236d898ea31f62a60a568cf00a9bda08
[ "MIT" ]
null
null
null
examples/run_flexible_building_optimal_operation.py
sonercandas/fledge
ac107df1236d898ea31f62a60a568cf00a9bda08
[ "MIT" ]
null
null
null
"""Example script for setting up and solving a flexible building optimal operation problem.""" import matplotlib.pyplot as plt import numpy as np import pandas as pd import pyomo.environ as pyo import fledge.config import fledge.database_interface import fledge.der_models import fledge.electric_grid_models import fle...
35.435644
125
0.734283
0
0
0
0
0
0
0
0
965
0.269628
e20e70f3f6889113f4850d284104c41e6354001c
1,307
py
Python
Searching_and_Recursion_Model_project/07_csSearchRotatedSortedArray.py
sarahmarie1976/CSPT15_DS_ALGO_SEARCH_RECURSION_GP
68e0bb01e54727cbc629bf1041190a02724f0d0d
[ "MIT" ]
null
null
null
Searching_and_Recursion_Model_project/07_csSearchRotatedSortedArray.py
sarahmarie1976/CSPT15_DS_ALGO_SEARCH_RECURSION_GP
68e0bb01e54727cbc629bf1041190a02724f0d0d
[ "MIT" ]
null
null
null
Searching_and_Recursion_Model_project/07_csSearchRotatedSortedArray.py
sarahmarie1976/CSPT15_DS_ALGO_SEARCH_RECURSION_GP
68e0bb01e54727cbc629bf1041190a02724f0d0d
[ "MIT" ]
null
null
null
""" For a given positive integer n determine if it can be represented as a sum of two Fibonacci numbers (possibly equal). Example For n = 1, the output should be fibonacciSimpleSum2(n) = true. Explanation: 1 = 0 + 1 = F0 + F1. For n = 11, the output should be fibonacciSimpleSum2(n) = true. Explanation: 11 = 3 + 8 ...
22.534483
117
0.553175
0
0
0
0
0
0
0
0
711
0.541921
e20f893f4ebed523aabfdbe3b19d3e3678100a96
1,291
py
Python
2020/day_09/day09.py
d02d33pak/Advent-Of-Code
765b0302c256ad61864095a537a3f6379901b1c2
[ "MIT" ]
null
null
null
2020/day_09/day09.py
d02d33pak/Advent-Of-Code
765b0302c256ad61864095a537a3f6379901b1c2
[ "MIT" ]
null
null
null
2020/day_09/day09.py
d02d33pak/Advent-Of-Code
765b0302c256ad61864095a537a3f6379901b1c2
[ "MIT" ]
null
null
null
""" Advent of Code : Day 09 """ from os import path def parse_input(filename): """ Parse input file values """ script_dir = path.dirname(__file__) file_path = path.join(script_dir, filename) with open(file_path, "r") as file: val = list(map(int, file.read().splitlines())) return val d...
20.492063
62
0.569326
0
0
0
0
0
0
0
0
172
0.13323
e2101c00fb0005b243b277050e3c456984d8e6cc
1,746
py
Python
companies/migrations/0003_auto_20210221_1537.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
companies/migrations/0003_auto_20210221_1537.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
companies/migrations/0003_auto_20210221_1537.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-21 13:37 import companies.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('companies', '0002_auto_20210221_1408'), ] operations = [ migrations.CreateModel( name='Email', ...
35.632653
132
0.563574
1,682
0.93289
0
0
0
0
0
0
441
0.244592
e2103297434d37fcf54c7a0433384b0abc0f2a63
1,622
py
Python
Problemset/longest-palindromic-substring/longest-palindromic-substring.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/longest-palindromic-substring/longest-palindromic-substring.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/longest-palindromic-substring/longest-palindromic-substring.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: 最长回文子串 (Longest Palindromic Substring) # @Author: KivenC # @Date: 2019-06-12 15:25:33 # @Runtime: 136 ms # @Memory: 13.1 MB class Solution: def longestPalindrome(self, s: str) -> str: # # way 1 # # 从回文串的中心向两边扩展,O(n^2) # # 分奇数串和偶数串 # if len(s) < 2: # return s ...
33.102041
97
0.421085
1,543
0.911939
0
0
0
0
0
0
950
0.561466
e2115b0532e79c3a412eaca3018e8b49164b6980
1,176
py
Python
Tools/SystemDebug/python/tca.py
tomlenth/oneAPI-samples
67df7461a8484a6b928f41158e9b7f9c38eef7bd
[ "MIT" ]
1
2020-12-07T22:50:13.000Z
2020-12-07T22:50:13.000Z
Tools/SystemDebug/python/tca.py
tomlenth/oneAPI-samples
67df7461a8484a6b928f41158e9b7f9c38eef7bd
[ "MIT" ]
1
2020-08-24T19:09:28.000Z
2020-08-24T19:09:28.000Z
Tools/SystemDebug/python/tca.py
tomlenth/oneAPI-samples
67df7461a8484a6b928f41158e9b7f9c38eef7bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' ============================================================== Copyright © 2019 Intel Corporation SPDX-License-Identifier: MIT ============================================================== ''' import intel.tca as tca target = tca.get_target(id="whl_u_cnp_lp") components = [(c.component,...
30.153846
71
0.684524
0
0
0
0
0
0
0
0
258
0.219201
e212dd1d544f98d4df805c27386f3ef17f1c4a1e
1,570
py
Python
src/tests/assembly/structured_config/assembled_config/test_assembled_config.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
5
2022-01-10T20:22:17.000Z
2022-01-21T20:14:17.000Z
src/tests/assembly/structured_config/assembled_config/test_assembled_config.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
src/tests/assembly/structured_config/assembled_config/test_assembled_config.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2022 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import pathlib import subprocess import sys from run_assembly import run_product_assembly def main(): parser = argparse.ArgumentParser(...
29.074074
92
0.649682
0
0
0
0
0
0
0
0
550
0.350318
e2136cfd1dbd979eb4930b72b614fe5fadbbe82e
7,388
py
Python
vaas-app/src/vaas/manager/api.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
251
2015-09-02T10:50:51.000Z
2022-03-16T08:00:35.000Z
vaas-app/src/vaas/manager/api.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
154
2015-09-02T14:54:08.000Z
2022-03-16T08:34:17.000Z
vaas-app/src/vaas/manager/api.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
31
2015-09-03T07:51:05.000Z
2020-09-24T09:02:40.000Z
# -*- coding: utf-8 -*- import logging from celery.result import AsyncResult from tastypie.resources import ModelResource, ALL_WITH_RELATIONS, Resource from tastypie import fields from tastypie.fields import ListField from tastypie.authentication import ApiKeyAuthentication, MultiAuthentication, SessionAuthentication...
38.279793
112
0.662426
6,472
0.876015
0
0
0
0
0
0
918
0.124256
e213fa9b060bf34620b9e001f44b9f1d8d1ad80f
331
py
Python
Examples/StackImgExample.py
Mohak-CODING-HEAVEN/CVPRO
09a2cb4a428738c9e77f17b71469d55eff5e3699
[ "MIT" ]
5
2021-07-24T18:20:11.000Z
2022-03-23T09:58:27.000Z
Examples/StackImgExample.py
Mohak-CODING-HEAVEN/cvpro
09a2cb4a428738c9e77f17b71469d55eff5e3699
[ "MIT" ]
null
null
null
Examples/StackImgExample.py
Mohak-CODING-HEAVEN/cvpro
09a2cb4a428738c9e77f17b71469d55eff5e3699
[ "MIT" ]
null
null
null
from cvpro import stackImages import cv2 cap = cv2.VideoCapture(0) while True: success, img = cap.read() imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgList = [img, img, imgGray, img, imgGray] imgStacked = stackImages(imgList, 2, 0.5) cv2.imshow("stackedImg", imgStacked) cv2.w...
23.642857
52
0.661631
0
0
0
0
0
0
0
0
12
0.036254
e2151dbd8d042f1a314638218c6335ca02b0727a
513
py
Python
tests/unit/test_models.py
Joel-Milligan/physics-tutor-assignment
9db0b871c947bb19886026c06bcd04cefd852d98
[ "MIT" ]
null
null
null
tests/unit/test_models.py
Joel-Milligan/physics-tutor-assignment
9db0b871c947bb19886026c06bcd04cefd852d98
[ "MIT" ]
null
null
null
tests/unit/test_models.py
Joel-Milligan/physics-tutor-assignment
9db0b871c947bb19886026c06bcd04cefd852d98
[ "MIT" ]
null
null
null
from datetime import datetime from app.models import Assessment, User def test_new_user(): new_user = User('usernam1', 'password', datetime(2020, 1, 1), True) assert new_user.username == 'usernam1' assert new_user.password != 'password' assert new_user.signup_date == datetime(2020, 1, 1) assert ne...
30.176471
71
0.71345
0
0
0
0
0
0
0
0
68
0.132554
e21623ec5e7d6ad7295ce59ea422e61906ff7a77
2,390
py
Python
micro/config.py
lastseal/micro-config
e082c329262d1b5613c1641a6cdad98a0be2a5a6
[ "MIT" ]
null
null
null
micro/config.py
lastseal/micro-config
e082c329262d1b5613c1641a6cdad98a0be2a5a6
[ "MIT" ]
null
null
null
micro/config.py
lastseal/micro-config
e082c329262d1b5613c1641a6cdad98a0be2a5a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* from datetime import datetime from slack_sdk import WebClient from slack_sdk.errors import SlackApiError import dataset import logging import dotenv import signal import sys import os class SlackHandler(logging.Handler): def __init__(self, token, channel, username): super().__init...
23.663366
100
0.648954
618
0.258577
0
0
0
0
0
0
367
0.153556
354d0a0e8ce535bc378cbced25f44f2527b5fa3a
373
py
Python
bindings/python/capstone/__init__.py
zouguangxian/capstone
a1818520dfb37596cc5a3f19f3e04412c4c66dca
[ "BSD-3-Clause" ]
1
2021-07-06T23:36:41.000Z
2021-07-06T23:36:41.000Z
bindings/python/capstone/__init__.py
zouguangxian/capstone
a1818520dfb37596cc5a3f19f3e04412c4c66dca
[ "BSD-3-Clause" ]
null
null
null
bindings/python/capstone/__init__.py
zouguangxian/capstone
a1818520dfb37596cc5a3f19f3e04412c4c66dca
[ "BSD-3-Clause" ]
null
null
null
from capstone import Cs, CsError, cs_disasm_quick, cs_version, CS_API_MAJOR, CS_API_MINOR, CS_ARCH_ARM, CS_ARCH_ARM64, CS_ARCH_MIPS, CS_ARCH_X86, CS_MODE_LITTLE_ENDIAN, CS_MODE_ARM, CS_MODE_THUMB, CS_OPT_SYNTAX, CS_OPT_SYNTAX_INTEL, CS_OPT_SYNTAX_ATT, CS_OPT_DETAIL, CS_OPT_ON, CS_OPT_OFF, CS_MODE_16, CS_MODE_32, CS_MOD...
186.5
372
0.86059
0
0
0
0
0
0
0
0
0
0
354d83637e37681157c4d9fc862645ada4cc9f0a
2,841
py
Python
tweetgen2.py
NISH1001/tweetypie
334be291e87cac4f5df2d66aec58dd4c9e95b985
[ "MIT" ]
4
2019-05-08T10:00:20.000Z
2021-06-09T08:40:40.000Z
tweetgen2.py
NISH1001/tweetypie
334be291e87cac4f5df2d66aec58dd4c9e95b985
[ "MIT" ]
null
null
null
tweetgen2.py
NISH1001/tweetypie
334be291e87cac4f5df2d66aec58dd4c9e95b985
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import defaultdict import random import sys from preprocess import ( preprocess_sentence ) from data import ( load_df ) class MarkovChain: def __init__(self, lookback=2): self.trie = defaultdict(lambda : defaultdict(int)) self.lookback = lookback ...
28.128713
99
0.551566
1,906
0.670891
0
0
0
0
0
0
719
0.25308
3550ddafa143f685dd1cca02d3526eff1e6cd743
4,042
py
Python
Projects/VerilogOnline/archive/vo-tools-6/extra/converters/fig2json/archive/test.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
2
2021-01-24T09:00:51.000Z
2022-01-23T20:52:17.000Z
Projects/VerilogOnline/archive/vo-tools-6/extra/converters/fig2json/archive/test.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
6
2020-02-29T01:59:03.000Z
2022-02-15T10:25:40.000Z
Projects/VerilogOnline/archive/vo-tools-6/extra/converters/fig2json/archive/test.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
1
2019-03-22T14:41:21.000Z
2019-03-22T14:41:21.000Z
#!/usr/bin/python2 from pprint import PrettyPrinter from argparse import ArgumentParser def parse_image_header(input_file): comment = None for num, line in enumerate(input_file): line = line.strip() if num == 0: # First line, has to be a comment with the version, but we don't ...
33.131148
81
0.542306
0
0
0
0
0
0
0
0
1,165
0.288224
3553237caf7967dd42d8b8a89fa00e8bcce96bdc
834
py
Python
k8s/python/repo.py
logevents/demo-jenkins
0393637d71c9ced8dedfdaab1b8fc9d6abad40f0
[ "Apache-2.0" ]
2
2020-11-24T14:21:56.000Z
2020-11-26T15:23:33.000Z
k8s/python/repo.py
logevents/demo-jenkins
0393637d71c9ced8dedfdaab1b8fc9d6abad40f0
[ "Apache-2.0" ]
null
null
null
k8s/python/repo.py
logevents/demo-jenkins
0393637d71c9ced8dedfdaab1b8fc9d6abad40f0
[ "Apache-2.0" ]
null
null
null
from http.server import HTTPServer, SimpleHTTPRequestHandler class RepoRequestHandler(SimpleHTTPRequestHandler): def _set_headers(self): self.send_response(200) self.send_header("Content-type", "text/plain") self.end_headers() def _encode(self, text): return text.encode('utf8'...
26.903226
61
0.657074
604
0.724221
0
0
0
0
0
0
133
0.159472
3553f25af58c7c7fe60ba270a87ee11946f7ca62
719
py
Python
ExerciciosPYTHON/NovPython/012.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/NovPython/012.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/NovPython/012.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
print('='*8,'Inscritos','='*8) from module.interface import * from time import sleep menu('Lista de Inscritos') with open('Inscritos.txt') as arq: for o, n in enumerate(arq): print(f'\033[35m{o + 1}\033[m \033[36m{n.title()}\033[m') sleep(0.4) print('-' * 40) while True: r = ' ' while r no...
28.76
80
0.582754
0
0
0
0
0
0
0
0
288
0.400556
355571e66551b980f466860ffabf578c8cf61baa
1,771
py
Python
pulse2percept/datasets/tests/test_nanduri2012.py
narenberg/pulse2percept
ca3aaf66672ccf3c9ee6a9a9d924184cdc6f031d
[ "BSD-3-Clause" ]
40
2019-11-01T14:09:34.000Z
2022-02-28T19:08:01.000Z
pulse2percept/datasets/tests/test_nanduri2012.py
narenberg/pulse2percept
ca3aaf66672ccf3c9ee6a9a9d924184cdc6f031d
[ "BSD-3-Clause" ]
277
2019-11-22T03:30:31.000Z
2022-03-28T00:11:03.000Z
pulse2percept/datasets/tests/test_nanduri2012.py
narenberg/pulse2percept
ca3aaf66672ccf3c9ee6a9a9d924184cdc6f031d
[ "BSD-3-Clause" ]
31
2020-01-22T06:36:36.000Z
2022-01-20T09:54:25.000Z
import pandas as pd import numpy.testing as npt from pulse2percept.datasets import load_nanduri2012 def test_load_nanduri2012(): data = load_nanduri2012(shuffle=False) npt.assert_equal(isinstance(data, pd.DataFrame), True) columns = ['subject', 'implant', 'electrode', 'task', 'stim_class', ...
39.355556
79
0.671372
0
0
0
0
0
0
0
0
423
0.238848
355886956231c917bdbdf9d2101a62ff5e3cd95d
293
py
Python
arcsecond/api/endpoints/satellites.py
onekiloparsec/arcsecond.python
e4b22bf055c7f089ca9f0d6c4bda6314350878e0
[ "MIT" ]
7
2018-08-29T15:31:25.000Z
2022-01-08T14:08:39.000Z
arcsecond/api/endpoints/satellites.py
onekiloparsec/arcsecond-python
e4b22bf055c7f089ca9f0d6c4bda6314350878e0
[ "MIT" ]
2
2018-10-21T07:42:26.000Z
2020-02-24T10:11:22.000Z
arcsecond/api/endpoints/satellites.py
onekiloparsec/arcsecond-python
e4b22bf055c7f089ca9f0d6c4bda6314350878e0
[ "MIT" ]
null
null
null
from ._base import APIEndPoint class SatellitesAPIEndPoint(APIEndPoint): name = 'satellites' def _list_url(self, **filters): return self._build_url('satellites', **filters) def _detail_url(self, norad_number): return self._build_url('satellites', norad_number)
24.416667
58
0.713311
259
0.883959
0
0
0
0
0
0
36
0.122867
35589980547cf3bbd203b94d5ac8dbe125b385c2
1,096
py
Python
dask/TestNB2.py
mlkimmins/scalingpythonml
517c6d3e14ce4eb331ab0fd3b0368e0bf10d9986
[ "Apache-2.0" ]
13
2020-02-09T16:03:10.000Z
2022-03-19T14:08:16.000Z
dask/TestNB2.py
mlkimmins/scalingpythonml
517c6d3e14ce4eb331ab0fd3b0368e0bf10d9986
[ "Apache-2.0" ]
3
2020-10-31T16:20:05.000Z
2020-11-04T01:17:02.000Z
dask/TestNB2.py
mlkimmins/scalingpythonml
517c6d3e14ce4eb331ab0fd3b0368e0bf10d9986
[ "Apache-2.0" ]
4
2020-12-21T22:23:16.000Z
2022-03-29T20:25:28.000Z
#!/usr/bin/env python # coding: utf-8 # In[1]: import dask from dask_kubernetes import KubeCluster import numpy as np # In[ ]: #tag::remote_lb_deploy[] # In[2]: # Specify a remote deployment using a load blanacer, necessary for communication with notebook from cluster dask.config.set({"kubernetes.scheduler-s...
10.640777
107
0.666971
0
0
0
0
0
0
0
0
504
0.459854
3559247cc27efd7aa5a74724da6869a1c6747c97
1,329
py
Python
api_v1/tests/test_models.py
andela-akiura/yonder
1e7c2e113b9188b69459b2443e548d83baeb24e2
[ "MIT" ]
1
2017-09-04T11:45:32.000Z
2017-09-04T11:45:32.000Z
api_v1/tests/test_models.py
andela-akiura/pixlr
1e7c2e113b9188b69459b2443e548d83baeb24e2
[ "MIT" ]
4
2021-06-08T19:30:05.000Z
2022-03-11T23:17:41.000Z
api_v1/tests/test_models.py
andela-akiura/khali
1e7c2e113b9188b69459b2443e548d83baeb24e2
[ "MIT" ]
null
null
null
from django.test import TestCase from factories import ImageFactory, ThumbnailImageFactory, ThumbnailFilterFactory from faker import Faker from django.contrib.auth.models import User fake = Faker() class UserModelTest(TestCase): pass class ImageModelTest(TestCase): def setUp(self): self.image = Image...
27.122449
81
0.686983
1,120
0.842739
0
0
0
0
0
0
80
0.060196
355960a148237ed0b98deb243186406c35a92e89
1,189
py
Python
turbustat/tests/test_rfft_to_fft.py
CFD-UTSA/Turbulence-stars
354d02e38d15e3b0d1f751b43f430dbd3a14c250
[ "MIT" ]
42
2016-04-07T20:49:59.000Z
2022-03-28T12:54:13.000Z
turbustat/tests/test_rfft_to_fft.py
CFD-UTSA/Turbulence-stars
354d02e38d15e3b0d1f751b43f430dbd3a14c250
[ "MIT" ]
131
2015-03-05T21:42:27.000Z
2021-07-22T14:59:04.000Z
turbustat/tests/test_rfft_to_fft.py
CFD-UTSA/Turbulence-stars
354d02e38d15e3b0d1f751b43f430dbd3a14c250
[ "MIT" ]
21
2015-06-10T17:10:06.000Z
2022-02-28T15:59:42.000Z
# Licensed under an MIT open source license - see LICENSE from __future__ import print_function, absolute_import, division import pytest from ..statistics.rfft_to_fft import rfft_to_fft from ._testing_data import dataset1 import numpy as np import numpy.testing as npt try: import pyfftw PYFFTW_INSTALLED = ...
23.78
73
0.714886
0
0
0
0
393
0.33053
0
0
142
0.119428
3559772c07898e5d9fdc896cb93ca4b4066c9dc9
2,344
py
Python
Penrose2.py
whitegreen/quasicrystal
4be39dd8bc769fc2e210502270ab4ab12a2247d3
[ "MIT" ]
1
2021-09-12T11:36:12.000Z
2021-09-12T11:36:12.000Z
Penrose2.py
whitegreen/quasicrystal
4be39dd8bc769fc2e210502270ab4ab12a2247d3
[ "MIT" ]
null
null
null
Penrose2.py
whitegreen/quasicrystal
4be39dd8bc769fc2e210502270ab4ab12a2247d3
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np # projection method: Chapter 3, Grimm & Schreiber, 2002 basis = [] for i in range(5): a = np.pi * 0.4 * i basis.append([np.cos(a), np.sin(a), np.cos(2 * a), np.sin(2 * a), np.sqrt(0.5)]) basis = np.transpose(basis) def lattice(en=2): # 5D lattice s = (e...
29.3
92
0.526877
0
0
0
0
0
0
0
0
287
0.12244
355a7ea85ce6fa2501f960ef2b4246c7c49191cc
872
py
Python
ProgrammingChallenges#Book/Chapter 1/03.TheTrip/solutions/TheTrip.py
xergioalex/programmingContests
37e8621e6849d53b20e97cf60353a39f63ded67a
[ "MIT" ]
null
null
null
ProgrammingChallenges#Book/Chapter 1/03.TheTrip/solutions/TheTrip.py
xergioalex/programmingContests
37e8621e6849d53b20e97cf60353a39f63ded67a
[ "MIT" ]
null
null
null
ProgrammingChallenges#Book/Chapter 1/03.TheTrip/solutions/TheTrip.py
xergioalex/programmingContests
37e8621e6849d53b20e97cf60353a39f63ded67a
[ "MIT" ]
null
null
null
from sys import stdin # Main program def main(): expenses = [0]*1000 for line in stdin: n = int(line) if (n == 0): break; total, toExchangePos, toExchangeNeg = (0,)*3 for i in range(n): line = stdin.readline() expenses[i] = float(line) ...
20.761905
52
0.481651
0
0
0
0
0
0
0
0
59
0.067661
355a7eabdfa94479feee25369d31df7eb197c6b2
548
py
Python
webserver/contest/context_processors.py
theSage21/judge-interface
e1d631f2623c032ee89576e745ce4acb371bc816
[ "MIT" ]
3
2015-11-07T15:17:42.000Z
2021-03-22T23:07:00.000Z
webserver/contest/context_processors.py
theSage21/judge-interface
e1d631f2623c032ee89576e745ce4acb371bc816
[ "MIT" ]
2
2016-12-02T20:27:26.000Z
2018-09-18T07:07:39.000Z
webserver/contest/context_processors.py
theSage21/judge-interface
e1d631f2623c032ee89576e745ce4acb371bc816
[ "MIT" ]
3
2015-09-20T09:38:50.000Z
2018-04-12T14:18:13.000Z
from contest import models from django.utils import timezone from contest.functions import is_contest_on, contest_phase def contest_time(request): context = {} now = timezone.now() contest = models.ContestControl.objects.first() if now < contest.start: time = contest.start elif contest.sta...
27.4
58
0.680657
0
0
0
0
0
0
0
0
41
0.074818
355ac1914c73eb19b95d9073487e7c446179f0d7
17,852
py
Python
python/calico/felix/frules.py
a0x8o/felix
fb431cc4a5482f1013bcbef89954d93551c8fec6
[ "Apache-2.0" ]
6
2016-10-18T04:04:25.000Z
2016-10-18T04:06:49.000Z
python/calico/felix/frules.py
axbaretto/felix
fb431cc4a5482f1013bcbef89954d93551c8fec6
[ "Apache-2.0" ]
1
2021-06-01T21:45:37.000Z
2021-06-01T21:45:37.000Z
python/calico/felix/frules.py
axbaretto/felix
fb431cc4a5482f1013bcbef89954d93551c8fec6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 Tigera, Inc. All rights reserved. # Copyright (c) 2015 Cisco Systems. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
41.906103
92
0.698969
0
0
0
0
0
0
0
0
10,810
0.605534
355af8d5ae4552973efc6c0ce81832474cc5e594
2,716
py
Python
browse.py
Thorsten-Sick/tags_for_media_ccc_de
ad1a117ea1dfc2b508d287854ba9b2f5c5a438ca
[ "MIT" ]
1
2018-01-11T15:46:56.000Z
2018-01-11T15:46:56.000Z
browse.py
Thorsten-Sick/tags_for_media_ccc_de
ad1a117ea1dfc2b508d287854ba9b2f5c5a438ca
[ "MIT" ]
1
2018-11-04T18:42:57.000Z
2018-11-18T22:14:49.000Z
browse.py
Thorsten-Sick/tags_for_media_ccc_de
ad1a117ea1dfc2b508d287854ba9b2f5c5a438ca
[ "MIT" ]
1
2018-11-24T19:17:31.000Z
2018-11-24T19:17:31.000Z
#!/usr/bin/env python3 # TODO: Write a command line tool to browser and search in the database # TODO: Define a command set to search for strings, tags, similar talks, mark talks as seen, mark talks as irrelevant, mark talks as relevant, open a browser and watch, show details, quit # https://opensource.com/article/...
32.722892
187
0.610088
0
0
0
0
0
0
0
0
1,172
0.431517
355b54f8b2fba95e01f01d6e3b0468747cbcfa07
587
py
Python
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos C random.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos C random.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos C random.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
import random # num = random.random() para numeros de 0 e 1 num = random.randint(1, 10) print(num) '''import random 'choice' n1 = str(input('Primeiro aluno: ')) n2 = str(input('Segundo aluno: ')) n3 = str(input('Terceiro aluno: ')) n4 = str(input('Quarto aluno: ')) lista = [n1, n2, n3, n4] escolha = random.choice(lis...
24.458333
45
0.645656
0
0
0
0
0
0
0
0
532
0.901695
355d9f89110de4ad691f2cde310c459a0094cdbf
1,520
py
Python
help.py
TarikCinar/python-sesli-asistan
1a29a8d3081b67ff352cf03f7b01ac01b7118deb
[ "MIT" ]
1
2021-05-28T17:27:50.000Z
2021-05-28T17:27:50.000Z
help.py
TarikCinar/python-sesli-asistan
1a29a8d3081b67ff352cf03f7b01ac01b7118deb
[ "MIT" ]
null
null
null
help.py
TarikCinar/python-sesli-asistan
1a29a8d3081b67ff352cf03f7b01ac01b7118deb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'help.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("F...
31.666667
122
0.675
1,080
0.710526
0
0
0
0
0
0
403
0.265132
35604318c4baa0bc21434d140ab47982045b6541
1,729
py
Python
tarea2c/mod/game_over.py
camilo-nb/CC3501-tareas
b27cb01c8bcb88d7530bb337b1a1dab1c0f8f34e
[ "MIT" ]
null
null
null
tarea2c/mod/game_over.py
camilo-nb/CC3501-tareas
b27cb01c8bcb88d7530bb337b1a1dab1c0f8f34e
[ "MIT" ]
null
null
null
tarea2c/mod/game_over.py
camilo-nb/CC3501-tareas
b27cb01c8bcb88d7530bb337b1a1dab1c0f8f34e
[ "MIT" ]
null
null
null
import os from collections import deque import numpy as np from OpenGL.GL import * import lib.basic_shapes as bs import lib.easy_shaders as es import lib.transformations as tr class GameOver: def __init__(self): self.GPU = deque([ es.toGPUShape(bs.createTextureCube(os.path.join('mod', 'tex', ...
46.72973
161
0.664546
1,549
0.895894
0
0
0
0
0
0
133
0.076923
35610507ab819d86ea042c5778fb91378bad6012
4,571
py
Python
src/pycity_scheduling/classes/electrical_heater.py
ElsevierSoftwareX/SOFTX-D-20-00087
d2d3f1effda2c0499cb05abf87435375a21379e3
[ "MIT" ]
4
2021-11-01T15:13:27.000Z
2022-01-16T18:01:06.000Z
src/pycity_scheduling/classes/electrical_heater.py
ElsevierSoftwareX/SOFTX-D-20-00087
d2d3f1effda2c0499cb05abf87435375a21379e3
[ "MIT" ]
2
2021-11-18T05:58:00.000Z
2022-01-19T16:46:20.000Z
src/pycity_scheduling/classes/electrical_heater.py
ElsevierSoftwareX/SOFTX-D-20-00087
d2d3f1effda2c0499cb05abf87435375a21379e3
[ "MIT" ]
5
2021-11-01T15:13:35.000Z
2022-02-03T21:28:48.000Z
""" The pycity_scheduling framework Copyright (C) 2022, Institute for Automation of Complex Power Systems (ACS), E.ON Energy Research Center (E.ON ERC), RWTH Aachen University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwa...
41.18018
118
0.703566
3,021
0.660906
0
0
0
0
0
0
3,201
0.700284
35632b004edf0889b947ff8dab8238164166f87d
13,394
py
Python
klasses/api.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
2
2018-06-20T19:37:03.000Z
2021-01-06T09:51:40.000Z
klasses/api.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
1,226
2017-02-23T14:52:28.000Z
2022-03-29T13:19:54.000Z
klasses/api.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
3
2017-03-20T03:51:27.000Z
2021-03-19T15:54:31.000Z
""" API functionality for bootcamps """ import logging from datetime import datetime, timedelta import pytz from django.core.exceptions import ValidationError, ObjectDoesNotExist from django.db.models import Sum from applications.constants import AppStates from ecommerce.models import Line, Order from klasses.constan...
37.729577
117
0.657011
0
0
0
0
0
0
0
0
5,190
0.387487
35643bae4260d8b9d3b851012048c6639e6d322b
1,745
py
Python
news/management/commands/fetch_planet.py
SIBSIND/PHPMYADMINWEBSITE
e2112f0fb43f042be551ecaadb05b1cc79ba5360
[ "MIT" ]
31
2015-05-26T23:13:06.000Z
2022-03-10T12:03:33.000Z
news/management/commands/fetch_planet.py
SIBSIND/PHPMYADMINWEBSITE
e2112f0fb43f042be551ecaadb05b1cc79ba5360
[ "MIT" ]
136
2015-01-15T23:30:23.000Z
2022-03-31T00:59:01.000Z
news/management/commands/fetch_planet.py
SIBSIND/PHPMYADMINWEBSITE
e2112f0fb43f042be551ecaadb05b1cc79ba5360
[ "MIT" ]
158
2015-01-15T23:25:26.000Z
2022-02-09T01:47:20.000Z
# -*- coding: UTF-8 -*- # vim: set expandtab sw=4 ts=4 sts=4: # # phpMyAdmin web site # # Copyright (C) 2008 - 2016 Michal Cihar <michal@cihar.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
32.314815
73
0.634384
728
0.417192
0
0
0
0
0
0
911
0.522063
356456d1a91cf05134c753d550fbf53265ec7f7c
17,082
py
Python
src/convert_dataset_video_to_mouth_img.py
iglaweb/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
7
2021-07-02T03:57:20.000Z
2022-03-20T13:23:32.000Z
src/convert_dataset_video_to_mouth_img.py
filipul1s/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
null
null
null
src/convert_dataset_video_to_mouth_img.py
filipul1s/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
3
2021-07-02T16:07:28.000Z
2022-03-20T13:23:33.000Z
import collections import csv import os import sys from enum import Enum from pathlib import Path # adapt paths for jupyter module_path = os.path.abspath(os.path.join('..')) if module_path not in sys.path: sys.path.append(module_path) import face_alignment from yawn_train.src.blazeface_detector import BlazeFaceD...
37.625551
135
0.669652
1,098
0.064278
0
0
244
0.014284
0
0
3,048
0.178433
35665e1b39e67d688ac135c0ce7cb34d35d57e66
1,223
py
Python
homeassistant/components/launch_library/diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/launch_library/diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/launch_library/diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Diagnostics support for Launch Library.""" from __future__ import annotations from typing import Any from pylaunches.objects.event import Event from pylaunches.objects.launch import Launch from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers....
29.829268
77
0.72036
0
0
0
0
0
0
793
0.648406
188
0.15372
3567e722e33bfee718b3bdecb716ef40a5ef9cda
2,894
py
Python
py_tests/test_vision_pipeline_manager.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
1
2021-03-30T20:49:54.000Z
2021-03-30T20:49:54.000Z
py_tests/test_vision_pipeline_manager.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
py_tests/test_vision_pipeline_manager.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
"""Tests for mlpiot.base.vision_pipeline_manager""" import unittest from mlpiot.base.action_executor import ActionExecutor from mlpiot.base.event_extractor import EventExtractor from mlpiot.base.scene_descriptor import SceneDescriptor from mlpiot.base.trainer import Trainer from mlpiot.base.vision_pipeline_manager im...
29.232323
75
0.717346
2,420
0.836213
0
0
0
0
0
0
171
0.059088
3567ef1a903012178ca2379e19f67a46e3d91e09
1,176
py
Python
day04/code2.py
jfdahl/Advent-of-Code-2019
3e5100e77eddc09f361c07a3c860a0fd97ecaa78
[ "MIT" ]
null
null
null
day04/code2.py
jfdahl/Advent-of-Code-2019
3e5100e77eddc09f361c07a3c860a0fd97ecaa78
[ "MIT" ]
null
null
null
day04/code2.py
jfdahl/Advent-of-Code-2019
3e5100e77eddc09f361c07a3c860a0fd97ecaa78
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import numpy as np start = 168630 stop = 718098 double = re.compile(r'(\d)\1') triple = re.compile(r'(\d)\1\1') def is_decreasing(num): previous = None for digit in str(num): if not previous: previous = digit continue if previous > digit...
27.348837
94
0.661565
0
0
0
0
0
0
0
0
260
0.221088
35680159b6dd0a0218a24c732bdcc58c5848a6a2
4,170
py
Python
layint_api/models/stats_history_inner.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
layint_api/models/stats_history_inner.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
layint_api/models/stats_history_inner.py
LayeredInsight/layint_api_python
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Layered Insight Assessment, Compliance, Witness & Control LI Assessment & Compliance performs static vulnerability analysis, license and package compliance. LI Witness provides deep insight and analytics into containerized applications. Control provides dynamic runtime security and analyti...
27.8
383
0.586091
3,492
0.83741
0
0
1,022
0.245084
0
0
2,188
0.5247
3568fe33f1a70bcbcc1a0632feb3804b638fd10e
6,056
py
Python
powerapi/database/influxdb2.py
jorgermurillo/powerapi
0636a693db2a0f3491ffd45a623de98a563fbd4d
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/influxdb2.py
jorgermurillo/powerapi
0636a693db2a0f3491ffd45a623de98a563fbd4d
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/influxdb2.py
jorgermurillo/powerapi
0636a693db2a0f3491ffd45a623de98a563fbd4d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, INRIA # Copyright (c) 2018, University of Lille # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, thi...
37.153374
91
0.662483
4,020
0.663804
0
0
0
0
0
0
3,551
0.586361
356a02e72caa007b811a18656a6e2973c6b20aee
3,700
py
Python
client/verta/verta/_tracking/organization.py
coutureai/CoutureModelDB
a799c0e3d6239bf79ac1462a936742af03492607
[ "Apache-2.0" ]
null
null
null
client/verta/verta/_tracking/organization.py
coutureai/CoutureModelDB
a799c0e3d6239bf79ac1462a936742af03492607
[ "Apache-2.0" ]
null
null
null
client/verta/verta/_tracking/organization.py
coutureai/CoutureModelDB
a799c0e3d6239bf79ac1462a936742af03492607
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .._protos.public.uac import Organization_pb2 as _Organization from .._protos.public.common import CommonService_pb2 as _CommonCommonService class CollaboratorType: def __init__(self, global_collaborator_type=None, default_repo_collaborator_type=None, default_endpoint_...
40.659341
114
0.647297
3,525
0.952703
0
0
2,227
0.601892
0
0
478
0.129189
356afbbf16bb44c8c36e543c3986db0e42688ac8
25,770
py
Python
experiment/core/utmLib/ml/BN.py
LeonDong1993/TractableDE-ContCNet
30e050eeef802308f4124bf56a161bae7f2e11c4
[ "MIT" ]
null
null
null
experiment/core/utmLib/ml/BN.py
LeonDong1993/TractableDE-ContCNet
30e050eeef802308f4124bf56a161bae7f2e11c4
[ "MIT" ]
null
null
null
experiment/core/utmLib/ml/BN.py
LeonDong1993/TractableDE-ContCNet
30e050eeef802308f4124bf56a161bae7f2e11c4
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np from copy import deepcopy from functools import partial from utmLib import utils from utmLib.ml.graph import Node, Graph from pdb import set_trace class BayesianNetwork: def __init__(self,g,ev): assert(g.digraph), "Only directed graph allowed" for i in range(g.N): ...
26.677019
113
0.60326
22,857
0.886962
0
0
1,578
0.061234
0
0
2,333
0.090532
356bb777f77682e18da9872000b9c4effea83dc3
20,411
py
Python
examples/pybullet/examples/quadruped.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/examples/quadruped.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/examples/quadruped.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
import pybullet as p import time import math import pybullet_data def drawInertiaBox(parentUid, parentLinkIndex, color): dyn = p.getDynamicsInfo(parentUid, parentLinkIndex) mass = dyn[0] frictionCoeff = dyn[1] inertia = dyn[2] if (mass > 0): Ixx = inertia[0] Iyy = inertia[1] Izz = inertia[2] ...
43.42766
116
0.598109
0
0
0
0
0
0
0
0
1,244
0.060948
356cc44803c63961c21e1852560af9b7a53ad16e
7,163
py
Python
tensormonk/architectures/gans_esrgan.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
29
2018-07-06T23:57:23.000Z
2022-03-08T20:38:57.000Z
tensormonk/architectures/gans_esrgan.py
sparupat/TensorMONK
7a2699a28299a89b186e0eb17ed6e9feaea5429e
[ "MIT" ]
3
2018-12-14T22:21:26.000Z
2020-06-19T02:13:34.000Z
tensormonk/architectures/gans_esrgan.py
sparupat/TensorMONK
7a2699a28299a89b186e0eb17ed6e9feaea5429e
[ "MIT" ]
8
2018-07-06T23:58:03.000Z
2021-04-12T01:35:54.000Z
""" TensorMONK's :: architectures :: ESRGAN """ __all__ = ["Generator", "Discriminator", "VGG19"] import torch import torch.nn as nn import torchvision from ..layers import Convolution class DenseBlock(nn.Module): r"""From DenseNet - https://arxiv.org/pdf/1608.06993.pdf.""" def __init__(self, tensor_size: t...
35.285714
79
0.580064
6,958
0.971381
0
0
0
0
0
0
1,973
0.275443
356d07de30049e8cf0f6aad0e41acef8b5f0d9cb
1,291
py
Python
ingenico/connect/sdk/domain/product/device_fingerprint_request.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
12
2016-09-26T21:46:31.000Z
2020-12-23T18:44:54.000Z
ingenico/connect/sdk/domain/product/device_fingerprint_request.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
3
2020-05-02T16:53:02.000Z
2020-06-02T12:49:51.000Z
ingenico/connect/sdk/domain/product/device_fingerprint_request.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
11
2017-07-16T00:55:28.000Z
2021-09-24T17:00:49.000Z
# -*- coding: utf-8 -*- # # This class was auto-generated from the API references found at # https://epayments-api.developer-ingenico.com/s2sapi/v1/ # from ingenico.connect.sdk.data_object import DataObject class DeviceFingerprintRequest(DataObject): __collector_callback = None @property def collector_c...
34.891892
245
0.7134
1,081
0.837335
0
0
490
0.379551
0
0
491
0.380325
356fae5d80236a3dbf63128736f174a103162b77
3,418
py
Python
tests/nnapi/specs/skip/V1_2/space_to_batch_v1_2.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
tests/nnapi/specs/skip/V1_2/space_to_batch_v1_2.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
test/cts/tool/CTSConverter/src/nn/specs/V1_2/space_to_batch_v1_2.mod.py
ibelem/webml-polyfill
aaf1ba4f5357eaf6e89bf9990f5bdfb543cd2bc2
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
# # Copyright (C) 2018 The Android Open Source Project # # 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 la...
35.978947
74
0.614687
0
0
0
0
0
0
0
0
1,687
0.493563
357015263198b1279e9ef9410456f9db3904f6f9
559
py
Python
print_dict_results.py
ofirtal/alice_google_wordcount
0a0d648e688b80c3f34fd0250ae464bcd5d0de05
[ "Apache-2.0" ]
1
2020-09-29T03:08:35.000Z
2020-09-29T03:08:35.000Z
print_dict_results.py
ofirtal/alice_google_wordcount
0a0d648e688b80c3f34fd0250ae464bcd5d0de05
[ "Apache-2.0" ]
null
null
null
print_dict_results.py
ofirtal/alice_google_wordcount
0a0d648e688b80c3f34fd0250ae464bcd5d0de05
[ "Apache-2.0" ]
null
null
null
class PrintDictResults: def __init__(self, dict_of_sorted_words): self.list_of_sorted_words = dict_of_sorted_words def print_items(self, counter): print(f'{counter + 1}. "{self.list_of_sorted_words[counter][1]}" : {self.list_of_sorted_words[counter][0]}') def get_all_words(self): f...
37.266667
116
0.697674
558
0.998211
0
0
0
0
0
0
101
0.18068
35702e98a69fbbc4d367cef348aeb837ce0c6f47
20,594
py
Python
Scripts/8Bit_Characters_Binary.py
Ifelsethendo/Blender-Game-Engine-Templates
b4cd92ee7e1c4e9ac8d10b4d843392856285f6ba
[ "Apache-2.0" ]
5
2021-12-11T02:27:43.000Z
2022-01-08T08:51:21.000Z
Scripts/8Bit_Characters_Binary.py
Ifelsethendo/Blender-Game-Engine-Templates
b4cd92ee7e1c4e9ac8d10b4d843392856285f6ba
[ "Apache-2.0" ]
null
null
null
Scripts/8Bit_Characters_Binary.py
Ifelsethendo/Blender-Game-Engine-Templates
b4cd92ee7e1c4e9ac8d10b4d843392856285f6ba
[ "Apache-2.0" ]
2
2021-12-29T05:48:58.000Z
2022-03-05T15:31:33.000Z
import bpy try: import bge except: print("no bge module") ## This array of binary strings defines each of 256 characters binary=["0011110000100000001000000111100000100000011000001010110000000000","0100010001001000010100000010110001000100000010000001110000000000","01000100010010000101000000101100010101000...
185.531532
17,160
0.891036
0
0
0
0
0
0
0
0
17,814
0.865009
3570648818248f506b4acc069aadab42f128c69d
2,732
py
Python
examples/steps/test_calc.py
bigbirdcode/pt_gh
2c1775c6141eee4594f27028d0c87cc783ee08af
[ "MIT" ]
null
null
null
examples/steps/test_calc.py
bigbirdcode/pt_gh
2c1775c6141eee4594f27028d0c87cc783ee08af
[ "MIT" ]
null
null
null
examples/steps/test_calc.py
bigbirdcode/pt_gh
2c1775c6141eee4594f27028d0c87cc783ee08af
[ "MIT" ]
null
null
null
"""Example for Pytest-Gherkin""" import ast from pytest import approx from pt_gh import step, value_options operator = value_options("add", "subtract") @step("I have {num1:d} and {num2:d}") def given_numbers_i(num1, num2, context): """Example of parameter types converted based on annotation and context i...
30.355556
69
0.673499
0
0
0
0
2,548
0.93265
0
0
1,406
0.514641
35708b1a267084c409e146c96cce29f59f8a1bdd
8,901
py
Python
runtime/opt/taupage/init.d/02-register-td-agent.py
a1exsh/taupage
aa3f31ec84d28db0f63b0300b5aabeb081bfcb35
[ "Apache-2.0" ]
49
2015-04-14T13:55:10.000Z
2020-02-14T22:55:43.000Z
runtime/opt/taupage/init.d/02-register-td-agent.py
a1exsh/taupage
aa3f31ec84d28db0f63b0300b5aabeb081bfcb35
[ "Apache-2.0" ]
538
2015-04-01T10:53:09.000Z
2020-04-17T08:43:36.000Z
runtime/opt/taupage/init.d/02-register-td-agent.py
a1exsh/taupage
aa3f31ec84d28db0f63b0300b5aabeb081bfcb35
[ "Apache-2.0" ]
67
2015-05-05T19:48:30.000Z
2020-11-04T04:59:00.000Z
#!/usr/bin/env python3 import logging import subprocess import re import boto.utils from jinja2 import Environment, FileSystemLoader from taupage import get_config logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) TPL_NAME = 'td-agent.conf.jinja2' TD_AGENT_TEMPLATE_PATH = '/etc/td-agent/t...
47.854839
117
0.700371
0
0
0
0
0
0
0
0
2,260
0.253904
3573a03f2f0531d7422c7f22c5b3d8a3458c39f0
9,323
py
Python
yagocd/resources/property.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
null
null
null
yagocd/resources/property.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
null
null
null
yagocd/resources/property.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # The MIT License # # Copyright (c) 2016 Grigory Chernyshev # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
34.150183
118
0.627909
7,850
0.841823
0
0
7,867
0.843646
0
0
5,411
0.580268
3575d5d1e8e3f443d0861039be6502d8ce1a15c4
1,313
py
Python
bb2cogs/tasks.py
Team-EG/j-bot
2e160707d13cc4988f370713fc9f57c7cff3f5bb
[ "MIT" ]
2
2020-07-07T01:15:15.000Z
2021-08-15T19:49:32.000Z
bb2cogs/tasks.py
Team-EG/j-bot
2e160707d13cc4988f370713fc9f57c7cff3f5bb
[ "MIT" ]
null
null
null
bb2cogs/tasks.py
Team-EG/j-bot
2e160707d13cc4988f370713fc9f57c7cff3f5bb
[ "MIT" ]
1
2020-04-08T04:23:10.000Z
2020-04-08T04:23:10.000Z
import discord import asyncio import json import asyncpg from discord.ext import commands from discord.ext import tasks class Tasks(commands.Cog): def __init__(self, client): self.client = client print(f'{__name__} 로드 완료!') self.change_status.add_exception_type(asyncpg.Postgr...
33.666667
151
0.672506
1,176
0.860278
0
0
842
0.615947
791
0.578639
225
0.164594
3575f69fbe1be7943d3fbe746ae637c360e21a03
1,103
py
Python
controllers/api_error.py
elandcloud/python-api
fcdc0abe3e3273d5ec0aac6b9bdefbf00ca0f58b
[ "Apache-2.0" ]
null
null
null
controllers/api_error.py
elandcloud/python-api
fcdc0abe3e3273d5ec0aac6b9bdefbf00ca0f58b
[ "Apache-2.0" ]
1
2021-03-31T19:27:16.000Z
2021-03-31T19:27:16.000Z
controllers/api_error.py
elandcloud/python-api
fcdc0abe3e3273d5ec0aac6b9bdefbf00ca0f58b
[ "Apache-2.0" ]
1
2020-01-02T02:33:39.000Z
2020-01-02T02:33:39.000Z
from controllers.type_result import Error def unknownError(err): return Error(10001,"Unknown error",err) def invalidParamError(field,condition,err): return Error(10007, "Invalid field(%s: %s)"%(field, condition), err) def parameterParsingError(err): return Error(10008, "Parameter parsing error", err) d...
26.902439
72
0.728921
0
0
0
0
0
0
0
0
322
0.291931
3576496a708959dfe8356700f2ca28d993c28dc4
3,357
py
Python
Optimization/optimize.py
cty123/TriNet
9c43ae4bd3bae7308289ba1e1980f693d692585b
[ "MIT" ]
10
2020-02-12T20:54:10.000Z
2022-03-17T03:18:54.000Z
Optimization/optimize.py
cty123/TriNet
9c43ae4bd3bae7308289ba1e1980f693d692585b
[ "MIT" ]
2
2020-04-24T22:18:41.000Z
2021-12-27T05:22:09.000Z
Optimization/optimize.py
chuzcjoe/TriNet
d2689de7362f1845b5c399f1f9f66f42eb4df23f
[ "MIT" ]
2
2020-02-12T20:54:37.000Z
2020-03-26T05:17:33.000Z
import numpy as np import math from scipy.optimize import minimize class Optimize(): def __init__(self): self.c_rad2deg = 180.0 / np.pi self.c_deg2rad = np.pi / 180.0 def isRotationMatrix(self, R) : Rt = np.transpose(R) shouldBeIdentity = np.dot(Rt, R) I = np.id...
31.083333
132
0.494191
3,287
0.979148
0
0
0
0
0
0
115
0.034257
3578741287ad3fdaadbb1724717ecc78eefadf0d
9,133
py
Python
freyr/utils/agents.py
gutogirardon/freyer-stocks-api
38dd69066e41cabfb2977a151ebf063003252fb0
[ "MIT" ]
3
2021-04-08T03:08:52.000Z
2021-07-08T01:09:21.000Z
freyr/utils/agents.py
webclinic017/freyr-stocks-api
38dd69066e41cabfb2977a151ebf063003252fb0
[ "MIT" ]
null
null
null
freyr/utils/agents.py
webclinic017/freyr-stocks-api
38dd69066e41cabfb2977a151ebf063003252fb0
[ "MIT" ]
2
2021-09-24T13:35:32.000Z
2021-09-26T18:44:52.000Z
""" Freyr - A Free stock API """ import random import requests.utils header = [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:83.0) Gecko/20100101 Firefox/83.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:82.0) Gecko/20100101 Firefox/82.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0)...
96.136842
140
0.698894
0
0
0
0
0
0
0
0
8,472
0.927625
3578b0766410e85213ce6ed8b351520882df04bf
8,581
py
Python
mixcoatl/resource_utils.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
mixcoatl/resource_utils.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
mixcoatl/resource_utils.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
from mixcoatl.admin.billing_code import BillingCode from mixcoatl.geography.region import Region from mixcoatl.admin.group import Group from mixcoatl.admin.user import User def get_servers(servers, **kwargs): """ Returns a list of servers Arguments: :param servers: a list of servers that needs to be filt...
35.754167
110
0.646778
0
0
0
0
0
0
0
0
3,142
0.366158
3579494bf1e826f12f91e8fb3c0875d2c71c341e
8,443
py
Python
PWGJE/EMCALJetTasks/Tracks/analysis/old/ComparePeriodsTriggerToMB.py
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
114
2017-03-03T09:12:23.000Z
2022-03-03T20:29:42.000Z
PWGJE/EMCALJetTasks/Tracks/analysis/old/ComparePeriodsTriggerToMB.py
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
19,637
2017-01-16T12:34:41.000Z
2022-03-31T22:02:40.000Z
PWGJE/EMCALJetTasks/Tracks/analysis/old/ComparePeriodsTriggerToMB.py
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
1,021
2016-07-14T22:41:16.000Z
2022-03-31T05:15:51.000Z
#! /usr/bin/env python from ROOT import TCanvas, TGraphErrors, TLegend, TPaveText from ROOT import kBlack, kBlue, kRed from Helper import Frame, ReadHistList from Graphics import Style from SpectrumContainer import DataContainer from copy import deepcopy class PeriodComparisonPlot: def __init__(self): ...
36.549784
192
0.627384
6,604
0.782186
0
0
0
0
0
0
825
0.097714