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
e5f747a9d4b2a20c7688e823ef456d609f3c3b3d
497
py
Python
scripts/MongoDash/callbacks/empty_graph.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
73
2021-07-08T23:35:08.000Z
2022-03-31T15:17:58.000Z
scripts/MongoDash/callbacks/empty_graph.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
5
2021-09-27T14:27:32.000Z
2022-03-21T23:50:02.000Z
scripts/MongoDash/callbacks/empty_graph.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
39
2021-07-12T05:42:51.000Z
2022-03-31T15:15:34.000Z
import pdb def get_empty_graph(message): emptiness = { "layout": { "xaxis": { "visible": False }, "yaxis": { "visible": False }, "annotations": [ { "text": message, "xref": "paper", "yref"...
18.407407
35
0.325956
0
0
0
0
0
0
0
0
108
0.217304
e5f7fd3c0fafa269562c91d637943b7de22fa323
808
py
Python
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
2
2020-10-29T04:28:45.000Z
2021-03-20T09:49:26.000Z
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
4
2021-03-07T04:57:16.000Z
2022-03-13T21:13:59.000Z
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
3
2020-12-01T09:21:20.000Z
2021-02-24T15:05:02.000Z
import sys from Bio import SeqIO import re import numpy as np def split_genome(genome="ATCGATATACCA", k=3): return re.findall('.'*k, genome) def genearte_one_genome(genome='ATCGATATACCA', k=3): _genome = genome _sentence = split_genome(genome=_genome, k=k) return _sentence def fasta2kmers(fasta_...
23.085714
73
0.647277
0
0
0
0
0
0
0
0
170
0.210396
e5f93c424e080bb00d32a11707e9198b4d6328be
1,466
py
Python
mm_SA_001/solver.py
DmitriKudryashov/setcover
d95d37c268c99d5ed1772e86e9810b6c996a179a
[ "MIT" ]
86
2015-03-10T16:39:52.000Z
2022-03-24T08:13:40.000Z
mm_SA_001/solver.py
DmitriKudryashov/setcover
d95d37c268c99d5ed1772e86e9810b6c996a179a
[ "MIT" ]
7
2015-03-04T09:30:51.000Z
2020-12-31T18:56:51.000Z
mm_SA_001/solver.py
DmitriKudryashov/setcover
d95d37c268c99d5ed1772e86e9810b6c996a179a
[ "MIT" ]
102
2015-01-02T15:12:14.000Z
2022-03-18T09:59:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # HOW TO USE THIS SOLVER: # ------------------------------------------------------------------------------- # # Compile the C++ code setCoversa.cpp into an executable setCoversa # Linux: g+...
28.745098
131
0.597544
0
0
0
0
0
0
0
0
784
0.534789
e5fc1a53ac1718e28efd430f3370ee09b0452d38
5,441
py
Python
last_screen_tinkinter.py
cfrenkel/Songo
160c91ce8f191b94519437656a219d86dcd77f63
[ "MIT" ]
3
2019-02-07T12:25:21.000Z
2019-02-07T12:26:35.000Z
last_screen_tinkinter.py
cfrenkel/Songo
160c91ce8f191b94519437656a219d86dcd77f63
[ "MIT" ]
null
null
null
last_screen_tinkinter.py
cfrenkel/Songo
160c91ce8f191b94519437656a219d86dcd77f63
[ "MIT" ]
null
null
null
# import ctypes # # from PIL import ImageTk, Image # import cv2 # import tkinter as tk # import music_control # import speed_detection # import threading # # class MainWindow(tk.Frame): # def __init__(self, master=None): # super().__init__(master) # self.newMaster = master # self.master = ma...
27.760204
123
0.574343
1,421
0.260209
0
0
0
0
0
0
3,932
0.720015
e5fde087ff89b55704670fe7d181d26045924a03
9,762
py
Python
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
1
2022-01-12T15:36:30.000Z
2022-01-12T15:36:30.000Z
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
null
null
null
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
null
null
null
from transformers import AutoTokenizer from pathlib import Path import torch from src.reader.pan_hatespeech import AUTHOR_SEP, AUTHOR_ID import numpy as np from sklearn.model_selection import StratifiedKFold from src.utils import RANDOM_SEED from pathlib import Path import xml.etree.ElementTree as ET from transformers ...
41.896996
119
0.521205
9,239
0.946425
0
0
300
0.030731
0
0
972
0.09957
e5fe149f57cd02f1ac0914d38105b287b42a97c0
6,585
py
Python
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 molokhovdmitry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
30.771028
79
0.639028
0
0
0
0
0
0
0
0
2,887
0.438421
f900890adc7949963a4aa7f524446cd1c7206958
385
py
Python
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
import time from selenium import webdriver def main(): driver = webdriver.Chrome(executable_path='chromedriver.exe') driver.get('https://www.w3schools.com/') #input() time.sleep(5) driver.find_element_by_css_selector('#w3loginbtn').click() #Conseguiremos copiando del objeto el selector del objeto. ...
27.5
121
0.711688
0
0
0
0
0
0
0
0
149
0.387013
f90152bc71aae7d837d6a1c5e96b7dfa9cb2abc6
1,158
py
Python
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
null
null
null
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
1
2019-04-12T06:25:36.000Z
2019-04-12T06:26:06.000Z
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
null
null
null
import time from model_zoo import load_model, resnet, googLeNet import ensembel_model import utils import cv2 import numpy as np import torch from torch import nn import os os.environ["CUDA_VISIBLE_DEVICES"] = "{}".format(1) # test resnet version = 'resnet-tiny-n7' new_model = resnet.my_resnet mean = np.array([[[[1...
24.125
77
0.665803
0
0
0
0
0
0
0
0
249
0.215026
f9019bd17eb89cddd56f5b092e2ea9378fef8dc4
516
py
Python
setup.py
gelo-zhukov/django-simple-seo
872894917b39f2e938ac9a25471326d7a8c01873
[ "BSD-3-Clause" ]
1
2020-02-18T13:54:02.000Z
2020-02-18T13:54:02.000Z
setup.py
gelo-zhukov/django-simple-seo
872894917b39f2e938ac9a25471326d7a8c01873
[ "BSD-3-Clause" ]
null
null
null
setup.py
gelo-zhukov/django-simple-seo
872894917b39f2e938ac9a25471326d7a8c01873
[ "BSD-3-Clause" ]
2
2015-06-23T09:10:28.000Z
2020-07-25T10:04:31.000Z
import os from setuptools import setup setup( name='simpleseo', version='0.0.1', author='Glamping Hub', author_email='it@glampinghub.com', packages=['simpleseo'], url='https://github.com/Glamping-Hub/django-simple-seo', license='LICENSE', description='Simple SEO app for django framewor...
24.571429
87
0.656977
0
0
0
0
0
0
0
0
190
0.368217
f901a74dc09b82cece000f2c7ec33eaff647de92
26
py
Python
cryptolytic/__init__.py
Lambda-School-Labs/cryptolytic-ds
b58b6eb2b82a404f9d2d468e706d49d9c5999f21
[ "MIT" ]
13
2019-10-10T21:01:23.000Z
2020-06-05T11:18:31.000Z
cryptolytic/__init__.py
ross-fisher/cryptolytic-ds
1539ae7311a622035d631058ebe47e7c697e3c11
[ "MIT" ]
3
2019-12-18T16:46:48.000Z
2020-01-09T21:47:48.000Z
cryptolytic/__init__.py
ross-fisher/cryptolytic-ds
1539ae7311a622035d631058ebe47e7c697e3c11
[ "MIT" ]
10
2019-10-15T15:30:25.000Z
2020-05-11T22:07:52.000Z
import os session = None
6.5
14
0.730769
0
0
0
0
0
0
0
0
0
0
f902e32cb0c6f87b960daa97f2b7828a5ba52e29
38,435
py
Python
ross/tests/test_rubbing.py
rodrigomoliveira1/ross
51f9379a8a834e1253b94e70dd9f5324acd8c78e
[ "MIT" ]
1
2021-07-20T04:24:19.000Z
2021-07-20T04:24:19.000Z
ross/tests/test_rubbing.py
rodrigomoliveira1/ross
51f9379a8a834e1253b94e70dd9f5324acd8c78e
[ "MIT" ]
null
null
null
ross/tests/test_rubbing.py
rodrigomoliveira1/ross
51f9379a8a834e1253b94e70dd9f5324acd8c78e
[ "MIT" ]
null
null
null
import os from pathlib import Path from tempfile import tempdir import numpy as np import pytest from numpy.testing import assert_allclose, assert_almost_equal import ross as rs from ross.defects.misalignment import MisalignmentFlex from ross.units import Q_ steel2 = rs.Material(name="Steel", rho=7850, E=2.17e11, Po...
57.19494
92
0.452738
0
0
0
0
1,018
0.026486
0
0
215
0.005594
f90424eb70e977fa6f417a29fc944a6fba32e65d
45
py
Python
sickbeard/lib/pynma/__init__.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/pynma/__init__.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/pynma/__init__.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
#!/usr/bin/python from pynma import PyNMA
9
24
0.711111
0
0
0
0
0
0
0
0
17
0.377778
f9067c53c005e376f4cfe9ae079b5ab8e9d70c34
285
py
Python
setup.py
rectangletangle/iterlib
5863f5d2ca3fc89cc71e1f170b2fd52e7d376a5d
[ "BSD-2-Clause" ]
1
2015-03-06T09:33:25.000Z
2015-03-06T09:33:25.000Z
setup.py
rectangletangle/iterlib
5863f5d2ca3fc89cc71e1f170b2fd52e7d376a5d
[ "BSD-2-Clause" ]
null
null
null
setup.py
rectangletangle/iterlib
5863f5d2ca3fc89cc71e1f170b2fd52e7d376a5d
[ "BSD-2-Clause" ]
null
null
null
import iterlib from distutils.core import setup setup(name=iterlib.__name__, version=iterlib.__version__, description=iterlib.__doc__, author=iterlib.__author__, author_email=iterlib.__email__, url=iterlib.__url__, packages=[iterlib.__name__])
19
37
0.722807
0
0
0
0
0
0
0
0
0
0
f9093408439e26def7b0c8a935ff0f1ec59c9b79
364
py
Python
mix_backup/workspace/KirkB-Automation/check_point_finder/Network02.py
0dadj1an/mix
a4f289b115686b221cc71aaf232bc76d4453dff8
[ "Apache-2.0" ]
null
null
null
mix_backup/workspace/KirkB-Automation/check_point_finder/Network02.py
0dadj1an/mix
a4f289b115686b221cc71aaf232bc76d4453dff8
[ "Apache-2.0" ]
null
null
null
mix_backup/workspace/KirkB-Automation/check_point_finder/Network02.py
0dadj1an/mix
a4f289b115686b221cc71aaf232bc76d4453dff8
[ "Apache-2.0" ]
null
null
null
import cpauto session = cpauto.CoreClient('admin', 'cisco123', '192.168.0.250') output = session.login() policies = cpauto.PolicyPackage(session) output = policies.show_all() outputdictfromserver = output.json() outputdictfromserver['packages'] counter=0 print outputdictfromserver output = session.logout() pr...
19.157895
65
0.725275
0
0
0
0
0
0
0
0
42
0.115385
f9098f375c9a6e85e1d5127cd965e29b7cdfa5a4
1,315
py
Python
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
6,304
2015-01-05T23:45:12.000Z
2022-03-31T09:48:13.000Z
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
67
2016-04-18T13:30:02.000Z
2022-03-31T23:06:55.000Z
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
1,231
2015-01-05T03:17:39.000Z
2022-03-31T22:54:58.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Create the asset and upload it.""" import os import subprocess import sys import tempfile FILE_DIR = os.path.dirname(os.path.abspath(__file__)) ASSET = os...
29.222222
80
0.670722
0
0
0
0
0
0
0
0
627
0.476806
f90ab2849b2e284d4af9d06d042c800ea64ec2f7
1,487
py
Python
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
1
2019-06-13T14:21:48.000Z
2019-06-13T14:21:48.000Z
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
from mxnet import nd # 二维互相关 def corr2d(X, K): h, w = K.shape Y = nd.zeros((X.shape[0] - h + 1, X.shape[1] - w + 1)) for i in range(Y.shape[0]): for j in range(Y.shape[1]): Y[i, j] = (X[i:i + h, j:j + w] * K).sum() return Y # 对多通道输入的二维互相关 def corr2d_multi_in(X, K): # 首先沿着X和K的...
26.087719
59
0.566241
0
0
0
0
0
0
0
0
663
0.357798
f91114b11e69845ded8fd16b0a8d6a5869cb61e2
2,777
py
Python
app/routers/sentences.py
ephraimberkovitch/cadet
40ff288bfa96a3a0615fdf0b4d79246bc0fb0011
[ "MIT" ]
2
2021-06-23T14:03:09.000Z
2021-11-21T01:06:03.000Z
app/routers/sentences.py
ephraimberkovitch/cadet
40ff288bfa96a3a0615fdf0b4d79246bc0fb0011
[ "MIT" ]
13
2021-06-23T16:07:57.000Z
2021-07-09T20:51:09.000Z
app/routers/sentences.py
ephraimberkovitch/cadet
40ff288bfa96a3a0615fdf0b4d79246bc0fb0011
[ "MIT" ]
2
2021-06-23T16:09:32.000Z
2022-03-18T12:44:25.000Z
import importlib.util # https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path import json from pathlib import Path from fastapi import APIRouter, Depends from fastapi.responses import HTMLResponse from fastapi import Request, Form from fastapi.templating import Jinja2Templates template...
39.112676
128
0.649622
0
0
0
0
1,709
0.615412
1,649
0.593806
631
0.227224
f916bc28e5684a59f27cde56fa82ff78daa7b8b0
2,797
py
Python
tests/test_options.py
mje-nz/pythontexfigures
60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84
[ "BSD-3-Clause" ]
4
2020-08-29T21:51:51.000Z
2021-07-03T08:52:13.000Z
tests/test_options.py
mje-nz/pythontexfigures
60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84
[ "BSD-3-Clause" ]
null
null
null
tests/test_options.py
mje-nz/pythontexfigures
60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84
[ "BSD-3-Clause" ]
null
null
null
"""Tests for pythontexfigures LaTeX package options.""" from pathlib import Path import pytest from util import build # noqa: I900 DOCUMENT_TEMPLATE = r""" \documentclass{article} %(pre)s \usepackage{pgf} \usepackage{pythontex} \usepackage[%(options)s]{pythontexfigures} %(post)s \begin{document} %(body)s \end{docu...
26.638095
85
0.643904
0
0
0
0
489
0.17483
0
0
1,285
0.459421
f91a9b5d30b6f6b627352832df3808c0d8ef429a
3,030
py
Python
manager/cached_templates/templates/dash.html.py
jordancarlson08/MyStuff
4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773
[ "Apache-2.0" ]
null
null
null
manager/cached_templates/templates/dash.html.py
jordancarlson08/MyStuff
4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773
[ "Apache-2.0" ]
null
null
null
manager/cached_templates/templates/dash.html.py
jordancarlson08/MyStuff
4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773
[ "Apache-2.0" ]
null
null
null
# -*- coding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 9 _modified_time = 1397084402.354378 _enable_loop = True _template_filename = 'C:\\Users\\Jordan Carlson\\Desktop\\MyStuff\\manager\\templates/dash.html' _tem...
38.35443
630
0.663366
0
0
0
0
0
0
0
0
1,121
0.369967
f91c199f67de38b80403807227afe0c66d3dfdc3
636
py
Python
cache/key.py
inktrap/async-cache
ebf289bdcd468e41638880c9b4fdabca858ae20b
[ "MIT" ]
31
2020-04-27T13:15:00.000Z
2022-03-11T07:44:30.000Z
cache/key.py
inktrap/async-cache
ebf289bdcd468e41638880c9b4fdabca858ae20b
[ "MIT" ]
11
2020-04-27T12:28:37.000Z
2022-03-09T09:42:52.000Z
cache/key.py
inktrap/async-cache
ebf289bdcd468e41638880c9b4fdabca858ae20b
[ "MIT" ]
15
2020-05-03T14:52:48.000Z
2022-02-25T15:50:49.000Z
from typing import Any class KEY: def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs def __eq__(self, obj): return hash(self) == hash(obj) def __hash__(self): def _hash(param: Any): if isinstance(param, tuple): return tu...
26.5
58
0.537736
610
0.959119
0
0
0
0
0
0
10
0.015723
f91e45056e688bc8a35dc7a92e07d9a8e0b4f848
322
py
Python
torchsupport/flex/context/context_module.py
coding-ecoli/torchsupport
a8de0e8db4f4b9cfd4ac93c0fa6923fe9151b309
[ "MIT" ]
18
2019-05-02T16:32:15.000Z
2021-04-16T09:33:54.000Z
torchsupport/flex/context/context_module.py
coding-ecoli/torchsupport
a8de0e8db4f4b9cfd4ac93c0fa6923fe9151b309
[ "MIT" ]
5
2019-10-14T13:46:49.000Z
2021-06-08T11:48:34.000Z
torchsupport/flex/context/context_module.py
coding-ecoli/torchsupport
a8de0e8db4f4b9cfd4ac93c0fa6923fe9151b309
[ "MIT" ]
12
2019-05-12T21:34:24.000Z
2021-07-15T14:14:16.000Z
import torch.nn as nn class ContextModule(nn.Module): def __init__(self, ctx=None): super().__init__() self._ctx = ctx @property def ctx(self): return self._ctx @ctx.setter def ctx(self, ctx): for module in self.modules(): if isinstance(module, ContextModule): module._ctx = ct...
18.941176
43
0.649068
298
0.925466
0
0
184
0.571429
0
0
0
0
f91fd42bb12baf319840de39b6b389ba506e6ee2
341
py
Python
auctions/tests/auctions/domain/entities/test_auction.py
hyunsung-kim/py-clean-architecture
50f8d1fabdbbf70fa45a8b31fe235cd0f0e0dd34
[ "MIT" ]
null
null
null
auctions/tests/auctions/domain/entities/test_auction.py
hyunsung-kim/py-clean-architecture
50f8d1fabdbbf70fa45a8b31fe235cd0f0e0dd34
[ "MIT" ]
null
null
null
auctions/tests/auctions/domain/entities/test_auction.py
hyunsung-kim/py-clean-architecture
50f8d1fabdbbf70fa45a8b31fe235cd0f0e0dd34
[ "MIT" ]
null
null
null
import logging from auctions.domain.entities.auction import Auction from auctions.domain.value_objects.money import Money from auctions.domain.value_objects.currency import USD logger = logging.getLogger() def test_auction_class(): money = Money(USD, '100.00') auction = Auction(1, '도자기', money, []) logg...
26.230769
54
0.750733
0
0
0
0
0
0
0
0
31
0.089337
f9201532aaedc6e2918aab248d632b916f61d1ad
34
py
Python
tests/__init__.py
soundappraisal/wavinfo
c966097e7d611366bc4b9b623ed72a1b0b38fe34
[ "MIT" ]
15
2019-05-16T14:07:17.000Z
2022-03-31T17:43:03.000Z
tests/__init__.py
soundappraisal/wavinfo
c966097e7d611366bc4b9b623ed72a1b0b38fe34
[ "MIT" ]
9
2019-02-13T16:04:21.000Z
2022-01-31T02:54:07.000Z
tests/__init__.py
soundappraisal/wavinfo
c966097e7d611366bc4b9b623ed72a1b0b38fe34
[ "MIT" ]
9
2019-05-03T20:39:06.000Z
2022-03-22T20:43:22.000Z
from . import test_wave_parsing
8.5
31
0.794118
0
0
0
0
0
0
0
0
0
0
f920cd367ef49151e3bcd850b0a3a30a2385fffe
296
py
Python
examples/full-example/app/app.py
alwye/fastapi_login
a7a94f6e191e5f81f87cb35ac3ff1947aef33136
[ "MIT" ]
318
2019-10-24T20:18:41.000Z
2022-03-23T16:55:51.000Z
examples/full-example/app/app.py
alwye/fastapi_login
a7a94f6e191e5f81f87cb35ac3ff1947aef33136
[ "MIT" ]
47
2020-01-24T01:07:33.000Z
2022-03-16T12:59:06.000Z
examples/full-example/app/app.py
alwye/fastapi_login
a7a94f6e191e5f81f87cb35ac3ff1947aef33136
[ "MIT" ]
39
2020-04-01T07:23:13.000Z
2022-02-25T12:43:40.000Z
from fastapi import FastAPI from app.routes.auth import router as auth_router from app.routes.user import router as user_router from app.routes.posts import router as posts_router app = FastAPI() app.include_router(auth_router) app.include_router(user_router) app.include_router(posts_router)
24.666667
51
0.834459
0
0
0
0
0
0
0
0
0
0
f9212d62b2c6b0b4be3c55d60532491667f432fd
17,444
py
Python
infomercial/memory.py
CoAxLab/infomercial
fa5d1c1e5c1351735dda2961a2a94f71cd17e270
[ "MIT" ]
4
2019-11-14T03:13:25.000Z
2021-01-04T17:30:23.000Z
infomercial/memory.py
CoAxLab/infomercial
fa5d1c1e5c1351735dda2961a2a94f71cd17e270
[ "MIT" ]
null
null
null
infomercial/memory.py
CoAxLab/infomercial
fa5d1c1e5c1351735dda2961a2a94f71cd17e270
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict from collections import deque from sklearn.neighbors import KernelDensity from scipy.stats import entropy as scientropy import random class NoveltyMemory: def __init__(self, bonus=0): ...
29.073333
112
0.54116
5,653
0.324066
0
0
0
0
0
0
12,249
0.70219
f924a3360f6478f383a6de27cd9e66749ac25041
36,224
py
Python
tests/io/test_hdf_writer.py
hbdeng/pycroscopy
f9a6d273f6a8e6fdda1287cec82cd6da32d9e2a5
[ "MIT" ]
1
2020-02-13T20:54:47.000Z
2020-02-13T20:54:47.000Z
tests/io/test_hdf_writer.py
Liambcollins/pycroscopy
fd02ac735a1194d2a5687183fafe00368ed8a3ca
[ "MIT" ]
null
null
null
tests/io/test_hdf_writer.py
Liambcollins/pycroscopy
fd02ac735a1194d2a5687183fafe00368ed8a3ca
[ "MIT" ]
1
2020-03-20T13:19:09.000Z
2020-03-20T13:19:09.000Z
# -*- coding: utf-8 -*- """ Created on Tue Nov 3 15:07:16 2017 @author: Suhas Somnath """ from __future__ import division, print_function, unicode_literals, absolute_import import unittest import os import h5py import numpy as np import sys sys.path.append("../../../pycroscopy/") from pycroscopy.io.virtual_data imp...
39.98234
124
0.593087
35,669
0.984679
0
0
127
0.003506
0
0
3,872
0.10689
f92515e6b724a9961231bbc88b0302170c10e53f
1,332
py
Python
paprika/actions/files/Pipe.py
thunder-/paprika
af262407ec9c195dbb5a7c205510e6ad2fb65f36
[ "MIT" ]
null
null
null
paprika/actions/files/Pipe.py
thunder-/paprika
af262407ec9c195dbb5a7c205510e6ad2fb65f36
[ "MIT" ]
null
null
null
paprika/actions/files/Pipe.py
thunder-/paprika
af262407ec9c195dbb5a7c205510e6ad2fb65f36
[ "MIT" ]
null
null
null
from paprika.repositories.FileRepository import FileRepository from paprika.repositories.ProcessPropertyRepository import ProcessPropertyRepository from paprika.repositories.ProcessRepository import ProcessRepository from paprika.system.logger.Logger import Logger from paprika.actions.Actionable import Actionable cla...
34.153846
84
0.712462
1,010
0.758258
0
0
0
0
0
0
124
0.093093
f927320e5b5b42a05587f21c0bf8e8733e0a3c7a
4,987
py
Python
messaging_components/clients/external/java/command/java_options.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
messaging_components/clients/external/java/command/java_options.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
messaging_components/clients/external/java/command/java_options.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
from optconstruct import OptionAbstract from optconstruct.types import Toggle, Prefixed, KWOption, ListOption from messaging_components.clients.external.command.options.client_options import ControlOptionsCommon, \ ControlOptionsSenderReceiver, ControlOptionsReceiver, ConnectionOptionsCommon """ Specialized optio...
52.494737
118
0.677161
4,598
0.921997
0
0
0
0
0
0
872
0.174855
f9275e748370b9802c302be3f62b6834e789955f
4,113
py
Python
aptl3/procrustes/generalized.py
matteoterruzzi/aptl3
680ab58ffa79d0eee293729d36f677a588350519
[ "MIT" ]
null
null
null
aptl3/procrustes/generalized.py
matteoterruzzi/aptl3
680ab58ffa79d0eee293729d36f677a588350519
[ "MIT" ]
null
null
null
aptl3/procrustes/generalized.py
matteoterruzzi/aptl3
680ab58ffa79d0eee293729d36f677a588350519
[ "MIT" ]
null
null
null
from typing import Dict, Optional import logging import numpy as np from .orthogonal import OrthogonalProcrustesModel class GeneralizedProcrustesAnalysis: """https://en.wikipedia.org/wiki/Generalized_Procrustes_analysis""" def __init__(self, *, max_iter: int = 10): self.dim: Optional[int] = None ...
47.275862
116
0.628738
3,990
0.970095
0
0
0
0
0
0
915
0.222465
f9284a1ac61f4a6059d5ca4e4682380e4ddcc7d0
138
py
Python
dorado/__init__.py
kbarnhart/dorado
8404dc75bcab13ab1461babd3ac2d5517f85addb
[ "MIT" ]
null
null
null
dorado/__init__.py
kbarnhart/dorado
8404dc75bcab13ab1461babd3ac2d5517f85addb
[ "MIT" ]
null
null
null
dorado/__init__.py
kbarnhart/dorado
8404dc75bcab13ab1461babd3ac2d5517f85addb
[ "MIT" ]
1
2020-10-28T16:31:49.000Z
2020-10-28T16:31:49.000Z
__version__ = "2.1.0" from . import lagrangian_walker from . import parallel_routing from . import particle_track from . import routines
19.714286
31
0.789855
0
0
0
0
0
0
0
0
7
0.050725
f92915a4474c636fb23ee209bc0a8b0878710ea4
7,538
py
Python
analysis/general/analyze_table.py
cmu-db/cmdbac
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
31
2016-04-07T04:54:29.000Z
2021-11-30T02:30:57.000Z
analysis/general/analyze_table.py
cmu-db/db-webcrawler
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
22
2015-12-19T14:49:18.000Z
2021-09-07T23:48:24.000Z
analysis/general/analyze_table.py
cmu-db/dbac
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
7
2016-05-13T01:02:01.000Z
2019-10-06T16:52:54.000Z
#!/usr/bin/env python import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "core")) import re import csv from utils import dump_all_...
45.963415
132
0.608782
0
0
0
0
0
0
0
0
929
0.123242
f92c4cb10c3058dd32a39d35e1301e33c83939d1
5,107
py
Python
examples/ex_4shapes.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
null
null
null
examples/ex_4shapes.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
null
null
null
examples/ex_4shapes.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
null
null
null
# coding=utf-8 """Drawing 4 shapes with different transformations""" import glfw from OpenGL.GL import * import OpenGL.GL.shaders import numpy as np import sys import os.path sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import grafica.basic_shapes as bs import grafica.easy_shaders as es...
29.865497
117
0.667319
73
0.014294
0
0
0
0
0
0
1,234
0.241629
f92c752c2d9a2ddf52f10a14162916f713687399
6,240
py
Python
bika/lims/adapters/widgetvisibility.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/adapters/widgetvisibility.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/adapters/widgetvisibility.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from bika.lims.interfaces import IAnalysisRequestsFolder, IBatch, IClient from bika.lims.interfaces import IATWidgetVisibility from bika.lims.utils import getHiddenAttributesForClass from Products.CMFCore.utils import getToolByName from Products.CMFCore.WorkflowCore import WorkflowException from ...
33.548387
84
0.63766
5,829
0.934135
0
0
0
0
0
0
1,915
0.306891
f92cdb722f985bc83c1789147a169d25558c6579
1,534
py
Python
leetcode/python/706_design_hashmap.py
VVKot/leetcode-solutions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
4
2019-04-22T11:57:36.000Z
2019-10-29T09:12:56.000Z
leetcode/python/706_design_hashmap.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
leetcode/python/706_design_hashmap.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
class ListNode: def __init__(self, key: int, val: int): self.pair = (key, val) self.next = None class MyHashMap: def __init__(self): self.size = 1000 self.store = [None] * self.size def _get_hash(self, key): return key % self.size def put(self, key: int, val...
26.912281
53
0.458931
1,530
0.997392
0
0
0
0
0
0
0
0
00555a4b5e6cf01b88abb2844e7dfc38a61a5022
1,128
py
Python
dia/libs/Color.py
sosie-js/dia-test
eebf777c65487002ac9cb6cd4dd9e97466ba0f93
[ "CC0-1.0" ]
null
null
null
dia/libs/Color.py
sosie-js/dia-test
eebf777c65487002ac9cb6cd4dd9e97466ba0f93
[ "CC0-1.0" ]
null
null
null
dia/libs/Color.py
sosie-js/dia-test
eebf777c65487002ac9cb6cd4dd9e97466ba0f93
[ "CC0-1.0" ]
null
null
null
""" pydia: Color.py - 2021.09 ================================================ Template code generated from UML diagrams of PyDia with 'dia2code -t python ../dia2code/PyDiaObjects.dia' Note: Experimental, will be obsolete if we found a way to use libdia /pydia libraries Author: SoSie@sos-production...
28.2
140
0.586879
633
0.56117
0
0
0
0
0
0
728
0.64539
005563def602f5a05fa7ab40a2f6437d84a5f513
3,777
py
Python
panoptes_aggregation/extractors/sw_extractor.py
alnah005/aggregation-for-caesar
b2422f4c007857531ac3ff2636b567adb667dd0c
[ "Apache-2.0" ]
9
2018-04-11T13:44:32.000Z
2022-03-09T16:39:26.000Z
panoptes_aggregation/extractors/sw_extractor.py
alnah005/aggregation-for-caesar
b2422f4c007857531ac3ff2636b567adb667dd0c
[ "Apache-2.0" ]
217
2017-07-27T09:20:15.000Z
2022-03-21T11:15:33.000Z
panoptes_aggregation/extractors/sw_extractor.py
hughdickinson/aggregation-for-caesar
d6bca0a1126e0397315d5773401c71075c33ee2f
[ "Apache-2.0" ]
10
2018-11-12T21:36:48.000Z
2022-02-07T11:50:03.000Z
''' Shakespeares World Text Extractor --------------------------------- This module provides a fuction to extract the `text` data from annotations made on Shakespeares World and AnnoTate. ''' import bs4 from collections import OrderedDict import copy import numpy as np import html import warnings from .extractor_wrappe...
34.651376
91
0.577707
0
0
0
0
2,058
0.544877
0
0
1,848
0.489277
00561d4e308ea135f91dd037033827ac63fb7d6c
860
py
Python
src/iemws/models/iemre.py
akrherz/iem-json-services
13fa3d7434c1ff3d0379f3b921d30ea79423dae8
[ "Apache-2.0" ]
null
null
null
src/iemws/models/iemre.py
akrherz/iem-json-services
13fa3d7434c1ff3d0379f3b921d30ea79423dae8
[ "Apache-2.0" ]
null
null
null
src/iemws/models/iemre.py
akrherz/iem-json-services
13fa3d7434c1ff3d0379f3b921d30ea79423dae8
[ "Apache-2.0" ]
null
null
null
"""Models for iemre API.""" # pylint: disable=no-name-in-module,too-few-public-methods from typing import List from pydantic import BaseModel, Field class HourlyItem(BaseModel): """Data Schema.""" valid_utc: str = Field(..., title="UTC Timestamp") valid_local: str = Field(..., title="Local Station Times...
34.4
76
0.65814
704
0.818605
0
0
0
0
0
0
347
0.403488
0056d447a08163829490cb5c9d6443f2c725e44f
15,111
py
Python
src/wakeexchange/GeneralWindFarmGroups.py
WISDEM/wake-exchange
1e9bb1266799517afeca0358c3237f9250bacfa4
[ "Apache-2.0" ]
2
2018-03-27T17:47:04.000Z
2018-12-27T09:02:27.000Z
src/wakeexchange/GeneralWindFarmGroups.py
WISDEM/wake-exchange
1e9bb1266799517afeca0358c3237f9250bacfa4
[ "Apache-2.0" ]
null
null
null
src/wakeexchange/GeneralWindFarmGroups.py
WISDEM/wake-exchange
1e9bb1266799517afeca0358c3237f9250bacfa4
[ "Apache-2.0" ]
4
2018-03-15T20:53:04.000Z
2019-03-21T07:41:18.000Z
import numpy as np from openmdao.api import Group, IndepVarComp, ParallelGroup, ScipyGMRES, NLGaussSeidel from openmdao.core.mpi_wrap import MPI if MPI: from openmdao.api import PetscKSP from wakeexchange.floris import floris_wrapper, add_floris_params_IndepVarComps from wakeexchange.gauss import add_gauss_param...
61.178138
132
0.591225
14,552
0.963007
0
0
0
0
0
0
4,131
0.273377
0056d7846cb988b379249f9ed5834e68bd878b2b
468
py
Python
pug-bot/commands/team.py
stevenktruong/pug-bot
315c21363eebb51d67d5b5c9fa9326cd8bcb2b54
[ "MIT" ]
17
2018-06-27T03:49:03.000Z
2021-04-13T07:32:43.000Z
pug-bot/commands/team.py
stevenktruong/pug-bot
315c21363eebb51d67d5b5c9fa9326cd8bcb2b54
[ "MIT" ]
3
2020-03-26T06:49:10.000Z
2020-04-23T07:20:41.000Z
pug-bot/commands/team.py
stevenktruong/pug-bot
315c21363eebb51d67d5b5c9fa9326cd8bcb2b54
[ "MIT" ]
14
2018-06-27T03:49:06.000Z
2021-10-07T23:28:44.000Z
from .checks import * from ..config import * from ..pug import Pug from ..team import Team from ..utils import * @check(input_too_long, not_in_pug, team_already_exists, already_in_team) async def team(message, pugs, user_input, client): existing_pug = find_in_list(lambda pug: message.author in pug.players, pugs) ...
33.428571
80
0.767094
0
0
0
0
353
0.754274
280
0.598291
11
0.023504
0059a5764d2c1aef345a0cb4799bf9b121c30933
1,571
py
Python
sources/led.py
marcoplaitano/iot-weather-station
a882cb3e59b7ac9d855dce40a9b562460008673f
[ "MIT" ]
null
null
null
sources/led.py
marcoplaitano/iot-weather-station
a882cb3e59b7ac9d855dce40a9b562460008673f
[ "MIT" ]
null
null
null
sources/led.py
marcoplaitano/iot-weather-station
a882cb3e59b7ac9d855dce40a9b562460008673f
[ "MIT" ]
null
null
null
class Led(): """ This class represents a led connected to one of the board's digital pins. It also needs the mqtt client in order to send notifications to the user. """ def __init__(self, pin, client): self._pin = pin pinMode(self._pin, OUTPUT) self._client = client #...
28.563636
91
0.565245
1,570
0.999363
0
0
0
0
0
0
726
0.462126
005bd8e49cfeaa8abf66aa7e3cd2da4991107a70
18,988
py
Python
modules/online.py
y11en/break-free
2da737b38114a8f6e69d478e847e1728e67be402
[ "BSD-3-Clause" ]
52
2019-01-22T22:12:40.000Z
2022-03-14T17:24:48.000Z
modules/online.py
y11en/break-free
2da737b38114a8f6e69d478e847e1728e67be402
[ "BSD-3-Clause" ]
null
null
null
modules/online.py
y11en/break-free
2da737b38114a8f6e69d478e847e1728e67be402
[ "BSD-3-Clause" ]
8
2019-01-30T02:05:22.000Z
2022-02-19T18:09:34.000Z
# -*- coding: utf-8 -*- __all__ = ( 'check_transparent_proxy', 'external_ip', 'external_headers', 'online', 'ntp_time_diff', 'check', 'bits_to_dict', 'PortQuiz', ) import tinyhttp import socket import time import threading import random import urllib2 import scan import netaddr import ...
30.874797
98
0.588951
3,249
0.171108
0
0
0
0
0
0
5,725
0.301506
005c7e1d5f864be8035bf00abdbe086c5d6aba26
1,548
py
Python
SpatialDataset.py
pradeepppc/PSHUIM
401f6cb1dcae21d49fd5877ecd3754a1b80c3b4e
[ "MIT" ]
null
null
null
SpatialDataset.py
pradeepppc/PSHUIM
401f6cb1dcae21d49fd5877ecd3754a1b80c3b4e
[ "MIT" ]
null
null
null
SpatialDataset.py
pradeepppc/PSHUIM
401f6cb1dcae21d49fd5877ecd3754a1b80c3b4e
[ "MIT" ]
null
null
null
from Transaction import Transaction class Dataset: transactions = [] maxItem = 0 def __init__(self, datasetpath, neighbors): with open(datasetpath, 'r') as f: lines = f.readlines() for line in lines: self.transactions.append(self.createTransaction(line, nei...
33.652174
81
0.565245
1,509
0.974806
0
0
0
0
0
0
79
0.051034
005db1df0bd94d276687c3061304891f57e05a5e
2,047
py
Python
viadot/tasks/aselite.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/tasks/aselite.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/tasks/aselite.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
import json import prefect from typing import Any, Dict from prefect import Task from prefect.tasks.secrets import PrefectSecret from .azure_key_vault import AzureKeyVaultSecret from viadot.config import local_config from viadot.sources import AzureSQL class ASELiteToDF(Task): def __init__( self, credenti...
31.984375
103
0.612115
1,791
0.874939
0
0
0
0
0
0
531
0.259404
005e310b4e5c1b997b5367bd0bd0c33f2bd0f301
3,062
py
Python
base_templates/cfsr_conversion_template.py
bstdenis/pycfs
bbb8576bbae757e9a6baca8294e18c03d3513361
[ "Apache-2.0" ]
1
2018-03-14T21:27:20.000Z
2018-03-14T21:27:20.000Z
base_templates/cfsr_conversion_template.py
bstdenis/pycfs
bbb8576bbae757e9a6baca8294e18c03d3513361
[ "Apache-2.0" ]
null
null
null
base_templates/cfsr_conversion_template.py
bstdenis/pycfs
bbb8576bbae757e9a6baca8294e18c03d3513361
[ "Apache-2.0" ]
null
null
null
"""CFSR & CVSv2 conversion This requires a running UPCluster: $ ipcluster start -n 12 """ import os from ipyparallel import Client import cfsr path_input = '/some/path' path_output = '/some/path' path_pycfs = '/some/path' # The path to cfsr.py and gribou.py var_names = ['pressfc'] # The RDA archive cfsr dat...
36.452381
78
0.622796
0
0
0
0
0
0
0
0
1,222
0.399086
005e655a61a2b823a2eaa052e3d598b5802aada7
455
py
Python
snappytomato/utils.py
myedibleenso/snappytomato
24b1c3214bde2c30b198fcb488dc6f6da6fd054e
[ "Apache-2.0" ]
1
2016-07-14T06:17:40.000Z
2016-07-14T06:17:40.000Z
snappytomato/utils.py
myedibleenso/snappytomato
24b1c3214bde2c30b198fcb488dc6f6da6fd054e
[ "Apache-2.0" ]
null
null
null
snappytomato/utils.py
myedibleenso/snappytomato
24b1c3214bde2c30b198fcb488dc6f6da6fd054e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os def normalize_text(text): return text.lower() def attach_attributes(obj, data_dict): for d in data_dict: setattr(obj, d, data_dict[d]) def load_api_key(rtkey): """ Loads api key from provided path >>> load_api_key("~/path/to/my/rt...
18.958333
52
0.613187
0
0
0
0
0
0
0
0
160
0.351648
006313f3e486bead27c403273cfdcb3ea0ba6767
369
py
Python
ex055.py
Roninho514/Treinamento-Python
fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6
[ "MIT" ]
null
null
null
ex055.py
Roninho514/Treinamento-Python
fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6
[ "MIT" ]
null
null
null
ex055.py
Roninho514/Treinamento-Python
fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6
[ "MIT" ]
null
null
null
PesoMaior = 0 PesoMenor = 0 for c in range(1,6): peso = float(input('Peso da {}ª pessoa: '.format(c))) if c == 1: PesoMaior = peso PesoMenor = peso else: if PesoMaior < peso: PesoMaior = peso elif PesoMenor > peso: PesoMenor = peso print('O menor peso ...
26.357143
68
0.558266
0
0
0
0
0
0
0
0
56
0.150943
00662f8d59a8f7056bb5c24fec7a04fdb3089fa8
826
py
Python
qpce/network.py
brunorijsman/quantum-path-computation-engine
021bca03f8555cd9cd0cdbd7d5c6a32050ab6271
[ "Apache-2.0" ]
null
null
null
qpce/network.py
brunorijsman/quantum-path-computation-engine
021bca03f8555cd9cd0cdbd7d5c6a32050ab6271
[ "Apache-2.0" ]
1
2021-06-01T23:56:41.000Z
2021-06-01T23:56:41.000Z
qpce/network.py
brunorijsman/quantum-path-computation-element
021bca03f8555cd9cd0cdbd7d5c6a32050ab6271
[ "Apache-2.0" ]
null
null
null
"""Quantum network.""" import collections class Network: # TODO: Remove this when we have more methods # pylint:disable=too-few-public-methods """A quantum network. A quantum network object describes the topology and available resources in a quantum network. It consists of quantum routers and qua...
30.592593
100
0.651332
781
0.945521
0
0
0
0
0
0
544
0.658596
0068549a5e18f924b5c614465024f9750375120b
745
py
Python
venv/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-distorm3.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
12
2020-12-15T15:12:06.000Z
2022-03-18T16:17:42.000Z
venv/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-distorm3.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-distorm3.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
10
2020-12-15T15:12:14.000Z
2022-02-09T21:02:17.000Z
# ------------------------------------------------------------------ # Copyright (c) 2020 PyInstaller Development Team. # # This file is distributed under the terms of the GNU General Public # License (version 2.0 or later). # # The full license is available in LICENSE.GPL.txt, distributed with # this software. # # SPD...
35.47619
78
0.625503
0
0
0
0
0
0
0
0
626
0.840268
0069b966fdcc2ad83f7436ac64bf728e3690f9ec
297
py
Python
eelbrain/testnd.py
jpkulasingham/Eelbrain
1061ce0b781a8e55ec187723b58491a5cde32e08
[ "BSD-3-Clause" ]
1
2021-07-26T21:22:35.000Z
2021-07-26T21:22:35.000Z
eelbrain/testnd.py
jpkulasingham/Eelbrain
1061ce0b781a8e55ec187723b58491a5cde32e08
[ "BSD-3-Clause" ]
1
2019-03-22T15:35:17.000Z
2019-03-22T15:35:17.000Z
eelbrain/testnd.py
jpkulasingham/Eelbrain
1061ce0b781a8e55ec187723b58491a5cde32e08
[ "BSD-3-Clause" ]
null
null
null
"""Statistical tests for multidimensional data in :class:`NDVar` objects""" __test__ = False from ._stats.testnd import ( NDTest, MultiEffectNDTest, t_contrast_rel, corr, ttest_1samp, ttest_ind, ttest_rel, anova, Vector, VectorDifferenceRelated, ) from ._stats.spm import LM, LMGroup
29.7
75
0.757576
0
0
0
0
0
0
0
0
75
0.252525
006c69847c24c35304954da3e05ad12d45e9a338
1,461
py
Python
day10/code/main.py
JoseTomasTocino/AdventOfCode2020
19b22c3f9ef2331f08c2ad78f49f200a5f4adfc9
[ "MIT" ]
null
null
null
day10/code/main.py
JoseTomasTocino/AdventOfCode2020
19b22c3f9ef2331f08c2ad78f49f200a5f4adfc9
[ "MIT" ]
null
null
null
day10/code/main.py
JoseTomasTocino/AdventOfCode2020
19b22c3f9ef2331f08c2ad78f49f200a5f4adfc9
[ "MIT" ]
null
null
null
import logging from functools import lru_cache logger = logging.getLogger(__name__) def parse_adapter_input(adapters): # Separate by lines, convert to integer, prepend the initial adapter (0) and append the final adapter (max + 3) adapters = [0] + sorted(int(x) for x in adapters.split("\n") if x) adapter...
33.204545
115
0.71937
0
0
0
0
532
0.364134
0
0
494
0.338125
006d4b069c073fc8a7916d998a0ff677902b8203
105,769
py
Python
python/src/toit/model/device_pb2.py
toitware/ap
4b72d7ed43efe6b7e79bee1bfb5a9fc81fa16edb
[ "MIT" ]
7
2020-03-20T14:10:53.000Z
2021-11-28T04:05:24.000Z
python/src/toit/model/device_pb2.py
toitware/ap
4b72d7ed43efe6b7e79bee1bfb5a9fc81fa16edb
[ "MIT" ]
9
2020-03-19T06:54:17.000Z
2022-03-17T05:07:00.000Z
python/src/toit/model/device_pb2.py
toitware/ap
4b72d7ed43efe6b7e79bee1bfb5a9fc81fa16edb
[ "MIT" ]
1
2021-08-15T16:31:07.000Z
2021-08-15T16:31:07.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: toit/model/device.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goo...
43.960515
9,518
0.764695
0
0
0
0
0
0
0
0
24,849
0.234937
006d6da55a319b603163ea87aa72bdcea51b3155
1,982
py
Python
tests/test_gui.py
lgehring/bl-predictor
2de8cb682391f81670178fcb22b2429469ba9f0c
[ "MIT" ]
null
null
null
tests/test_gui.py
lgehring/bl-predictor
2de8cb682391f81670178fcb22b2429469ba9f0c
[ "MIT" ]
8
2021-01-18T18:16:12.000Z
2021-03-02T10:20:12.000Z
tests/test_gui.py
lgehring/bl-predictor
2de8cb682391f81670178fcb22b2429469ba9f0c
[ "MIT" ]
5
2021-01-19T11:17:33.000Z
2022-02-12T15:36:13.000Z
from datetime import date from bl_predictor import gui def test_gui(): try: tested_gui = gui.MainWindow("test") # detects headless server except: return None assert (tested_gui.picked_home_team is None) assert (tested_gui.picked_guest_team is None) assert (tested_gui.date_lab...
36.036364
71
0.679617
0
0
0
0
0
0
0
0
468
0.236125
00703f62cc89efa8a39ec540a09b926b4227e9f8
1,334
py
Python
USAP_H37Rv/Tools/smalt-0.7.5/test/cigar_test.py
SANBI-SA-archive/s_bvc_pipeline
43948b4ea5db6333633361dd91f7e7b320392fb2
[ "Apache-2.0" ]
null
null
null
USAP_H37Rv/Tools/smalt-0.7.5/test/cigar_test.py
SANBI-SA-archive/s_bvc_pipeline
43948b4ea5db6333633361dd91f7e7b320392fb2
[ "Apache-2.0" ]
null
null
null
USAP_H37Rv/Tools/smalt-0.7.5/test/cigar_test.py
SANBI-SA-archive/s_bvc_pipeline
43948b4ea5db6333633361dd91f7e7b320392fb2
[ "Apache-2.0" ]
null
null
null
# test cigar strings PROGNAM = "../src/smalt" FNAM_REF = "cigar_ref.fa.gz" FNAM_READ1 = "cigar_read1.fq" FNAM_READ2 = "cigar_read2.fq" TMPFIL_PREFIX = "TMPcig" KMER = 13 NSKIP = 2 def smalt_index(df,index_name, fasta_name, kmer, nskip): from sys import exit from subprocess import call tup = (PROGNAM, '...
23.821429
79
0.596702
0
0
0
0
0
0
0
0
205
0.153673
00713394d9a02776069fee7dd690f0cf04c87b6f
268
py
Python
perform/rom/nonintrusive_rom/autoencoder_rom/autoencoder_koopman/pan2020.py
cwentland0/perform
e08771cb776a7e6518c43350746e2ca72f79b153
[ "MIT" ]
6
2021-03-24T21:42:06.000Z
2022-01-28T20:00:13.000Z
perform/rom/nonintrusive_rom/autoencoder_rom/autoencoder_koopman/pan2020.py
cwentland0/perform
e08771cb776a7e6518c43350746e2ca72f79b153
[ "MIT" ]
38
2021-04-15T15:30:21.000Z
2022-01-29T01:23:57.000Z
perform/rom/nonintrusive_rom/autoencoder_rom/autoencoder_koopman/pan2020.py
cwentland0/perform
e08771cb776a7e6518c43350746e2ca72f79b153
[ "MIT" ]
1
2021-07-03T03:13:36.000Z
2021-07-03T03:13:36.000Z
from perform.rom.nonintrusive_rom.autoencoder_rom.autoencoder_koopman.autoencoder_koopman import AutoencoderKoopman class AEKoopmanPan2020(AutoencoderKoopman): """Class implementing the continuous-time variant of the autoencoder Koopman method by Pan (2020)."""
44.666667
115
0.839552
149
0.55597
0
0
0
0
0
0
101
0.376866
00718672508db15a300c29553a2f5ac491f6405f
9,071
py
Python
GUI/main.py
Uttirna/Fuzzy-Expert-System
814708556b86c69769d935fd256af08952fdde8d
[ "MIT" ]
null
null
null
GUI/main.py
Uttirna/Fuzzy-Expert-System
814708556b86c69769d935fd256af08952fdde8d
[ "MIT" ]
null
null
null
GUI/main.py
Uttirna/Fuzzy-Expert-System
814708556b86c69769d935fd256af08952fdde8d
[ "MIT" ]
null
null
null
from tkinter import * from PIL import ImageTk,Image import matlab.engine eng = matlab.engine.start_matlab() font11 = "-family Arial -size 19 -weight normal -slant roman " \ "-underline 0 -overstrike 0" font12 = "-family Arial -size 12 -weight normal -slant roman " \ "-underline 0 -overstrike...
35.996032
100
0.697167
0
0
0
0
0
0
0
0
2,035
0.224341
0071a7c290c35a89f8f4928e5517cd558ffff2f5
11,473
py
Python
rs5archive.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
10
2015-06-13T17:27:18.000Z
2021-02-14T13:03:11.000Z
rs5archive.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
2
2020-07-11T18:34:57.000Z
2021-03-07T02:27:46.000Z
rs5archive.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
1
2016-03-23T22:26:23.000Z
2016-03-23T22:26:23.000Z
#!/usr/bin/env python # Based loosely on git://github.com/klightspeed/RS5-Extractor # I wanted something a bit lower level that didn't convert the contained files # so I could examine the format for myself. Don't expect this to be feature # complete for a while # Fix print function for Python 2 deficiency regarding ...
33.44898
104
0.718644
9,899
0.862808
0
0
68
0.005927
0
0
2,378
0.207269
007300a90b2659b369135139510ec91a38faf7c2
1,091
py
Python
arcade/python/arcade-theCore/07_BookMarket/058_IsUnstablePair.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
arcade/python/arcade-theCore/07_BookMarket/058_IsUnstablePair.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
arcade/python/arcade-theCore/07_BookMarket/058_IsUnstablePair.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
def isUnstablePair(filename1, filename2): ''' Some file managers sort filenames taking into account case of the letters, others compare strings as if all of the letters are of the same case. That may lead to different ways of filename ordering. Call two filenames an unstable pair if their ordering depends on t...
38.964286
202
0.700275
0
0
0
0
0
0
0
0
848
0.775846
0073bbe227dbf4e8883741282f8123662ad068bf
14,018
py
Python
validator/tests/unit/test_journal_transactions.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
validator/tests/unit/test_journal_transactions.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
validator/tests/unit/test_journal_transactions.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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 in wri...
43.265432
80
0.661721
12,806
0.91354
0
0
0
0
0
0
3,898
0.278071
0075780408e5fb0346ee917819c012a1cdc3aae4
1,433
py
Python
discounts/src/handlers/users.py
dalmarcogd/mobstore
0b542b9267771a1f4522990d592028dc30ee246f
[ "Apache-2.0" ]
null
null
null
discounts/src/handlers/users.py
dalmarcogd/mobstore
0b542b9267771a1f4522990d592028dc30ee246f
[ "Apache-2.0" ]
null
null
null
discounts/src/handlers/users.py
dalmarcogd/mobstore
0b542b9267771a1f4522990d592028dc30ee246f
[ "Apache-2.0" ]
null
null
null
import logging from typing import Dict from src.database import queries from src.exceptions.exceptions import UnrecognizedEventOperation def _get_user(message: Dict) -> Dict: return { 'id': message.get('user_id'), 'first_name': message.get('first_name'), 'last_name': message.get('last_nam...
28.66
64
0.641312
0
0
0
0
0
0
0
0
250
0.174459
0075e7c2b0ec67cabc446d6a8b63244da4be6d58
4,673
py
Python
test/pyaz/netappfiles/volume/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
test/pyaz/netappfiles/volume/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
9
2021-09-24T16:37:24.000Z
2021-12-24T00:39:19.000Z
test/pyaz/netappfiles/volume/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
import json, subprocess from ... pyaz_utils import get_cli_name, get_params def show(resource_group, account_name, pool_name, volume_name): params = get_params(locals()) command = "az netappfiles volume show " + params print(command) output = subprocess.run(command, shell=True, stdout=subprocess.PI...
45.813725
910
0.71239
0
0
0
0
0
0
0
0
316
0.067623
0076532ec1f0da7b28b9b0955abd9db2b3d5e4b0
2,178
py
Python
qgsWriter/_qgsLayerTree.py
milieuinfo/arcgis2qgs
d0d2e4da7cb9d6f08ef82b6c6f94d3340b96f9ba
[ "MIT" ]
18
2015-11-24T20:08:35.000Z
2021-11-12T15:10:22.000Z
qgsWriter/_qgsLayerTree.py
canglangshushu/arcgis2qgs
d0d2e4da7cb9d6f08ef82b6c6f94d3340b96f9ba
[ "MIT" ]
1
2021-04-08T14:21:01.000Z
2021-04-08T14:21:01.000Z
qgsWriter/_qgsLayerTree.py
canglangshushu/arcgis2qgs
d0d2e4da7cb9d6f08ef82b6c6f94d3340b96f9ba
[ "MIT" ]
9
2017-06-09T04:31:52.000Z
2021-11-22T11:32:14.000Z
# -*- coding: utf-8 -*- import xml.etree.cElementTree as ET class qgsLayerTree: def __init__(self, rootName=""): """ :param rootName: the name of the rootlayer """ self.tree = dict(name=rootName, layers=[], checked='Qt::Checked', expanded='1') def addLayer(self, layerId, name="...
32.507463
103
0.573003
2,116
0.971534
0
0
0
0
0
0
632
0.290174
0079f297c584e9b44763df6266d390de66486944
2,056
py
Python
snorkel/models/__init__.py
jmbanda/snorkelBioMed
db26600326d1ef34129d1c35d2d618b62be2dcf3
[ "Apache-2.0" ]
1
2017-01-20T07:02:02.000Z
2017-01-20T07:02:02.000Z
snorkel/models/__init__.py
jmbanda/snorkelBioMed
db26600326d1ef34129d1c35d2d618b62be2dcf3
[ "Apache-2.0" ]
1
2017-01-20T07:03:48.000Z
2017-01-20T07:09:24.000Z
snorkel/models/__init__.py
jmbanda/snorkelBioMed
db26600326d1ef34129d1c35d2d618b62be2dcf3
[ "Apache-2.0" ]
null
null
null
""" Subpackage for all built-in Snorkel data models. To ensure correct behavior, this subpackage should always be treated as a single module (with one exception described below). This rule means that all data models should be imported from this subpackage, not directly from individual submodules. For example, the corr...
42.833333
125
0.770914
0
0
0
0
0
0
0
0
1,584
0.770428
007a3635fa0f60908ea0d0ead5d33a15e47d6adb
4,913
py
Python
pymobiledevice3/services/os_trace.py
iOSForensics/pymobiledevice3
6b148f4e58cc51cb44c18935913a3e6cec5b60d5
[ "MIT" ]
1
2022-01-20T16:53:15.000Z
2022-01-20T16:53:15.000Z
pymobiledevice3/services/os_trace.py
iOSForensics/pymobiledevice3
6b148f4e58cc51cb44c18935913a3e6cec5b60d5
[ "MIT" ]
null
null
null
pymobiledevice3/services/os_trace.py
iOSForensics/pymobiledevice3
6b148f4e58cc51cb44c18935913a3e6cec5b60d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import plistlib import struct import tempfile import typing from datetime import datetime from tarfile import TarFile from construct import Struct, Bytes, Int32ul, Optional, Enum, Byte, Adapter, Int16ul, this, Computed, \ RepeatUntil from pymobiledevice3.exceptions import PyMo...
35.861314
116
0.659475
3,162
0.643599
745
0.151639
0
0
0
0
1,079
0.219621
007bd3b4346ee7f082df7ea4d0b57beef7747110
3,783
py
Python
clases/unidad1/08_soluciones.py
magister-informatica-uach/INFO147
3898eb6f589a22beefb5972a0c911bb9dd098c6d
[ "Unlicense" ]
13
2019-04-12T21:10:39.000Z
2021-10-12T14:30:09.000Z
clases/unidad1/08_soluciones.py
magister-informatica-uach/INFO147
3898eb6f589a22beefb5972a0c911bb9dd098c6d
[ "Unlicense" ]
null
null
null
clases/unidad1/08_soluciones.py
magister-informatica-uach/INFO147
3898eb6f589a22beefb5972a0c911bb9dd098c6d
[ "Unlicense" ]
12
2019-04-12T20:00:09.000Z
2021-06-17T21:48:53.000Z
# -*- coding: utf-8 -*- # Ejercicio read_csv conv = dict.fromkeys(['open', 'close', 'high', 'low', 'next_weeks_open', 'next_weeks_close'], lambda x: float(x.strip("$"))) df = pd.read_csv("dow_jones_index.data", sep=',', header=0, index_col='date', converters=conv, parse_dates=[...
41.571429
116
0.615385
0
0
0
0
0
0
0
0
1,783
0.4702
007c54b830f9389130fcc6c2c52752cb388f4887
2,639
py
Python
imperative/python/megengine/module/elemwise.py
mozre/MegEngine
b8ea63927e92b707f20419d06d51f35d410f9498
[ "Apache-2.0" ]
3
2021-08-08T12:55:53.000Z
2021-12-10T06:01:04.000Z
imperative/python/megengine/module/elemwise.py
MediosZ/MegEngine
5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
[ "Apache-2.0" ]
6
2020-04-24T08:52:06.000Z
2021-08-16T06:38:23.000Z
imperative/python/megengine/module/elemwise.py
MediosZ/MegEngine
5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
[ "Apache-2.0" ]
null
null
null
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY ...
31.795181
112
0.523304
2,186
0.828344
0
0
0
0
0
0
2,318
0.878363
007cfba22ceeaf6f6ca692eeda5fb2bfcabe9273
1,114
py
Python
flameshot.py
baltpeter/albert-extensions
616adac2e23b878695d027bd0fb2253c0e7c8cd1
[ "MIT" ]
5
2020-10-24T11:45:55.000Z
2022-03-04T20:53:03.000Z
flameshot.py
baltpeter/albert-extensions
616adac2e23b878695d027bd0fb2253c0e7c8cd1
[ "MIT" ]
null
null
null
flameshot.py
baltpeter/albert-extensions
616adac2e23b878695d027bd0fb2253c0e7c8cd1
[ "MIT" ]
1
2020-08-05T23:54:46.000Z
2020-08-05T23:54:46.000Z
# -*- coding: utf-8 -*- """Quickly open Flameshot to make a screenshot.""" from albert import * import os __title__ = "Flameshot shortcut" __version__ = "0.4.1" __triggers__ = "fs" __authors__ = "Benjamin Altpeter" iconPath = iconLookup("flameshot") def handleQuery(query): if not query.isTriggered: ret...
30.108108
211
0.623878
0
0
0
0
0
0
0
0
581
0.521544
007ebda16d6e0ea5fd1d6856b8b7eb7a57276487
959
py
Python
github.py
PeacefulWindy/MyHome
dd2d810c2aeb887bb88fb9bd881f9e145b4c7670
[ "MIT" ]
null
null
null
github.py
PeacefulWindy/MyHome
dd2d810c2aeb887bb88fb9bd881f9e145b4c7670
[ "MIT" ]
null
null
null
github.py
PeacefulWindy/MyHome
dd2d810c2aeb887bb88fb9bd881f9e145b4c7670
[ "MIT" ]
null
null
null
import os repository="origin" branch="master" defaultIgnoreList=[ "__pycache__", "migrations", ".git", ".log", ".vscode", ] ignoreList=[ "uwsgi", "config", ] os.system("git pull "+repository+" "+branch) fetchList=os.listdir() filesList=[] i=0 while i<len(fetchList): path=fetchList[i...
18.09434
51
0.527633
0
0
0
0
0
0
0
0
127
0.13243
007f650565eee305a6b7e5a8d62cbc3f16371f91
766
py
Python
examples/zoo_models.py
Pandinosaurus/PyTouch
3a52bc004bebffe8da75294be53f193062d6577f
[ "MIT" ]
null
null
null
examples/zoo_models.py
Pandinosaurus/PyTouch
3a52bc004bebffe8da75294be53f193062d6577f
[ "MIT" ]
null
null
null
examples/zoo_models.py
Pandinosaurus/PyTouch
3a52bc004bebffe8da75294be53f193062d6577f
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. from pytouch import PyTouchZoo, sensors def main(): pytouch_zoo = PyTouchZoo() # list available pytouch zoo models available_models = pytouch_zoo.list_models() print(available_models) # load DIGIT sensor touch detect model ...
28.37037
84
0.720627
0
0
0
0
0
0
0
0
354
0.462141
00811e646789a59ada6dde6962fef84c0e2caf2f
1,663
py
Python
docs/smurff/datasets.py
msteijaert/smurff
e6066d51e1640e9aad0118628ba72c9d662919fb
[ "MIT" ]
null
null
null
docs/smurff/datasets.py
msteijaert/smurff
e6066d51e1640e9aad0118628ba72c9d662919fb
[ "MIT" ]
null
null
null
docs/smurff/datasets.py
msteijaert/smurff
e6066d51e1640e9aad0118628ba72c9d662919fb
[ "MIT" ]
null
null
null
from .prepare import make_train_test import os import tempfile import scipy.io as sio from hashlib import sha256 try: import urllib.request as urllib_request # for Python 3 except ImportError: import urllib2 as urllib_request # for Python 2 urls = { "chembl-IC50-346targets.mm" : ( ...
26.396825
80
0.658449
0
0
0
0
0
0
0
0
723
0.434756
00817e2c28c51ab9c1788435a4d1e1e979d74b71
1,115
py
Python
anipick/season.py
pengode-handal/anipick
f711620d9c12581f13f951204151b60eac4e1736
[ "MIT" ]
1
2022-03-02T07:59:15.000Z
2022-03-02T07:59:15.000Z
build/lib/anipick/season.py
pengode-handal/anipick
f711620d9c12581f13f951204151b60eac4e1736
[ "MIT" ]
null
null
null
build/lib/anipick/season.py
pengode-handal/anipick
f711620d9c12581f13f951204151b60eac4e1736
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup from datetime import date class Seasonal: year = date.today() year = str(year).split('-')[0] doy = date.today().timetuple().tm_yday # "day of year" ranges for the northern hemisphere spring = range(80, 172) summer = range(172, 264) fall ...
26.547619
85
0.56861
1,039
0.931839
0
0
0
0
0
0
243
0.217937
0081981d8fb33114fcdb82bb75640e1e6abdb39f
334
py
Python
apps/bitacoras/migrations/0005_remove_bitacora_receta.py
Monse200599/sistema_medico
c220c5278d96bb9cd86f92fbac1bc66d6eebfd56
[ "MIT" ]
null
null
null
apps/bitacoras/migrations/0005_remove_bitacora_receta.py
Monse200599/sistema_medico
c220c5278d96bb9cd86f92fbac1bc66d6eebfd56
[ "MIT" ]
null
null
null
apps/bitacoras/migrations/0005_remove_bitacora_receta.py
Monse200599/sistema_medico
c220c5278d96bb9cd86f92fbac1bc66d6eebfd56
[ "MIT" ]
1
2021-11-30T06:02:11.000Z
2021-11-30T06:02:11.000Z
# Generated by Django 3.2.6 on 2021-11-29 00:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bitacoras', '0004_remove_bitacora_area'), ] operations = [ migrations.RemoveField( model_name='bitacora', name='receta', ...
18.555556
51
0.598802
249
0.745509
0
0
0
0
0
0
103
0.308383
008325e0c3e4eb71571c7a9cc6c994f7e82989e8
919
py
Python
papamath/calc/__main__.py
PapaTRex/papamath
2f3857d93d0d9a01a1026aee891a545baa8cc202
[ "MIT" ]
2
2019-11-25T08:48:32.000Z
2019-11-27T14:42:12.000Z
papamath/calc/__main__.py
PapaTRex/papamath
2f3857d93d0d9a01a1026aee891a545baa8cc202
[ "MIT" ]
null
null
null
papamath/calc/__main__.py
PapaTRex/papamath
2f3857d93d0d9a01a1026aee891a545baa8cc202
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --*-- encoding=utf-8 --*-- import datetime as dt import sys from . import addition from . import subtraction from ..eval import quiz def main(): """ Run this program with limit and times 使用最大值和题目数作为参数来调用程序 e.g. python3 -m papamath.calc python3 -m papamath.calc 20 ...
25.527778
77
0.627856
0
0
0
0
0
0
0
0
460
0.45954
00861680b21067747a30cfe7ab5eb5b8d1b71809
5,916
py
Python
address/migrations/0001_initial.py
jacinda/django-address
c9a351b20e29c4fa9841a4bda849befa68f1c3de
[ "BSD-3-Clause" ]
2
2015-08-11T08:21:40.000Z
2016-01-24T05:51:08.000Z
address/migrations/0001_initial.py
jacinda/django-address
c9a351b20e29c4fa9841a4bda849befa68f1c3de
[ "BSD-3-Clause" ]
null
null
null
address/migrations/0001_initial.py
jacinda/django-address
c9a351b20e29c4fa9841a4bda849befa68f1c3de
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Country' db.create_table(u'address_country', ( (u'id', self.gf('django.db.models...
55.28972
142
0.592123
5,784
0.977688
0
0
0
0
0
0
3,390
0.573022
0086270d0a19cda3cb8698c97a9c6c48e1262a62
14,096
py
Python
fables/tree.py
bk521234/fables
6e3d461c597610ae2e954a0d30869e1e962d69a4
[ "Apache-2.0" ]
2
2019-05-06T18:51:56.000Z
2019-05-25T05:50:56.000Z
fables/tree.py
bk521234/fables
6e3d461c597610ae2e954a0d30869e1e962d69a4
[ "Apache-2.0" ]
52
2019-05-06T19:46:03.000Z
2021-08-05T18:54:19.000Z
fables/tree.py
bk521234/fables
6e3d461c597610ae2e954a0d30869e1e962d69a4
[ "Apache-2.0" ]
6
2019-05-06T17:59:25.000Z
2021-01-14T03:25:34.000Z
""" Define nodes of the detection tree. Nodes are responsible for how they list their children, detecting if they are pw-protected, and in some cases how they can be identified (e.g. by a heuristic on their mimetype and extension) Also implements the module-level function: `node_from_file()` which determines what node...
34.213592
152
0.58889
11,372
0.806754
2,467
0.175014
6,990
0.495885
0
0
3,141
0.222829
008665988949a52336cbdcd31e365f4d40afb967
1,020
py
Python
sean/seanWebapp/rasaAPI.py
OKaemii/RASA-AI-Chatbot
3fe08461c4b22166bbdc479a304483de360f0358
[ "Apache-2.0" ]
null
null
null
sean/seanWebapp/rasaAPI.py
OKaemii/RASA-AI-Chatbot
3fe08461c4b22166bbdc479a304483de360f0358
[ "Apache-2.0" ]
null
null
null
sean/seanWebapp/rasaAPI.py
OKaemii/RASA-AI-Chatbot
3fe08461c4b22166bbdc479a304483de360f0358
[ "Apache-2.0" ]
null
null
null
import json import requests RASA = "http://localhost:5005" RASA_API = RASA + "/webhooks/rest/webhook" def helloworld(): response = requests.request("GET", RASA) return response.text def version(): headers = { 'Content-Type':"application/json", } response = requests.request("GET", RASA +"/version", headers=h...
21.25
76
0.688235
0
0
0
0
0
0
0
0
360
0.352941
008796684a761f1722ef09d1e5677dfbfa57b5c7
1,246
py
Python
src/Day26_PathWithMinimumEffort.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
src/Day26_PathWithMinimumEffort.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
src/Day26_PathWithMinimumEffort.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
from typing import List import math import heapq class Solution: def minimumEffortPath(self, heights: List[List[int]]) -> int: row = len(heights) col = len(heights[0]) diff = [[math.inf] * col for _ in range(row)] diff[0][0] = 0 visited = [[False] * col for _ in range(row)]...
37.757576
87
0.480738
1,194
0.958266
0
0
0
0
0
0
0
0
0088227bd88febb18c1ee9e4681c9ef4348e66de
564
py
Python
scripts/data_filepaths.py
dhlab-epfl/student-project-repo-structure
ca5ed4cb438b571ce6f7f59285a060e594d41f25
[ "Apache-2.0" ]
1
2022-03-31T10:18:42.000Z
2022-03-31T10:18:42.000Z
scripts/data_filepaths.py
dhlab-epfl/student-project-repo-structure
ca5ed4cb438b571ce6f7f59285a060e594d41f25
[ "Apache-2.0" ]
null
null
null
scripts/data_filepaths.py
dhlab-epfl/student-project-repo-structure
ca5ed4cb438b571ce6f7f59285a060e594d41f25
[ "Apache-2.0" ]
2
2022-03-17T10:48:30.000Z
2022-03-29T14:06:51.000Z
from os.path import join as j relative_path_to_root = j("..","..") # use and abuse from os.path.join() (here aliased as "j") it ensures cross OS compatible paths data_folder = j(relative_path_to_root, "data") figures_folder = j(relative_path_to_root, "report", "figures") # STEP 0 download data # ====================...
26.857143
94
0.638298
0
0
0
0
0
0
0
0
302
0.535461
0088affa65e017cd642613de8dad471ca5844b13
578
py
Python
sample_code/ThompsonSampling-master/montecarlo_thompsonbernoulli.py
sou350121/A-Tutorial-on-Thompson-Sampling
c0e7226c4f4258128d6d68682bfd32b44bbb6763
[ "MIT" ]
2
2021-04-15T12:15:07.000Z
2021-04-16T01:25:14.000Z
sample_code/ThompsonSampling-master/montecarlo_thompsonbernoulli.py
sou350121/A-Tutorial-on-Thompson-Sampling
c0e7226c4f4258128d6d68682bfd32b44bbb6763
[ "MIT" ]
null
null
null
sample_code/ThompsonSampling-master/montecarlo_thompsonbernoulli.py
sou350121/A-Tutorial-on-Thompson-Sampling
c0e7226c4f4258128d6d68682bfd32b44bbb6763
[ "MIT" ]
null
null
null
import random from bernoulliarm import * from thompsonbernoulli import * from bandittestframe import * random.seed(1) means = [0.1, 0.1, 0.1, 0.1, 0.9] n_arms = len(means) random.shuffle(means) arms = [BernoulliArm(mu) for mu in means] print("Best arm is " + str(means.index(max(means)))) f = open("thompson_bernoulli_...
26.272727
79
0.681661
0
0
0
0
0
0
0
0
58
0.100346
00896d625149256b262a7e4769e38b6b117df618
653
py
Python
pymath/topkfrequentelements/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pymath/topkfrequentelements/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pymath/topkfrequentelements/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from collections import Counter from typing import List from datastructures.trees.heaps.min_heap import MinHeap def top_k_frequent(nums: List[int], k: int) -> List[int]: counter = Counter(nums) return [x for x, y in counter.most_common(k)] def top_k_frequent_with_min_heap(nums: List[int], k: int) -> List[...
21.064516
71
0.635528
0
0
0
0
0
0
0
0
66
0.101072
008a9bbd3e50567c47ccabd458436be492fd0ce2
2,530
py
Python
assignments/12_csv_grad/solution.py
prasiddhigyawali/python_clone
7c2d609301dc49e77236baa0403ca9a3042bd047
[ "MIT" ]
1
2021-05-19T19:07:56.000Z
2021-05-19T19:07:56.000Z
csv_filter/solution.py
LongNguyen1984/biofx_python
b8d45dc38d968674c6b641051b73f8ed1503b1e4
[ "MIT" ]
1
2020-02-11T20:15:59.000Z
2020-02-11T20:15:59.000Z
csv_filter/solution.py
LongNguyen1984/biofx_python
b8d45dc38d968674c6b641051b73f8ed1503b1e4
[ "MIT" ]
24
2020-01-15T17:34:40.000Z
2021-08-23T05:57:24.000Z
#!/usr/bin/env python3 """ Filter delimited records """ import argparse import csv import re import sys # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Filter delimited records', formatter_cl...
29.08046
76
0.462055
0
0
0
0
0
0
0
0
680
0.268775
008b2b646bc08ddb8a8fd147bc3c69e71605e887
7,043
py
Python
labeled_nuclei_project/models.py
amarotaylor/MSI_prediction
b85acc0758b0c28049553142e1f278dd2cc7de4f
[ "MIT" ]
1
2019-04-10T13:42:22.000Z
2019-04-10T13:42:22.000Z
labeled_nuclei_project/models.py
amarotaylor/MSI_prediction
b85acc0758b0c28049553142e1f278dd2cc7de4f
[ "MIT" ]
null
null
null
labeled_nuclei_project/models.py
amarotaylor/MSI_prediction
b85acc0758b0c28049553142e1f278dd2cc7de4f
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np class ConvNet(nn.Module): def __init__(self, n_conv_layers, n_fc_layers, kernel_size, n_conv_filters, hidden_size, dropout=0.5): super(ConvNet, self).__init__() self.n_conv_layers = n_conv_layers self.n_f...
40.017045
112
0.608689
6,586
0.935113
0
0
0
0
0
0
165
0.023428
008b6bb82571cbc668561b2da75801f2e8dc130f
1,271
py
Python
cepelblog/core/views.py
tolgahancepel/cepelblog
db5b1446c98dbeadc0218af4c85df2b42798cc0b
[ "MIT" ]
null
null
null
cepelblog/core/views.py
tolgahancepel/cepelblog
db5b1446c98dbeadc0218af4c85df2b42798cc0b
[ "MIT" ]
null
null
null
cepelblog/core/views.py
tolgahancepel/cepelblog
db5b1446c98dbeadc0218af4c85df2b42798cc0b
[ "MIT" ]
null
null
null
""" cepelblog/core/views.py """ from cepelblog.models import BlogPost, Tag from flask import render_template, request, Blueprint core = Blueprint('core', __name__) # ----------------------------------------------------------------------------- # INDEX VIEW # ----------------------------------------------------------...
34.351351
112
0.440598
0
0
0
0
579
0.455547
0
0
605
0.476003
008bb408834b492fff721d3fd36cd375a9df551c
590
py
Python
ThirdParty/protobuf-registry/tasks/__init__.py
getcircle/luno-ios
d18260abb537496d86cf607c170dd5e91c406f0f
[ "MIT" ]
null
null
null
ThirdParty/protobuf-registry/tasks/__init__.py
getcircle/luno-ios
d18260abb537496d86cf607c170dd5e91c406f0f
[ "MIT" ]
null
null
null
ThirdParty/protobuf-registry/tasks/__init__.py
getcircle/luno-ios
d18260abb537496d86cf607c170dd5e91c406f0f
[ "MIT" ]
null
null
null
from invoke import ( Collection, task, ) from . import ( go, java, js, python, release, rewrite, swift, ) @task(post=[python.compile, swift.compile, js.compile]) def compile(): print 'compiling protobufs...' @task(pre=[compile], post=[release.release], aliases=('release',)) ...
15.526316
66
0.69322
0
0
0
0
200
0.338983
0
0
33
0.055932
008c91bbe182609bbcf29088b05910eb2c3fcb19
286
py
Python
examples/observer_easy_vs_easy.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
examples/observer_easy_vs_easy.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
examples/observer_easy_vs_easy.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
from sc2 import Race, Difficulty from sc2.player import Computer def main(): sc2.run_game(sc2.maps.get("Abyssal Reef LE"), [ Bot(Race.Protoss, CannonRushBot()), Computer(Race.Protoss, Difficulty.Medium) ], realtime=True) if __name__ == '__main__': main()
22
51
0.667832
0
0
0
0
0
0
0
0
27
0.094406
008e6eba28b58655ef68e670cfbd027e175076b3
288
py
Python
pico/blink.py
raushanraja/IOTExmaples
1973381b99e4a4bd3303b9e3c2739c7482b27ea4
[ "Unlicense" ]
null
null
null
pico/blink.py
raushanraja/IOTExmaples
1973381b99e4a4bd3303b9e3c2739c7482b27ea4
[ "Unlicense" ]
null
null
null
pico/blink.py
raushanraja/IOTExmaples
1973381b99e4a4bd3303b9e3c2739c7482b27ea4
[ "Unlicense" ]
null
null
null
from machine import Pin import utime #button = Pin(6,Pin.OUT,Pin.PULL_DOWN) button = Pin(4,Pin.IN,Pin.PULL_UP) print(button.value()) utime.sleep(2) button.init(button.IN, button.PULL_DOWN) print(button.value()) utime.sleep(2) button.init(button.IN, button.PULL_UP) print(button.value())
22.153846
40
0.756944
0
0
0
0
0
0
0
0
38
0.131944
008ea17d2b213c089ac3b3ac243e948fd9b56366
4,837
py
Python
epytope/Data/pssms/arb/mat/A_0203_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/arb/mat/A_0203_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/arb/mat/A_0203_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
A_0203_9 = {0: {'A': 0.10204317968289706, 'C': -0.13691712115186927, 'E': -0.801906817305166, 'D': -0.8225967811119382, 'G': 0.11878824300296573, 'F': 0.9807481728927135, 'I': -0.08975052529873016, 'H': -0.46728943474294626, 'K': -0.01635051504420257, 'M': 0.13635490849258533, 'L': 0.29716182243116734, 'N': -0.12865425...
4,837
4,837
0.704362
0
0
0
0
0
0
0
0
558
0.115361
009224dcb6a4b12ef4a8c46809d2c7ca17b267ae
4,241
py
Python
launcher.py
illusion0001/py-patcher
77d08fec6bbf30f9d2820fb8e6baac5ef6a46933
[ "MIT" ]
6
2022-03-06T14:20:09.000Z
2022-03-20T22:38:32.000Z
launcher.py
illusion0001/py-patcher
77d08fec6bbf30f9d2820fb8e6baac5ef6a46933
[ "MIT" ]
null
null
null
launcher.py
illusion0001/py-patcher
77d08fec6bbf30f9d2820fb8e6baac5ef6a46933
[ "MIT" ]
null
null
null
from src.main import loadConfig import argparse import base64 import logging as logs import coloredlogs if __name__ == "__main__": # Basic Logs Config logs.basicConfig() coloredlogs.install(level=logs.INFO) # Basic CLI config parser = argparse.ArgumentParser( prog="launcher.py", des...
50.488095
140
0.640887
0
0
0
0
0
0
0
0
2,214
0.522047
0092953e0c320d80fd162ef756008fc8c9889fe1
1,521
py
Python
graph.py
williamium3000/VAE-pytorch
81ecde20f76bd54400e05f66decac960f5591820
[ "MIT" ]
4
2021-03-17T01:23:02.000Z
2021-06-04T06:42:41.000Z
graph.py
williamium3000/VAE-pytorch
81ecde20f76bd54400e05f66decac960f5591820
[ "MIT" ]
null
null
null
graph.py
williamium3000/VAE-pytorch
81ecde20f76bd54400e05f66decac960f5591820
[ "MIT" ]
null
null
null
import json import numpy as np import matplotlib.pyplot as plt from tensorboard.backend.event_processing import event_accumulator def load_data_from_tensorboard(path): ea=event_accumulator.EventAccumulator(path) ea.Reload() val_psnr=ea.scalars.Items('loss') data = [i.value for i in val_psnr] re...
40.026316
136
0.788297
0
0
0
0
0
0
0
0
804
0.5286
0093532f37326f017db6a1a9dfc68504c15785c8
585
py
Python
backend/configuration/urls.py
victor-42/pws-secrets
108aa442801e2133a954a3e55054c0a12e7f563b
[ "MIT" ]
3
2021-08-06T22:41:09.000Z
2021-12-23T10:28:39.000Z
backend/configuration/urls.py
victor-42/pws-secrets
108aa442801e2133a954a3e55054c0a12e7f563b
[ "MIT" ]
null
null
null
backend/configuration/urls.py
victor-42/pws-secrets
108aa442801e2133a954a3e55054c0a12e7f563b
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from api.views import SecretView, AngularTemplateView, SecretImageView, SecretImageFileView urlpatterns = [ url(r'^api/secret/$', SecretView.as_view(), name='secret'), url(r'^api/secret-image/$', Secre...
45
92
0.748718
0
0
0
0
0
0
0
0
116
0.198291
00941e35e061a46578e9fdc493d82e26af9063ed
6,774
py
Python
rsopt/simulation.py
radiasoft/rsopt
6d4d123dd61e30c7f562b2f5a28c3ccbbcddbde3
[ "Apache-2.0" ]
6
2020-11-03T16:51:50.000Z
2022-02-13T20:40:05.000Z
rsopt/simulation.py
radiasoft/rsopt
6d4d123dd61e30c7f562b2f5a28c3ccbbcddbde3
[ "Apache-2.0" ]
97
2020-05-18T18:24:49.000Z
2022-03-23T15:42:42.000Z
rsopt/simulation.py
radiasoft/rsopt
6d4d123dd61e30c7f562b2f5a28c3ccbbcddbde3
[ "Apache-2.0" ]
4
2020-08-18T23:19:55.000Z
2021-12-08T20:55:09.000Z
import logging import time import numpy as np import os import rsopt.conversion from libensemble import message_numbers from libensemble.executors.executor import Executor from collections import Iterable # TODO: This should probably be in libe_tools right? _POLL_TIME = 1 # seconds _PENALTY = 1e9 def get_x_from_H(...
35.652632
118
0.57204
4,738
0.699439
0
0
0
0
0
0
1,350
0.199291
00943f666ce9066fcbaea31c3b37d0e129d1aff9
267
py
Python
app/display_modules/microbe_directory/models.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/display_modules/microbe_directory/models.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/display_modules/microbe_directory/models.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
"""Microbe Directory display models.""" from app.extensions import mongoDB as mdb class MicrobeDirectoryResult(mdb.EmbeddedDocument): # pylint: disable=too-few-public-methods """Set of microbe directory results.""" samples = mdb.DictField(required=True)
26.7
93
0.752809
181
0.677903
0
0
0
0
0
0
118
0.441948
00950bf5ea1da7a9712f6f48a0aef005059be905
753
py
Python
BasicAlgorithms/recursion.py
bhattvishal/intro_to_py-algo
63cea2eff4ef13cca96c0d09e723a08ea19a9006
[ "MIT" ]
1
2020-11-26T11:06:56.000Z
2020-11-26T11:06:56.000Z
2.Algorithms/1.Basic.Algorithms/recursion.py
bhattvishal/programming-learning-python
78498bfbe7c1c7b1bda53756ca8552ab30fbf538
[ "MIT" ]
null
null
null
2.Algorithms/1.Basic.Algorithms/recursion.py
bhattvishal/programming-learning-python
78498bfbe7c1c7b1bda53756ca8552ab30fbf538
[ "MIT" ]
1
2020-11-04T11:07:57.000Z
2020-11-04T11:07:57.000Z
# In this example we will use the concept of RECURSION # to the the Power and the Factorial of a given Number def calculatePower(number, power): if power == 0: return 1 else: return number * calculatePower(number, power - 1) def calculateFactorial(number): if number == 0: retur...
30.12
82
0.622842
0
0
0
0
0
0
0
0
236
0.313413
0095e7647eecae4b37ed02faff6cc32416ebf3b2
653
py
Python
trainers/__init__.py
kobakobashu/posenet-python
52290733504fd0a130cc2301bad5db761c14a4e9
[ "Apache-2.0" ]
null
null
null
trainers/__init__.py
kobakobashu/posenet-python
52290733504fd0a130cc2301bad5db761c14a4e9
[ "Apache-2.0" ]
null
null
null
trainers/__init__.py
kobakobashu/posenet-python
52290733504fd0a130cc2301bad5db761c14a4e9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Executor These functions are for execution. """ from configs.supported_info import SUPPORTED_TRAINER from trainers.default_trainer import DefaultTrainer def get_trainer(cfg: object) -> object: """Get trainer Args: cfg: Config of the project. Returns: Trainer...
20.40625
75
0.683002
0
0
0
0
0
0
0
0
312
0.477795
00967bd637a23b787021aa1f3d54debbff3ab5fb
5,669
py
Python
reference-markers.py
kunal-kadam/matplotlib
424bc92d804e140eaa43a9659c14ccab60523105
[ "BSD-2-Clause" ]
2,960
2019-08-11T15:36:09.000Z
2022-03-31T15:42:36.000Z
reference-markers.py
HongLau/matplotlib-cheatsheet
424bc92d804e140eaa43a9659c14ccab60523105
[ "BSD-2-Clause" ]
4
2019-08-15T11:32:20.000Z
2021-01-12T16:50:19.000Z
reference-markers.py
HongLau/matplotlib-cheatsheet
424bc92d804e140eaa43a9659c14ccab60523105
[ "BSD-2-Clause" ]
445
2019-08-12T06:56:26.000Z
2022-03-25T06:18:02.000Z
import numpy as np import matplotlib.pyplot as plt fig = plt.figure(figsize=(4.25,8*.55)) ax = fig.add_axes([0,0,1,1], xlim=[0,11], ylim=[0.5,8.5], frameon=False, xticks=[], yticks=[]) #, aspect=1) X = np.linspace(1,10,10) Y = np.zeros(len(X)) y = 8 # Marker edge color # ----------------------...
40.205674
87
0.491445
0
0
0
0
0
0
0
0
2,150
0.377657
0096fa841c0a8fedc796506d79a862ca237535ff
5,117
py
Python
post_gnome/tests/nc_particle_build_sample.py
rsignell-usgs/post_gnome
e24492751458570e00d07e7dd1958881f6dfa51b
[ "MIT", "Unlicense" ]
2
2017-02-15T20:45:42.000Z
2020-10-09T16:00:00.000Z
post_gnome/tests/nc_particle_build_sample.py
rsignell-usgs/post_gnome
e24492751458570e00d07e7dd1958881f6dfa51b
[ "MIT", "Unlicense" ]
10
2015-06-25T23:42:11.000Z
2021-06-22T16:19:19.000Z
post_gnome/tests/nc_particle_build_sample.py
rsignell-usgs/post_gnome
e24492751458570e00d07e7dd1958881f6dfa51b
[ "MIT", "Unlicense" ]
15
2016-01-11T20:49:10.000Z
2020-10-15T18:02:20.000Z
#!/usr/bin/env python """ A script to build a little example netcdf file for trajectories """ import numpy as np import datetime from post_gnome import nc_particles def write_sample_file(filename): start_time = datetime.datetime(2010, 11, 3, 12) #timesteps = [T.start_time + datetime.timedelta(hour=1) for i ...
44.112069
79
0.249756
0
0
0
0
0
0
0
0
446
0.08716
0099b3dcb3c67b6bba13b50c4b607f68f7d224da
9,779
py
Python
defender.py
robomotic/bulkavscanners
2b0862945e43e5160f6103e23999eb1e05b36852
[ "Apache-2.0" ]
1
2021-12-15T11:31:24.000Z
2021-12-15T11:31:24.000Z
defender.py
robomotic/bulkavscanners
2b0862945e43e5160f6103e23999eb1e05b36852
[ "Apache-2.0" ]
null
null
null
defender.py
robomotic/bulkavscanners
2b0862945e43e5160f6103e23999eb1e05b36852
[ "Apache-2.0" ]
null
null
null
from subprocess import Popen, PIPE import re import glob import os import pickle import json import time import logging import argparse import datetime import hashlib __author__ = "Paolo Di Prodi" __copyright__ = "Copyright 2018, Paolo Di Prodi" __license__ = "Apache 2.0" __version__ = "0.99" __email__ = "contact [AT...
35.952206
123
0.536762
6,571
0.67195
2,959
0.302587
324
0.033132
0
0
1,848
0.188976
009a7194d72bb19c9a7e47c1c2bfc99ff6b60d94
5,731
py
Python
python-flask-server/openapi_server/dcc/disease_utils.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
null
null
null
python-flask-server/openapi_server/dcc/disease_utils.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
8
2021-06-14T18:10:53.000Z
2022-03-23T18:30:10.000Z
python-flask-server/openapi_server/dcc/disease_utils.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
1
2022-02-22T21:24:58.000Z
2022-02-22T21:24:58.000Z
# imports import json import requests import logging import sys logging.basicConfig(level=logging.INFO, format=f'[%(asctime)s] - %(levelname)s - %(name)s %(threadName)s : %(message)s') handler = logging.StreamHandler(sys.stdout) logger = logging.getLogger(__name__) # constants URL_ONTOLOGY_KP = "https://stars-app.r...
36.974194
163
0.66847
0
0
0
0
0
0
0
0
2,163
0.377421
009bd895b6d6ee032c9cee2c80ab93e4d5be6020
2,991
py
Python
trend/src/zutils/zrpc/client/work_thread.py
limingmax/WFCode
f2e6d2fcf05ad9fdaac3a69603afee047ed37ca3
[ "Apache-2.0" ]
2
2018-10-23T01:56:46.000Z
2018-10-23T01:56:49.000Z
trend/src/zutils/zrpc/client/work_thread.py
limingmax/WFCode
f2e6d2fcf05ad9fdaac3a69603afee047ed37ca3
[ "Apache-2.0" ]
null
null
null
trend/src/zutils/zrpc/client/work_thread.py
limingmax/WFCode
f2e6d2fcf05ad9fdaac3a69603afee047ed37ca3
[ "Apache-2.0" ]
null
null
null
import traceback import time import threading from zutils.zrpc.client.task_template import TaskTemplateWithFrame, TaskTemplateWithoutFrame class WorkThread(threading.Thread): status = 'init' thread_num = 0 thread_dict = dict() cur_frame = None def __init__(self, run_instance): threading.Thr...
24.317073
92
0.567369
2,412
0.804268
0
0
725
0.241747
0
0
267
0.08903
009d704aba81fb74bdc33994c358fcda0bd206ab
162
py
Python
python-files/Channel/config.py
AdrianLundell/ldpc-investigation-master-thesis
075f5cd10dae498e4fcda2f4aabedd0e27caf122
[ "MIT" ]
1
2022-03-07T15:52:10.000Z
2022-03-07T15:52:10.000Z
python-files/Channel/config.py
AdrianLundell/ldpc-investigation-master-thesis
075f5cd10dae498e4fcda2f4aabedd0e27caf122
[ "MIT" ]
6
2022-03-09T10:31:25.000Z
2022-03-09T10:50:34.000Z
python-files/Channel/config.py
AdrianLundell/ldpc-investigation-master-thesis
075f5cd10dae498e4fcda2f4aabedd0e27caf122
[ "MIT" ]
null
null
null
#! /usr/bin/env python import yaml config_file = "config.yml" with open(config_file, "r") as ymlfile: # script_name without .py cfg = yaml.safe_load(ymlfile)
27
65
0.722222
0
0
0
0
0
0
0
0
62
0.382716
009db34ecc937dec5fe63e6719a39ee6b748575b
6,376
py
Python
c_pyvizio/c_vizio.py
cbishop76/c_pyvizio
d260225e78d5939139c1342a367efb60c2a999b1
[ "MIT" ]
null
null
null
c_pyvizio/c_vizio.py
cbishop76/c_pyvizio
d260225e78d5939139c1342a367efb60c2a999b1
[ "MIT" ]
null
null
null
c_pyvizio/c_vizio.py
cbishop76/c_pyvizio
d260225e78d5939139c1342a367efb60c2a999b1
[ "MIT" ]
null
null
null
import logging from urllib.parse import urlsplit import requests import xmltodict from .cmd_input import GetInputsListCommand, GetCurrentInputCommand, ChangeInputCommand from .cmd_pmode import GetPmodesListCommand, GetCurrentPmodeCommand, ChangePmodeCommand from .cmd_pair import BeginPairCommand, CancelPairCommand, P...
33.914894
134
0.672992
5,709
0.895389
0
0
726
0.113864
0
0
649
0.101788