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
8209e6f9baf6dc11c2faf5266f9168821f205e98
2,243
py
Python
medium/python/c0335_731_my-calendar-ii/00_leetcode_0335.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python/c0335_731_my-calendar-ii/00_leetcode_0335.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python/c0335_731_my-calendar-ii/00_leetcode_0335.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #731. My Calendar II #Implement a MyCalendarTwo class to store your events. A new event can be added if adding the event will not cause a triple booking. ...
54.707317
212
0.728043
0
0
0
0
0
0
0
0
2,203
0.982167
820b086050ad75315e1b8b3a7bb8f87684d23be9
173
py
Python
main.py
ichir0roie/mangaSeeFeeder
9871cb079a4c180ce2167b5aa60c48c9423822fe
[ "MIT" ]
1
2021-09-07T14:13:35.000Z
2021-09-07T14:13:35.000Z
main.py
ichir0roie/mangaSeeFeeder
9871cb079a4c180ce2167b5aa60c48c9423822fe
[ "MIT" ]
null
null
null
main.py
ichir0roie/mangaSeeFeeder
9871cb079a4c180ce2167b5aa60c48c9423822fe
[ "MIT" ]
null
null
null
import myPkgs.Scraper # scraping data and save pickle scraper=myPkgs.Scraper.Scraper() scraper.setSubscriptionsPage() scraper.getInfoFromSubScriptions() # create mailHtml
19.222222
34
0.82659
0
0
0
0
0
0
0
0
48
0.277457
820ca3e67bffef370d9d41988b414444b2ad1bf8
2,968
py
Python
examples/Mentor/05.6.TransformOrdering.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
29
2019-12-28T10:37:16.000Z
2022-02-09T10:48:04.000Z
examples/Mentor/05.6.TransformOrdering.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
29
2019-12-26T13:46:11.000Z
2022-03-29T18:14:33.000Z
examples/Mentor/05.6.TransformOrdering.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
17
2019-12-29T11:49:32.000Z
2022-02-23T00:28:18.000Z
#!/usr/bin/env python ### # Copyright (c) 2002-2007 Systems in Motion # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS I...
31.242105
74
0.705863
0
0
0
0
0
0
0
0
1,551
0.522574
820ceb9164fe0c747e5f68b273d1654107a1cd1d
1,796
py
Python
python-object-storage/test_object_storage.py
henriqueccapozzi/pocs
9c1e3b22b3f026b22fe01b365bddd95b5afc9264
[ "MIT" ]
null
null
null
python-object-storage/test_object_storage.py
henriqueccapozzi/pocs
9c1e3b22b3f026b22fe01b365bddd95b5afc9264
[ "MIT" ]
null
null
null
python-object-storage/test_object_storage.py
henriqueccapozzi/pocs
9c1e3b22b3f026b22fe01b365bddd95b5afc9264
[ "MIT" ]
null
null
null
import os import json import pytest from object_storage import DB DB_FILE_NAME = "db.json" def _create_test_db(): return DB("test", file_name=DB_FILE_NAME) def _create_mock_obj(): return { "programing_languages_features": { "python": ["simple", "easy setup"], "javascript":...
26.80597
60
0.614143
1,422
0.791759
0
0
0
0
0
0
299
0.166481
820f6292ce69f024eb8b287f0493082d26ff31c3
3,898
py
Python
10-Flask/72-Library.py
ericson14/Small_project
dd88b9a5619d38fb8d236c932ffa8429d24b28ae
[ "MIT" ]
null
null
null
10-Flask/72-Library.py
ericson14/Small_project
dd88b9a5619d38fb8d236c932ffa8429d24b28ae
[ "MIT" ]
null
null
null
10-Flask/72-Library.py
ericson14/Small_project
dd88b9a5619d38fb8d236c932ffa8429d24b28ae
[ "MIT" ]
null
null
null
from flask import Flask, flash, render_template, request, redirect, url_for from flask_sqlalchemy import SQLAlchemy from flask_wtf import FlaskForm from wtforms import StringField, SubmitField class Config(object): SQLALCHEMY_DATABASE_URI = "mysql://root:chuanzhi@127.0.0.1:3306/library" SQLALCHEMY_TRACK_MODIF...
29.755725
76
0.596203
909
0.215199
0
0
2,238
0.52983
0
0
783
0.185369
820fc8eb5d725ac75d1fc9754e8b1b1fc09bf771
404
py
Python
pycats/tests/instances/test_set_inst.py
kykosic/pycats
43b317fcd7a30c95c0b92990b042904f2c338870
[ "Apache-2.0" ]
5
2020-06-12T23:08:28.000Z
2021-09-09T09:18:41.000Z
pycats/tests/instances/test_set_inst.py
kykosic/pycats
43b317fcd7a30c95c0b92990b042904f2c338870
[ "Apache-2.0" ]
1
2020-02-08T20:07:09.000Z
2020-02-08T20:07:09.000Z
pycats/tests/instances/test_set_inst.py
kykosic/pycats
43b317fcd7a30c95c0b92990b042904f2c338870
[ "Apache-2.0" ]
null
null
null
import pycats.instances # noqa: F401 def test_semigroup(): a = {1, 2} b = {2, 4} actual = a.combine(b) expected = {1, 2, 4} assert actual == expected def test_monoid(): actual = list.unit() expected = list() assert actual == expected def test_functor(): a = {1, 2, 3} act...
16.16
37
0.561881
0
0
0
0
0
0
0
0
12
0.029703
8210337a295e13c410889ae84e0363248842ff40
582
py
Python
Chapter04/name2ldap.py
PacktPublishing/Becming-the-Hacker
90eb5bc093d4b6a4b171e1d4cb0170bc23746846
[ "MIT" ]
27
2019-02-13T16:28:44.000Z
2021-12-16T09:53:36.000Z
Chapter04/name2ldap.py
mirroR72/Becoming-the-Hacker
57093174a107f5ea3abc35bcd3d8267f9448afbb
[ "MIT" ]
1
2019-09-14T18:15:02.000Z
2019-09-14T18:15:02.000Z
Chapter04/name2ldap.py
mirroR72/Becoming-the-Hacker
57093174a107f5ea3abc35bcd3d8267f9448afbb
[ "MIT" ]
17
2019-01-31T10:46:09.000Z
2021-12-16T23:37:27.000Z
with open("linkedin.txt", "r") as fp: for name in iter(fp): first, last = name.strip().lower().split(" ") print first + "." + last # david.lightman print first + last # davidlightman fl = first[0] + last lf = last + first[0] print fl # dlightman ...
30.631579
54
0.475945
0
0
0
0
0
0
0
0
158
0.271478
8211154aa4a5a84d14ec8e9f4d95147e8b41f6f1
3,038
py
Python
scripts/write_to_influxdb.py
sync-or-swim/sos-journaler
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
null
null
null
scripts/write_to_influxdb.py
sync-or-swim/sos-journaler
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
27
2020-01-29T05:50:52.000Z
2020-12-20T04:53:01.000Z
scripts/write_to_influxdb.py
BryceBeagle/sync-or-swim
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from influxdb import InfluxDBClient import datetime import geohash def main(): parser = ArgumentParser( description="Writes some example FIXM data to InfluxDB") parser.add_argument("--hostname", type=str, default="localhost", help="The hostn...
38.455696
77
0.571099
0
0
0
0
0
0
0
0
1,328
0.43713
8211444c1809530cc0c344f0e30b5c1c9a1ff78e
24,908
py
Python
totall/api.py
dacosta2213/totall
c64420bb8d35ccf423fe8ea66321b34431f79660
[ "MIT" ]
null
null
null
totall/api.py
dacosta2213/totall
c64420bb8d35ccf423fe8ea66321b34431f79660
[ "MIT" ]
null
null
null
totall/api.py
dacosta2213/totall
c64420bb8d35ccf423fe8ea66321b34431f79660
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import frappe import json from frappe import _ from frappe.utils import get_fullname, get_link_to_form, get_url_to_form from datetime import date,datetime,timedelta import jwt import time @frappe.whitelist() def inventario(item_code): inventario = frappe...
44.718133
510
0.681829
0
0
0
0
21,304
0.855273
0
0
15,246
0.612068
821531d61984ff76dac0b4c73fab4063e3a37fe0
3,008
py
Python
flicks/videos/migrations/0014_auto__del_field_video_user.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
1
2015-07-13T03:29:04.000Z
2015-07-13T03:29:04.000Z
flicks/videos/migrations/0014_auto__del_field_video_user.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
2
2015-03-03T23:02:19.000Z
2019-03-30T04:45:51.000Z
flicks/videos/migrations/0014_auto__del_field_video_user.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
2
2016-04-15T11:43:05.000Z
2016-04-15T11:43:15.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Video.user' db.delete_column('videos_video', 'user_id') def backwards(self, orm): ...
61.387755
163
0.566489
2,876
0.956117
0
0
0
0
0
0
1,924
0.639628
8215508f627bf3d1b4d448dabf1e8742f974b661
2,701
py
Python
update.py
cccs-rs/apiscout
27aa5cb6991a39df03695576b351a815146fd270
[ "BSD-2-Clause" ]
169
2017-04-10T14:43:54.000Z
2022-03-20T09:35:26.000Z
update.py
cccs-rs/apiscout
27aa5cb6991a39df03695576b351a815146fd270
[ "BSD-2-Clause" ]
25
2017-05-19T08:53:58.000Z
2021-07-31T14:09:37.000Z
update.py
cccs-rs/apiscout
27aa5cb6991a39df03695576b351a815146fd270
[ "BSD-2-Clause" ]
44
2017-04-10T16:22:55.000Z
2021-11-09T13:45:08.000Z
import re import os import sys import requests try: import config except: print("create a config.py based on template.config.py and set your Malpedia API token!") sys.exit() def delete_existing_dbs(): """ delete potentially existing old apivector db files """ for filename in os.listdir("dbs"): ...
32.939024
108
0.640874
0
0
0
0
0
0
0
0
916
0.339134
8215786d8a3f20e9ccb720b4af31a0f44f648d88
752
py
Python
Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/mechanisms/Declaration.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
1
2019-04-24T13:32:23.000Z
2019-04-24T13:32:23.000Z
Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/mechanisms/Declaration.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/mechanisms/Declaration.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~...
22.117647
82
0.408245
320
0.425532
0
0
0
0
0
0
454
0.603723
82175e8b7a22ac93f4e8ed01903f37b29cf95227
1,242
py
Python
fate/prompt.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
fate/prompt.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
fate/prompt.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
from .mode import Mode from .document import Document Document.promptinput = '' class Prompt(Mode): def __init__(self, document, callback=None): Mode.__init__(self, document, callback) self.inputstring = '' self.start(document) def processinput(self, document, userinput): if i...
28.883721
55
0.573269
1,052
0.847021
0
0
0
0
0
0
89
0.071659
8218206b49510d2a8ddd9239bbd0591e170620c6
482
py
Python
examples/osb/app/model/comment.py
medecau/lamson
e78520b857384462b9eecdedfc0f8c2e57cdd00a
[ "BSD-3-Clause" ]
null
null
null
examples/osb/app/model/comment.py
medecau/lamson
e78520b857384462b9eecdedfc0f8c2e57cdd00a
[ "BSD-3-Clause" ]
null
null
null
examples/osb/app/model/comment.py
medecau/lamson
e78520b857384462b9eecdedfc0f8c2e57cdd00a
[ "BSD-3-Clause" ]
null
null
null
from lamson import queue def attach_headers(message, user_id, post_name, domain): """Headers are used later by the index.py handler to figure out where the message finally goes.""" message['X-Post-Name'] = post_name message['X-Post-User-ID'] = user_id message['X-Post-Domain'] = domain def defer_...
30.125
73
0.697095
0
0
0
0
0
0
0
0
205
0.425311
82186e13305a89984ea44c868e824fbefce44ba3
1,677
py
Python
tf2jax/_src/numpy_compat_test.py
deepmind/tf2jax
fb5388656344a7e5bb8e5635e82a3d93c7bc9d8c
[ "Apache-2.0" ]
6
2022-03-18T12:09:11.000Z
2022-03-26T14:16:35.000Z
tf2jax/_src/numpy_compat_test.py
deepmind/tf2jax
fb5388656344a7e5bb8e5635e82a3d93c7bc9d8c
[ "Apache-2.0" ]
null
null
null
tf2jax/_src/numpy_compat_test.py
deepmind/tf2jax
fb5388656344a7e5bb8e5635e82a3d93c7bc9d8c
[ "Apache-2.0" ]
1
2022-03-18T12:09:23.000Z
2022-03-18T12:09:23.000Z
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
33.54
80
0.692308
533
0.317829
0
0
483
0.288014
0
0
747
0.445438
821984511dee58e92708aa60fa96d6d0d20fe0cf
2,918
py
Python
mqtt_interface/mqtt_library/mqtt_client_py3.py
bopopescu/docker_images_a
348d0982c5962f2ae34d10183ed9522b7a6fe286
[ "MIT" ]
2
2018-02-21T03:46:51.000Z
2019-12-24T16:40:51.000Z
mqtt_interface/mqtt_library/mqtt_client_py3.py
bopopescu/docker_images_a
348d0982c5962f2ae34d10183ed9522b7a6fe286
[ "MIT" ]
7
2020-07-16T19:54:08.000Z
2022-03-02T03:29:07.000Z
mqtt_interface/mqtt_library/mqtt_client_py3.py
bopopescu/docker_images_a
348d0982c5962f2ae34d10183ed9522b7a6fe286
[ "MIT" ]
2
2018-04-16T07:02:35.000Z
2020-07-23T21:57:19.000Z
import paho.mqtt.client as mqtt import ssl import redis import time class MQTT_CLIENT(object): def __init__(self,redis_site_data,server,port,user_name,password_key): self.server = server self.port = port self.redis_site_data = redis_site_data self.client = mqtt.Client(clien...
32.422222
150
0.561343
2,370
0.8122
0
0
0
0
0
0
257
0.088074
8219bdf4aa36724d7acd9da5d6d73731f34ef6cd
979
py
Python
pyminer/network/filters.py
rbrecheisen/pyminer
c1b088cd9eddf0347b5c3e9354991374c7344a33
[ "Apache-2.0" ]
null
null
null
pyminer/network/filters.py
rbrecheisen/pyminer
c1b088cd9eddf0347b5c3e9354991374c7344a33
[ "Apache-2.0" ]
1
2015-05-15T12:06:25.000Z
2015-10-18T15:43:34.000Z
pyminer/network/filters.py
rbrecheisen/pyminer
c1b088cd9eddf0347b5c3e9354991374c7344a33
[ "Apache-2.0" ]
null
null
null
__author__ = 'Ralph' import pandas as pd from base import Node from base import InputPort from base import OutputPort class Filter(Node): def __init__(self, name): super(Filter, self).__init__(name) self.add_input_port( InputPort(name='input', data_type=pd.DataFrame)) self....
20.395833
62
0.659857
848
0.86619
0
0
0
0
0
0
88
0.089888
821a8e57cdc8b71c46b5b924928e6ffbc5170020
329
py
Python
delphi/apps/rest_api/__init__.py
mwdchang/delphi
c6177f2d614118883eaaa7f5300f3e46f10ddc7e
[ "Apache-2.0" ]
null
null
null
delphi/apps/rest_api/__init__.py
mwdchang/delphi
c6177f2d614118883eaaa7f5300f3e46f10ddc7e
[ "Apache-2.0" ]
null
null
null
delphi/apps/rest_api/__init__.py
mwdchang/delphi
c6177f2d614118883eaaa7f5300f3e46f10ddc7e
[ "Apache-2.0" ]
1
2019-07-18T19:13:13.000Z
2019-07-18T19:13:13.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(debug=False): from delphi.apps.rest_api.api import bp app = Flask(__name__) app.config.from_object("delphi.apps.rest_api.config") app.debug=debug db.init_app(app) app.register_blueprint(bp) re...
21.933333
57
0.735562
0
0
0
0
0
0
0
0
29
0.088146
821e77dee58f0bcdb435a5eecbf66592783bf963
4,524
py
Python
rob/robocopy.py
dan-osull/rob
25f2781cc5124570a04a48b56ec7d7f802b0650b
[ "MIT" ]
3
2022-02-08T20:10:21.000Z
2022-02-08T20:18:54.000Z
rob/robocopy.py
dan-osull/rob
25f2781cc5124570a04a48b56ec7d7f802b0650b
[ "MIT" ]
null
null
null
rob/robocopy.py
dan-osull/rob
25f2781cc5124570a04a48b56ec7d7f802b0650b
[ "MIT" ]
null
null
null
import os import subprocess from dataclasses import dataclass from pathlib import WindowsPath from time import sleep from typing import Optional, Sequence from click import ClickException from rich.progress import Progress import rob.console as con import rob.filesystem @dataclass class RobocopyResults: options...
34.8
90
0.6355
320
0.070734
0
0
331
0.073165
0
0
1,647
0.364058
821f4a58cdad24897457c7d61f286692df08d3ee
31,892
py
Python
code/resumesearch.py
outreachy/creative-works-and-scripts
8cac43a649aefaa793b91ac34ef73e20194ca22a
[ "CC-BY-4.0" ]
27
2019-07-18T04:44:29.000Z
2022-02-15T21:15:09.000Z
code/resumesearch.py
outreachy/creative-works-and-scripts
8cac43a649aefaa793b91ac34ef73e20194ca22a
[ "CC-BY-4.0" ]
5
2019-08-08T21:15:39.000Z
2022-02-22T01:38:55.000Z
code/resumesearch.py
outreachy/creative-works-and-scripts
8cac43a649aefaa793b91ac34ef73e20194ca22a
[ "CC-BY-4.0" ]
13
2020-01-13T11:38:45.000Z
2022-01-25T17:48:29.000Z
#!/usr/bin/env python3 # # Copyright 2017 Sarah Sharp <sharp@otter.technology> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
48.839204
271
0.62304
924
0.028973
0
0
0
0
0
0
15,781
0.494826
822032599db3ee1487dab68a324fbb6a098cbc67
6,292
py
Python
src/gui_L087 (for C1_PRO_X18 camera) PARFOCAL_DEMO/sweep.py
Kurokesu/SCF4-SDK
264437a9597885f4eae57e8a717ea2b15a04172e
[ "MIT" ]
13
2019-11-20T08:53:53.000Z
2021-12-21T14:05:37.000Z
src/gui_L087 (for C1_PRO_X18 camera) PARFOCAL_DEMO/sweep.py
Kurokesu/SCF4-SDK
264437a9597885f4eae57e8a717ea2b15a04172e
[ "MIT" ]
19
2020-08-09T05:24:03.000Z
2021-07-01T07:07:37.000Z
src/gui_L087 (for C1_PRO_X18 camera) PARFOCAL_DEMO/sweep.py
Kurokesu/SCF4-SDK
264437a9597885f4eae57e8a717ea2b15a04172e
[ "MIT" ]
3
2020-03-30T12:51:55.000Z
2021-08-09T11:22:29.000Z
import cv2 import os import serial import sys import scf4_tools import time import threading import camera import numpy as np from scipy.interpolate import interp1d from tqdm import tqdm CHB_MOVE = 7 CHA_MOVE = 6 CHB_PI = 4 CHA_PI = 3 def parse_data(data): out_x = [] out_y = [] for i in...
23.833333
90
0.687381
0
0
0
0
0
0
0
0
1,949
0.309758
8220698c204a1446ed030218727b2f760902286f
61
py
Python
echo_text_classifiers/__init__.py
nschaetti/PAN17-author-profiling
c1d1041bbdc4b631709b1cbc134c562fcff2b542
[ "Apache-2.0" ]
1
2022-03-07T15:45:06.000Z
2022-03-07T15:45:06.000Z
echo_text_classifiers/__init__.py
nschaetti/PAN17-author-profiling
c1d1041bbdc4b631709b1cbc134c562fcff2b542
[ "Apache-2.0" ]
null
null
null
echo_text_classifiers/__init__.py
nschaetti/PAN17-author-profiling
c1d1041bbdc4b631709b1cbc134c562fcff2b542
[ "Apache-2.0" ]
null
null
null
# Import from .EchoTextClassifier import EchoTextClassifier
15.25
50
0.852459
0
0
0
0
0
0
0
0
8
0.131148
82216f99b184a3762b1bf3acde24777396628147
5,053
py
Python
liquid_node/jobs/__init__.py
admariner/node
611795e17aa52c50795cb81c1ffebd641dcab51b
[ "MIT" ]
null
null
null
liquid_node/jobs/__init__.py
admariner/node
611795e17aa52c50795cb81c1ffebd641dcab51b
[ "MIT" ]
3
2021-11-10T11:08:14.000Z
2021-11-26T13:12:20.000Z
liquid_node/jobs/__init__.py
admariner/node
611795e17aa52c50795cb81c1ffebd641dcab51b
[ "MIT" ]
null
null
null
import subprocess import logging import os from pathlib import Path from ..docker import docker import jinja2 log = logging.getLogger(__name__) TEMPLATES = Path(__file__).parent.parent.parent.resolve() / 'templates' def set_volumes_paths(substitutions={}): """Sets the volumes paths in the job options :par...
34.141892
98
0.610133
144
0.028498
0
0
0
0
0
0
1,607
0.318029
82217d544e3cd1e38f1b553da33b7d271e94aff5
389
py
Python
morepath/tests/fixtures/method.py
DuncanBetts/morepath
acad10489b051df9c512f6735a9338854745a599
[ "BSD-3-Clause" ]
null
null
null
morepath/tests/fixtures/method.py
DuncanBetts/morepath
acad10489b051df9c512f6735a9338854745a599
[ "BSD-3-Clause" ]
null
null
null
morepath/tests/fixtures/method.py
DuncanBetts/morepath
acad10489b051df9c512f6735a9338854745a599
[ "BSD-3-Clause" ]
null
null
null
import morepath class app(morepath.App): pass class StaticMethod(object): pass class Root(object): def __init__(self): self.value = 'ROOT' @staticmethod @app.path(model=StaticMethod, path='static') def static_method(): return StaticMethod() @app.view(model=StaticMethod) ...
15.56
48
0.678663
263
0.676093
0
0
215
0.552699
0
0
29
0.07455
8222def448064d7e5190de17a9fd652126451dc7
1,035
py
Python
v8webconsole/webconsole/urls.py
zeerayne/1cv8-webconsole
3f562b5458ed6e6e221c7d78886a49f89b07e4f9
[ "MIT" ]
null
null
null
v8webconsole/webconsole/urls.py
zeerayne/1cv8-webconsole
3f562b5458ed6e6e221c7d78886a49f89b07e4f9
[ "MIT" ]
null
null
null
v8webconsole/webconsole/urls.py
zeerayne/1cv8-webconsole
3f562b5458ed6e6e221c7d78886a49f89b07e4f9
[ "MIT" ]
null
null
null
from django.urls import include from django.conf.urls import url from rest_framework.routers import SimpleRouter from rest_framework_nested.routers import NestedSimpleRouter from .views import ( HostViewSet, HostAdminViewSet, ClusterViewSet, InfobaseViewSet, ) host_router = SimpleRouter() host_router.r...
34.5
83
0.774879
0
0
0
0
0
0
0
0
141
0.136232
82240b4e497af879de2b8332d733c22fc5035c5f
6,292
py
Python
gifploter.py
Lupin1998/inv-ML
9f3db461911748292dff18024587538eb66d44bf
[ "MIT" ]
1
2021-12-14T09:16:17.000Z
2021-12-14T09:16:17.000Z
gifploter.py
Lupin1998/inv-ML
9f3db461911748292dff18024587538eb66d44bf
[ "MIT" ]
null
null
null
gifploter.py
Lupin1998/inv-ML
9f3db461911748292dff18024587538eb66d44bf
[ "MIT" ]
2
2021-12-14T09:10:00.000Z
2022-01-21T16:57:44.000Z
import matplotlib.pyplot as plt import imageio import os import numpy as np class GIFPloter(): def __init__(self, args, model): self.plot_method = 'Li' self.gif_axlist = [] self.clist = ['r', 'g', 'b', 'y', 'm', 'c', 'k', 'pink', 'lightblue', 'lightgreen', 'grey'] ...
37.230769
84
0.508423
6,213
0.987444
0
0
0
0
0
0
401
0.063732
8226023cb3139084f438cf9dfe3adae050279971
1,336
py
Python
violet.py
MasayukiTanaka0412/violet
9bc5bfab83902e6798e3b9ef679757f6cd58f900
[ "MIT" ]
null
null
null
violet.py
MasayukiTanaka0412/violet
9bc5bfab83902e6798e3b9ef679757f6cd58f900
[ "MIT" ]
null
null
null
violet.py
MasayukiTanaka0412/violet
9bc5bfab83902e6798e3b9ef679757f6cd58f900
[ "MIT" ]
null
null
null
import logging import os import win32com.client import pandas as pd logging.basicConfig(level=logging.INFO) templateName = "Template.msg" recipientsFile = "Recipients.xlsx" logging.info('Violet App Start') path = os.getcwd() logging.info('Current Directory {}'.format(path)) outlook = win32com.client.D...
29.688889
85
0.68488
0
0
0
0
0
0
0
0
192
0.142857
8226308b8a2c2e852acb6dff9db13ef1f87ee5ed
1,409
py
Python
app/routers/backlog.py
cristianwebber/FastApiTest
fe3c782bc4a3e9ff1e9ef5a38f20043f9577bd5e
[ "Apache-2.0" ]
null
null
null
app/routers/backlog.py
cristianwebber/FastApiTest
fe3c782bc4a3e9ff1e9ef5a38f20043f9577bd5e
[ "Apache-2.0" ]
null
null
null
app/routers/backlog.py
cristianwebber/FastApiTest
fe3c782bc4a3e9ff1e9ef5a38f20043f9577bd5e
[ "Apache-2.0" ]
null
null
null
from typing import List from fastapi import APIRouter from .. import database, schemas, models, oauth2 from sqlalchemy.orm import Session from fastapi import APIRouter, Depends, status from ..repository import backlog router = APIRouter(prefix="/backlog", tags=["Backlog"]) get_db = database.get_db @router.get("/", r...
24.719298
69
0.71895
0
0
0
0
1,090
0.773598
0
0
46
0.032647
82270abb34448de1d28c848049ee656003285eab
2,902
py
Python
cellrank/_key.py
WeilerP/cellrank
c8c2b9f6bd2448861fb414435aee7620ca5a0bad
[ "BSD-3-Clause" ]
172
2020-03-19T19:50:53.000Z
2022-03-28T09:36:04.000Z
cellrank/_key.py
WeilerP/cellrank
c8c2b9f6bd2448861fb414435aee7620ca5a0bad
[ "BSD-3-Clause" ]
702
2020-03-19T08:09:04.000Z
2022-03-30T09:55:14.000Z
cellrank/_key.py
WeilerP/cellrank
c8c2b9f6bd2448861fb414435aee7620ca5a0bad
[ "BSD-3-Clause" ]
17
2020-04-07T03:11:02.000Z
2022-02-02T20:39:16.000Z
from typing import Any, Callable, Optional class cprop: """Class property.""" def __init__(self, f: Callable[..., str]): self.f = f def __get__(self, obj: Any, owner: Any) -> str: return self.f(owner) class Key: """Class which manages keys in :class:`anndata.AnnData`.""" @clas...
27.903846
79
0.567884
2,853
0.983115
0
0
2,336
0.804962
0
0
612
0.210889
8227635dd4b63240fd4ce82b0583156b4ea9480c
510
py
Python
Tools/quantize-models.py
mihaip/solving-bee
bd45fa8414e6553e7a974b07bea4bad46183da71
[ "Apache-2.0" ]
2
2020-11-17T14:52:50.000Z
2021-04-04T20:43:40.000Z
Tools/quantize-models.py
mihaip/solving-bee
bd45fa8414e6553e7a974b07bea4bad46183da71
[ "Apache-2.0" ]
null
null
null
Tools/quantize-models.py
mihaip/solving-bee
bd45fa8414e6553e7a974b07bea4bad46183da71
[ "Apache-2.0" ]
1
2021-04-04T23:40:21.000Z
2021-04-04T23:40:21.000Z
#!/usr/local/bin/python3 import coremltools.models import coremltools.models.neural_network import os.path models_dir = os.path.join(os.path.dirname(__file__), "..", "Solving Bee", "Resources") for model_name in ["LettersModel", "BoardModel"]: model_path = os.path.join(models_dir, f"{model_name}.mlmodel") mod...
39.230769
108
0.77451
0
0
0
0
0
0
0
0
101
0.198039
8227caa8afc429ee4cb7a62a33c9415eba7a7d1a
4,718
py
Python
tests/test_vertex_color.py
aferrall/redner
be52e4105140f575f153d640ba889eb6e6015616
[ "MIT" ]
1,146
2018-11-11T01:47:18.000Z
2022-03-31T14:11:03.000Z
tests/test_vertex_color.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
177
2018-11-13T22:48:25.000Z
2022-03-30T07:19:29.000Z
tests/test_vertex_color.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
127
2018-11-11T02:32:17.000Z
2022-03-31T07:24:03.000Z
import pyredner import redner import numpy as np import torch import math # Example of optimizing vertex color of a sphere. # Use GPU if available pyredner.set_use_gpu(torch.cuda.is_available()) cam = pyredner.Camera(position = torch.tensor([0.0, 0.0, -5.0]), look_at = torch.tensor([0.0, 0.0, 0...
39.983051
109
0.708563
0
0
0
0
0
0
0
0
1,211
0.256677
8227d244a3f5042b87acfe74836b3be3d5794b53
10,066
py
Python
starterlite/simulation/GRF.py
gjsun/starterlite
4838c0b9837e0012157596984f9e39ed52f9c86c
[ "MIT" ]
null
null
null
starterlite/simulation/GRF.py
gjsun/starterlite
4838c0b9837e0012157596984f9e39ed52f9c86c
[ "MIT" ]
null
null
null
starterlite/simulation/GRF.py
gjsun/starterlite
4838c0b9837e0012157596984f9e39ed52f9c86c
[ "MIT" ]
null
null
null
import numpy as np import os from ..analysis import Sensitivity from ..physics import Cosmology from ..physics.Constants import c, cm_per_mpc from ..util.ParameterFile import ParameterFile from .FourierSpace import FourierSpace """ ------------ Instructions ------------ The GRF module allows the user to generate rea...
36.078853
137
0.597457
9,512
0.944963
0
0
2,552
0.253527
0
0
3,044
0.302404
8229233dd2ae5f0912a4213d1c4e8a168847a08a
3,679
py
Python
botpumpkin/discord/context.py
Anthrasite/BotPumpkin
99267a9cb3d263f5cd302ee548c49c59fafcce3f
[ "MIT" ]
null
null
null
botpumpkin/discord/context.py
Anthrasite/BotPumpkin
99267a9cb3d263f5cd302ee548c49c59fafcce3f
[ "MIT" ]
24
2021-03-08T00:28:13.000Z
2021-04-09T22:26:26.000Z
botpumpkin/discord/context.py
Anthrasite/BotPumpkin
99267a9cb3d263f5cd302ee548c49c59fafcce3f
[ "MIT" ]
null
null
null
"""A collection of utility functions for performing typing and error checking on discord.ext.commands.Context objects.""" from typing import List, Optional, Union # Third party imports import discord from discord.ext import commands # First party imports import botpumpkin.discord.guild as guild_util # *** get_guild...
36.068627
155
0.662136
0
0
0
0
0
0
0
0
2,291
0.622724
8229dbbb6f0052b556f0fa37fd3095bf537d9605
5,180
py
Python
fine_grid.py
daveweij/fine_mouse_grid_talon
d13d942f977d06d8f17d9a14988811bae69ac2cd
[ "MIT" ]
null
null
null
fine_grid.py
daveweij/fine_mouse_grid_talon
d13d942f977d06d8f17d9a14988811bae69ac2cd
[ "MIT" ]
null
null
null
fine_grid.py
daveweij/fine_mouse_grid_talon
d13d942f977d06d8f17d9a14988811bae69ac2cd
[ "MIT" ]
null
null
null
import typing import os import json from talon import Module, Context, canvas, screen, ui, ctrl, settings from talon.skia import Paint, Rect from talon.types.point import Point2d mod = Module() ctx = Context() mod.tag('fine_grid_enabled', desc='Tag enables fine grid commands') class FineMouseGrid: ZOOM_RATIO = ...
31.585366
92
0.570463
4,677
0.902896
0
0
960
0.185328
0
0
423
0.08166
822a62340464846a070b674b57e4a94852e76fd0
2,261
py
Python
molo/surveys/migrations/0014_update_skip_logic.py
praekelt/molo.surveys
c86d231f7cee669eb1c91db49ec05cf711984e30
[ "BSD-3-Clause" ]
null
null
null
molo/surveys/migrations/0014_update_skip_logic.py
praekelt/molo.surveys
c86d231f7cee669eb1c91db49ec05cf711984e30
[ "BSD-3-Clause" ]
88
2016-06-14T18:36:18.000Z
2018-09-21T07:33:58.000Z
molo/surveys/migrations/0014_update_skip_logic.py
praekeltfoundation/molo.surveys
c86d231f7cee669eb1c91db49ec05cf711984e30
[ "BSD-3-Clause" ]
1
2017-10-02T09:27:45.000Z
2017-10-02T09:27:45.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-10-11 13:10 from __future__ import unicode_literals from django.db import migrations import molo.surveys.blocks import wagtail.core.blocks class Migration(migrations.Migration): dependencies = [ ('surveys', '0013_add_streamfield_for_skip_logic...
62.805556
661
0.693941
2,057
0.909774
0
0
0
0
0
0
902
0.398939
822a641495e4387a0c1f14cf9ebd06d65a7a819c
7,355
py
Python
jdit/trainer/single/sup_single.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
28
2019-06-18T15:56:53.000Z
2021-11-09T13:11:13.000Z
jdit/trainer/single/sup_single.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
2
2018-10-24T01:09:56.000Z
2018-11-08T07:13:48.000Z
jdit/trainer/single/sup_single.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
8
2019-01-11T01:12:15.000Z
2021-03-12T10:15:43.000Z
from ..super import SupTrainer from tqdm import tqdm import torch from jdit.optimizer import Optimizer from jdit.model import Model from jdit.dataset import DataLoadersFactory class SupSingleModelTrainer(SupTrainer): """ This is a Single Model Trainer. It means you only have one model. input, gound_tr...
37.146465
116
0.562882
7,180
0.975676
0
0
0
0
0
0
4,226
0.574263
822adefd2d61243c8a6b7d51a859f435ee02768e
1,433
py
Python
Gold/sol.py
papachristoumarios/IEEEXtreme11.0
4c3b5aaa71641a6d0b3e9823c4738050f2553b27
[ "MIT" ]
13
2018-10-11T14:13:56.000Z
2022-02-17T18:30:17.000Z
Gold/sol.py
papachristoumarios/IEEEXtreme11.0-PComplete
4c3b5aaa71641a6d0b3e9823c4738050f2553b27
[ "MIT" ]
null
null
null
Gold/sol.py
papachristoumarios/IEEEXtreme11.0-PComplete
4c3b5aaa71641a6d0b3e9823c4738050f2553b27
[ "MIT" ]
7
2018-10-24T08:36:59.000Z
2021-07-19T18:16:53.000Z
import heapq import sys primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53] bounds = [1] for pr in primes: bounds.append(bounds[-1]*pr) def gold(town_id): i = 0 while bounds[i] <= town_id: i += 1 return i - 1 def solve(): N, M = [int(i) for i in raw_input().split()] ...
26.537037
93
0.551291
0
0
0
0
0
0
0
0
10
0.006978
822bbf9836e86e5cf6fb48c971df002aa5f8085b
511
py
Python
src/wechat/settings.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
3
2019-06-17T10:54:03.000Z
2021-01-29T08:25:01.000Z
src/wechat/settings.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
2
2020-03-24T15:46:37.000Z
2020-03-30T20:26:19.000Z
src/wechat/settings.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 from .utils import build_user_agent # common DEFAULT_HEADERS = { 'User-Agent': build_user_agent() } TIMEOUT = 1 ENCODING = 'utf-8' RETRYS = 3 RETRY_BACKOFF_FACTOR = 0.1 RETRY_STATUS_FORCELIST = frozenset([500, 502, 504]) # auth OAUTH_HOST = 'open.weixin.qq.com' AUTH_EXPIRED_CODES = froz...
17.033333
60
0.712329
0
0
0
0
0
0
0
0
146
0.273921
822c0a167631eafd04070f9a246d9fdcf6b1dbe4
533
py
Python
esp32/tempsensor/boot.py
Steve-Fisher/PiExperiments
81a08b99b53ed9921353cf436b09b40650032a2b
[ "MIT" ]
null
null
null
esp32/tempsensor/boot.py
Steve-Fisher/PiExperiments
81a08b99b53ed9921353cf436b09b40650032a2b
[ "MIT" ]
null
null
null
esp32/tempsensor/boot.py
Steve-Fisher/PiExperiments
81a08b99b53ed9921353cf436b09b40650032a2b
[ "MIT" ]
null
null
null
try: import usocket as socket except: import socket from time import sleep from machine import Pin import onewire, ds18x20 import network import esp esp.osdebug(None) import gc gc.collect() ds_pin = Pin(4) ds_sensor = ds18x20.DS18X20(onewire.OneWire(ds_pin)) ssid = 'ATC24' password = 'Svalbard' station = n...
15.228571
52
0.756098
0
0
0
0
0
0
0
0
66
0.123827
822c63b5e55693f8beb5a21c86e5722b43fcabfd
1,070
py
Python
leetcode/0242_valid_anagram.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0242_valid_anagram.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0242_valid_anagram.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
""" Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Example 2: Input: s = "rat", t = "car" Output: false Note: You may assume the string contains only lowercase alphabets. Follow up: What if the i...
22.291667
98
0.507477
628
0.586916
0
0
0
0
0
0
417
0.38972
822e6649f5126724e28587501bc18c3cf971a81b
4,144
py
Python
phpcsfixer.py
makao/sublime-php-cs-fixer
ff3227a2877a3e59c5bf9fc6e10f7aef56db8ef5
[ "MIT" ]
1
2018-11-26T19:42:41.000Z
2018-11-26T19:42:41.000Z
phpcsfixer.py
makao/sublime-php-cs-fixer
ff3227a2877a3e59c5bf9fc6e10f7aef56db8ef5
[ "MIT" ]
2
2018-01-10T05:15:08.000Z
2018-12-04T15:41:29.000Z
phpcsfixer.py
makao/sublime-php-cs-fixer
ff3227a2877a3e59c5bf9fc6e10f7aef56db8ef5
[ "MIT" ]
null
null
null
import os import re import sublime import sublime_plugin import subprocess STVER = int(sublime.version()) class PHPCSFixer(): def __init__(self): self.settings = PhpCsFixerSettings() if sublime.active_window() is not None and sublime.active_window().active_view() is not None: self.file...
27.812081
112
0.600386
4,025
0.971284
0
0
509
0.122828
0
0
345
0.083253
8231b27b0d3005be97ff413b652254876cb7dd03
686
py
Python
src/dal/deleter.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
1
2018-03-26T22:39:36.000Z
2018-03-26T22:39:36.000Z
src/dal/deleter.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
null
null
null
src/dal/deleter.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
null
null
null
class Deleter: #################################################################################################################### # Constructor. #################################################################################################################### def __init__(self, db_context): ...
29.826087
120
0.355685
685
0.998542
0
0
0
0
0
0
490
0.714286
8231f730c04eb4d6e810e9c69386be194b173415
16,027
py
Python
main.py
PlumpMath/Panda3DCraft
7bf5b658af7809249c6bc78d059506e738546812
[ "MIT" ]
1
2021-08-07T14:05:27.000Z
2021-08-07T14:05:27.000Z
main.py
PlumpMath/Panda3DCraft
7bf5b658af7809249c6bc78d059506e738546812
[ "MIT" ]
null
null
null
main.py
PlumpMath/Panda3DCraft
7bf5b658af7809249c6bc78d059506e738546812
[ "MIT" ]
1
2021-08-15T14:50:47.000Z
2021-08-15T14:50:47.000Z
from panda3d.core import * from direct.gui.DirectGui import * from direct.showbase.ShowBase import ShowBase from noise import snoise2 import os import random from Block import * loadPrcFile('config/general.prc') if __debug__: loadPrcFile('config/dev.prc') base = ShowBase() octavesElev = 5 octavesRough = 2 octav...
45.274011
217
0.608099
8,948
0.558308
0
0
0
0
0
0
1,950
0.12167
8234be85b1a5c920b993e015367a06c4e394d65b
11,961
py
Python
main.py
iTecAI/minecraft-socket
72f3bbc4fb20bea4b837d093c734eab2798de89d
[ "MIT" ]
null
null
null
main.py
iTecAI/minecraft-socket
72f3bbc4fb20bea4b837d093c734eab2798de89d
[ "MIT" ]
null
null
null
main.py
iTecAI/minecraft-socket
72f3bbc4fb20bea4b837d093c734eab2798de89d
[ "MIT" ]
null
null
null
from json.decoder import JSONDecodeError from fastapi import FastAPI, Response, Request from fastapi.staticfiles import StaticFiles from argparse import ArgumentParser from starlette.status import * from starlette.responses import FileResponse, JSONResponse import uvicorn import os from pymongo import MongoClient from ...
38.214058
142
0.621269
0
0
0
0
8,848
0.739737
8,436
0.705292
3,441
0.287685
8235474f3f587b0e7b47abaf477920cd055a7941
82
py
Python
weather/weatherapi/key.py
Stephen-Kamau/Weather_Api
b9d70f564fe055dc1400dc49d856eed95a9603ee
[ "MIT" ]
1
2020-07-30T12:48:17.000Z
2020-07-30T12:48:17.000Z
weather/weatherapi/key.py
Stephen-Kamau/Weather_Api
b9d70f564fe055dc1400dc49d856eed95a9603ee
[ "MIT" ]
null
null
null
weather/weatherapi/key.py
Stephen-Kamau/Weather_Api
b9d70f564fe055dc1400dc49d856eed95a9603ee
[ "MIT" ]
null
null
null
#my open weather api key to access the resourses api_key = "enter your key here"
20.5
48
0.756098
0
0
0
0
0
0
0
0
69
0.841463
82371535c737935c03e91ede47e391e948acafe2
567
py
Python
docs/source/examples/simple_sp.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
docs/source/examples/simple_sp.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
docs/source/examples/simple_sp.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
"""Adapted from t_SP in tests/t_geometric_program.py""" import gpkit # Decision variables x = gpkit.Variable('x') y = gpkit.Variable('y') # must enable signomials for subtraction with gpkit.SignomialsEnabled(): constraints = [x >= 1-y, y <= 0.1] # create and solve the SP m = gpkit.Model(x, constraints) print(m.l...
28.35
79
0.705467
0
0
0
0
0
0
0
0
255
0.449735
8237ae1f3b2386a6d8ebda2469e470afeb0c3eb1
140
py
Python
cride/circles/urls.py
jgmc3012/cride
19401b5c19aa706c9928c12195fd8303d75f1d49
[ "MIT" ]
null
null
null
cride/circles/urls.py
jgmc3012/cride
19401b5c19aa706c9928c12195fd8303d75f1d49
[ "MIT" ]
5
2020-06-30T21:41:49.000Z
2021-09-08T02:15:04.000Z
cride/circles/urls.py
jmillandev/cride
19401b5c19aa706c9928c12195fd8303d75f1d49
[ "MIT" ]
null
null
null
from django.urls import path from cride.circles.views import ListCreateAPIView urlpatterns = [ path('', ListCreateAPIView.as_view()) ]
20
49
0.764286
0
0
0
0
0
0
0
0
2
0.014286
8237d91bd367fa37819ecabb2d7d852f0f4245f3
550
py
Python
aula075.py
juniorpedroso/CFBCursos
88657d6aad38de7d41e76499f0ff4d85a02745ae
[ "MIT" ]
null
null
null
aula075.py
juniorpedroso/CFBCursos
88657d6aad38de7d41e76499f0ff4d85a02745ae
[ "MIT" ]
null
null
null
aula075.py
juniorpedroso/CFBCursos
88657d6aad38de7d41e76499f0ff4d85a02745ae
[ "MIT" ]
null
null
null
# Aula 75 - SpinBox from tkinter import * app = Tk() app.title('Pedroso') app.geometry('500x300') def exibirValor(): vvalor = sb_valores.get() l_valor.config(text=vvalor) # sb_valores = Spinbox(app, from_=0, to=10) # Os valores podem ser informados por uma faixa, como acima, # ou como abaixo, em uma tupla...
19.642857
69
0.705455
0
0
0
0
0
0
0
0
190
0.345455
823a986d979638441ae38a1104614b823b72f2d7
3,922
py
Python
src/data/dataset_utils.py
GuillaumeBarree/challenge-ENS
50f1faa58be50a7c8cbd6078b4495679fd112c05
[ "MIT" ]
null
null
null
src/data/dataset_utils.py
GuillaumeBarree/challenge-ENS
50f1faa58be50a7c8cbd6078b4495679fd112c05
[ "MIT" ]
null
null
null
src/data/dataset_utils.py
GuillaumeBarree/challenge-ENS
50f1faa58be50a7c8cbd6078b4495679fd112c05
[ "MIT" ]
null
null
null
"""This file contains all functions related to the dataset.""" # pylint: disable=import-error import os import tqdm import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from torch.utils.data import Dataset class RegressionDataset(Dataset): """Create a Torch Dataset for our ...
26.863014
92
0.661652
338
0.086181
0
0
0
0
0
0
1,660
0.423253
823c37e204f339ffbed684b109b1de9e326b50a2
65
py
Python
gemlog_from_rss/spip/__init__.py
Hookz/Gemlog-from-RSS
b57a311db3008e8b0df2442236c4729a06d9b74d
[ "MIT" ]
1
2021-02-19T16:06:07.000Z
2021-02-19T16:06:07.000Z
gemlog_from_rss/spip/__init__.py
Hookz/Gemlog-from-RSS
b57a311db3008e8b0df2442236c4729a06d9b74d
[ "MIT" ]
null
null
null
gemlog_from_rss/spip/__init__.py
Hookz/Gemlog-from-RSS
b57a311db3008e8b0df2442236c4729a06d9b74d
[ "MIT" ]
null
null
null
from .content import SinglePost from .page import Page, MainPage
21.666667
32
0.815385
0
0
0
0
0
0
0
0
0
0
8240cdb3f22524daceb3ca1aaf3cf523bd2c0df4
12,619
py
Python
poseidon/ui/mobile/android/base_page.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2019-12-27T09:14:38.000Z
2019-12-27T09:16:29.000Z
poseidon/ui/mobile/android/base_page.py
CodeMonkey4Fun/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2021-03-31T20:06:21.000Z
2021-12-13T20:48:16.000Z
poseidon/ui/mobile/android/base_page.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
1
2020-11-13T07:37:01.000Z
2020-11-13T07:37:01.000Z
# coding=utf-8 """ @author:songmengyun @file: base_page.py @time: 2020/01/03 """ import time import logging from selenium.webdriver.common.by import By from appium.webdriver.common.touch_action import TouchAction from selenium.webdriver.support.wait import WebDriverWait from appium.webdriver.mobilecommand import Mob...
29.902844
113
0.576908
13,260
0.960104
0
0
3,331
0.241185
0
0
3,907
0.28289
8240d9157af0d451e4630f0ef6ada12168952405
1,957
py
Python
tests/test_models/test_task_error.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
6
2015-01-28T05:59:08.000Z
2018-01-09T07:48:57.000Z
tests/test_models/test_task_error.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
2
2020-05-09T16:36:43.000Z
2020-05-09T16:52:35.000Z
tests/test_models/test_task_error.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
1
2016-01-13T07:19:44.000Z
2016-01-13T07:19:44.000Z
import celery from nose.tools import assert_equal, assert_true from datetime import datetime from wikimetrics.models import TaskErrorStore, ReportStore from ..fixtures import DatabaseTest class TaskErrorStoreTest(DatabaseTest): def setUp(self): DatabaseTest.setUp(self) self.report = ReportStore(...
39.938776
83
0.66326
1,765
0.901891
0
0
0
0
0
0
316
0.161472
82416465e002cce6e0e1cf4af62bd2ddea23d8ff
545
py
Python
apps/puzzles/migrations/0004_metapuzzle_description.py
madjaqk/puzzle_master_v2
e50b0f02abbf32aebe9583152bd9a5b43f5da7d7
[ "MIT" ]
null
null
null
apps/puzzles/migrations/0004_metapuzzle_description.py
madjaqk/puzzle_master_v2
e50b0f02abbf32aebe9583152bd9a5b43f5da7d7
[ "MIT" ]
8
2020-02-07T04:11:07.000Z
2022-02-10T07:04:57.000Z
apps/puzzles/migrations/0004_metapuzzle_description.py
madjaqk/puzzle_master_v2
e50b0f02abbf32aebe9583152bd9a5b43f5da7d7
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-20 04:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('puzzles', '0003_auto_20171219_2002'), ] operations = [ migrations.AddField( model_name='metapuzzle', name='description...
27.25
168
0.647706
454
0.833028
0
0
0
0
0
0
227
0.416514
8243b500985cbd67fd910c97e1596597cb663eae
958
py
Python
cogs/testing.py
classerase/Stand-Arrow
89183c266913af889dabb68f4d0c39153875f7da
[ "MIT" ]
2
2020-06-03T20:48:09.000Z
2020-06-04T04:29:06.000Z
cogs/testing.py
BrianDehlinger/Stand-Arrow
150cb741c73a244a88ce1cbcb21c71753848bbc6
[ "MIT" ]
2
2020-06-15T18:28:17.000Z
2020-06-17T20:44:43.000Z
cogs/testing.py
BrianDehlinger/Stand-Arrow
150cb741c73a244a88ce1cbcb21c71753848bbc6
[ "MIT" ]
1
2020-06-03T20:48:07.000Z
2020-06-03T20:48:07.000Z
from discord.ext import commands class Testing(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def who(self, ctx): author = ctx.author await ctx.send(f"Hello {author}") @commands.command() async def debug_free_cash(self, ctx): auth...
30.903226
66
0.605428
922
0.962422
0
0
824
0.860125
752
0.784969
201
0.209812
8244b7448ffcff5ecfd5351a2381a04f5d6caaae
2,577
py
Python
docker/d-streamon-master/d-streamon/streamon/scripts/attacks/generate.py
ferrarimarco/open-scissor
d54718a1969701798f3e2d57f3db68d829da1cc0
[ "Apache-2.0" ]
2
2017-12-02T10:38:05.000Z
2018-04-22T17:15:01.000Z
docker/d-streamon-master/d-streamon/streamon/scripts/attacks/generate.py
scissor-project/open-scissor
d54718a1969701798f3e2d57f3db68d829da1cc0
[ "Apache-2.0" ]
67
2017-11-11T15:22:34.000Z
2018-04-24T06:44:59.000Z
docker/d-streamon-master/d-streamon/streamon/scripts/attacks/generate.py
ferrarimarco/open-scissor
d54718a1969701798f3e2d57f3db68d829da1cc0
[ "Apache-2.0" ]
1
2017-12-07T08:18:49.000Z
2017-12-07T08:18:49.000Z
import random def generateRandomIndex(inputlist): '''(list of str)->str''' return random.choice(inputlist) def readHostFile(fileToPen): '''(str)->list of str''' lines=open(fileToPen,'r') line=lines.readlines() listOfHost=[] for i in line: listOfHost.append(i.strip()) s = ...
21.297521
104
0.593326
0
0
0
0
0
0
0
0
755
0.292976
824559f16f34aa0ee165bce06fd9bf7a0fa99749
73
py
Python
src/base/__init__.py
Gloryness/tassomai-automation
2deef60f6b1a7640afe8c78937f1fd0088e6051c
[ "MIT" ]
34
2020-09-20T12:02:00.000Z
2022-03-22T01:46:28.000Z
src/base/__init__.py
Gloryness/tassomai-automation
2deef60f6b1a7640afe8c78937f1fd0088e6051c
[ "MIT" ]
65
2020-11-11T17:04:15.000Z
2022-03-25T15:41:15.000Z
src/base/__init__.py
Gloryness/tassomai-automation
2deef60f6b1a7640afe8c78937f1fd0088e6051c
[ "MIT" ]
13
2020-11-08T11:26:53.000Z
2022-03-22T01:46:29.000Z
__title__ = 'base' __author__ = 'Gloryness' __license__ = 'MIT License'
14.6
27
0.726027
0
0
0
0
0
0
0
0
30
0.410959
8245c0a9780a132093308307ffdd47c661336825
20,282
py
Python
study_analyzer.py
CogStack/SemEHR-kconnect
8cfd48e358294e588575e24ccbb566f4f508b5d5
[ "Apache-2.0" ]
64
2018-04-23T02:59:45.000Z
2022-03-28T22:48:38.000Z
study_analyzer.py
CogStack/SemEHR-kconnect
8cfd48e358294e588575e24ccbb566f4f508b5d5
[ "Apache-2.0" ]
2
2018-07-16T10:33:38.000Z
2019-02-22T16:22:17.000Z
study_analyzer.py
CogStack/SemEHR-kconnect
8cfd48e358294e588575e24ccbb566f4f508b5d5
[ "Apache-2.0" ]
17
2018-06-05T17:36:55.000Z
2022-03-09T04:04:11.000Z
import ontotextapi as onto import utils import json from os.path import isfile, join, split import joblib as jl import cohortanalysis as cohort from ann_post_rules import AnnRuleExecutor import sys import xml.etree.ElementTree as ET import concept_mapping import urllib3 import logging class StudyConcept(object): ...
43.805616
121
0.601124
9,421
0.464501
0
0
2,235
0.110196
0
0
3,482
0.171679
8245cf950c7faf9f93224170dad96f903d0f0be0
2,603
py
Python
scripts/create_fluseverity_figs_v5/S_deltaILIpercent_time_CDCbaseline_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
3
2018-03-29T23:02:43.000Z
2020-08-10T12:01:50.000Z
scripts/create_fluseverity_figs_v5/S_deltaILIpercent_time_CDCbaseline_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
scripts/create_fluseverity_figs_v5/S_deltaILIpercent_time_CDCbaseline_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 1/25/15 ###Function: time series difference in ILI percentage from CDC-based ILI baseline calculation ###Import data: SQL_export/OR_allweeks_outpatient.csv, anydiag_allweeks_outpatient.csv ###Command...
40.046154
286
0.726854
0
0
0
0
0
0
0
0
1,628
0.625432
8246faf773d4f1bfd0da404df98ee155653febc9
4,328
py
Python
sentrylogs/bin/sentrylogs.py
hossein/sentrylogs
70eaf665f9010ba2d8370ccc4013673bab7e2b16
[ "BSD-3-Clause" ]
32
2015-07-01T11:12:32.000Z
2021-09-04T23:58:27.000Z
sentrylogs/bin/sentrylogs.py
hossein/sentrylogs
70eaf665f9010ba2d8370ccc4013673bab7e2b16
[ "BSD-3-Clause" ]
37
2016-05-27T13:55:24.000Z
2022-02-24T14:55:58.000Z
sentrylogs/bin/sentrylogs.py
hossein/sentrylogs
70eaf665f9010ba2d8370ccc4013673bab7e2b16
[ "BSD-3-Clause" ]
15
2015-10-14T14:20:23.000Z
2021-12-03T08:49:15.000Z
#!/usr/bin/env python """Standalone script for Sentry Logs""" from __future__ import print_function import os import argparse try: from configparser import ConfigParser except ImportError: # Python 2.7 from ConfigParser import ConfigParser # pylint: disable=import-error # Ignore warnings caused by ``sentr...
37.310345
81
0.606978
0
0
0
0
0
0
0
0
1,619
0.374076
412e848b7e0488d32c3276f0473edaef8c8bebb6
4,834
py
Python
scripts/figures/gene_abundance.py
vic-cheung/vectorseq
6f1aaeb3035c3c939b442e30076504ff84e43aa5
[ "MIT" ]
1
2022-03-30T19:56:43.000Z
2022-03-30T19:56:43.000Z
scripts/figures/gene_abundance.py
vic-cheung/vectorseq
6f1aaeb3035c3c939b442e30076504ff84e43aa5
[ "MIT" ]
null
null
null
scripts/figures/gene_abundance.py
vic-cheung/vectorseq
6f1aaeb3035c3c939b442e30076504ff84e43aa5
[ "MIT" ]
null
null
null
#%% import scanpy as sc import pandas as pd from pathlib import Path from vectorseq.utils import check_gene_abundance, create_dir from vectorseq.marker_constants import BrainGenes data_dir = Path("/spare_volume/vectorseq-data") figure_save_dir = create_dir(data_dir / "gene_abundance") #%% [markdown] # ## Gene Abundan...
30.402516
141
0.646463
0
0
0
0
0
0
0
0
1,484
0.306992
41309aa7b95e9754a43f4174cd8bb81a323ae14b
9,102
py
Python
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
1
2019-07-19T20:03:00.000Z
2019-07-19T20:03:00.000Z
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib import rcParams rcParams['font.family'] = 'sans-serif' rcParams['font.sans-serif'] = ['Cantarell'] import matplotlib.pyplot as plt import matplotlib.p...
33.340659
128
0.614041
8,683
0.953966
0
0
0
0
0
0
3,958
0.434849
4130f4d682db7205fa5d7279b9c35cacaaafe8cb
319
py
Python
framework/core/error_views.py
ravique/otus-framework
46a519ff4b64c2be7fc23f8f43eefdd3b0c94512
[ "MIT" ]
null
null
null
framework/core/error_views.py
ravique/otus-framework
46a519ff4b64c2be7fc23f8f43eefdd3b0c94512
[ "MIT" ]
null
null
null
framework/core/error_views.py
ravique/otus-framework
46a519ff4b64c2be7fc23f8f43eefdd3b0c94512
[ "MIT" ]
1
2019-06-28T21:08:55.000Z
2019-06-28T21:08:55.000Z
from framework.core.template_handlers import env, render_template def not_found_view(request, **kwargs): return 'Page not found :(' def forbidden_view(request, **kwargs): context = kwargs.get('context') template = env.get_template('forbidden.html') return render_template(template, context=context)
26.583333
65
0.746082
0
0
0
0
0
0
0
0
44
0.137931
413328f9159158b7e73d6e4e594f24dbc66f5d32
358
py
Python
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
import pygame import os class Speed: def __init__(self,X): self.X = X self.Y = 700 self.image = pygame.image.load(os.path.join("img/speed_power_up.png")) self.image = pygame.transform.scale(self.image, (55, 55)) def update_and_draw(self,screen): scr...
27.538462
79
0.594972
330
0.921788
0
0
0
0
0
0
24
0.067039
4133f8869dd2769312a3bb4f13caa9cc3c94d267
821
py
Python
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
36
2019-07-14T16:10:37.000Z
2022-03-29T10:11:03.000Z
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
3
2019-10-09T15:11:13.000Z
2021-07-31T02:17:43.000Z
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
14
2019-08-29T14:11:54.000Z
2022-03-06T13:41:56.000Z
import tensorflow as tf def resize_bilinear(x, shape): """ Raises a warning if tensorflow version is too in order to buggy behavior References ---------- [1]: https://github.com/tensorflow/tensorflow/issues/6720 [2]: https://github.com/tensorflow/tensorflow/issues/33691 """ tf_version...
34.208333
76
0.665043
0
0
0
0
0
0
0
0
318
0.387333
41347176b216823b2850da2216f2fdd2a2569240
1,746
py
Python
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
# coding: utf-8 import time import random import logging from celery import Task from banal import ensure_list from normality import stringify from pkg_resources import iter_entry_points log = logging.getLogger(__name__) EXTENSIONS = {} def get_extensions(section): if section not in EXTENSIONS: EXTENSION...
26.059701
73
0.623711
148
0.084765
0
0
0
0
0
0
277
0.158648
4134733b100980a0fe17da1135eb9bebe76ac9be
495
py
Python
psola/utilities/find.py
diguo2046/psola
a45fff605c4ea75145deb4a316924026bf278f85
[ "MIT" ]
43
2018-05-23T05:45:28.000Z
2021-11-28T08:11:01.000Z
psola/utilities/find.py
diguo2046/psola
a45fff605c4ea75145deb4a316924026bf278f85
[ "MIT" ]
null
null
null
psola/utilities/find.py
diguo2046/psola
a45fff605c4ea75145deb4a316924026bf278f85
[ "MIT" ]
15
2018-05-16T04:59:30.000Z
2021-05-16T08:57:37.000Z
#!/usr/bin/env python """ psola.utilities.find Implements a function that sort-of works like MATLAB's find This is preferable to importing `find' from pylab, IMO Author: jreinhold Created on: Aug 18, 2017 """ import numpy as np def find(x): """ kind-of mimics the find command in matlab, really created ...
18.333333
59
0.660606
0
0
0
0
0
0
0
0
418
0.844444
4136db303bfc69cac0328040053f475ee2387084
20,461
py
Python
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
"""This module downloads all photos/videos from tadpole to a local folder.""" import os from os.path import abspath, dirname, join, isfile, isdir import re import sys import json import time import pickle import logging import logging.config from random import randrange from getpass import getpass from configparser i...
39.272553
129
0.589903
18,843
0.920923
4,137
0.20219
108
0.005278
0
0
5,923
0.289478
4137ed760291cec3e1fabbc437a8f67ebd69c0e3
1,598
py
Python
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
789
2021-11-12T16:12:21.000Z
2022-03-28T05:45:19.000Z
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
84
2021-11-12T22:23:50.000Z
2022-03-29T01:06:06.000Z
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
114
2021-11-12T16:00:57.000Z
2022-03-27T21:32:31.000Z
# Copyright 2021 AlQuraishi Laboratory # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
29.592593
74
0.652691
820
0.513141
0
0
0
0
0
0
583
0.364831
4138061cddec526c0c1ef724b4f3f7ed6a87b8dc
17,315
py
Python
server/src/textannotations.py
sandernaert/brat
6468258fcb0f83e092169d8c7e88a036077aab5c
[ "CC-BY-3.0" ]
1
2017-09-25T20:53:58.000Z
2017-09-25T20:53:58.000Z
server/src/textannotations.py
sandernaert/brat
6468258fcb0f83e092169d8c7e88a036077aab5c
[ "CC-BY-3.0" ]
null
null
null
server/src/textannotations.py
sandernaert/brat
6468258fcb0f83e092169d8c7e88a036077aab5c
[ "CC-BY-3.0" ]
null
null
null
from projectconfig import TypeHierarchyNode, ProjectConfiguration from annotation import Annotations,TextLevelAnnotation, SimpleAnnotations from message import Messager from ApplicationScope import getAnnObject class NoTextLevelConf(Exception): def __init__(self): Exception.__init__(self) def __str__(s...
38.222958
119
0.583483
8,926
0.515507
0
0
0
0
0
0
3,547
0.204851
4138547503fa6fe8d1074b5b2c7712299cb4ca8e
55
py
Python
Python Scripts/lesson_137_main.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
Python Scripts/lesson_137_main.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
Python Scripts/lesson_137_main.py
jessequinn/udemy_python_complete
b97e657dea2a8680557949f01ac80d3230c82c41
[ "MIT" ]
null
null
null
a =3 b = "tim" c = 1, 2, 3 print(a) print(b) print(c)
6.875
11
0.509091
0
0
0
0
0
0
0
0
5
0.090909
4138a7bccc894c41843ad8dd0583587c67038959
1,466
py
Python
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
2
2019-09-23T18:42:12.000Z
2019-09-30T04:17:10.000Z
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
12
2019-02-20T18:38:25.000Z
2022-03-13T02:32:57.000Z
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
1
2020-01-14T17:26:33.000Z
2020-01-14T17:26:33.000Z
import pandas as pd import numpy as np import math from dust_extinction.parameter_averages import F19 def extinction_adjustment(rv): len_wave=len(sn_templ['Wavelength']) wavenum_waves = [1/(a/10000) for a in sn_templ['Wavelength']] ext_model = F19(Rv=rv) return(pd.Series(ext_model(wavenum_waves))) ...
28.745098
112
0.677353
0
0
0
0
0
0
0
0
337
0.229877
413b8b891d2f44221bdddfd4cafbe2d545ac748d
4,076
py
Python
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function # Copyright (C) 2015 Vibhav Pant <vibhavp@gmail.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 Foundation; either version 2 of the License...
34.837607
96
0.639352
0
0
0
0
0
0
0
0
1,256
0.308145
413c30019b7152204c51cd4030495eeb971c8934
2,472
py
Python
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path from sltxpkg import globals as sg from sltxpkg import util as su from sltxpkg.globals import (C_CACHE_DIR, C_CREATE_DIRS, C_DOWNLOAD_DIR, C_DRIVER_LOG, C_TEX_HOME, C_WORKING_DIR) from sltxpkg.log_control import LOGGER from sltxpkg.types import ...
32.96
91
0.636327
0
0
0
0
0
0
0
0
600
0.242718
413c68cef2a9cdf443fb29e050740dc6fceb6953
2,896
py
Python
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 24 21:32:11 2020 @author: kw """ import glob import os, random, struct import getpass from Cryptodome.Cipher import AES class makeMyRansomware: def __init__(self, your_extension=".Example", key=b'keyfor16bytes123', username=getpass.getuser())...
33.287356
103
0.564917
2,450
0.845994
0
0
0
0
0
0
268
0.092541
413c7bf5865a56e3f581e75a1fa2f6a01c3109a4
4,756
py
Python
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
9
2019-05-19T14:00:03.000Z
2019-05-21T14:19:56.000Z
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
8
2019-05-20T12:29:08.000Z
2022-02-10T11:06:55.000Z
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
1
2019-05-20T07:04:20.000Z
2019-05-20T07:04:20.000Z
import uuid from django.contrib.auth.models import User from django.db import models from django.urls import reverse from django.core.validators import MaxValueValidator, MinValueValidator, RegexValidator from landing.models import Profile class Specialisation(models.Model): class Meta: ordering = ('id',...
39.305785
114
0.625526
4,503
0.946804
0
0
0
0
0
0
512
0.107653
413d8e7168ec81d7fbf240777114a40652b16b3b
409
py
Python
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
import os import json json_files = set() errors = set() dir = "extracted/json/" for file in os.listdir(dir): if ".json" in file: json_files.add(file) with open(dir + file, "r") as f: j = json.loads("".join(f.read())) if j["entities"] == {} or j["text"] == "": ...
22.722222
67
0.545232
0
0
0
0
0
0
0
0
74
0.180929
413ea01cee609cb192107f94528569476162e9b2
29,112
py
Python
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
2
2017-06-20T15:20:46.000Z
2019-11-18T01:28:49.000Z
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
null
null
null
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
null
null
null
__author__ = 'rcj1492' __created__ = '2016.03' __license__ = 'MIT' from labpack.handlers.requests import requestsHandler class dockerClient(requestsHandler): _class_fields = { 'schema': { 'virtualbox_name': '', 'container_alias': '', 'image_name': '', ...
36.897338
182
0.561384
27,626
0.948956
0
0
0
0
0
0
10,986
0.37737
413f75cca22078b8921f0960e0731176326021d4
947
py
Python
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd def load_data(dataset='training', path='../data_processed/'): return pd.read_pickle(path + dataset + '_set.pkl') def process_files_to_mfccs(dataset='training', path='../data_processed/', target_column='mfccs'): df = load_data(dataset=dataset, path=path) labels, file...
37.88
114
0.669483
0
0
0
0
0
0
0
0
279
0.294615
414012d7a8b9a151ce80cbbbd219f43643543cf6
1,395
py
Python
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
2
2017-12-02T12:14:10.000Z
2020-09-30T17:49:37.000Z
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
null
null
null
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mnowotka' import sys try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup if sys.version_info < (2, 7, 3) or sys.version_info >= (2, 7, 7): raise Excepti...
32.44186
108
0.614337
0
0
0
0
0
0
0
0
699
0.501075
41402626baceb0ad14ef7bcb1114108515c7b502
2,029
py
Python
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
6
2019-10-07T12:03:45.000Z
2019-10-10T11:41:57.000Z
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
null
null
null
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # ISC License # # Copyright (c) 2019, Andrea Giammarchi, @WebReflection # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # TH...
30.283582
79
0.73928
0
0
0
0
0
0
0
0
1,130
0.556925
41406dd0b9bde817da5cd6498dd268425faf759a
4,553
py
Python
test/unit/configuration/test_configuration_from_main.py
Sam-Martin/graph-notebook
e7a8cefb93891ea19d6df4f17fe0acca3e223ae9
[ "ISC", "Apache-2.0", "CC0-1.0" ]
378
2020-11-02T23:44:37.000Z
2022-03-31T17:07:16.000Z
test/unit/configuration/test_configuration_from_main.py
Sam-Martin/graph-notebook
e7a8cefb93891ea19d6df4f17fe0acca3e223ae9
[ "ISC", "Apache-2.0", "CC0-1.0" ]
124
2020-11-07T14:35:28.000Z
2022-03-29T21:07:09.000Z
test/unit/configuration/test_configuration_from_main.py
Sam-Martin/graph-notebook
e7a8cefb93891ea19d6df4f17fe0acca3e223ae9
[ "ISC", "Apache-2.0", "CC0-1.0" ]
76
2020-11-04T03:52:08.000Z
2022-03-31T17:17:06.000Z
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 """ import os import unittest from graph_notebook.configuration.generate_config import AuthModeEnum, Configuration from graph_notebook.configuration.get_config import get_config class TestGenerateConfiguration...
56.9125
118
0.679113
4,263
0.936306
0
0
460
0.101032
0
0
1,582
0.347463
414211e54fff763958123b81d2506325421d7750
3,201
py
Python
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
1
2021-05-17T17:35:01.000Z
2021-05-17T17:35:01.000Z
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
1
2021-07-27T23:49:33.000Z
2021-07-29T19:53:14.000Z
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
null
null
null
# Software License Agreement (Apache 2.0 License) # # Copyright (c) 2021, The Ohio State University # Center for Design and Manufacturing Excellence (CDME) # The Artificially Intelligent Manufacturing Systems Lab (AIMS) # All rights reserved. # # Author: Adam Exley import numpy as np import logging as log MAX_LINKS = 7...
34.793478
148
0.672602
0
0
0
0
0
0
0
0
2,143
0.669478
41427dc7083acbd1f30a5967de148b9aeabaff30
5,619
py
Python
Pybernate/Entity.py
lmnoel/pybernate
807750f5d3a5c356d6516ddd81edaa2210269807
[ "MIT" ]
null
null
null
Pybernate/Entity.py
lmnoel/pybernate
807750f5d3a5c356d6516ddd81edaa2210269807
[ "MIT" ]
null
null
null
Pybernate/Entity.py
lmnoel/pybernate
807750f5d3a5c356d6516ddd81edaa2210269807
[ "MIT" ]
null
null
null
from Pybernate.Exceptions import LazyInitializationException class Entity: def __init__(self): self.deleted = False self.dirty = False self.initialized = False def set_dirty(self, state): self.dirty = state def get_dirty(self): return self.dirty def set_delete...
34.685185
119
0.588005
5,555
0.98861
0
0
0
0
0
0
274
0.048763
4143ccf190301cf56eeae0f7c02717bcd229a66f
213
py
Python
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molsysmt/native/old/former_topology/elements/groups/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
from .group import Group from .aminoacid import AminoAcid from .nucleotide import Nucleotide from .water import Water from .ion import Ion from .cosolute import Cosolute from .small_molecule import SmallMolecule
23.666667
41
0.830986
0
0
0
0
0
0
0
0
0
0
41444b1ef7879f2253a4932d8f0e3e78f39e2fa9
101
py
Python
DCAL_utils_special/plotter_utils_consts.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
DCAL_utils_special/plotter_utils_consts.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
DCAL_utils_special/plotter_utils_consts.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
1
2021-02-25T14:19:05.000Z
2021-02-25T14:19:05.000Z
# The number of points to use in smooth curve fits. n_pts_smooth = 2000 default_fourier_n_harm = 10
33.666667
52
0.782178
0
0
0
0
0
0
0
0
52
0.514851
4144ac6c76ba124c7f21052971d1bc054211eeab
447
py
Python
reads/migrations/0008_auto_20171119_0744.py
mguarascio/runnerreads-com
3bc877cf24370cf881a98a1c5915693464bc69e8
[ "MIT" ]
null
null
null
reads/migrations/0008_auto_20171119_0744.py
mguarascio/runnerreads-com
3bc877cf24370cf881a98a1c5915693464bc69e8
[ "MIT" ]
null
null
null
reads/migrations/0008_auto_20171119_0744.py
mguarascio/runnerreads-com
3bc877cf24370cf881a98a1c5915693464bc69e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-19 12:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reads', '0007_auto_20171115_2224'), ] operations = [ migrations.AlterField(...
21.285714
52
0.612975
289
0.646532
0
0
0
0
0
0
115
0.257271
4146262f3d74196d4ad2779199fd0a16f247abbd
930
py
Python
full_metal/models.py
nightwarriorftw/alchemist
38634da50370edc07c1bae09ff05a66e92f2f8c0
[ "MIT" ]
null
null
null
full_metal/models.py
nightwarriorftw/alchemist
38634da50370edc07c1bae09ff05a66e92f2f8c0
[ "MIT" ]
null
null
null
full_metal/models.py
nightwarriorftw/alchemist
38634da50370edc07c1bae09ff05a66e92f2f8c0
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.fields import related class MarketingCampaign(models.Model): """Store the information of marketing campaign.""" title = models.CharField(max_length=50) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_no...
34.444444
102
0.711828
852
0.916129
0
0
0
0
0
0
185
0.198925
4146c32ffd539838b9529d72258302c84167df28
1,216
py
Python
pantofola_search/tools/kickass_fetcher.py
phingage/pantofola.io
f41036d2e568a45f328e2a7ca81d76a27cd134dc
[ "WTFPL" ]
1
2018-06-09T22:20:00.000Z
2018-06-09T22:20:00.000Z
pantofola_search/tools/kickass_fetcher.py
phingage/pantofola.io
f41036d2e568a45f328e2a7ca81d76a27cd134dc
[ "WTFPL" ]
4
2020-02-11T22:01:16.000Z
2021-06-10T17:38:56.000Z
pantofola_search/tools/kickass_fetcher.py
phingage/pantofola.io
f41036d2e568a45f328e2a7ca81d76a27cd134dc
[ "WTFPL" ]
null
null
null
__author__ = 'armanini' import httplib, requests, re from urlparse import urlparse class KickAssFetcher(object): def __init__(self): self.search_url = "http://kickass.to/usearch/" self.title_re = re.compile(r'(?P<imdb_id>tt\d{7})', flags=re.IGNORECASE + re.MULTILINE) def search(self, torrent...
25.87234
95
0.589638
984
0.809211
0
0
0
0
0
0
178
0.146382
4148771c5460032b6e6cf71a733f1a7a81a72d62
2,893
py
Python
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
null
null
null
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
"""Constants for localtuya integration.""" ATTR_CURRENT = "current" ATTR_CURRENT_CONSUMPTION = "current_consumption" ATTR_VOLTAGE = "voltage" CONF_LOCAL_KEY = "local_key" CONF_PROTOCOL_VERSION = "protocol_version" CONF_DPS_STRINGS = "dps_strings" CONF_PRODUCT_KEY = "product_key" # light CONF_BRIGHTNESS_LOWER = "brig...
27.817308
56
0.807812
0
0
0
0
0
0
0
0
1,290
0.445904
414999092001be652ff829a08dad85777592db23
8,098
py
Python
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
import pygame from settings import * import utils class Player(pygame.sprite.Sprite): def __init__(self, pos, groups, collision_sprites): super().__init__(groups) self.image = pygame.Surface((TILE_SIZE / 2, TILE_SIZE)) self.image.fill(PLAYER_COLOR) self.rect = self.image.get_rect(to...
48.491018
138
0.618177
8,047
0.993702
0
0
0
0
0
0
1,823
0.225117
4149b0929f392e8e110537d2266f990d4929d8f0
5,054
py
Python
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
from colored import fg, bg, attr from . import elements from . import layouts class PeriodicTableError(Exception): """Periodic Table exceptions.""" pass class PeriodicTable: """Periodic Table.""" def __init__(self, **kwargs): self.color = kwargs["color"] if "color" in kwargs else False ...
30.630303
85
0.564899
4,970
0.98338
0
0
0
0
0
0
1,105
0.218639
4149c18516a466d5bd042367b350b07706f720b8
536
py
Python
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
2
2021-08-18T14:05:46.000Z
2021-09-24T07:44:23.000Z
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
1
2021-09-24T08:00:26.000Z
2021-10-07T10:45:28.000Z
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
null
null
null
from datetime import date from enum import IntEnum class TransactionDirection(IntEnum): EXPENSES = 0 INCOME = 1 class Transaction: def __init__(self): self.will_import = True self.transaction_date = date.today() self.payee = '' self.description = '' self.amount = ...
23.304348
54
0.619403
479
0.893657
0
0
0
0
0
0
12
0.022388
414dbeebee592b4e49d79aec901a1680c586b5fb
3,617
py
Python
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
44.654321
129
0.709151
302
0.083495
0
0
0
0
0
0
1,709
0.472491
4151c5c3dbe7d9b634bc3106ccbd1a50caa1fb1f
1,120
py
Python
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
null
null
null
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
null
null
null
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
1
2020-03-05T23:58:04.000Z
2020-03-05T23:58:04.000Z
import os import argparse import yaml import pprint from easydict import EasyDict as edict from download import download from read_process import read_process from de_analysis import de from cancer import cancer def parse_args(): parser = argparse.ArgumentParser(description='eCLIP') parser.add_argument('--con...
21.960784
57
0.677679
0
0
0
0
0
0
0
0
234
0.208929
41528f11f89e17b45a8aaf9f472409371cd43c86
887
py
Python
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
null
null
null
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
24
2020-05-09T19:18:30.000Z
2020-11-21T22:47:39.000Z
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
null
null
null
"""Module for custom Scrapy request components.""" from scrapy import Request class SeleniumCallbackRequest(Request): """Process request with given callback using Selenium. Args: selenium_callback (func or None, optional): Function that will be called with the chrome webdriver. The func...
36.958333
77
0.668546
804
0.906426
0
0
0
0
0
0
520
0.586246
41533ac389ddcc893deaa3a3dea233e8a8c4234c
12,254
py
Python
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
1
2020-08-12T22:51:45.000Z
2020-08-12T22:51:45.000Z
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
null
null
null
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
1
2020-11-28T11:47:48.000Z
2020-11-28T11:47:48.000Z
import os import shutil import pytest from dvc.exceptions import DvcIgnoreInCollectedDirError from dvc.ignore import ( DvcIgnore, DvcIgnoreDirs, DvcIgnorePatterns, DvcIgnorePatternsTrie, DvcIgnoreRepo, ) from dvc.path_info import PathInfo from dvc.repo import Repo from dvc.tree.local import LocalR...
31.260204
79
0.5945
0
0
0
0
2,018
0.164439
0
0
2,690
0.219198
41538b4330b560554f0aa682385fd505950bc0e9
1,128
py
Python
test_app.py
jeshan/hypothesis-test-python-versions
8bb26275937dc02a2a996aa2c09e9c48a3f87419
[ "BSD-2-Clause" ]
null
null
null
test_app.py
jeshan/hypothesis-test-python-versions
8bb26275937dc02a2a996aa2c09e9c48a3f87419
[ "BSD-2-Clause" ]
null
null
null
test_app.py
jeshan/hypothesis-test-python-versions
8bb26275937dc02a2a996aa2c09e9c48a3f87419
[ "BSD-2-Clause" ]
null
null
null
from subprocess import call from tempfile import NamedTemporaryFile from hypothesis import settings, note from hypothesis.stateful import RuleBasedStateMachine, rule from hypothesis.strategies import sampled_from def versions(): """ generates only minor versions available on Docker Hub """ # TODO: treat as s...
33.176471
93
0.696809
562
0.498227
0
0
509
0.451241
0
0
375
0.332447
4154f5618899e57ee64e540445a53194c1b762ee
1,479
py
Python
synthea-hiv/uploader/uploader_test.py
GoogleCloudPlatform/openmrs-fhir-analytics
839a5c54e0c81d174522dcb9930b26bc49dfa748
[ "ECL-2.0", "Apache-2.0" ]
39
2020-08-07T18:10:21.000Z
2021-12-24T14:08:36.000Z
synthea-hiv/uploader/uploader_test.py
mozzy11/openmrs-fhir-analytics
796c75f3cc94cfad08e6e4a42d670830e9302d17
[ "Apache-2.0" ]
205
2020-08-20T05:25:29.000Z
2022-02-04T19:20:44.000Z
synthea-hiv/uploader/uploader_test.py
mozzy11/openmrs-fhir-analytics
796c75f3cc94cfad08e6e4a42d670830e9302d17
[ "Apache-2.0" ]
32
2020-08-13T19:14:50.000Z
2022-03-25T04:45:39.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.214286
74
0.76403
841
0.568627
0
0
0
0
0
0
590
0.398918
4155116ee8c8f0032b20650c9fd29fb3f6faf25b
7,033
py
Python
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
from __future__ import annotations from enum import Enum from typing import List import os.path as path import stargazing.data.database as database import stargazing.audio.audio_controller as audio_ac import stargazing.audio.audio_player as audio_ap import stargazing.pomodoro.timer as pomo_t import stargazing.project....
39.072222
113
0.681928
6,440
0.915683
0
0
864
0.122849
0
0
1,044
0.148443
41567d586e7fa12a33d4c69f999c3c3a2e0316df
1,324
py
Python
main.py
anandnet/Virtual-Music
d13e6fa83d92816064cad4cce61c7c499d54e921
[ "MIT" ]
1
2021-02-20T05:56:49.000Z
2021-02-20T05:56:49.000Z
main.py
anandnet/Virtual-Music
d13e6fa83d92816064cad4cce61c7c499d54e921
[ "MIT" ]
null
null
null
main.py
anandnet/Virtual-Music
d13e6fa83d92816064cad4cce61c7c499d54e921
[ "MIT" ]
1
2021-02-18T05:59:59.000Z
2021-02-18T05:59:59.000Z
from logging import root from os import name from kivy.animation import Animation from kivy.clock import Clock from kivy.lang import Builder from widgets.loader import Loader from kivy.uix.behaviors import button from kivy.uix.boxlayout import BoxLayout from kivy.uix.anchorlayout import AnchorLayout from kivy.uix.image...
25.960784
56
0.701662
752
0.567976
0
0
0
0
0
0
113
0.085347