hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
9a4c2a15e6606e6383c32e6f1df42877d87fa7d0
1,485
py
Python
backend/server/apps/endpoints/serializers.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/serializers.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/serializers.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
from rest_framework import serializers from apps.endpoints.models import Endpoint from apps.endpoints.models import MLAlgorithm from apps.endpoints.models import MLAlgorithmStatus from apps.endpoints.models import MLRequest class EndpointSerializer(serializers.ModelSerializer): class Meta: model = Endpoin...
39.078947
133
0.73468
2b09f213ba9fbf2fb91ccef9d23c69e72de2fc5b
4,736
py
Python
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_shadow_desired_data_request.py
NQLoong/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_shadow_desired_data_request.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_shadow_desired_data_request.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class UpdateDeviceShadowDesiredDataRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
29.234568
158
0.595228
fc816dcf4657a5740ddf7b8e44f64a411542bd07
8,057
py
Python
rasa/core/slots.py
ALT-F1/rasa
8d4a734616f72aca14f122716fbf338c42644188
[ "Apache-2.0" ]
null
null
null
rasa/core/slots.py
ALT-F1/rasa
8d4a734616f72aca14f122716fbf338c42644188
[ "Apache-2.0" ]
4
2020-09-26T00:31:43.000Z
2022-02-10T01:13:39.000Z
rasa/core/slots.py
ALT-F1/rasa
8d4a734616f72aca14f122716fbf338c42644188
[ "Apache-2.0" ]
2
2020-11-04T04:03:30.000Z
2021-01-27T04:41:42.000Z
import logging import warnings from rasa.core import utils from rasa.utils.common import class_from_module_path from typing import Any, Dict, List, NoReturn, Optional, Text, Type logger = logging.getLogger(__name__) class Slot: type_name = None def __init__( self, name: Text, initia...
32.35743
87
0.568698
b2d91da936d0f8b3adf7f52d5d8785658cf9cb8d
18,746
py
Python
cmsplugin_cascade/plugin_base.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
139
2015-01-08T22:27:06.000Z
2021-08-19T03:36:58.000Z
cmsplugin_cascade/plugin_base.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
286
2015-01-02T14:15:14.000Z
2022-03-22T11:00:12.000Z
cmsplugin_cascade/plugin_base.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
91
2015-01-16T15:06:23.000Z
2022-03-23T23:36:54.000Z
from django.core.exceptions import ImproperlyConfigured from django.forms import MediaDefiningClass, ModelForm from django.utils.functional import lazy from django.utils.module_loading import import_string from django.utils.text import format_lazy from django.utils.safestring import SafeText, mark_safe from entangled.f...
45.610706
119
0.671343
49ee9b363a3763a024c4b00be0e0021cc10bbd06
1,078
py
Python
src/DoingMathInPython/ch_03/challenge/better_corel.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/DoingMathInPython/ch_03/challenge/better_corel.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/DoingMathInPython/ch_03/challenge/better_corel.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
import math def find_corr_x_y( x, y ): n = len( x ) z = len( y ) if n != z: raise ValueError( 'Correlation cannot be evaluated with different length sets ( x:len[{0}] / y:len[{1}] )'.format( n, z ) ) prod = [] for xi, yi in zip( x, y ): prod.append( xi * yi ) sum_prod_x_y = sum( prod ) sum_x = sum( x...
19.6
125
0.62616
f383fc596a572afb8c040726e3685e68ec1ff82b
112
py
Python
python-logging/mymodule/__init__.py
cgt212/example-code
739dadc5003b0a1f82cc05b3f40c168659ed31f3
[ "Apache-2.0" ]
null
null
null
python-logging/mymodule/__init__.py
cgt212/example-code
739dadc5003b0a1f82cc05b3f40c168659ed31f3
[ "Apache-2.0" ]
null
null
null
python-logging/mymodule/__init__.py
cgt212/example-code
739dadc5003b0a1f82cc05b3f40c168659ed31f3
[ "Apache-2.0" ]
null
null
null
from mymodule.thing import Thing import logging logging.getLogger(__name__).addHandler(logging.NullHandler())
18.666667
61
0.830357
a14eadc32cf73a5972bcead1bbc056b68ec32a17
5,684
py
Python
junorunner/runner.py
druids/django-juno-testrunner
eaf7a945f7fc8fcb72e7fd1b67c36aa230bba365
[ "MIT" ]
null
null
null
junorunner/runner.py
druids/django-juno-testrunner
eaf7a945f7fc8fcb72e7fd1b67c36aa230bba365
[ "MIT" ]
2
2017-02-25T21:42:07.000Z
2021-05-10T15:19:53.000Z
junorunner/runner.py
druids/django-juno-testrunner
eaf7a945f7fc8fcb72e7fd1b67c36aa230bba365
[ "MIT" ]
1
2016-04-22T14:40:28.000Z
2016-04-22T14:40:28.000Z
import os from django.test.runner import DiscoverRunner from django.test.runner import reorder_suite from django.core import management from django.conf import settings from junorunner.extended_runner import TextTestRunner from unittest.suite import TestSuite from unittest import loader class JunoDiscoverRunner(Di...
40.312057
92
0.606791
e98671df2edc6228ee1fd39f87b5412abc43cddd
2,890
py
Python
GEOS_Util/coupled_diagnostics/verification/stress_mon_clim/wind_qscat.py
GEOS-ESM/GMAO_Shared
022af23abbc7883891006b57379be96d9a50df23
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
1
2020-02-01T17:36:53.000Z
2020-02-01T17:36:53.000Z
GEOS_Util/coupled_diagnostics/verification/stress_mon_clim/wind_qscat.py
GEOS-ESM/GMAO_Shared
022af23abbc7883891006b57379be96d9a50df23
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
105
2019-07-08T19:27:23.000Z
2022-03-22T02:12:16.000Z
GEOS_Util/coupled_diagnostics/verification/stress_mon_clim/wind_qscat.py
GEOS-ESM/GMAO_Shared
022af23abbc7883891006b57379be96d9a50df23
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
10
2019-07-05T18:00:44.000Z
2022-03-11T16:26:29.000Z
import scipy as sp import os import matplotlib.pyplot as pl from mpl_toolkits.basemap.cm import sstanom import my_plots as mpl from matplotlib import dates path=os.environ['NOBACKUP']+'/verification/stress_mon_clim' execfile(path+'/ctl.py') ctl=Ctl() taux={} taux['clim']=ctl.fromfile('taux'); taux['clim'].data*=10. ta...
34.404762
93
0.610035
8612b35a4baf8b847a70ab46d7220f213fb0d65c
914
py
Python
src/test_html_file_dao.py
Alan-Greene/wcag
bd502eae346dad85b0c64fb4e0b59c1aa85a0f19
[ "MIT" ]
null
null
null
src/test_html_file_dao.py
Alan-Greene/wcag
bd502eae346dad85b0c64fb4e0b59c1aa85a0f19
[ "MIT" ]
null
null
null
src/test_html_file_dao.py
Alan-Greene/wcag
bd502eae346dad85b0c64fb4e0b59c1aa85a0f19
[ "MIT" ]
2
2020-05-28T22:10:58.000Z
2020-05-28T22:11:58.000Z
import unittest from html_file_dao import HtmlFileDao class TestHtmlFileDao(unittest.TestCase): def setUp(self): #Arrange self.false_html_path = './fixtures/big.html' self.correct_html_path = './fixtures/small.html' self.file_dao = HtmlFileDao() def test_file_not_found(self): ...
27.69697
63
0.652079
3b7d26586e5216a3e851869d9a4ba3f81651cc65
855
py
Python
scripts/create_test_data.py
rjw57/trafficdb
7c895e14a52c8c313981243e36732a5e8dcc909a
[ "MIT" ]
1
2016-12-12T21:23:26.000Z
2016-12-12T21:23:26.000Z
scripts/create_test_data.py
rjw57/trafficdb
7c895e14a52c8c313981243e36732a5e8dcc909a
[ "MIT" ]
null
null
null
scripts/create_test_data.py
rjw57/trafficdb
7c895e14a52c8c313981243e36732a5e8dcc909a
[ "MIT" ]
null
null
null
# This script should be run via "webapp shell" and the "%run" magic import os from flask.ext.migrate import upgrade as upgrade_db from trafficdb.models import * from tests.fixtures import * from tests.util import drop_all_data # Rollback any incomplete session db.session.rollback() # Remember echo state prev_echo =...
24.428571
77
0.775439
057871323dcab6db7ce225ca6a05713b85b1f71e
755
py
Python
zenml/cli/__init__.py
birdiesanders/zenml
fca11c17ccf941aa14920ef4eab470b94b26ccbe
[ "Apache-2.0" ]
1
2021-05-04T17:11:23.000Z
2021-05-04T17:11:23.000Z
zenml/cli/__init__.py
birdiesanders/zenml
fca11c17ccf941aa14920ef4eab470b94b26ccbe
[ "Apache-2.0" ]
null
null
null
zenml/cli/__init__.py
birdiesanders/zenml
fca11c17ccf941aa14920ef4eab470b94b26ccbe
[ "Apache-2.0" ]
1
2020-12-27T08:16:42.000Z
2020-12-27T08:16:42.000Z
# Copyright (c) maiot GmbH 2020. 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 applica...
32.826087
70
0.740397
e8f609ca7445ddf08ca34b8736d982332dcd8ea3
2,168
py
Python
Scripts/EncrypThor_v3.py
s0rcy-r/encrypthor
2e1ec9d123822ec8df8d95b20c7adf6790547828
[ "MIT" ]
2
2021-06-11T08:05:48.000Z
2021-07-29T07:11:31.000Z
Scripts/EncrypThor_v3.py
s0rcy-r/encrypthor
2e1ec9d123822ec8df8d95b20c7adf6790547828
[ "MIT" ]
null
null
null
Scripts/EncrypThor_v3.py
s0rcy-r/encrypthor
2e1ec9d123822ec8df8d95b20c7adf6790547828
[ "MIT" ]
null
null
null
import os import shutil from Class.EncrypThor_Class import EncrypThor ###EncrypThor v2 #Encryption protocol v2 (two keys) def encryption_protocol_v3(path, key, keyword): # path = <str> -> path to file # key = <str> -> cipher key # keyword = <str> -> random keyword #Init EncrypThor 2 encrypthor...
28.155844
75
0.66559
e48b7e8b425633af61fa95ce0a32493812756c69
490
py
Python
01_Modelos_Supervisionados/1.17_Modelos_de_Rede_Neural_(supervisionados)/1.17.6_Complexidade.py
BrunoBertti/Scikit_Learning
4b9e10ff7909f3728ac1e8bba19f5fd779340bc4
[ "MIT" ]
null
null
null
01_Modelos_Supervisionados/1.17_Modelos_de_Rede_Neural_(supervisionados)/1.17.6_Complexidade.py
BrunoBertti/Scikit_Learning
4b9e10ff7909f3728ac1e8bba19f5fd779340bc4
[ "MIT" ]
null
null
null
01_Modelos_Supervisionados/1.17_Modelos_de_Rede_Neural_(supervisionados)/1.17.6_Complexidade.py
BrunoBertti/Scikit_Learning
4b9e10ff7909f3728ac1e8bba19f5fd779340bc4
[ "MIT" ]
null
null
null
########## 1.17.6. Complexidade ########## # Suponha que haja n amostras de treinamento, m recursos, k camadas ocultas, cada uma contendo h neurônios - para simplificar, e o neurônios de saída. A complexidade de tempo da retropropagação é O (n \ cdot m \ cdot h ^ k \ cdot o \ cdot i), onde i é o número de iteraçõ...
122.5
445
0.730612
aa32a02d2dbd1a8a2ba00c03028505284d77f771
5,427
py
Python
ci/codespell-sarif.py
meissel/nemu
4f495cca81f459717d175137f16a29f410140d8b
[ "BSD-2-Clause" ]
155
2019-11-15T12:11:37.000Z
2022-03-25T19:12:58.000Z
ci/codespell-sarif.py
meissel/nemu
4f495cca81f459717d175137f16a29f410140d8b
[ "BSD-2-Clause" ]
93
2020-01-04T15:28:48.000Z
2022-01-31T11:52:09.000Z
ci/codespell-sarif.py
meissel/nemu
4f495cca81f459717d175137f16a29f410140d8b
[ "BSD-2-Clause" ]
18
2020-01-04T12:59:55.000Z
2022-02-05T22:54:28.000Z
#!/usr/bin/env python3 from argparse import ArgumentParser, Namespace from subprocess import run from json import dumps from typing import List, Dict from sys import exit from os import path import traceback import logging def sarif_template(codePath: str, uriBaseId: str, codespell: str) -> dict: repoUri = git_...
28.413613
116
0.47798
b85f2932597b059dfc08052205232d17c346f19d
6,670
py
Python
markdown_settings.py
revolunet/sublimetext-markdown-preview
154bdd63f27970dd4c775c5c57810d7f18c64ea5
[ "MIT" ]
1,563
2015-01-01T05:52:34.000Z
2022-02-20T09:32:31.000Z
markdown_settings.py
revolunet/sublimetext-markdown-preview
154bdd63f27970dd4c775c5c57810d7f18c64ea5
[ "MIT" ]
178
2015-01-08T18:21:44.000Z
2018-05-17T09:32:11.000Z
markdown_settings.py
revolunet/sublimetext-markdown-preview
154bdd63f27970dd4c775c5c57810d7f18c64ea5
[ "MIT" ]
298
2015-01-08T21:12:15.000Z
2022-03-15T08:00:44.000Z
"""Markdown Preview settings handler.""" from __future__ import unicode_literals import sublime import os import sys import re import json import importlib BUILTIN_KEYS = ('basepath', 'references', 'destination') def extended_decode(d): """Decode python functions in JSON.""" if '!!python/name' in d: ...
35.668449
92
0.527886
f41712ecced717ef06d2758da0b174ad3c4c8d4e
6,524
py
Python
csmpe/csm_pm.py
kstaniek/cmspe
16d9c1510a17b31c8de37ba05b3c689e4952b155
[ "BSD-2-Clause" ]
null
null
null
csmpe/csm_pm.py
kstaniek/cmspe
16d9c1510a17b31c8de37ba05b3c689e4952b155
[ "BSD-2-Clause" ]
null
null
null
csmpe/csm_pm.py
kstaniek/cmspe
16d9c1510a17b31c8de37ba05b3c689e4952b155
[ "BSD-2-Clause" ]
null
null
null
# ============================================================================= # CSMPluginManager # # Copyright (c) 2016, Cisco Systems # All rights reserved. # # # Author: Klaudiusz Staniek # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the followin...
36.858757
96
0.623237
21302bba7d91022aaaa40af2a6a81a2e13fcecd1
6,390
py
Python
ENG_FinBot/intent/Updater.py
RobinJLin/LokiHub
8cc7a895f126a46b85213da4c35023bff9e2c99e
[ "MIT" ]
null
null
null
ENG_FinBot/intent/Updater.py
RobinJLin/LokiHub
8cc7a895f126a46b85213da4c35023bff9e2c99e
[ "MIT" ]
null
null
null
ENG_FinBot/intent/Updater.py
RobinJLin/LokiHub
8cc7a895f126a46b85213da4c35023bff9e2c99e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ 名稱: Loki Intent Update Tool 作者: Droidtown 日期: 2021-02-22 信箱: info@droidtown.co 範例: Updater.py -o <old_intent(s)_dir> -n <new_intent(s)_dir> 說明: Updater.py 會將 <old_intent(s)_dir> 目錄中檔名符合 Loki_ 開頭 以及 .py 結尾的標準 Loki 意圖檔,和 <new_intent(s)_dir> 目錄中 的同名檔案做比對。 ...
35.5
131
0.604225
7f071b0ed22c42b1446bf51f49ff9889eb04c314
236
py
Python
discord_interactions/urls.py
MrKioZ/django-discord-interactions
d00cbfbf3e80350b6e855d73487101cfec8f2242
[ "MIT" ]
1
2020-12-14T03:47:54.000Z
2020-12-14T03:47:54.000Z
discord_interactions/urls.py
MrKioZ/django-discord-interactions
d00cbfbf3e80350b6e855d73487101cfec8f2242
[ "MIT" ]
null
null
null
discord_interactions/urls.py
MrKioZ/django-discord-interactions
d00cbfbf3e80350b6e855d73487101cfec8f2242
[ "MIT" ]
null
null
null
from django.urls import path from django.conf import settings from .views import interactions, get_all_commands urlpatterns = [ path('', interactions), ] if settings.DEBUG: urlpatterns += [path('commands/', get_all_commands)]
21.454545
56
0.745763
b998ff2674d6d4e428cbca6b6b5343b9187c22c9
19,062
py
Python
.mywaflib/waflib/Node.py
sebdoerr/seb_gitproject
b5516c2d182930deff0fb9f4d06597047390e05a
[ "BSD-3-Clause" ]
2
2016-05-15T19:20:55.000Z
2016-07-04T18:38:20.000Z
.mywaflib/waflib/Node.py
michaelkilchenmann/Quantitative_Economic_History
c64b5ad877eb995629d4b31f8a8500e7565a953a
[ "BSD-3-Clause" ]
null
null
null
.mywaflib/waflib/Node.py
michaelkilchenmann/Quantitative_Economic_History
c64b5ad877eb995629d4b31f8a8500e7565a953a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2010 (ita) """ Node: filesystem structure, contains lists of nodes #. Each file/folder is represented by exactly one node. #. Some potential class properties are stored on :py:class:`waflib.Build.BuildContext` : nodes to depend on, etc. Unused class memb...
24.159696
166
0.641853
ba85098404413699abeaf6f239aa9eec02f5047c
49,546
py
Python
apc/eval_rcnn_afusg.py
jjn037/FusionAttack
25646543b3008bd7f92760c8b0e6645450e79abf
[ "MIT" ]
null
null
null
apc/eval_rcnn_afusg.py
jjn037/FusionAttack
25646543b3008bd7f92760c8b0e6645450e79abf
[ "MIT" ]
null
null
null
apc/eval_rcnn_afusg.py
jjn037/FusionAttack
25646543b3008bd7f92760c8b0e6645450e79abf
[ "MIT" ]
null
null
null
import _init_path import os import numpy as np import torch from torch.utils.data import DataLoader import torch.nn.functional as F from lib.net.point_rcnn import PointRCNN from lib.net.GAN_model import Generator_img, Generator_pts from lib.net.train_functions import reduce_sum from lib.datasets.kitti_rcnn_dataset impo...
46.785647
152
0.618879
62c45e92ad19585a6290170c0b00c1e9f268fc79
6,715
py
Python
bing_tts.py
jerryyip/respeaker_adapter
98b56521186c89fe161e5cbff57fb386df9577e5
[ "MIT" ]
2
2017-05-29T02:52:33.000Z
2018-04-27T03:33:43.000Z
bing_tts.py
jerryyip/respeaker_adapter
98b56521186c89fe161e5cbff57fb386df9577e5
[ "MIT" ]
null
null
null
bing_tts.py
jerryyip/respeaker_adapter
98b56521186c89fe161e5cbff57fb386df9577e5
[ "MIT" ]
null
null
null
''' Bing Text To Speech (TTS) ''' import json import uuid import wave import io import hashlib from monotonic import monotonic from urllib import urlencode from urllib2 import Request, urlopen, URLError, HTTPError from bing_base import * CACHE_SIZE = 2*1024*1024 #2M class BingTTS(): def __init__(self, bing_base...
42.232704
262
0.605659
7110ef6fca0fdfbe862595345ec909969219b765
4,164
py
Python
backend/web/download_function.py
d2hydro/hydrobase
a1368b396a75eba7b3f13551c9ef4096115e8014
[ "MIT" ]
null
null
null
backend/web/download_function.py
d2hydro/hydrobase
a1368b396a75eba7b3f13551c9ef4096115e8014
[ "MIT" ]
null
null
null
backend/web/download_function.py
d2hydro/hydrobase
a1368b396a75eba7b3f13551c9ef4096115e8014
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 22 20:43:46 2021 @author: danie """ import rasterio from rasterio import merge from pydantic import BaseModel from typing import List import geopandas as gpd from shapely.geometry import box, LineString from sqlalchemy import create_engine import io import zipfile impor...
32.030769
117
0.642651
69a49ba014c1b09a4a4bf05b48b488d4e727452d
1,825
py
Python
pymcuprog/deviceinfo/devices/pic16f18446.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
28
2021-05-08T19:28:33.000Z
2022-03-23T06:23:13.000Z
pymcuprog/deviceinfo/devices/pic16f18446.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
20
2021-05-24T19:20:39.000Z
2022-03-12T20:10:30.000Z
pymcuprog/deviceinfo/devices/pic16f18446.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
11
2021-06-24T20:59:16.000Z
2022-03-23T23:59:38.000Z
""" Required device info for the PIC16F18446 devices """ from pymcuprog.deviceinfo.eraseflags import ChiperaseEffect DEVICE_INFO = { 'name': 'pic16f18446', 'architecture': 'PIC16', # Will erase Flash, User ID and Config words 'default_bulk_erase_address_word': 0x8000, # Flash 'flash_address_wo...
30.416667
67
0.718904
3d88f374b81dc18c1e2c4ea3ce7ab344065c45e3
453
py
Python
export_readiness/migrations/0035_remove_countryguidepage_help_market_guide_cta_title.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
export_readiness/migrations/0035_remove_countryguidepage_help_market_guide_cta_title.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
export_readiness/migrations/0035_remove_countryguidepage_help_market_guide_cta_title.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-03-14 16:43 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('export_readiness', '0034_auto_20190314_1250'), ] operations = [ migr...
22.65
57
0.622517
57bb2eb34324bfe56826b69c1d4452c2f1f2311c
2,386
py
Python
nabs/visualizations.py
tangkong/nabs
06d21428cddaa3f2ec6a31150f9d4758f5a7c2c5
[ "BSD-3-Clause-LBNL" ]
null
null
null
nabs/visualizations.py
tangkong/nabs
06d21428cddaa3f2ec6a31150f9d4758f5a7c2c5
[ "BSD-3-Clause-LBNL" ]
null
null
null
nabs/visualizations.py
tangkong/nabs
06d21428cddaa3f2ec6a31150f9d4758f5a7c2c5
[ "BSD-3-Clause-LBNL" ]
null
null
null
import matplotlib.pyplot as plt from .plan_stubs import get_sample_targets def show_shot_targets(sample_name, path): """ Display a plot with targets. This class is used in conjunction witht the `XYGridStage` object from `pcdsdevices` as well as the `fixed_target_scan` from `nabs.plans`. It displ...
41.137931
79
0.652137
830b4ddfb95f956e9a21cd0c7d382cc8c0be95a7
5,035
py
Python
test add group.py
marr-py/python_training
3fc7a8ddcf89b5776b161ad2ac5155bc827a56b9
[ "Apache-2.0" ]
null
null
null
test add group.py
marr-py/python_training
3fc7a8ddcf89b5776b161ad2ac5155bc827a56b9
[ "Apache-2.0" ]
null
null
null
test add group.py
marr-py/python_training
3fc7a8ddcf89b5776b161ad2ac5155bc827a56b9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from selenium import webdriver import unittest from group import Group class UntitledTestCase(unittest.TestCase): def setUp(self): self.wd = webdriver.Chrome() self.wd.implicitly_wait(5) def login(self, wd, username, password): wd.get("http://localhost/addressb...
41.270492
78
0.660973
758cd1f13d0c05c04fd1a1dfa6d69c9e549f0fbc
2,456
py
Python
slixmpp/xmlstream/handler/waiter.py
mzealey/slixmpp
b1411d8ed79792c6839f4aace13061256337e69b
[ "BSD-3-Clause" ]
null
null
null
slixmpp/xmlstream/handler/waiter.py
mzealey/slixmpp
b1411d8ed79792c6839f4aace13061256337e69b
[ "BSD-3-Clause" ]
null
null
null
slixmpp/xmlstream/handler/waiter.py
mzealey/slixmpp
b1411d8ed79792c6839f4aace13061256337e69b
[ "BSD-3-Clause" ]
null
null
null
# slixmpp.xmlstream.handler.waiter # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Part of Slixmpp: The Slick XMPP Library # :copyright: (c) 2011 Nathanael C. Fritz # :license: MIT, see LICENSE for more details import logging import asyncio from asyncio import Queue, wait_for, TimeoutError import slixmpp from slixmpp.xmlstre...
32.315789
76
0.649837
ba3157471f9c806f8b242bc160c83dff02923d5e
2,757
py
Python
homeassistant/components/homematicip_cloud/weather.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
homeassistant/components/homematicip_cloud/weather.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/homematicip_cloud/weather.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
"""Support for HomematicIP Cloud weather devices.""" import logging from homeassistant.components.weather import WeatherEntity from homeassistant.const import TEMP_CELSIUS from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice DEPENDENCIES = ['homematicip_cloud'] _LOGGER = logging.getLogger(__...
29.021053
78
0.681538
f60b41ef2808f4127977e6e61b4b3278bac8cfde
3,868
py
Python
app.py
coralvanda/network_health
ea79673ef1e5dd72db277dfb56b53cd4563ebf62
[ "MIT" ]
null
null
null
app.py
coralvanda/network_health
ea79673ef1e5dd72db277dfb56b53cd4563ebf62
[ "MIT" ]
null
null
null
app.py
coralvanda/network_health
ea79673ef1e5dd72db277dfb56b53cd4563ebf62
[ "MIT" ]
null
null
null
""" Principal Author: Eric Linden Description : Notes : November 02, 2020 """ import os from datetime import datetime from typing import List import dash import dash_core_components as dcc import dash_html_components as html import speedtest from pythonping import ping COLORS = ['green'] + ['yellow'] * 4 + ['oran...
28.233577
96
0.599535
cad5eee062d5c62ff52d3aa3bffd48c674508550
9,310
py
Python
mastersign/datascience/database/__init__.py
mastersign/mastersign-datascience
29f5167eb7accc8a4aa5f37d90519061cdb4c47e
[ "BSD-3-Clause" ]
1
2019-02-28T19:12:35.000Z
2019-02-28T19:12:35.000Z
mastersign/datascience/database/__init__.py
mastersign/mastersign-datascience
29f5167eb7accc8a4aa5f37d90519061cdb4c47e
[ "BSD-3-Clause" ]
null
null
null
mastersign/datascience/database/__init__.py
mastersign/mastersign-datascience
29f5167eb7accc8a4aa5f37d90519061cdb4c47e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This module contains functionality to comfortably access a SQL database. """ import os from collections import Iterable import pandas as pd from sqlalchemy import create_engine from ..files import read_parquet as read_cachefile from ..files import write_parquet as write_cachefile _def_db_...
38.953975
94
0.595166
c0826b4921739a3be1a148398c060385b22bb4af
3,727
py
Python
setup.py
GdoongMathew/Monitor
1affeea0ca4f61d84fd8f0b8838a847da16854c2
[ "MIT" ]
null
null
null
setup.py
GdoongMathew/Monitor
1affeea0ca4f61d84fd8f0b8838a847da16854c2
[ "MIT" ]
null
null
null
setup.py
GdoongMathew/Monitor
1affeea0ca4f61d84fd8f0b8838a847da16854c2
[ "MIT" ]
null
null
null
import os import sys import shutil import subprocess from setuptools import find_packages, setup, Command from distutils.spawn import find_executable from distutils.command.clean import clean as _clean from distutils.command.build_py import build_py as _build_py NAME = "monitor" DESCRIPTION = "Monitor which reads har...
30.801653
82
0.625973
b5319b7cd68425693b38afd5f4966c86596f12cc
1,904
py
Python
chanjo/converter/cli.py
nuin/chanjo
9a1b4aa247c3fe5bf150ac24952d04be43befaa1
[ "MIT" ]
null
null
null
chanjo/converter/cli.py
nuin/chanjo
9a1b4aa247c3fe5bf150ac24952d04be43befaa1
[ "MIT" ]
null
null
null
chanjo/converter/cli.py
nuin/chanjo
9a1b4aa247c3fe5bf150ac24952d04be43befaa1
[ "MIT" ]
1
2018-07-18T14:56:09.000Z
2018-07-18T14:56:09.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from pkg_resources import iter_entry_points, load_entry_point import click from toolz import pipe from toolz.curried import map from ..utils import serialize_interval, validate_stdin @click.command() @click.option( '-a', '--adapter',...
29.75
79
0.677521
35e37d7eae07cabd6394107cb6c6662372376333
12,739
py
Python
pyiron_base/database/filetable.py
niklassiemer/pyiron_base
4f2fc35819279798a6deb6394354722378a7816b
[ "BSD-3-Clause" ]
null
null
null
pyiron_base/database/filetable.py
niklassiemer/pyiron_base
4f2fc35819279798a6deb6394354722378a7816b
[ "BSD-3-Clause" ]
61
2021-05-17T15:25:43.000Z
2022-03-31T04:14:19.000Z
pyiron_base/database/filetable.py
niklassiemer/pyiron_base
4f2fc35819279798a6deb6394354722378a7816b
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import os import pandas import datetime import h5io from pyfileindex import PyFileIndex from pyiron_base.generic.util import Singleton def filter_function(file_name): return '.h5' in file_name class FileTable(metaclass=Singleton): def __init__(self, project): self._fileindex = Non...
38.026866
116
0.57163
08fa8d19c64bc93ec30c9289fd414e873f7e396b
1,238
py
Python
tests.py
geospatial-jeff/cognition-datasources-srtm
057a5d9ea2a6b8b7e740646dbdc2344e5e9da776
[ "Apache-2.0" ]
null
null
null
tests.py
geospatial-jeff/cognition-datasources-srtm
057a5d9ea2a6b8b7e740646dbdc2344e5e9da776
[ "Apache-2.0" ]
null
null
null
tests.py
geospatial-jeff/cognition-datasources-srtm
057a5d9ea2a6b8b7e740646dbdc2344e5e9da776
[ "Apache-2.0" ]
null
null
null
from datasources import tests from SRTM import SRTM class SRTMTestCases(tests.BaseTestCases): def _setUp(self): self.datasource = SRTM self.spatial = { "type": "Polygon", "coordinates": [ [ [ ...
28.790698
50
0.331987
cc505681e530f9e70fdee743df0fe7f7d9d38643
13,462
py
Python
logstash/datadog_checks/logstash/logstash.py
davidlrosenblum/integrations-extras
281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3
[ "BSD-3-Clause" ]
158
2016-06-02T16:25:31.000Z
2022-03-16T15:55:14.000Z
logstash/datadog_checks/logstash/logstash.py
davidlrosenblum/integrations-extras
281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3
[ "BSD-3-Clause" ]
554
2016-03-15T17:39:12.000Z
2022-03-31T10:29:16.000Z
logstash/datadog_checks/logstash/logstash.py
davidlrosenblum/integrations-extras
281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3
[ "BSD-3-Clause" ]
431
2016-05-13T15:33:13.000Z
2022-03-31T10:06:46.000Z
# stdlib from collections import namedtuple from distutils.version import LooseVersion # 3rd party from six import iteritems from six.moves.urllib.parse import urljoin, urlparse # project from datadog_checks.base import AgentCheck EVENT_TYPE = SOURCE_TYPE_NAME = 'logstash' LogstashInstanceConfig = namedtuple('Logst...
47.06993
120
0.652206
0ec1e2cff290718c0139d639e364dc6546b485ad
8,566
py
Python
hypergan/cli.py
Darkar25/HyperGAN
76ef7e0c20569ceece88dc76396d92c77050692b
[ "MIT" ]
null
null
null
hypergan/cli.py
Darkar25/HyperGAN
76ef7e0c20569ceece88dc76396d92c77050692b
[ "MIT" ]
null
null
null
hypergan/cli.py
Darkar25/HyperGAN
76ef7e0c20569ceece88dc76396d92c77050692b
[ "MIT" ]
null
null
null
""" The command line interface. Trains a directory of data. """ import gc import sys import os import hyperchamber as hc import tensorflow as tf from hypergan.gan_component import ValidationException from .inputs import * from .viewer import GlobalViewer from .configuration import Configuration import hypergan as hg i...
34.540323
158
0.576232
2c1fda7414cb1edbd24f123fba528fa9a889099c
4,017
py
Python
research/audio/fcn-4/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/audio/fcn-4/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/audio/fcn-4/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
39.772277
96
0.66343
ec66aebc6065646e90154b9044f8a85568fea164
4,531
py
Python
process/generate_2d_shapes.py
irom-lab/DRAGEN
2fcb7e7c56fc5f72a2e5649903fe5aa993f253ec
[ "MIT" ]
2
2021-07-16T21:11:58.000Z
2021-07-20T12:39:34.000Z
process/generate_2d_shapes.py
irom-lab/DRAGEN
2fcb7e7c56fc5f72a2e5649903fe5aa993f253ec
[ "MIT" ]
null
null
null
process/generate_2d_shapes.py
irom-lab/DRAGEN
2fcb7e7c56fc5f72a2e5649903fe5aa993f253ec
[ "MIT" ]
null
null
null
import numpy as np from glob import glob import trimesh from shapely.geometry import Polygon from util.mesh import saveURDF def main(): num_object = 100 HEIGHT = 0.05 # fixed height for all 2D objects generate_train = True # generate test data generate_shape = 0 # 0 for ractangle; 1 for ellipse; 2 for triangle ...
34.853846
133
0.665857
e4b75e505a58b83c48eef56a0ea8c3cb85c88e11
2,095
py
Python
app/models.py
ZhongChao1011/ops
70d49e338b84077f94933fa467331de32c977a16
[ "Apache-2.0" ]
null
null
null
app/models.py
ZhongChao1011/ops
70d49e338b84077f94933fa467331de32c977a16
[ "Apache-2.0" ]
null
null
null
app/models.py
ZhongChao1011/ops
70d49e338b84077f94933fa467331de32c977a16
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2017/12/18 @author: ChaoZhong @email: 16796679@qq.com ''' import datetime from uuid import uuid1 from app import db from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin from . import login_manager clas...
30.808824
74
0.704057
9b7bf0d08533551135d6484105363223b0db6cf9
557
py
Python
py_learning_9_8_selenium/selenium_test.py
Mloser-z/Python_Learning
c0b663faec17349547c8089fc2a918153b675ae9
[ "Apache-2.0" ]
null
null
null
py_learning_9_8_selenium/selenium_test.py
Mloser-z/Python_Learning
c0b663faec17349547c8089fc2a918153b675ae9
[ "Apache-2.0" ]
null
null
null
py_learning_9_8_selenium/selenium_test.py
Mloser-z/Python_Learning
c0b663faec17349547c8089fc2a918153b675ae9
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time if __name__ == "__main__": driver = webdriver.Chrome(executable_path="D:/chromedriver/chromedriver_version_96/chromedriver.exe") driver.get("https://baidu.com") ass...
32.764706
106
0.710952
aaed36f9a8505c0b72fdaa2f79875c6b99a26f74
1,162
py
Python
portapp/migrations/0010_auto_20210102_2349.py
nmshohel/portfolio
f37090479c85d307a1c8cb7d95cce4172a1f63c4
[ "MIT" ]
null
null
null
portapp/migrations/0010_auto_20210102_2349.py
nmshohel/portfolio
f37090479c85d307a1c8cb7d95cce4172a1f63c4
[ "MIT" ]
null
null
null
portapp/migrations/0010_auto_20210102_2349.py
nmshohel/portfolio
f37090479c85d307a1c8cb7d95cce4172a1f63c4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-02 20:49 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('portapp', '0009_auto_20210102_2341'), ] operations = [ migrations.AlterField( model_name='posthome3', ...
29.05
71
0.590361
869353189d58950843674766848b52d7f26df0f8
2,881
py
Python
azure-mgmt-web/azure/mgmt/web/models/worker_pool_resource.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/web/models/worker_pool_resource.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure/mgmt/web/models/worker_pool_resource.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.465753
121
0.618188
bf1c8b799c94d54b95c63eb70798b75e0943d513
418
py
Python
Objektorientering/forelesning0110.py
Williamskaug/IN1000
164d0b4abd3314c440210f9582d581973c5fcfee
[ "MIT" ]
null
null
null
Objektorientering/forelesning0110.py
Williamskaug/IN1000
164d0b4abd3314c440210f9582d581973c5fcfee
[ "MIT" ]
null
null
null
Objektorientering/forelesning0110.py
Williamskaug/IN1000
164d0b4abd3314c440210f9582d581973c5fcfee
[ "MIT" ]
null
null
null
class Student: def __init__(self, navn): self._antMott = 0 self._navn = navn def registrer(self): self._antMott = self._antMott + 1 def hentOppmøte(self): return self._antMott def hentNavn(self): return self._navn stud1 = Student("William") stud1.regi...
18.173913
41
0.598086
ef3c12a48a6059f67b9f7c4d8b695d8e74e3c0b2
16,097
py
Python
intensity_normalization/normalize/ravel.py
AlaSummer/intensity-normalization
4481b52c35041eb564bd3e7c7d1b89c1604410c6
[ "Apache-2.0" ]
null
null
null
intensity_normalization/normalize/ravel.py
AlaSummer/intensity-normalization
4481b52c35041eb564bd3e7c7d1b89c1604410c6
[ "Apache-2.0" ]
null
null
null
intensity_normalization/normalize/ravel.py
AlaSummer/intensity-normalization
4481b52c35041eb564bd3e7c7d1b89c1604410c6
[ "Apache-2.0" ]
null
null
null
"""RAVEL normalization (WhiteStripe then CSF correction) Author: Jacob Reinhold <jcreinhold@gmail.com> Created on: Jun 02, 2021 """ from __future__ import annotations __all__ = ["RavelNormalize"] import argparse import builtins import collections.abc import functools import logging import operator import pathlib imp...
38.601918
109
0.621544
f73e40ebebcc8c71359c42c7a788d61b7c7a525a
3,869
py
Python
navigation_experiments_mc_pddl/launch/pddl_reconfig_controller_launch.py
estherag/navigation_experiments_mc_bts_pddl
992b675c3519a726bf6b9c342402fbee2296941e
[ "Apache-2.0" ]
3
2021-01-25T17:07:37.000Z
2021-02-04T12:58:04.000Z
navigation_experiments_mc_pddl/launch/pddl_reconfig_controller_launch.py
estherag/navigation_experiments_mc_bts_pddl
992b675c3519a726bf6b9c342402fbee2296941e
[ "Apache-2.0" ]
null
null
null
navigation_experiments_mc_pddl/launch/pddl_reconfig_controller_launch.py
estherag/navigation_experiments_mc_bts_pddl
992b675c3519a726bf6b9c342402fbee2296941e
[ "Apache-2.0" ]
2
2022-02-10T10:55:20.000Z
2022-02-14T01:35:24.000Z
# Copyright 2019 Intelligent Robotics Lab # # 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...
31.713115
102
0.71207
ac49d12de40c20f05f9f91f7194fdfbbfb79e737
9,493
py
Python
mindboggle/guts/graph.py
shnizzedy/mindboggle
36ea945cfa4c1998f3a88b58f296c25be91713d5
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
mindboggle/guts/graph.py
shnizzedy/mindboggle
36ea945cfa4c1998f3a88b58f296c25be91713d5
[ "CC-BY-3.0", "Apache-2.0" ]
7
2021-03-04T17:07:53.000Z
2021-04-06T20:09:17.000Z
mindboggle/guts/graph.py
shnizzedy/mindboggle
36ea945cfa4c1998f3a88b58f296c25be91713d5
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Graph operations: - Diagonal degree matrix - Matrix weights and affinity matrix - Graph Laplacian Authors: - Eliezer Stavsky, 2012 (eli.stavsky@gmail.com) - Arno Klein, 2016 (arno@mindboggle.info) http://binarybottle.com Copyright 2016, Mindboggle team (http://mindbog...
34.772894
105
0.580428
038f3d71a5ee7441b570179467e32a175ce1b735
8,174
py
Python
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
''' Trains TensorFlow DNNClassifier on training examples in TFRecord format, with each training example comprising methylation betas for one aliquot and the 0/1 label. Outputs statistics on the number of input features with non-zero weights in the hidden layer (dnn/hiddenlayer_0/kernel). Upon completion of training, wr...
33.363265
148
0.661488
42f39ae5ede363cdb8b0ece021ae723fcd7826e8
162
py
Python
steinbock/segmentation/cellprofiler/__init__.py
TambourineClub/steinbock
548ccf69e80a1ec3cb144a16ec67070fcab5474c
[ "MIT" ]
1
2022-03-03T13:22:27.000Z
2022-03-03T13:22:27.000Z
steinbock/segmentation/cellprofiler/__init__.py
TambourineClub/steinbock
548ccf69e80a1ec3cb144a16ec67070fcab5474c
[ "MIT" ]
null
null
null
steinbock/segmentation/cellprofiler/__init__.py
TambourineClub/steinbock
548ccf69e80a1ec3cb144a16ec67070fcab5474c
[ "MIT" ]
null
null
null
from ._cellprofiler import create_and_save_segmentation_pipeline, try_segment_objects __all__ = ["create_and_save_segmentation_pipeline", "try_segment_objects"]
40.5
85
0.876543
3e9c02dd4b4b5d8f710df95283587959a3fa0723
2,886
py
Python
src/data_preparation/scripts/graph_generator/typeparsing/inheritancerewrite.py
typilus/typilus
69c377b4cd286fd3657708accf3b2f56a5da1e8d
[ "MIT" ]
39
2020-04-16T05:14:53.000Z
2022-01-12T12:50:07.000Z
src/data_preparation/scripts/graph_generator/typeparsing/inheritancerewrite.py
fwangdo/typilus
69c377b4cd286fd3657708accf3b2f56a5da1e8d
[ "MIT" ]
5
2020-07-05T08:20:27.000Z
2022-03-04T09:49:12.000Z
src/data_preparation/scripts/graph_generator/typeparsing/inheritancerewrite.py
fwangdo/typilus
69c377b4cd286fd3657708accf3b2f56a5da1e8d
[ "MIT" ]
12
2020-04-25T19:12:46.000Z
2022-02-17T08:49:24.000Z
from itertools import product from typing import Callable, Iterator, Set import random from typeparsing.nodes import TypeAnnotationNode, SubscriptAnnotationNode, TupleAnnotationNode, ListAnnotationNode, \ AttributeAnnotationNode, IndexAnnotationNode, ElipsisAnnotationNode from typeparsing.visitor import Type...
39.534247
118
0.684685
9adfa078f9afb05610602fd628ad66148d068b14
26,070
py
Python
seahub/settings.py
xiez/seahub
8dfaa726e804afdf27e0b530de3e127b1654a7e3
[ "Apache-2.0" ]
null
null
null
seahub/settings.py
xiez/seahub
8dfaa726e804afdf27e0b530de3e127b1654a7e3
[ "Apache-2.0" ]
null
null
null
seahub/settings.py
xiez/seahub
8dfaa726e804afdf27e0b530de3e127b1654a7e3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012-2016 Seafile Ltd. # -*- coding: utf-8 -*- # Django settings for seahub project. import sys import os import re from seaserv import FILE_SERVER_ROOT, FILE_SERVER_PORT, SERVICE_URL PROJECT_ROOT = os.path.join(os.path.dirname(__file__), os.pardir) DEBUG = False CLOUD_MODE = False ADMINS = ( ...
31.184211
245
0.690487
70274a0a850adf9442e439d8777d0e0ace6884f6
147
py
Python
eod/commands/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
1
2022-01-11T06:44:27.000Z
2022-01-11T06:44:27.000Z
eod/commands/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
eod/commands/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
from .train import Train # noqa from .inference import Inference # noqa from .eval import Eval # noqa from .quant_deploy import QuantDeploy # noqa
36.75
44
0.782313
f4905cbd985203b10bd00a518ff5acaab1768ae2
6,083
py
Python
python/databuffer.py
steven1003/binaryninja-api
116d3b8d245d680c7e02c5c8cfde80a90cff1a64
[ "MIT" ]
null
null
null
python/databuffer.py
steven1003/binaryninja-api
116d3b8d245d680c7e02c5c8cfde80a90cff1a64
[ "MIT" ]
null
null
null
python/databuffer.py
steven1003/binaryninja-api
116d3b8d245d680c7e02c5c8cfde80a90cff1a64
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2022 Vector 35 Inc # # 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, merge, publish, ...
35.16185
97
0.722012
d56659cd9f317aee4b0e161df851838a754f985b
8,349
py
Python
tests/test_config.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
8
2019-09-25T14:45:28.000Z
2021-11-08T10:30:03.000Z
tests/test_config.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
113
2018-07-10T12:58:16.000Z
2020-12-09T22:33:15.000Z
tests/test_config.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
12
2018-07-10T11:00:02.000Z
2021-01-27T12:19:56.000Z
"""Test for the config.py.""" # import pytest import os from cvejob.config import DefaultConfig, RuntimeConfig def test_default_config_constructor(): """Basic test for the class DefaultConfig.""" config = DefaultConfig() assert config is not None def test_default_config_attributes(): """Check the ...
31.625
91
0.723081
d22499aa0e6e4caaa85f413833f872a4202ac727
2,748
py
Python
tests/test_latex_formatter.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
940
2019-08-23T13:08:46.000Z
2022-03-31T06:40:44.000Z
tests/test_latex_formatter.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
1,043
2019-08-22T12:22:28.000Z
2022-03-31T20:26:02.000Z
tests/test_latex_formatter.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
488
2019-09-19T14:27:19.000Z
2022-03-31T17:02:44.000Z
""" Pygments LaTeX formatter tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import tempfile from os import path from textwrap import dedent import pytest from pygments.formatters import Lat...
28.625
90
0.565866
402f0d42088c7e66afd043028216dd5b76186cdc
2,684
py
Python
tests/contrib/openstack/test_alternatives.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
15
2017-09-20T13:37:10.000Z
2021-11-03T13:31:15.000Z
tests/contrib/openstack/test_alternatives.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
313
2017-09-15T13:22:58.000Z
2022-02-25T17:55:01.000Z
tests/contrib/openstack/test_alternatives.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
136
2017-09-19T13:37:33.000Z
2022-03-29T11:08:00.000Z
from testtools import TestCase from mock import patch import charmhelpers.contrib.openstack.alternatives as alternatives NAME = 'test' SOURCE = '/var/lib/charm/test/test.conf' TARGET = '/etc/test/test,conf' class AlternativesTestCase(TestCase): @patch('subprocess.os.path') @patch('subprocess.check_call') ...
34.857143
66
0.545455
cb9377df363351dccffd1155a14bdf0a9f4abcfc
71,903
py
Python
tensorflow/python/ops/rnn_cell_impl.py
konsoz/tensorflow
684cfa3ee804855e817a96fa5a31f46dc9041b5b
[ "Apache-2.0" ]
2
2019-02-12T01:37:54.000Z
2019-09-17T18:20:54.000Z
tensorflow/python/ops/rnn_cell_impl.py
illaMcbender/tensorflow
a0b0a503287d019a28ef4f670b157eb3605a12f3
[ "Apache-2.0" ]
1
2019-02-22T00:50:13.000Z
2019-02-22T00:50:13.000Z
tensorflow/python/ops/rnn_cell_impl.py
illaMcbender/tensorflow
a0b0a503287d019a28ef4f670b157eb3605a12f3
[ "Apache-2.0" ]
1
2021-05-21T15:00:04.000Z
2021-05-21T15:00:04.000Z
# Copyright 2015 The TensorFlow 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 applica...
40.191727
82
0.682781
685f34c317f317cdac68d5251abf0944d84782a4
1,833
py
Python
tutorial2.py
Ziggareto/pytorch_learning
49a24d670e76ccfa89883727b7e4c1dba1c6075d
[ "MIT" ]
null
null
null
tutorial2.py
Ziggareto/pytorch_learning
49a24d670e76ccfa89883727b7e4c1dba1c6075d
[ "MIT" ]
null
null
null
tutorial2.py
Ziggareto/pytorch_learning
49a24d670e76ccfa89883727b7e4c1dba1c6075d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jun 25 21:58:06 2020 @author: benja """ import torch import torch.nn as nn import torch.nn.functional as F class Net(nn.Module): def __init__(self): super(Net, self).__init__() #input 32 x 32 self.conv1 = nn.Conv2d(1, 6, 3) #...
24.44
91
0.57665
76f65633ee8d74296d3fbb7793f4b6b9382b53cb
2,384
py
Python
main/migrations/0002_create-members-group-with-permissions.py
cupracer/family-tools
95a9f4d845fca4a00e2b666afc7eb791745121e7
[ "MIT" ]
null
null
null
main/migrations/0002_create-members-group-with-permissions.py
cupracer/family-tools
95a9f4d845fca4a00e2b666afc7eb791745121e7
[ "MIT" ]
null
null
null
main/migrations/0002_create-members-group-with-permissions.py
cupracer/family-tools
95a9f4d845fca4a00e2b666afc7eb791745121e7
[ "MIT" ]
null
null
null
from django.core.management.sql import emit_post_migrate_signal from django.db import migrations from housekeeping_book.models import AccountHolder, Category, Booking, PeriodicBooking def make_permissions(apps,schema_editor): emit_post_migrate_signal(2, False, 'default') Group = apps.get_model("auth", "Group"...
27.402299
89
0.656879
d52095cc6fe0810691d0eac6bf419824acff8941
205
py
Python
venv/lib/python3.4/site-packages/osa/__init__.py
zackszhu/SE343_Architecture-of-Enterprise-Applications
eae49d0c20ae4fc345e4d2dae8c053e8410729ad
[ "MIT" ]
null
null
null
venv/lib/python3.4/site-packages/osa/__init__.py
zackszhu/SE343_Architecture-of-Enterprise-Applications
eae49d0c20ae4fc345e4d2dae8c053e8410729ad
[ "MIT" ]
null
null
null
venv/lib/python3.4/site-packages/osa/__init__.py
zackszhu/SE343_Architecture-of-Enterprise-Applications
eae49d0c20ae4fc345e4d2dae8c053e8410729ad
[ "MIT" ]
null
null
null
# __init__.py - __init__ file, part of osa. # Copyright 2013 Sergey Bozhenkov, boz at ipp.mpg.de # Licensed under LGPLv3 or later, see the COPYING file. __version__ = "1.6-p4" from .client import Client
25.625
55
0.741463
4c2c0c88d1c53650c3f00b446da640534f1b564c
53
py
Python
src/questions/__init__.py
saadmk11/yourquery
5bc64f91846908803becb4e0cb6fece417bbe49a
[ "MIT" ]
4
2021-09-11T14:38:11.000Z
2022-01-27T05:46:13.000Z
src/questions/__init__.py
saadmk11/yourquery
5bc64f91846908803becb4e0cb6fece417bbe49a
[ "MIT" ]
62
2021-09-25T13:32:25.000Z
2021-10-20T13:48:25.000Z
src/questions/__init__.py
saadmk11/yourquery
5bc64f91846908803becb4e0cb6fece417bbe49a
[ "MIT" ]
2
2021-09-18T11:31:39.000Z
2022-02-22T17:11:58.000Z
default_app_config = 'questions.apps.QuestionsConfig'
53
53
0.867925
0e429a252689874a37d41ac5ee3446d9dc3c37e9
103,346
py
Python
src/sage/modular/modform_hecketriangle/abstract_space.py
swewers/mein_sage
0e4e2d14aab0a1a2e63292939a9baa997f0e986b
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/modular/modform_hecketriangle/abstract_space.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/modular/modform_hecketriangle/abstract_space.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
r""" Modular forms for Hecke triangle groups AUTHORS: - Jonas Jermann (2013): initial version """ from __future__ import absolute_import #***************************************************************************** # Copyright (C) 2013-2014 Jonas Jermann <jjermann2@gmail.com> # # Distributed under the terms...
40.511956
206
0.551323
b14595332008db0e918118a0aefb55ae66bed666
9,854
py
Python
pydiscord/__main__.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
pydiscord/__main__.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
pydiscord/__main__.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
31.684887
122
0.649279
6bfdcb8a93cb6519c4f397dea31b607f6bfa8a28
3,244
py
Python
dataset/hcp/loader.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
3
2020-02-21T21:35:07.000Z
2020-09-29T15:20:00.000Z
dataset/hcp/loader.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
27
2020-02-20T21:00:23.000Z
2020-05-22T15:23:25.000Z
dataset/hcp/loader.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
null
null
null
import os import torch.utils.data from dataset.hcp.reader import HcpReader, SkipSubjectException from util.logging import get_logger, set_logger from util.lang import to_bool from fwk.config import Config import numpy.random as npr import numpy as np class HcpDataset(torch.utils.data.Dataset): """ A PyTorch ...
31.803922
119
0.647041
2ac73ebf7bc2b5e305be33c2be635b3a5ead9c44
1,077
py
Python
pyvisdk/do/disallowed_migration_device_attached.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/disallowed_migration_device_attached.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/disallowed_migration_device_attached.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def DisallowedMigrationDeviceAttached(vim, *args, **kwargs): '''The virtual machine is us...
32.636364
124
0.618384
ed9cdcbf7ce6ed853e4232e552d1e9f0671ddfb7
604
py
Python
capstone2/users/models.py
onghbaophuoc118/Capstone2_Final
1694848250d11617fb3bfa82bd61583e60b8422e
[ "MIT" ]
null
null
null
capstone2/users/models.py
onghbaophuoc118/Capstone2_Final
1694848250d11617fb3bfa82bd61583e60b8422e
[ "MIT" ]
3
2021-05-12T05:25:43.000Z
2022-03-30T20:05:07.000Z
capstone2/users/models.py
onghbaophuoc118/Capstone2_Final
1694848250d11617fb3bfa82bd61583e60b8422e
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import gettext_lazy as _ class User(AbstractUser): """Default user for Capstone2.""" #: First and last name do not cover name patterns around the globe ...
28.761905
74
0.690397
21aeec8787692f947efe46bc56e1b8a6dc2f2941
1,509
py
Python
bsp/realview-a8/rtconfig.py
Davidfind/rt-thread
56f1a8af4f9e8bad0a0fdc5cea7112767267b243
[ "Apache-2.0" ]
10
2019-12-23T07:18:27.000Z
2020-12-19T04:35:43.000Z
bsp/realview-a8/rtconfig.py
zlzerg/rt-thread
c0a400ccbee720fc0e9ee904298f09bd07a21382
[ "Apache-2.0" ]
5
2019-02-28T10:07:03.000Z
2019-03-11T10:40:20.000Z
bsp/realview-a8/rtconfig.py
zlzerg/rt-thread
c0a400ccbee720fc0e9ee904298f09bd07a21382
[ "Apache-2.0" ]
7
2019-07-01T02:50:47.000Z
2020-12-11T10:01:07.000Z
import os # toolchains options ARCH='arm' CPU='realview-a8-vmm' CROSS_TOOL='gcc' if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') PLATFORM = 'gcc' # EXEC_PATH = r'/opt/arm-2012.09/bin' EXEC_PATH = r'C:\Program Files (x86)\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_EABI\bin' EXEC_PATH = '/opt/gcc...
26.946429
111
0.585156
10d249fb37bfd9c1e26b5c25728cd24bc75dfbb8
18
py
Python
go-engine-generator/lib/gosgf/__init__.py
antkaynak/GoGame
421efb59bee7edb1c3eb640a301d6c12f1788322
[ "MIT" ]
6
2019-02-26T18:21:25.000Z
2021-07-04T23:23:56.000Z
go-engine-generator/lib/gosgf/__init__.py
antkaynak/GoGame
421efb59bee7edb1c3eb640a301d6c12f1788322
[ "MIT" ]
null
null
null
go-engine-generator/lib/gosgf/__init__.py
antkaynak/GoGame
421efb59bee7edb1c3eb640a301d6c12f1788322
[ "MIT" ]
null
null
null
from .sgf import *
18
18
0.722222
f87a56a89dcde62c5ceed11835830ff5d34addfa
11,619
py
Python
src/livestreamer/stream/hls.py
jaccarmac/livestreamer
ab80dbd6560f6f9835865b2fc9f9c6015aee5658
[ "BSD-2-Clause", "MIT" ]
3,614
2015-01-01T08:07:27.000Z
2022-03-20T00:31:07.000Z
src/livestreamer/stream/hls.py
kviktor/livestreamer
ab80dbd6560f6f9835865b2fc9f9c6015aee5658
[ "BSD-2-Clause", "MIT" ]
1,028
2015-01-02T03:38:38.000Z
2021-08-06T16:17:48.000Z
src/livestreamer/stream/hls.py
kviktor/livestreamer
ab80dbd6560f6f9835865b2fc9f9c6015aee5658
[ "BSD-2-Clause", "MIT" ]
795
2015-01-02T06:12:04.000Z
2022-03-27T23:41:53.000Z
from collections import defaultdict, namedtuple try: from Crypto.Cipher import AES import struct def num_to_iv(n): return struct.pack(">8xq", n) CAN_DECRYPT = True except ImportError: CAN_DECRYPT = False from . import hls_playlist from .http import HTTPStream from .segmented import (Segm...
36.083851
86
0.59308
479a862fc57618ecb3d3f6d2037ee3fd84f9ee43
9,274
py
Python
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.37
152
0.695061
997e310057a53faf6e579c5a14c509229d8e2431
10,050
py
Python
agsconfig/services/extension_base.py
DavidWhittingham/agsconfig
c0ac6c37e5e49f87d2812220d756aef118c08024
[ "BSD-3-Clause" ]
1
2019-05-17T01:44:41.000Z
2019-05-17T01:44:41.000Z
agsconfig/services/extension_base.py
DavidWhittingham/agsconfig
c0ac6c37e5e49f87d2812220d756aef118c08024
[ "BSD-3-Clause" ]
2
2019-04-09T02:01:26.000Z
2019-06-25T05:27:11.000Z
agsconfig/services/extension_base.py
DavidWhittingham/agsconfig
c0ac6c37e5e49f87d2812220d756aef118c08024
[ "BSD-3-Clause" ]
2
2019-03-21T04:58:18.000Z
2019-09-09T23:00:48.000Z
# coding=utf-8 """This module contains the ExtensionBase abstract base class for implementing ArcGIS Server service extensions.""" # Python 2/3 compatibility # pylint: disable=wildcard-import,unused-wildcard-import,wrong-import-order,wrong-import-position from __future__ import (absolute_import, division, print_functi...
45.475113
269
0.311343
1f0bd770bdd17344ea15fdff9c5ed0b0acab9b22
9,387
py
Python
src/ebay_rest/api/buy_deal/api/event_item_api.py
gbm001/ebay_rest
077d3478423ccd80ff35e0361821d6a11180bc54
[ "MIT" ]
3
2021-12-12T04:28:03.000Z
2022-03-10T03:29:18.000Z
src/ebay_rest/api/buy_deal/api/event_item_api.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
33
2021-06-16T20:44:36.000Z
2022-03-30T14:55:06.000Z
src/ebay_rest/api/buy_deal/api/event_item_api.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
7
2021-06-03T09:30:23.000Z
2022-03-08T19:51:33.000Z
# coding: utf-8 """ Deal API <span class=\"tablenote\"><b>Note:</b> This is a <a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(...
61.352941
758
0.691808
9a583c6845e0ecbc7b9142fc21561cb769ca27eb
1,191
py
Python
tools/genesis_builder.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
tools/genesis_builder.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
tools/genesis_builder.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
from binascii import hexlify from eth_utils import denoms, encode_hex from raiden.utils import privatekey_to_address, sha3 from raiden.tests.utils.blockchain import GENESIS_STUB CLUSTER_NAME = 'raiden' def generate_accounts(seeds): """Create private keys and addresses for all seeds. """ return { ...
29.775
99
0.68262
75a2597adcdcae122cb7a9e4d78b3707b95ae319
889
py
Python
get_data.py
fromdatavistodatascience/Boston-Airpot-Traffic-Visualisation
9f30e89e68c25e6fbcf13d84fee561b53ff70d84
[ "MIT" ]
null
null
null
get_data.py
fromdatavistodatascience/Boston-Airpot-Traffic-Visualisation
9f30e89e68c25e6fbcf13d84fee561b53ff70d84
[ "MIT" ]
null
null
null
get_data.py
fromdatavistodatascience/Boston-Airpot-Traffic-Visualisation
9f30e89e68c25e6fbcf13d84fee561b53ff70d84
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import json import requests #Retrieving my api keys information to access the Google API. def get_keys(path): with open(path) as f: return json.load(f) keys = get_keys("/Users/jjherranzsarrion/.secret/google_blog2_api.json") api_key = keys['api_key'] url = 'http...
31.75
130
0.743532
12205cdcb4a42b874a3acf884eca74f8a5b13c1c
14,334
py
Python
test/functional/p2p_unrequested_blocks.py
ESIRInvestments/ESIRInvestments
f457e4bf68f2749e061ee2b9dd20bc3d7aa62944
[ "MIT" ]
null
null
null
test/functional/p2p_unrequested_blocks.py
ESIRInvestments/ESIRInvestments
f457e4bf68f2749e061ee2b9dd20bc3d7aa62944
[ "MIT" ]
null
null
null
test/functional/p2p_unrequested_blocks.py
ESIRInvestments/ESIRInvestments
f457e4bf68f2749e061ee2b9dd20bc3d7aa62944
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test processing of unrequested blocks. Setup: two nodes, node0+node1, not connected to each other. Nod...
44.240741
113
0.677271
23c3661df25eb969a40ac78374a677f0b6b6148d
2,452
py
Python
5e/app.py
fredsonchaves07/flask-course
4e9a3a94c3c49595c1d810794ba7533499811b58
[ "MIT" ]
1
2021-01-05T01:29:22.000Z
2021-01-05T01:29:22.000Z
5e/app.py
fredsonchaves07/flask-course
4e9a3a94c3c49595c1d810794ba7533499811b58
[ "MIT" ]
null
null
null
5e/app.py
fredsonchaves07/flask-course
4e9a3a94c3c49595c1d810794ba7533499811b58
[ "MIT" ]
null
null
null
from flask import Flask, render_template, session, redirect, url_for, flash from flask_bootstrap import Bootstrap from flask_moment import Moment from datetime import datetime from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired import os from flask_sq...
28.183908
116
0.662724
c271bd066f7ecebd73074ce773dc6ba3ca7e9022
626
py
Python
takeTrainPics.py
raghavgupta0296/ASL
5012e1f2fa66b7f75b22f576003c8be50c59286e
[ "MIT" ]
null
null
null
takeTrainPics.py
raghavgupta0296/ASL
5012e1f2fa66b7f75b22f576003c8be50c59286e
[ "MIT" ]
null
null
null
takeTrainPics.py
raghavgupta0296/ASL
5012e1f2fa66b7f75b22f576003c8be50c59286e
[ "MIT" ]
null
null
null
import cv2 cam = cv2.VideoCapture(0) i=0 num = 19 while cam.isOpened: key = cv2.waitKey(10) if key==27: break r, frame = cam.read() frame = cv2.flip(frame,1,0) frame = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) if(i==0): x = int(frame.shape[1]/2) y = int(fram...
25.04
86
0.549521
f13c7372d165781d559dde0d22ff940f61a0743b
3,943
py
Python
stonesoup/simulator/tests/test_detections.py
Isaac-JenkinsRA/Stone-Soup
54c9c7dca8162dadaa58e85933cf10a0f86ce1e1
[ "MIT" ]
1
2020-07-21T15:20:20.000Z
2020-07-21T15:20:20.000Z
stonesoup/simulator/tests/test_detections.py
Isaac-JenkinsRA/Stone-Soup
54c9c7dca8162dadaa58e85933cf10a0f86ce1e1
[ "MIT" ]
null
null
null
stonesoup/simulator/tests/test_detections.py
Isaac-JenkinsRA/Stone-Soup
54c9c7dca8162dadaa58e85933cf10a0f86ce1e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import pytest import numpy as np from ...types.state import State from ..simple import SimpleDetectionSimulator, SwitchDetectionSimulator,\ SingleTargetGroundTruthSimulator, SwitchOneTargetGroundTruthSimulator @pytest.fixture(params=[datetime.timedelta(seconds=1), ...
38.656863
75
0.70809
2094c8319f0d595c0c356a5025ad07df20d7f6bc
13,353
py
Python
ultracart/models/order_payment_e_check.py
gstingy/uc_python_api
9a0bd3f6e63f616586681518e44fe37c6bae2bba
[ "Apache-2.0" ]
null
null
null
ultracart/models/order_payment_e_check.py
gstingy/uc_python_api
9a0bd3f6e63f616586681518e44fe37c6bae2bba
[ "Apache-2.0" ]
null
null
null
ultracart/models/order_payment_e_check.py
gstingy/uc_python_api
9a0bd3f6e63f616586681518e44fe37c6bae2bba
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class OrderPaymentECheck(object...
32.808354
260
0.638358
c70190c57acf3927ee46833cc4f535e55bbc78b9
273
py
Python
my-r-lang/script/show.py
crux-plus/hello-world
87aed8e58399d2434adbd18d84ee6cde05ae285b
[ "MIT" ]
null
null
null
my-r-lang/script/show.py
crux-plus/hello-world
87aed8e58399d2434adbd18d84ee6cde05ae285b
[ "MIT" ]
null
null
null
my-r-lang/script/show.py
crux-plus/hello-world
87aed8e58399d2434adbd18d84ee6cde05ae285b
[ "MIT" ]
null
null
null
import os; import cv2.cv2 as cv; for root, dirs, files in os.walk(os.path.join('.', 'dist')): for file in files: if os.path.splitext(file)[1] == '.png': image = cv.imread(os.path.join('.', 'dist', file)); cv.imshow('image', image); cv.waitKey(0);
24.818182
60
0.582418
0bb35d7074b91f70bea7af67317fb49e6fd87b8e
4,674
py
Python
python/ray/tune/suggest/bayesopt.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
2
2019-06-17T12:38:24.000Z
2020-11-11T07:52:26.000Z
python/ray/tune/suggest/bayesopt.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
3
2018-08-15T19:19:25.000Z
2021-06-30T01:54:46.000Z
python/ray/tune/suggest/bayesopt.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
2
2017-10-31T23:20:07.000Z
2019-11-13T20:16:03.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import logging import pickle try: # Python 3 only -- needed for lint test. import bayes_opt as byo except ImportError: byo = None from ray.tune.suggest.suggestion import SuggestionAlgorith...
35.679389
78
0.615533
70a6075c21d82659eef49b53e4ecd0521f500f3f
2,396
py
Python
controller/Product.py
leandro-matos/flask-application-alura
33bc0c84e0e67535cbb48dfda3aae36b76256ac8
[ "MIT" ]
null
null
null
controller/Product.py
leandro-matos/flask-application-alura
33bc0c84e0e67535cbb48dfda3aae36b76256ac8
[ "MIT" ]
null
null
null
controller/Product.py
leandro-matos/flask-application-alura
33bc0c84e0e67535cbb48dfda3aae36b76256ac8
[ "MIT" ]
null
null
null
from datetime import datetime from model.Product import Product class ProductController(): def __init__(self): self.product_model = Product() def save_product(self, obj): self.product_model.name = obj['name'] self.product_model.description = obj['description'] self.product_mod...
29.95
61
0.492905
86f1c76ec1ff39c13dad65ef32c1b1359fe8f260
55,394
py
Python
swig/python/osgeo/osr.py
miurahr/gdal
d547204c3338fee0096c18df37744bcb8a4499c7
[ "Apache-2.0" ]
3
2017-05-06T11:43:08.000Z
2017-07-19T15:27:06.000Z
swig/python/osgeo/osr.py
miurahr/gdal
d547204c3338fee0096c18df37744bcb8a4499c7
[ "Apache-2.0" ]
29
2017-03-17T23:55:49.000Z
2018-03-13T09:27:01.000Z
swig/python/osgeo/osr.py
miurahr/gdal
d547204c3338fee0096c18df37744bcb8a4499c7
[ "Apache-2.0" ]
1
2017-10-12T05:49:01.000Z
2017-10-12T05:49:01.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
41.587087
317
0.741723
574cd53e6c04fac3dfa822868300388ffc64584f
2,873
py
Python
scripts/new_session_adder.py
wangsongiam/leetcode
96ff21bca1871816ae51fccb1fa13587b378dc50
[ "MIT" ]
3
2018-11-25T15:19:57.000Z
2019-09-28T03:01:11.000Z
scripts/new_session_adder.py
casprwang/leetcode
96ff21bca1871816ae51fccb1fa13587b378dc50
[ "MIT" ]
null
null
null
scripts/new_session_adder.py
casprwang/leetcode
96ff21bca1871816ae51fccb1fa13587b378dc50
[ "MIT" ]
3
2018-02-11T20:23:44.000Z
2020-06-05T15:39:56.000Z
import os import re OLD_DIR = os.path.expanduser('~/dev/leetcode/solutions') NEW_DIR = os.path.expanduser('~/temp/lll/solutions/') OLD_README = os.path.expanduser('~/dev/leetcode/README.md') NEW_README = os.path.expanduser('~/dev/leetcode/README_NEW.md') COM_README = os.path.expanduser('~/temp/lll/README.md') def ge...
32.280899
149
0.611904
9a17f1cfeb1bee799a3fb6a43151c6d0720f6b07
990
py
Python
tests/models/ultralytics/yolov5/lightning/test_train.py
Toucan-Systems/icevision
7dc8d1f0557b24899f3823f1370f28496b73fac7
[ "Apache-2.0" ]
null
null
null
tests/models/ultralytics/yolov5/lightning/test_train.py
Toucan-Systems/icevision
7dc8d1f0557b24899f3823f1370f28496b73fac7
[ "Apache-2.0" ]
null
null
null
tests/models/ultralytics/yolov5/lightning/test_train.py
Toucan-Systems/icevision
7dc8d1f0557b24899f3823f1370f28496b73fac7
[ "Apache-2.0" ]
null
null
null
import pytest from icevision.all import * from icevision.models.ultralytics.yolov5.backbones import * @pytest.mark.parametrize( "backbone", [small, medium, large], ) def test_lightning_yolo_train(fridge_ds, backbone): train_ds, valid_ds = fridge_ds train_dl = models.ultralytics.yolov5.train_dl( ...
30.9375
71
0.721212
960856d683c82d8da51927a2b5835b008ccecc1e
1,672
py
Python
efficientnet/utils/gen_csf_dataset.py
DoriHp/efficientnet-pytorch
a7f51480c40b389d54fc5c1aa4e30fedcca99adf
[ "MIT" ]
null
null
null
efficientnet/utils/gen_csf_dataset.py
DoriHp/efficientnet-pytorch
a7f51480c40b389d54fc5c1aa4e30fedcca99adf
[ "MIT" ]
null
null
null
efficientnet/utils/gen_csf_dataset.py
DoriHp/efficientnet-pytorch
a7f51480c40b389d54fc5c1aa4e30fedcca99adf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: bao # @Date: 2021-03-01 15:02:26 # @Last Modified by: bao # @Last Modified time: 2021-03-01 15:54:21 # Read label from original csv file, then divide dataset in to 2 classes dataset (normal and abnormal) # Output file format # filepath | label | # ... | ... | # ... ...
32.784314
102
0.642943
f3f04abc81da8ad1307da0aa0e80fb5e0d0c109e
3,837
py
Python
spotzurnal/main.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
spotzurnal/main.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
spotzurnal/main.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
import datetime from pathlib import Path import click from yaml import safe_load from . import croapi from . import matcher from .spotify import Spotify from .cache import Cache from .clickdate import ClickDate from .aggregator import parse_plname @click.command() @click.option( "--credentials", "-c", metav...
26.645833
76
0.643211
eb6ad5cd5f552f34136a057e98dd9b047d8f4ec0
90,957
py
Python
keras/layers/recurrent.py
ekholabs/keras
4a28dc5debcd0bd790ef29d202342184fde5a1f4
[ "MIT" ]
7
2017-06-02T19:07:36.000Z
2021-07-23T21:01:44.000Z
keras/layers/recurrent.py
ekholabs/keras
4a28dc5debcd0bd790ef29d202342184fde5a1f4
[ "MIT" ]
null
null
null
keras/layers/recurrent.py
ekholabs/keras
4a28dc5debcd0bd790ef29d202342184fde5a1f4
[ "MIT" ]
4
2017-05-27T02:37:54.000Z
2017-08-05T16:01:31.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import numpy as np import warnings from .. import backend as K from .. import activations from .. import initializers from .. import regularizers from .. import constraints from ..engine import Layer from ..engine import InputSpec from ..utils.generic_util...
43.271646
130
0.576822
07847e471090ec4246cc6f8240feefa8dca006bd
28,333
py
Python
tests/test_generics.py
ofek/pydantic
bd9c5723c676395363689549268738153e45a7e5
[ "MIT" ]
null
null
null
tests/test_generics.py
ofek/pydantic
bd9c5723c676395363689549268738153e45a7e5
[ "MIT" ]
93
2021-06-14T06:17:35.000Z
2022-03-28T10:04:47.000Z
tests/test_generics.py
Hultner/pydantic
37e0e39c643e49e6a744a54c70d130c4f921f3c9
[ "MIT" ]
null
null
null
import sys from enum import Enum from typing import Any, Callable, ClassVar, Dict, Generic, List, Optional, Sequence, Tuple, Type, TypeVar, Union import pytest from pydantic import BaseModel, Field, ValidationError, root_validator, validator from pydantic.generics import GenericModel, _generic_types_cache, iter_conta...
27.832024
119
0.638337
0029ad751b4c7904f152bcc5666a2c3b07310cd3
139
py
Python
estimates_scraper/__main__.py
OpenGovAus/estimates-scraper
be3434b07a658436d095b7fce04a888124350881
[ "MIT" ]
null
null
null
estimates_scraper/__main__.py
OpenGovAus/estimates-scraper
be3434b07a658436d095b7fce04a888124350881
[ "MIT" ]
null
null
null
estimates_scraper/__main__.py
OpenGovAus/estimates-scraper
be3434b07a658436d095b7fce04a888124350881
[ "MIT" ]
null
null
null
import json if __name__ == '__main__': import estimates_scraper print(json.dumps(estimates_scraper.scrape_committees(), indent=2))
27.8
70
0.76259
4b14c4bf1669fba39b874a7eaa022ff522f3a5c9
2,208
gyp
Python
client/client.gyp
LaudateCorpus1/crashpad
d7798a4e284456702ce154e00e8adc2846f3a4f3
[ "Apache-2.0" ]
37
2016-04-08T15:13:05.000Z
2022-02-14T18:59:51.000Z
client/client.gyp
LaudateCorpus1/crashpad
d7798a4e284456702ce154e00e8adc2846f3a4f3
[ "Apache-2.0" ]
3
2017-01-17T08:42:34.000Z
2017-08-28T22:53:36.000Z
client/client.gyp
atom/crashpad
d7798a4e284456702ce154e00e8adc2846f3a4f3
[ "Apache-2.0" ]
22
2016-04-27T21:07:06.000Z
2022-02-02T08:04:06.000Z
# Copyright 2014 The Crashpad 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 applicabl...
27.6
74
0.566123
dc3eb78a73f9f930cf1db967622e846ee244cc99
558
py
Python
src/player/Logger.py
cybekRT/DJPajton2
e461070269a5b39bac6c8df1eb739ea79c7099b5
[ "MIT" ]
null
null
null
src/player/Logger.py
cybekRT/DJPajton2
e461070269a5b39bac6c8df1eb739ea79c7099b5
[ "MIT" ]
null
null
null
src/player/Logger.py
cybekRT/DJPajton2
e461070269a5b39bac6c8df1eb739ea79c7099b5
[ "MIT" ]
null
null
null
_logger = None class Logger(): @staticmethod def instance(): global _logger if _logger is None: _logger = Logger() return _logger def __init__(self): global _logger if _logger is not None: raise "Logger was initialized!" self.messages = [] def Latest(self): if len(self.messages) == 0: ...
16.909091
34
0.655914
63f2e15c0066b57e1f71572de1ac3862fffcaa94
7,381
py
Python
python/archive/repeater_autotime_090118.py
hmallen/xbee_garage
a3ff4a0fd596b0c7549ccf84737d47076459cd58
[ "MIT" ]
null
null
null
python/archive/repeater_autotime_090118.py
hmallen/xbee_garage
a3ff4a0fd596b0c7549ccf84737d47076459cd58
[ "MIT" ]
null
null
null
python/archive/repeater_autotime_090118.py
hmallen/xbee_garage
a3ff4a0fd596b0c7549ccf84737d47076459cd58
[ "MIT" ]
null
null
null
import configparser import datetime import logging import serial # import sys import time import cayenne.client from pymongo import MongoClient logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) mqtt_loop_interval = 10 config_path = '../config/config.ini' config = configparse...
30.374486
102
0.583796
cb9ffca95d97c0638404968a2c900121327f037e
5,865
py
Python
cortex/surfinfo.py
pulkitag/pycortex
f329dccbe3f04dc4556b930f284bcddd760fc76b
[ "BSD-2-Clause" ]
1
2021-03-08T22:52:52.000Z
2021-03-08T22:52:52.000Z
cortex/surfinfo.py
candleinwindsteve/pycortex
988dc996a33f16208537a2e8ffe14e2ae3ea6647
[ "BSD-2-Clause" ]
null
null
null
cortex/surfinfo.py
candleinwindsteve/pycortex
988dc996a33f16208537a2e8ffe14e2ae3ea6647
[ "BSD-2-Clause" ]
null
null
null
import os import shlex import shutil import tempfile import subprocess as sp import numpy as np from . import utils from . import polyutils from .database import db from .xfm import Transform def curvature(outfile, subject, smooth=20, **kwargs): curvs = [] for pts, polys in db.get_surf(subject, "fiducial"): ...
37.596154
95
0.629156
7b01bb7810a6d5b34cb98a636cc9754bb4fe16be
13,395
py
Python
objectModel/Python/cdm/storage/syms.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/cdm/storage/syms.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/cdm/storage/syms.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from http import HTTPStatus from typing import List, Optional import json, urllib, urllib.parse import msal from cdm.utilities import StorageUtils from cdm.utili...
45.716724
363
0.637402
a90f8d43e063b429547c8b3840f578e7e5c9d694
5,306
py
Python
selfdrive/car/car_helpers.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
3
2019-06-29T08:32:58.000Z
2019-09-06T15:58:03.000Z
selfdrive/car/car_helpers.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
1
2019-09-22T06:44:10.000Z
2019-09-22T06:44:10.000Z
selfdrive/car/car_helpers.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
2
2020-03-18T02:56:23.000Z
2020-05-12T16:22:31.000Z
import os import zmq from cereal import car from common.params import Params from common.vin import get_vin, VIN_UNKNOWN from common.basedir import BASEDIR from common.fingerprints import eliminate_incompatible_cars, all_known_cars from selfdrive.swaglog import cloudlog import selfdrive.messaging as messaging def get...
35.851351
108
0.70392
ec973e264a484640ced2159055b29b420440c60e
424
py
Python
stdplugins/F.py
kaalhoonme/PepeBot
d1678f3c5e57adb8c9d2e1bc5a54568ad2938258
[ "Apache-2.0" ]
1
2020-08-12T21:36:58.000Z
2020-08-12T21:36:58.000Z
stdplugins/F.py
shn999/PepeBot
912b97dc89c4c7581cbaee337d4fcc05c98d79c0
[ "Apache-2.0" ]
null
null
null
stdplugins/F.py
shn999/PepeBot
912b97dc89c4c7581cbaee337d4fcc05c98d79c0
[ "Apache-2.0" ]
null
null
null
from telethon import events import asyncio import os import sys from uniborg import util @borg.on(util.admin_cmd(pattern="ft ?(.*)")) async def payf(event): paytext=event.pattern_match.group(1) pay = "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}".format(paytext*8, paytext*8, paytext*2, paytext*2, paytext*2,...
32.615385
197
0.669811
095a0b2b94c409a2f229227b446abcf01315978b
1,837
py
Python
tests/nlp/utils_test.py
sudharkj/unibrowser
7f3b407d3469ee2dffa72d3917af1e42100b71de
[ "Apache-2.0" ]
null
null
null
tests/nlp/utils_test.py
sudharkj/unibrowser
7f3b407d3469ee2dffa72d3917af1e42100b71de
[ "Apache-2.0" ]
null
null
null
tests/nlp/utils_test.py
sudharkj/unibrowser
7f3b407d3469ee2dffa72d3917af1e42100b71de
[ "Apache-2.0" ]
null
null
null
# system path import sys import os # unit testing import unittest # Sets the execution path sys.path.insert(0, os.path.realpath('./')) # internal modulesunit from nlp.utils import get_faq_data, get_lemmatize_dict, get_word_clusters, save_faq_slots class TestUtils(unittest.TestCase): """ Class containing all...
28.261538
113
0.597714
5e94b4b379acda1631cc214c340c6ace9dbf7633
14,715
py
Python
venv/Lib/site-packages/snowballstemmer/lithuanian_stemmer.py
ChristaPatton/django_cityloc_pkg_ChristaPatton
22986c062de627b64506732fc9b74374600f00fa
[ "MIT" ]
6
2022-01-04T02:51:33.000Z
2022-01-25T11:36:39.000Z
venv/Lib/site-packages/snowballstemmer/lithuanian_stemmer.py
ChristaPatton/django_cityloc_pkg_ChristaPatton
22986c062de627b64506732fc9b74374600f00fa
[ "MIT" ]
1
2022-01-13T23:27:10.000Z
2022-01-15T05:03:24.000Z
venv/Lib/site-packages/snowballstemmer/lithuanian_stemmer.py
ChristaPatton/django_cityloc_pkg_ChristaPatton
22986c062de627b64506732fc9b74374600f00fa
[ "MIT" ]
null
null
null
# Generated by Snowball 2.2.0 - https://snowballstem.org/ from .basestemmer import BaseStemmer from .among import Among class LithuanianStemmer(BaseStemmer): ''' This class implements the stemming algorithm defined by a snowball script. Generated by Snowball 2.2.0 - https://snowballstem.org/ ''' ...
31.308511
121
0.445668
31586b0e8440ac0fb7f47895645a135f6339d512
15,014
py
Python
data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import argparse import numpy as np import glob import re from log import print_to_file from scipy.fftpack import fftn, ifftn from skimage.feature import peak_local_max, canny from skimage.transform import hough_circle import pickle as pickle from paths import TRAIN_DATA_PATH, LOGS_PATH, PKL_TRAIN_DATA_PATH, PK...
39.719577
128
0.566405
203e47ffad8ccd032e218b753cb803f605a63148
1,346
py
Python
third_party/android_deps/libs/android_arch_lifecycle_viewmodel/3pp/fetch.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
third_party/android_deps/libs/android_arch_lifecycle_viewmodel/3pp/fetch.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
third_party/android_deps/libs/android_arch_lifecycle_viewmodel/3pp/fetch.py
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
#!/usr/bin/env python # Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This is generated, do not edit. Update BuildConfigGenerator.groovy and # 3ppFetch.template instead. from __future__ import print_fun...
23.614035
97
0.679049