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
92b599cdface562c0a63bce70f29c39376ec628b
2,699
py
Python
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
1
2021-11-18T02:27:29.000Z
2021-11-18T02:27:29.000Z
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.557143
115
0.675435
1,683
0.623564
0
0
1,569
0.581326
0
0
1,420
0.526121
92b669a43887f9c811d94bcfb545a90bfec0af49
718
py
Python
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
2
2015-10-07T12:31:24.000Z
2015-10-08T04:58:48.000Z
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
from setuptools import setup from pip.req import parse_requirements import sys, os sys.path.append("wutu/") sys.path.append("wutu/compiler/") install_reqs = list(parse_requirements("requirements.txt", session={})) def version(): import version return version.get_version() setup(name="wutu", version...
27.615385
71
0.669916
0
0
0
0
0
0
0
0
208
0.288889
92b778782a6c826438fa80906dc1159fa91249e9
2,063
py
Python
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
import itertools import threading import pickle import time import sys def animate(): for c in itertools.cycle(['|', '/', '-', '\\']): if done: break sys.stdout.write('\rComputing the matrix ' + c) sys.stdout.flush() time.sleep(0.1) sys.stdout.write('\r... ') ...
20.838384
84
0.565681
0
0
0
0
0
0
0
0
399
0.193408
92b80775e077bc571711817c75463061aa2ef995
2,632
py
Python
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
from pathlib import PurePath from elftools.elf.elffile import ELFFile from .typing import get_class import ctypes def die_from_offset(cu, offset): return [die for die in cu.iter_DIEs() if die.offset == offset][0] def get_type_from_file(filename, name): with open(str(filename), 'rb') as f: elffile = EL...
48.740741
153
0.676292
0
0
0
0
0
0
0
0
349
0.132599
92ba7faaffb8f7360355154db493fc509d84f145
2,305
py
Python
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
import os from functools import partial import lazy_object_proxy def start_spark(app_name="Jupyter"): def sc_lazy(spark): return spark.sparkContext def hc_lazy(spark): return HiveContext(spark.sparkContext) global sc global hc global sqlContext global spark import fin...
43.490566
115
0.463774
0
0
0
0
0
0
0
0
524
0.227332
92baceda72fe1079e3c469a957d61c1676e7dbea
1,534
py
Python
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
""" This file can be used to try a live prediction. """ import keras import librosa import numpy as np class LivePredictions: """ Main class of the application. """ def __init__(self): """ Init method is used to initialize the main parameters. """ self.path = './model...
30.078431
92
0.524772
1,424
0.928292
0
0
643
0.419166
0
0
478
0.311604
2b7cd4df0f0bbe6c33a448d501b266a7c04861f1
3,956
py
Python
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
1
2021-11-12T12:57:59.000Z
2021-11-12T12:57:59.000Z
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
import pygame import __main__ from Modules.Globals import * from Modules.NavWidgets.Battery import * from Modules.NavWidgets.Bluetooth import * from Modules.NavWidgets.Wifi import * class Nav(): def __init__(self, parent): self.visible = True self.parent = parent self.buttons = [] s...
31.396825
105
0.503539
3,734
0.943883
0
0
0
0
0
0
246
0.062184
2b7e914455b7e4d21ee32d8e348737af8ad3bb3b
1,463
py
Python
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
4
2020-07-01T17:10:25.000Z
2020-11-10T22:15:55.000Z
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
null
null
null
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
3
2020-06-24T17:33:50.000Z
2020-11-17T20:45:43.000Z
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField from wtforms.validators import DataRequired, Email, Length from flask_wtf.file import FileField, FileAllowed, FileRequired class SignUpForm(FlaskForm): name = StringField('Name', validators=[DataR...
47.193548
92
0.723855
1,212
0.828435
0
0
0
0
0
0
247
0.168831
2b7eedc17fc971f906228a3bedf199afe148ad63
358
py
Python
executive/executive/urls.py
b800h/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
1
2019-03-14T11:13:00.000Z
2019-03-14T11:13:00.000Z
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'executive.views.home', name='home'), url(r'^cloudcontrol/ajax/', include('cloudcontrol.urlsajax')), url(r'^cloudcontrol/', include('cloudcontrol.urls')), url(r'^...
32.545455
66
0.675978
0
0
0
0
0
0
0
0
154
0.430168
2b7faeb53a37cd7b206440dda10874cb138af114
5,356
py
Python
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
null
null
null
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
66
2019-05-03T22:10:11.000Z
2022-02-20T18:33:38.000Z
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
8
2018-05-17T04:16:30.000Z
2022-02-07T18:00:57.000Z
""" ================================================= Classify ALS diagnosis from white matter features ================================================= Predict ALS diagnosis from white matter features. This example fetches the ALS classification dataset from Sarica et al [1]_. This dataset contains tractometry featu...
41.51938
181
0.731516
0
0
0
0
0
0
0
0
3,065
0.572255
2b827b627d677ff0e024a5757a45773ff0405784
7,004
py
Python
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
1
2020-05-05T05:11:56.000Z
2020-05-05T05:11:56.000Z
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Materials Virtual Lab # Distributed under the terms of the BSD License. import itertools import numpy as np import pandas as pd from monty.json import MSONable from pymatgen.core.periodic_table import get_el_sp from sklearn.base import TransformerMixin, BaseEstimator class Bispectrum...
43.234568
93
0.536408
6,699
0.956453
0
0
277
0.039549
0
0
2,987
0.426471
2b87549bbd51431d78948c0c0286d6c5c6d1c477
4,505
py
Python
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
1
2022-02-24T23:39:12.000Z
2022-02-24T23:39:12.000Z
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
null
null
null
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
null
null
null
from ImagePreprocessing.ImagePreprocessing import load_label_encoder, save_label_encoder, \ convert_labels_to_one_hot_vectors from JetRecognizerPreprocessing import get_random_train_fighter_images_as_pixel_values_generator, \ get_random_validation_fighter_images_as_pixel_values_generator from BatchLoopGenerator...
45.505051
131
0.767592
0
0
0
0
0
0
0
0
1,176
0.261043
2b88ac303411dbb8834614706fb3ea14becb3330
68,137
py
Python
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
46.132024
198
0.610931
53,804
0.789644
0
0
35,522
0.521332
0
0
33,175
0.486887
2b89378a0a9c79a3daaa3b6a56cbcba3f417f9d5
455
py
Python
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
1
2019-10-03T02:51:05.000Z
2019-10-03T02:51:05.000Z
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
null
null
null
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
null
null
null
import os import sys here = sys.path[0] sys.path.insert(0, os.path.join(here,'..')) import time from coap import coap import logging_setup SERVER_IP = '::1' # open c = coap.coap(udpPort=5000) # retrieve value of 'test' resource p = c.GET('coap://[{0}]/test'.format(SERVER_IP),) print '=====' pri...
16.25
50
0.610989
0
0
0
0
0
0
0
0
124
0.272527
2b8a7153a2c7fe04826c272ba305bcfaefa1482d
1,469
py
Python
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
import unittest from color_gamma_analyzer.diapason import calculate_ranges class TestCalculatingOfRanges(unittest.TestCase): def setUp(self): self.brightness_data = [0.56, 0.76, 0.12, 0.97, 0.121, 0.454, 0.656] def test_calculating_diapason_ranges(self): calculated_ranges_first = [ ...
26.232143
76
0.497617
1,342
0.913547
0
0
0
0
0
0
10
0.006807
2b8bc3d0e40e43824259f72ae47057f59a324480
3,470
py
Python
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# W roku 2050 Maksymilian odbywa podróż przez pustynię z miasta A do miasta B. Droga pomiędzy miastami # jest linią prostą na której w pewnych miejscach znajdują się plamy ropy. Maksymilian porusza się # 24-kołową cysterną, która spala 1 litr ropy na 1 kilometr trasy. Cysterna wyposażona jest w pompę # pozwalającą zbie...
50.289855
104
0.69366
0
0
0
0
0
0
0
0
2,488
0.68408
2b8d41aecdba1cd7987f459d5c39928afa74674b
159
py
Python
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
26
2019-01-07T14:22:05.000Z
2019-02-28T17:11:48.000Z
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
3
2019-09-19T22:16:09.000Z
2019-10-16T21:16:16.000Z
from django.contrib import admin from .models import Article ,Comment # Register your models here. admin.site.register(Article) admin.site.register(Comment)
19.875
36
0.805031
0
0
0
0
0
0
0
0
28
0.176101
2b8e4161bf16ec89b1640782424942de3ea30db0
6,499
py
Python
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
90
2021-01-04T20:08:20.000Z
2022-03-14T11:20:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
93
2020-12-12T22:10:33.000Z
2021-11-21T16:12:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
13
2020-12-12T22:11:01.000Z
2021-09-22T14:37:09.000Z
import os from typing import Union from aws_cdk import core from aws_cdk.core import CfnOutput from datajob import logger from datajob.datajob_context import DataJobContext from datajob.datajob_execution_input import DataJobExecutionInput class DataJobStack(core.Stack): STAGE_NAME = "stage" def __init__( ...
36.717514
113
0.62625
6,255
0.962456
0
0
977
0.150331
0
0
2,817
0.433451
2b8e54d9ba07085ebbc7eda5e53fdf3cf8fed6cb
5,869
py
Python
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
1
2020-06-04T11:10:27.000Z
2020-06-04T11:10:27.000Z
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable def list_all_files(rootdir, key): import os _files = [] list = os.listdir(rootdir) # 列出文件夹下所有的目录与文件 ...
30.567708
114
0.552905
0
0
159
0.026963
0
0
0
0
987
0.167373
2b8e9143a4d8b498c35d6f0274755ccab7a27fe4
1,994
py
Python
Sources/Workflows/XLixian/iambus-xunlei-lixian/lixian_hash.py
yagosys/AlfredWorkflow.com
9e5087e61fb89640a7a6ca89ba554303aec0b037
[ "MIT" ]
2,177
2015-01-02T09:56:51.000Z
2022-03-27T01:48:37.000Z
lixian_hash.py
lincank/xunlei-lixian
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
[ "MIT" ]
24
2015-01-02T19:11:51.000Z
2021-01-27T07:20:33.000Z
lixian_hash.py
lincank/xunlei-lixian
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
[ "MIT" ]
516
2015-01-02T18:48:29.000Z
2022-01-26T07:12:35.000Z
#!/usr/bin/env python import hashlib import lixian_hash_ed2k import lixian_hash_bt import os def lib_hash_file(h, path): with open(path, 'rb') as stream: while True: bytes = stream.read(1024*1024) if not bytes: break h.update(bytes) return h.hexdigest() def sha1_hash_file(path): return lib_hash_fil...
23.458824
55
0.675025
0
0
0
0
0
0
0
0
225
0.112839
2b8feaa10a6b312b58767ad31f13d28d00efcfc0
663
py
Python
kurier/amqp/exceptions.py
Relrin/kurier
1fd5593c4249a29943d3ee33e4491135ed0fde8d
[ "BSD-3-Clause" ]
22
2019-03-03T11:48:11.000Z
2022-01-13T19:13:37.000Z
kurier/amqp/exceptions.py
Relrin/kurier
1fd5593c4249a29943d3ee33e4491135ed0fde8d
[ "BSD-3-Clause" ]
2
2018-07-04T18:52:05.000Z
2019-10-02T09:01:34.000Z
kurier/amqp/exceptions.py
Relrin/kurier
1fd5593c4249a29943d3ee33e4491135ed0fde8d
[ "BSD-3-Clause" ]
4
2019-05-27T09:45:29.000Z
2021-09-10T15:08:57.000Z
class BaseAmqpException(Exception): default_detail = "Occurred an unexpected error." def __init__(self, detail=None): self.detail = detail if detail is not None else self.default_detail def __str__(self): return self.detail class AmqpInvalidUrl(BaseAmqpException): default_detail = ...
24.555556
75
0.751131
648
0.977376
0
0
0
0
0
0
162
0.244344
2b924ecff2ec12429f869ba4056b1d43ae0cd0bd
39
py
Python
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
null
null
null
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
null
null
null
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
1
2021-08-28T08:34:56.000Z
2021-08-28T08:34:56.000Z
CONTENT_TYPE_JSON = 'application/json'
19.5
38
0.820513
0
0
0
0
0
0
0
0
18
0.461538
2b93570ed0d715724876abed8f98fd6668d40c94
5,130
py
Python
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
1
2018-11-12T10:54:24.000Z
2018-11-12T10:54:24.000Z
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
null
null
null
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
1
2018-11-12T10:54:27.000Z
2018-11-12T10:54:27.000Z
""" Utility class for fesim By: Mehdi Paak """ import os import subprocess def create_meshinput_file(vardict): """ generate temporary mesh data input file to be read by salome_mesh.py script. """ try: geofile = vardict['GEOFILE'] wrkdir = vardict['WRKDIR'] seg_a = vardict...
28.983051
104
0.575828
0
0
0
0
0
0
0
0
2,022
0.394152
2b9525401f62a8c3bf39cf1a74d072fa4e2b9b95
2,455
py
Python
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
14
2015-03-11T21:46:15.000Z
2020-06-06T16:01:38.000Z
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
20
2015-01-21T16:11:36.000Z
2020-01-06T10:30:46.000Z
chemreac/util/grid.py
chemreac/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
3
2015-08-13T12:06:17.000Z
2021-12-17T01:12:20.000Z
# -*- coding: utf-8 -*- """ chemreac.util.grid ------------------ Grid related utilities for one-dimensional grid of arbitrary spacing. """ from __future__ import print_function, division from math import log import numpy as np from ..units import get_derived_unit, to_unitless def generate_grid(x0, xend, N, logx...
25.309278
93
0.600407
0
0
0
0
0
0
0
0
1,034
0.421181
2b95278b15173f39c3e354e42bd5da9df55f3094
4,771
py
Python
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
#python: from collections import namedtuple import numpy as np from scipy.constants import speed_of_light import gprMax.input_cmd_funcs as gprmax_cmds import aux_funcs Point = namedtuple('Point', ['x', 'y', 'z']) # ! Simulation model parameters begin # * Naming parameters simulation_name = 'Antenna in free spac...
29.450617
78
0.640537
0
0
0
0
0
0
0
0
874
0.18319
2b96748117a2ee7e1202b513f6bf2c96ed0a9759
6,226
py
Python
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-08-06T13:32:17.000Z
2021-08-06T13:32:17.000Z
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
null
null
null
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-10-20T20:16:30.000Z
2021-10-20T20:16:30.000Z
# Save Roam JSON Export file in same folder and run following code in terminal `python r2o.py my-roam-export.json` import sys import os import json from tqdm import tqdm import re from dateutil.parser import parse from datetime import datetime yaml = """--- title: {title} created: {created} --- """ months = r"Jan...
29.789474
114
0.540475
0
0
0
0
0
0
0
0
1,786
0.286862
2b99fe63fcf6d06c867423d961d88a13935d459e
1,465
py
Python
var/spack/repos/builtin/packages/canu/package.py
mrzv/spack
a0fb2838ea60f020179f480a2db1438da9d2e2ab
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Canu(MakefilePackage): """A single molecule sequence assembler for genomes large and ...
34.069767
95
0.63959
1,244
0.849147
0
0
0
0
0
0
749
0.511263
2b9a383e24e5d4a41702986edf7f6ba4a61bd555
578
py
Python
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
1
2022-02-23T07:34:53.000Z
2022-02-23T07:34:53.000Z
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # aggregate-combiner.py import sys answers = [] last_user_id = None MEM_THRESHOLD = 1024 * 1024 * 1024 # 1 GB def write(user, entries): if len(entries) > 0: print('{0}\t{1}'.format(user, ','.join(entries))) for line in sys.stdin: user_id, answer_id = line.strip().split('\t', 1) ...
22.230769
92
0.65917
0
0
0
0
0
0
0
0
63
0.108997
2b9c36065308f6e11cc20429ce2141c3f1285943
646
py
Python
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 flask-mongoalchemy authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from __future__ import absolute_import from mongoalchemy import document from flaskext.mongoalchemy import Document from fla...
29.363636
65
0.787926
238
0.368421
0
0
0
0
0
0
207
0.320433
2b9c7ab513539e60f2d46c3236a9f0d71ce9e6af
446
py
Python
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import socket #target machine's ip number target_ip = '3.82.4.173' #target machine's port number target_port = 8888 #create UDP socket # IPv4--(INET--INET6), type of socket UDP --(DGRAM--STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) while True: msg = input("P...
20.272727
75
0.665919
0
0
0
0
0
0
0
0
216
0.484305
2b9edcb37a923970861e233477ef7c666f955383
601
py
Python
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
from neo4j import GraphDatabase,basic_auth from neo4j.expections import ServiceUnavailable import neo_native_app as neo4j import json from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, Docker!' @app.route('/init_neo_driver') def db_init(): bolt ="bolt://127.0.0.0:7...
22.259259
52
0.71381
0
0
0
0
359
0.597338
0
0
111
0.184692
2b9f17f18f5bbb0bd66f11c7a64aabbb4c285ec5
733
py
Python
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
null
null
null
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
50
2021-08-28T23:02:22.000Z
2022-01-18T18:31:21.000Z
step1a/sanproof_1_02/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
1
2021-09-02T04:36:26.000Z
2021-09-02T04:36:26.000Z
# coding=utf-8 """transcode_ab.py """ from __future__ import print_function import sys, re,codecs sys.path.append('../') import transcoder transcoder.transcoder_set_dir('../transcoder') def transcode(x,tranin,tranout): y = transcoder.transcoder_processString(x,tranin,tranout) return y if __name__=="__main__": fi...
27.148148
63
0.709413
0
0
0
0
0
0
0
0
176
0.240109
2ba3178b86594e0bd355d453a40ea67602520196
3,361
py
Python
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
from threading import Thread, Timer from time import time import logging try: import Adafruit_DHT except: pass class OneWireEnv(Thread): """This class is for reading out one wire sensors with the rpi""" def __init__(self, main, framework, update_interval=5000): """This starts the background ...
36.532609
109
0.547456
3,238
0.963404
0
0
0
0
0
0
771
0.229396
2ba81ec618c7d1270dc12f7a84fbe054a68e7523
1,073
py
Python
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SDPR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
1
2021-09-26T08:03:11.000Z
2021-09-26T08:03:11.000Z
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
""" Flask app """ import pandas as pd from flask import Flask import json app = Flask(__name__) # runs in local host http://127.0.0.1:5000/latest/all @app.route('/latest/<horizon>') def weather(horizon): """ Reads json and outputs based on selected paramter Horizon can be either "all" or an integer betw...
24.386364
97
0.652377
0
0
0
0
778
0.72507
0
0
683
0.636533
2ba9a68c0d2e685fc62f09c1f4d6c194b81d0b3e
173
py
Python
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
119
2020-04-01T02:56:03.000Z
2022-03-30T13:01:49.000Z
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
8
2020-04-08T08:52:19.000Z
2021-12-08T04:22:37.000Z
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
47
2020-04-06T07:14:59.000Z
2022-03-21T15:57:53.000Z
"""Experimental modules and unexperimental model hooks.""" from .models import construct_model from .modules import MetaMonkey __all__ = ['construct_model', 'MetaMonkey']
24.714286
58
0.786127
0
0
0
0
0
0
0
0
87
0.50289
2bab34cabee96c50bbb6c626cf15d0541229eed3
376
py
Python
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-26 09:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('appointments', '0022_alter_appointment_end_time_and_more'), ] operations = [ migrations.RemoveField( model_name='appointmen...
20.888889
70
0.598404
285
0.757979
0
0
0
0
0
0
129
0.343085
2bab74084dad44f3e5db5cfb85553841ba064145
259
py
Python
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
import itertools def sieve(size): is_prime = [True] * (size) for i in range(2, size): if is_prime[i]: is_prime[i*i::i] = [False] * len(is_prime[i*i::i]) f.write(json.dumps(list(itertools.compress(range(size), is_prime))[2:]))
28.777778
76
0.594595
0
0
0
0
0
0
0
0
0
0
2babfb50af910a621784aa5f2878e7604544427c
535
py
Python
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
import cv2 import numpy as np def showImage(): filename = "Images/lena.jpg" img = cv2.imread(filename, cv2.IMREAD_GRAYSCALE) cv2.imshow('image', img) lut = np.arange(255, -1, -1, dtype='uint8') ysize = img.shape[0] xsize = img.shape[1] for y in range(ysize): for x i...
22.291667
53
0.573832
0
0
0
0
0
0
0
0
82
0.152134
2bac10073b3ae6eec7697f798e5c4e87de6ae3a5
33,051
py
Python
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "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. # --------------------------------------------------------------------...
58.809609
291
0.663399
32,371
0.979426
0
0
32,095
0.971075
0
0
12,366
0.374149
2bac2bdf3e935053151415509164e32a0e767cd4
1,340
py
Python
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Reading file data = np.genfromtxt(path, delimiter=",", skip_header=1) #Code starts here census=np.concatenate((data,new_record)) a...
23.928571
57
0.71194
0
0
0
0
0
0
0
0
105
0.078358
2bad03cbdb9b9c6e7b1117ca58db86aba320ec23
3,247
py
Python
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
8
2017-07-02T10:45:43.000Z
2022-02-25T16:30:22.000Z
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
null
null
null
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
1
2019-07-10T06:49:22.000Z
2019-07-10T06:49:22.000Z
#!/usr/bin/env python3 # tkpng - example of using tkinter and pypng to display pngs (albeit reduced quality) # in nothing but pure python. Can use RGBA images, but the alpha is stripped. # v0.3 - structure rearranged to make classes and functions for reuse from array import * from tkinter import * import png class Pn...
41.101266
122
0.493994
2,563
0.789344
0
0
0
0
0
0
1,119
0.344626
2baf47be9d3daf1c604497a9da492e2f6f27a9d5
2,083
py
Python
demos/face_recognition_demo/python/landmarks_detector.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
2
2019-08-20T15:30:19.000Z
2020-09-01T15:16:33.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
4
2020-05-22T17:30:43.000Z
2021-08-02T07:33:16.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
2
2021-06-25T06:18:58.000Z
2021-08-04T10:05:32.000Z
""" Copyright (c) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
37.196429
108
0.697072
1,403
0.673548
0
0
0
0
0
0
693
0.332693
2bb0744556e03bcafe147ce0dc50dc9bf26d2ee6
5,724
py
Python
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
import os from . import BaseCommand from ..i18n import _ class Command(BaseCommand): name = os.path.splitext(os.path.basename(__file__))[0] description = _('create an HTTP Live Stream (HLS) out of an existing ' 'H.264/AAC stream') quiet_fields = { 'localStreamNames': _('loca...
48.10084
80
0.570231
5,629
0.983403
0
0
0
0
0
0
2,648
0.462614
2bb09c7c624b4b2fa539a4a7b7639cfbbb55950f
23,581
py
Python
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 by dhrone. All Rights Reserved. # import time from .iot import Iot from .utility import get_utc_timestamp from .objects import ASHO class Interface(object): interface = None version = None properties = None def __init__(self,thing=None, uncertaintyInMillisec...
52.872197
221
0.713329
22,204
0.941606
0
0
2,698
0.114414
0
0
3,120
0.13231
2bb22f0b235ccbd5403faa7e90ca5e580a0c0f77
1,696
py
Python
Invisible Pixels/invisible_pixel.py
Yash-Vekaria/Web-Tracking-in-Indian-Partisan-News-Websites
9fac25ed364b823d13d25346dbaef3042fa459fb
[ "MIT" ]
1
2021-01-31T17:32:38.000Z
2021-01-31T17:32:38.000Z
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
null
null
null
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
2
2021-01-31T16:48:13.000Z
2021-05-28T15:33:48.000Z
import sqlite3 import json import pandas as pd import numpy as np homepages = list(pd.read_csv('news_homepage_urls.csv')['news_url']) conn = sqlite3.connect('./topics_url_crawls/topics_url_crawl4/crawl-data_all_topics4.sqlite') c = conn.cursor() res = [['image_url', 'content_length', 'req_id', 'visit_id', 'news_site...
34.612245
114
0.608491
0
0
0
0
0
0
0
0
467
0.275354
2bb4fcba3285a569396ccc8016820835689216c0
1,368
py
Python
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
null
null
null
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
9
2020-06-19T16:34:08.000Z
2021-04-19T16:09:53.000Z
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CESNET. # # oarepo-fsm is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """Pytest helper methods.""" import copy import uuid from flask_security import login_user from invenio_db import db...
25.811321
77
0.703947
0
0
0
0
0
0
0
0
336
0.245614
2bb98a7d05b2fa13ccaa82a80ac1056091559328
1,844
py
Python
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
2
2020-04-28T16:50:43.000Z
2020-09-13T10:36:08.000Z
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
from html.parser import HTMLParser from .test_data import TestData class CodeforcesParser(HTMLParser): """A class which can parse Codeforces webpages for testcase data.""" def __init__(self): HTMLParser.__init__(self) self.in_input = False self.in_output = False self.in_pre = False self.curr_...
28.8125
74
0.625813
1,774
0.962039
0
0
0
0
0
0
339
0.183839
2bbb4aba06003d96ae6df55d6da4fe272ec4958a
10,644
py
Python
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
import json from nonogram_solver.error import LengthError, ClueError, AxisError, SetSolutionError class Nonogram: """Main nonogram class Used to hold the data of the nonogram. Also has some basic creation and helper functions. """ printable_values = {0: " ", -1: "..", ...
31.868263
90
0.530252
10,540
0.990229
0
0
0
0
0
0
2,579
0.242296
2bbc1387949c1f848c4efefd89253c1a919c0873
30
py
Python
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
from app.api.routes import api
30
30
0.833333
0
0
0
0
0
0
0
0
0
0
2bbe278b496ce085135269ff9461df76d529a0fd
2,468
py
Python
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
3
2020-02-17T11:11:08.000Z
2021-12-03T18:54:47.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
1
2019-12-05T15:32:50.000Z
2019-12-10T16:13:08.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
2
2019-09-26T20:21:14.000Z
2021-07-10T04:37:31.000Z
#!/usr/bin/env python """Python wrapper module for the GROMACS make_ndx module """ import sys import json from command_wrapper import cmd_wrapper import configuration.settings as settings from tools import file_utils as fu class MakeNdx(object): """Wrapper for the 5.1.2 version of the make_ndx module Args: ...
35.257143
94
0.633712
1,857
0.752431
0
0
0
0
0
0
630
0.255267
2bbf26e6f9ed571944d41bf407293fbe14a0b718
18,454
py
Python
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
import autoarray as aa import autoarray.plot as aplt from os import path import pytest import numpy as np import shutil directory = path.dirname(path.realpath(__file__)) @pytest.fixture(name="plot_path") def make_plot_path_setup(): return path.join( "{}".format(path.dirname(path.realpath(__f...
35.217557
89
0.617427
18,070
0.979192
0
0
175
0.009483
0
0
593
0.032134
2bbf71442072bd282493639805a17b1c960bf32f
5,866
py
Python
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
null
null
null
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
40
2018-06-18T13:43:42.000Z
2018-07-24T19:24:57.000Z
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
2
2018-07-17T20:47:23.000Z
2018-07-27T17:42:53.000Z
from __future__ import print_function import os import sys import time import traceback import subprocess from shutil import disk_usage, rmtree from base64 import b64decode pipWorking = False gitWorking = False def clear(): os.system('cls' if os.name == 'nt' else 'clear') def checkGit(): global gitWorking ...
36.434783
183
0.56103
3,024
0.515513
0
0
423
0.07211
0
0
1,741
0.296795
2bc2d93e8d13d4e3616e50c69adba5724129cd36
280
py
Python
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2019-11-05T18:28:22.000Z
2019-11-05T18:28:22.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
9
2019-12-05T01:04:48.000Z
2021-06-10T19:26:06.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2020-09-24T22:21:14.000Z
2020-09-24T22:21:14.000Z
from django import template register = template.Library() from ..models import Notification @register.simple_tag def unread_notification(user): no = Notification.objects.filter(user=user, read=False).count() if no >= 1: return True else: return False
23.333333
67
0.707143
0
0
0
0
186
0.664286
0
0
0
0
2bc2f3579b936e5347d7069c68b383a1d2e7b783
499
py
Python
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
2
2021-09-15T04:12:07.000Z
2022-02-04T02:44:09.000Z
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
import pytest from ekorpkit import eKonf @pytest.mark.local() def test_fred(): cfg = eKonf.compose(config_group="io/fetcher=quandl") cfg.series_name = "DFEDTAR" cfg.series_id = ["DFEDTAR", "DFEDTARU"] cfg.force_download = True fred = eKonf.instantiate(cfg) cfg = eKonf.compose(config_group="v...
23.761905
63
0.677355
0
0
0
0
455
0.911824
0
0
91
0.182365
2bc30fd5ccd085f6e33f22005fb27c74cb901846
16,111
py
Python
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
5
2021-07-24T15:11:28.000Z
2021-07-24T15:11:49.000Z
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
import os import operator from flask import Blueprint, redirect, render_template, url_for, request, session from flask_socketio import SocketIO, emit, join_room, leave_room from . import socketio from .helper import * from .generator import generate_room_code from .database import * MIN_PLAYER_COUNT = 4 app = Bluepri...
36.042506
136
0.638322
0
0
0
0
4,435
0.275278
0
0
6,746
0.41872
2bc4ad754b21348d16285e2026fcdacb8e8dc9ad
1,075
py
Python
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This module requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.module import Module from hatsploit.utils.session import SessionTools class HatSploitModule(Module, SessionTools): details = { 'Name': "Uni...
26.219512
65
0.572093
835
0.776744
0
0
0
0
0
0
447
0.415814
2bc4ad99cec6515a6001bb4ad4c1f6891d5605dd
293
py
Python
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
p = ('Curso', 'Video', 'Python') cont = 0 contl = 0 while True: while True: if p[cont][contl] in 'AaEeIiOoUu': print(p[cont][contl]) contl += 1 if contl >= len(p[cont]): break contl = 0 cont += 1 if cont >= len(p): break
19.533333
42
0.467577
0
0
0
0
0
0
0
0
34
0.116041
2bc5c9f0df460e7d769b16ab75ae99c2117d9daa
3,951
py
Python
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
import requests import time from urllib.parse import urlparse, parse_qs from selenium.common.exceptions import NoSuchElementException def SolveCaptcha(api_key, site_key, url): """ Uses the 2Captcha service to solve Captcha's for you. Captcha's are held in iframes; to solve the captcha, you need a part of...
41.589474
185
0.68894
0
0
0
0
0
0
0
0
2,184
0.552771
2bc827b81d318e5b08fd6be908891296ced5a47e
3,350
py
Python
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
1
2022-02-01T04:50:22.000Z
2022-02-01T04:50:22.000Z
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
2
2021-12-07T10:40:44.000Z
2021-12-23T13:42:07.000Z
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
null
null
null
import re import os.path as osp import requests # from fake_useragent import UserAgent from bpyutils.db import get_connection from bpyutils.util.proxy import get_random_requests_proxies from bpyutils.util._dict import merge_dict from bpyutils.util.imports import import_or_raise from bpyutils.util.string ...
30.18018
100
0.618806
0
0
0
0
0
0
0
0
748
0.223284
2bcbff98a3b8f0e8db73d81591bf41ea08b8b323
1,845
py
Python
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
null
null
null
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
null
null
null
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
1
2021-11-19T13:05:53.000Z
2021-11-19T13:05:53.000Z
from bclearer_source.b_code.common_knowledge.content_operation_types import ContentOperationTypes from bclearer_source.b_code.common_knowledge.digitialisation_level_stereotype_matched_ea_objects import \ DigitalisationLevelStereotypeMatchedEaObjects from bclearer_source.b_code.configurations.content_operation_confi...
52.714286
138
0.852033
0
0
0
0
0
0
0
0
74
0.040108
2bcdc35a04b16095280a01dc75b1da9b3b40cc93
1,246
py
Python
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
"""solution.py""" import math import os import random import re import sys import timeit class SimpleXOR: def xor(self, a, b): return a ^ b def dynamicArray(n, queries): last_answer = 0 all_answer = [] arr = [[] for _ in range(n)] xor = SimpleXOR() for row in queries: t = row...
22.654545
79
0.539326
62
0.049481
0
0
0
0
0
0
90
0.071828
2bcdd23129cd748120cb2b5f88558b1bd84fa70e
9,644
py
Python
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
import re import json from reading_json import modification_json from downloadable_file_fast import downloadable def _get_nucleotide_contributions(line): patterns = line.split(' ') contribution = [{'A': 0, 'C': 0, 'T': 0, 'G': 0} for i in range(len(patterns[0]))] for pattern in patterns: # print p...
39.52459
219
0.501659
0
0
0
0
0
0
0
0
3,932
0.407715
2bcf4ebb9b8e16ba99b810270dfd24d5a5b61f81
1,235
py
Python
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
null
null
null
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
1
2021-05-12T17:54:04.000Z
2021-05-12T17:54:04.000Z
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
1
2021-05-12T12:16:39.000Z
2021-05-12T12:16:39.000Z
import logging import uuid from jsonscribe import utils class AttributeSetter(logging.Filter): """ Ensure that attributes exist on :class:`~logging.LogRecord` s. :keyword dict add_fields: maps fields to create on :class:`~logging.LogRecord` instances to their default values The valu...
28.068182
71
0.595951
1,175
0.951417
0
0
0
0
0
0
587
0.475304
2bcf6e636ec67d0a627f8da839c75c8a049a8846
273
py
Python
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
2
2019-11-20T16:18:53.000Z
2020-05-25T11:00:58.000Z
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
null
null
null
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
null
null
null
from ariadne import ObjectType class Entity: pass def create_entity(name, key_resolvers, key_name): object_type = ObjectType(name) setattr(object_type, "key_resolver", key_resolvers) object_type.set_field(key_name, key_resolvers) return object_type
21
55
0.765568
22
0.080586
0
0
0
0
0
0
14
0.051282
2bd109992083f654ea69f6db60e377f6f8a7e5c8
831
py
Python
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
"""The script makes the sources to have same length, as well as have the same sampling rate""" from scipy.io import wavfile import utilities as utl # Read the .wav files as numpy arrays rate1, data1 = wavfile.read("sourceX.wav") rate2, data2 = wavfile.read("sourceY.wav") # Plot the sounds as time series data utl.plot...
37.772727
106
0.740072
0
0
0
0
0
0
0
0
482
0.580024
2bd309d040112a1127680460018a592ca804766a
1,389
py
Python
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
16
2021-01-30T16:03:19.000Z
2022-03-27T11:13:05.000Z
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
1
2021-01-30T19:28:05.000Z
2021-01-30T19:28:05.000Z
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
null
null
null
from swi_ml import activations from swi_ml.regression.linear_regression import ( _BaseRegression, L1_L2Regularisation, ) class LogisticRegressionGD(_BaseRegression): def __init__( self, num_iterations: int, learning_rate: float, multiply_factor=None, l1_ratio=None, ...
28.346939
65
0.596832
1,257
0.904968
0
0
0
0
0
0
153
0.110151
2bd3ca214bb18b2244342ed2d4e2e70853a6ed4f
1,721
py
Python
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
null
null
null
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
15
2021-11-09T10:49:34.000Z
2021-11-09T16:11:01.000Z
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
null
null
null
import json from collections import defaultdict from rest_framework import exceptions, request, response, serializers, viewsets from rest_framework.decorators import action from rest_framework.mixins import ListModelMixin, RetrieveModelMixin from ee.clickhouse.client import sync_execute from ee.clickhouse.sql.person ...
39.113636
98
0.733876
1,241
0.721092
0
0
870
0.50552
0
0
454
0.2638
2bd55328213ae4ee50db668e28293c74adbf04e3
1,198
py
Python
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
from django.db import migrations from api.audit_trail.enums import AuditType def update_good_review_payload(apps, schema_editor): """ Convert old AuditType.verb with format to new AuditType.verb as enum value. """ if schema_editor.connection.alias != "default": return Audit = apps.get_mo...
30.717949
105
0.641903
210
0.175292
0
0
0
0
0
0
324
0.270451
2bd5f8544212e23f65b882d89a3c224ece175d41
2,882
py
Python
src/App/tests/test_setConfiguration.py
tseaver/Zope-RFA
08634f39b0f8b56403a2a9daaa6ee4479ef0c625
[ "ZPL-2.1" ]
2
2015-12-21T10:34:56.000Z
2017-09-24T11:07:58.000Z
src/App/tests/test_setConfiguration.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
src/App/tests/test_setConfiguration.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
35.146341
78
0.644344
2,007
0.696391
0
0
0
0
0
0
871
0.302221
2bd8a7bf4f3a44da4637775f9b8932d258ab790c
412
py
Python
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
def replace_all(replace_string, actual_string): while replace_string in actual_string: actual_string = actual_string.replace(replace_string, "") return actual_string print(replace_all(input(), input())) # replace_string = input() # actual_string = input() # # while replace_string in actual_string: # ...
25.75
65
0.737864
0
0
0
0
0
0
0
0
185
0.449029
2bd921498006ca8970775bb2c1edd726ac7ac468
2,201
py
Python
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
# https://oj.leetcode.com/problems/wildcard-matching/ class Solution: @classmethod def _memorize(cls, f): def helper(self, s, p): key = s + '|' + p if key not in self.memo: self.memo[key] = f(self, s, p) return self.memo[key] return helper def __init__(self): self.memo = {}...
26.841463
93
0.548841
1,820
0.826897
0
0
205
0.093139
0
0
642
0.291686
2bd961445c34c74c0a9eb7f394997d458e3c36e7
2,138
py
Python
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.508772
92
0.597755
0
0
0
0
0
0
0
0
1,127
0.527128
2bd9973a07e3156ff4a84bcb99cd3ef64fb4cedb
2,066
py
Python
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
import random import pandas as pd import compare_bigrams import sys import os import as_numeric import quantify_copying # The file that contains the base corpus INPUT_FILE = "../corpus/cath8.txt" # Each line should be a sentence, with the words separated by spaces # Read the input file and obtain a list of list o...
28.694444
97
0.690707
0
0
0
0
0
0
0
0
661
0.319942
2bdb68df54d9aa08cc436ff6ba347abae2b26cdc
1,421
py
Python
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
from baseTest.BaseTestObject import BaseTestObject # The type Driver manager. class DriverManager: # Base Test Object. baseTestObject = BaseTestObject # The Base driver. baseDriver = object() # The Get driver. getDriverSupplier = object() # Instantiates a new Driver manager. # @para...
26.811321
62
0.684025
1,340
0.942998
0
0
0
0
0
0
481
0.338494
2bde73b9764fb0136ef3271756f67c6a2f1b95a4
2,406
py
Python
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
2
2019-10-25T12:22:49.000Z
2019-10-25T13:22:11.000Z
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
null
null
null
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os from utils import ( get_page, internet_on, my_log, post_dict_to_list, read_posts_dict, write_posts, ) cdname = os.path.dirname(__file__) filename = os.path.join(cdname, 'pkuhole.txt') filename_bak = os.path.join(cdname, 'pkuholebak.txt') if __name__ == '__main__'...
26.152174
79
0.582294
0
0
0
0
0
0
0
0
500
0.207814
2be01fdba7fd4a0fd0bcbe156a75252f384d72ef
18,436
py
Python
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import argparse import os from misc import logger from misc import constants from collections import defaultdict, OrderedDict import numpy import re class ExecutionResult: def __init__(self): self.test_number = 0 self.execution_time = ExecutionTime() class ExecutionTime: def __init__(self, to...
41.804989
115
0.612118
16,936
0.918637
0
0
0
0
0
0
2,912
0.157952
2be0ca04e974edf9be7a5a0fcaafe17dd5800ba0
132
py
Python
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
48
2015-02-05T15:25:47.000Z
2022-01-07T05:52:03.000Z
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
null
null
null
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
21
2015-02-12T23:50:10.000Z
2019-12-12T08:25:35.000Z
# -*- encoding: utf-8 -*- from coderunner import test, Python, main test(Python, "recursive.py", """ 15 """, is_file=True) main()
14.666667
41
0.636364
0
0
0
0
0
0
0
0
49
0.371212
2be1a1fa8ec7479aeac3b69430ba8d4a6a93005c
2,406
py
Python
tests/test_potential_of_layers.py
calliope-project/solar-and-wind-potentials
a17000028b1c391d37b415859697aa71aea4affe
[ "MIT" ]
8
2020-10-28T14:03:39.000Z
2022-01-08T16:38:42.000Z
tests/test_potential_of_layers.py
calliope-project/solar-and-wind-potentials
a17000028b1c391d37b415859697aa71aea4affe
[ "MIT" ]
18
2020-10-28T08:58:01.000Z
2021-05-14T16:33:23.000Z
tests/test_potential_of_layers.py
timtroendle/solar-and-wind-potentials
8b15f3d20a47ba3631f03026a4263ecd1fcbfd58
[ "MIT" ]
1
2020-12-07T03:13:28.000Z
2020-12-07T03:13:28.000Z
"""Test whether potential estimations between layers are similar.""" import os from pathlib import Path import pytest import pandas as pd from renewablepotentialslib.eligibility import Potential TOLERANCE = 0.005 # 0.5% BUILD_DIR = Path(os.path.abspath(__file__)).parent.parent / "build" PATH_TO_CONTINENTAL_POTENTIA...
45.396226
112
0.790524
0
0
0
0
1,713
0.71197
0
0
532
0.221114
2be599f1d48fa45f9d8d32cfab95f648f8f75077
429
py
Python
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
from flask import Flask from .ext import site from .ext import config from .ext import toolbar from .ext import db from .ext import migrate from .ext import cli def create_app(): """Factory to create a Flask app based on factory pattern""" app = Flask(__name__) config.init_app(app) db.init_app(app) ...
22.578947
64
0.710956
0
0
0
0
0
0
0
0
60
0.13986
2be6278c41064f7dddfcf63804ac3110527470ea
161
py
Python
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
1
2020-04-17T17:01:01.000Z
2020-04-17T17:01:01.000Z
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
null
null
null
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
null
null
null
# Created by SNEHAL at 21-04-2020 Feature: #Enter feature name here # Enter feature description here Scenario: # Enter scenario name here # Enter steps here
20.125
37
0.757764
0
0
0
0
0
0
0
0
133
0.826087
2be7b6a4c3ecbf9fa56f76e517a0e77803b09915
7,231
py
Python
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Odds and ends in support of tests """ import os import pytest import numpy as np import copy from astropy import time from pypeit import arcimage from pypeit import traceslits from pypeit import wavecalib from pypeit import wavetilts from pypeit.masterframe import MasterFrame from pypeit.core.wavecal import wavei...
35.79703
102
0.637395
0
0
0
0
0
0
0
0
2,316
0.320288
2be7c4031f35d62bfd049a33b25b2f6481558602
1,041
py
Python
calaccess_processed/admin/tracking.py
dwillis/django-calaccess-processed-data
f228252df1b390967468b41d336839f1bd9ca192
[ "MIT" ]
1
2021-01-13T12:06:25.000Z
2021-01-13T12:06:25.000Z
calaccess_processed/admin/tracking.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
calaccess_processed/admin/tracking.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Custom administration panels for tracking models. """ from __future__ import unicode_literals from django.contrib import admin from calaccess_processed import models from calaccess_raw.admin.base import BaseAdmin @admin.register(models.ProcessedDataVersion) class Proc...
25.390244
54
0.683958
685
0.658021
0
0
772
0.741595
0
0
445
0.427474
2be8db748a16a1d91326b5c85994bfcde6e8d3f2
2,735
py
Python
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
null
null
null
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
3
2016-11-10T18:57:44.000Z
2017-09-10T16:12:13.000Z
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from setuptools import setup import os.path as path info_name = 'screenpdf' info_url = 'https://github.com/arthurazs/{}/'.format(info_name) author_name = 'Arthur Zopellaro' email = 'arthurazsoares@gmail.com' try: with open(path.abspath(path.join(info_name, ...
30.730337
68
0.603656
0
0
0
0
0
0
0
0
1,238
0.452651
2be994b7f975fe87a3e9a788b292a3f07f0cb749
482
py
Python
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
# welcome blink and post import time import board import digitalio import microcontroller led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT for x in range(3): led.value = False time.sleep(0.2) led.value = True time.sleep(0.2) print("This is a {}, running at {:.1f} MH...
25.368421
113
0.732365
0
0
0
0
0
0
0
0
103
0.213251
2bebba5f36f0fc773a08af1c42a4714df0febac4
597
py
Python
221/main.py
JanaSabuj/Leetcode-solutions
78d10926b15252a969df598fbf1f9b69b2760b79
[ "MIT" ]
13
2019-10-12T14:36:32.000Z
2021-06-08T04:26:30.000Z
221/main.py
JanaSabuj/Leetcode-solutions
78d10926b15252a969df598fbf1f9b69b2760b79
[ "MIT" ]
1
2020-02-29T14:02:39.000Z
2020-02-29T14:02:39.000Z
221/main.py
JanaSabuj/Leetcode-solutions
78d10926b15252a969df598fbf1f9b69b2760b79
[ "MIT" ]
3
2020-02-08T12:04:28.000Z
2020-03-17T11:53:00.000Z
class Solution: def maximalSquare(self, mat: List[List[str]]) -> int: n = len(mat) m = len(mat[0]) mx = 0 dp = [[0 for _ in range(m)] for _ in range(n)] for i in range(n): for j in range(m): if i == 0 or j == 0: dp[...
29.85
77
0.350084
597
1
0
0
0
0
0
0
6
0.01005
2bed27e78e266549ed3fd0ab95fec60eddae005c
3,481
py
Python
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
1
2021-08-04T04:03:35.000Z
2021-08-04T04:03:35.000Z
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
1
2021-04-19T17:14:31.000Z
2021-04-19T17:14:31.000Z
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Marcel Bollmann <marcel@bollmann.me> # # 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 r...
31.645455
82
0.595806
2,786
0.800345
0
0
561
0.161161
0
0
1,329
0.381787
2bf00f70f8211fba122e48124085551574fc2d0f
8,150
py
Python
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: import mnist_loader as load import neural_network as neuronet import activation_functions as af import optimisation_functions as of import cost_functions as cf import learningStep_generators as lg import numpy as np import matplotlib.pyplot as plt get_ipython().magic('matplotlib inline') ...
38.084112
191
0.766503
0
0
0
0
0
0
0
0
1,888
0.231656
2bf019712de59bf5b206a860d7ffb4d44cf73b61
8,005
py
Python
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 4 16:35:40 2019 @author: asiddi24 """ '''Four box model''' import numpy as np import gsw as gsw import time import matplotlib.pyplot as plt def fourbox(N,Kv,AI,Mek,Aredi,M_s,D0,T0s,T0n,T0l,T0d,S0s,S0n,S0l,S0d,Fws,Fwn,epsilon): Area = 3...
44.72067
145
0.484322
0
0
0
0
0
0
0
0
539
0.067333
2bf108d95891106d4dc930297e966511ec0c8d34
981
py
Python
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
null
null
null
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
1
2021-12-22T14:08:37.000Z
2021-12-22T14:08:37.000Z
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
1
2021-12-24T11:50:26.000Z
2021-12-24T11:50:26.000Z
import io from django.core.management.base import BaseCommand from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from api.models import Pet from api.serializers import PetSerializer class Command(BaseCommand): """Uploading pets from the command line to stdout in JSON...
29.727273
72
0.666667
749
0.763507
0
0
0
0
0
0
187
0.190622
2bf122809aba2074e678a428f5c1706ec17b6493
626
py
Python
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
import numpy as np def load_dataset(path): # initialize the list of data and labels data = [] labels = [] # retrieve data from CSV for row in open(path): # parse the label and image from the row row = row.split(",") label = ord(row[0]) - ord("A") # scale labels to be numbe...
26.083333
88
0.583067
0
0
0
0
0
0
0
0
231
0.36901
2bf153b34978b2dda75bc3fb18aee51e8b4afa45
649
py
Python
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_equipment_alert_level import ( v3EquipmentAlertLevel as v3EquipmentAlertLevel_, ) __all__ = ["v3EquipmentAlertLevel"] _resource = _ValueSet.parse_file(Path(...
20.935484
69
0.750385
294
0.453005
0
0
0
0
0
0
221
0.340524
2bf1fa79fccb8a23dfa75ef82b9bf40360252990
3,284
py
Python
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
"""moderation cog""" from discord.ext import commands import discord from utils.database import CursorDB from utils.page import Pages, make_groups from utils.utilities import basic_frame, basic_message from utils.reactions import Reactions class Moderator(commands.Cog, CursorDB, Pages): """ Commands for...
29.321429
105
0.601705
2,984
0.90644
0
0
2,720
0.826245
2,348
0.713244
844
0.256379
2bf2f7c097096dee417521bb08ed9caad1bcf85b
4,340
py
Python
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
null
null
null
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
1
2022-02-02T06:40:04.000Z
2022-02-02T06:40:04.000Z
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os.path from mpi4py import MPI import numpy as np import pandas as pd import tensorflow as tf import configparser import numba import multiprocessing as mp import sys from concurrent.futures import ThreadPoolExecutor from _migration import calculate_migration @numba.njit(parallel=True) ...
32.631579
124
0.66659
0
0
0
0
75
0.017281
0
0
334
0.076959
2bf3a2f0d26b50aa2cf1e968ebff3eed788af470
13,622
py
Python
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
2
2017-12-20T16:56:37.000Z
2021-01-19T18:41:53.000Z
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
18
2015-01-03T21:33:09.000Z
2018-12-04T12:05:58.000Z
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
6
2015-01-02T01:16:38.000Z
2021-09-04T01:28:38.000Z
import json import os import unittest from unittest.mock import Mock, patch import requests_mock from dateutil import relativedelta from plugins.trakt.trakt import Trakt from plugins.trakt import api """ Presets copied from Trakt's API """ ACTIVITY_PRESET_EPISODE_1 = { "watched_at": "2014-03-31T09:28:53.000Z"...
34.75
143
0.551681
11,444
0.840112
0
0
3,635
0.266848
0
0
3,858
0.283218
2bf4cf97686269a46eb3ddc822b1a02b29a68eb9
5,675
py
Python
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
1
2020-05-04T23:49:38.000Z
2020-05-04T23:49:38.000Z
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
5
2020-05-06T01:22:37.000Z
2020-05-28T18:13:04.000Z
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
1
2020-06-07T22:23:56.000Z
2020-06-07T22:23:56.000Z
import math import numpy as np SAMPLERATE = 48000 class ADSR: def __init__(self, a=0.1, d=0.2, s=0.6, r=0.5): self.timings = { 0 : 0, 1 : 1 / ((a * SAMPLERATE) + 1), 2 : -1 / ((d * SAMPLERATE) + 1), 3 : 0, 4 : -1 / ((r * SAMP...
29.868421
92
0.570396
2,283
0.402291
0
0
0
0
0
0
61
0.010749
2bf8e95176c9e685fb3202612e058ef1486d6f76
4,077
py
Python
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
1
2022-03-30T08:21:12.000Z
2022-03-30T08:21:12.000Z
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
null
null
null
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
null
null
null
import pathlib from flask import Flask, redirect, render_template, request, Response, url_for, session import secrets import json from Predictions_using_trained_model import predictionsUsingTheTrainedModels from predictionDatabaseOperations import PredictionDBOperations from predictionPreprocessing import PredictionPr...
32.616
107
0.727005
0
0
0
0
3,287
0.80623
0
0
1,664
0.408143
2bf9743b7839d926775ed3660be8f3a065cd08dd
2,017
py
Python
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
def read_tweets(file): """ (file open for reading) -> dict of {str: list of tweet tuples} Return a dictionary with the names of the candidates as keys, and tweet tuple in the form of (candidate, tweet text, date, source, favorite count, retweet count)as values """ dic = {} key = "" ...
35.385965
80
0.54239
0
0
0
0
0
0
0
0
1,158
0.57412
2bf9da14a8590cb2e410ccf84e328acb4bba5bef
607
py
Python
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
cond = 'S' num = quant = soma = maior = menor =0 while cond in 'Ss': num = int(input(' Informe um numero:')) quant += 1 soma += num cond = str(input('Quer Continuar?[S/N]')).upper().strip()[0] if quant == 1: maior = menor = num else: if num > maior: maior = num ...
27.590909
76
0.532125
0
0
0
0
0
0
0
0
205
0.336066
2bfa633ea90ac984f4075624c6eb6d5ad5a3bbf4
6,206
py
Python
scAnalysis/Segmentation.py
yuzhounaut/SpaceM
0fed7f14bb7d378ed0a8cf2e075bc562d6eed497
[ "Apache-2.0" ]
8
2020-05-26T13:32:29.000Z
2021-12-05T20:32:38.000Z
scAnalysis/Segmentation.py
yuzhounaut/SpaceM
0fed7f14bb7d378ed0a8cf2e075bc562d6eed497
[ "Apache-2.0" ]
2
2021-06-08T21:39:05.000Z
2022-03-12T00:31:50.000Z
scAnalysis/Segmentation.py
LRpz/SpaceM
03f7b3b871ec70ed38df63adfc4efcd30c3896a5
[ "Apache-2.0" ]
3
2020-06-18T17:06:16.000Z
2021-10-08T06:55:07.000Z
from subprocess import call import matplotlib.pyplot as plt import numpy as np import tqdm from scipy import ndimage def callCP(MFA, cp_p, cppipe_p): """Call CellProfiler (http://cellprofiler.org/) to perform cell segmentation. CellProfiler segmentation pipeline is in the spaceM folder with the '.cppipe' exte...
38.7875
121
0.633742
0
0
0
0
0
0
0
0
2,208
0.355785
2bfb524c2e56d706d022852606cbc81b117c3933
1,612
py
Python
py/camvid.py
StoneWST/Dataset-Tool-for-Segmentation-
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
4
2021-06-03T09:02:36.000Z
2022-02-28T00:58:22.000Z
py/camvid.py
wusitong98/Dataset-Tool-Segmentation
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
null
null
null
py/camvid.py
wusitong98/Dataset-Tool-Segmentation
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
null
null
null
import os import fire def gen_camvid_txt(): camvid_train_list = [] camvid_val_list = [] camvid_test_list = [] camvid_train_img_folder = "data/CamVid/train" camvid_val_img_folder = "data/CamVid/val" camvid_test_img_folder = "data/CamVid/test" camvid_train_img_list = os.listdir(camvid_trai...
28.280702
72
0.694789
0
0
0
0
0
0
0
0
230
0.14268