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
d33d11247d061e7ccfc35cffc890e5eb82902094
12,708
py
Python
tests/test_dataset_roll.py
Ouranosinc/clisops
d78c127e07503877ae87c40e3548146fb06258ff
[ "BSD-3-Clause" ]
18
2020-05-19T21:22:37.000Z
2022-02-04T08:10:21.000Z
tests/test_dataset_roll.py
Ouranosinc/clisops
d78c127e07503877ae87c40e3548146fb06258ff
[ "BSD-3-Clause" ]
166
2020-04-22T11:04:57.000Z
2022-03-31T11:14:21.000Z
tests/test_dataset_roll.py
Ouranosinc/clisops
d78c127e07503877ae87c40e3548146fb06258ff
[ "BSD-3-Clause" ]
6
2020-04-02T14:30:21.000Z
2021-12-04T03:51:12.000Z
""" Test the different methods of transforming the longitude coordinates after rolling""" import numpy as np # calculate the offset in the same way as in dataset_utils def calculate_offset(a, bounds): low, high = bounds # get resolution of data res = a[1] - a[0] # calculate how many degrees to move ...
34.721311
101
0.633695
11,335
0.891958
0
0
0
0
0
0
1,862
0.146522
d340c2f9f33daa88e8949aa4fa874217c0b4853c
365
py
Python
mmdet/datasets/my_dataset.py
jingwoo4710/mmdetection-icevision
da82741b29fdd1eb77b4e7483ff2a515d43d1760
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/my_dataset.py
jingwoo4710/mmdetection-icevision
da82741b29fdd1eb77b4e7483ff2a515d43d1760
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/my_dataset.py
jingwoo4710/mmdetection-icevision
da82741b29fdd1eb77b4e7483ff2a515d43d1760
[ "Apache-2.0" ]
null
null
null
from .coco import CocoDataset from .registry import DATASETS @DATASETS.register_module class MyDataset(CocoDataset): CLASSES = ('car', 'pedestrian', 'trafficLight-Red', 'trafficLight-Green', 'truck', 'trafficLight', 'biker', 'trafficLight-RedLeft', 'trafficLight-GreenLeft' , 'traf...
33.181818
89
0.693151
275
0.753425
0
0
301
0.824658
0
0
175
0.479452
d341d1b5c222b98c304207eceab77df2f46ba797
52
py
Python
word2vec/models/__init__.py
dimipauls/word2vec-playground
228b9f8a37a785a8538c994dc3d0bef4dffacf2b
[ "MIT" ]
1
2019-04-27T19:40:28.000Z
2019-04-27T19:40:28.000Z
word2vec/models/__init__.py
dimipauls/word2vec-playground
228b9f8a37a785a8538c994dc3d0bef4dffacf2b
[ "MIT" ]
null
null
null
word2vec/models/__init__.py
dimipauls/word2vec-playground
228b9f8a37a785a8538c994dc3d0bef4dffacf2b
[ "MIT" ]
null
null
null
from word2vec.models.skip_gram import SkipGramModel
26
51
0.884615
0
0
0
0
0
0
0
0
0
0
d34286269400aa25ffc4c5c20ffc4d7826caf90e
7,659
py
Python
mqtt_pi0_client/pi0_main.py
hengying/mqtt_at_home
ed1cc5dd0a57cc46e57ec5edeb48ae1d019ebae5
[ "BSD-3-Clause" ]
null
null
null
mqtt_pi0_client/pi0_main.py
hengying/mqtt_at_home
ed1cc5dd0a57cc46e57ec5edeb48ae1d019ebae5
[ "BSD-3-Clause" ]
null
null
null
mqtt_pi0_client/pi0_main.py
hengying/mqtt_at_home
ed1cc5dd0a57cc46e57ec5edeb48ae1d019ebae5
[ "BSD-3-Clause" ]
null
null
null
import os import time from queue import Queue from PIL import Image, ImageDraw, ImageFont from button_enum import ButtonType from event import * from config import Config ROW_HEIGHT = 16 class App(): def __init__(self): self._input_devices = [] self._subsystems = [] self._layers = [] ...
33.445415
141
0.592375
7,347
0.958263
0
0
525
0.068475
0
0
173
0.022564
d3443a482a767fc4c1af1d31c45a7e7fe38149c7
15,895
py
Python
test_bank/borrowing/tests/test_views.py
Ursidours/django-tech-test
a96e1d73c9221458ca68b999d817881863a60584
[ "BSD-3-Clause" ]
1
2021-11-13T01:30:30.000Z
2021-11-13T01:30:30.000Z
test_bank/borrowing/tests/test_views.py
arnaudblois/django-tech-test
a96e1d73c9221458ca68b999d817881863a60584
[ "BSD-3-Clause" ]
null
null
null
test_bank/borrowing/tests/test_views.py
arnaudblois/django-tech-test
a96e1d73c9221458ca68b999d817881863a60584
[ "BSD-3-Clause" ]
null
null
null
from django.test import RequestFactory from test_plus.test import TestCase from django.test.client import Client from django.core.urlresolvers import reverse from test_bank.users.tests.factories import UserFactory from .factories import BorrowerProfileFactory, BusinessFactory, LoanFactory from decimal import Decimal ...
33.533755
106
0.612394
14,663
0.922491
0
0
0
0
0
0
4,683
0.294621
d3484c8e71b0aac92d6811446f538aa49bf4b1e6
1,295
py
Python
lib/Sh.py
ldimaggi/acceptance-testing
abdb317b28dbb36b01d33da9479270b0073ba5be
[ "Apache-2.0" ]
null
null
null
lib/Sh.py
ldimaggi/acceptance-testing
abdb317b28dbb36b01d33da9479270b0073ba5be
[ "Apache-2.0" ]
9
2020-05-28T10:14:40.000Z
2021-01-12T14:43:05.000Z
lib/Sh.py
ldimaggi/acceptance-testing
abdb317b28dbb36b01d33da9479270b0073ba5be
[ "Apache-2.0" ]
1
2020-04-30T10:21:16.000Z
2020-04-30T10:21:16.000Z
# # Copyright The Helm Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
28.152174
74
0.683398
635
0.490347
0
0
0
0
0
0
576
0.444788
d348ebf257f01cb7e7e5f086b73340fc0a6871a3
164
py
Python
stringfox/__init__.py
machinelearningdeveloper/stringfox
b48c158406fc158704da6e65ee4b55a09192fece
[ "MIT" ]
null
null
null
stringfox/__init__.py
machinelearningdeveloper/stringfox
b48c158406fc158704da6e65ee4b55a09192fece
[ "MIT" ]
null
null
null
stringfox/__init__.py
machinelearningdeveloper/stringfox
b48c158406fc158704da6e65ee4b55a09192fece
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for String Fox.""" __author__ = """Tom Lynch""" __email__ = 'tom@machinelearningdeveloper.com' __version__ = '0.1.0'
20.5
46
0.658537
0
0
0
0
0
0
0
0
118
0.719512
d34a58117f94c2bbad5c3b0f79aa06165ee56d40
398
py
Python
Ex0108/moeda.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
Ex0108/moeda.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
Ex0108/moeda.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
def metade(x=0): x = x / 2 return x def dobro(x=0): x = x * 2 return x def aumentar(x=0, i=0): x = x * (1+(i/100)) return x def diminuir(x=0, i=0): x = x * (1-(i/100)) return x def moeda(x=0, moeda='R$ '): x = f'{x:,.2f}' x = x.replace('.', '-') x = x.repl...
13.266667
31
0.40201
0
0
0
0
0
0
0
0
47
0.11809
d34bf9dadda6e3b8a530d372c58b2f396d11b505
1,634
py
Python
util/canvas_api_extension.py
Person314159/cs221bot
ac1c768c08105d094d830b1a7cefae3492b2f76e
[ "Unlicense" ]
33
2020-10-03T05:33:19.000Z
2022-03-26T13:03:51.000Z
util/canvas_api_extension.py
Person314159/cs221bot
ac1c768c08105d094d830b1a7cefae3492b2f76e
[ "Unlicense" ]
2
2020-10-21T04:22:13.000Z
2020-10-23T01:21:42.000Z
util/canvas_api_extension.py
Person314159/cs221bot
ac1c768c08105d094d830b1a7cefae3492b2f76e
[ "Unlicense" ]
6
2020-10-08T03:07:49.000Z
2021-02-14T04:40:50.000Z
from canvasapi.course import Course from canvasapi.requester import Requester from canvasapi.util import combine_kwargs, get_institution_url def get_course_stream(course_id: int, base_url: str, access_token: str, **kwargs: dict) -> dict: """ Parameters ---------- course_id : `int` Course id ...
22.383562
96
0.618115
0
0
0
0
0
0
0
0
823
0.503672
d34e67cf20eff8898bbfe5d4cd62cab743664e32
778
py
Python
music_generator/score_to_midi.py
wonsjb/MusicGenerator
98290721227a6c69bcd186d02c4492b0e4e9fbe1
[ "Apache-2.0" ]
null
null
null
music_generator/score_to_midi.py
wonsjb/MusicGenerator
98290721227a6c69bcd186d02c4492b0e4e9fbe1
[ "Apache-2.0" ]
null
null
null
music_generator/score_to_midi.py
wonsjb/MusicGenerator
98290721227a6c69bcd186d02c4492b0e4e9fbe1
[ "Apache-2.0" ]
1
2019-04-08T09:39:58.000Z
2019-04-08T09:39:58.000Z
import mido import pickle from tqdm import tqdm from music_generator.score_util import score_to_events def save_events(track, events): current_time = 0 for this_time in tqdm(sorted(events), "Writing midi events"): sleep_time = this_time - current_time current_time = this_time for msg i...
25.096774
65
0.694087
0
0
0
0
0
0
0
0
21
0.026992
d34eb3b9e813d06c380919c0a1a3b281d94e684d
1,791
py
Python
examples/simplelogin/routes/auth.py
mekarpeles/waltz
b5cbf1bc57b1fff0be34559b7d88d2da960bad45
[ "BSD-3-Clause" ]
null
null
null
examples/simplelogin/routes/auth.py
mekarpeles/waltz
b5cbf1bc57b1fff0be34559b7d88d2da960bad45
[ "BSD-3-Clause" ]
null
null
null
examples/simplelogin/routes/auth.py
mekarpeles/waltz
b5cbf1bc57b1fff0be34559b7d88d2da960bad45
[ "BSD-3-Clause" ]
null
null
null
#-*- coding: utf-8 -*- """ routes.auth ~~~~~~~~~~~ Routes for handling authentication (login, register, logout) :copyright: (c) Authentication Dance by Waltz. :license: GPLv3, see LICENSE for more details. """ import waltz from waltz import User, web, session, render class Login: def GET(se...
29.85
78
0.546064
1,493
0.833613
0
0
0
0
0
0
458
0.255723
d352ebd61908d0718bc5d5e76a95055fb7b7c033
2,186
py
Python
src/choropleths/models.py
unt-libraries/texas-choropleth
ccc3cdddd94fe5ec49e0a547c805c62a066bd66e
[ "BSD-3-Clause" ]
1
2018-12-10T02:37:29.000Z
2018-12-10T02:37:29.000Z
src/choropleths/models.py
unt-libraries/texas-choropleth
ccc3cdddd94fe5ec49e0a547c805c62a066bd66e
[ "BSD-3-Clause" ]
21
2015-01-23T06:51:45.000Z
2018-10-10T20:27:55.000Z
src/choropleths/models.py
unt-libraries/texas-choropleth
ccc3cdddd94fe5ec49e0a547c805c62a066bd66e
[ "BSD-3-Clause" ]
1
2015-10-01T00:33:44.000Z
2015-10-01T00:33:44.000Z
from django.db import models from django.contrib.auth.models import User from datasets.models import Dataset, PublishedMixin, SCALE_CHOICES SCHEME_CHOICES = ( (1, 'Sequential'), (2, 'Diverging'), (3, 'Qualitative'), ) class AbstractModel(models.Model): status = models.BooleanField(default=False) ...
26.02381
77
0.661482
1,943
0.888838
0
0
0
0
0
0
434
0.198536
d353c934ca928318effca3f051fbfeebb0b2a302
103
py
Python
measures/apps.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
14
2020-03-25T11:11:29.000Z
2022-03-08T20:41:33.000Z
measures/apps.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
352
2020-03-25T10:42:09.000Z
2022-03-30T15:32:26.000Z
measures/apps.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
3
2020-08-06T12:22:41.000Z
2022-01-16T11:51:12.000Z
from common.app_config import CommonConfig class MeasuresConfig(CommonConfig): name = "measures"
17.166667
42
0.786408
57
0.553398
0
0
0
0
0
0
10
0.097087
d3580ed4695bebcfc2891b5c39c7a502e5bced9b
2,083
py
Python
Ch6/lle.py
jason-168/MLCode
429c17e004fb41ba16c371416c8f73833ab8fc1d
[ "Xnet", "X11" ]
146
2016-05-24T02:55:53.000Z
2022-03-23T14:54:42.000Z
Ch6/lle.py
coky/MarslandMLAlgo
4277b24db88c4cb70d6b249921c5d21bc8f86eb4
[ "Xnet", "X11" ]
1
2017-08-17T23:07:39.000Z
2017-08-18T08:27:19.000Z
Ch6/lle.py
coky/MarslandMLAlgo
4277b24db88c4cb70d6b249921c5d21bc8f86eb4
[ "Xnet", "X11" ]
94
2016-05-06T12:34:33.000Z
2022-03-30T03:31:04.000Z
# Code from Chapter 6 of Machine Learning: An Algorithmic Perspective (2nd Edition) # by Stephen Marsland (http://stephenmonika.net) # You are free to use, change, or redistribute the code in any way you wish for # non-commercial purposes, but please maintain the name of the original author. # This code comes with no...
27.407895
83
0.62794
0
0
0
0
0
0
0
0
566
0.271723
d35834e4ac51677b11ebf3a3403d9007c865a7d7
69
py
Python
pymiddy/__init__.py
godvsdeity/pymiddy
5126110a3f9e673f062e4248301796b5de10507d
[ "MIT" ]
1
2021-01-15T06:17:50.000Z
2021-01-15T06:17:50.000Z
pymiddy/__init__.py
godvsdeity/pymiddy
5126110a3f9e673f062e4248301796b5de10507d
[ "MIT" ]
null
null
null
pymiddy/__init__.py
godvsdeity/pymiddy
5126110a3f9e673f062e4248301796b5de10507d
[ "MIT" ]
null
null
null
__name__ = 'pymiddy' __version__ = '0.1.0' from .middy import Middy
13.8
24
0.710145
0
0
0
0
0
0
0
0
16
0.231884
d3591775c7b698ed72a3fd1c68e5a61ee0d47bde
1,904
py
Python
tests/functional/test_session.py
Andrew-Wichmann/pytest-localstack
83ac2a5e39eb23cad402a3fcdaefd76db903168d
[ "MIT" ]
63
2018-03-14T18:47:06.000Z
2022-02-01T20:42:27.000Z
tests/functional/test_session.py
Andrew-Wichmann/pytest-localstack
83ac2a5e39eb23cad402a3fcdaefd76db903168d
[ "MIT" ]
43
2018-03-06T22:37:32.000Z
2022-02-25T21:42:21.000Z
tests/functional/test_session.py
Andrew-Wichmann/pytest-localstack
83ac2a5e39eb23cad402a3fcdaefd76db903168d
[ "MIT" ]
23
2018-05-29T14:03:30.000Z
2021-12-14T20:21:40.000Z
"""Functional tests for pytest_localstack.session.""" import pytest from pytest_localstack import constants, exceptions, service_checks, session @pytest.mark.parametrize("test_service", sorted(constants.SERVICE_PORTS)) def test_RunningSession_individual_services(test_service, docker_client): localstack_imagename...
41.391304
85
0.686975
0
0
0
0
1,752
0.920168
0
0
189
0.099265
d35a738b7eea5737405cf7a351e38faa5ee30171
1,410
py
Python
07-dash/src/__init__.py
dushyantkhosla/dataviz
05a004a390d180d87be2d09873c3f7283c2a2e27
[ "MIT" ]
null
null
null
07-dash/src/__init__.py
dushyantkhosla/dataviz
05a004a390d180d87be2d09873c3f7283c2a2e27
[ "MIT" ]
2
2021-03-25T22:11:43.000Z
2022-03-02T22:43:47.000Z
07-dash/src/__init__.py
dushyantkhosla/viz4ds
05a004a390d180d87be2d09873c3f7283c2a2e27
[ "MIT" ]
null
null
null
list_markets = [ 'japan', 'portugal', 'russia', 'switzerland', 'romania', 'italy', 'ukraine', 'germany', 'monaco', 'denmark', 'netherlands', 'greece', 'spain', 'uk', 'israel', 'new-zealand', 'kazakhstan', 'canada', 'south-africa', 'lithuania', 'colombia', 'poland', 'turkish-cyprus', 'france', 'czech...
27.115385
72
0.500709
0
0
0
0
0
0
0
0
913
0.647518
d35cd6f2e8a4bf94cbcb50a1a3913349d797b8bf
78
py
Python
src/sage/cpython/all.py
fchapoton/sage
765c5cb3e24dd134708eca97e4c52e0221cd94ba
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/cpython/all.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/cpython/all.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
from .debug import getattr_debug, type_debug from .getattr import raw_getattr
26
44
0.846154
0
0
0
0
0
0
0
0
0
0
d35daef25397aae02fca1e7c5ccdd6b6b3650e3b
4,530
py
Python
seed_services_cli/identity_store.py
praekeltfoundation/seed-services-cli
943fca5e70be086d4f29fd580103d7647a81f99a
[ "BSD-3-Clause" ]
null
null
null
seed_services_cli/identity_store.py
praekeltfoundation/seed-services-cli
943fca5e70be086d4f29fd580103d7647a81f99a
[ "BSD-3-Clause" ]
null
null
null
seed_services_cli/identity_store.py
praekeltfoundation/seed-services-cli
943fca5e70be086d4f29fd580103d7647a81f99a
[ "BSD-3-Clause" ]
null
null
null
import click import json import csv import sys from seed_services_client.identity_store import IdentityStoreApiClient from demands import HTTPServiceError if sys.version_info.major == 2: file_open_mode = 'rb' else: file_open_mode = 'r' def get_api_client(url, token): return IdentityStoreApiClient( ...
30.608108
77
0.608389
0
0
896
0.197792
3,249
0.717219
0
0
1,068
0.235762
d361a7c5bfc3b1ebc7879ad5a842156f10a0efba
1,278
py
Python
source/build.py
rclayton-the-terrible/Ansible-OpenSSL
2e95c43911b4c2cd8cc82d42f120fd6bd4e36931
[ "MIT" ]
29
2015-01-22T15:31:37.000Z
2021-07-14T02:46:53.000Z
source/build.py
berico-rclayton/Ansible-OpenSSL
2e95c43911b4c2cd8cc82d42f120fd6bd4e36931
[ "MIT" ]
5
2015-01-21T22:30:00.000Z
2016-07-12T22:55:54.000Z
source/build.py
berico-rclayton/Ansible-OpenSSL
2e95c43911b4c2cd8cc82d42f120fd6bd4e36931
[ "MIT" ]
12
2015-02-13T07:59:18.000Z
2022-01-24T09:13:28.000Z
import os, shutil BUILD_DIR = "../dist" FILES_TO_BUILD = [ { "file": "ca", "module": "ca_module.py", "library": "ca.py", "import": "from ca import CA" }, { "file": "certificate", "module": "certificate_module.py", "library": "certificate.py", "import": "from certificate import Certificate" }, { "file": "k...
38.727273
143
0.694836
0
0
0
0
0
0
0
0
373
0.291862
d362e720bb3d218affebcec43cea8d2928edf0c3
7,899
py
Python
executables/plot_cands.py
UCBerkeleySETI/blipss
dba5c6724701abcc95b59aa016adf2582ecc69f3
[ "MIT" ]
null
null
null
executables/plot_cands.py
UCBerkeleySETI/blipss
dba5c6724701abcc95b59aa016adf2582ecc69f3
[ "MIT" ]
null
null
null
executables/plot_cands.py
UCBerkeleySETI/blipss
dba5c6724701abcc95b59aa016adf2582ecc69f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Plot candidate verification plots including periodograms, average pulse profiles and phase-time diagrams. Run using the following syntax. python plot_cands.py -i <Configuration script of inputs> | tee <Log file> ''' from __future__ import print_function from __future__ import absolute_import ...
41.356021
138
0.622484
0
0
0
0
0
0
0
0
3,519
0.445499
d363c2f764722f8256c8d75fcbfe318c21740559
401
py
Python
ignore.py
VolVox99/Paraphrasing-Tool
2ef59d23a06ed1d1f3e9f88c23e95aa9e6e1c9a8
[ "MIT" ]
3
2021-02-17T03:22:35.000Z
2021-12-08T04:54:32.000Z
ignore.py
VolVox99/Paraphrasing-Tool
2ef59d23a06ed1d1f3e9f88c23e95aa9e6e1c9a8
[ "MIT" ]
null
null
null
ignore.py
VolVox99/Paraphrasing-Tool
2ef59d23a06ed1d1f3e9f88c23e95aa9e6e1c9a8
[ "MIT" ]
null
null
null
def should_ignore(word: str) -> bool: with open('ignorelist.txt') as file: words_to_ignore = file.readlines() conditions = [ #if all chars are not letters from alphabet not word.isalpha(), word.lower() in words_to_ignore, word.isnumeric(), #if first letter is c...
23.588235
51
0.605985
0
0
0
0
0
0
0
0
100
0.249377
d364fc80041aba15681b8ae1abc068dc059543fd
918
py
Python
common/datacontracts/utxo.py
akvelon/Bitcoin-Transaction-Optimization
e3740fe37869a0b84a472b19dbc5d879ec857837
[ "Apache-2.0" ]
5
2019-03-21T12:57:56.000Z
2019-09-15T00:00:35.000Z
common/datacontracts/utxo.py
akvelon/Bitcoin-Transaction-Optimization
e3740fe37869a0b84a472b19dbc5d879ec857837
[ "Apache-2.0" ]
25
2019-04-01T09:23:10.000Z
2022-02-10T00:10:23.000Z
common/datacontracts/utxo.py
akvelon/Bitcoin-Transaction-Optimization
e3740fe37869a0b84a472b19dbc5d879ec857837
[ "Apache-2.0" ]
1
2019-03-15T13:54:51.000Z
2019-03-15T13:54:51.000Z
""" Copyright 2019 Akvelon Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
48.315789
311
0.704793
329
0.358388
0
0
0
0
0
0
806
0.877996
d36503749b7bc4dd9ab596a44975407acae0d0ec
18,681
py
Python
010_XRDAnalysis/FeNi/FeNi_Ambient_019/ExtraPeakAttempt/Fit_XRD_Pattern.py
r-a-morrison/fe_alloy_sound_velocities
8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b
[ "MIT" ]
null
null
null
010_XRDAnalysis/FeNi/FeNi_Ambient_019/ExtraPeakAttempt/Fit_XRD_Pattern.py
r-a-morrison/fe_alloy_sound_velocities
8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b
[ "MIT" ]
null
null
null
010_XRDAnalysis/FeNi/FeNi_Ambient_019/ExtraPeakAttempt/Fit_XRD_Pattern.py
r-a-morrison/fe_alloy_sound_velocities
8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b
[ "MIT" ]
null
null
null
# Written by Rachel Morrison on July 1, 2016 # Updated October 2017 # ## Input Data and Parameters from Fit_XRD_Input import * # ## Outline # - Import data # - Specify 2theta range # - Identify phases # - Set starting parameter values for a (and c) # - Identify peaks present in 2theta range for given a (and c) # -...
36.486328
96
0.662598
0
0
0
0
0
0
0
0
4,618
0.247203
d365d258e5da91f89533a37ebc45518a1726de2f
1,362
py
Python
core/cdag/node/metrics.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
core/cdag/node/metrics.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
core/cdag/node/metrics.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------- # MetricsNode # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Python modules f...
27.24
85
0.532305
801
0.588106
0
0
0
0
0
0
489
0.359031
d36649a36f426f9099f11bf5367c4a8a8f4ec2b2
2,071
py
Python
Python/Tkinter/Tech-Gram Academy/PhoneBook App.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Tkinter/Tech-Gram Academy/PhoneBook App.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Tkinter/Tech-Gram Academy/PhoneBook App.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
from tkinter import * import datetime from view_people import Mypeople date = datetime.datetime.now().date() date = str(date) class Application(object): # inheritance from object is by default in python 3 def __init__(self, master): self.master = master # this allow to use master in other def function a...
35.101695
113
0.623853
1,723
0.831965
0
0
0
0
0
0
607
0.293095
d366a48cdf67e21ca07feaecf85af36649e315b3
810
py
Python
cvp/metrics/_metric.py
RaviShah1/cross-validation-pipeline
51bd306685e4ca71015523d950d08fc7405f8075
[ "Apache-2.0" ]
null
null
null
cvp/metrics/_metric.py
RaviShah1/cross-validation-pipeline
51bd306685e4ca71015523d950d08fc7405f8075
[ "Apache-2.0" ]
null
null
null
cvp/metrics/_metric.py
RaviShah1/cross-validation-pipeline
51bd306685e4ca71015523d950d08fc7405f8075
[ "Apache-2.0" ]
null
null
null
class Metric: def __init__(self, name: str): """ Generates the Metric Parameters --------- name : str the name of the metric """ pass def __call__(self) -> float: """ Gets the evaluation score of the y_tru...
21.315789
66
0.440741
808
0.997531
0
0
0
0
0
0
611
0.754321
d3670d7e4f25769b7a27109b32a3982276760c06
478
py
Python
LBP06.py
Anandgowda18/LogicBasedPrograms
25baa9fbf19cd45229c87e099877e97281b0e76b
[ "MIT" ]
null
null
null
LBP06.py
Anandgowda18/LogicBasedPrograms
25baa9fbf19cd45229c87e099877e97281b0e76b
[ "MIT" ]
null
null
null
LBP06.py
Anandgowda18/LogicBasedPrograms
25baa9fbf19cd45229c87e099877e97281b0e76b
[ "MIT" ]
null
null
null
'''For each of the 6 coffee cups I buy, I get a 7th cup free. In total, I get 7 cups. Implement a program that takes n cups bought and print as an integer the total number of cups I would get. Input Format n number of cups from user Constraints n>0 Output Format number of cups present have Sample Input 0 13 Sam...
14.9375
192
0.709205
0
0
0
0
0
0
0
0
385
0.805439
d36a75871385410e67d2a1d159624af95ddabfb2
76
py
Python
volkscv/analyzer/statistics/utils/assigner/__init__.py
YuxinZou/volkscv
67ac83f0c0ac85bd6606053732b454db17c53de0
[ "Apache-2.0" ]
59
2020-07-09T03:22:51.000Z
2021-12-14T11:26:43.000Z
volkscv/analyzer/statistics/utils/assigner/__init__.py
ChaseMonsterAway/volkscv
aa7e898cc29e3e5f26363e56bf56f4c56574bbd8
[ "Apache-2.0" ]
1
2020-11-24T12:18:19.000Z
2020-11-25T03:12:57.000Z
volkscv/analyzer/statistics/utils/assigner/__init__.py
ChaseMonsterAway/volkscv
aa7e898cc29e3e5f26363e56bf56f4c56574bbd8
[ "Apache-2.0" ]
24
2020-08-05T03:13:37.000Z
2021-10-11T02:55:25.000Z
from .base import BaseAssigner from .max_iou_assigner import MaxIoUAssigner
25.333333
44
0.868421
0
0
0
0
0
0
0
0
0
0
d36c21fe0133ee21a1ab3addd4c1f6e8a3228f92
3,695
py
Python
cloudmesh/analytics/OpenAPIServer.py
cloudmesh/cloudmesh-analytics
26e8ab8e718730cbbc5b99ac71395c22686ae698
[ "Apache-2.0" ]
null
null
null
cloudmesh/analytics/OpenAPIServer.py
cloudmesh/cloudmesh-analytics
26e8ab8e718730cbbc5b99ac71395c22686ae698
[ "Apache-2.0" ]
null
null
null
cloudmesh/analytics/OpenAPIServer.py
cloudmesh/cloudmesh-analytics
26e8ab8e718730cbbc5b99ac71395c22686ae698
[ "Apache-2.0" ]
2
2019-10-21T03:58:57.000Z
2020-02-12T00:07:06.000Z
"""To create a flask app The method definition to create a flask app by call ing the create_app function Example: create_app(test_config) """ import os import connexion import sys import textwrap from cloudmesh.common.util import writefile from cloudmesh.common.util import path_expand from cloudmesh.common...
25.308219
79
0.539107
3,327
0.900406
0
0
0
0
0
0
2,052
0.555345
d36ce0a150d51a1118f75e69b494546bb51688b1
1,610
py
Python
migrations/versions/v3_create_specialization_schema.py
GCETTB-HYLAND-Hackathon2012-22/Miracurol-Rebuild
a6748e93b45872efdbaca013388dd6277824a9a5
[ "Apache-2.0" ]
null
null
null
migrations/versions/v3_create_specialization_schema.py
GCETTB-HYLAND-Hackathon2012-22/Miracurol-Rebuild
a6748e93b45872efdbaca013388dd6277824a9a5
[ "Apache-2.0" ]
null
null
null
migrations/versions/v3_create_specialization_schema.py
GCETTB-HYLAND-Hackathon2012-22/Miracurol-Rebuild
a6748e93b45872efdbaca013388dd6277824a9a5
[ "Apache-2.0" ]
null
null
null
"""Create Specialization Schema Create a table 'specialization' which represents doctors specializations and have a many-to-many relationship with the doctor table. -- SQL CREATE TABLE specialization ( id SERIAL, specialization_name TEXT NOT NULL, CONSTRAINT pk_specialization PRIMARY KEY (id) ); CREATE ...
27.288136
118
0.701863
0
0
0
0
0
0
0
0
999
0.620497
d36e069713d8c3e52684121fe2690f4962a2708a
2,515
py
Python
tools/fixup_io_tilegrid.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
80
2019-12-10T21:06:12.000Z
2021-02-06T09:12:37.000Z
tools/fixup_io_tilegrid.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
13
2021-03-18T12:59:25.000Z
2022-03-30T11:35:51.000Z
tools/fixup_io_tilegrid.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
4
2020-10-04T22:23:15.000Z
2021-01-29T21:51:25.000Z
import database import tiles import json from os import path """ Despite Lattice assigning them the same tile type; "odd" and "even" top/left/right IO locations have slightly different routing - swapped output tristate and data This script fixes this by patching tile names """ for f, d in [("LIFCL", "LIFCL-40"), ("L...
34.930556
105
0.525249
0
0
0
0
0
0
0
0
499
0.19841
d36e8ca439eb0a47f4ed9a65eb100752706fe147
1,425
py
Python
tests/test_html_table.py
gp2kumar/jsonconverter
e90a989c8fe45c466179a9e202f301d1c495668c
[ "MIT" ]
1
2021-02-16T10:09:55.000Z
2021-02-16T10:09:55.000Z
tests/test_html_table.py
gp2kumar/jsonconverter
e90a989c8fe45c466179a9e202f301d1c495668c
[ "MIT" ]
null
null
null
tests/test_html_table.py
gp2kumar/jsonconverter
e90a989c8fe45c466179a9e202f301d1c495668c
[ "MIT" ]
null
null
null
from unittest import TestCase from jsonConverter import jsonConverter from jsonConverter.errors import EmptyJson from bs4 import BeautifulSoup import os import json class TestHtmlTable(TestCase): def __init__(self, *args, **kwargs): current_directory = os.path.dirname(os.path.realpath(__file__)) ...
39.583333
99
0.689123
1,257
0.882105
0
0
0
0
0
0
59
0.041404
d36fcf0138716f178ec96518e782b2fccc83abc3
620
py
Python
04-text-byte/example_4_10.py
hua372494277/fluent_python_example-code
07577e3e3ca822ab0e769bbaa22477fd988edb36
[ "MIT" ]
null
null
null
04-text-byte/example_4_10.py
hua372494277/fluent_python_example-code
07577e3e3ca822ab0e769bbaa22477fd988edb36
[ "MIT" ]
null
null
null
04-text-byte/example_4_10.py
hua372494277/fluent_python_example-code
07577e3e3ca822ab0e769bbaa22477fd988edb36
[ "MIT" ]
null
null
null
fp = open('cafe.txt', 'w', encoding='utf-8') print(fp) # <_io.TextIOWrapper name='cafe.txt' mode='w' encoding='utf-8'> # 默认情况下,open函数采用文本模式,返回一个TextIOWrapper对象 print(fp.write('café')) # 在TextIOWrapper对象上调用write方法返回写入的Unicode字符数:4 fp.close() import os print(os.stat('cafe.txt').st_size) fp2 = open('cafe.txt') print(fp2) ...
23.846154
63
0.729032
0
0
0
0
0
0
0
0
490
0.621039
d3719221e4d0e1a5fd57d85ca24e8b4d7705fe8c
15,915
py
Python
git-sync.py
wikimedia-bg/git-sync
de047324e34595bfd8b6eb80c09aa8a22674ea12
[ "MIT" ]
null
null
null
git-sync.py
wikimedia-bg/git-sync
de047324e34595bfd8b6eb80c09aa8a22674ea12
[ "MIT" ]
7
2020-05-22T21:39:28.000Z
2020-07-02T12:25:13.000Z
git-sync.py
wikimedia-bg/git-sync
de047324e34595bfd8b6eb80c09aa8a22674ea12
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import os.path import re import signal import sys import time from datetime import datetime as dt from datetime import timedelta as td from pathlib import Path import git import pywikibot as pwb import yaml class SignalHandler: def __init__(self): self._is_sleeping = F...
43.964088
120
0.543827
14,889
0.934828
0
0
0
0
0
0
4,238
0.266089
d3723a1afefdf302f5961dea01b38d29e321a538
3,377
py
Python
SurfaceTopography/Exceptions.py
ContactEngineering/SurfaceTopography
7dc7346cb9545326a3323fda0d402f254eae8c0e
[ "MIT" ]
1
2021-12-21T15:37:06.000Z
2021-12-21T15:37:06.000Z
SurfaceTopography/Exceptions.py
ContactEngineering/SurfaceTopography
7dc7346cb9545326a3323fda0d402f254eae8c0e
[ "MIT" ]
98
2021-03-29T11:13:27.000Z
2022-03-18T10:37:37.000Z
SurfaceTopography/Exceptions.py
ContactEngineering/SurfaceTopography
7dc7346cb9545326a3323fda0d402f254eae8c0e
[ "MIT" ]
2
2021-04-15T20:42:23.000Z
2021-07-09T10:37:35.000Z
# # Copyright 2021 Lars Pastewka # # ### MIT license # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
28.378151
111
0.705952
2,144
0.634883
0
0
0
0
0
0
2,532
0.749778
d37242bd6188eb88e2ded7071af329a1153d9449
304
py
Python
stardate.py
NicolasFlandrois/stardate
d68adb84bfaf50fe95aa907f8e21f7b4100077f6
[ "MIT" ]
1
2019-05-04T00:58:56.000Z
2019-05-04T00:58:56.000Z
stardate.py
NicolasFlandrois/Stardate
d68adb84bfaf50fe95aa907f8e21f7b4100077f6
[ "MIT" ]
null
null
null
stardate.py
NicolasFlandrois/Stardate
d68adb84bfaf50fe95aa907f8e21f7b4100077f6
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Date: Mon 24 Jun 2019 17:36:52 CEST # Author: Nicolas Flandrois # Description: Running Stardate from sdview import View from sdcompute import Compute def main(): """main docstring""" View.menu(Compute.sdconvert, Compute.sdtranslate) if __name__ == '__main__': main()
19
53
0.713816
0
0
0
0
0
0
0
0
143
0.470395
d37289938c883e0f5b2c05d45673f8a8f5f65c59
2,230
py
Python
eve/flaskapp.py
nrcmedia/eve
fa45b0fd34e0fd2a6e201b71edd382fe0d72e86f
[ "BSD-3-Clause" ]
null
null
null
eve/flaskapp.py
nrcmedia/eve
fa45b0fd34e0fd2a6e201b71edd382fe0d72e86f
[ "BSD-3-Clause" ]
null
null
null
eve/flaskapp.py
nrcmedia/eve
fa45b0fd34e0fd2a6e201b71edd382fe0d72e86f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ eve.flaskapp ~~~~~~~~~~~~ This module implements the central WSGI application object as a Flask subclass. :copyright: (c) 2013 by Nicola Iarocci. :license: BSD, see LICENSE for more details. """ import eve from flask import Blueprint from werkzeug.routing import B...
33.787879
89
0.626457
1,695
0.76009
0
0
0
0
0
0
625
0.280269
d373a4b5adeda9e4dca2dfc62136120dbf63f0c7
4,746
py
Python
htn/htn.py
jsupratman13/StudySession2018
ea52ae61a23b2a9ae08185acb49ceb34fcc7f750
[ "MIT" ]
null
null
null
htn/htn.py
jsupratman13/StudySession2018
ea52ae61a23b2a9ae08185acb49ceb34fcc7f750
[ "MIT" ]
null
null
null
htn/htn.py
jsupratman13/StudySession2018
ea52ae61a23b2a9ae08185acb49ceb34fcc7f750
[ "MIT" ]
null
null
null
################################ # @file htn.py # # @brief HTN Planner core # # @author Joshua Supratman # # @date 2017/09/07 # ################################ import copy class WorldState(object): def __init__(self, *args): self.define_status = args self.curr...
35.155556
132
0.578171
4,524
0.953224
0
0
0
0
0
0
412
0.08681
d37462d1ff2d389bfad4c0d668e447663a2bbb4d
2,606
py
Python
ethosu/mlw_codec/test/test_mlw_codec.py
DemonGiggle/vela
298e383d2dbab465ddd4995a6ebc6f8bc07c8719
[ "Apache-2.0" ]
1
2021-12-01T17:16:14.000Z
2021-12-01T17:16:14.000Z
ethosu/mlw_codec/test/test_mlw_codec.py
DemonGiggle/vela
298e383d2dbab465ddd4995a6ebc6f8bc07c8719
[ "Apache-2.0" ]
null
null
null
ethosu/mlw_codec/test/test_mlw_codec.py
DemonGiggle/vela
298e383d2dbab465ddd4995a6ebc6f8bc07c8719
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2020 Arm Limited or its affiliates. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 # # 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 # # www.a...
41.365079
116
0.720645
1,848
0.709133
0
0
694
0.266309
0
0
1,213
0.465464
d374f59d67c6fe97e2ccc0a2b608d4637cc76e57
168
py
Python
search.py
urplatshubham/arr_deal
a3b0563e78b9f1fa267bb934f3cf0ff922dc35f2
[ "MIT" ]
null
null
null
search.py
urplatshubham/arr_deal
a3b0563e78b9f1fa267bb934f3cf0ff922dc35f2
[ "MIT" ]
null
null
null
search.py
urplatshubham/arr_deal
a3b0563e78b9f1fa267bb934f3cf0ff922dc35f2
[ "MIT" ]
null
null
null
class searching: def lin_search(self, arr, num): for i in range(len(arr)): if arr[i] == num: return i return -1
21
36
0.458333
166
0.988095
0
0
0
0
0
0
0
0
d3756011bd4353bc293cc731639bdc9698e493c0
2,463
py
Python
Unit1/Lesson11.py
szhua/PythonLearn
12eaf7cc74a0310bb23e21773f3c83deb91d0362
[ "Apache-2.0" ]
null
null
null
Unit1/Lesson11.py
szhua/PythonLearn
12eaf7cc74a0310bb23e21773f3c83deb91d0362
[ "Apache-2.0" ]
null
null
null
Unit1/Lesson11.py
szhua/PythonLearn
12eaf7cc74a0310bb23e21773f3c83deb91d0362
[ "Apache-2.0" ]
null
null
null
#map reduce def add(x): return x+10+x*11 x =map(add,list(range(10))) print(list(x)) from functools import reduce def add(x,y=0): return x+10+x*11 y =reduce(add,map(add,list(range(10)))) print(y) def char2num(s): return {"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9}[s] def getResult(x,...
20.355372
83
0.593585
0
0
514
0.1903
0
0
0
0
728
0.26953
d376264f031158ca378b0cfdfc3c0c40130ce654
53
py
Python
session-9/testcolor.py
ssxrgio/2018-19-PNE-practices
f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0
[ "Apache-2.0" ]
null
null
null
session-9/testcolor.py
ssxrgio/2018-19-PNE-practices
f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0
[ "Apache-2.0" ]
null
null
null
session-9/testcolor.py
ssxrgio/2018-19-PNE-practices
f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0
[ "Apache-2.0" ]
null
null
null
import termcolor termcolor.cprint('Green.', 'green')
17.666667
35
0.754717
0
0
0
0
0
0
0
0
15
0.283019
d376f8e75aeda7a5f8ab84956c3eb1aca0f7b88f
842
pyde
Python
1/SaveJPG/SaveJPG.pyde
sinoapollo/pyprocessingsamplecode
6ed3a94ab8d2d3b58b1bf73f7c06b11870356f9c
[ "MIT" ]
2
2019-05-16T17:30:38.000Z
2020-06-17T05:33:11.000Z
1/SaveJPG/SaveJPG.pyde
sinoapollo/pyprocessingsamplecode
6ed3a94ab8d2d3b58b1bf73f7c06b11870356f9c
[ "MIT" ]
null
null
null
1/SaveJPG/SaveJPG.pyde
sinoapollo/pyprocessingsamplecode
6ed3a94ab8d2d3b58b1bf73f7c06b11870356f9c
[ "MIT" ]
1
2019-03-03T15:37:50.000Z
2019-03-03T15:37:50.000Z
""" Author: 陈天翼(Apollo Chen) Date: 2019-02-18 Description: 学习重点:beginShape, vertex, endShape, save, saveFrame """ x = 0 def setup(): size(800, 600) triangle(400, 150, 400, 250, 500, 200) triangle(250, 250, 300, 300, 300, 250) rect(300, 250, 200, 50) triangle(550, 250, 500, 300, 500, 250) save(...
19.581395
64
0.562945
0
0
0
0
0
0
0
0
226
0.262181
d377969c4f87184fc09ab88ee20863bc245c4b23
646
py
Python
plot_testing.py
MorganR/gaussian-processes
bf8e1c8453b5c07a525b1393bbe8013b4c10d9fb
[ "MIT" ]
null
null
null
plot_testing.py
MorganR/gaussian-processes
bf8e1c8453b5c07a525b1393bbe8013b4c10d9fb
[ "MIT" ]
null
null
null
plot_testing.py
MorganR/gaussian-processes
bf8e1c8453b5c07a525b1393bbe8013b4c10d9fb
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np plt.style.use('ggplot') import GPflow import math N = 16 X = np.random.rand(N,1) Y = np.sin(12*X) + 0.66*np.cos(25*X) + np.random.randn(N,1)*0.1 + 3 k = GPflow.kernels.Matern52(1, lengthscales=0.3) m = GPflow.gpr.GPR(X, Y, kern=k) m.likelihood.variance = 0.01 m....
20.1875
116
0.631579
0
0
0
0
0
0
0
0
21
0.032508
d377daf5638a7fc8d6add5f58baae6658f5fa26a
102
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__main__.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__main__.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/__main__.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
from core.main import main import sys sys.path.append(".") # TODO CHANGE TO CORRECT IMPORT main()
10.2
31
0.715686
0
0
0
0
0
0
0
0
34
0.333333
d378df2e0e879fe284c4b24445531bfc9a8d0706
2,092
py
Python
1089.duplicate-zeros.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1089.duplicate-zeros.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1089.duplicate-zeros.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=1089 lang=python # # [1089] Duplicate Zeros # # https://leetcode.com/problems/duplicate-zeros/description/ # # algorithms # Easy (58.99%) # Likes: 118 # Dislikes: 94 # Total Accepted: 15.1K # Total Submissions: 25.6K # Testcase Example: '[1,0,2,3,0,4,5,0]' # # Given a fixed...
21.56701
77
0.546845
962
0.459627
0
0
0
0
0
0
1,356
0.647874
d379100771febdd3cd71e6437f6cbe231c5f4030
2,841
py
Python
scripts/motion/preprocess.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
1
2020-07-21T10:52:26.000Z
2020-07-21T10:52:26.000Z
scripts/motion/preprocess.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
null
null
null
scripts/motion/preprocess.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
2
2020-07-21T15:30:42.000Z
2021-01-20T21:54:09.000Z
""" Preprocess This script loads the videos, removes the audio track, cuts the videos from the start point to endpoint for given dataset fragments, and saves them in a new directory. A new `tsv` file is being generated with corresponding filenames and ground truth labels. Parameters ---------- data_dir : str, optiona...
33.821429
92
0.708905
0
0
0
0
1,620
0.570222
0
0
1,503
0.529039
d379ebabfe6a453a1a327feab9114e7908641286
391
py
Python
2022-04-28-mean-shift.py
joaco18/maia-italy-aia
74032ea590c2a29fe5a38b539cee5c748c7ba063
[ "MIT" ]
null
null
null
2022-04-28-mean-shift.py
joaco18/maia-italy-aia
74032ea590c2a29fe5a38b539cee5c748c7ba063
[ "MIT" ]
null
null
null
2022-04-28-mean-shift.py
joaco18/maia-italy-aia
74032ea590c2a29fe5a38b539cee5c748c7ba063
[ "MIT" ]
null
null
null
import cv2 import utils def main(): input_img = cv2.imread(str(utils.EXAMPLES_DIR/'retina.png')) result = cv2.pyrMeanShiftFiltering(input_img, 2, 30, 0) cv2.imshow('Original', input_img) cv2.waitKey(0) cv2.imshow('Mean Shift result', result) cv2.waitKey(0) cv2.imwrite(str(utils.EXAMPLES...
19.55
64
0.675192
0
0
0
0
0
0
0
0
66
0.168798
d37ad7f9f7b6e3bd8100c785d3bb4dcf55ed0deb
400
py
Python
Scripts/Python/Utils/resample.py
TheSchilk/PmodADC
7c79507034d3c8e1f475fa4ca5fec741bf46c17e
[ "MIT" ]
1
2022-02-15T06:53:36.000Z
2022-02-15T06:53:36.000Z
Scripts/Python/Utils/resample.py
TheSchilk/PmodADC
7c79507034d3c8e1f475fa4ca5fec741bf46c17e
[ "MIT" ]
null
null
null
Scripts/Python/Utils/resample.py
TheSchilk/PmodADC
7c79507034d3c8e1f475fa4ca5fec741bf46c17e
[ "MIT" ]
null
null
null
import scipy.signal as sps import numpy as np def resample_audio(audio, fs_from, fs_to): number_of_samples = round(len(audio) * float(fs_to) / fs_from) audio = sps.resample(audio, number_of_samples) # Ensure re-sampling did not create samples outside of [-1,1]: max_amplitude = np.abs(audio).max() ...
25
66
0.695
0
0
0
0
0
0
0
0
62
0.155
d37b259e6b4975ce0d8db6b86cb732283a09517f
3,849
py
Python
feder/main/urls.py
dzemeuksis/feder
32ef7793af6256d4ecada61505c7baf334b34419
[ "MIT" ]
16
2015-08-11T17:20:26.000Z
2022-02-11T20:15:41.000Z
feder/main/urls.py
dzemeuksis/feder
32ef7793af6256d4ecada61505c7baf334b34419
[ "MIT" ]
534
2015-08-04T00:10:54.000Z
2022-03-17T10:44:47.000Z
feder/main/urls.py
dzemeuksis/feder
32ef7793af6256d4ecada61505c7baf334b34419
[ "MIT" ]
10
2017-08-30T13:34:32.000Z
2022-02-18T13:00:35.000Z
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.contrib.sitemaps.views import index, sitemap from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView from rest_...
38.108911
88
0.719408
0
0
0
0
0
0
0
0
1,087
0.282411
d37bfc505960f1acaa93775aaa08e42265d43e52
8,144
py
Python
docker-images/taigav2/taiga-back/taiga/base/api/viewsets.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/base/api/viewsets.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/taiga/base/api/viewsets.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
37.018182
87
0.661469
5,521
0.677756
0
0
2,284
0.280383
0
0
4,449
0.546158
d37e9aa4d9aff346dd05fdb216fa61604c83f7db
1,632
py
Python
lab1/abstractFactory.py
EpicUsaMan/univer
a6aaab7a3ef14844e8a0d1b755603d003693bb5f
[ "MIT" ]
null
null
null
lab1/abstractFactory.py
EpicUsaMan/univer
a6aaab7a3ef14844e8a0d1b755603d003693bb5f
[ "MIT" ]
null
null
null
lab1/abstractFactory.py
EpicUsaMan/univer
a6aaab7a3ef14844e8a0d1b755603d003693bb5f
[ "MIT" ]
null
null
null
'''Define Abstract Factory''' from abc import ABCMeta, abstractmethod class Snack: pass class Beer: pass class Beer(metaclass=ABCMeta): @abstractmethod def interact(self, snack: Snack): pass class Snack(metaclass=ABCMeta): @abstractmethod def interact(self, beer: Beer): pass class Tuborg(Beer): def inte...
20.148148
64
0.711397
1,263
0.773897
0
0
216
0.132353
0
0
152
0.093137
d3800894268187dfb1384e045a327952f3559d7b
4,972
py
Python
myscripts/projects/thesis/mean_profile.py
LSaffin/scripts
100fc442229ea11f8766a6d78b4db8790c607326
[ "MIT" ]
1
2020-03-16T13:54:28.000Z
2020-03-16T13:54:28.000Z
myscripts/projects/thesis/mean_profile.py
LSaffin/scripts
100fc442229ea11f8766a6d78b4db8790c607326
[ "MIT" ]
null
null
null
myscripts/projects/thesis/mean_profile.py
LSaffin/scripts
100fc442229ea11f8766a6d78b4db8790c607326
[ "MIT" ]
1
2021-01-16T04:54:53.000Z
2021-01-16T04:54:53.000Z
import matplotlib.pyplot as plt import iris from irise import plot from irise.plot.util import multilabel, legend from systematic_forecasts import second_analysis from myscripts.projects.thesis import plotdir def main(): # Parameters same for all plots mappings = ['pv_full', 'pv_main', 'pv_phys'] domains ...
29.951807
79
0.580853
0
0
0
0
0
0
0
0
1,409
0.283387
d380729626394d54cdb858039c05f741e3b17ed1
359
py
Python
warmup/sherlockbeast/sherlockbeast.py
antfarmar/hackerrank
87aa6ec8abd35746f209efdaa29b1799fd03baaa
[ "Unlicense" ]
1
2021-09-09T02:02:53.000Z
2021-09-09T02:02:53.000Z
warmup/sherlockbeast/sherlockbeast.py
antfarmar/hackerrank
87aa6ec8abd35746f209efdaa29b1799fd03baaa
[ "Unlicense" ]
null
null
null
warmup/sherlockbeast/sherlockbeast.py
antfarmar/hackerrank
87aa6ec8abd35746f209efdaa29b1799fd03baaa
[ "Unlicense" ]
null
null
null
from sys import stdin #file = stdin file = open( r".\data\sherlockbeast.txt" ) #stdin data = list(map(int, file.read().strip().split()))[1:] file.close() # Maximize x in k = 3x + 5y for k in data: for x in range(k//3, -1, -1): if (k-3 * x) % 5 == 0: y = (k-3 * x) // 5 print('5'*3*x + '3'*5*y) ...
19.944444
54
0.512535
0
0
0
0
0
0
0
0
79
0.220056
d383caabaf3ad3e599d36baea06fb49c58be08ee
208
py
Python
atcoder/other/lang_update_202001/abc083_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/other/lang_update_202001/abc083_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/other/lang_update_202001/abc083_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
def main() -> None: N, A, B = map(int, input().split()) ans = 0 for i in range(1, N+1): ans += i * (A <= sum(map(int, str(i))) <= B) print(ans) if __name__ == '__main__': main()
18.909091
52
0.466346
0
0
0
0
0
0
0
0
10
0.048077
d383fefb1598ef6ec1a75585c0aa27732689abcd
1,601
py
Python
quadruped_spring/env/env_randomizers/env_randomizer_collection.py
francescovezzi/quadruped_spring
23848496ac7a4508e8a0f527e961c7956fd12f95
[ "MIT" ]
3
2022-02-21T22:30:21.000Z
2022-03-03T12:59:25.000Z
quadruped_spring/env/env_randomizers/env_randomizer_collection.py
francescovezzi/quadruped_spring
23848496ac7a4508e8a0f527e961c7956fd12f95
[ "MIT" ]
1
2022-03-28T09:22:50.000Z
2022-03-28T16:44:46.000Z
quadruped_spring/env/env_randomizers/env_randomizer_collection.py
francescovezzi/quadruped_spring
23848496ac7a4508e8a0f527e961c7956fd12f95
[ "MIT" ]
null
null
null
from quadruped_spring.env.env_randomizers.env_randomizer import ( EnvRandomizerDisturbance, EnvRandomizerInitialConfiguration, EnvRandomizerMasses, EnvRandomizerSprings, ) from quadruped_spring.utils.base_collection import CollectionBase # Implemented observation spaces for deep reinforcement learning:...
44.472222
90
0.712055
850
0.530918
0
0
0
0
0
0
695
0.434104
d385a78415912448a87e4e43be4dcba83acd9566
17,144
py
Python
training/common/dataset_training_deploy_pipeline.py
ivanmkc/vertex-ai-project-example
070c8d5f534a1fc9f235eb041337592af074de7f
[ "MIT" ]
1
2021-08-24T07:56:10.000Z
2021-08-24T07:56:10.000Z
training/common/dataset_training_deploy_pipeline.py
ivanmkc/vertex-ai-project-example
070c8d5f534a1fc9f235eb041337592af074de7f
[ "MIT" ]
null
null
null
training/common/dataset_training_deploy_pipeline.py
ivanmkc/vertex-ai-project-example
070c8d5f534a1fc9f235eb041337592af074de7f
[ "MIT" ]
1
2022-03-30T04:17:58.000Z
2022-03-30T04:17:58.000Z
from typing import Any, Callable, Dict, Optional, Sequence, Tuple import abc import dataclasses from google_cloud_pipeline_components import aiplatform as gcc_aip import kfp from kfp.v2.dsl import component, importer, Condition, Dataset, Model import training.common.managed_dataset_pipeline as managed_dataset_pipeline...
43.292929
103
0.631941
16,724
0.975502
0
0
14,800
0.863276
0
0
9,077
0.529456
d385ca7241bd26e2e1fb9eb4af0ac1bee221e31c
1,465
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2019-05-09T07:21:25.000Z
2019-08-05T06:37:53.000Z
sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
sandbox/lib/jumpscale/JumpscaleLibs/clients/gitea/GiteaOrgForMember.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
from .GiteaOrg import GiteaOrg class GiteaOrgForMember(GiteaOrg): def save(self, commit=True): is_valid, err = self._validate(create=True) if not commit or not is_valid: self._log_debug(err) return is_valid try: resp = self.user.client.api.admin.adminCr...
31.847826
105
0.574061
1,431
0.976792
0
0
0
0
0
0
382
0.260751
d3860320a8f96b2cb4f1e64f815a4818f17ba4f3
1,293
py
Python
solutions/107.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/107.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/107.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/binary-tree-level-order-traversal-ii/description Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ ...
24.396226
145
0.54215
844
0.652746
0
0
0
0
0
0
519
0.401392
d3894fa9b5b91661bd5eeb0871ee8e2e049cf34c
1,486
py
Python
crits/emails/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
738
2015-01-02T12:39:55.000Z
2022-03-23T11:05:51.000Z
crits/emails/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
605
2015-01-01T01:03:39.000Z
2021-11-17T18:51:07.000Z
crits/emails/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
316
2015-01-07T12:35:01.000Z
2022-03-30T04:44:30.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^search/$', views.email_search, name='crits-emails-views-email_search'), url(r'^delete/(?P<email_id>\w+)/$', views.email_del, name='crits-emails-views-email_del'), url(r'^upload/attach/(?P<email_id>\w+)/$', views.upload_attach, nam...
70.761905
151
0.718708
0
0
0
0
0
0
0
0
842
0.566622
d38aebe3f58df0d025b3b9609b4879bf213f6c6a
1,769
py
Python
lang/Python/sum-multiples-of-3-and-5-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/sum-multiples-of-3-and-5-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/sum-multiples-of-3-and-5-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
'''Summed multiples of 3 and 5 up to n''' # sum35 :: Int -> Int def sum35(n): '''Sum of all positive multiples of 3 or 5 below n. ''' f = sumMults(n) return f(3) + f(5) - f(15) # sumMults :: Int -> Int -> Int def sumMults(n): '''Area under a straight line between the first multiple...
24.569444
70
0.453363
0
0
0
0
0
0
0
0
844
0.477106
d38b57724053d1049345f03cd38a32f256f067a2
1,515
py
Python
butterflow/source.py
changhaitravis/butterflow
d9f92e31a57e800a56b98fa17786144b50d3e3bb
[ "MIT" ]
1,340
2015-01-04T01:43:39.000Z
2022-03-29T04:44:41.000Z
butterflow/source.py
freelandy/butterflow
82133fed2f59c5753fc916e6c067373a640e5dcb
[ "MIT" ]
134
2015-04-05T10:04:02.000Z
2022-02-16T22:34:03.000Z
butterflow/source.py
freelandy/butterflow
82133fed2f59c5753fc916e6c067373a640e5dcb
[ "MIT" ]
116
2015-04-14T17:37:33.000Z
2022-02-19T21:36:22.000Z
# -*- coding: utf-8 -*- # uses the opencv api as the default frame source. must ensure that the ffmpeg # compiled that it is linked against is the same as the ffmpeg being used to # render video files import cv2 class OpenCvFrameSource(object): def __init__(self, src): self.src = src self.capture...
31.5625
79
0.629043
1,299
0.857426
0
0
127
0.083828
0
0
421
0.277888
d38e659f1b9f7b0e2e90d4b321084e607d07d859
834
py
Python
extraResources/electron-backend/routes/toc_pdf.py
vilaj46/ad1-ad2-briefs
8bd5de28315a0525b28adb4cf8f1a7d22eefef25
[ "MIT" ]
null
null
null
extraResources/electron-backend/routes/toc_pdf.py
vilaj46/ad1-ad2-briefs
8bd5de28315a0525b28adb4cf8f1a7d22eefef25
[ "MIT" ]
null
null
null
extraResources/electron-backend/routes/toc_pdf.py
vilaj46/ad1-ad2-briefs
8bd5de28315a0525b28adb4cf8f1a7d22eefef25
[ "MIT" ]
null
null
null
import fitz import os from classes.Table_Of_Contents import get_my_toc from classes.Brief import get_my_brief def toc_pdf(): BRIEF = get_my_brief() doc = BRIEF.data['document'] TABLE_OF_CONTENTS = get_my_toc() page_number_start = TABLE_OF_CONTENTS.data['pageNumberStartForMe'] page_number_end = TA...
32.076923
77
0.678657
0
0
0
0
0
0
0
0
94
0.11271
d38eab39ff389c21949f48dc17d7c3a83dc561eb
3,172
py
Python
orquesta/tests/unit/conducting/test_task_with_no_action.py
trstruth/orquesta
e6ebbbeb2c661486067e659dc7552f0a986603a6
[ "Apache-2.0" ]
3
2020-11-17T21:29:26.000Z
2021-03-17T13:56:16.000Z
orquesta/tests/unit/conducting/test_task_with_no_action.py
trstruth/orquesta
e6ebbbeb2c661486067e659dc7552f0a986603a6
[ "Apache-2.0" ]
5
2021-03-02T01:41:36.000Z
2022-03-08T23:31:31.000Z
orquesta/tests/unit/conducting/test_task_with_no_action.py
trstruth/orquesta
e6ebbbeb2c661486067e659dc7552f0a986603a6
[ "Apache-2.0" ]
15
2020-08-08T16:21:40.000Z
2022-03-17T04:45:51.000Z
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.107527
96
0.666456
2,420
0.762926
0
0
0
0
0
0
1,175
0.370429
d3901c5c2b4293995ce5b2767aadc677d381a86e
559
py
Python
django_haveli_admin/templatetags/django_template_tags.py
purnendukar/django-haveli-admin
97fd8eb89bf2dbdbdf206ff3f267cfa94fa0961d
[ "BSD-3-Clause" ]
3
2021-11-07T17:26:06.000Z
2021-11-12T14:26:19.000Z
django_haveli_admin/templatetags/django_template_tags.py
purnendu-pdgt/django-haveli-admin
0dc09160f4ae9cc98ce4a37964fbec82ba62338f
[ "BSD-3-Clause" ]
null
null
null
django_haveli_admin/templatetags/django_template_tags.py
purnendu-pdgt/django-haveli-admin
0dc09160f4ae9cc98ce4a37964fbec82ba62338f
[ "BSD-3-Clause" ]
1
2020-09-09T13:55:25.000Z
2020-09-09T13:55:25.000Z
from django.conf import settings from django import template # Depending on your django version, `reverse` and `NoReverseMatch` has been moved. # From django 2.0 they've been moved to `django.urls` try: from django.urls import reverse, NoReverseMatch except ImportError: from django.core.urlresolvers import rev...
29.421053
82
0.774597
0
0
0
0
0
0
0
0
209
0.373882
d390ad35f1f75a5024b0e3c28f3a3904dc282f20
1,555
py
Python
utils.py
ksajan/Dominant_color-HexCode-
4e5487e5e534222a77fd8279ffbbb7b676a97dea
[ "MIT" ]
null
null
null
utils.py
ksajan/Dominant_color-HexCode-
4e5487e5e534222a77fd8279ffbbb7b676a97dea
[ "MIT" ]
null
null
null
utils.py
ksajan/Dominant_color-HexCode-
4e5487e5e534222a77fd8279ffbbb7b676a97dea
[ "MIT" ]
null
null
null
# import the necessary packages import numpy as np import cv2 def centroid_histogram(clt): # grab the number of different clusters and create a histogram # based on the number of pixels assigned to each cluster print(clt) numLabels = np.arange(0, len(np.unique(clt.labels_)) + 1) (hist, _) = np.histogram...
28.796296
64
0.669453
0
0
0
0
0
0
0
0
962
0.61865
d3914a636ecdc5d216e629807b7d61aa41084744
3,031
py
Python
html2txt/converters/html2markdown.py
renesugar/html2txt
069ff7048417737f9072dea86dd6a33b31049b2a
[ "MIT" ]
null
null
null
html2txt/converters/html2markdown.py
renesugar/html2txt
069ff7048417737f9072dea86dd6a33b31049b2a
[ "MIT" ]
null
null
null
html2txt/converters/html2markdown.py
renesugar/html2txt
069ff7048417737f9072dea86dd6a33b31049b2a
[ "MIT" ]
2
2021-09-20T21:47:22.000Z
2021-12-10T03:59:58.000Z
import os import sys import argparse from html2txt import parsers #from importlib import reload # reload #reload(parsers) #!/usr/bin/env python3 # Copyright (c) 2020 Rene Sugar. # License: MIT (http://www.opensource.org/licenses/mit-license.php) class Html2Markdown(object): def __init(self): self.root_ = N...
27.0625
111
0.684922
287
0.094688
0
0
49
0.016166
0
0
755
0.249093
d391ef9e203cd6b88ad46e17124f330475edc703
6,311
py
Python
models/GAN_D.py
pkulwj1994/AdversarialConsistentScoreMatching
f439f242f004ce06382ed72f2aa7daf9c262abfa
[ "MIT" ]
119
2020-09-09T13:59:28.000Z
2022-03-17T17:04:10.000Z
models/GAN_D.py
pkulwj1994/AdversarialConsistentScoreMatching
f439f242f004ce06382ed72f2aa7daf9c262abfa
[ "MIT" ]
2
2020-11-13T03:26:22.000Z
2021-03-19T23:04:33.000Z
models/GAN_D.py
pkulwj1994/AdversarialConsistentScoreMatching
f439f242f004ce06382ed72f2aa7daf9c262abfa
[ "MIT" ]
19
2020-09-14T05:56:51.000Z
2021-12-28T15:53:34.000Z
import torch import torch.nn.utils.spectral_norm as spectral_norm class Activation(torch.nn.Module): def __init__(self, arch): super().__init__() self.act = torch.nn.LeakyReLU(0.1 if arch == 1 else .02, inplace=True) def forward(self, x): return self.act(x) def weights_init(m): c...
44.758865
118
0.555855
5,904
0.935509
0
0
0
0
0
0
738
0.116939
d39260545154fd2d5d15f18cd19472a84271771d
4,038
py
Python
rpxdock/tests/body/test_body.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
null
null
null
rpxdock/tests/body/test_body.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
null
null
null
rpxdock/tests/body/test_body.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
1
2020-04-13T20:07:52.000Z
2020-04-13T20:07:52.000Z
import _pickle from time import perf_counter import numpy as np, rpxdock as rp, rpxdock.homog as hm from rpxdock.body import Body def test_body(C2_3hm4, C3_1nza, sym1=2, sym2=3): body1 = Body(C2_3hm4, sym1) body2 = Body(C3_1nza, sym2) assert body1.bvh_bb.max_id() == body1.nres - 1 assert body1.bvh_cen.max_...
33.65
81
0.603269
0
0
0
0
0
0
0
0
921
0.228083
d3935d1addfb4820d9febfdcde59cfea52e486c1
1,922
py
Python
language_apps/expr2/gen/Expr2Visitor.py
SadraGoudarzdashti/IUSTCompiler
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
[ "MIT" ]
3
2020-12-04T11:01:23.000Z
2022-02-12T19:29:35.000Z
language_apps/expr2/gen/Expr2Visitor.py
SadraGoudarzdashti/IUSTCompiler
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
[ "MIT" ]
null
null
null
language_apps/expr2/gen/Expr2Visitor.py
SadraGoudarzdashti/IUSTCompiler
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
[ "MIT" ]
30
2020-12-04T11:00:19.000Z
2021-12-31T15:59:21.000Z
# Generated from D:/AnacondaProjects/iust_compilers_teaching/grammars\Expr2.g4 by ANTLR 4.8 from antlr4 import * if __name__ is not None and "." in __name__: from .Expr2Parser import Expr2Parser else: from Expr2Parser import Expr2Parser # This class defines a complete generic visitor for a parse tree produced ...
30.507937
91
0.735172
1,566
0.814776
0
0
0
0
0
0
693
0.360562
d396ca37920e848defb999ee20b01daf407d64e1
34
py
Python
utils/__init__.py
toandaominh1997/ProductDetectionShopee
9fe66b1e96ec3709630d486b66fc13a0fbc55a05
[ "MIT" ]
null
null
null
utils/__init__.py
toandaominh1997/ProductDetectionShopee
9fe66b1e96ec3709630d486b66fc13a0fbc55a05
[ "MIT" ]
null
null
null
utils/__init__.py
toandaominh1997/ProductDetectionShopee
9fe66b1e96ec3709630d486b66fc13a0fbc55a05
[ "MIT" ]
1
2020-07-06T07:15:43.000Z
2020-07-06T07:15:43.000Z
from .utils import get_state_dict
17
33
0.852941
0
0
0
0
0
0
0
0
0
0
d397ce9d22d04657220849e6b59481774b329fa2
442
py
Python
q2_api_client/clients/refresh_cache/refresh_cache_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/refresh_cache/refresh_cache_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/refresh_cache/refresh_cache_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
from q2_api_client.clients.base_q2_client import BaseQ2Client from q2_api_client.endpoints.refresh_cache_endpoints import RefreshCacheEndpoint class RefreshCacheClient(BaseQ2Client): def refresh_cache(self): """POST /refreshCache :return: Response object :rtype: requests.Response ...
29.466667
80
0.744344
296
0.669683
0
0
0
0
0
0
101
0.228507
d39b5b5c2f8b7b36185feda5514fb6b6d986e3a3
5,153
py
Python
JumpscaleCore/clients/threebot/ThreebotClient.py
grimpy/jumpscaleX_core
c24d6d47fccc0801e578fedb376ef110f7a00bad
[ "Apache-2.0" ]
null
null
null
JumpscaleCore/clients/threebot/ThreebotClient.py
grimpy/jumpscaleX_core
c24d6d47fccc0801e578fedb376ef110f7a00bad
[ "Apache-2.0" ]
null
null
null
JumpscaleCore/clients/threebot/ThreebotClient.py
grimpy/jumpscaleX_core
c24d6d47fccc0801e578fedb376ef110f7a00bad
[ "Apache-2.0" ]
null
null
null
import nacl from Jumpscale import j import binascii JSConfigBase = j.baseclasses.object_config from nacl.signing import VerifyKey from nacl.public import PrivateKey, PublicKey, SealedBox from Jumpscale.clients.gedis.GedisClient import GedisClientActors class ThreebotClient(JSConfigBase): _SCHEMATEXT = """ @...
37.889706
151
0.619445
4,895
0.949932
0
0
883
0.171356
0
0
1,250
0.242577
d39bc4b7aec9047b6724d025f5c54216daae68b1
3,669
py
Python
f5/bigip/tm/analytics/test/unit/test_dos_vis_common.py
hixio-mh/f5-common-python
53038d44afa381b70f6e2bb459f7b9b943f3172d
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigip/tm/analytics/test/unit/test_dos_vis_common.py
hixio-mh/f5-common-python
53038d44afa381b70f6e2bb459f7b9b943f3172d
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigip/tm/analytics/test/unit/test_dos_vis_common.py
hixio-mh/f5-common-python
53038d44afa381b70f6e2bb459f7b9b943f3172d
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2018 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
37.824742
91
0.738348
2,329
0.634778
0
0
362
0.098664
0
0
997
0.271736
d39c8a12749bed6d31aa0a5acbe582b417d5d34f
2,822
py
Python
clustering_methods/kmeans.py
AlgoLab/celluloid
7d4e9d20563a1c140879433b371fd10a1708b362
[ "MIT" ]
null
null
null
clustering_methods/kmeans.py
AlgoLab/celluloid
7d4e9d20563a1c140879433b371fd10a1708b362
[ "MIT" ]
null
null
null
clustering_methods/kmeans.py
AlgoLab/celluloid
7d4e9d20563a1c140879433b371fd10a1708b362
[ "MIT" ]
1
2019-11-09T02:50:03.000Z
2019-11-09T02:50:03.000Z
import numpy as np from sklearn.cluster import KMeans import argparse, os, sys, errno parser = argparse.ArgumentParser(description='K-means clustering') parser.add_argument('-f', '--file', type=str, required=True, help='SCS matrix') parser.add_argument('-k', type=int, required=True, ...
32.813953
88
0.644578
0
0
0
0
0
0
0
0
581
0.205882
d39cc52a8b68a5236fbfd51eb2a40568ace59d48
9,725
py
Python
uai_tools/uai_tool.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
38
2017-04-26T04:00:09.000Z
2022-02-10T02:51:05.000Z
uai_tools/uai_tool.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
17
2017-11-20T20:47:09.000Z
2022-02-09T23:48:46.000Z
uai_tools/uai_tool.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
28
2017-07-08T05:23:13.000Z
2020-08-18T03:12:27.000Z
# Copyright 2017 The UAI-SDK Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
54.027778
117
0.778303
0
0
0
0
0
0
0
0
2,386
0.245347
d39d87163c302a5224242e13bcd3a257bf4c8bac
22,731
py
Python
lib/extraction/XRR.py
ArnaudHemmerle/JupyLabBook
1975eabc85e73e28432514fea2199fddd033ecfc
[ "MIT" ]
null
null
null
lib/extraction/XRR.py
ArnaudHemmerle/JupyLabBook
1975eabc85e73e28432514fea2199fddd033ecfc
[ "MIT" ]
20
2020-05-07T16:47:14.000Z
2021-04-01T10:15:12.000Z
lib/extraction/XRR.py
ArnaudHemmerle/JupyLabBook
1975eabc85e73e28432514fea2199fddd033ecfc
[ "MIT" ]
null
null
null
# custom libraries from lib.extraction.common import PyNexus as PN from lib.extraction.common import Check_dead_pixels from lib.extraction import PilatusSum as PilatusSum import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import matplotlib.colors as color...
36.427885
117
0.607232
0
0
0
0
0
0
0
0
10,211
0.44921
d39eeefc2b81801a28da34b63dbf23e3d714e769
888
py
Python
aiof/data/goal.py
gkama/aiof-metadata
1b29e39c644bc3f020884956e5e4741ce5b03550
[ "MIT" ]
3
2020-06-07T22:24:06.000Z
2021-08-10T05:14:09.000Z
aiof/data/goal.py
gkama/aiof-metadata
1b29e39c644bc3f020884956e5e4741ce5b03550
[ "MIT" ]
2
2021-04-21T13:54:14.000Z
2021-06-10T18:06:01.000Z
aiof/data/goal.py
kamacharovs/aiof-metadata
1b29e39c644bc3f020884956e5e4741ce5b03550
[ "MIT" ]
null
null
null
from datetime import datetime from pydantic import BaseModel from typing import Optional, List from aiof.data.asset import Asset from aiof.data.liability import Liability # Financial Goals # - Mandatory short-term goals class Goal(BaseModel): name: str type: str amount: Optional[float] currentAmou...
23.368421
41
0.72973
658
0.740991
0
0
0
0
0
0
49
0.05518
d3a0e130e8b9d7d7c42e0164502452cf061d2603
499
py
Python
app/controllers/__init__.py
s1hofmann/MrHyde2.0-Backbone
d1d95cb8ba3e2db60c75218625453b915e87e1bf
[ "MIT" ]
3
2017-05-14T20:11:49.000Z
2018-04-12T03:56:06.000Z
app/controllers/__init__.py
s1hofmann/MrHyde2.0-Backbone
d1d95cb8ba3e2db60c75218625453b915e87e1bf
[ "MIT" ]
null
null
null
app/controllers/__init__.py
s1hofmann/MrHyde2.0-Backbone
d1d95cb8ba3e2db60c75218625453b915e87e1bf
[ "MIT" ]
null
null
null
from flask import Blueprint from app import current_config jekyll = Blueprint('jekyll', __name__, static_folder=current_config.STATICDIR, template_folder=current_config.TEMPLATEDIR) status = Blueprint('status', __name__, s...
29.352941
62
0.655311
0
0
0
0
0
0
0
0
16
0.032064
d3a1dc062b30267f8b6a7cc3486fac2bf169ce7d
1,808
py
Python
tests/test_util.py
BrechtBa/knxpy
9e486f4a4623f586091e72cc6472441f3efbdd72
[ "MIT" ]
null
null
null
tests/test_util.py
BrechtBa/knxpy
9e486f4a4623f586091e72cc6472441f3efbdd72
[ "MIT" ]
null
null
null
tests/test_util.py
BrechtBa/knxpy
9e486f4a4623f586091e72cc6472441f3efbdd72
[ "MIT" ]
null
null
null
#!/usr/bin/env/ python ################################################################################ # Copyright (c) 2016 Daniel Matuschek # This file is part of knxpy. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation fil...
34.769231
80
0.626659
834
0.461283
0
0
0
0
0
0
932
0.515487
d3a21b10fca0823c4f8754f8d101be5090122c5c
122
py
Python
py/twombly/__init__.py
zshipko/libtwombly
6a4b74b0a293da2a50e06e6fc9850327e01c7678
[ "MIT" ]
7
2015-09-10T16:33:40.000Z
2018-07-15T07:54:41.000Z
py/twombly/__init__.py
zshipko/libtwombly
6a4b74b0a293da2a50e06e6fc9850327e01c7678
[ "MIT" ]
2
2015-03-21T01:18:11.000Z
2018-03-06T06:24:22.000Z
py/twombly/__init__.py
zshipko/libtwombly
6a4b74b0a293da2a50e06e6fc9850327e01c7678
[ "MIT" ]
2
2015-09-08T08:55:29.000Z
2020-01-09T08:42:27.000Z
from __future__ import absolute_import from .drawing import * try: from . import path except ImportError: pass
12.2
38
0.737705
0
0
0
0
0
0
0
0
0
0
d3a31c5c3c5461ce7d67c2eebcd521d785635f6d
815
py
Python
QUIS SISTER 1/Muhammad Syiarul Amrullah/Semaphore.py
muhammadarl/Python-Pararel_SISTER
c38c694b059c545f66c7f4dfa50746bffc6e4e4f
[ "MIT" ]
null
null
null
QUIS SISTER 1/Muhammad Syiarul Amrullah/Semaphore.py
muhammadarl/Python-Pararel_SISTER
c38c694b059c545f66c7f4dfa50746bffc6e4e4f
[ "MIT" ]
2
2022-03-23T13:29:15.000Z
2022-03-23T15:55:47.000Z
QUIS SISTER 1/Muhammad Syiarul Amrullah/Semaphore.py
muhammadarl/Python-Pararel_SISTER
c38c694b059c545f66c7f4dfa50746bffc6e4e4f
[ "MIT" ]
2
2022-03-23T03:36:52.000Z
2022-03-23T03:41:55.000Z
import logging import threading import time import random LOG_FORMAT = '%(asctime)s %(threadName)-17s %(levelname)-8s %(message)s' logging.basicConfig(level=logging.INFO, format=LOG_FORMAT) semaphore = threading.Semaphore(0) item = 0 def pelanggan(): logging.info('Pelanggan meminta antrian') semaphore.acqu...
19.404762
72
0.655215
0
0
0
0
0
0
0
0
164
0.201227
d3a46ac9b50468413362c945c49af04d8ae59b76
10,094
py
Python
customtkinter/customtkinter_entry.py
pythub-project/CustomTkinter
bb1fe2562517928dde5a98e0dce650b9a3ef2380
[ "CC0-1.0" ]
null
null
null
customtkinter/customtkinter_entry.py
pythub-project/CustomTkinter
bb1fe2562517928dde5a98e0dce650b9a3ef2380
[ "CC0-1.0" ]
null
null
null
customtkinter/customtkinter_entry.py
pythub-project/CustomTkinter
bb1fe2562517928dde5a98e0dce650b9a3ef2380
[ "CC0-1.0" ]
null
null
null
import tkinter import sys from .customtkinter_tk import CTk from .customtkinter_frame import CTkFrame from .appearance_mode_tracker import AppearanceModeTracker from .customtkinter_theme_manager import CTkThemeManager from .customtkinter_canvas import CTkCanvas from .customtkinter_settings import CTkSettings from .cus...
42.953191
167
0.614821
9,730
0.963939
0
0
0
0
0
0
1,187
0.117595
d3a6ae548c3d655debbdd8dce43920e79c4f2ed3
883
py
Python
src/python/entityfx/dhrystone_benchmark.py
Civil/EntityFX-Bench
ccc664e372f2319e53cbd96fb22317a76eff2b2a
[ "MIT" ]
11
2020-10-21T08:38:26.000Z
2022-01-28T09:09:31.000Z
src/python/entityfx/dhrystone_benchmark.py
Civil/EntityFX-Bench
ccc664e372f2319e53cbd96fb22317a76eff2b2a
[ "MIT" ]
2
2021-12-14T20:11:53.000Z
2021-12-21T11:00:37.000Z
src/python/entityfx/dhrystone_benchmark.py
Civil/EntityFX-Bench
ccc664e372f2319e53cbd96fb22317a76eff2b2a
[ "MIT" ]
7
2020-10-13T12:03:02.000Z
2022-01-29T15:33:04.000Z
from entityfx.benchmark_base import BenchmarkBase from entityfx.dhrystone2 import Dhrystone2 from entityfx.writer import Writer class DhrystoneBenchmark(BenchmarkBase): def __init__(self, writer: Writer, print_to_console : bool=True, is_enabled : bool=True) -> None: super().__init__(writer, print_to...
33.961538
101
0.688562
751
0.85051
0
0
0
0
0
0
64
0.07248
d3a6c62c5a61e17b49724465a6921872c6a131d6
694
py
Python
dorsual/urls.py
thodel/heraldik
5be41c9a63f971723f8601757d554a4759eba48e
[ "MIT" ]
null
null
null
dorsual/urls.py
thodel/heraldik
5be41c9a63f971723f8601757d554a4759eba48e
[ "MIT" ]
1
2020-06-16T10:12:48.000Z
2020-06-17T11:58:14.000Z
dorsual/urls.py
thodel/heraldik
5be41c9a63f971723f8601757d554a4759eba48e
[ "MIT" ]
1
2020-06-16T09:50:58.000Z
2020-06-16T09:50:58.000Z
from django.urls import path from . import views urlpatterns = [ path("", views.IndexView.as_view(), name="index"), path('loginTranskribus/', views.loginTranskribus, name='loginTranskribus'), path('getCollectionList/', views.getCollectionList, name='getCollectionList'), path('getDocume...
46.266667
86
0.693084
0
0
0
0
0
0
0
0
248
0.357349
d3a8a2f79d19fbc852c06ff0ec943aa182f437a2
458
py
Python
tests/conftest.py
aanania/PyXTBClient
f0d70e03ea0a57e6f57fdd8d2ed1e596e732a1a3
[ "MIT" ]
11
2018-09-21T21:30:42.000Z
2021-03-11T08:46:35.000Z
tests/conftest.py
aanania/PyXTBClient
f0d70e03ea0a57e6f57fdd8d2ed1e596e732a1a3
[ "MIT" ]
1
2020-04-10T10:47:26.000Z
2020-04-10T10:47:26.000Z
tests/conftest.py
aanania/PyXTBClient
f0d70e03ea0a57e6f57fdd8d2ed1e596e732a1a3
[ "MIT" ]
3
2019-03-07T14:07:25.000Z
2020-04-10T15:28:09.000Z
from client import XTBClient from settings import XTB_USER, XTB_PASS import pytest @pytest.fixture(scope="session") def xtb_client(): client = XTBClient() logged_in_msg = client.login(XTB_USER, XTB_PASS) assert logged_in_msg.get('status') is True, 'Error code {}'.format(logged_in_msg.get('errorCode')) ...
28.625
102
0.722707
0
0
338
0.737991
371
0.810044
0
0
72
0.157205
d3a8fa7d4f538e6d4f3b23579f159cc8cfadaa69
480
py
Python
4/oop6.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
4/oop6.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
4/oop6.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
class Vehicle: def __init__(self): self.lst = [0,0] def moveUp(self): self.lst[1] += 1 def moveDown(self): self.lst[1] -= 1 def moveRight(self): self.lst[0] += 1 def moveLeft(self): self.lst[0] -= 1 def print_position(self): print(tuple(self.lst)) ...
20
30
0.604167
319
0.664583
0
0
0
0
0
0
0
0
d3a991c0aed58b17f188cc2571af2e99f9fa68bc
59
py
Python
test_pyright_hanging_3.py
vn17/bandit
50f382eba0ffa5da2fe70d2f0de7403a40ab2ec3
[ "Apache-2.0" ]
null
null
null
test_pyright_hanging_3.py
vn17/bandit
50f382eba0ffa5da2fe70d2f0de7403a40ab2ec3
[ "Apache-2.0" ]
null
null
null
test_pyright_hanging_3.py
vn17/bandit
50f382eba0ffa5da2fe70d2f0de7403a40ab2ec3
[ "Apache-2.0" ]
1
2022-01-28T23:09:01.000Z
2022-01-28T23:09:01.000Z
import numpy as np reveal_type(np.zeros(1) - np.zeros(1))
14.75
38
0.711864
0
0
0
0
0
0
0
0
0
0
d3aad7914ff38df51594d2a2859994f30a2abace
15,233
py
Python
attendance_gui.py
romiembaye/wireless-student-attendance-system
6609ee61e8b5d3be9938c94dbd2159e87d4a3198
[ "MIT" ]
null
null
null
attendance_gui.py
romiembaye/wireless-student-attendance-system
6609ee61e8b5d3be9938c94dbd2159e87d4a3198
[ "MIT" ]
null
null
null
attendance_gui.py
romiembaye/wireless-student-attendance-system
6609ee61e8b5d3be9938c94dbd2159e87d4a3198
[ "MIT" ]
null
null
null
import os import csv import smtplib import datetime import openpyxl import threading from tkinter import * from email import encoders from tkinter import messagebox import paho.mqtt.client as mqtt from email.mime.text import MIMEText from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart ...
45.471642
114
0.590297
14,869
0.976105
0
0
0
0
0
0
1,811
0.118887
d3ab1ebd9e7f99007d2c559d8136040e04d0a3aa
1,626
py
Python
recordpump.py
rsanger/heatpump-controller
5007e4abf8d4f3b0be5c212663f219209324f8ec
[ "MIT" ]
3
2018-02-07T17:51:56.000Z
2019-01-31T01:47:41.000Z
recordpump.py
rsanger/heatpump-controller
5007e4abf8d4f3b0be5c212663f219209324f8ec
[ "MIT" ]
null
null
null
recordpump.py
rsanger/heatpump-controller
5007e4abf8d4f3b0be5c212663f219209324f8ec
[ "MIT" ]
3
2017-03-22T18:53:48.000Z
2021-12-28T13:53:51.000Z
# Copyright (c) 2017 Richard Sanger # # Licensed under MIT # # A simple debugging script to record and decode mode2 messages LIRC # and decodes them import os import struct import select from heatpump import HeatPump PULSE_BIT = 0x01000000 PULSE_MASK = 0x00FFFFFF f = os.open("/dev/lirc0", os.O_RDONLY) assert f > 0 g...
25.40625
68
0.473555
0
0
0
0
0
0
0
0
256
0.157442
d3ab5af88228deddb8edfd51c44a2a3022f1333d
119
py
Python
server/src/dashboard/dash_config.py
openml/openml.org
dadc4f79c159058776500b204977a1062b927d4c
[ "BSD-3-Clause" ]
16
2018-10-17T19:35:11.000Z
2022-03-31T23:37:00.000Z
server/src/dashboard/dash_config.py
PortML/openml.org
b526fae6c0ba2df0ccebf60f1dd703368ed394ec
[ "BSD-3-Clause" ]
192
2018-10-17T17:31:03.000Z
2022-03-27T23:55:51.000Z
server/src/dashboard/dash_config.py
PortML/openml.org
b526fae6c0ba2df0ccebf60f1dd703368ed394ec
[ "BSD-3-Clause" ]
8
2019-04-15T11:47:32.000Z
2021-12-15T13:23:54.000Z
# Config parameters for dash app BASE_URL = "http://127.0.0.1:5000/dashboard/" DASH_CACHING = True COMMON_CACHE = True
23.8
45
0.747899
0
0
0
0
0
0
0
0
66
0.554622
d3adcd548eceda1d220a8df2a63b93a12edcfa89
15,139
py
Python
seqvec/seqvec.py
Rostlab/SeqVec
0f10e187b7160f63c5f2d38f1e12425889638179
[ "MIT" ]
71
2019-05-08T18:57:46.000Z
2022-03-23T17:15:45.000Z
seqvec/seqvec.py
Rostlab/SeqVec
0f10e187b7160f63c5f2d38f1e12425889638179
[ "MIT" ]
13
2019-11-26T13:51:11.000Z
2022-01-12T14:46:38.000Z
seqvec/seqvec.py
Rostlab/SeqVec
0f10e187b7160f63c5f2d38f1e12425889638179
[ "MIT" ]
10
2019-11-08T12:56:04.000Z
2022-01-16T04:39:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import gzip import json import logging import urllib.request from pathlib import Path from typing import Dict, List, Tuple, Generator import h5py import numpy as np import torch from allennlp.commands.elmo import ElmoEmbedder from tqdm import tqdm logger...
35.874408
166
0.625867
0
0
4,007
0.264681
0
0
0
0
6,347
0.419248
d3add85756a4fe737520f67737899256ef1e17ce
3,261
py
Python
grslra/tools.py
clemenshage/grslra
00f61b4ef08208d12e8e803d10f8ebbe16d8614a
[ "MIT" ]
null
null
null
grslra/tools.py
clemenshage/grslra
00f61b4ef08208d12e8e803d10f8ebbe16d8614a
[ "MIT" ]
null
null
null
grslra/tools.py
clemenshage/grslra
00f61b4ef08208d12e8e803d10f8ebbe16d8614a
[ "MIT" ]
null
null
null
import numpy as np import json import os def innerprod(A, B): # This function computes the standard inner product between two matrices via vectorization if isinstance(A, np.ndarray) and isinstance(B, np.ndarray): return np.dot(A.flatten(), B.flatten()) elif isinstance(A, tuple) and isinstance(B, t...
25.677165
94
0.567924
0
0
0
0
0
0
0
0
279
0.085557
d3ae82623bff425e28af5f552b9b90f5490745b4
780
py
Python
flattentool/tests/test_cli.py
Xtuden-com/flatten-tool
c67c918daf9b940b08cb43bdd9c00371ba5ef2f1
[ "MIT" ]
86
2015-07-16T10:23:47.000Z
2022-03-29T08:11:40.000Z
flattentool/tests/test_cli.py
Xtuden-com/flatten-tool
c67c918daf9b940b08cb43bdd9c00371ba5ef2f1
[ "MIT" ]
275
2015-03-31T14:51:31.000Z
2022-03-07T14:54:05.000Z
flattentool/tests/test_cli.py
Xtuden-com/flatten-tool
c67c918daf9b940b08cb43bdd9c00371ba5ef2f1
[ "MIT" ]
16
2015-11-06T15:41:30.000Z
2021-07-16T00:18:32.000Z
# hint: test_argparse is provided by libpythonX.Y-testsuite on ubuntu from test.test_argparse import ArgumentParserError, stderr_to_parser_error import pytest from flattentool import cli def test_create_parser(): """ Command line arguments that should be acceptable """ parser = cli.create_parser() ...
27.857143
76
0.735897
0
0
0
0
0
0
0
0
284
0.364103
d3af01baabb0bf8a6d526c06bb838f56579f9368
1,758
py
Python
src/ui/path_item_ui.py
yemenPython/TheBossBaby
86e447b3fa360646a179e62c70b1750da5427541
[ "MIT" ]
1
2021-12-16T16:31:29.000Z
2021-12-16T16:31:29.000Z
src/ui/path_item_ui.py
yemenPython/TheBossBaby
86e447b3fa360646a179e62c70b1750da5427541
[ "MIT" ]
null
null
null
src/ui/path_item_ui.py
yemenPython/TheBossBaby
86e447b3fa360646a179e62c70b1750da5427541
[ "MIT" ]
1
2021-12-16T16:31:35.000Z
2021-12-16T16:31:35.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'path_item.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
38.217391
80
0.686007
1,420
0.807736
0
0
0
0
0
0
411
0.233788
d3af03d0b8d4cec429e097fd2c982c0b1aff5a01
681
py
Python
geo_to_csv.py
simberaj/mobilib
ae350d095a34f53704bd4aaaf7f45e573bda779a
[ "MIT" ]
null
null
null
geo_to_csv.py
simberaj/mobilib
ae350d095a34f53704bd4aaaf7f45e573bda779a
[ "MIT" ]
null
null
null
geo_to_csv.py
simberaj/mobilib
ae350d095a34f53704bd4aaaf7f45e573bda779a
[ "MIT" ]
null
null
null
"""Transform a geospatial file to a GeoCSV (WKT).""" import operator import geopandas as gpd import mobilib.argparser parser = mobilib.argparser.default(__doc__) parser.add_argument('in_file', help='GDAL-compatible file') parser.add_argument('out_file', help='path to output CSV') if __name__ == '__main__': ar...
29.608696
79
0.688693
0
0
0
0
0
0
0
0
159
0.23348
d3af6e41ab30d1ce91c30bacdb82ca34f8dd79a5
1,751
py
Python
modify-subjects/utils.py
cacosandon/are-you-looking
be25d799eed452ddfd1ff393fddd53897ef94a4a
[ "MIT" ]
null
null
null
modify-subjects/utils.py
cacosandon/are-you-looking
be25d799eed452ddfd1ff393fddd53897ef94a4a
[ "MIT" ]
null
null
null
modify-subjects/utils.py
cacosandon/are-you-looking
be25d799eed452ddfd1ff393fddd53897ef94a4a
[ "MIT" ]
null
null
null
import json import sys def load_dataset(split): data = {} if split == 'synthetic': with open('tasks/R2R-pano/data/R2R_literal_speaker_data_augmentation_paths.json') as f: data = json.load(f) else: with open('tasks/R2R-pano/data/R2R_%s.json' % split) as f: data = json...
36.479167
106
0.61679
0
0
0
0
0
0
0
0
810
0.462065
d3afd7ece6c84d77e23173308d21099c79031ed6
7,969
py
Python
server/app.py
Algoanna/goanna-run
4c5c0d83238cfa0b7cf552a2fabeaadd23def22d
[ "MIT" ]
null
null
null
server/app.py
Algoanna/goanna-run
4c5c0d83238cfa0b7cf552a2fabeaadd23def22d
[ "MIT" ]
null
null
null
server/app.py
Algoanna/goanna-run
4c5c0d83238cfa0b7cf552a2fabeaadd23def22d
[ "MIT" ]
null
null
null
import os, csv import numpy as np import urllib.request, json from flask import Flask, escape, request, render_template, jsonify from leaderboard.leaderboard import Leaderboard import requests import lxml.html as lh import pandas as pd from algosdk.v2client import algod from algosdk import account, mnemonic from co...
31.876
94
0.583762
485
0.060861
0
0
3,424
0.429665
0
0
1,909
0.239553
6c8f1368b4b2faf32d859d74436012deac4e2f27
2,827
py
Python
Code/IPA/dijkstra.py
Babdus/Protolanguage
050aeed5e7ac5905515a887dcbab434457ae2f47
[ "MIT" ]
4
2019-06-14T09:31:51.000Z
2019-11-14T22:45:36.000Z
Code/IPA/dijkstra.py
Babdus/Protolanguage
050aeed5e7ac5905515a887dcbab434457ae2f47
[ "MIT" ]
2
2019-04-25T14:09:42.000Z
2021-06-11T12:55:42.000Z
Code/IPA/dijkstra.py
Babdus/Protolanguage
050aeed5e7ac5905515a887dcbab434457ae2f47
[ "MIT" ]
null
null
null
from fibonacci_heap_mod import Fibonacci_heap as fh from IPA.IPAData import * def is_valid_sound(tup): features = set(tup) return (len(features & places) < 2 or (len(features & {'AL', 'PA'}) == 2 and len(features & places) == 2)) and len(features & manners) < 2 def neighbours(vertex, whole_set, distances): ...
41.573529
142
0.597099
0
0
0
0
0
0
0
0
58
0.020516