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
09d449514e9039bc5c41cf98d5932b80f0321669
898
py
Python
TestSourceCode_Store/PIM_example_resize.py
leejaymin/QDroid
13ff9d26932378513a7c9f0038eb59b922ed06eb
[ "Apache-2.0" ]
null
null
null
TestSourceCode_Store/PIM_example_resize.py
leejaymin/QDroid
13ff9d26932378513a7c9f0038eb59b922ed06eb
[ "Apache-2.0" ]
null
null
null
TestSourceCode_Store/PIM_example_resize.py
leejaymin/QDroid
13ff9d26932378513a7c9f0038eb59b922ed06eb
[ "Apache-2.0" ]
null
null
null
import sys from PIL import Image #import ImageChops #import numpy as np #import ImageChops if __name__ == '__main__': srcList = [] targetList = [] colorRate = [] avgColorRate = 0.0 sumColorRate = 0 validCount = 0 # image_src = '/root/Android_Application_source/recomended/0.png' fir...
26.411765
85
0.680401
0
0
0
0
0
0
0
0
552
0.614699
09d4d5139b90907a08147b1f476920cdd503f04c
15,484
py
Python
src/testing/functionaltests/webtest.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
1
2018-03-26T22:39:36.000Z
2018-03-26T22:39:36.000Z
src/testing/functionaltests/webtest.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
null
null
null
src/testing/functionaltests/webtest.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
null
null
null
""" Web unit tests """ # pylint: disable=too-many-public-methods import time import unittest import requests from testing.communicationhelper import get_json, put_json from testing.functions import are_expected_items_in_list, are_expected_kv_pairs_in_list, \ get_item_from_embedded_dict...
32.529412
120
0.58822
15,003
0.968936
0
0
1,005
0.064906
0
0
5,210
0.336476
09d79f0d227847749db1ddb7eb6acbb60326e8b8
862
py
Python
10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py
ZeroWeight/Pattern-Recognize
ce18ab7d218840978f546a94d02d4183c9dc1aac
[ "MIT" ]
4
2018-07-30T01:46:22.000Z
2019-04-09T12:23:52.000Z
10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py
ZeroWeight/Pattern-Recognize
ce18ab7d218840978f546a94d02d4183c9dc1aac
[ "MIT" ]
null
null
null
10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py
ZeroWeight/Pattern-Recognize
ce18ab7d218840978f546a94d02d4183c9dc1aac
[ "MIT" ]
1
2020-02-25T05:09:06.000Z
2020-02-25T05:09:06.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Factory method for easily getting imdbs by name.""" __sets = {} fro...
29.724138
79
0.612529
0
0
0
0
0
0
0
0
487
0.564965
09d9a6c70c2c9fb2475c65d8587c45d1e8aa1eb1
1,251
py
Python
portafolio/core/views.py
breinerGiraldo/python
89603d7ce0be8e2bb20817ee3c845fdb26a1b54a
[ "bzip2-1.0.6" ]
null
null
null
portafolio/core/views.py
breinerGiraldo/python
89603d7ce0be8e2bb20817ee3c845fdb26a1b54a
[ "bzip2-1.0.6" ]
null
null
null
portafolio/core/views.py
breinerGiraldo/python
89603d7ce0be8e2bb20817ee3c845fdb26a1b54a
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render,HTTpResponse # Create your views here. def indexcore(request): return render(request,'index.html') def nosotros(request): return render(request,'nosotros.html') def indexcore(request): #iniciamos el formulario de contacto FormarContac= ContactForm() #valid...
39.09375
106
0.655476
0
0
0
0
0
0
0
0
563
0.45004
09da5fe1886cdd50f1983ad7996a351fe7c5c4f5
257
py
Python
setup.py
luphord/australian-housing-exercise
441b8700cfe6d50742945b33d4f123dc6c497e5a
[ "MIT" ]
null
null
null
setup.py
luphord/australian-housing-exercise
441b8700cfe6d50742945b33d4f123dc6c497e5a
[ "MIT" ]
null
null
null
setup.py
luphord/australian-housing-exercise
441b8700cfe6d50742945b33d4f123dc6c497e5a
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='australian_housing', packages=find_packages(), version='0.2.1', description='"A data science exercise on Australian house approvements"', author='"luphord"', license='MIT', )
23.363636
77
0.696498
0
0
0
0
0
0
0
0
103
0.400778
09dbc482da6f2620a0ec95d44dab6ffbe0c052f9
4,439
py
Python
monopoly.py
michaelhutton/monopoly
d3adcf524dfb015dbdaaadf905ca8cc4396fde3e
[ "MIT" ]
null
null
null
monopoly.py
michaelhutton/monopoly
d3adcf524dfb015dbdaaadf905ca8cc4396fde3e
[ "MIT" ]
null
null
null
monopoly.py
michaelhutton/monopoly
d3adcf524dfb015dbdaaadf905ca8cc4396fde3e
[ "MIT" ]
null
null
null
import random squares = [ "Go", "Mediterranean Ave.", "Community Chest", "Baltic Ave.", "Income Tax", "Reading Railroad", "Oriental Ave.", "Chance", "Vermont Ave.", "Connecticut Ave.", "Jail", "St. Charles Place", "Electric Company", "States Ave.", "Virginia ...
29.593333
80
0.581437
0
0
0
0
0
0
0
0
2,423
0.545844
09ddae526c3cd9bcfe820b2b4ae3706b5e1e7c32
7,769
py
Python
coinzdense/app.py
pibara/coinzdense-python
f051770b71fa0afe935eb0d2079dab21eea9432d
[ "BSD-3-Clause" ]
null
null
null
coinzdense/app.py
pibara/coinzdense-python
f051770b71fa0afe935eb0d2079dab21eea9432d
[ "BSD-3-Clause" ]
null
null
null
coinzdense/app.py
pibara/coinzdense-python
f051770b71fa0afe935eb0d2079dab21eea9432d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 from coinzdense.signing import SigningKey as _SigningKey from coinzdense.validation import ValidationEnv as _ValidationEnv from coinzdense.wallet import create_wallet as _create_wallet from coinzdense.wallet import open_wallet as _open_wallet def _keys_per_signature(hashlen, otsbits): return 2*(...
50.122581
132
0.635603
6,741
0.867679
0
0
0
0
0
0
1,866
0.240185
09de00e54d3860203b7729e1854754335ac141d7
1,296
py
Python
src/asyncdataflow/inspector.py
tomaszkingukrol/async-data-flow
1572ef101cb0e6a0f27a77401538a4620ee9939f
[ "Apache-2.0" ]
null
null
null
src/asyncdataflow/inspector.py
tomaszkingukrol/async-data-flow
1572ef101cb0e6a0f27a77401538a4620ee9939f
[ "Apache-2.0" ]
null
null
null
src/asyncdataflow/inspector.py
tomaszkingukrol/async-data-flow
1572ef101cb0e6a0f27a77401538a4620ee9939f
[ "Apache-2.0" ]
null
null
null
from collections.abc import Iterable from typing import Callable, Tuple import inspect from .definition import DataFlowInspector from .exceptions import DataFlowFunctionArgsError, DataFlowNotCallableError, DataFlowEmptyError, DataFlowNotTupleError class DataFlowInspect(DataFlowInspector): ''' Function inspectio...
35.027027
118
0.655864
691
0.533179
0
0
0
0
0
0
147
0.113426
09e5ab892fd8685aedec11f8378615ed2931fa1c
891
py
Python
processing_pipeline/extractionless_registration.py
SijRa/Brain-Image-Analysis-using-Deep-Learning
a35411bda6e39eff57f715a695b7fb6a30997706
[ "MIT" ]
2
2022-01-04T16:54:20.000Z
2022-01-24T03:01:14.000Z
processing_pipeline/extractionless_registration.py
SijRa/Brain-Image-Analysis-using-Deep-Learning
a35411bda6e39eff57f715a695b7fb6a30997706
[ "MIT" ]
null
null
null
processing_pipeline/extractionless_registration.py
SijRa/Brain-Image-Analysis-using-Deep-Learning
a35411bda6e39eff57f715a695b7fb6a30997706
[ "MIT" ]
1
2020-07-05T09:30:11.000Z
2020-07-05T09:30:11.000Z
from ants import registration, image_read, image_write, resample_image, crop_image from os import listdir mri_directory = "ADNI_baseline_raw/" template_loc = "MNI152_2009/mni_icbm152_t1_tal_nlin_sym_09a.nii" template = image_read(template_loc) template = resample_image(template, (192, 192, 160), True, 4) #template = ...
40.5
89
0.751964
0
0
0
0
0
0
0
0
237
0.265993
09e5f7e19923e048c28f58a87dbbfe0de36d4a04
362
py
Python
3rdparty/pytorch/torch/autograd/variable.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
51
2020-01-26T23:32:57.000Z
2022-03-20T14:49:57.000Z
3rdparty/pytorch/torch/autograd/variable.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
2
2020-12-19T20:00:28.000Z
2021-03-03T20:22:45.000Z
3rdparty/pytorch/torch/autograd/variable.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
33
2020-02-18T16:15:48.000Z
2022-03-24T15:12:05.000Z
import torch from torch._six import with_metaclass class VariableMeta(type): def __instancecheck__(self, other): return isinstance(other, torch.Tensor) class Variable(with_metaclass(VariableMeta, torch._C._LegacyVariableBase)): pass from torch._C import _ImperativeEngine as ImperativeEngine Variab...
22.625
75
0.79558
196
0.541436
0
0
0
0
0
0
0
0
09e7e9329ecb594a1ce5f26cf6f1dcdac3d78aef
15,237
py
Python
sp_api/api/finances/models/shipment_item.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/finances/models/shipment_item.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/finances/models/shipment_item.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Selling Partner API for Finances The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You ...
35.270833
377
0.671458
14,678
0.963313
0
0
8,903
0.584301
0
0
7,916
0.519525
09e83bd920be035d9c74e3803047761cd01ba2d9
583
py
Python
glycan_profiling/database/prebuilt/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
4
2019-04-26T15:47:57.000Z
2021-04-20T22:53:58.000Z
glycan_profiling/database/prebuilt/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
8
2017-11-22T19:20:20.000Z
2022-02-14T01:49:58.000Z
glycan_profiling/database/prebuilt/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
3
2017-11-21T18:05:28.000Z
2021-09-23T18:38:33.000Z
from .utils import hypothesis_register from . import heparin from . import combinatorial_mammalian_n_linked from . import glycosaminoglycan_linkers from . import combinatorial_human_n_linked from . import biosynthesis_human_n_linked from . import biosynthesis_mammalian_n_linked from . import human_mucin_o_linked __al...
27.761905
46
0.806175
0
0
0
0
0
0
0
0
205
0.35163
09e84e1dd2d539b68ad7f9d464717d52336a5ae9
216
py
Python
zhongyicheng/scripts/test.py
Chr0802/No-easy-summer1
d8d88b8d025f039deca7c89518b63446e4f80567
[ "MIT" ]
2
2021-08-05T11:44:12.000Z
2021-08-31T10:50:13.000Z
zhongyicheng/scripts/test.py
Chr0802/No-easy-summer1
d8d88b8d025f039deca7c89518b63446e4f80567
[ "MIT" ]
1
2021-08-07T03:21:12.000Z
2021-08-07T03:21:12.000Z
zhongyicheng/scripts/test.py
Chr0802/No-easy-summer1
d8d88b8d025f039deca7c89518b63446e4f80567
[ "MIT" ]
8
2021-07-26T05:11:37.000Z
2021-10-05T05:34:34.000Z
from elasticsearch import Elasticsearch es = Elasticsearch([ {'host':'localhost','port':8200}, ]) print(es.search(index='ename_test_multiprocess',body={"query":{"match":{"name":str(input())}}})['hits']['hits'])
30.857143
112
0.680556
0
0
0
0
0
0
0
0
80
0.37037
09e89717699974cfa907e599273f2f898e6cc20f
30
py
Python
pastepdb/__init__.py
pooriaahmadi/pastepdb
166b2e8614ee2ea6c8f2f804af23458defb4674a
[ "MIT" ]
8
2021-03-17T10:48:49.000Z
2021-04-06T08:16:04.000Z
pastepdb/__init__.py
pooriaahmadi/pastepdb
166b2e8614ee2ea6c8f2f804af23458defb4674a
[ "MIT" ]
null
null
null
pastepdb/__init__.py
pooriaahmadi/pastepdb
166b2e8614ee2ea6c8f2f804af23458defb4674a
[ "MIT" ]
null
null
null
from .pastepdb import pastepdb
30
30
0.866667
0
0
0
0
0
0
0
0
0
0
09e89b2450d77d8cea8acdf70dfa8deb4095af90
3,370
py
Python
my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
# Copyright (C) 2015-2018 YouCompleteMe contributors # # This file is part of YouCompleteMe. # # YouCompleteMe is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opt...
32.403846
77
0.625223
1,555
0.461287
0
0
0
0
0
0
1,132
0.335805
09e91e344b133bb70e9396f03df09da25b24a2b5
1,372
py
Python
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
quandxbp/vnpt-ccos
23d2bc3d3db2e0bce479e0ccfa62e13451306635
[ "bzip2-1.0.6" ]
null
null
null
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
quandxbp/vnpt-ccos
23d2bc3d3db2e0bce479e0ccfa62e13451306635
[ "bzip2-1.0.6" ]
null
null
null
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
quandxbp/vnpt-ccos
23d2bc3d3db2e0bce479e0ccfa62e13451306635
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-14 02:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('zalo_base', '0003_auto_20210713_1103'), ] operations = [ migrations.DeleteModel( name='ZaloMessage', ), migratio...
29.191489
74
0.559038
1,279
0.932216
0
0
0
0
0
0
200
0.145773
09e9f3d9309a9df34ab48cce11c67316c012a978
272
py
Python
project/web/utils/docx_files.py
sirodeneko/pyProject
02cd67df26decf7b0ec20d86a2bbb5bce9f4e369
[ "MIT" ]
null
null
null
project/web/utils/docx_files.py
sirodeneko/pyProject
02cd67df26decf7b0ec20d86a2bbb5bce9f4e369
[ "MIT" ]
1
2020-11-30T09:35:15.000Z
2020-11-30T09:35:15.000Z
project/web/utils/docx_files.py
sirodeneko/pyProject
02cd67df26decf7b0ec20d86a2bbb5bce9f4e369
[ "MIT" ]
1
2020-11-30T09:33:24.000Z
2020-11-30T09:33:24.000Z
import json import os import re import urllib.request def docx_files_names(): file_path = './static/reports/' files = os.listdir(file_path) names = [] for item in files: if item.endswith('.docx'): names.append(item) return names
17
35
0.632353
0
0
0
0
0
0
0
0
26
0.095588
09eadaf88e96e921514284415b829745e173d0ca
708
py
Python
pkgs/javusdev/javusdev/settings.py
quapka/javus
577e0c2dabfaea39d7ffacd42100d8a5f4cd738c
[ "MIT" ]
1
2020-09-22T01:38:21.000Z
2020-09-22T01:38:21.000Z
pkgs/javusdev/javusdev/settings.py
petrs/javus
6927c824d5e6b574a6a323c87bd5aa117eca5b00
[ "MIT" ]
null
null
null
pkgs/javusdev/javusdev/settings.py
petrs/javus
6927c824d5e6b574a6a323c87bd5aa117eca5b00
[ "MIT" ]
1
2020-07-26T07:20:47.000Z
2020-07-26T07:20:47.000Z
import os from pathlib import Path def get_project_root() -> Path: # kudos to https://stackoverflow.com/a/53465812/2377489 relative_root = Path(__file__).parent.parent return relative_root def get_project_src() -> Path: return get_project_root() / "javusdev" def get_project_data() -> Path: re...
23.6
83
0.728814
0
0
0
0
0
0
0
0
187
0.264124
09edfb321e8839956c0dd18d657713402150647f
2,043
py
Python
examples/design_studies/ihm_fingergait/check_progress.py
cbteeple/somo
53a1a94f7d9d624bc4c43e582c80f24a0e98df24
[ "MIT" ]
null
null
null
examples/design_studies/ihm_fingergait/check_progress.py
cbteeple/somo
53a1a94f7d9d624bc4c43e582c80f24a0e98df24
[ "MIT" ]
null
null
null
examples/design_studies/ihm_fingergait/check_progress.py
cbteeple/somo
53a1a94f7d9d624bc4c43e582c80f24a0e98df24
[ "MIT" ]
null
null
null
# Be sure to run this file from the "palm_sweeps" folder # cd examples/palm_sweeps import os import sys from datetime import datetime path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) sys.path.insert(0, path) from somo.sweep import iter_utils config_file = "sweeps/grid_diam_height.yam...
29.185714
94
0.708762
0
0
0
0
0
0
0
0
634
0.310328
09f226a5810e82fde46ce6d76eb7db7321ca355b
3,998
py
Python
Projects/Project 1/Handin/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 1/Handin/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 1/Handin/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
from collections import deque as LL class Process: def __init__(self, parent, priority): self.state = 1 # State: 1=ready / 0=blocked self.parent = parent self.children = LL() self.resources = LL() self.priority = priority self.blocked_on = None class Resource: d...
35.070175
79
0.598049
3,955
0.989245
0
0
0
0
0
0
561
0.14032
09f23dc12e2bcbc1428ea1ce895f4e644cb3aca4
2,449
py
Python
utils/ion.py
karlstratos/EntityQuestions
c4969aa6ca464773c2c35ab0569ba5924320d8d9
[ "MIT" ]
103
2021-09-16T18:19:49.000Z
2022-03-29T03:18:50.000Z
utils/ion.py
karlstratos/EntityQuestions
c4969aa6ca464773c2c35ab0569ba5924320d8d9
[ "MIT" ]
8
2021-09-25T00:00:37.000Z
2022-03-24T01:01:35.000Z
utils/ion.py
karlstratos/EntityQuestions
c4969aa6ca464773c2c35ab0569ba5924320d8d9
[ "MIT" ]
10
2021-09-19T08:12:53.000Z
2022-03-23T09:09:23.000Z
""" General framework for reading/writing data from/to files on the local system. """ import json import random from pathlib import Path ############################################################################### # FILE READING ################################################# ####################...
31
79
0.475704
0
0
0
0
0
0
0
0
863
0.352389
09f240acbe9b8fa80d51945cdcc670845719d41c
2,394
py
Python
pg_methods/interfaces/state_processors.py
zafarali/policy-gradient-methods
f0d83a80ddc772dcad0c851aac9bfd41d436c274
[ "MIT" ]
28
2018-06-12T21:37:20.000Z
2021-12-27T15:13:14.000Z
pg_methods/interfaces/state_processors.py
zafarali/policy-gradient-methods
f0d83a80ddc772dcad0c851aac9bfd41d436c274
[ "MIT" ]
3
2018-05-10T16:33:05.000Z
2018-06-19T18:17:37.000Z
pg_methods/interfaces/state_processors.py
zafarali/policy-gradient-methods
f0d83a80ddc772dcad0c851aac9bfd41d436c274
[ "MIT" ]
7
2018-05-08T04:13:21.000Z
2021-04-02T12:31:55.000Z
import gym import torch import numpy as np from pg_methods.interfaces import common_interfaces as common class SimpleStateProcessor(common.Interface): """ Allows one to interface states between a single instance of gym """ def __init__(self, environment_observation_space, one_hot=False, use_cuda=False...
36.272727
102
0.575188
2,287
0.955305
0
0
0
0
0
0
102
0.042607
09f69dea9d9541fb1a471fe9f8d7ffca1d756933
3,935
py
Python
tests/test_emlib.py
mjpekala/faster-membranes
f203fc8608603bc7b16a1abeac324d52e9dfe96a
[ "Apache-2.0" ]
null
null
null
tests/test_emlib.py
mjpekala/faster-membranes
f203fc8608603bc7b16a1abeac324d52e9dfe96a
[ "Apache-2.0" ]
null
null
null
tests/test_emlib.py
mjpekala/faster-membranes
f203fc8608603bc7b16a1abeac324d52e9dfe96a
[ "Apache-2.0" ]
null
null
null
"""Unit test for emlib.py To run: PYTHONPATH=../src python test_emlib.py """ __author__ = "Mike Pekala" __copyright__ = "Copyright 2015, JHU/APL" __license__ = "Apache 2.0" import unittest import numpy as np from sklearn.metrics import precision_recall_fscore_support as smetrics import emlib class TestEmlib...
33.067227
88
0.519695
3,522
0.895044
0
0
0
0
0
0
891
0.226429
09f80f8b20cbf9fab41433b7fb79cb311415a791
193
py
Python
src/biopsykit/signals/imu/feature_extraction/__init__.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
10
2020-11-05T13:34:55.000Z
2022-03-11T16:20:10.000Z
src/biopsykit/signals/imu/feature_extraction/__init__.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
14
2021-03-11T14:43:52.000Z
2022-03-10T19:44:57.000Z
src/biopsykit/signals/imu/feature_extraction/__init__.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
3
2021-09-13T13:14:38.000Z
2022-02-19T09:13:25.000Z
"""Module containing scripts for different feature extraction techniques from raw IMU data.""" from biopsykit.signals.imu.feature_extraction import static_moments __all__ = ["static_moments"]
38.6
94
0.818653
0
0
0
0
0
0
0
0
110
0.569948
09f91afeaca4a61947c025a6985fde971a2433a0
727
py
Python
app/core/bluetooth/models.py
FHellmann/MLWTF
582c3505d638907a848d5a6c739ee99981300f17
[ "Apache-2.0" ]
null
null
null
app/core/bluetooth/models.py
FHellmann/MLWTF
582c3505d638907a848d5a6c739ee99981300f17
[ "Apache-2.0" ]
null
null
null
app/core/bluetooth/models.py
FHellmann/MLWTF
582c3505d638907a848d5a6c739ee99981300f17
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ Author: Fabio Hellmann <[email protected]> """ from attr import s, ib from attr.validators import instance_of @s(frozen=True) class BLEDevice(object): """ Device MAC address (as a hex string separated by colons). """ addr = ib(validator=instance_of(str), type=str) "...
27.961538
114
0.68088
566
0.778542
0
0
582
0.80055
0
0
447
0.614856
09f949d20672656308f4b25b2fb52c7d29555163
1,511
py
Python
Algorithms_medium/1102. Path With Maximum Minimum Value.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_medium/1102. Path With Maximum Minimum Value.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_medium/1102. Path With Maximum Minimum Value.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 1102. Path With Maximum Minimum Value Medium Given a matrix of integers A with R rows and C columns, find the maximum score of a path starting at [0,0] and ending at [R-1,C-1]. The score of a path is the minimum value in that path. For example, the value of the path 8 → 4 → 5 → 9 is 4. A path moves some numb...
26.982143
154
0.536069
706
0.465392
0
0
0
0
0
0
844
0.556361
09f9da8e8fb3a2cb6c40b0627a6fdbf5844460e0
1,436
py
Python
tests/extractor/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/extractor/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/extractor/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
import pytest import data_pipeline.db.factory as db_factory import data_pipeline.extractor.factory as extractor_factory import tests.unittest_utils as utils import data_pipeline.constants.const as const from pytest_mock import mocker from data_pipeline.db.exceptions import UnsupportedDbTypeError @pytest.fixture() def...
34.190476
79
0.766017
0
0
448
0.311978
883
0.614903
0
0
162
0.112813
09fa1379267ff36d7eaf0c8f04ba9a7c23bd124b
3,424
py
Python
suremco/tracker.py
modsim/SurEmCo
71fc0cfc62f8733de93ee2736421574a154e3db3
[ "BSD-2-Clause" ]
null
null
null
suremco/tracker.py
modsim/SurEmCo
71fc0cfc62f8733de93ee2736421574a154e3db3
[ "BSD-2-Clause" ]
null
null
null
suremco/tracker.py
modsim/SurEmCo
71fc0cfc62f8733de93ee2736421574a154e3db3
[ "BSD-2-Clause" ]
null
null
null
# SurEmCo - C++ tracker wrapper import ctypes from enum import IntEnum import sys import os import numpy import numpy.ctypeslib class Tracker(object): class Mode(IntEnum): MOVING = 0 STATIC = 1 class Strategy(IntEnum): BRUTE_FORCE = 0 KD_TREE = 1 track_input_type = {'dty...
29.517241
101
0.580023
3,292
0.961449
0
0
114
0.033294
0
0
489
0.142815
09fa8917e01388a6694109a784fa133ce2d71a48
774
py
Python
lianxi/abc.py
xuguoqiang1/qiang
a95f105897462a630d8312eabea6a0f905c3e3e1
[ "MIT" ]
null
null
null
lianxi/abc.py
xuguoqiang1/qiang
a95f105897462a630d8312eabea6a0f905c3e3e1
[ "MIT" ]
null
null
null
lianxi/abc.py
xuguoqiang1/qiang
a95f105897462a630d8312eabea6a0f905c3e3e1
[ "MIT" ]
null
null
null
# coding=utf-8 from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) class Role(db.Model): # 定义表名 __tablename__ = 'roles' # 定义列对象 id = db.Column(db.Integer, primary_key=True) name = db.C...
24.967742
62
0.682171
544
0.686869
0
0
0
0
0
0
91
0.114899
09fb1d9a7c357f2bc49fb2f43274b073bfff333e
4,026
py
Python
foreign_languages/anderson.py
ds-modules/NESTUD-190A
54ca1cd9a8f369f48946147f72377f874738f7d5
[ "MIT" ]
6
2017-11-06T03:18:12.000Z
2019-10-02T19:41:06.000Z
foreign_languages/anderson.py
admndrsn/NESTUD-190A
54ca1cd9a8f369f48946147f72377f874738f7d5
[ "MIT" ]
null
null
null
foreign_languages/anderson.py
admndrsn/NESTUD-190A
54ca1cd9a8f369f48946147f72377f874738f7d5
[ "MIT" ]
2
2018-02-09T01:04:58.000Z
2019-06-19T17:45:34.000Z
from IPython.core.display import display, HTML import translation class translate(object): id_start = 0 def __init__(self, column_types, language_to='en'): self.num_of_columns = len(column_types) + 1 column_types.insert(0, 'original text') self.column_types = column_types self.language_to = language_to...
31.209302
132
0.721063
3,955
0.982365
993
0.246647
0
0
0
0
1,506
0.374069
61cb92b7eff849f550f556cfcf71f302f039dac7
1,315
py
Python
landdox/core.py
natefduncan/landdox
58908554034577cc20c6f89ee6056da90cbfbd4e
[ "MIT" ]
1
2019-12-13T16:19:56.000Z
2019-12-13T16:19:56.000Z
landdox/core.py
natefduncan/landdox
58908554034577cc20c6f89ee6056da90cbfbd4e
[ "MIT" ]
null
null
null
landdox/core.py
natefduncan/landdox
58908554034577cc20c6f89ee6056da90cbfbd4e
[ "MIT" ]
null
null
null
import requests import json import pandas as pd import os from .endpoints import * class Client: endpoints = { "contacts" : contacts, "leases" : leases, "units" : units, "wells" : wells, "custom" : custom, "tracts" : tracts, "payments" : payments } ...
26.3
62
0.580989
1,216
0.924715
0
0
0
0
0
0
229
0.174144
61cd1b7623e09e8563a60f3d87a7caf270f2faa2
589
py
Python
src/signalplotter/qt/makePyUI.py
jowanpittevils/Databasemanager_Signalplotter
993152ad15793054df2acf386eb1c9a76610b789
[ "BSD-3-Clause" ]
null
null
null
src/signalplotter/qt/makePyUI.py
jowanpittevils/Databasemanager_Signalplotter
993152ad15793054df2acf386eb1c9a76610b789
[ "BSD-3-Clause" ]
null
null
null
src/signalplotter/qt/makePyUI.py
jowanpittevils/Databasemanager_Signalplotter
993152ad15793054df2acf386eb1c9a76610b789
[ "BSD-3-Clause" ]
null
null
null
#%% def makeUI(uiNames): import sys, os print('Check the pwd first, It must be at .../SignalPlotter/qt.') print(os.getcwd()) p0 = os.path.dirname(sys.executable) for uiName in (uiNames): print('===== for: ',uiName,' ======') p1 = '"'+p0+'\Scripts\pyuic5.exe'+'" ' p1 += ' -x...
21.035714
69
0.50764
0
0
0
0
0
0
0
0
188
0.319185
61cd45cf1541403e9fd5c523d38b1e30cb5cbcc0
1,640
py
Python
scraper.py
mikeku1116/python-accupass-scraper
ad3301fde373ce68e55459ba5af0273599d25e37
[ "MIT" ]
null
null
null
scraper.py
mikeku1116/python-accupass-scraper
ad3301fde373ce68e55459ba5af0273599d25e37
[ "MIT" ]
null
null
null
scraper.py
mikeku1116/python-accupass-scraper
ad3301fde373ce68e55459ba5af0273599d25e37
[ "MIT" ]
null
null
null
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from bs4 import BeautifulSoup import pandas as pd # 安裝Chrome驅動程式及建立Chrome物件 browser = webdriver.Chrome(ChromeDriverManager().install()) browser.get( "https://old.accupass.com/search/r/0/0/0/0/4/0/00010101/99991231?q=python") ...
30.943396
111
0.65
0
0
0
0
0
0
0
0
880
0.469083
61cea84c27bf7df9b0289ed47ffee2781ddbdc17
3,148
py
Python
mpcontribs-users/mpcontribs/users/swf/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
1
2019-07-03T04:38:58.000Z
2019-07-03T04:38:58.000Z
mpcontribs-users/mpcontribs/users/swf/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
null
null
null
mpcontribs-users/mpcontribs/users/swf/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
1
2019-07-03T04:39:04.000Z
2019-07-03T04:39:04.000Z
from mpcontribs.config import mp_level01_titles from mpcontribs.io.core.recdict import RecursiveDict from mpcontribs.io.core.utils import clean_value, get_composition_from_string from mpcontribs.users.utils import duplicate_check def round_to_100_percent(number_set, digit_after_decimal=1): unround_numbers = [ ...
43.123288
91
0.656607
0
0
0
0
2,228
0.707751
0
0
417
0.132465
61cec369b3732fca5135012a654d9aa0eab32326
7,944
py
Python
MTVulnerability/utils/losses_pytorch.py
yamizi/taskaugment
8393e15d7ae16f267592edf1d67e20368aeeb1b5
[ "MIT" ]
null
null
null
MTVulnerability/utils/losses_pytorch.py
yamizi/taskaugment
8393e15d7ae16f267592edf1d67e20368aeeb1b5
[ "MIT" ]
null
null
null
MTVulnerability/utils/losses_pytorch.py
yamizi/taskaugment
8393e15d7ae16f267592edf1d67e20368aeeb1b5
[ "MIT" ]
null
null
null
import sys, os sys.path.append("./midlevel-reps") from visualpriors.taskonomy_network import TaskonomyDecoder import torch import torch.nn.functional as F import torch.nn as nn SMOOTH = 1e-6 CHANNELS_TO_TASKS = { 1: ['colorization', 'edge_texture', 'edge_occlusion', 'keypoints3d', 'keypoints2d', 'reshading', 'd...
45.136364
276
0.656596
2,886
0.363293
0
0
0
0
0
0
2,002
0.252014
61cf7342efb940a3f5d7c9b44e90c3d3f4d12610
21,205
py
Python
src/trails/flow_model.py
BenDickens/trails
a89a1a901c7be38cdcb7a59339587e518ab8f14d
[ "MIT" ]
4
2020-09-14T07:20:19.000Z
2021-04-22T14:23:04.000Z
src/trails/flow_model.py
BenDickens/trails
a89a1a901c7be38cdcb7a59339587e518ab8f14d
[ "MIT" ]
5
2021-03-17T17:02:27.000Z
2021-08-31T10:09:38.000Z
src/trails/flow_model.py
BenDickens/trails
a89a1a901c7be38cdcb7a59339587e518ab8f14d
[ "MIT" ]
3
2020-09-07T07:35:28.000Z
2021-04-22T14:23:39.000Z
import os,sys import numpy as np import pandas as pd import geopandas as gpd import matplotlib.pyplot as plt import pygeos from osgeo import gdal from tqdm import tqdm import igraph as ig import contextily as ctx from rasterstats import zonal_stats import time import pylab as pl from IPython import display import seabo...
35.400668
145
0.636831
0
0
0
0
0
0
0
0
7,174
0.337934
61cffba0eebf31780c12f21faf032f94e065f6a5
1,238
py
Python
offsite/core/utils.py
wh1te909/backup-offsite
694f773583eb825b44ff20c51598ac9e1106cd32
[ "MIT" ]
4
2021-01-20T15:45:35.000Z
2021-07-09T02:15:31.000Z
offsite/core/utils.py
wh1te909/backup-offsite
694f773583eb825b44ff20c51598ac9e1106cd32
[ "MIT" ]
6
2020-08-02T23:31:07.000Z
2021-09-22T19:19:50.000Z
offsite/core/utils.py
wh1te909/backup-offsite
694f773583eb825b44ff20c51598ac9e1106cd32
[ "MIT" ]
null
null
null
from channels.auth import AuthMiddlewareStack from knox.auth import TokenAuthentication from django.contrib.auth.models import AnonymousUser from channels.db import database_sync_to_async @database_sync_to_async def get_user(access_token): try: auth = TokenAuthentication() token = access_token.de...
25.265306
86
0.697092
643
0.519386
0
0
309
0.249596
210
0.169628
97
0.078352
61d14e7bc92cdd86e7f3f92f3039ee396ac2a457
6,841
py
Python
unik/indexing.py
balbasty/unik
7b8b2a0989495eec7bc0db6c672ce904cbcb1063
[ "MIT" ]
null
null
null
unik/indexing.py
balbasty/unik
7b8b2a0989495eec7bc0db6c672ce904cbcb1063
[ "MIT" ]
null
null
null
unik/indexing.py
balbasty/unik
7b8b2a0989495eec7bc0db6c672ce904cbcb1063
[ "MIT" ]
null
null
null
"""Access / change tensor shape.""" import tensorflow as tf import numpy as np from .magik import tensor_compat from .alloc import zeros_like from .types import has_tensor, as_tensor, cast, dtype from .shapes import shape, reshape, flatten, transpose, unstack from ._math_for_indexing import cumprod, minimum, maximum f...
35.262887
77
0.582517
0
0
0
0
6,483
0.947668
0
0
2,382
0.348195
61d192d69ecdae0462072ff12464ac90f01f69d0
1,478
py
Python
aleph/views/alerts_api.py
adikadashrieq/aleph
acc03197c10e511a279ae3a05120187223f173d2
[ "MIT" ]
1
2019-06-18T21:35:59.000Z
2019-06-18T21:35:59.000Z
aleph/views/alerts_api.py
heartofstone/aleph
d66b6615d2bfa10c291c63754f53b468de8bebde
[ "MIT" ]
null
null
null
aleph/views/alerts_api.py
heartofstone/aleph
d66b6615d2bfa10c291c63754f53b468de8bebde
[ "MIT" ]
null
null
null
from flask import Blueprint, request from aleph.core import db from aleph.model import Alert from aleph.search import DatabaseQueryResult from aleph.views.forms import AlertSchema from aleph.views.serializers import AlertSerializer from aleph.views.util import require, obj_or_404 from aleph.views.util import parse_req...
31.446809
71
0.750338
0
0
0
0
1,050
0.710419
0
0
133
0.089986
61d210a06894e407303586520efa2e44fe445461
11,283
py
Python
run.py
Acforest/LogPrompt
199766cea9988bc6e8b1c71352b090da68bbb71d
[ "Apache-2.0" ]
null
null
null
run.py
Acforest/LogPrompt
199766cea9988bc6e8b1c71352b090da68bbb71d
[ "Apache-2.0" ]
null
null
null
run.py
Acforest/LogPrompt
199766cea9988bc6e8b1c71352b090da68bbb71d
[ "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 th...
58.46114
119
0.660197
0
0
0
0
0
0
0
0
4,524
0.400957
61d24122d7792980c0b72c95b9dc3ec6c9efd631
2,282
py
Python
data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
from keras.models import Sequential from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D from keras.layers.core import Activation, Dense, Flatten, Dropout from keras.optimizers import Adam from keras.regularizers import l2 from keras import backend as K def center_normalize(x)...
34.575758
82
0.659509
0
0
0
0
0
0
0
0
212
0.092901
61d29e48cb817ece86e476bffbf91b00d5532c33
8,685
py
Python
BuildDeb.py
KOLANICH/GraalVM_deb_packages_CI
f41786b4daa11efebe24402f5000111137365b4f
[ "Apache-2.0", "Unlicense" ]
null
null
null
BuildDeb.py
KOLANICH/GraalVM_deb_packages_CI
f41786b4daa11efebe24402f5000111137365b4f
[ "Apache-2.0", "Unlicense" ]
null
null
null
BuildDeb.py
KOLANICH/GraalVM_deb_packages_CI
f41786b4daa11efebe24402f5000111137365b4f
[ "Apache-2.0", "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import sys import struct import re import os from itertools import chain import warnings import tarfile import sh from tqdm import tqdm from pydebhelper import * from getLatestVersionAndURLWithGitHubAPI import getTargets def genGraalProvides(start=6, end=8): # java 12 still not supported ye...
32.773585
691
0.687737
0
0
0
0
0
0
0
0
3,383
0.389522
61d2ae9ec01343c7273afc66fcb5912f5895801a
6,267
py
Python
mergify_engine/utils.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
mergify_engine/utils.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
mergify_engine/utils.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2017 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
27.977679
88
0.6322
1,671
0.266507
161
0.025678
188
0.029984
0
0
1,643
0.262041
61d440e6d71c032e6b0102e0319c9ad174f35ff4
1,750
py
Python
milefrienddb/models/vehicles.py
jcrjaci/mil_test
ed54f55c5aacd8ffd110b7c173422dbd0cac631f
[ "MIT" ]
null
null
null
milefrienddb/models/vehicles.py
jcrjaci/mil_test
ed54f55c5aacd8ffd110b7c173422dbd0cac631f
[ "MIT" ]
null
null
null
milefrienddb/models/vehicles.py
jcrjaci/mil_test
ed54f55c5aacd8ffd110b7c173422dbd0cac631f
[ "MIT" ]
null
null
null
"""Vehicle's app models.""" import uuid from django.db import models from .clients import Client class Vehicle(models.Model): """Model representing a vehicle.""" road_worthiness_path = 'vehicles/certs/road_worthiness' ownership_path = 'vehicles/certs/ownership' photo_path = 'vehicles/photos' id...
38.043478
87
0.737714
1,649
0.942286
0
0
0
0
0
0
226
0.129143
61d6182a3cde9be8c7c4791931417d4e0d9e7b55
187
py
Python
ejercicio_4.py
Laurardila440/taller-de-secuencias
9db216d2431661e0777273fc5b8360a316d7dbd2
[ "Apache-2.0" ]
null
null
null
ejercicio_4.py
Laurardila440/taller-de-secuencias
9db216d2431661e0777273fc5b8360a316d7dbd2
[ "Apache-2.0" ]
null
null
null
ejercicio_4.py
Laurardila440/taller-de-secuencias
9db216d2431661e0777273fc5b8360a316d7dbd2
[ "Apache-2.0" ]
null
null
null
""" Entradas compra-->int-->c salidas Descuento-->flot-->d """ c=float(input("digite compra")) #caja negra d=(c*0.15) total=(c-d) #Salidas print("el total a pagar es de :"+str(total))
14.384615
44
0.641711
0
0
0
0
0
0
0
0
125
0.668449
61d6aa3833e84422d5bd54157900ea1d35ffca0b
878
py
Python
429.py
geethakamath18/Leetcode
8e55e0a47ee35ed100b30dda6682c7ce1033d4b2
[ "MIT" ]
null
null
null
429.py
geethakamath18/Leetcode
8e55e0a47ee35ed100b30dda6682c7ce1033d4b2
[ "MIT" ]
null
null
null
429.py
geethakamath18/Leetcode
8e55e0a47ee35ed100b30dda6682c7ce1033d4b2
[ "MIT" ]
null
null
null
#LeetCode problem 429: N-ary Tree Level Order Traversal """ # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """ class Solution: def levelOrder(self, root: 'Node') -> List[List[int]]: res=[] h=self.getHeig...
26.606061
61
0.544419
669
0.761959
0
0
0
0
0
0
223
0.253986
61d7cc4850de782acf97ce8fd6bae60d5d5eb06f
544
py
Python
PyhonServer/app-client.py
sixfourtwo/auhack19
65b94c6cbdbfbd50e355c12b8ca2792b3b086321
[ "Apache-2.0" ]
null
null
null
PyhonServer/app-client.py
sixfourtwo/auhack19
65b94c6cbdbfbd50e355c12b8ca2792b3b086321
[ "Apache-2.0" ]
null
null
null
PyhonServer/app-client.py
sixfourtwo/auhack19
65b94c6cbdbfbd50e355c12b8ca2792b3b086321
[ "Apache-2.0" ]
null
null
null
# importing the requests library import requests import json # api-endpoint URL = "http://127.0.0.1:80/water_mark" # defining a params dict for the parameters to be sent to the API # data is picture data # tagString is the text to embed into picture. data = { "data":"This is the original text", "tagStri...
22.666667
66
0.6875
0
0
0
0
0
0
0
0
347
0.636697
61d90f523acdcf1af2ba8df7242ffe2e2fdeac93
9,827
py
Python
memnet.py
404akhan/memnet
a8cf9e0a480575d9d36de6fa3357f667d64e0b05
[ "BSD-3-Clause" ]
1
2018-02-01T05:17:13.000Z
2018-02-01T05:17:13.000Z
memnet.py
404akhan/memnet
a8cf9e0a480575d9d36de6fa3357f667d64e0b05
[ "BSD-3-Clause" ]
null
null
null
memnet.py
404akhan/memnet
a8cf9e0a480575d9d36de6fa3357f667d64e0b05
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn.functional as F import torch.nn.init as init from torch import nn, autograd from torch.utils.data import DataLoader from babi import BabiDataset, pad_collate from torch.nn.utils import clip_grad_norm torch.backends.cudnn.benchmark = True torch.backends.cudnn.fastest = True class MemoryC...
37.083019
110
0.623792
4,568
0.464842
0
0
0
0
0
0
661
0.067264
61d93349709f00bb603d8566d8afdb83080026fb
3,444
py
Python
tests/test_tba.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
11
2019-10-14T02:05:38.000Z
2022-03-10T14:10:22.000Z
tests/test_tba.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
29
2019-09-02T05:49:40.000Z
2022-02-26T00:57:54.000Z
tests/test_tba.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
1
2021-04-16T20:26:13.000Z
2021-04-16T20:26:13.000Z
from lake.models.tba_model import TBAModel from lake.modules.transpose_buffer_aggregation import TransposeBufferAggregation from lake.passes.passes import lift_config_reg import magma as m from magma import * import fault import tempfile import kratos as k import random as rand import pytest def test_tba(word_width=1...
29.947826
94
0.594948
0
0
0
0
0
0
0
0
174
0.050523
61da398102287561106f2583dbf3dd6a0d400ea3
1,442
py
Python
2018/02/py/run.py
Bigsby/aoc
409fefbb0467628fa298288064acb622bb53ee58
[ "CC0-1.0" ]
1
2021-06-11T17:24:05.000Z
2021-06-11T17:24:05.000Z
2018/02/py/run.py
Bigsby/aoc
409fefbb0467628fa298288064acb622bb53ee58
[ "CC0-1.0" ]
null
null
null
2018/02/py/run.py
Bigsby/aoc
409fefbb0467628fa298288064acb622bb53ee58
[ "CC0-1.0" ]
null
null
null
#! /usr/bin/python3 import sys, os, time from typing import List, Tuple from itertools import combinations def part1(ids: List[str]) -> int: twice_count = 0 thrice_count = 0 for id in ids: id_counts = { id.count(c) for c in id } twice_count += 2 in id_counts thrice_count += 3 in i...
25.75
72
0.615811
0
0
0
0
0
0
0
0
140
0.097087
61da655b21d56bf52e1b1c392472699b90dc9b53
275
py
Python
text_directions.py
ErnestoPena/Game-Of-Life.-Python
046bca4ae1c69e08efed4f45057b097653410ec8
[ "MIT" ]
null
null
null
text_directions.py
ErnestoPena/Game-Of-Life.-Python
046bca4ae1c69e08efed4f45057b097653410ec8
[ "MIT" ]
null
null
null
text_directions.py
ErnestoPena/Game-Of-Life.-Python
046bca4ae1c69e08efed4f45057b097653410ec8
[ "MIT" ]
null
null
null
import pygame def print(text, window): font = pygame.font.SysFont('Times New Roman', 18) header_text = font.render(text,1,(255,255,0)) window.blit(header_text, (1000 + (200/2 - header_text.get_width()/2), 680 + (header_text.get_height()/2)))
45.833333
122
0.632727
0
0
0
0
0
0
0
0
17
0.061818
61db9a4dde565ed6cc9ccd45b6a858a56b15b618
515
py
Python
brummi/config.py
fredreichbier/brummi
d833e6dc0b74c8bddea225c785b3cba463b13ecd
[ "MIT" ]
1
2015-11-05T04:35:07.000Z
2015-11-05T04:35:07.000Z
brummi/config.py
fredreichbier/brummi
d833e6dc0b74c8bddea225c785b3cba463b13ecd
[ "MIT" ]
null
null
null
brummi/config.py
fredreichbier/brummi
d833e6dc0b74c8bddea225c785b3cba463b13ecd
[ "MIT" ]
null
null
null
import pkg_resources from . import BrummiRepository DEFAULTS = { 'templates': pkg_resources.resource_filename('brummi', 'templates'), 'out_path': 'docs', } class Config(object): def __init__(self, options): self.options = DEFAULTS.copy() self.options.update(options) def launch(self):...
23.409091
72
0.615534
347
0.673786
0
0
0
0
0
0
77
0.149515
61de22931c74120ebd50c4d032782c041e459df7
730
py
Python
kittiground/__init__.py
JeremyBYU/polylidar-kitti
bfad0dc4a74e136d2841dccf3ccc05d982f18a8e
[ "MIT" ]
null
null
null
kittiground/__init__.py
JeremyBYU/polylidar-kitti
bfad0dc4a74e136d2841dccf3ccc05d982f18a8e
[ "MIT" ]
null
null
null
kittiground/__init__.py
JeremyBYU/polylidar-kitti
bfad0dc4a74e136d2841dccf3ccc05d982f18a8e
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np THIS_FILE = Path(__file__) THIS_DIR = THIS_FILE.parent DEFAULT_CONFIG_FILE = THIS_DIR / 'config' / 'default.yaml' # Width/height of the visual screens IMG_WIDTH = 1242 IMG_HEIGHT = 375 # INTRINISCS = np.array([[649.51905284, 0.00000000, 620.50000000], # ...
38.421053
75
0.610959
0
0
0
0
0
0
0
0
253
0.346575
61df694948c2ba5c7d34c79e97268eab5f090a30
3,272
py
Python
palette/core/color_transfer.py
SuziKim/PaletteSelection
cfc0052996b5c8dc1da2d6e30798dd1fed138ebe
[ "MIT" ]
23
2015-08-25T12:31:44.000Z
2021-12-15T03:18:12.000Z
palette/core/color_transfer.py
SuziKim/PaletteSelection
cfc0052996b5c8dc1da2d6e30798dd1fed138ebe
[ "MIT" ]
null
null
null
palette/core/color_transfer.py
SuziKim/PaletteSelection
cfc0052996b5c8dc1da2d6e30798dd1fed138ebe
[ "MIT" ]
7
2017-07-27T10:57:36.000Z
2022-02-22T06:51:44.000Z
# -*- coding: utf-8 -*- ## @package palette.core.color_transfer # # Color transfer. # @author tody # @date 2015/09/16 import numpy as np from scipy.interpolate import Rbf import matplotlib.pyplot as plt from palette.core.lab_slices import LabSlice, LabSlicePlot, Lab2rgb_py ## Color transfer for ab co...
37.181818
93
0.652812
2,903
0.887225
0
0
0
0
0
0
610
0.18643
61dfafddb5a99f013e5962a29c6779ac49a5f150
1,447
py
Python
CursoEmVideoPython/desafio95.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
null
null
null
CursoEmVideoPython/desafio95.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
1
2020-07-04T16:27:25.000Z
2020-07-04T16:27:25.000Z
CursoEmVideoPython/desafio95.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
null
null
null
scoult = dict() gols = list() time = list() temp = 0 while True: scoult['Jogador'] = str(input('Qual o nome do jogador: ')) scoult['Número partidas'] = int(input('Quantas partidas foram jogadas? ')) for i in range(0,scoult['Número partidas']): gols.append(int(input(f'Quantos gols foram marcados na p...
38.078947
109
0.561852
0
0
0
0
0
0
0
0
685
0.471763
61dfc58457362e0a41be0f73d8c2ed155141035c
428
py
Python
Section07_Bridge/script-Bridge.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
1
2020-10-20T07:41:51.000Z
2020-10-20T07:41:51.000Z
Section07_Bridge/script-Bridge.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
null
null
null
Section07_Bridge/script-Bridge.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
null
null
null
# Circles and squares # Each can be rendered in vector or raster form from Section07_Bridge.Brigde.Circle import Circle from Section07_Bridge.Brigde.RasterRenderer import RasterRenderer from Section07_Bridge.Brigde.VectorRenderer import VectorRenderer if __name__ == '__main__': raster = RasterRenderer() vector...
30.571429
65
0.766355
0
0
0
0
0
0
0
0
78
0.182243
61e1ff665914cfb40790ee569edb6f9cb201dad5
3,668
py
Python
Algorithms/On-Policy/A2C/DISCOVER_A2C.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
Algorithms/On-Policy/A2C/DISCOVER_A2C.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
Algorithms/On-Policy/A2C/DISCOVER_A2C.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.optim as optim from utils import init class Explorer(nn.Module): def __init__(self, state_dim, max_action, exp_regularization): super(Explorer, self).__init__() init_ = lambda m: init(m, nn.init.orthogonal_, lambda x: nn.init.con...
37.050505
104
0.638768
3,555
0.969193
0
0
0
0
0
0
27
0.007361
61e3abea3e991562a75549fe727c93817d1999de
3,400
py
Python
user/beaninfo_Global.py
dvdrm/gd
c004724344577bb608fa0611d10c16b211995f72
[ "Apache-2.0" ]
null
null
null
user/beaninfo_Global.py
dvdrm/gd
c004724344577bb608fa0611d10c16b211995f72
[ "Apache-2.0" ]
null
null
null
user/beaninfo_Global.py
dvdrm/gd
c004724344577bb608fa0611d10c16b211995f72
[ "Apache-2.0" ]
null
null
null
from telethon import events, Button from .login import user from .. import jdbot from ..bot.utils import cmd, TASK_CMD,split_list, press_event from ..diy.utils import read, write import asyncio import re @user.on(events.NewMessage(pattern=r'^setbd', outgoing=True)) async def SetBeanDetailInfo(event): try: ...
33.009709
134
0.516471
0
0
0
0
3,418
0.939269
3,297
0.906018
842
0.231382
61e4ce6929b3cf5b02ae69957ea9065425f62a24
2,409
py
Python
samples/boxcheck.py
cg2v/box_requests
024141a263c8918962957b75d208c532c7b853f0
[ "Apache-2.0" ]
null
null
null
samples/boxcheck.py
cg2v/box_requests
024141a263c8918962957b75d208c532c7b853f0
[ "Apache-2.0" ]
null
null
null
samples/boxcheck.py
cg2v/box_requests
024141a263c8918962957b75d208c532c7b853f0
[ "Apache-2.0" ]
1
2018-10-23T15:48:00.000Z
2018-10-23T15:48:00.000Z
#!/usr/bin/python import box_requests import requests import os import sys import time import socket import optparse import logging def checktime(path, days): try: r=os.stat(path) except OSError: return False return (time.time() - r.st_mtime) < (days * 86400) def logfailure(msg): print >> sy...
33.929577
120
0.688252
0
0
0
0
0
0
0
0
916
0.380241
61e6e408c9d358e1ba90de75b214eb2a33ce5303
2,663
py
Python
sourcecode/src/vx/lha/Main.py
ivarvb/LHA
b3b7613180d533468edf762195922b73c70c525c
[ "MIT" ]
null
null
null
sourcecode/src/vx/lha/Main.py
ivarvb/LHA
b3b7613180d533468edf762195922b73c70c525c
[ "MIT" ]
null
null
null
sourcecode/src/vx/lha/Main.py
ivarvb/LHA
b3b7613180d533468edf762195922b73c70c525c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author: Ivar """ from Description import * from Classification import * if __name__ == "__main__": inputdir = "../../../../data/LHA/dataset_1" outputdir = inputdir+"/csv/exp/"+Util.now() template = [ { "name":"RAD", ...
23.156522
56
0.437852
0
0
0
0
0
0
0
0
1,179
0.442734
61e6fadc19dca2b7aaa1c0e67b41806d94ed6219
12,263
py
Python
pyemits/core/ml/regression/trainer.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
6
2021-10-21T14:13:25.000Z
2021-12-26T12:22:51.000Z
pyemits/core/ml/regression/trainer.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
pyemits/core/ml/regression/trainer.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor, AdaBoostRegressor from sklearn.neural_network import MLPRegressor from sklearn.linear_model import ElasticNet, Ridge, Lasso, BayesianRidge, HuberRegressor from xgboost import XGBRegressor from lightgbm import LGBMRegressor from pyemits.core....
40.471947
125
0.644133
8,085
0.6593
0
0
0
0
0
0
2,669
0.217647
61e7231e5da397e138846e32322894665e310b28
7,092
py
Python
network_core/network_graph.py
markusgl/SocialCompanion
e816af21c600b33dbcac25d088d4d75957d0349a
[ "MIT" ]
2
2018-12-21T12:55:21.000Z
2019-05-29T06:35:58.000Z
network_core/network_graph.py
markusgl/SocialCompanion
e816af21c600b33dbcac25d088d4d75957d0349a
[ "MIT" ]
8
2019-12-16T21:08:36.000Z
2021-03-31T18:58:35.000Z
network_core/network_graph.py
markusgl/SocialCompanion
e816af21c600b33dbcac25d088d4d75957d0349a
[ "MIT" ]
null
null
null
""" knowledge graph representation using neo4j this class uses py2neo with will be the final version """ import os import json from py2neo import Graph, Relationship, NodeMatcher, Node from network_core.ogm.node_objects import Me, Contact, Misc USERTYPE = "User" CONTACTTYPE = "Contact" ROOT_DIR = os.path.dirname(os.p...
30.437768
129
0.563593
6,402
0.902707
0
0
0
0
0
0
2,155
0.303864
61e83a0c30e6a67dbfeb574d16e0f027af82160b
538
py
Python
randutils/lists.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
1
2021-08-03T17:34:31.000Z
2021-08-03T17:34:31.000Z
randutils/lists.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
null
null
null
randutils/lists.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
null
null
null
import numpy as np from .chance import by_chance from .exceptions import EmptyListError def pop_random_entry(lst): if not lst: raise EmptyListError index = np.random.randint(0, len(lst)) return lst.pop(index) def pick_random_entry(lst): if not lst: raise EmptyListError index =...
18.551724
53
0.689591
0
0
0
0
0
0
0
0
0
0
61ea28b84ee81d7761635919c06d71cde4b781c4
2,355
py
Python
src/train_and_evaluate.py
rajeevteejwal/mlops_wine_quality
970ce27712932ca535309230da69fc5c29d82c38
[ "MIT" ]
null
null
null
src/train_and_evaluate.py
rajeevteejwal/mlops_wine_quality
970ce27712932ca535309230da69fc5c29d82c38
[ "MIT" ]
null
null
null
src/train_and_evaluate.py
rajeevteejwal/mlops_wine_quality
970ce27712932ca535309230da69fc5c29d82c38
[ "MIT" ]
null
null
null
import os import pandas as pd from sklearn.linear_model import ElasticNet from sklearn.metrics import r2_score, mean_squared_error, mean_absolute_error import argparse import numpy as np import json import joblib from get_data import read_config def evaluate_metrics(actual, pred): r2 = r2_score(actual,pred) ma...
31.824324
77
0.675159
0
0
0
0
0
0
0
0
421
0.178769
61ebdb6920b4b4c3e3a8b0b2f9c1a74ed61083fb
961
py
Python
examples/plot_magnitudes.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
examples/plot_magnitudes.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
examples/plot_magnitudes.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
""" Visualisation of maximum/minimum magnitude for GCVS stars. """ import sys import matplotlib.pyplot as plot from pygcvs import read_gcvs if __name__ == '__main__': try: gcvs_file = sys.argv[1] except IndexError: print('Usage: python plot_magnitudes.py <path to iii.dat>') else: ...
30.03125
73
0.64204
0
0
0
0
0
0
0
0
334
0.347555
61ebe9703928c7c7be701af932bf4a612970dd3f
382
py
Python
InvenTree/stock/migrations/0028_auto_20200421_0724.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
656
2017-03-29T22:06:14.000Z
2022-03-30T11:23:52.000Z
InvenTree/stock/migrations/0028_auto_20200421_0724.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
1,545
2017-04-10T23:26:04.000Z
2022-03-31T18:32:10.000Z
InvenTree/stock/migrations/0028_auto_20200421_0724.py
fablabbcn/InvenTree
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
[ "MIT" ]
196
2017-03-28T03:06:21.000Z
2022-03-28T11:53:29.000Z
# Generated by Django 3.0.5 on 2020-04-21 07:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stock', '0027_stockitem_sales_order'), ] operations = [ migrations.RenameField( model_name='stockitem', old_name='sales_orde...
20.105263
48
0.604712
297
0.777487
0
0
0
0
0
0
124
0.324607
61ec2ee4a4b5c284984cd0be3baf3b3ee50702c4
1,595
py
Python
weideshop/urls.py
michaelgichia/weideshop
01a408b358b9ad7d52747b42c36dc16206b4b915
[ "BSD-2-Clause" ]
null
null
null
weideshop/urls.py
michaelgichia/weideshop
01a408b358b9ad7d52747b42c36dc16206b4b915
[ "BSD-2-Clause" ]
null
null
null
weideshop/urls.py
michaelgichia/weideshop
01a408b358b9ad7d52747b42c36dc16206b4b915
[ "BSD-2-Clause" ]
null
null
null
"""weideshop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
37.093023
106
0.717241
0
0
0
0
0
0
0
0
854
0.535423
61ed3298ce258d1708cb601b97ca2bb3d32448c9
18,023
py
Python
netor/tinydb/scripts/netorconf.py
aegiacometti/neto
4169a93a4d789facfe9a41d214b1a6c15e8f2fb9
[ "Apache-2.0" ]
1
2020-01-02T04:31:11.000Z
2020-01-02T04:31:11.000Z
netor/tinydb/scripts/netorconf.py
aegiacometti/neto
4169a93a4d789facfe9a41d214b1a6c15e8f2fb9
[ "Apache-2.0" ]
null
null
null
netor/tinydb/scripts/netorconf.py
aegiacometti/neto
4169a93a4d789facfe9a41d214b1a6c15e8f2fb9
[ "Apache-2.0" ]
1
2021-02-23T04:34:48.000Z
2021-02-23T04:34:48.000Z
#!/usr/bin/env python3 import os import sys import configparser import fileinput import netorlogging import datetime from shutil import copyfile def _netor_config(): """ It is used for updating the Neto home directory in the configuration files and scripts. This is useful, if you want to have 2 working ...
42.011655
119
0.668146
0
0
0
0
0
0
0
0
9,813
0.544471
61edb2c25c99c318b707a55fcdfcaaf007b47999
4,780
py
Python
test/api/mutations/test_check_repository_by_commit.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
test/api/mutations/test_check_repository_by_commit.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
test/api/mutations/test_check_repository_by_commit.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
import pytest from zoo.auditing.models import Issue from zoo.auditing.check_discovery import Effort, Kind, Severity pytestmark = pytest.mark.django_db @pytest.fixture def scenario(mocker, repository_factory, issue_factory, check_factory, fake_path): owner, name, sha = "games", "lemmings", "GINLNNIIJL" repo...
34.142857
88
0.604393
0
0
3,022
0.632218
3,038
0.635565
0
0
1,515
0.316946
61ee17d15d59c91dd4a80c2ec70be31d3dc1095f
134
py
Python
start/hello_world.py
nguyenductamlhp/tensorflow_demo
7c4b55dff80dd435806a1b22dee6eb32ae39c02d
[ "MIT" ]
null
null
null
start/hello_world.py
nguyenductamlhp/tensorflow_demo
7c4b55dff80dd435806a1b22dee6eb32ae39c02d
[ "MIT" ]
null
null
null
start/hello_world.py
nguyenductamlhp/tensorflow_demo
7c4b55dff80dd435806a1b22dee6eb32ae39c02d
[ "MIT" ]
1
2018-11-05T06:40:09.000Z
2018-11-05T06:40:09.000Z
# -*- coding: utf-8 -*- import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))
19.142857
41
0.671642
0
0
0
0
0
0
0
0
43
0.320896
61f0c4fd22f5b70221a5b58b1db5553ecb4e26b8
755
py
Python
behavioral/command/logic/generators/trader_generator.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/command/logic/generators/trader_generator.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/command/logic/generators/trader_generator.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
from random import randint from typing import Optional from behavioral.command.data import Trader from behavioral.command.logic.generators import ItemsGenerator class TraderGenerator: __MIN_GOLD = 0 __MAX_GOLD = 450 def __init__(self) -> None: self._items_generator = ItemsGenerator() def _g...
30.2
98
0.717881
590
0.781457
0
0
0
0
0
0
0
0
61f42117264c7b5f1ae0b590ff1b7ddfa85808ba
11,119
py
Python
test3.py
dg1223/GestureRecognition
07078b0b8340c8b94f42414efe0ed36158e8c0ea
[ "MIT" ]
2
2019-02-12T17:59:41.000Z
2019-10-27T03:36:08.000Z
test3.py
dg1223/GestureRecognition
07078b0b8340c8b94f42414efe0ed36158e8c0ea
[ "MIT" ]
null
null
null
test3.py
dg1223/GestureRecognition
07078b0b8340c8b94f42414efe0ed36158e8c0ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Aug 29 00:07:11 2015 @author: Shamir """ def CalculateValidData(): # Calculate the number of missing values in the array number_of_nan = len(readFile.values[m][pandas.isnull(readFile.values[m])]) length_of_array = len(readF...
63.176136
229
0.461462
0
0
0
0
0
0
0
0
1,907
0.171508
61f65e88bb74b76264401d01893c2004742b5044
1,919
py
Python
build.py
micklenguyen/hw2-scripting
3603a2c4d7518890eacc4f071f347f90dd295ee6
[ "MIT" ]
null
null
null
build.py
micklenguyen/hw2-scripting
3603a2c4d7518890eacc4f071f347f90dd295ee6
[ "MIT" ]
null
null
null
build.py
micklenguyen/hw2-scripting
3603a2c4d7518890eacc4f071f347f90dd295ee6
[ "MIT" ]
null
null
null
def main(): content_pages = auto_populate_content_files() for page in content_pages: filepath = page['filepath'] output = page['output'] title = page['title'] # Read content of html pages content = open(filepath).read() # Invoke function to return finished_page (base.html with filled in content) fi...
24.922078
97
0.730589
0
0
0
0
0
0
0
0
832
0.433559
61f94a0bece7deb448882a08f6a458e64ef93c8e
35,113
py
Python
src/jote/jote.py
InformaticsMatters/data-manager-job-tester
f8915e005f16685d159535a2455628eb1d7ac518
[ "MIT" ]
null
null
null
src/jote/jote.py
InformaticsMatters/data-manager-job-tester
f8915e005f16685d159535a2455628eb1d7ac518
[ "MIT" ]
1
2022-01-28T10:06:28.000Z
2022-01-31T14:51:52.000Z
src/jote/jote.py
InformaticsMatters/data-manager-job-tester
f8915e005f16685d159535a2455628eb1d7ac518
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Informatics Matters Job Tester (JOTE). Get help running this utility with 'jote --help' """ import argparse import os import shutil import stat from stat import S_IRGRP, S_IRUSR, S_IWGRP, S_IWUSR import subprocess import sys from typing import Any, Dict, List, Optional, Tuple from munch impo...
35.183367
100
0.584741
0
0
0
0
0
0
0
0
12,868
0.366474
61f95f027b40f870a2f775166934b53fdd79358c
18,636
py
Python
src/cred_manage/bitwarden.py
areese801/cred_manage
01f08ddc0b954c36e27ce1d6407f087c8aff0d4f
[ "MIT" ]
null
null
null
src/cred_manage/bitwarden.py
areese801/cred_manage
01f08ddc0b954c36e27ce1d6407f087c8aff0d4f
[ "MIT" ]
null
null
null
src/cred_manage/bitwarden.py
areese801/cred_manage
01f08ddc0b954c36e27ce1d6407f087c8aff0d4f
[ "MIT" ]
null
null
null
""" Subclass of the BaseCredContainer used for reading secrets from bitwarden password manager. This class wraps the bitwarden CLI. See: https://bitwarden.com/help/article/cli/#using-an-api-key Note that only the Enterprise version of bitwarden can (supported) hit the REST API. In contrast, the API key that can be ...
41.972973
247
0.6481
16,965
0.910335
0
0
0
0
0
0
10,728
0.57566
61f9d61ddf16dfe982de5cd443717f5e39b05a82
7,027
py
Python
transforms/waveform.py
koukyo1994/kaggle-rfcx
c3573d014d99312b58882e7b939de6c1055129b1
[ "MIT" ]
6
2021-02-18T05:18:17.000Z
2022-02-19T02:49:32.000Z
transforms/waveform.py
koukyo1994/kaggle-rfcx
c3573d014d99312b58882e7b939de6c1055129b1
[ "MIT" ]
null
null
null
transforms/waveform.py
koukyo1994/kaggle-rfcx
c3573d014d99312b58882e7b939de6c1055129b1
[ "MIT" ]
2
2021-02-18T11:31:50.000Z
2022-02-19T02:49:07.000Z
import colorednoise as cn import librosa import numpy as np def get_waveform_transforms(config: dict, phase: str): transforms = config.get("transforms") if transforms is None: return None else: if transforms[phase] is None: return None trns_list = [] for trns_co...
31.231111
104
0.605237
6,239
0.887861
0
0
0
0
0
0
241
0.034296
61fa26c1e849bd6b6249a17cb7a588c5997af757
438
py
Python
Back/generalchatroom/models.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
null
null
null
Back/generalchatroom/models.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
1
2020-12-27T14:59:35.000Z
2020-12-27T14:59:35.000Z
Back/generalchatroom/models.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
2
2020-10-30T08:08:32.000Z
2020-10-30T20:47:51.000Z
from django.db import models from registeration.models import User from chatroom.models import Chatroom class Message(models.Model): chatroom = models.ForeignKey(Chatroom, on_delete=models.CASCADE) user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True) text = models.TextField() parentMes...
36.5
83
0.773973
331
0.755708
0
0
0
0
0
0
6
0.013699
61fa91668b7e930a4d4c6429b8910bfdb88b86e5
1,095
py
Python
plyplus/test/test_trees.py
rubycandy/test-plyplus
ced9377e6c26dcf308dd9f480411af9c8dbe9c56
[ "MIT" ]
169
2015-01-16T12:48:23.000Z
2021-12-09T16:00:13.000Z
plyplus/test/test_trees.py
rubycandy/test-plyplus
ced9377e6c26dcf308dd9f480411af9c8dbe9c56
[ "MIT" ]
26
2015-01-23T16:30:28.000Z
2018-07-07T09:14:18.000Z
plyplus/test/test_trees.py
rubycandy/test-plyplus
ced9377e6c26dcf308dd9f480411af9c8dbe9c56
[ "MIT" ]
53
2015-01-22T20:20:10.000Z
2021-12-05T13:39:57.000Z
from __future__ import absolute_import import unittest import logging import copy import pickle from plyplus.plyplus import STree logging.basicConfig(level=logging.INFO) class TestSTrees(unittest.TestCase): def setUp(self): self.tree1 = STree('a', [STree(x, y) for x, y in zip('bcd', 'xyz')]) def te...
24.886364
76
0.613699
872
0.796347
0
0
0
0
0
0
23
0.021005
61fae1b5b671ac52f912549b4f9c186cb38b0495
1,563
py
Python
misaligned.py
clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya
1861f2db11a508e9c1e2f7ce351d11d87c0c734c
[ "MIT" ]
null
null
null
misaligned.py
clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya
1861f2db11a508e9c1e2f7ce351d11d87c0c734c
[ "MIT" ]
null
null
null
misaligned.py
clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya
1861f2db11a508e9c1e2f7ce351d11d87c0c734c
[ "MIT" ]
null
null
null
MAJOR_COLORS = ["White", "Red", "Black", "Yellow", "Violet"] MINOR_COLORS = ["Blue", "Orange", "Green", "Brown", "Slate"] def get_color_from_pair_number(pair_number): zero_based_pair_number = pair_number - 1 major_index = zero_based_pair_number // len(MINOR_COLORS) minor_index = zero_based_pair_number % ...
36.348837
129
0.685861
0
0
0
0
0
0
0
0
482
0.308381
61fe5553a131ad8494dec157c4505511e27beecb
611
py
Python
examples/embed_cmd.py
bentettmar/discord.py-self_embed
4253ea7977b17972de2e15de3606a183f70b22b0
[ "MIT" ]
2
2022-03-31T04:06:05.000Z
2022-03-31T16:39:40.000Z
examples/embed_cmd.py
bentettmar/discord.py-self_embed
4253ea7977b17972de2e15de3606a183f70b22b0
[ "MIT" ]
3
2022-03-29T11:58:16.000Z
2022-03-31T16:41:13.000Z
examples/embed_cmd.py
bentettmar/discord.py-self_embed
4253ea7977b17972de2e15de3606a183f70b22b0
[ "MIT" ]
null
null
null
import discord_self_embed from discord.ext import commands bot = commands.Bot(command_prefix=".", self_bot=True) @bot.event async def on_ready(): print("ready") @bot.command(name="embed") async def embed_cmd(ctx): embed = discord_self_embed.Embed("discord.py-self_embed", description="A way for selfbots to se...
33.944444
193
0.749591
0
0
0
0
470
0.769231
432
0.707038
249
0.407529
1101b9ca063e23e2fd57ae664425f377c0723f09
8,823
py
Python
analysis.py
liunx/lmms
ea54f64934d90887a38446ef02ed2baed91548db
[ "MIT" ]
null
null
null
analysis.py
liunx/lmms
ea54f64934d90887a38446ef02ed2baed91548db
[ "MIT" ]
null
null
null
analysis.py
liunx/lmms
ea54f64934d90887a38446ef02ed2baed91548db
[ "MIT" ]
null
null
null
import re import copy from operator import itemgetter import music21 as m21 class Core: meter_len = 192 notes = {'C': 60, 'D': 62, 'E': 64, 'F': 65, 'G': 67, 'A': 69, 'B': 71} percussion = { 35: 'AcousticBassDrum', 36: 'BassDrum1', 37: 'SideStick', 38: 'AcousticSnare', 39: 'HandClap', 40: ...
33.804598
115
0.438286
7,809
0.885073
0
0
0
0
0
0
1,762
0.199705
11025303e524cbae387748d4c806d2a09276590a
6,302
py
Python
tests/server/utils.py
csadorf/aiida-optimade
99ee1113cfc109a40a83bb43af8d07ce7e1601e6
[ "MIT" ]
null
null
null
tests/server/utils.py
csadorf/aiida-optimade
99ee1113cfc109a40a83bb43af8d07ce7e1601e6
[ "MIT" ]
null
null
null
tests/server/utils.py
csadorf/aiida-optimade
99ee1113cfc109a40a83bb43af8d07ce7e1601e6
[ "MIT" ]
null
null
null
# pylint: disable=no-name-in-module,too-many-arguments import json import re import typing from urllib.parse import urlparse import warnings from requests import Response from fastapi.testclient import TestClient from pydantic import BaseModel import pytest from starlette import testclient from optimade import __api...
32.65285
86
0.60822
5,275
0.837036
416
0.066011
770
0.122183
0
0
1,478
0.234529
11026c0c5eee347310533201a00163d72346ee00
3,673
py
Python
super_topic/main.py
susmote/WeiboTools
659232b4525bcbedf350da1127d382ff6c6e9e71
[ "MIT" ]
3
2018-11-11T22:07:23.000Z
2019-03-08T08:20:31.000Z
super_topic/main.py
susmote/WeiboTools
659232b4525bcbedf350da1127d382ff6c6e9e71
[ "MIT" ]
null
null
null
super_topic/main.py
susmote/WeiboTools
659232b4525bcbedf350da1127d382ff6c6e9e71
[ "MIT" ]
1
2021-08-31T06:44:54.000Z
2021-08-31T06:44:54.000Z
# -*- coding: utf-8 -*- """ Created on 2018/11/5 @author: susmote """ import time import requests import json # 查看自己关注的超话 if __name__ == '__main__': username = input("请输入用户名: ") password = input("请输入密码: ") login_url = "https://passport.weibo.cn/sso/login" headers = { "Referer": "https://...
37.865979
118
0.58263
0
0
0
0
0
0
0
0
1,307
0.340631
11028d4ec017320409e77b44e5459cd4e2c1cd81
1,163
py
Python
websupportsk_ddns/notifiers.py
JozefGalbicka/websupportsk-ddns
8fe1408121dc5f14f42e6603d9a50bcaa5afabee
[ "MIT" ]
2
2021-07-28T09:09:58.000Z
2021-07-28T10:28:45.000Z
websupportsk_ddns/notifiers.py
JozefGalbicka/websupportsk-ddns
8fe1408121dc5f14f42e6603d9a50bcaa5afabee
[ "MIT" ]
1
2021-11-14T11:31:38.000Z
2021-11-19T22:38:44.000Z
websupportsk_ddns/notifiers.py
JozefGalbicka/websupportsk-ddns
8fe1408121dc5f14f42e6603d9a50bcaa5afabee
[ "MIT" ]
null
null
null
import requests import logging logger = logging.getLogger(__name__) def send_notifications(notifiers, message): for notifier in notifiers: notifier.send_notification(message) class Pushover: def __init__(self, api_token, user_key): self.api_token = api_token self.user_key = user_key...
29.075
65
0.618229
968
0.83233
0
0
0
0
0
0
281
0.241617
110368e70ed99472870504d326991f7e709f610a
311
py
Python
apps/xero_workspace/job_urls.py
akshay-codemonk/fyle-xero
a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6
[ "MIT" ]
null
null
null
apps/xero_workspace/job_urls.py
akshay-codemonk/fyle-xero
a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6
[ "MIT" ]
null
null
null
apps/xero_workspace/job_urls.py
akshay-codemonk/fyle-xero
a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6
[ "MIT" ]
null
null
null
from django.urls import path, include from apps.xero_workspace.views import ScheduleSyncView urlpatterns = [ path('<int:workspace_id>/expense_group/', include('apps.fyle_expense.job_urls')), path('<int:workspace_id>/settings/schedule/trigger/', ScheduleSyncView.as_view(), name="schedule_trigger"), ]
34.555556
111
0.768489
0
0
0
0
0
0
0
0
128
0.411576
1106ac76603f4bd71050edfab94366e8d6245198
43,058
py
Python
tests/test_decision_maker/test_base.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
null
null
null
tests/test_decision_maker/test_base.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
1
2020-02-21T14:28:13.000Z
2020-03-05T14:53:53.000Z
tests/test_decision_maker/test_base.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
41.925998
106
0.641042
41,270
0.958475
0
0
2,618
0.060802
0
0
7,826
0.181755
11070c63ba36e05b385352144090c398a2ed7415
15,806
py
Python
code/plotting/plot_lsst.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
1
2019-08-27T10:05:41.000Z
2019-08-27T10:05:41.000Z
code/plotting/plot_lsst.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
code/plotting/plot_lsst.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Plots the power spectra and Fourier-space biases for the HI. # import warnings from mpi4py import MPI rank = MPI.COMM_WORLD.rank #warnings.filterwarnings("ignore") if rank!=0: warnings.filterwarnings("ignore") import numpy as np import os, sys import matplotlib.pyplot as plt fro...
41.704485
210
0.575161
0
0
0
0
0
0
0
0
4,481
0.2835
1107964a13a8c587e9dedd0f0fb6a2581ecb0887
3,999
py
Python
ndfinance/strategies/basic/__init__.py
gomtinQQ/NDFinance
522bf0486e5f5337c522d0e34b088f386c7c3290
[ "MIT" ]
35
2020-09-26T16:31:45.000Z
2022-01-01T12:12:21.000Z
ndfinance/strategies/basic/__init__.py
gomtinQQ/NDFinance
522bf0486e5f5337c522d0e34b088f386c7c3290
[ "MIT" ]
1
2020-09-27T08:54:23.000Z
2020-09-27T08:54:23.000Z
ndfinance/strategies/basic/__init__.py
gomtinQQ/NDFinance
522bf0486e5f5337c522d0e34b088f386c7c3290
[ "MIT" ]
8
2020-10-06T23:51:22.000Z
2022-02-16T12:11:10.000Z
from ndfinance.strategies import Strategy, PeriodicRebalancingStrategy from ndfinance.brokers.base import order from ndfinance.brokers.base.order import * from ndfinance.strategies.utils import * class SameWeightBuyHold(Strategy): def __init__(self): super(SameWeightBuyHold, self).__init__() self....
44.932584
127
0.68017
3,794
0.948737
0
0
0
0
0
0
0
0
1107cf1f8235f1761f09ec217b10ad75f1307704
1,662
py
Python
06_Trees/shortest_unique_prefix.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
61
2018-02-18T08:16:31.000Z
2022-02-17T17:18:57.000Z
06_Trees/shortest_unique_prefix.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
1
2018-02-23T20:06:18.000Z
2019-12-29T18:52:20.000Z
06_Trees/shortest_unique_prefix.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
30
2018-03-28T19:02:23.000Z
2021-07-06T20:00:14.000Z
# Shortest Unique Prefix # https://www.interviewbit.com/problems/shortest-unique-prefix/ # # Find shortest unique prefix to represent each word in the list. # # Example: # # Input: [zebra, dog, duck, dove] # Output: {z, dog, du, dov} # where we can see that # zebra = z # dog = dog # duck = du # dove = dov # NOTE : Ass...
24.086957
106
0.496992
1,038
0.624549
0
0
0
0
0
0
653
0.3929
110af0aa9cc468fbee2f90b29540e3ee61251308
1,975
py
Python
daemon.py
hletrd/TRIPOL_polarizer
124d202bf876635bd402306fb5d7572fd45ce599
[ "MIT" ]
null
null
null
daemon.py
hletrd/TRIPOL_polarizer
124d202bf876635bd402306fb5d7572fd45ce599
[ "MIT" ]
null
null
null
daemon.py
hletrd/TRIPOL_polarizer
124d202bf876635bd402306fb5d7572fd45ce599
[ "MIT" ]
null
null
null
from flask import Flask, render_template, send_from_directory import serial import serial.tools.list_ports import threading app = Flask(__name__) def run_server(): app.run(host=bind_ip, debug=True, port=bind_port) @app.route('/') def index(): return render_template('_basic.html', ports=serialhandler.get_port_list(...
23.511905
75
0.698228
975
0.493671
0
0
649
0.328608
0
0
213
0.107848
110bd5c7d26cb1039d7248113ac5574d56217da1
134
py
Python
tests/agave_mock_server/wsgi.py
vdjserver/agave-cli
4ad0826779cd760eb8a102978c456fee214ce8a3
[ "BSD-3-Clause" ]
null
null
null
tests/agave_mock_server/wsgi.py
vdjserver/agave-cli
4ad0826779cd760eb8a102978c456fee214ce8a3
[ "BSD-3-Clause" ]
1
2019-06-11T21:48:12.000Z
2019-06-11T22:11:35.000Z
tests/agave_mock_server/wsgi.py
vdjserver/agave-cli
4ad0826779cd760eb8a102978c456fee214ce8a3
[ "BSD-3-Clause" ]
null
null
null
from agave_mock_server import app as application if __name__ == "__main__": application.run(host="0.0.0.0", ssl_context="adhoc")
26.8
56
0.738806
0
0
0
0
0
0
0
0
26
0.19403
110ec99e58e5ce9d328a5556af8ee117cc5ebd9a
3,304
py
Python
src/utils.py
senadkurtisi/neural-style-transfer
0048d8b184959de095f0821f63205c8ce3ff2dff
[ "MIT" ]
null
null
null
src/utils.py
senadkurtisi/neural-style-transfer
0048d8b184959de095f0821f63205c8ce3ff2dff
[ "MIT" ]
null
null
null
src/utils.py
senadkurtisi/neural-style-transfer
0048d8b184959de095f0821f63205c8ce3ff2dff
[ "MIT" ]
null
null
null
from PIL import Image import numpy as np import torch import torchvision.transforms.transforms as transforms import os from config import cfg def preprocess_img(img_path): """ Loads the desired image and prepares it for VGG19 model. Parameters: img_path: path to the image Returns: ...
29.765766
106
0.553874
0
0
0
0
0
0
0
0
1,072
0.324455
1111178ffeca17f97dbc94edf513c3e6554c30c4
5,179
py
Python
myfunc.py
dedo94/GUIGG
be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d
[ "MIT" ]
1
2019-02-15T22:38:40.000Z
2019-02-15T22:38:40.000Z
myfunc.py
dedo94/GUIGG
be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d
[ "MIT" ]
null
null
null
myfunc.py
dedo94/GUIGG
be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d
[ "MIT" ]
null
null
null
import os import platform import sys from os.path import relpath sys.path.append('/usr/local/bin/dot') sys.path.append('/usr/bin/dot') from graphviz import Digraph # struttura dati class node: def __init__(self, id, istruction, *nxt_node): self.id = id self.ist = istruction self.next_node...
43.158333
181
0.448542
1,047
0.202163
0
0
0
0
0
0
1,105
0.213362
1111834ed10ea00b3973a4e7b45b84a2fd41c455
2,466
py
Python
EllucianEthosPythonClient/ChangeNotificationUtils.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2021-02-09T22:05:50.000Z
2021-02-09T22:05:50.000Z
EllucianEthosPythonClient/ChangeNotificationUtils.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2020-07-02T11:44:54.000Z
2020-07-02T11:45:38.000Z
EllucianEthosPythonClient/ChangeNotificationUtils.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2021-01-13T21:35:11.000Z
2021-01-13T21:35:11.000Z
from .ChangeNotificationMessage import ChangeNotificationMessage import json def requestBatchOfPagesAndReturnRemainingCountLib( pageLimit, lastProcessedID, clientAPIInstance, loginSession, processIndividualMessage ): params = { "limit": str(pageLimit) } if lastProcessedID is not None: params["...
27.098901
103
0.744931
1,547
0.627332
0
0
0
0
0
0
122
0.049473
1112b034f98c7dc617526ab156487a42f2db45b6
1,821
py
Python
schafkopf/players/models/evaluate_calssifier.py
Taschee/schafkopf
96c5b9199d9260b4fdd74de8a6e54805b407407b
[ "MIT" ]
10
2018-07-30T14:02:25.000Z
2022-01-19T23:48:31.000Z
schafkopf/players/models/evaluate_calssifier.py
TimiH/schafkopf-1
deafaa28d6cba866d097b4347dd84ce37b3b594d
[ "MIT" ]
1
2018-08-12T07:25:51.000Z
2018-08-27T21:04:04.000Z
schafkopf/players/models/evaluate_calssifier.py
Taschee/schafkopf
96c5b9199d9260b4fdd74de8a6e54805b407407b
[ "MIT" ]
2
2019-01-23T10:02:57.000Z
2019-08-26T22:05:52.000Z
import keras import numpy as np from schafkopf.players.data.load_data import load_data_bidding from schafkopf.players.data.encodings import decode_on_hot_hand import matplotlib.pyplot as plt x_test, y_test = load_data_bidding('../data/test_data.p') x_train, y_train = load_data_bidding('../data/train_data.p') modelpat...
29.852459
88
0.713344
0
0
0
0
0
0
0
0
374
0.205382
1112cf8fd2ea3b082bd270c70d54466062312420
8,338
py
Python
personnages3d/filtre.py
mxbossard/personnages3d
87c2ab8dc9b502c0074f1dec04b832803dee1462
[ "Apache-2.0" ]
null
null
null
personnages3d/filtre.py
mxbossard/personnages3d
87c2ab8dc9b502c0074f1dec04b832803dee1462
[ "Apache-2.0" ]
null
null
null
personnages3d/filtre.py
mxbossard/personnages3d
87c2ab8dc9b502c0074f1dec04b832803dee1462
[ "Apache-2.0" ]
1
2021-10-01T02:03:42.000Z
2021-10-01T02:03:42.000Z
"""Ce script est un exemple de matplotlib""" import numpy as np def moving_average(x, n, type='simple'): """ compute an n period moving average. type is 'simple' | 'exponential' """ x = np.asarray(x) if type == 'simple': weights = np.ones(n) else: weights = np.exp(np.li...
63.166667
83
0.333173
0
0
0
0
0
0
0
0
179
0.021468
11149a0fbf72edf9f65a573647189aedcbd0a01f
309
py
Python
tests/test_utils.py
wxy6655/pymycobot
504716257af7b36c9750929ad3b0b7fe96582e14
[ "MIT" ]
37
2021-01-16T13:57:06.000Z
2022-03-27T06:16:37.000Z
tests/test_utils.py
wxy6655/pymycobot
504716257af7b36c9750929ad3b0b7fe96582e14
[ "MIT" ]
27
2021-01-18T08:09:08.000Z
2022-03-08T01:25:33.000Z
tests/test_utils.py
wxy6655/pymycobot
504716257af7b36c9750929ad3b0b7fe96582e14
[ "MIT" ]
19
2021-01-19T01:52:42.000Z
2022-02-10T06:44:06.000Z
import os import sys # Add relevant ranger module to PATH... there surely is a better way to do this... sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) from pymycobot import utils port = utils.get_port_list() print(port) detect_result = utils.detect_port_of_basic() print(detect_result)
22.071429
82
0.754045
0
0
0
0
0
0
0
0
86
0.278317
1117ea4f825935be2c13190135ae12facb794dea
3,347
py
Python
backend_api/vozila_specials/migrations/0001_initial.py
KoliosterNikolayIliev/vozila_backend
a1c5036a77cb78d7968bbcc6e66e9015c982be8b
[ "MIT" ]
null
null
null
backend_api/vozila_specials/migrations/0001_initial.py
KoliosterNikolayIliev/vozila_backend
a1c5036a77cb78d7968bbcc6e66e9015c982be8b
[ "MIT" ]
4
2021-09-08T09:25:21.000Z
2022-02-20T12:14:04.000Z
backend_api/vozila_specials/migrations/0001_initial.py
KoliosterNikolayIliev/vozila_backend
a1c5036a77cb78d7968bbcc6e66e9015c982be8b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-04 18:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
54.868852
266
0.612788
3,188
0.952495
0
0
0
0
0
0
651
0.194503
11185bdb3235153c501d87ad0d59a5aa426df74b
385
py
Python
inhouse/users/migrations/0011_alter_user_username.py
samuelmmorse/In-House
9a6e103c0d53598e0b9028754fbc1fdc830cf9bd
[ "Apache-2.0" ]
1
2022-02-03T18:15:09.000Z
2022-02-03T18:15:09.000Z
inhouse/users/migrations/0011_alter_user_username.py
samuelmmorse/In-House
9a6e103c0d53598e0b9028754fbc1fdc830cf9bd
[ "Apache-2.0" ]
37
2022-02-02T21:30:16.000Z
2022-03-08T16:18:48.000Z
inhouse/users/migrations/0011_alter_user_username.py
samuelmmorse/In-House
9a6e103c0d53598e0b9028754fbc1fdc830cf9bd
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-21 03:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("users", "0010_alter_user_picture"), ] operations = [ migrations.AlterField( model_name="user", name="username", ...
20.263158
51
0.597403
292
0.758442
0
0
0
0
0
0
95
0.246753
111a060dfd860a5ffaba0f5cb789e1d77010aef4
1,742
py
Python
PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py
AsherVo/depthai-gui
f6d5da7c00f09239d07ff77dd2e4433d40e43633
[ "Apache-2.0" ]
46
2021-01-05T13:41:54.000Z
2022-03-29T09:47:20.000Z
PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py
AsherVo/depthai-gui
f6d5da7c00f09239d07ff77dd2e4433d40e43633
[ "Apache-2.0" ]
7
2021-01-29T22:26:05.000Z
2022-02-24T10:16:35.000Z
PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py
AsherVo/depthai-gui
f6d5da7c00f09239d07ff77dd2e4433d40e43633
[ "Apache-2.0" ]
10
2021-03-11T15:00:40.000Z
2022-03-24T02:28:39.000Z
from pathlib import Path from common import DeviceNode, get_property_value from PyFlow.Core.Common import * from PyFlow.Core.NodeBase import NodePinsSuggestionsHelper class NeuralNetworkNode(DeviceNode): def __init__(self, name): super(NeuralNetworkNode, self).__init__(name) self.input = self.cre...
35.55102
85
0.695178
1,571
0.901837
0
0
541
0.310563
0
0
214
0.122847