hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
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
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
33.652174
81
0.565245
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
31.984375
103
0.612115
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
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 load_api_key(rtkey): """ Loads api key from provided path >>> load_api_key("~/path/to/my/rt/key") returns api key """ with open(os.path.expanduser(rtkey), 'r') as kf: key = kf.read().strip() return key
18.958333
52
0.613187
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
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
30.592593
100
0.651332
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
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
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__)
33.204545
115
0.71937
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
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
36.036364
71
0.679617
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 if __name__ == '__main__': from testdata import DataFiles df = DataFiles() refnam = df.joinData(FNAM_REF) read...
23.821429
79
0.596702
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
44.666667
115
0.839552
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
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
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
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
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
28.66
64
0.641312
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
45.813725
910
0.71239
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
32.507463
103
0.573003
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
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
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
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
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")
30.108108
211
0.623878
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
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 if __name__ == "__main__": main()
28.37037
84
0.720627
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
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
26.547619
85
0.56861
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
18.555556
51
0.598802
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 python3 -m ...
25.527778
77
0.627856
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
55.28972
142
0.592123
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
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"
21.25
76
0.688235
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
37.757576
87
0.480738
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
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
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_with_min_heap(nums: List[int], k: int) -> List[int]: """ Uses a Min Heap to get the top k frequent elements """ counter = Counter(nums) arr = [] for num, count ...
21.064516
71
0.635528
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
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 def update_tile_shape(H_in, W_in, kernel_size, dilation = 1., padding = 0., stride = 1.): H_out = (H_in + 2. * padding - dilation * (kernel_size-1) -1)/stride + 1 W_out = (...
40.017045
112
0.608689
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
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, ) ns = Collection() ns.add_collection(go) ns.add_collection(java) ns.add_collection(python) ns.add_collection(release) ns.add_collection(swift) ns.add_collection(rewrite) ns.a...
15.526316
66
0.69322
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 if __name__ == '__main__': main()
22
51
0.667832
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
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
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
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 # CVAE BCE_loss = load_data_from_tensorboard("runs/Mar17_05-00-30_06bed19cdc6a/loss_BCE/events.out.tfevents.1615957245.06bed19cdc6a.20271.2") KL_loss = load_data_from_tensorboard("runs/Mar17...
40.026316
136
0.788297
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
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
35.652632
118
0.57204
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
26.7
93
0.752809
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 if __name__ == "__main__": main()
30.12
82
0.622842
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
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
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 if __name__ == "__main__": write_sample_file('test_particles.nc')
44.112069
79
0.249756
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
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
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 if __name__ == '__main__': from zutils.task.client.task_template import TaskTemplate WorkThread(XXX()) WorkThread(YYY()) WorkThread(ZZZ()) WorkThread.se...
24.317073
92
0.567369
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
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
009e8776cfa85887a7c94901dc021527afa5ca46
11,509
py
Python
tests/data23/recipe-577507.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-577507.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-577507.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
## # This module provides a powerful 'switch'-like dispatcher system. # Values for switch cases can be anything comparable via '==', a string # for use on the left-hand side of the 'in' operator, or a regular expression. # Iterables of these types can also be used. __author__ = 'Mike Kent' import re CPAT_TYPE = type...
41.103571
80
0.588583
009eb040adfa94c81028b6d03f34a0e3a951ff0a
1,221
py
Python
three_play/v3/models/requests.py
rnag/three-play
694a9f96ff5edf5f72c04827004b644c0a51365a
[ "MIT" ]
null
null
null
three_play/v3/models/requests.py
rnag/three-play
694a9f96ff5edf5f72c04827004b644c0a51365a
[ "MIT" ]
2
2021-06-12T22:37:35.000Z
2021-06-12T22:38:41.000Z
three_play/v3/models/requests.py
rnag/three-play
694a9f96ff5edf5f72c04827004b644c0a51365a
[ "MIT" ]
null
null
null
from typing import Optional, List from requests import Session from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from ...config.requests import ( DEFAULT_MAX_RETRIES, DEFAULT_BACKOFF_FACTOR, DEFAULT_STATUS_FORCE_LIST)
32.131579
90
0.669124
00a019cbccdf847c336f738afaee1f639509b8fa
2,397
py
Python
linkedlist/Reference_code/q10.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
linkedlist/Reference_code/q10.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
null
null
null
linkedlist/Reference_code/q10.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" [0,9] 9->3->7,937.head1head2 19->3->726->3, 1->0->0->0. 1 2 3 """ from linkedlist.toolcls import Node, PrintMixin if __name__ == '__main__': node1 = Node(9) node1.next = Node(9) node1.next.next = Node(9) node2 = Node(1) ListAddTool.print_list(ListAddTool.add_list(node1, node2))
26.340659
71
0.546099
00a0af81b21a72f468dace443b20c2e72d9f2027
6,530
py
Python
xen/xen-4.2.2/tools/python/xen/xm/setpolicy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/xm/setpolicy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/xm/setpolicy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
35.879121
77
0.56294
00a1fb82dbb69af4873042c32811b5e206348686
21
py
Python
models/notes/constants.py
choeminjun/src_server_1.2
82e564e694e4f3011faf02c6de026d8a3b137680
[ "Apache-2.0" ]
null
null
null
models/notes/constants.py
choeminjun/src_server_1.2
82e564e694e4f3011faf02c6de026d8a3b137680
[ "Apache-2.0" ]
null
null
null
models/notes/constants.py
choeminjun/src_server_1.2
82e564e694e4f3011faf02c6de026d8a3b137680
[ "Apache-2.0" ]
null
null
null
COLLECTION = "notes"
10.5
20
0.714286
00a6a2f92810e78323611c3932598a5778ba1e13
1,310
py
Python
src/cnn_cifar10/mixup.py
chrismolli/redes_neuronales_semester_project
3309d102b809b395af39f7b570927e23d10db5ea
[ "MIT" ]
null
null
null
src/cnn_cifar10/mixup.py
chrismolli/redes_neuronales_semester_project
3309d102b809b395af39f7b570927e23d10db5ea
[ "MIT" ]
null
null
null
src/cnn_cifar10/mixup.py
chrismolli/redes_neuronales_semester_project
3309d102b809b395af39f7b570927e23d10db5ea
[ "MIT" ]
null
null
null
import numpy as np def mixup_extend_data(x,y,n): """ MIXUP_EXTEND_DATA will use the mixup technique to append n inter-class representations to the given data. y must be in a one hot representation. """ # copy data x_extend = [] y_extend = [] # create new data for i in range...
31.190476
73
0.600763
00a6ba612c79d98cfdae3a445d8e46b386ab0def
5,014
py
Python
mlc_tools/module_php/writer.py
mlc-tools/mlc-tools
1ee8e82e438cda2cc1efd334d69773d1a29a0e0c
[ "MIT" ]
1
2018-05-07T09:32:57.000Z
2018-05-07T09:32:57.000Z
mlc_tools/module_php/writer.py
mlc-tools/mlc-tools
1ee8e82e438cda2cc1efd334d69773d1a29a0e0c
[ "MIT" ]
4
2019-09-27T09:33:34.000Z
2020-04-13T13:48:02.000Z
mlc_tools/module_php/writer.py
mlc-tools/mlc-tools
1ee8e82e438cda2cc1efd334d69773d1a29a0e0c
[ "MIT" ]
1
2018-02-23T01:04:44.000Z
2018-02-23T01:04:44.000Z
from ..base import WriterBase from ..core.object import AccessSpecifier from .serializer import Serializer PATTERN_FILE = '''<?php {imports} class {name} {extend} {{ //members: {declarations} public function __construct({constructor_args}) {{ {initialize_list} {constructor_body}...
34.342466
104
0.534503
00a723f498f71a64d605273ee1d3b575ef1bfb52
823
py
Python
logistic_regression.py
Nikilnick97/Natural-Language-Processing
5d2118b8ee9517b8313ed6204061ddefa07d31c0
[ "MIT" ]
null
null
null
logistic_regression.py
Nikilnick97/Natural-Language-Processing
5d2118b8ee9517b8313ed6204061ddefa07d31c0
[ "MIT" ]
null
null
null
logistic_regression.py
Nikilnick97/Natural-Language-Processing
5d2118b8ee9517b8313ed6204061ddefa07d31c0
[ "MIT" ]
null
null
null
from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score from local_time import LocalTime
39.190476
86
0.63548
00a7637a92f956e02ad596c11a1c04c9cf79ecf8
1,269
py
Python
class_exercises/loop_split.py
klp/cuny_gc_python_class_sp2022
5614d5a1c790bac211f1221b7c727b59e9e05ca1
[ "BSD-2-Clause" ]
null
null
null
class_exercises/loop_split.py
klp/cuny_gc_python_class_sp2022
5614d5a1c790bac211f1221b7c727b59e9e05ca1
[ "BSD-2-Clause" ]
null
null
null
class_exercises/loop_split.py
klp/cuny_gc_python_class_sp2022
5614d5a1c790bac211f1221b7c727b59e9e05ca1
[ "BSD-2-Clause" ]
null
null
null
from os import nice random_string = """Vermont is famous for its verdant summer landscapes and postcard-worthy fall colors. But its the Green Mountain States winter landscape that truly sparks my photographic eye. New snow transforms the dull shades of stick season into a fresh palette of photographic possibility....
31.725
80
0.751773
00a7adc5bde4b52916307d4762109f6e53b951fb
682
py
Python
tflib/deep_learning/metrics.py
AlexBlack2202/EigenGAN-Tensorflow
9668738852abdcd7161b64b7e6a074c7ebfea055
[ "MIT" ]
581
2018-05-06T05:15:05.000Z
2022-03-29T08:13:54.000Z
tflib/metrics/metrics.py
yaojia1/darknet_my
92906e6b32cdcabaa841461c6d2efe06a54057d1
[ "MIT" ]
52
2018-05-11T09:33:30.000Z
2022-03-24T04:27:07.000Z
tflib/metrics/metrics.py
yaojia1/darknet_my
92906e6b32cdcabaa841461c6d2efe06a54057d1
[ "MIT" ]
137
2018-05-08T14:30:03.000Z
2022-02-24T01:50:37.000Z
import tensorflow as tf
37.888889
76
0.719941
00a855c635dc5c650f9f0a5260b347e1a3e75402
1,224
py
Python
medium/simplefyPath.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
medium/simplefyPath.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
medium/simplefyPath.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': sol = SolutionB() print(sol.simplifyPath('/a//b////c/d//././/..'))
27.2
55
0.392974
00aa5172246ad3368cb7cb431fad007e1000af85
844
py
Python
pt2/modules/residual_encoder.py
ishine/Parallel-Tacotron-2
138c29e6211d417464cb3386eb6740b1afe7f3b8
[ "MIT" ]
null
null
null
pt2/modules/residual_encoder.py
ishine/Parallel-Tacotron-2
138c29e6211d417464cb3386eb6740b1afe7f3b8
[ "MIT" ]
null
null
null
pt2/modules/residual_encoder.py
ishine/Parallel-Tacotron-2
138c29e6211d417464cb3386eb6740b1afe7f3b8
[ "MIT" ]
null
null
null
import torch from .lconv import LConvBlock
29.103448
62
0.547393
00acc1b4537dd37e9aabfa6f56d35705dc7f3a8e
3,017
py
Python
core/app/alarm/tests/test_save_motion.py
mxmaxime/mx-tech-house
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
[ "MIT" ]
2
2021-04-29T19:28:59.000Z
2021-04-29T21:20:32.000Z
core/app/alarm/tests/test_save_motion.py
mxmaxime/mx-tech-house
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
[ "MIT" ]
101
2020-06-26T19:51:24.000Z
2021-03-28T09:35:55.000Z
core/app/alarm/tests/test_save_motion.py
mxmaxime/mx-tech-house
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
[ "MIT" ]
null
null
null
import dataclasses from alarm.use_cases.data import Detection import uuid from decimal import Decimal from django.forms import model_to_dict from django.test import TestCase from django.utils import timezone from freezegun import freeze_time from alarm.business.in_motion import save_motion from alarm.factories import...
39.181818
102
0.694398
00ad6aa94b11109ec3cb9247063643c7576d5364
2,015
py
Python
compare.py
fralomba/Forensics-Analysis-Of-Audio-Files
35d87aeb8a9511a361f75a35d1588cc3da4d353b
[ "MIT" ]
2
2019-07-02T12:04:25.000Z
2021-02-24T21:49:19.000Z
compare.py
fralomba/Forensics-Analysis-Of-Audio-Files
35d87aeb8a9511a361f75a35d1588cc3da4d353b
[ "MIT" ]
null
null
null
compare.py
fralomba/Forensics-Analysis-Of-Audio-Files
35d87aeb8a9511a361f75a35d1588cc3da4d353b
[ "MIT" ]
null
null
null
#http://pymysql.readthedocs.io/en/latest/user/examples.html import sys import utils ##_______________________________________________script starts here #read input from command line if len(sys.argv) > 1 and len(sys.argv) < 4: file1 = sys.argv[1] file2 = sys.argv[2] blackList = [] ignoredList = [] elif len(sys.argv...
34.152542
241
0.633747
00ad9bd4f7342edae60739235bd9aaa111ee0531
16,881
py
Python
whisper/app.py
jphacks/SD_1809
e7f354cf9c66f46d3e60a9a55f810d007f8b885e
[ "MIT" ]
null
null
null
whisper/app.py
jphacks/SD_1809
e7f354cf9c66f46d3e60a9a55f810d007f8b885e
[ "MIT" ]
null
null
null
whisper/app.py
jphacks/SD_1809
e7f354cf9c66f46d3e60a9a55f810d007f8b885e
[ "MIT" ]
2
2018-10-21T02:31:58.000Z
2020-11-06T12:45:37.000Z
from __future__ import unicode_literals import errno import os import sys import tempfile import concurrent.futures as futures import json import re from argparse import ArgumentParser from flask import Flask, request, abort from linebot import ( LineBotApi, WebhookHandler ) from linebot.exceptions import ( ...
32.842412
107
0.647237
00ae834c9dc4befc6140c5f9a714686060eba6c7
815
py
Python
list_and_dict.py
MauVal96/python-intermediate
ff9a4263b10b48feb07abc3e6ae471f77fa2e089
[ "MIT" ]
null
null
null
list_and_dict.py
MauVal96/python-intermediate
ff9a4263b10b48feb07abc3e6ae471f77fa2e089
[ "MIT" ]
null
null
null
list_and_dict.py
MauVal96/python-intermediate
ff9a4263b10b48feb07abc3e6ae471f77fa2e089
[ "MIT" ]
null
null
null
# Nested Lists and Dictionaries if __name__ == '__main__': run()
27.166667
60
0.521472
00af5e0ffc302574cdfb6f82132240cba4c78b5d
460
py
Python
batman.py
Elry/py-basics
7e1003ee5a0124291b5d3afe6ec074d93883fb19
[ "MIT" ]
null
null
null
batman.py
Elry/py-basics
7e1003ee5a0124291b5d3afe6ec074d93883fb19
[ "MIT" ]
null
null
null
batman.py
Elry/py-basics
7e1003ee5a0124291b5d3afe6ec074d93883fb19
[ "MIT" ]
null
null
null
from bat import Bat from ubermesch import Ubermesch if __name__ == '__main__': sup = Batman print(Batman.__mro__) print(sup.get_species()) print(sup.sing())
25.555556
95
0.686957
00afcb16830c0c578437b292e2d8f2163e751822
9,400
py
Python
application.py
Lambda-School-Labs/Job-Funnl-ds-2
3603964839a8946363f9238b091aba9abace7d0d
[ "MIT" ]
null
null
null
application.py
Lambda-School-Labs/Job-Funnl-ds-2
3603964839a8946363f9238b091aba9abace7d0d
[ "MIT" ]
2
2020-05-02T00:16:16.000Z
2021-08-23T20:41:52.000Z
application.py
Lambda-School-Labs/Job-Funnl-ds-2
3603964839a8946363f9238b091aba9abace7d0d
[ "MIT" ]
5
2020-03-05T17:19:15.000Z
2020-03-26T13:44:15.000Z
import os import subprocess import sys import logging import time from os.path import join, dirname from flask import Flask, jsonify, request, send_file from flask.logging import default_handler from datafunctions.log.log import startLog, getLogFile, tailLogFile SCRAPER_NAME = './run_scrapers.py' SCRAPER_NAME_PS = ...
26.934097
113
0.67266
00b06694be371e9a46f14a04d71474d24287deb3
1,757
py
Python
badbaby/static/expyfun/ids_expyfun.py
ktavabi/bad-baby
241fbafd3ca9e23f25aae4eb3bbc90e666c76e8f
[ "MIT" ]
1
2020-12-08T05:29:02.000Z
2020-12-08T05:29:02.000Z
badbaby/static/expyfun/ids_expyfun.py
ktavabi/bad-baby
241fbafd3ca9e23f25aae4eb3bbc90e666c76e8f
[ "MIT" ]
15
2020-03-13T20:46:50.000Z
2021-09-01T21:31:43.000Z
badbaby/static/expyfun/ids_expyfun.py
ktavabi/bad-baby
241fbafd3ca9e23f25aae4eb3bbc90e666c76e8f
[ "MIT" ]
3
2020-09-21T18:30:42.000Z
2020-12-14T19:15:27.000Z
# -*- coding: utf-8 -*- # Authors: Kambiz Tavabi <ktavabi@gmail.com> # # simplified bsd-3 license """Script for infant basic auditory testing using infant directed speech (IDS)""" import numpy as np from os import path as op from expyfun import ExperimentController from expyfun.stimuli import read_wav from ...
38.195652
85
0.6642
00b16f07c262f23c71a57d135003bb5d4c284846
2,851
py
Python
CodeForces/EducationalRound73/B.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
CodeForces/EducationalRound73/B.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
CodeForces/EducationalRound73/B.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
N = int(input()) grid = [["*"] * N for _ in range(N)] grid[0][0] = "W" for i in range(N): for j in range(N): if grid[i][j] == "*": if j == 0: if grid[i - 1][j] == "W": grid[i][j] = "B" else: grid[i][j] = "W" e...
38.527027
49
0.244476
00b22e77ecc8a89b1345ee8da020bb63be57db18
2,419
py
Python
tests/cp2/test_cp2_ccall_fast.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
null
null
null
tests/cp2/test_cp2_ccall_fast.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
2
2020-06-02T13:44:55.000Z
2020-06-02T14:06:29.000Z
tests/cp2/test_cp2_ccall_fast.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2016 Alexandre Joannou # Copyright (c) 2013 Michael Roe # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LIC...
40.316667
77
0.725506
00b2d316baa5beed5667ff4eb88780b74052fb8e
602
py
Python
py_abac/policy/conditions/attribute/equals.py
sarthakgupta072/py-abac
7afcec37adc361a8c177c98044481aa5d2696303
[ "Apache-2.0" ]
47
2019-10-17T03:23:01.000Z
2022-02-26T03:27:03.000Z
py_abac/policy/conditions/attribute/equals.py
sarthakgupta072/py-abac
7afcec37adc361a8c177c98044481aa5d2696303
[ "Apache-2.0" ]
17
2020-02-24T02:17:34.000Z
2022-02-15T20:11:19.000Z
py_abac/policy/conditions/attribute/equals.py
ketgo/pyabac
8a44107a00f712bbb9c6cd3ecad155ef696cf035
[ "Apache-2.0" ]
10
2019-12-24T04:13:21.000Z
2021-08-01T08:21:41.000Z
""" Equals attribute condition """ from marshmallow import post_load from .base import AttributeCondition, AttributeConditionSchema
22.296296
84
0.697674
00b5e451e5aaad2a4c60d85866a433f916c39652
5,760
py
Python
run_test.py
drstmane/whatismyschema
bb93df49d513cb5ebafb275b83ec3dc1f6eea5bb
[ "BSD-3-Clause" ]
8
2018-10-30T15:30:29.000Z
2021-05-17T06:17:56.000Z
run_test.py
drstmane/whatismyschema
bb93df49d513cb5ebafb275b83ec3dc1f6eea5bb
[ "BSD-3-Clause" ]
10
2019-07-13T12:17:07.000Z
2019-08-27T18:23:53.000Z
run_test.py
drstmane/whatismyschema
bb93df49d513cb5ebafb275b83ec3dc1f6eea5bb
[ "BSD-3-Clause" ]
2
2019-08-11T20:55:49.000Z
2019-09-25T13:24:33.000Z
#!/bin/env python # coding: utf8 # # WhatIsMySchema # # Copyright (c) 2018 Tim Gubner # # import unittest from whatismyschema import * if __name__ == '__main__': unittest.main()
24
98
0.661285
00b7bd96ba6d79608c698351436afa9e3e25d037
266
py
Python
scrapper/urls.py
walaazidane/final-project-
eb52353b95078b19696df0f8cca1ea5fd88f0983
[ "MIT" ]
31
2017-07-25T13:22:57.000Z
2021-01-18T10:05:54.000Z
scrapper/urls.py
shashank-sharma/mythical-learning
f1105fceee8196cda275d9c72398c4e3a99b3f3c
[ "MIT" ]
34
2017-05-14T06:40:24.000Z
2019-07-15T14:37:16.000Z
scrapper/urls.py
walaazidane/final-project-
eb52353b95078b19696df0f8cca1ea5fd88f0983
[ "MIT" ]
4
2017-07-29T08:18:48.000Z
2019-09-17T15:37:08.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^problem/', views.problem, name = 'problem'), url(r'^blog/', views.blog, name = 'blog'), url(r'cpp/', views.cpp, name = 'cpp'), url(r'^$', views.temple, name = 'temple'), ]
24.181818
55
0.597744
00b81a87969d737a3477ea34c5a1bf0ec74eb40b
614
py
Python
tests/test_audio/conftest.py
gregorybchris/semigenre
62dd1bf22359c66009c5564417033ce5efc15870
[ "Apache-2.0" ]
null
null
null
tests/test_audio/conftest.py
gregorybchris/semigenre
62dd1bf22359c66009c5564417033ce5efc15870
[ "Apache-2.0" ]
null
null
null
tests/test_audio/conftest.py
gregorybchris/semigenre
62dd1bf22359c66009c5564417033ce5efc15870
[ "Apache-2.0" ]
null
null
null
"""Test configuration for semigenre.audio tests.""" import os import pytest from unittest.mock import MagicMock from semigenre.audio.library import Library
25.583333
77
0.714984
00b81ef6f7ced40946716530efb6216a3a20e7ee
1,782
py
Python
pickles/migrations/0001_initial.py
horatius83/thepicklebook
caf02e1c560bfd1ef7077d85d055d9dfdd6e9073
[ "MIT" ]
null
null
null
pickles/migrations/0001_initial.py
horatius83/thepicklebook
caf02e1c560bfd1ef7077d85d055d9dfdd6e9073
[ "MIT" ]
null
null
null
pickles/migrations/0001_initial.py
horatius83/thepicklebook
caf02e1c560bfd1ef7077d85d055d9dfdd6e9073
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-20 02:34 from django.db import migrations, models import django.db.models.deletion
37.125
117
0.570707
00b863ca4baba5322bd85d3764d5e6d8375946cf
1,018
py
Python
publica_admin/admin/views_admin.py
publica-io/django-publica-admin
27b36172048773cb697548494c843a376527d324
[ "BSD-3-Clause" ]
null
null
null
publica_admin/admin/views_admin.py
publica-io/django-publica-admin
27b36172048773cb697548494c843a376527d324
[ "BSD-3-Clause" ]
null
null
null
publica_admin/admin/views_admin.py
publica-io/django-publica-admin
27b36172048773cb697548494c843a376527d324
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin try: from views.models import * except ImportError: pass else: from images_admin import ImageInline from ..mixins import * admin.site.register(View, ViewAdmin)
19.960784
83
0.509823
00b9b121653ccb416fff5c294fbe6e27a119a9be
377
py
Python
setup.py
truenas/py-fenced
31f63df842134349952be9b17e40723a3b76b98c
[ "BSD-3-Clause" ]
1
2021-04-02T20:01:15.000Z
2021-04-02T20:01:15.000Z
setup.py
truenas/py-fenced
31f63df842134349952be9b17e40723a3b76b98c
[ "BSD-3-Clause" ]
1
2022-02-21T12:20:15.000Z
2022-02-21T12:55:11.000Z
setup.py
truenas/py-fenced
31f63df842134349952be9b17e40723a3b76b98c
[ "BSD-3-Clause" ]
null
null
null
from setuptools import find_packages, setup setup( name='fenced', version='0.0.1', description='TrueNAS SCALE Fencing Daemon', packages=find_packages(), classifiers=[ 'Programming Language :: Python :: 3', ], install_requires=[], entry_points={ 'console_scripts': [ ...
19.842105
47
0.583554
00b9bdc2fc25f447d02c74734b9528389a1c8e25
5,068
py
Python
functional/tests/identity/v3/test_user.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
functional/tests/identity/v3/test_user.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
functional/tests/identity/v3/test_user.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
49.686275
78
0.500592
00ba9c94000c21d53effafeefc5ec42d4ed5165f
1,825
py
Python
src/main.py
gltchitm/encpad
faab373f0f224c8a8dbd6d09a5fad5c14d02d03a
[ "MIT" ]
null
null
null
src/main.py
gltchitm/encpad
faab373f0f224c8a8dbd6d09a5fad5c14d02d03a
[ "MIT" ]
null
null
null
src/main.py
gltchitm/encpad
faab373f0f224c8a8dbd6d09a5fad5c14d02d03a
[ "MIT" ]
null
null
null
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from store import store from create_new_notepad import CreateNewNotepad from notepad_editor import NotepadEditor from unlock_notepad import UnlockNotepad from welcome import Welcome store['FORMAT_VERSION'] = '2' store['APPLICATION_VERSION'] = ...
28.968254
94
0.650959
00bab63c362727001a4c6ce7f81b111d198c544f
904
py
Python
src/request_executors.py
adelbertkuhl/simple-data-pipeline
e99d9015e862745f34b7e32c24399a780463ec4a
[ "MIT" ]
null
null
null
src/request_executors.py
adelbertkuhl/simple-data-pipeline
e99d9015e862745f34b7e32c24399a780463ec4a
[ "MIT" ]
null
null
null
src/request_executors.py
adelbertkuhl/simple-data-pipeline
e99d9015e862745f34b7e32c24399a780463ec4a
[ "MIT" ]
null
null
null
from apis import IEXAPI
33.481481
81
0.667035
00babb53ff1072afcca974e8051db281df6bfdf9
492
py
Python
jit_compiling/test.py
ChambinLee/norm_cuda
627573a16dc50c517254057225c31cb7193017fc
[ "MIT" ]
3
2021-11-13T07:35:45.000Z
2022-03-13T13:00:09.000Z
jit_compiling/test.py
ChambinLee/norm_cuda
627573a16dc50c517254057225c31cb7193017fc
[ "MIT" ]
null
null
null
jit_compiling/test.py
ChambinLee/norm_cuda
627573a16dc50c517254057225c31cb7193017fc
[ "MIT" ]
1
2022-02-28T12:26:05.000Z
2022-02-28T12:26:05.000Z
import torch from torch.utils.cpp_extension import load norm = load(name="two_norm", sources=["two_norm/two_norm_bind.cpp", "two_norm/two_norm_kernel.cu"], verbose=True) n,m = 8,3 a = torch.randn(n,m) b = torch.randn(n,m) c = torch.zeros(1) print("a:\n",a) print("\nb:\n",b) a =...
18.222222
89
0.621951
00bae0f0aa8493c91230dc6537df0e5893832ac3
52
py
Python
pyno/nodes/identity.py
cgarjun/Pyno
fa2a5d57fb926564f5acc0e6c7310de255bab531
[ "MIT" ]
163
2015-12-29T02:28:04.000Z
2022-02-02T02:18:28.000Z
pyno/nodes/identity.py
cgarjun/Pyno
fa2a5d57fb926564f5acc0e6c7310de255bab531
[ "MIT" ]
42
2017-12-19T15:31:54.000Z
2019-09-21T20:14:06.000Z
pyno/nodes/identity.py
cgarjun/Pyno
fa2a5d57fb926564f5acc0e6c7310de255bab531
[ "MIT" ]
34
2017-09-23T09:08:56.000Z
2021-09-16T23:49:24.000Z
call = identity
10.4
21
0.673077
00bbfd85cea4d78f9b99f65415abd3a203fb0784
49
py
Python
img_url_replace/__init__.py
ggqshr/replace_img_md
bdb5ace24eb243454785aac924b9dd51827065a3
[ "BSD-3-Clause" ]
1
2020-12-30T09:31:08.000Z
2020-12-30T09:31:08.000Z
img_url_replace/__init__.py
ggqshr/replace_img_md
bdb5ace24eb243454785aac924b9dd51827065a3
[ "BSD-3-Clause" ]
null
null
null
img_url_replace/__init__.py
ggqshr/replace_img_md
bdb5ace24eb243454785aac924b9dd51827065a3
[ "BSD-3-Clause" ]
null
null
null
from .img_upload import * from .parse_md import *
24.5
25
0.77551
00bc63dc8e3839f301fef7682c2c63e16590ce48
510
py
Python
Monte-Carlo-Pythonista.py
Steftet/Monte-Carlo
b24aa10728b0b5e5556ce337fe1461a052f74d4e
[ "MIT" ]
null
null
null
Monte-Carlo-Pythonista.py
Steftet/Monte-Carlo
b24aa10728b0b5e5556ce337fe1461a052f74d4e
[ "MIT" ]
null
null
null
Monte-Carlo-Pythonista.py
Steftet/Monte-Carlo
b24aa10728b0b5e5556ce337fe1461a052f74d4e
[ "MIT" ]
null
null
null
import math import random import canvas f = 200 h = 0 canvas.set_size(f, f) canvas.set_fill_color(1, 1, 1) canvas.fill_rect(0,0,f,f) k = int(input('Number of dots: ')) for i in range(0,k): x = (random.randint(0,f)/f) y = (random.randint(0,f)/f) if math.sqrt(math.pow(x,2)+math.pow(y,2))<=1: h+=1 ...
18.214286
49
0.603922
00bd3c651188f07e87054fbd345e246fcb4dcb27
3,931
py
Python
tint/protocols/msgpackp.py
bmuller/tint
e74a3e4c46f71dfcb2574920467ad791d29de6fe
[ "MIT" ]
1
2015-02-18T18:33:44.000Z
2015-02-18T18:33:44.000Z
tint/protocols/msgpackp.py
8468/tint
e74a3e4c46f71dfcb2574920467ad791d29de6fe
[ "MIT" ]
null
null
null
tint/protocols/msgpackp.py
8468/tint
e74a3e4c46f71dfcb2574920467ad791d29de6fe
[ "MIT" ]
null
null
null
from collections import deque from twisted.protocols.policies import TimeoutMixin from twisted.internet.protocol import Protocol from twisted.internet.defer import Deferred, TimeoutError, maybeDeferred import umsgpack from tint.log import Logger
30.710938
77
0.618418
00be5d7cca91ea09fe8f701d0fc9b5adbb1c6967
1,435
py
Python
discoin/utils.py
Discoin/discoin.py
4a3459dfaab6695fe88d05290465a1b7842b3606
[ "MIT" ]
2
2020-07-26T11:29:47.000Z
2021-09-08T22:38:35.000Z
discoin/utils.py
Discoin/discoin.py
4a3459dfaab6695fe88d05290465a1b7842b3606
[ "MIT" ]
8
2020-02-11T14:23:38.000Z
2021-04-16T21:38:15.000Z
discoin/utils.py
Discoin/discoin.py
4a3459dfaab6695fe88d05290465a1b7842b3606
[ "MIT" ]
null
null
null
from .config import DOMAIN from .errors import InternalServerError, BadRequest, InvalidMethod, WebTimeoutError from aiohttp import ClientSession from asyncio import TimeoutError
42.205882
111
0.672474
00be7b3c81233764127a44082d1d7982d1b01666
896
py
Python
sprinkl_async/const.py
ptorsten/sprinkl-async
1f62b1799f19bc604e13f65cbde1f705caefcd78
[ "Apache-2.0" ]
5
2020-03-15T21:24:56.000Z
2020-07-17T02:14:29.000Z
sprinkl_async/const.py
ptorsten/sprinkl-async
1f62b1799f19bc604e13f65cbde1f705caefcd78
[ "Apache-2.0" ]
null
null
null
sprinkl_async/const.py
ptorsten/sprinkl-async
1f62b1799f19bc604e13f65cbde1f705caefcd78
[ "Apache-2.0" ]
2
2019-08-12T00:40:29.000Z
2020-06-21T22:35:17.000Z
"""Declare package constants.""" # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.185185
74
0.767857
00be7f4d50bc2df415f28d4e095c788f4191d555
10,338
py
Python
mmdet/core/anchor/orient_anchor_target.py
qinr/MRDet
44b608ec6007db204dcb6b82eff9e356fc7b56d0
[ "Apache-2.0" ]
8
2021-05-25T10:49:00.000Z
2021-11-28T04:01:02.000Z
mmdet/core/anchor/orient_anchor_target.py
qinr/MRDet
44b608ec6007db204dcb6b82eff9e356fc7b56d0
[ "Apache-2.0" ]
null
null
null
mmdet/core/anchor/orient_anchor_target.py
qinr/MRDet
44b608ec6007db204dcb6b82eff9e356fc7b56d0
[ "Apache-2.0" ]
2
2021-07-22T12:53:37.000Z
2021-12-17T12:53:51.000Z
import torch from ..bbox import (PseudoSampler, assign_and_sample, bbox2delta, build_assigner, delta2hbboxrec5, hbbox2rbboxRec_v2, rbboxPoly2Rectangle, rec2target) from ..utils import multi_apply def orient_anchor_target(bbox_pred_list, anchor...
42.896266
87
0.600019
00be8ae8187812f5646537143480e2c61ecd6d1a
728
py
Python
Algorithms/distinct_prime_factors.py
StokicDusan/Python-misc
c12f1603ef4dc7bf9ff55994cdbd6cf1dafcfee1
[ "MIT" ]
null
null
null
Algorithms/distinct_prime_factors.py
StokicDusan/Python-misc
c12f1603ef4dc7bf9ff55994cdbd6cf1dafcfee1
[ "MIT" ]
12
2021-04-15T21:22:26.000Z
2022-02-18T15:09:56.000Z
Algorithms/distinct_prime_factors.py
StokicDusan/Python-misc
c12f1603ef4dc7bf9ff55994cdbd6cf1dafcfee1
[ "MIT" ]
null
null
null
def test_distinct_prime_factors() -> None: """ >>> distinct_prime_factors(1) [] >>> distinct_prime_factors(40) [2, 5] >>> distinct_prime_factors(165) [3, 5, 11] >>> distinct_prime_factors(701) [701] >>> distinct_prime_factors(2187) [3] """ pass if __name__ == "__m...
19.675676
43
0.532967