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
8d58501cd2a4cf7d4be038ee750ddd345cd594fc
196
py
Python
src/main.py
C4theBomb/python-calendar-app
6776403f7f2440c6497d9a53be5e8d617a2ee817
[ "MIT" ]
null
null
null
src/main.py
C4theBomb/python-calendar-app
6776403f7f2440c6497d9a53be5e8d617a2ee817
[ "MIT" ]
null
null
null
src/main.py
C4theBomb/python-calendar-app
6776403f7f2440c6497d9a53be5e8d617a2ee817
[ "MIT" ]
null
null
null
from calendarApp import shell, models import os def main(): os.system("clear") calendar = models.Calendar("main") shell.main_screen(calendar) if __name__ == "__main__": main()
15.076923
38
0.673469
0
0
0
0
0
0
0
0
23
0.117347
8d5852ea5b1463bc9be5da885619fc756c5bd1fc
4,329
py
Python
personal/Ervin/Word2Vec_recommender.py
edervishaj/spotify-recsys-challenge
4077201ac7e4ed9da433bd10a92c183614182437
[ "Apache-2.0" ]
3
2018-10-12T20:19:57.000Z
2019-12-11T01:11:38.000Z
personal/Ervin/Word2Vec_recommender.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
null
null
null
personal/Ervin/Word2Vec_recommender.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
4
2018-10-27T20:30:18.000Z
2020-10-14T07:43:27.000Z
import time import numpy as np import scipy.sparse as sps from gensim.models import Word2Vec from tqdm import tqdm from recommenders.recommender import Recommender from utils.datareader import Datareader from utils.evaluator import Evaluator from utils.post_processing import eurm_to_recommendation_list from recommender...
37.973684
116
0.613075
3,392
0.783553
0
0
0
0
0
0
1,383
0.319473
8d58f2b0959a8386b4c708d7cc38bd2e9f103bb6
1,321
py
Python
pyesasky/__init__.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
13
2019-05-30T19:57:37.000Z
2021-09-10T09:43:49.000Z
pyesasky/__init__.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
21
2019-06-21T18:55:25.000Z
2022-02-27T14:48:13.000Z
pyesasky/__init__.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
8
2019-05-30T12:20:48.000Z
2022-03-04T04:01:20.000Z
from ._version import __version__ # noqa from .pyesasky import ESASkyWidget # noqa from .catalogue import Catalogue # noqa from .catalogueDescriptor import CatalogueDescriptor # noqa from .cooFrame import CooFrame # noqa from .footprintSet import FootprintSet # noqa from .footprintSetDescriptor import FootprintSetDesc...
33.025
65
0.711582
0
0
0
0
0
0
0
0
397
0.30053
8d5933b202fa0260d94c68bc7edbd14a32abb844
2,930
py
Python
visualize.py
jcamstan3370/MachineLearningPerovskites
d7bc433bac349bf53473dc6d636954cae996b8d2
[ "MIT" ]
6
2020-05-09T17:18:00.000Z
2021-09-22T09:37:40.000Z
visualize.py
jstanai/ml_perovskites
d7bc433bac349bf53473dc6d636954cae996b8d2
[ "MIT" ]
null
null
null
visualize.py
jstanai/ml_perovskites
d7bc433bac349bf53473dc6d636954cae996b8d2
[ "MIT" ]
1
2021-03-24T04:21:31.000Z
2021-03-24T04:21:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Jared """ import numpy as np import pandas as pd import myConfig import matplotlib.pyplot as plt from ast import literal_eval from plotter import getTrendPlot1 from matplotlib.pyplot import figure df = pd.read_csv(myConfig.extOutput) dffExt = pd.read_csv(my...
23.821138
72
0.531058
0
0
0
0
0
0
0
0
1,289
0.439932
8d5938563047da10af2e319b379482b6a7545552
237
py
Python
11-if-elif-else-condition.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
11-if-elif-else-condition.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
11-if-elif-else-condition.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
name = input("Enter your name? ") if name == "guna": print("1234567890") elif name == "david": print("0987654321") elif name == "rakulan": print("12345") elif name == "raj": print("1234455667") else: print("No contacts found")
13.941176
33
0.632911
0
0
0
0
0
0
0
0
108
0.455696
8d595677f62dbebf986ab917f4b41f5f89af2fea
13,409
py
Python
InstagramCrawler.py
Bagas8015/Instagram-Posts-Crawler-Users-v1
82d5da12f7f6caf8c085085135134f58affb1ec7
[ "MIT" ]
null
null
null
InstagramCrawler.py
Bagas8015/Instagram-Posts-Crawler-Users-v1
82d5da12f7f6caf8c085085135134f58affb1ec7
[ "MIT" ]
null
null
null
InstagramCrawler.py
Bagas8015/Instagram-Posts-Crawler-Users-v1
82d5da12f7f6caf8c085085135134f58affb1ec7
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import emoji import string import csv import os def getFileSize(nameFile): return os.stat(nameFile).st_size browser = webdriver.Chrome() def loginInstagram(url, username, password): browser.get(url) #Masu...
50.220974
205
0.548736
0
0
0
0
0
0
0
0
4,070
0.303527
8d596a354fbcf53937f22d7c7dc7a505553f0379
5,310
py
Python
pages/process.py
nchibana/dash-app-template
a51ad0ac92e719b2ef60739b6c1126aebb920d47
[ "MIT" ]
null
null
null
pages/process.py
nchibana/dash-app-template
a51ad0ac92e719b2ef60739b6c1126aebb920d47
[ "MIT" ]
4
2020-03-24T17:36:39.000Z
2021-08-23T20:13:16.000Z
pages/process.py
nchibana/dash-app-template
a51ad0ac92e719b2ef60739b6c1126aebb920d47
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.graph_objects as go import plotly.express as px import plotly.figure_factory as ff from sklearn.metrics import roc_curve import pandas as p...
50.09434
259
0.688512
0
0
0
0
0
0
0
0
4,287
0.807345
8d597279dcdef01055e59ebc350f3cf1d766f1a3
599
py
Python
tests/sdk/test_service.py
kusanagi/katana-sdk-python3
cd089409ec0d822f4d7bd6b4bebd527e003089ee
[ "MIT" ]
2
2017-03-21T20:02:47.000Z
2017-05-02T19:32:01.000Z
tests/sdk/test_service.py
kusanagi/katana-sdk-python3
cd089409ec0d822f4d7bd6b4bebd527e003089ee
[ "MIT" ]
19
2017-03-10T12:09:34.000Z
2018-06-01T18:10:06.000Z
tests/sdk/test_service.py
kusanagi/katana-sdk-python3
cd089409ec0d822f4d7bd6b4bebd527e003089ee
[ "MIT" ]
5
2017-03-10T11:40:50.000Z
2019-03-26T06:28:33.000Z
from katana.sdk.service import get_component from katana.sdk.service import Service def test_service_component(): # Check service component singleton creation assert get_component() is None service = Service() assert get_component() == service def action_callback(): pass assert servi...
27.227273
61
0.736227
0
0
0
0
0
0
0
0
73
0.12187
8d5b40af3f077c2c14c5035c4efe391b9a38cc70
527
py
Python
DesignPatterns/MVC/server/controllers/index.py
TigranGit/CodeBase
d58e30b1d83fab4b388ec2cdcb868fa751c62188
[ "Apache-2.0" ]
1
2020-08-13T19:09:27.000Z
2020-08-13T19:09:27.000Z
DesignPatterns/MVC/server/controllers/index.py
TigranGit/CodeBase
d58e30b1d83fab4b388ec2cdcb868fa751c62188
[ "Apache-2.0" ]
null
null
null
DesignPatterns/MVC/server/controllers/index.py
TigranGit/CodeBase
d58e30b1d83fab4b388ec2cdcb868fa751c62188
[ "Apache-2.0" ]
null
null
null
from .base_controller import BaseController from ..helper.utils import render_template from ..helper.constants import STATUS_OK class IndexController(BaseController): def __init__(self, client_address): self.user_ip = client_address[0] self.user_port = str(client_address[1]) self.title = "...
27.736842
47
0.654649
396
0.751423
0
0
0
0
0
0
18
0.034156
8d5bd4af92a66ece14d4931534ffa3416cb4b661
3,919
py
Python
plugins/tff_backend/bizz/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
42.597826
120
0.720082
0
0
0
0
863
0.220209
0
0
1,265
0.322786
8d5f94f57caf92571a35ef22a1aa7566e2df0d65
1,582
py
Python
tasks/tests/ui/conftest.py
MisterLenivec/django_simple_todo_app
8e694a67df43de7feaae785c0b3205534c701923
[ "MIT" ]
null
null
null
tasks/tests/ui/conftest.py
MisterLenivec/django_simple_todo_app
8e694a67df43de7feaae785c0b3205534c701923
[ "MIT" ]
4
2020-06-07T01:25:14.000Z
2021-06-10T18:34:10.000Z
tasks/tests/ui/conftest.py
MisterLenivec/django_simple_todo_app
8e694a67df43de7feaae785c0b3205534c701923
[ "MIT" ]
null
null
null
from django.conf import settings from selenium import webdriver from selenium.webdriver.chrome.options import Options import pytest import os @pytest.fixture(scope='session') def django_db_setup(): settings.DATABASES['default'] = { 'ENGINE': 'django.db.backends.postgresql', 'NAME': os.environ.get(...
27.275862
77
0.653603
0
0
605
0.382427
1,014
0.640961
0
0
468
0.295828
8d606a3efd5feb490b057183d05dc39513b2525a
3,519
py
Python
erp/migrations/0026_auto_20200205_0950.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
erp/migrations/0026_auto_20200205_0950.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
erp/migrations/0026_auto_20200205_0950.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
# Generated by Django 3.0.3 on 2020-02-05 08:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('erp', '0025_auto_20200205_0839'), ] operations = [ migrations.AddField( model_name='cheminement', name='aide_humaine...
59.644068
627
0.651321
3,477
0.97395
0
0
0
0
0
0
1,643
0.460224
8d60c377538ddae6447654f6c37f24bae517225c
3,629
py
Python
convert.py
Ellen7ions/bin2mem
51e3216cbf5e78547751968ef1619a925f2f55ef
[ "MIT" ]
3
2021-05-18T13:07:39.000Z
2021-05-24T12:46:43.000Z
convert.py
Ellen7ions/bin2mem
51e3216cbf5e78547751968ef1619a925f2f55ef
[ "MIT" ]
null
null
null
convert.py
Ellen7ions/bin2mem
51e3216cbf5e78547751968ef1619a925f2f55ef
[ "MIT" ]
null
null
null
import os, sys import json class Config: def __init__(self, config_path='./config.json'): super(Config, self).__init__() self.config_path = config_path self.bin2mem_path = None self.init_configs(json.load(open(config_path))) def init_configs(self, json_data): self.bin...
28.801587
92
0.590245
3,444
0.949022
0
0
148
0.040783
0
0
688
0.189584
8d61a4b35ddf035024fe7d951c745cb83a2a9d4d
3,161
py
Python
stats.py
DisinfoResearch/TwitterCollector
183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb
[ "MIT" ]
null
null
null
stats.py
DisinfoResearch/TwitterCollector
183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb
[ "MIT" ]
null
null
null
stats.py
DisinfoResearch/TwitterCollector
183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb
[ "MIT" ]
null
null
null
#!/bin/python3 # Copyright (C) 2021, Michigan State University. # # 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,...
45.157143
326
0.726669
0
0
0
0
0
0
0
0
1,898
0.600443
8d61d1b5d6b0de975b9d576cfadcd886cc44204a
10,970
py
Python
Scratch/lstm.py
imadtoubal/MultimodalDeepfakeDetection
46539e16c988ee9fdfb714893788bbbf72836595
[ "MIT" ]
2
2022-03-12T09:18:13.000Z
2022-03-23T08:29:10.000Z
Scratch/lstm.py
imadtoubal/MultimodalDeepfakeDetection
46539e16c988ee9fdfb714893788bbbf72836595
[ "MIT" ]
null
null
null
Scratch/lstm.py
imadtoubal/MultimodalDeepfakeDetection
46539e16c988ee9fdfb714893788bbbf72836595
[ "MIT" ]
null
null
null
import torch from torch import nn import torch.nn.functional as F import torch.optim as optim from preprocess import * from torch.utils.data import Dataset, DataLoader from blazeface import BlazeFace import os import cv2 import numpy as np from matplotlib import pyplot as plt import random import pickle ...
34.388715
116
0.591978
1,994
0.181768
0
0
0
0
0
0
2,369
0.215953
8d63217e5fdc8f7f711034a43dd2b7d398591281
18,373
py
Python
analysis/plot/python/plot_groups/estimator.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1,178
2020-09-10T17:15:42.000Z
2022-03-31T14:59:35.000Z
analysis/plot/python/plot_groups/estimator.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1
2020-05-22T05:22:35.000Z
2020-05-22T05:22:35.000Z
analysis/plot/python/plot_groups/estimator.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
107
2020-09-10T17:29:30.000Z
2022-03-18T09:00:14.000Z
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
46.047619
80
0.56828
17,057
0.928373
0
0
16,202
0.881837
0
0
6,807
0.370489
8d633804dd70bc9958af00b42a11e0de38e402fd
4,122
py
Python
scripts/old/modbus_server.py
SamKaiYang/ros_modbus_nex
b698cc73df65853866112f7501432a8509a2545c
[ "BSD-2-Clause" ]
null
null
null
scripts/old/modbus_server.py
SamKaiYang/ros_modbus_nex
b698cc73df65853866112f7501432a8509a2545c
[ "BSD-2-Clause" ]
null
null
null
scripts/old/modbus_server.py
SamKaiYang/ros_modbus_nex
b698cc73df65853866112f7501432a8509a2545c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ########################################################################### # This software is graciously provided by HumaRobotics # under the Simplified BSD License on # github: git@www.humarobotics.com:baxter_tasker # HumaRobotics is a trademark of Generation Robots. # www.humarobotics.com #...
40.411765
125
0.694081
0
0
0
0
0
0
0
0
2,916
0.707424
8d638991d71730377e930b6afff8fce13cde7b4a
4,453
py
Python
siptrackdlib/objectregistry.py
sii/siptrackd
f124f750c5c826156c31ae8699e90ff95a964a02
[ "Apache-2.0" ]
null
null
null
siptrackdlib/objectregistry.py
sii/siptrackd
f124f750c5c826156c31ae8699e90ff95a964a02
[ "Apache-2.0" ]
14
2016-03-18T13:28:16.000Z
2019-06-02T21:11:29.000Z
siptrackdlib/objectregistry.py
sii/siptrackd
f124f750c5c826156c31ae8699e90ff95a964a02
[ "Apache-2.0" ]
7
2016-03-18T13:04:54.000Z
2021-06-22T10:39:04.000Z
from siptrackdlib import errors from siptrackdlib import log class ObjectClass(object): """A class definition in the object registry. Stores a reference to the class itself and also a list of valid child classes (class_ids). """ def __init__(self, class_reference): self.class_reference = c...
37.108333
88
0.650348
4,352
0.977319
0
0
0
0
0
0
1,604
0.360207
8d66576529e5704ad9e6b2d90cc87687907b8c91
1,139
py
Python
src/kol/request/CombatRequest.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
1
2016-05-08T13:26:56.000Z
2016-05-08T13:26:56.000Z
src/kol/request/CombatRequest.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
src/kol/request/CombatRequest.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
from GenericAdventuringRequest import GenericAdventuringRequest class CombatRequest(GenericAdventuringRequest): """ A request used for a single round of combat. The user may attack, use an item or skill, or attempt to run away. """ # What follows are a list of available actions. ATTACK = 0 USE_ITEM = 1 USE_S...
32.542857
92
0.72432
1,073
0.942054
0
0
0
0
0
0
561
0.492537
8d683b8c02d8d22cc3724afc4a6f8b486b4fd023
325
py
Python
OLD.dir/myclient1.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
OLD.dir/myclient1.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
OLD.dir/myclient1.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
''' myclient1.py - imports mymod.py and check its operation. ''' from mymod import test, countChars, countChars1, countLines, countLines1 text = 'test.txt' file = open(text) print(test(text), test(file)) print(countChars(text), countChars1(file)) print(countLines(text), countLines1(file)) print('\nedited again versio...
23.214286
72
0.744615
0
0
0
0
0
0
0
0
98
0.301538
8d6a85cb3cf62644daa8bec049af6d5de6f147e2
632
py
Python
src/modules/dates/searchDates.py
leonardoleyva/api-agenda-uas
697740a0a3feebb2ada01133db020fcf5127e1de
[ "MIT" ]
1
2022-03-13T02:28:29.000Z
2022-03-13T02:28:29.000Z
src/modules/dates/searchDates.py
leonardoleyva/api-agenda-uas
697740a0a3feebb2ada01133db020fcf5127e1de
[ "MIT" ]
null
null
null
src/modules/dates/searchDates.py
leonardoleyva/api-agenda-uas
697740a0a3feebb2ada01133db020fcf5127e1de
[ "MIT" ]
null
null
null
from .date import Date from ..response import handleResponse from datetime import datetime def searchDates(): req = Date().searchAll() message = "Listado de citas" if req['status'] == True else "No se pudo conseguir el listado de citas, inténtelo más tarde" dateToday = datetime.now().isoformat().split('...
27.478261
126
0.643987
0
0
0
0
0
0
0
0
122
0.192429
8d6c38dd172b4fa935c4b931081b7a40d9bc40a8
6,045
py
Python
Spark/spark_media_localidad.py
Dielam/Dielam.github.io
19f01d693ef2c590f3ac35a3a143ae3dedf8594e
[ "MIT" ]
null
null
null
Spark/spark_media_localidad.py
Dielam/Dielam.github.io
19f01d693ef2c590f3ac35a3a143ae3dedf8594e
[ "MIT" ]
null
null
null
Spark/spark_media_localidad.py
Dielam/Dielam.github.io
19f01d693ef2c590f3ac35a3a143ae3dedf8594e
[ "MIT" ]
1
2020-12-23T16:45:20.000Z
2020-12-23T16:45:20.000Z
#!/usr/bin/python import sys from pyspark import SparkContext from shutil import rmtree import os.path as path def generar(line): array = [] array.append(line[0]) array.append(line[1]) aux = line[2] ini = 2 fin = 18 if aux != "I" and aux != "D" and aux != "N": aux = line[3] ...
45.451128
235
0.643176
0
0
0
0
0
0
0
0
636
0.105211
8d6cc5852312640c236532b7026c1ac08efbc30f
13,148
py
Python
core/views/misc.py
ditttu/gymkhana-Nominations
2a0e993c1b8362c456a9369b0b549d1c809a21df
[ "MIT" ]
3
2018-02-27T13:48:28.000Z
2018-03-03T21:57:50.000Z
core/views/misc.py
ditttu/gymkhana-Nominations
2a0e993c1b8362c456a9369b0b549d1c809a21df
[ "MIT" ]
6
2020-02-12T00:07:46.000Z
2022-03-11T23:25:59.000Z
core/views/misc.py
ditttu/gymkhana-Nominations
2a0e993c1b8362c456a9369b0b549d1c809a21df
[ "MIT" ]
1
2019-03-26T20:19:57.000Z
2019-03-26T20:19:57.000Z
from django.contrib.auth.decorators import login_required from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse, reverse_lazy from django.http import HttpResponseRedirect from django.shortcuts import render,HttpResponse from django.views.generic.edit import CreateView, Updat...
34.783069
179
0.6601
402
0.030575
0
0
10,435
0.793657
0
0
2,098
0.159568
8d6deeb2db5e44e12af11dde00260d1e8aae607e
29,706
py
Python
make_paper_plots.py
mjbasso/asymptotic_formulae_examples
a1ba177426bf82e2a58e7b54e1874b088a86595f
[ "MIT" ]
1
2021-08-06T14:58:51.000Z
2021-08-06T14:58:51.000Z
make_paper_plots.py
mjbasso/asymptotic_formulae_examples
a1ba177426bf82e2a58e7b54e1874b088a86595f
[ "MIT" ]
null
null
null
make_paper_plots.py
mjbasso/asymptotic_formulae_examples
a1ba177426bf82e2a58e7b54e1874b088a86595f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import os import pickle import time from os.path import join as pjoin import matplotlib.pyplot as plt import numpy as np import scipy from matplotlib import rc from scipy.optimize import least_squares import asymptotic_formulae from asymptotic_formulae import GaussZ0 from asympto...
46.85489
272
0.523564
0
0
0
0
0
0
0
0
7,290
0.245405
8d6e5ae82deb7b5311529c66cb9a669824faeec2
2,645
py
Python
tests/test_compliance.py
simongarisch/pytrade
6245c0a47017a880299fa7704a49580f394fa87b
[ "MIT" ]
2
2020-10-19T02:44:57.000Z
2021-11-08T10:45:25.000Z
tests/test_compliance.py
simongarisch/pytrade
6245c0a47017a880299fa7704a49580f394fa87b
[ "MIT" ]
1
2020-12-24T02:59:58.000Z
2020-12-24T02:59:58.000Z
tests/test_compliance.py
simongarisch/pytrade
6245c0a47017a880299fa7704a49580f394fa87b
[ "MIT" ]
null
null
null
import pytest from pxtrade.assets import reset, Stock, Portfolio from pxtrade.compliance import ( Compliance, UnitLimit, WeightLimit, ) class TestCompliance(object): def setup_method(self, *args): reset() stock1 = self.stock1 = Stock("BBB US", 2.00, currency_code="USD") stock2 ...
32.654321
73
0.625331
2,494
0.942911
0
0
0
0
0
0
329
0.124386
8d7113f4a3fa2caf2cf878a899bd18ce82a24a1b
103
py
Python
article/serializers/__init__.py
mentix02/medialist-backend
397b1a382b12bab273360dadb0b3c32de43747cd
[ "MIT" ]
1
2019-11-22T19:29:39.000Z
2019-11-22T19:29:39.000Z
article/serializers/__init__.py
mentix02/medialist-backend
397b1a382b12bab273360dadb0b3c32de43747cd
[ "MIT" ]
1
2019-11-25T09:50:07.000Z
2021-07-15T07:05:28.000Z
article/serializers/__init__.py
mentix02/medialist-backend
397b1a382b12bab273360dadb0b3c32de43747cd
[ "MIT" ]
null
null
null
from article.serializers.serializers import ( ArticleListSerializer, ArticleDetailSerializer )
20.6
45
0.805825
0
0
0
0
0
0
0
0
0
0
8d73a34deeb4110e24d2f659a64dcdc60d79219a
1,447
py
Python
delong_functions/initialization.py
braddelong/22-jupyter-ps01
95e8714e1723fb8328380a5d14aafabe2ee0795a
[ "MIT" ]
null
null
null
delong_functions/initialization.py
braddelong/22-jupyter-ps01
95e8714e1723fb8328380a5d14aafabe2ee0795a
[ "MIT" ]
null
null
null
delong_functions/initialization.py
braddelong/22-jupyter-ps01
95e8714e1723fb8328380a5d14aafabe2ee0795a
[ "MIT" ]
null
null
null
# set up the environment by reading in libraries: # os... graphics... data manipulation... time... math... statistics... import sys import os from urllib.request import urlretrieve import matplotlib as mpl import matplotlib.pyplot as plt import PIL as pil from IPython.display import Image import pandas as pd from p...
32.155556
106
0.724948
0
0
0
0
0
0
0
0
517
0.357291
8d74d9562cd8858adb9b65b43c92263f531590a9
608
py
Python
sdk/bento/graph/value.py
bentobox-dev/bento-box
3e10c62f586c1251529e059b6af515d4d03c60e9
[ "MIT" ]
1
2021-01-02T02:50:15.000Z
2021-01-02T02:50:15.000Z
sdk/bento/graph/value.py
joeltio/bento-box
3e10c62f586c1251529e059b6af515d4d03c60e9
[ "MIT" ]
48
2020-10-21T07:42:30.000Z
2021-02-15T19:34:55.000Z
sdk/bento/graph/value.py
joeltio/bento-box
3e10c62f586c1251529e059b6af515d4d03c60e9
[ "MIT" ]
null
null
null
# # Bentobox # SDK - Graph # Graph Value # from typing import Any from bento.value import wrap from bento.protos.graph_pb2 import Node def wrap_const(val: Any): """Wrap the given native value as a Constant graph node. If val is a Constant node, returns value as is. Args: val: Native value to wrap...
25.333333
68
0.677632
0
0
0
0
0
0
0
0
339
0.557566
8d76f8f9957c274ab98fcb861cac123b90567879
771
py
Python
app/validators/user_validator.py
allanzi/truck-challenge
7734a011de899184b673e99fd1c2ff92a6af65b9
[ "CECILL-B" ]
null
null
null
app/validators/user_validator.py
allanzi/truck-challenge
7734a011de899184b673e99fd1c2ff92a6af65b9
[ "CECILL-B" ]
null
null
null
app/validators/user_validator.py
allanzi/truck-challenge
7734a011de899184b673e99fd1c2ff92a6af65b9
[ "CECILL-B" ]
null
null
null
from marshmallow import Schema, fields from marshmallow.validate import Length, Range class UserCreateValidator(Schema): name = fields.Str(required=True, validate=Length(max=60)) age = fields.Integer(required=True, validate=Range(min=18, max=100)) driver_license_type = fields.Str(required=True, validate=Le...
42.833333
75
0.743191
682
0.884565
0
0
0
0
0
0
0
0
8d783ab1b46b55a24509d554110a68bdbb340935
11,660
py
Python
montecarlo/mcpy/monte_carlo.py
v-asatha/EconML
eb9ac829e93abbc8a163ab09d905b40370b21b1a
[ "MIT" ]
null
null
null
montecarlo/mcpy/monte_carlo.py
v-asatha/EconML
eb9ac829e93abbc8a163ab09d905b40370b21b1a
[ "MIT" ]
null
null
null
montecarlo/mcpy/monte_carlo.py
v-asatha/EconML
eb9ac829e93abbc8a163ab09d905b40370b21b1a
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import sys import numpy as np from joblib import Parallel, delayed import joblib import argparse import importlib from itertools import product import collections from copy import deepcopy from mcpy.utils import fi...
48.786611
154
0.660806
9,828
0.842882
0
0
0
0
0
0
5,962
0.511321
8d7ad5ef06de97e8b617443c00cdb60123831b97
5,845
py
Python
MusicGame.py
kfparri/MusicGame
f2914cae7a68585ca1a569c78ac13f68c1adb827
[ "MIT" ]
null
null
null
MusicGame.py
kfparri/MusicGame
f2914cae7a68585ca1a569c78ac13f68c1adb827
[ "MIT" ]
null
null
null
MusicGame.py
kfparri/MusicGame
f2914cae7a68585ca1a569c78ac13f68c1adb827
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------------------------------ # File Name: MusicGame.py # Author: Kyle Parrish # Date: 7/4/2014 # Description: This is a simple program that I wrote for the raspberry pi so that my daughter can # play with. It is a simple pro...
34.791667
134
0.609239
0
0
0
0
0
0
0
0
3,129
0.535329
8d7d0cccfbda47460eb1aeba6470425e3ed12174
243
py
Python
tests/utils/img_processing_utils_test.py
venkatakolagotla/robin
4497bf8ffcd03182f68f9a6d7c806bfdaa4791cb
[ "MIT" ]
4
2019-12-20T05:37:51.000Z
2020-03-18T16:32:59.000Z
tests/utils/img_processing_utils_test.py
venkatakolagotla/robin
4497bf8ffcd03182f68f9a6d7c806bfdaa4791cb
[ "MIT" ]
null
null
null
tests/utils/img_processing_utils_test.py
venkatakolagotla/robin
4497bf8ffcd03182f68f9a6d7c806bfdaa4791cb
[ "MIT" ]
null
null
null
from __future__ import print_function from robin.utils import img_processing_utils import numpy as np def test_normalize_gt(in_img_array): out_img = img_processing_utils.normalize_gt(in_img_array) assert type(out_img) == np.ndarray
24.3
61
0.814815
0
0
0
0
0
0
0
0
0
0
8d7e6b625734d32d6eb3ec106401a004caa7962c
5,763
py
Python
DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
#4) 신경망 구현하기 ##########KEYWORD############### ################################ #신경망은 입력층에서 출력층으로 기본적으로 한 방향으로 흐른다. 한 싸이클이 끝나면 역전파 알고리즘을 통해 #계속 학습으 진행하지만 역전파 알고리즘과 같은 고급 알고리즘은 다음장에서.. #한 방향으로만 정보가 전방으로 전달되는 신경망을 피드포워드 신경망(Feed Forward NN)이라고 한다. #기본적으로 신경망은 입력층에서 데이터 입력을 받은 뒤 은닉층에서 데이터를 학습하고 출력층으로 결과를 내보낸다. #입력...
36.707006
120
0.640986
0
0
0
0
0
0
0
0
9,944
0.891599
8d7eb5aaefc17250eb9787e23ab1f5200d2d65f8
466
py
Python
label_gen.py
avasid/gaze_detection
dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5
[ "MIT" ]
1
2020-02-07T21:34:10.000Z
2020-02-07T21:34:10.000Z
label_gen.py
avasid/gaze_detection
dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5
[ "MIT" ]
8
2020-11-13T18:37:12.000Z
2022-03-12T00:14:04.000Z
label_gen.py
avasid/gaze_detection
dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5
[ "MIT" ]
null
null
null
import os import pandas as pd dictt = {} i = 0 for label in ['down', 'up', 'left', 'right']: img_lst = os.listdir("./data/img_data/" + label + "/") temp_label = [0] * 4 temp_label[i] = 1 for img in img_lst: print(label + " " + img) dictt[img] = temp_label i += 1 label_df = pd.Dat...
23.3
86
0.592275
0
0
0
0
0
0
0
0
93
0.199571
8d7fb31d8d0c397a081d7685e96fa1bf8414f9a6
2,398
py
Python
rubik_race/rubiks_race/solver_test.py
ZengLawrence/rubiks_race
3d78484f0a68c7e483953cea68130f1edde2739a
[ "MIT" ]
null
null
null
rubik_race/rubiks_race/solver_test.py
ZengLawrence/rubiks_race
3d78484f0a68c7e483953cea68130f1edde2739a
[ "MIT" ]
null
null
null
rubik_race/rubiks_race/solver_test.py
ZengLawrence/rubiks_race
3d78484f0a68c7e483953cea68130f1edde2739a
[ "MIT" ]
null
null
null
''' Created on Jun 27, 2017 @author: lawrencezeng ''' import unittest from rubiks_race import solver class Test(unittest.TestCase): def setUp(self): self.initial_position = [ ['g', 'g', 'y', 'r', 'r' ], ['w', 'g', 'w', 'w', 'y' ], ['g', 'o', ' '...
31.142857
96
0.27648
2,183
0.910342
0
0
0
0
0
0
464
0.193495
8d80488b5bce65f6332a7212b2c16986023812ef
1,625
py
Python
wagtail_translation/migrations/0001_initial.py
patroqueeet/wagtail2-translation
6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74
[ "MIT" ]
null
null
null
wagtail_translation/migrations/0001_initial.py
patroqueeet/wagtail2-translation
6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74
[ "MIT" ]
null
null
null
wagtail_translation/migrations/0001_initial.py
patroqueeet/wagtail2-translation
6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74
[ "MIT" ]
1
2021-01-08T19:25:46.000Z
2021-01-08T19:25:46.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from modeltranslation import settings as mt_settings from modeltranslation.utils import build_localized_fieldname, get_translation_fields from django.db import migrations, models def url_path_fix(apps, schema_editor): # cannot use apps.get_model her...
37.790698
84
0.715692
878
0.540308
0
0
0
0
0
0
659
0.405538
8d8293dd05c195d7acdf3af64d74eb27c71ed3fc
99,195
py
Python
WORC/WORC.py
MStarmans91/WORC
b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7
[ "ECL-2.0", "Apache-2.0" ]
47
2018-01-28T14:08:15.000Z
2022-03-24T16:10:07.000Z
WORC/WORC.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
13
2018-08-28T13:32:57.000Z
2020-10-26T16:35:59.000Z
WORC/WORC.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
16
2017-11-13T10:53:36.000Z
2022-03-18T17:02:04.000Z
#!/usr/bin/env python # Copyright 2016-2021 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
53.822572
228
0.559897
97,869
0.986632
0
0
0
0
0
0
33,134
0.334029
8d832e77f438b0dd65c0dff2da0ca039538bc5cd
2,019
py
Python
utils/tweets_to_txt.py
magsol/datascibun
bb118eac59dc238c42f659871e25619d994f8575
[ "Apache-2.0" ]
null
null
null
utils/tweets_to_txt.py
magsol/datascibun
bb118eac59dc238c42f659871e25619d994f8575
[ "Apache-2.0" ]
null
null
null
utils/tweets_to_txt.py
magsol/datascibun
bb118eac59dc238c42f659871e25619d994f8575
[ "Apache-2.0" ]
1
2022-03-01T01:45:47.000Z
2022-03-01T01:45:47.000Z
import argparse import json import re def remove_urls(tweet): return re.sub(r"http\S+", "", tweet) def fix_amp(tweet): return tweet.replace("&", "&") def remove_hashtags(tweet): return re.sub(r"#\w+\s*", "", tweet) def remove_mentions(tweet): return re.sub(r"@\w+\s*", "", tweet) def remove_rt(t...
27.657534
91
0.574542
0
0
0
0
0
0
0
0
605
0.299653
8d85dffad6d22403418ce3ef5e06280cc317b3e4
528
py
Python
truechat/chat/migrations/0007_auto_20191026_2020.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
1
2019-12-19T19:04:33.000Z
2019-12-19T19:04:33.000Z
truechat/chat/migrations/0007_auto_20191026_2020.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
6
2020-06-05T23:42:41.000Z
2022-02-10T13:32:59.000Z
truechat/chat/migrations/0007_auto_20191026_2020.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-26 20:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('chat', '0006_auto_20191022_1218'), ] operations = [ migrations.RemoveField( model_name='membership', name='is_admin'...
22.956522
81
0.587121
444
0.826816
0
0
0
0
0
0
145
0.270019
8d86a97241dd9580e12d59014523e0d42f09b38e
354
py
Python
libs/baseclass/about_screen.py
wildscsi/ecopos
9922bb5160227777401eb33fa9a01cfba5730781
[ "MIT" ]
null
null
null
libs/baseclass/about_screen.py
wildscsi/ecopos
9922bb5160227777401eb33fa9a01cfba5730781
[ "MIT" ]
1
2021-11-04T20:43:03.000Z
2021-11-04T20:43:03.000Z
libs/baseclass/about_screen.py
wildscsi/ecopos
9922bb5160227777401eb33fa9a01cfba5730781
[ "MIT" ]
1
2021-11-04T19:43:53.000Z
2021-11-04T19:43:53.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2020 CPV.BY # # For suggestions and questions: # <7664330@gmail.com> # # LICENSE: Commercial import webbrowser from kivymd.theming import ThemableBehavior from kivymd.uix.screen import MDScreen class AboutScreen(ThemableBehavior, MDScreen): def open_url(self, instance, u...
19.666667
46
0.728814
114
0.322034
0
0
0
0
0
0
127
0.358757
8d86c9a6526d8d524710fa780972b087a3f46ac3
7,715
py
Python
causal_rl/environments/multi_typed.py
vluzko/causal_rl
92ee221bdf1932fa83955441baabb5e28b78ab9d
[ "MIT" ]
2
2021-04-02T12:06:13.000Z
2022-02-09T06:57:26.000Z
causal_rl/environments/multi_typed.py
vluzko/causal_rl
92ee221bdf1932fa83955441baabb5e28b78ab9d
[ "MIT" ]
11
2020-12-28T14:51:31.000Z
2021-03-29T19:53:24.000Z
causal_rl/environments/multi_typed.py
vluzko/causal_rl
92ee221bdf1932fa83955441baabb5e28b78ab9d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from gym import Env from scipy.spatial import distance from typing import Optional, Tuple, Any from causal_rl.environments import CausalEnv class MultiTyped(CausalEnv): """A simulation of balls bouncing with gravity and elastic collisio...
36.738095
106
0.568762
7,491
0.970966
0
0
123
0.015943
0
0
1,027
0.133117
8d86e19a0f7bf48d0eb61da351363ace81caa8fc
353
py
Python
greetings.py
ucsd-cse-spis-2016/spis16-lecture-0815
24e0a8ea9726f969eb357db33eb2925aabd25e43
[ "MIT" ]
null
null
null
greetings.py
ucsd-cse-spis-2016/spis16-lecture-0815
24e0a8ea9726f969eb357db33eb2925aabd25e43
[ "MIT" ]
null
null
null
greetings.py
ucsd-cse-spis-2016/spis16-lecture-0815
24e0a8ea9726f969eb357db33eb2925aabd25e43
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/en") def hello(): return "Hello SPIS 2016!" @app.route("/cn") def ni_hao(): return "Ni Hao SPIS 2016!" @app.route("/es") def hola(): return "Hola SPIS 2016!" @app.route("/fa") def sobh_bx(): return "Sobh Bexair SPIS 2016!" if __name__ == "_...
16.045455
35
0.628895
0
0
0
0
248
0.70255
0
0
108
0.305949
8d88e96d4a71ca08ce8d66eee14e65dd7c02396c
3,189
py
Python
bin/makeReport.py
oxfordmmm/SARS-CoV2_workflows
a84cb0a7142684414b2f285dd27cc2ea287eecb9
[ "MIT" ]
null
null
null
bin/makeReport.py
oxfordmmm/SARS-CoV2_workflows
a84cb0a7142684414b2f285dd27cc2ea287eecb9
[ "MIT" ]
null
null
null
bin/makeReport.py
oxfordmmm/SARS-CoV2_workflows
a84cb0a7142684414b2f285dd27cc2ea287eecb9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd import sys import json from Bio import SeqIO sample_name=sys.argv[1] pango=pd.read_csv('pango.csv') nextclade=pd.read_csv('nextclade.tsv', sep='\t') aln2type=pd.read_csv('aln2type.csv') pango['sampleName']=sample_name nextclade['sampleName']=sample_name aln2type['sampleName...
35.831461
90
0.756977
0
0
0
0
0
0
0
0
1,276
0.400125
8d8a5d72d65e690dc4c82341ed975187662e4c48
1,484
py
Python
webhooks/statuscake/alerta_statuscake.py
frekel/alerta-contrib
d8f5c93a4ea735085b3689c2c852ecae94924d08
[ "MIT" ]
114
2015-02-05T00:22:16.000Z
2021-11-25T13:02:44.000Z
webhooks/statuscake/alerta_statuscake.py
NeilOrley/alerta-contrib
69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1
[ "MIT" ]
245
2016-01-09T22:29:09.000Z
2022-03-16T10:37:02.000Z
webhooks/statuscake/alerta_statuscake.py
NeilOrley/alerta-contrib
69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1
[ "MIT" ]
193
2015-01-30T21:22:49.000Z
2022-03-28T05:37:14.000Z
from alerta.models.alert import Alert from alerta.webhooks import WebhookBase from alerta.exceptions import RejectException import os import hashlib class StatusCakeWebhook(WebhookBase): def incoming(self, query_string, payload): alert_severity = os.environ.get('STATUSCAKE_DEFAULT_ALERT_SEVERITY', 'major'...
35.333333
85
0.624663
1,334
0.898316
0
0
0
0
0
0
349
0.235017
8d8b51eaca246cacfde939fcbc4a16b39dba720e
3,738
py
Python
ironic_discoverd/main.py
enovance/ironic-discoverd
d3df6178ca5c95943c93ff80723c86b7080bca0b
[ "Apache-2.0" ]
null
null
null
ironic_discoverd/main.py
enovance/ironic-discoverd
d3df6178ca5c95943c93ff80723c86b7080bca0b
[ "Apache-2.0" ]
null
null
null
ironic_discoverd/main.py
enovance/ironic-discoverd
d3df6178ca5c95943c93ff80723c86b7080bca0b
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
31.411765
75
0.688604
0
0
0
0
1,161
0.310594
0
0
1,303
0.348582
8d8c7b2102958e3a921b5b5a1f32ed6750cd5ff4
964
py
Python
config_translator.py
Charahiro-tan/Jurubot_Translator
d0d0db137f3ddfe06d7cd9457d22c418bdeff94c
[ "MIT" ]
1
2021-07-26T11:14:05.000Z
2021-07-26T11:14:05.000Z
config_translator.py
Charahiro-tan/Jurubot_Translator
d0d0db137f3ddfe06d7cd9457d22c418bdeff94c
[ "MIT" ]
null
null
null
config_translator.py
Charahiro-tan/Jurubot_Translator
d0d0db137f3ddfe06d7cd9457d22c418bdeff94c
[ "MIT" ]
null
null
null
################################################## # 翻訳の設定 # 変更した設定は次回起動時から適用されます ################################################## # []でくくってある項目は""でくくって,で区切ることでいくつも設定できます。 # 無視するユーザー ignore_user = ["Nightbot","Streamelements","Moobot"] # 翻訳する前に削除するワード。正規表現対応。 # URLや同じ言葉の繰り返しなどはデフォルトで削除してますので足りなかったら追加してください。 del_wor...
22.418605
61
0.692946
0
0
0
0
0
0
0
0
1,437
0.879437
8d8cd77924dc533eeabb54595050045f0fb725d3
1,489
py
Python
wxcloudrun/dao.py
lubupang/resume_flask1
1ea18e88c0b667e92710096f57973a77d19e8fc6
[ "MIT" ]
null
null
null
wxcloudrun/dao.py
lubupang/resume_flask1
1ea18e88c0b667e92710096f57973a77d19e8fc6
[ "MIT" ]
null
null
null
wxcloudrun/dao.py
lubupang/resume_flask1
1ea18e88c0b667e92710096f57973a77d19e8fc6
[ "MIT" ]
null
null
null
import logging from sqlalchemy.exc import OperationalError from wxcloudrun import db from wxcloudrun.model import Counters # 初始化日志 logger = logging.getLogger('log') logger.info("aaaaaaa") def query_counterbyid(id): """ 根据ID查询Counter实体 :param id: Counter的ID :return: Counter实体 """ logger.info(...
22.560606
65
0.633983
0
0
0
0
0
0
0
0
486
0.31094
8d8db8eca4cacfeb8ce07aa8011f8a4b558400b4
7,411
py
Python
src/bpp/tests/tests_legacy/test_views/test_raporty.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/tests/tests_legacy/test_views/test_raporty.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/tests/tests_legacy/test_views/test_raporty.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import os import sys import uuid import pytest from django.apps import apps from django.contrib.auth.models import Group from django.core.files.base import ContentFile try: from django.core.urlresolvers import reverse except ImportError: from django.urls import reverse from django.db...
32.221739
95
0.643233
6,497
0.875135
0
0
0
0
0
0
1,100
0.148168
8d8dfcd12be52225c59666f19fa694cef189e9ea
1,373
py
Python
bot/utilities/api/helpers/score.py
AiratK/kaishnik-bot
c42351611a40a04d78c8ae481b97339adbd321e5
[ "MIT" ]
null
null
null
bot/utilities/api/helpers/score.py
AiratK/kaishnik-bot
c42351611a40a04d78c8ae481b97339adbd321e5
[ "MIT" ]
null
null
null
bot/utilities/api/helpers/score.py
AiratK/kaishnik-bot
c42351611a40a04d78c8ae481b97339adbd321e5
[ "MIT" ]
null
null
null
from typing import List from typing import Tuple from bot.utilities.api.constants import SCORE_TEMPLATE def beautify_score(raw_score_table_data: List[List[str]]) -> List[Tuple[str, str]]: # Slightly refining traditional assessment to be written starting with lower case letter for (subject_index, subject_score_data...
39.228571
116
0.780772
0
0
0
0
0
0
0
0
458
0.327377
8d8ebb77655b687ce95045239bb38a91c19a2901
1,192
py
Python
manager_app/serializers/carousel_serializers.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
manager_app/serializers/carousel_serializers.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
manager_app/serializers/carousel_serializers.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
# -*- coding: utf-8 -*- # @Time : 2021/4/6 下午9:21 # @Author : 司云中 # @File : carousel_serializers.py # @Software: Pycharm from rest_framework import serializers from Emall.exceptions import DataFormatError from shop_app.models.commodity_models import Carousel class ManagerCarouselSerializer(serializers.ModelSeriali...
27.090909
97
0.654362
979
0.778219
0
0
0
0
0
0
302
0.240064
8d9135e1864bf2b1336ddc05e72617edb4057d7b
7,312
py
Python
xfbin/structure/nud.py
SutandoTsukai181/xfbin_lib
8e2c56f354bfd868f9162f816cc528e6f830cdbc
[ "MIT" ]
3
2021-07-20T09:13:13.000Z
2021-09-06T18:08:15.000Z
xfbin/structure/nud.py
SutandoTsukai181/xfbin_lib
8e2c56f354bfd868f9162f816cc528e6f830cdbc
[ "MIT" ]
1
2021-09-06T18:07:48.000Z
2021-09-06T18:07:48.000Z
xfbin/structure/nud.py
SutandoTsukai181/xfbin_lib
8e2c56f354bfd868f9162f816cc528e6f830cdbc
[ "MIT" ]
null
null
null
from itertools import chain from typing import List, Tuple from .br.br_nud import * class Nud: name: str # chunk name mesh_groups: List['NudMeshGroup'] def init_data(self, name, br_nud: BrNud): self.name = name self.bounding_sphere = br_nud.boundingSphere self.mesh_groups = lis...
32.642857
117
0.607358
7,206
0.985503
0
0
0
0
0
0
132
0.018053
8d92051bcbbae105ab8b259c257c80d404e8f4eb
2,389
py
Python
src/attack_surface_pypy/__main__.py
ccrvs/attack_surface_pypy
f2bc9998cf42f4764f1c495e6243d970e01bd176
[ "CC0-1.0" ]
null
null
null
src/attack_surface_pypy/__main__.py
ccrvs/attack_surface_pypy
f2bc9998cf42f4764f1c495e6243d970e01bd176
[ "CC0-1.0" ]
null
null
null
src/attack_surface_pypy/__main__.py
ccrvs/attack_surface_pypy
f2bc9998cf42f4764f1c495e6243d970e01bd176
[ "CC0-1.0" ]
null
null
null
import argparse import gc import pathlib import sys import typing import uvicorn # type: ignore from attack_surface_pypy import __service_name__, __version__, asgi from attack_surface_pypy import logging as app_logging from attack_surface_pypy import settings # logger = structlog.get_logger() gc.disable() parser =...
29.493827
117
0.686061
0
0
0
0
0
0
0
0
594
0.24864
8d92eb64df1700c877aeea998c716029d6df8ce0
391
py
Python
subscriptions/migrations/0004_auto_20200630_1157.py
Naveendata-ux/tor_redesign
e4b5135f8b4134527ad04a097bdffd9d956d9858
[ "BSD-2-Clause" ]
null
null
null
subscriptions/migrations/0004_auto_20200630_1157.py
Naveendata-ux/tor_redesign
e4b5135f8b4134527ad04a097bdffd9d956d9858
[ "BSD-2-Clause" ]
null
null
null
subscriptions/migrations/0004_auto_20200630_1157.py
Naveendata-ux/tor_redesign
e4b5135f8b4134527ad04a097bdffd9d956d9858
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.5 on 2020-06-30 11:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('subscriptions', '0003_auto_20200630_1156'), ] operations = [ migrations.RenameField( model_name='subscriptionplan', old_name...
20.578947
53
0.613811
306
0.782609
0
0
0
0
0
0
133
0.340153
8d9365bf3bc3b96e70ffdbc229d46a96e3d6b3fd
545
py
Python
Random_Colored/main.py
usamaahsan93/mischief-managed
824022ecaeda46450ca1029bceb39f194c363138
[ "MIT" ]
null
null
null
Random_Colored/main.py
usamaahsan93/mischief-managed
824022ecaeda46450ca1029bceb39f194c363138
[ "MIT" ]
null
null
null
Random_Colored/main.py
usamaahsan93/mischief-managed
824022ecaeda46450ca1029bceb39f194c363138
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 2 16:54:10 2021 @author: sdn1 """ class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLI...
17.03125
83
0.552294
226
0.414679
0
0
0
0
0
0
215
0.394495
8d93c9fb2121a519402ceb1deef23ae520c7fdfe
1,717
py
Python
utils/event_store_rebuilder_for_segments.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
utils/event_store_rebuilder_for_segments.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
utils/event_store_rebuilder_for_segments.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
import datetime from pathlib import Path from typing import Optional, Tuple from .common import _IMAGE_SUFFIXES, _PERMITTED_EXTENSIONS, PathDetails, rebuild_event_store def parse_path(path: Path, tzinfo: datetime.tzinfo) -> Optional[PathDetails]: if path.suffix.lower() not in _PERMITTED_EXTENSIONS: retur...
28.616667
92
0.663366
0
0
0
0
0
0
0
0
191
0.111241
8d9464e17bd59a5730ae1d8d76d451408c780a27
4,049
py
Python
python/src/main/python/common/threadctl.py
esnet/netshell
4cb010b63e72610cf81112b29587d3e980612333
[ "BSD-3-Clause-LBNL" ]
6
2016-02-17T16:31:55.000Z
2021-03-16T20:17:41.000Z
python/src/main/python/common/threadctl.py
esnet/netshell
4cb010b63e72610cf81112b29587d3e980612333
[ "BSD-3-Clause-LBNL" ]
27
2016-04-11T19:49:04.000Z
2016-07-14T06:05:52.000Z
python/src/main/python/common/threadctl.py
esnet/netshell
4cb010b63e72610cf81112b29587d3e980612333
[ "BSD-3-Clause-LBNL" ]
1
2017-07-31T19:30:50.000Z
2017-07-31T19:30:50.000Z
# ESnet Network Operating System (ENOS) Copyright (c) 2015, The Regents # of the University of California, through Lawrence Berkeley National # Laboratory (subject to receipt of any required approvals from the # U.S. Dept. of Energy). All rights reserved. # # If you have questions about your rights to use or distribut...
29.772059
96
0.613732
0
0
0
0
0
0
0
0
1,306
0.322549
8d94db8d2bb9acc8dbec349c6766ca408545196a
599
py
Python
python/distance/HaversineDistanceInMiles.py
jigneshoo7/AlgoBook
8aecc9698447c0ee561a1c90d5c5ab87c4a07b79
[ "MIT" ]
191
2020-09-28T10:00:20.000Z
2022-03-06T14:36:55.000Z
python/distance/HaversineDistanceInMiles.py
jigneshoo7/AlgoBook
8aecc9698447c0ee561a1c90d5c5ab87c4a07b79
[ "MIT" ]
210
2020-09-28T10:06:36.000Z
2022-03-05T03:44:24.000Z
python/distance/HaversineDistanceInMiles.py
jigneshoo7/AlgoBook
8aecc9698447c0ee561a1c90d5c5ab87c4a07b79
[ "MIT" ]
320
2020-09-28T09:56:14.000Z
2022-02-12T16:45:57.000Z
import math def distanceInMilesOrKilos(milesOrKilos,originLat,originLon,destinationLat,destinationLon): radius = 3959 if milesOrKilos == "miles" else 6371 lat1 = originLat lat2 = destinationLat lon1 = originLon lon2 = destinationLon dlat = math.radians(lat2 - lat1) dlon = mat...
33.277778
153
0.651085
0
0
0
0
0
0
0
0
7
0.011686
8d95a5da0117840ab07b75457380a92375c5347d
8,837
py
Python
i2i/util.py
thorwhalen/i2i
f967aaba28793029e3fe643c5e17ae9bc7a77732
[ "Apache-2.0" ]
1
2019-08-29T01:35:12.000Z
2019-08-29T01:35:12.000Z
i2i/util.py
thorwhalen/i2i
f967aaba28793029e3fe643c5e17ae9bc7a77732
[ "Apache-2.0" ]
null
null
null
i2i/util.py
thorwhalen/i2i
f967aaba28793029e3fe643c5e17ae9bc7a77732
[ "Apache-2.0" ]
null
null
null
from __future__ import division import inspect import types from functools import wraps function_type = type(lambda x: x) # using this instead of callable() because classes are callable, for instance class NoDefault(object): def __repr__(self): return 'no_default' no_default = NoDefault() class imd...
34.928854
119
0.629965
411
0.046509
0
0
1,020
0.115424
0
0
4,598
0.520312
8d97b86230f6560f3cd37b723cba275b3f968cb2
1,635
py
Python
setup.py
robflintham/mippy
e642c697202acc5b96b42f62204786bf5e705c9a
[ "BSD-3-Clause" ]
null
null
null
setup.py
robflintham/mippy
e642c697202acc5b96b42f62204786bf5e705c9a
[ "BSD-3-Clause" ]
null
null
null
setup.py
robflintham/mippy
e642c697202acc5b96b42f62204786bf5e705c9a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) def get_version(): import mippy return mippy.__version__ def test_version(): version = get_version() import datetime import os # Get times...
29.727273
92
0.666055
0
0
0
0
0
0
0
0
499
0.305199
8d98eec2f752514e211b3f9e607274f2de78ffd9
3,543
py
Python
physprog/tests/test_sample_problem.py
partofthething/physprog
8bbeb8d84697469417577c76c924dcb3a855cd2d
[ "Apache-2.0" ]
3
2018-03-25T16:13:53.000Z
2021-06-29T14:30:20.000Z
physprog/tests/test_sample_problem.py
partofthething/physprog
8bbeb8d84697469417577c76c924dcb3a855cd2d
[ "Apache-2.0" ]
null
null
null
physprog/tests/test_sample_problem.py
partofthething/physprog
8bbeb8d84697469417577c76c924dcb3a855cd2d
[ "Apache-2.0" ]
2
2021-09-18T08:38:32.000Z
2022-03-01T07:43:52.000Z
"""Run a sample problem to test full system.""" # pylint: disable=invalid-name,missing-docstring import unittest from collections import namedtuple import math import os from physprog import classfunctions from physprog import optimize THIS_DIR = os.path.dirname(__file__) SAMPLE_INPUT = os.path.join(THIS_DIR, 'sam...
28.804878
80
0.582275
3,075
0.867909
0
0
609
0.171888
0
0
602
0.169913
8d99f51b98aee394d6e4b4f62dcc6cdca1b6db1f
10,131
py
Python
tutorials/seq2seq_sated/seq2seq_sated_meminf.py
rizwandel/ml_privacy_meter
5dc4c300eadccceadd0e664a7e46099f65728628
[ "MIT" ]
294
2020-04-13T18:32:45.000Z
2022-03-31T10:32:34.000Z
tutorials/seq2seq_sated/seq2seq_sated_meminf.py
kypomon/ml_privacy_meter
c0324e8f74cbd0cde0643a7854fa66eab47bbe53
[ "MIT" ]
26
2020-04-29T19:56:21.000Z
2022-03-31T10:42:24.000Z
tutorials/seq2seq_sated/seq2seq_sated_meminf.py
kypomon/ml_privacy_meter
c0324e8f74cbd0cde0643a7854fa66eab47bbe53
[ "MIT" ]
50
2020-04-16T02:16:24.000Z
2022-03-16T00:37:40.000Z
import os import sys from collections import defaultdict import tensorflow as tf import tensorflow.keras.backend as K import numpy as np import scipy.stats as ss import matplotlib.pyplot as plt from sklearn.metrics import roc_curve from sklearn.linear_model import LogisticRegression from utils import process_texts, ...
35.672535
113
0.660251
0
0
0
0
0
0
0
0
1,661
0.163952
8d9d264830cab7159205ed06b41898abec3b84f4
2,685
py
Python
app/recipe/tests/test_tags_api.py
MohamedAbdelmagid/django-recipe-api
229d3a7cff483b3cad76c70aefde6a51250b9bc8
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
MohamedAbdelmagid/django-recipe-api
229d3a7cff483b3cad76c70aefde6a51250b9bc8
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
MohamedAbdelmagid/django-recipe-api
229d3a7cff483b3cad76c70aefde6a51250b9bc8
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model from rest_framework.test import APIClient from rest_framework import status from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse("recipe:tag-list") class PublicTag...
32.349398
85
0.672998
2,376
0.884916
0
0
0
0
0
0
487
0.181378
8d9d7d5c7ee0f28e0c8877291fb904e2d8ace2db
5,736
py
Python
dtlpy/entities/annotation_definitions/cube_3d.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
10
2020-05-21T06:25:35.000Z
2022-01-07T20:34:03.000Z
dtlpy/entities/annotation_definitions/cube_3d.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
22
2019-11-17T17:25:16.000Z
2022-03-10T15:14:28.000Z
dtlpy/entities/annotation_definitions/cube_3d.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
8
2020-03-05T16:23:55.000Z
2021-12-27T11:10:42.000Z
import numpy as np # import open3d as o3d from . import BaseAnnotationDefinition # from scipy.spatial.transform import Rotation as R import logging logger = logging.getLogger(name=__name__) class Cube3d(BaseAnnotationDefinition): """ Cube annotation object """ type = "cube_3d" def __init__(s...
38.496644
135
0.544107
5,550
0.966226
0
0
944
0.164345
0
0
2,950
0.513579
8d9e1079bef17b6514de9131ede3ab7099ea53a4
3,702
py
Python
my_module/tools.py
roki18d/sphinx_autogen-apidoc
67ad9c716c909d89bcd813a5fa871df8850e4fd5
[ "Apache-2.0" ]
null
null
null
my_module/tools.py
roki18d/sphinx_autogen-apidoc
67ad9c716c909d89bcd813a5fa871df8850e4fd5
[ "Apache-2.0" ]
null
null
null
my_module/tools.py
roki18d/sphinx_autogen-apidoc
67ad9c716c909d89bcd813a5fa871df8850e4fd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from my_module.exceptions import InvalidArgumentsError class SimpleCalculator(object): """SimpleCalculator SimpleCalculator is a simple calculator. Attributes: operator (str): String that represents operation type. Acceptable va...
30.85
92
0.562939
2,973
0.803079
0
0
0
0
0
0
1,400
0.378174
8da38969800ff2540723920b2ba94670badb3561
12,114
py
Python
PCA_ResNet50.py
liuyingbin19222/HSI_svm_pca_resNet50
cd95d21c81e93f8b873183f10f52416f71a93d07
[ "Apache-2.0" ]
12
2020-03-13T02:39:53.000Z
2022-02-21T03:28:33.000Z
PCA_ResNet50.py
liuyingbin19222/HSI_svm_pca_resNet50
cd95d21c81e93f8b873183f10f52416f71a93d07
[ "Apache-2.0" ]
14
2020-02-17T12:31:08.000Z
2022-02-10T01:07:05.000Z
PCA_ResNet50.py
liuyingbin19222/HSI_svm_pca_resNet50
cd95d21c81e93f8b873183f10f52416f71a93d07
[ "Apache-2.0" ]
3
2020-09-06T08:19:15.000Z
2021-03-08T10:15:40.000Z
import keras from keras.layers import Conv2D, Conv3D, Flatten, Dense, Reshape, BatchNormalization from keras.layers import Dropout, Input from keras.models import Model from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint from keras.utils import np_utils from sklearn.decomposition impo...
34.123944
159
0.630097
0
0
0
0
0
0
0
0
3,773
0.288103
8da4e24daba79cfc5a237fbfd0bd61228b6bdc1d
754
py
Python
tests/test_data/utest/setup.py
gordonmessmer/pyp2rpm
60145ba6fa49ad5bb29eeffa5765e10ba8417f03
[ "MIT" ]
114
2015-07-13T12:38:27.000Z
2022-03-23T15:05:11.000Z
tests/test_data/utest/setup.py
gordonmessmer/pyp2rpm
60145ba6fa49ad5bb29eeffa5765e10ba8417f03
[ "MIT" ]
426
2015-07-13T12:09:38.000Z
2022-01-07T16:41:32.000Z
tests/test_data/utest/setup.py
Mattlk13/pyp2rpm
f9ced95877d88c96b77b2b8c510dc4ceaa10504a
[ "MIT" ]
51
2015-07-14T13:11:29.000Z
2022-03-31T07:27:32.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages requirements = ["pyp2rpm~=3.3.1"] setup( name="utest", version="0.1.0", description="Micro test module", license="GPLv2+", author="pyp2rpm Developers", author_email='bkabrda@redhat.com, rkuska@redhat.com, mcyprian@redhat.com, ...
30.16
99
0.66313
0
0
0
0
0
0
0
0
409
0.54244
8da621c7d046b3bbba97fe0075833d24a4276a49
4,235
py
Python
abstract_nas/train/preprocess.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
abstract_nas/train/preprocess.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
abstract_nas/train/preprocess.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
32.576923
79
0.633058
0
0
0
0
967
0.228335
0
0
2,067
0.488076
8da6f40241c238cd5d1aecce8bbe81273d1e484a
5,570
py
Python
Decission_Tree/mytree.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
4
2017-06-19T06:33:38.000Z
2019-01-31T12:07:12.000Z
Decission_Tree/mytree.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
null
null
null
Decission_Tree/mytree.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
1
2017-12-06T08:41:06.000Z
2017-12-06T08:41:06.000Z
from math import log from PIL import Image, ImageDraw from collections import Counter import numpy as np from pandas import DataFrame # my_data = [['slashdot', 'USA', 'yes', 18, 213.2, 'None'], # ['google', 'France', 'yes', 23, 121.2, 'Premium'], # ['digg', 'USA', 'yes', 24, 21.32, 'Basic'], # ...
31.828571
89
0.498025
264
0.047397
0
0
0
0
0
0
1,961
0.352065
8da70610f3402c8b44d3fbdf21a05f4f563b016b
488
py
Python
hidb/wrapper.py
sk-ip/hidb
1394000992c016607e7af15095f058cd9cce007b
[ "MIT" ]
null
null
null
hidb/wrapper.py
sk-ip/hidb
1394000992c016607e7af15095f058cd9cce007b
[ "MIT" ]
null
null
null
hidb/wrapper.py
sk-ip/hidb
1394000992c016607e7af15095f058cd9cce007b
[ "MIT" ]
null
null
null
from datetime import datetime class fileWrapper(object): def __init__(self): self.data = {} self.keys = set() # JSON data size 16KB in Bytes self.max_data_size = 16384 # Max database size 1GB in Bytes self.max_database_size = 1073741824 self.current_database...
24.4
53
0.622951
452
0.92623
0
0
0
0
0
0
62
0.127049
8da8f86888f2ee041a3f2312c9709ef180e420d0
4,504
py
Python
ion-channel-models/compare.py
sanmitraghosh/fickleheart-method-tutorials
d5ee910258a2656951201d4ada2a412804013bd5
[ "BSD-3-Clause" ]
null
null
null
ion-channel-models/compare.py
sanmitraghosh/fickleheart-method-tutorials
d5ee910258a2656951201d4ada2a412804013bd5
[ "BSD-3-Clause" ]
null
null
null
ion-channel-models/compare.py
sanmitraghosh/fickleheart-method-tutorials
d5ee910258a2656951201d4ada2a412804013bd5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import sys sys.path.append('./method') import os import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import model as m """ Run fit. """ predict_list = ['sinewave', 'staircase', 'activation', 'ap'] try: which_pred...
31.277778
78
0.690941
0
0
0
0
0
0
0
0
887
0.196936
8da906c8ad76ecde7a1bd94e5017709b02a7ce8e
7,752
py
Python
examples/services/classifier_service.py
bbbdragon/python-pype
f0618150cb4d2fae1f959127453fb6eca8db84e5
[ "MIT" ]
8
2019-07-12T03:28:10.000Z
2019-07-19T20:34:45.000Z
examples/services/classifier_service.py
bbbdragon/python-pype
f0618150cb4d2fae1f959127453fb6eca8db84e5
[ "MIT" ]
null
null
null
examples/services/classifier_service.py
bbbdragon/python-pype
f0618150cb4d2fae1f959127453fb6eca8db84e5
[ "MIT" ]
null
null
null
''' python3 classifier_service.py data.csv This service runs a scikit-learn classifier on data provided by the csv file data.csv. The idea of this is a simple spam detector. In the file, you will see a number, 1 or -1, followed by a pipe, followed by a piece of text. The text is designed to be a subject email, and...
36.739336
172
0.68434
0
0
0
0
2,754
0.355263
0
0
6,512
0.840041
8da9192128d87d058ba7b763d377c653bfe2eb10
2,657
py
Python
ida_plugin/uefi_analyser.py
fengjixuchui/UEFI_RETool
72c5d54c1dab9f58a48294196bca5ce957f6fb24
[ "MIT" ]
240
2019-03-12T21:28:06.000Z
2021-02-09T16:20:09.000Z
ida_plugin/uefi_analyser.py
fengjixuchui/UEFI_RETool
72c5d54c1dab9f58a48294196bca5ce957f6fb24
[ "MIT" ]
10
2019-09-09T08:38:35.000Z
2020-11-30T15:19:30.000Z
ida_plugin/uefi_analyser.py
fengjixuchui/UEFI_RETool
72c5d54c1dab9f58a48294196bca5ce957f6fb24
[ "MIT" ]
53
2019-03-16T06:54:18.000Z
2020-12-23T06:16:38.000Z
# SPDX-License-Identifier: MIT import os import idaapi import idautils from PyQt5 import QtWidgets from uefi_analyser import dep_browser, dep_graph, prot_explorer, ui AUTHOR = "yeggor" VERSION = "1.2.0" NAME = "UEFI_RETool" WANTED_HOTKEY = "Ctrl+Alt+U" HELP = "This plugin performs automatic analysis of the input UE...
26.04902
73
0.616861
2,128
0.800903
0
0
215
0.080918
0
0
532
0.200226
8da9e0178f00d72e18dd60857fa82ec6eecb27f0
10,063
py
Python
examples/exchange_demag/test_exchange_demag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
10
2018-03-24T07:43:17.000Z
2022-03-26T10:42:27.000Z
examples/exchange_demag/test_exchange_demag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
21
2018-03-26T15:08:53.000Z
2021-07-10T16:11:14.000Z
examples/exchange_demag/test_exchange_demag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
7
2018-04-09T11:50:48.000Z
2021-06-10T09:23:25.000Z
import os import logging import matplotlib matplotlib.use('Agg') import pylab as p import numpy as np import dolfin as df from finmag import Simulation as Sim from finmag.energies import Exchange, Demag from finmag.util.meshes import from_geofile, mesh_volume import pytest logger = logging.getLogger(name='finmag') M...
37.408922
114
0.644241
0
0
0
0
7,910
0.786048
0
0
3,248
0.322767
8daa3414a09b9f3c7c95225a1a7fdf929b8d3dfe
440
py
Python
BPt/default/options/samplers.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2019-09-25T23:23:49.000Z
2019-09-25T23:23:49.000Z
BPt/default/options/samplers.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2020-04-20T20:53:27.000Z
2020-04-20T20:53:27.000Z
BPt/default/options/samplers.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2019-06-21T14:44:40.000Z
2019-06-21T14:44:40.000Z
from ..helpers import get_obj_and_params, all_from_objects from ...extensions.samplers import OverSampler SAMPLERS = { 'oversample': (OverSampler, ['default']), } def get_sampler_and_params(obj_str, extra_params, params, **kwargs): obj, extra_obj_params, obj_params =\ get_obj_and_params(obj_str, SAM...
25.882353
68
0.756818
0
0
0
0
0
0
0
0
21
0.047727
a5c09a3f2e4a0708c742cfe5829c7e01efbe2a70
300
py
Python
ABC151-200/ABC192/abc192_c.py
billyio/atcoder
9d16765f91f28deeb7328fcc6c19541ee790941f
[ "MIT" ]
1
2021-02-01T08:48:07.000Z
2021-02-01T08:48:07.000Z
ABC151-200/ABC192/abc192_c.py
billyio/atcoder
9d16765f91f28deeb7328fcc6c19541ee790941f
[ "MIT" ]
null
null
null
ABC151-200/ABC192/abc192_c.py
billyio/atcoder
9d16765f91f28deeb7328fcc6c19541ee790941f
[ "MIT" ]
null
null
null
N, K = map(int, input().split()) ans = N for i in range(K): num_list = [int(n) for n in str(ans)] g1 = sorted(num_list, reverse=True) g1 = ''.join((str(g) for g in g1)) g2 = sorted(num_list, reverse=False) g2 = ''.join((str(g) for g in g2)) ans = int(g1) - int(g2) print(ans)
27.272727
41
0.566667
0
0
0
0
0
0
0
0
4
0.013333
a5c0fa60cac177d2865547e53143112bdfdc7111
1,008
py
Python
testing.py
madjabal/morphine
2c76b10a7276936042913d609ad773fbc08b0887
[ "MIT" ]
15
2017-03-11T18:25:04.000Z
2022-03-31T19:54:31.000Z
testing.py
madjabal/morphine
2c76b10a7276936042913d609ad773fbc08b0887
[ "MIT" ]
2
2018-10-17T15:08:36.000Z
2021-06-08T13:34:56.000Z
testing.py
madjabal/morphine
2c76b10a7276936042913d609ad773fbc08b0887
[ "MIT" ]
2
2018-07-25T15:15:54.000Z
2019-06-14T11:16:41.000Z
# Python modules import time from datetime import timedelta def consistency(func, args, expected, n=10**4): """Analyze and report on the consistency of a function.""" print('\n[CONSISTENCY TEST] {0}'.format(func.__doc__.format(*args))) def show(num, den, t, p, end='\r'): print('{3}|{4:.3f}: {0}/{...
30.545455
108
0.558532
0
0
0
0
0
0
0
0
201
0.199405
a5c112fb1800922ae32e15c8c2c3119937a66895
520
py
Python
misc/python/fibonacci.py
saranshbht/codes-and-more-codes
0bd2e46ca613b3b81e1196d393902e86a43aa353
[ "MIT" ]
null
null
null
misc/python/fibonacci.py
saranshbht/codes-and-more-codes
0bd2e46ca613b3b81e1196d393902e86a43aa353
[ "MIT" ]
null
null
null
misc/python/fibonacci.py
saranshbht/codes-and-more-codes
0bd2e46ca613b3b81e1196d393902e86a43aa353
[ "MIT" ]
null
null
null
from itertools import permutations from collections import Counter import time print(time.time()) s=["dgajkhdjkjfkl","ahfjkh","jfskoj","hfakljfio","fjfjir","jiosj","jiojf","jriosj","jiorjf","jhhhhaskgasjdfljjriof"] t=10 while t>0: S=s[10-t] c=dict(Counter(S)) Cperm=list(permutations(c.values())) flag= False for i...
18.571429
117
0.646154
0
0
0
0
0
0
0
0
117
0.225
a5c55462952f35e96e4d815b3891933e684d12b8
784
py
Python
rhasspy/speech.py
Wil-Peters/HomeAutomation
ab4f78d9fad42093435732233e99003f12dca5e7
[ "MIT" ]
2
2020-04-09T20:29:15.000Z
2021-01-20T09:21:02.000Z
rhasspy/speech.py
Wil-Peters/HomeAutomation
ab4f78d9fad42093435732233e99003f12dca5e7
[ "MIT" ]
null
null
null
rhasspy/speech.py
Wil-Peters/HomeAutomation
ab4f78d9fad42093435732233e99003f12dca5e7
[ "MIT" ]
null
null
null
import configparser import os from typing import ByteString import requests from core.speaker import Speaker from core.texttospeech import TextToSpeechGenerator class RhasspySpeech(Speaker, TextToSpeechGenerator): def __init__(self): Speaker.__init__(self) TextToSpeechGenerator.__init__(self) ...
29.037037
88
0.715561
617
0.78699
0
0
0
0
0
0
76
0.096939
a5c6922a61844f38e222e52aacc04701fb1c3022
4,953
py
Python
main.py
rodrigobercinimartins/export-import-por-mesorregiao-brasil
73b8126e593eec63ae29eb81a2967f566ec93bc9
[ "MIT" ]
1
2020-04-06T17:55:04.000Z
2020-04-06T17:55:04.000Z
main.py
rodrigobercini/export-import-por-mesorregiao-brasil
73b8126e593eec63ae29eb81a2967f566ec93bc9
[ "MIT" ]
null
null
null
main.py
rodrigobercini/export-import-por-mesorregiao-brasil
73b8126e593eec63ae29eb81a2967f566ec93bc9
[ "MIT" ]
null
null
null
import pandas as pd import os import ssl # I'm getting SSL certificates issues when downloading files from MDIC. # The code below is a hack to get around this issue. try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context =...
43.447368
173
0.657985
4,419
0.889672
0
0
0
0
0
0
1,249
0.25146
a5c927734733b551301c1522c13b6095afdcc07d
903
py
Python
backend/customers/migrations/0001_initial.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
backend/customers/migrations/0001_initial.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
backend/customers/migrations/0001_initial.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-02 01:11 from django.db import migrations, models import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ...
33.444444
127
0.604651
773
0.856035
0
0
0
0
0
0
119
0.131783
a5ca6ea7872c55e908f6afc4233961e95a90159a
1,366
py
Python
sendUAV/recevier.py
RobEn-AAST/AI-UAVC
732683fd5821d492b772cc5f966e86aed164a68c
[ "MIT" ]
16
2022-02-05T15:51:13.000Z
2022-02-05T17:38:54.000Z
sendUAV/recevier.py
RobEn-AAST/AI-UAVC
732683fd5821d492b772cc5f966e86aed164a68c
[ "MIT" ]
null
null
null
sendUAV/recevier.py
RobEn-AAST/AI-UAVC
732683fd5821d492b772cc5f966e86aed164a68c
[ "MIT" ]
null
null
null
from socket import socket, AF_INET, SOCK_STREAM, IPPROTO_TCP import struct import pickle class ServerSock(socket): def __init__(self, PORT): super().__init__(AF_INET, SOCK_STREAM, IPPROTO_TCP) self.bind(("", PORT)) self.listen() def getMessage(self): payload_size = str...
29.695652
82
0.51757
1,148
0.84041
0
0
0
0
0
0
78
0.057101
a5cabad6e15a3e94d18ccf5c8c5a2de2396af9ef
3,867
py
Python
graphdot/minipandas/dataframe.py
yhtang/GraphDot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
9
2020-02-14T18:07:39.000Z
2021-12-15T12:07:31.000Z
graphdot/minipandas/dataframe.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2020-03-19T19:07:26.000Z
2021-02-24T06:08:51.000Z
graphdot/minipandas/dataframe.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T06:11:18.000Z
2021-05-07T11:56:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import namedtuple import numpy as np import pandas as pd from .series import Series class DataFrame: def __init__(self, data=None): self._data = {} if isinstance(data, dict): for key, value in data.items(): ...
32.495798
79
0.573054
3,717
0.96121
1,473
0.380915
71
0.01836
0
0
577
0.149211
a5cb7a30978758aaea2edade994cdb342894093c
21,620
py
Python
pedal/questions/loader.py
acbart/python-analysis
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
14
2019-08-22T03:40:23.000Z
2022-03-13T00:30:53.000Z
pedal/questions/loader.py
pedal-edu/pedal
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
74
2019-09-12T04:35:56.000Z
2022-01-26T19:21:32.000Z
pedal/questions/loader.py
acbart/python-analysis
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
2
2021-01-11T06:34:00.000Z
2021-07-21T12:48:07.000Z
""" instructions: blah blah blah settings: tifa: enabled: True unit test by function (bool): Whether to test each function entirely before moving onto the next one, or to first check that all functions have been defined, and then checking their parameters, etc. Defaults to True....
35.913621
118
0.592091
2,538
0.117391
2,107
0.097456
0
0
0
0
8,675
0.401249
a5cc7ebfb0f671bb1d1aeac6021cc68675439a1a
8,732
py
Python
VM/fetchLoop.py
djtech-dev/PyVM
1edda436ce7073d0cecbf16f5cab2509895d953c
[ "MIT" ]
75
2017-09-22T22:36:13.000Z
2022-03-20T16:18:27.000Z
VM/fetchLoop.py
djtech-dev/PyVM
1edda436ce7073d0cecbf16f5cab2509895d953c
[ "MIT" ]
7
2019-05-10T19:15:08.000Z
2021-08-24T16:03:34.000Z
VM/fetchLoop.py
djtech-dev/PyVM
1edda436ce7073d0cecbf16f5cab2509895d953c
[ "MIT" ]
14
2018-07-02T02:49:46.000Z
2022-02-22T15:24:47.000Z
import enum from .ELF import ELF32, enums from .util import SegmentRegs, MissingOpcodeError from .CPU import CPU32 import logging logger = logging.getLogger(__name__) class FetchLoopMixin: _attrs_ = 'eip', 'mem', 'reg.ebx', 'fmt', 'instr', 'sizes', 'default_mode' def execute_opcode(self: CPU32) -> None: ...
33.328244
135
0.535502
8,541
0.978126
0
0
0
0
0
0
1,515
0.1735
a5cdc723644cccdf87dcd59c16c72ac9871189a8
2,753
py
Python
polecat/deploy/aws/deployment.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/deploy/aws/deployment.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/deploy/aws/deployment.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
from termcolor import colored from ...utils.feedback import feedback from .constants import DEPLOYMENT_PREFIX, DEPLOYMENT_REGISTRY from .exceptions import EntityDoesNotExist, EntityExists from .operations import delete_parameter, get_parameter, set_parameter from .project import assert_project_exists from .utils impor...
38.774648
98
0.698147
0
0
0
0
2,025
0.735561
0
0
513
0.186342
a5cef8d918f7406a1dd78059cb13a600f918323a
5,897
py
Python
mlpy/regression/logistic_regression.py
SNUDerek/MLPy
0d47a8ef8522a663716cda6a831855e6482069ba
[ "MIT" ]
1
2019-05-10T10:39:12.000Z
2019-05-10T10:39:12.000Z
mlpy/regression/logistic_regression.py
SNUDerek/MLPy
0d47a8ef8522a663716cda6a831855e6482069ba
[ "MIT" ]
null
null
null
mlpy/regression/logistic_regression.py
SNUDerek/MLPy
0d47a8ef8522a663716cda6a831855e6482069ba
[ "MIT" ]
null
null
null
import numpy as np from ..tools import batchGenerator # LOGISTIC REGRESSION # for (binary) categorical data class LogisticRegression(): ''' Logistic regression with Gradient Descent binary Logistic regression Parameters ---------- epochs : int maximum epochs of gradient descent lr...
32.944134
89
0.587248
5,787
0.981346
0
0
0
0
0
0
2,672
0.453112
a5d00dc3b88e76c00327d591e70ffe150f4013d2
1,946
py
Python
esercizio_1/untitled1.py
navyzigz420/python_lab
a3496d8b170e334abfb5099bf6ee03df5e226b78
[ "Apache-2.0" ]
null
null
null
esercizio_1/untitled1.py
navyzigz420/python_lab
a3496d8b170e334abfb5099bf6ee03df5e226b78
[ "Apache-2.0" ]
null
null
null
esercizio_1/untitled1.py
navyzigz420/python_lab
a3496d8b170e334abfb5099bf6ee03df5e226b78
[ "Apache-2.0" ]
null
null
null
bits = '110' def turnBitsIntoInteger(listOfBits): valore = 0 lunghezza = len(listOfBits) for x in range(lunghezza): if listOfBits[x] != '0' and listOfBits[x] != '1': raise Exception('Not a combinations of bits!') valore = valore + 2**(lunghezza -1 - x) * int(listOfBits[x]) ...
1.3637
92
0.167009
0
0
0
0
0
0
0
0
92
0.047276
a5d187baa7ec34c04b159476ef8dc6d77a915eac
4,175
py
Python
generated/azure-cli/aro/custom.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/azure-cli/aro/custom.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/azure-cli/aro/custom.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
55.666667
180
0.683353
0
0
0
0
0
0
0
0
1,400
0.335329
a5d2df25221764ec5395b74a6c3cb30a216ee3ff
12,269
py
Python
server.py
satriabw/Tugas_Sisdis
b1e152f35834e52806071b9b1424b114dce65148
[ "MIT" ]
null
null
null
server.py
satriabw/Tugas_Sisdis
b1e152f35834e52806071b9b1424b114dce65148
[ "MIT" ]
null
null
null
server.py
satriabw/Tugas_Sisdis
b1e152f35834e52806071b9b1424b114dce65148
[ "MIT" ]
null
null
null
# coding: utf-8 from random import randint from urllib.parse import parse_qs import socket import sys import json import traceback import os import base64 import yaml import datetime import requests import re class Route: def __init__(self): self._route = [] def route(self, method, path, handler): ...
31.060759
136
0.605102
1,895
0.154454
0
0
3,666
0.298802
0
0
2,561
0.208737
a5d51824f01f43c1a1f7165def53773a506fe72b
656
py
Python
glia/widgets/editor/tabs.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
1
2020-08-20T08:22:33.000Z
2020-08-20T08:22:33.000Z
glia/widgets/editor/tabs.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
3
2021-04-20T18:20:45.000Z
2021-06-01T23:56:13.000Z
glia/widgets/editor/tabs.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtWidgets import QTabWidget from glia.widgets.editor import Editor class EditorTabs(QTabWidget): def __init__(self, parent=None): """ Generates tab with editor depending on the file and it's type selected. """ super(EditorTabs, self).__init__(parent) # ...
24.296296
69
0.643293
574
0.875
0
0
0
0
0
0
151
0.230183
a5d8c45707967ee83846553d1837407bb63fcb57
2,296
py
Python
tests/test_aws_tdd.py
Fauxsys/offprem
9fe4764b24578b1ada43cfab600379b55fed038d
[ "MIT" ]
null
null
null
tests/test_aws_tdd.py
Fauxsys/offprem
9fe4764b24578b1ada43cfab600379b55fed038d
[ "MIT" ]
null
null
null
tests/test_aws_tdd.py
Fauxsys/offprem
9fe4764b24578b1ada43cfab600379b55fed038d
[ "MIT" ]
null
null
null
""" Test Driven Development. """ import pytest @pytest.fixture def profiles() -> dict: production = 'production' staging = 'staging' qa = 'qa' return {'production': production, 'staging': staging, 'qa': qa} @pytest.mark.skip(reason='Method not yet implemented.') def test_add_profile(environment, pro...
31.888889
78
0.761324
0
0
0
0
2,216
0.965157
0
0
507
0.220819
a5d993daf62319705e260124c70d45da91cc0c68
1,743
py
Python
CursoPython/dia 2/copia de clase.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
CursoPython/dia 2/copia de clase.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
CursoPython/dia 2/copia de clase.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # pylint: disable=E1601 """ 17/02/2018 Profesores: Álvaro Sánchez de Cruz / ??? - Se hace un repaso de lo que se impartió el día anterior. - Subprogramas o funciones: - Viene de la programación estructurada. - Sintaxis: def nombreFuncion([para...
24.549296
104
0.596672
0
0
0
0
0
0
0
0
1,332
0.761143
a5d9baaf2337daeafdfe9b9a22db73d38a684f6f
576
py
Python
functions-and-keda/src/python-function-publisher/QueueTrigger/__init__.py
emctl/samples
569f81035a6c214d4cda3687173e24003f17f95e
[ "MIT" ]
3
2021-11-16T11:24:27.000Z
2021-11-21T17:11:24.000Z
functions-and-keda/src/python-function-publisher/QueueTrigger/__init__.py
emctl/samples
569f81035a6c214d4cda3687173e24003f17f95e
[ "MIT" ]
7
2021-09-01T06:50:41.000Z
2021-09-03T23:12:07.000Z
functions-and-keda/src/python-function-publisher/QueueTrigger/__init__.py
emctl/samples
569f81035a6c214d4cda3687173e24003f17f95e
[ "MIT" ]
4
2021-02-05T17:30:28.000Z
2021-08-16T21:26:55.000Z
import logging import requests import json import azure.functions as func dapr_url = "http://localhost:3500/v1.0" def main(msg: func.QueueMessage): logging.info(f"Python queue-triggered function received a message!") message = msg.get_body().decode('utf-8') logging.info(f"Message: {message}") # Publ...
28.8
72
0.697917
0
0
0
0
0
0
0
0
253
0.439236
a5da4714ac6a7f9235bc1e8123d0bcfaf76ea57c
260
py
Python
CH_10_testing_and_logging/T_26_logging_json_config.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_10_testing_and_logging/T_26_logging_json_config.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_10_testing_and_logging/T_26_logging_json_config.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
import os import json from logging import config name = os.path.splitext(__file__)[0] json_filename = os.path.join(os.path.dirname(__file__), f'{name}.json') with open(json_filename) as fh: config.dictConfig(json.load(fh))
20
55
0.661538
0
0
0
0
0
0
0
0
14
0.053846
a5dac3d6ca2b3d760f8736d068bcd1c838b5581c
2,618
py
Python
tests/unit/test_upstream_dataset.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
9
2019-08-13T11:07:06.000Z
2022-01-14T18:15:13.000Z
tests/unit/test_upstream_dataset.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
166
2019-08-09T18:51:05.000Z
2021-12-02T15:24:15.000Z
tests/unit/test_upstream_dataset.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
21
2019-08-12T15:37:31.000Z
2021-06-15T14:06:23.000Z
import responses from tamr_unify_client import Client from tamr_unify_client.auth import UsernamePasswordAuth @responses.activate def test_upstream_dataset(): dataset_json = { "id": "unify://unified-data/v1/datasets/12", "name": "Project_1_unified_dataset_dedup_features", "description": ...
34.906667
109
0.615737
0
0
0
0
2,504
0.956455
0
0
1,137
0.434301
a5daeaca530d32aa4078eb1a40a959857dd7e442
14,531
py
Python
pmaf/sequence/_multiple/_multiple.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/sequence/_multiple/_multiple.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/sequence/_multiple/_multiple.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.simplefilter("ignore", category=FutureWarning) from skbio import TabularMSA from skbio.sequence import GrammaredSequence from io import StringIO, IOBase from shutil import copyfileobj import copy import numpy as np from pmaf.internal.io._seq import SequenceIO from pmaf.sequence._sequence._nucl...
33.871795
91
0.566719
13,938
0.959191
1,019
0.070126
1,797
0.123667
0
0
4,793
0.329847
a5db8882e50338e2cfe3830ff393ba99f5232ba1
1,498
py
Python
arvore_derivacao.py
rjribeiro/trabalho-formais
358de668cc256c696fdc4b426a69cf5a3d17b511
[ "MIT" ]
3
2018-04-28T15:55:50.000Z
2018-05-11T22:57:20.000Z
arvore_derivacao.py
rjribeiro/trabalho-formais
358de668cc256c696fdc4b426a69cf5a3d17b511
[ "MIT" ]
null
null
null
arvore_derivacao.py
rjribeiro/trabalho-formais
358de668cc256c696fdc4b426a69cf5a3d17b511
[ "MIT" ]
null
null
null
class ArvoreDerivacao: def __init__(self, conteudo, esquerda=None, direita=None): self._conteudo = conteudo self._esquerda = esquerda self._direita = direita self.children = [self._esquerda, self._direita] @property def conteudo(self): return self._conteudo def...
27.740741
85
0.579439
1,296
0.861702
0
0
63
0.041888
0
0
362
0.240691
a5dca4db049c83c9e0aaf82c2743e38347886e01
1,404
py
Python
src/test.py
biqar/hypergraph-study
04b54117eb8f684a72259b27b03162efb4c18cd0
[ "MIT" ]
2
2021-12-24T12:02:48.000Z
2021-12-25T00:00:22.000Z
src/test.py
biqar/hypergraph-study
04b54117eb8f684a72259b27b03162efb4c18cd0
[ "MIT" ]
null
null
null
src/test.py
biqar/hypergraph-study
04b54117eb8f684a72259b27b03162efb4c18cd0
[ "MIT" ]
1
2021-07-19T02:05:13.000Z
2021-07-19T02:05:13.000Z
import re import sys from operator import add from pyspark.sql import SparkSession def computeContribs(urls, rank): """Calculates URL contributions to the rank of other URLs.""" num_urls = len(urls) for url in urls: yield (url, rank / num_urls) def parseNeighbors(urls): """Parses a urls pai...
29.25
92
0.608262
0
0
424
0.301994
0
0
0
0
518
0.368946
a5df0a5e25ad5c8a611b093330f6ecc81a28362f
1,312
py
Python
wagtail_lightadmin/wagtail_hooks.py
leukeleu/wagtail_lightadmin
6aa465e2673f4eb8865f7b4dc6cd2c7c41ed71a5
[ "MIT" ]
4
2019-02-22T14:07:26.000Z
2020-04-20T05:33:39.000Z
wagtail_lightadmin/wagtail_hooks.py
leukeleu/wagtail_lightadmin
6aa465e2673f4eb8865f7b4dc6cd2c7c41ed71a5
[ "MIT" ]
1
2019-05-18T08:04:32.000Z
2019-05-20T13:39:14.000Z
wagtail_lightadmin/wagtail_hooks.py
leukeleu/wagtail_lightadmin
6aa465e2673f4eb8865f7b4dc6cd2c7c41ed71a5
[ "MIT" ]
2
2017-06-06T09:34:53.000Z
2019-09-10T16:16:12.000Z
from __future__ import absolute_import, unicode_literals from django.conf import settings from django.templatetags.static import static from django.utils.html import format_html from django.utils.module_loading import import_string from wagtail.core import hooks @hooks.register('insert_editor_css') def editor_css()...
26.24
65
0.641768
0
0
0
0
1,038
0.791159
0
0
582
0.443598
a5df58684b3949214fa0f306fa78ff1bd3a232de
3,333
py
Python
examples/datamining/page_rank.py
pooya/disco
e03a337b3b20e191459c74a367b9e89e873f71ff
[ "BSD-3-Clause" ]
786
2015-01-01T12:35:40.000Z
2022-03-19T04:39:22.000Z
examples/datamining/page_rank.py
pooya/disco
e03a337b3b20e191459c74a367b9e89e873f71ff
[ "BSD-3-Clause" ]
51
2015-01-19T20:07:01.000Z
2019-10-19T21:03:06.000Z
examples/datamining/page_rank.py
pooya/disco
e03a337b3b20e191459c74a367b9e89e873f71ff
[ "BSD-3-Clause" ]
122
2015-01-05T18:16:03.000Z
2021-07-10T12:35:22.000Z
# Copyright 2009-2010 Yelp # Copyright 2013 David Marin # Copyright 2014 Disco Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
26.452381
120
0.645965
0
0
970
0.291029
0
0
0
0
1,690
0.507051