hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
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
368k
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
4
247
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
4
247
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
793f3e5587c2648c5cce05606c8889bfe6e2c709
1,835
py
Python
argumentosSimple.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
1
2017-12-31T18:09:06.000Z
2017-12-31T18:09:06.000Z
argumentosSimple.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
null
null
null
argumentosSimple.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Hay diversas maneras de recibir informacin del usuario en la terminal Para pedir informacin al usuario DURANTE la ejecucin de un script podemos usar la funcin "raw_input" (python2) o "input" (python3) y guardar la respuesta en una variable como se puede ver en el scri...
42.674419
110
0.751499
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Hay diversas maneras de recibir información del usuario en la terminal Para pedir información al usuario DURANTE la ejecución de un script podemos usar la función "raw_input" (python2) o "input" (python3) y guardar la respuesta en una variable como se puede ver en el ...
36
0
0
0
0
0
0
0
0
de6490d1c1a96e9c5dde617c3def839494915247
1,270
py
Python
pyfiles/30yankeedoodle.py
StevenPZChan/pythonchallenge
84c0e7458189f6d74e2cfbd169d854dae11d07a9
[ "MIT" ]
null
null
null
pyfiles/30yankeedoodle.py
StevenPZChan/pythonchallenge
84c0e7458189f6d74e2cfbd169d854dae11d07a9
[ "MIT" ]
null
null
null
pyfiles/30yankeedoodle.py
StevenPZChan/pythonchallenge
84c0e7458189f6d74e2cfbd169d854dae11d07a9
[ "MIT" ]
null
null
null
import requests from PIL import Image header = {'Authorization': 'Basic cmVwZWF0OnN3aXRjaA==', } response = requests.get('http://www.pythonchallenge.com/pc/ring/yankeedoodle.csv', headers=header) with open('yankeedoodle.csv', 'wb') as f: f.write(response.content) with open('yankeedoodle.csv', 'r') as f: data ...
31.75
106
0.607874
import requests from PIL import Image header = {'Authorization': 'Basic cmVwZWF0OnN3aXRjaA==', } response = requests.get('http://www.pythonchallenge.com/pc/ring/yankeedoodle.csv', headers=header) with open('yankeedoodle.csv', 'wb') as f: f.write(response.content) with open('yankeedoodle.csv', 'r') as f: data ...
0
0
0
0
0
187
0
0
23
bd035791d582d112d9724a0bb9dc759903dd6332
2,930
py
Python
src/pm_proxy/dependents/npmjs_dependents.py
Yanivmd/maloss
af85ac202668da88d0b4a885386a1e56703e37c8
[ "MIT" ]
1
2022-01-29T16:13:06.000Z
2022-01-29T16:13:06.000Z
src/pm_proxy/dependents/npmjs_dependents.py
Yanivmd/maloss
af85ac202668da88d0b4a885386a1e56703e37c8
[ "MIT" ]
null
null
null
src/pm_proxy/dependents/npmjs_dependents.py
Yanivmd/maloss
af85ac202668da88d0b4a885386a1e56703e37c8
[ "MIT" ]
1
2022-01-29T16:13:07.000Z
2022-01-29T16:13:07.000Z
import sys import json import argparse # parse arguments parser = argparse.ArgumentParser(prog="npmjs_dependents", description="Parse arguments") parser.add_argument("name", help="Name of the package to query dependents") parser.add_argument("-o", "--outfile", help="Path to the output file for storing dependents info...
38.552632
199
0.715358
import sys import json import urllib import logging import requests import argparse from urlparse import urljoin from bs4 import BeautifulSoup # parse arguments parser = argparse.ArgumentParser(prog="npmjs_dependents", description="Parse arguments") parser.add_argument("name", help="Name of the package to query depen...
0
0
0
0
0
1,900
0
-6
178
36888563b1a30f9ca9ffdc10fdf78ea9c9bce694
9,204
py
Python
Ordenamento Radix Sort (TP4 A2)/A2 RadixSort LSD vRelatorio.py
DFTF-PConsole/AED-Labs-Arvores-LEI
2149b4f6058fb581282c5c5d813ae99e233e453b
[ "MIT" ]
null
null
null
Ordenamento Radix Sort (TP4 A2)/A2 RadixSort LSD vRelatorio.py
DFTF-PConsole/AED-Labs-Arvores-LEI
2149b4f6058fb581282c5c5d813ae99e233e453b
[ "MIT" ]
null
null
null
Ordenamento Radix Sort (TP4 A2)/A2 RadixSort LSD vRelatorio.py
DFTF-PConsole/AED-Labs-Arvores-LEI
2149b4f6058fb581282c5c5d813ae99e233e453b
[ "MIT" ]
null
null
null
# v1: Com Radix Sort LSD (A2) (Lado Direito -> Lado Esquerdo) Atua Sobre Digitos e Nao Bits (Para inteiros) | # Ex.: 1999 >>> 1 <- 9 <- 9 <- 9 # *** VERSAO RELATORIO *** | Tabela 2 e 3 # #### BIBLIOTECAS #### # #### CONSTANTES #### CMD_IN_GLOBAL = "PESQ_GLOBAL\n" CMD_IN_UTILIZADORES = "PESQ_UTILIZADORES\n" CMD_IN_T...
42.414747
194
0.557366
# v1: Com Radix Sort LSD (A2) (Lado Direito -> Lado Esquerdo) Atua Sobre Digitos e Nao Bits (Para inteiros) | # Ex.: 1999 >>> 1 <- 9 <- 9 <- 9 # *** VERSAO RELATORIO *** | Tabela 2 e 3 # #### BIBLIOTECAS #### import sys import time import msvcrt from io import StringIO # #### CONSTANTES #### CMD_IN_GLOBAL = "PESQ_G...
0
0
0
0
0
8,303
0
-27
202
bf1f03d1d8eb0e447032ef76e65ee79f0f89065a
929
py
Python
solutions/142. Linked List Cycle II.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
solutions/142. Linked List Cycle II.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
solutions/142. Linked List Cycle II.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
""" Runtime: 1626 ms, faster than 5.01% of Python3 online submissions for Linked List Cycle II. Memory Usage: 17.3 MB, less than 73.61% of Python3 online submissions for Linked List Cycle II. """ if __name__ == "__main__": main()
23.820513
95
0.597417
""" Runtime: 1626 ms, faster than 5.01% of Python3 online submissions for Linked List Cycle II. Memory Usage: 17.3 MB, less than 73.61% of Python3 online submissions for Linked List Cycle II. """ from typing import List from typing import Optional class ListNode: def __init__(self, x): self.val = x ...
0
0
0
325
0
248
0
8
113
943b3f02b5809012fae0f1ddb09bba60bd0f3709
932
py
Python
blipp/dummy.py
periscope-ps/blipp
002d08e911fb94c34d7f05e34883efa8f6138a4f
[ "BSD-3-Clause" ]
null
null
null
blipp/dummy.py
periscope-ps/blipp
002d08e911fb94c34d7f05e34883efa8f6138a4f
[ "BSD-3-Clause" ]
null
null
null
blipp/dummy.py
periscope-ps/blipp
002d08e911fb94c34d7f05e34883efa8f6138a4f
[ "BSD-3-Clause" ]
1
2015-12-14T01:14:39.000Z
2015-12-14T01:14:39.000Z
# ============================================================================= # periscope-ps (blipp) # # Copyright (c) 2013-2016, Trustees of Indiana University, # All rights reserved. # # This software may be modified and distributed under the terms of the BSD # license. See the COPYING file for details. # # ...
29.125
81
0.565451
# ============================================================================= # periscope-ps (blipp) # # Copyright (c) 2013-2016, Trustees of Indiana University, # All rights reserved. # # This software may be modified and distributed under the terms of the BSD # license. See the COPYING file for details. # # ...
0
0
0
334
0
0
0
-10
45
86c861ac13441abc037261171e3480debd2223eb
4,080
py
Python
pytests/tests/stepsize/vis_stepsize.py
shamanDevel/DiffDVR
99fbe9f114d0097daf402bde2ae35f18dade335d
[ "BSD-3-Clause" ]
12
2021-08-02T04:51:48.000Z
2022-01-14T18:02:27.000Z
pytests/tests/stepsize/vis_stepsize.py
shamanDevel/DiffDVR
99fbe9f114d0097daf402bde2ae35f18dade335d
[ "BSD-3-Clause" ]
2
2021-11-04T14:23:30.000Z
2022-02-28T10:30:13.000Z
pytests/tests/stepsize/vis_stepsize.py
shamanDevel/DiffDVR
99fbe9f114d0097daf402bde2ae35f18dade335d
[ "BSD-3-Clause" ]
4
2021-07-16T10:23:45.000Z
2022-01-04T02:51:43.000Z
import os import sys sys.path.append(os.getcwd()) import matplotlib.colors if __name__ == "__main__": #ui = UIStepsize(os.path.join(os.getcwd(), "..\\..\\results\\stepsize\\skull4gauss")) ui = UIStepsize(os.path.join(os.getcwd(), "..\\..\\results\\stepsize\\thorax2gauss")) ui.show()
36.756757
99
0.628431
import os import sys sys.path.append(os.getcwd()) import h5py import tests.vis_gui import torch import numpy as np import skimage.transform import matplotlib.colors import matplotlib.pyplot import pyrenderer class UIStepsize(tests.vis_gui.UI): def __init__(self, folder): keys = [ "filename"...
0
0
0
3,624
0
0
0
-21
179
5dfa2cf07cecc859c0f04b49c985a9ecba85a964
12,200
py
Python
mysite/polls/tests.py
js1294/ECM-2434-Group-Software-Engineering-Project
c7edb7d9006920712341d780e3941a99f729630b
[ "Apache-2.0" ]
2
2022-02-17T13:01:36.000Z
2022-02-28T11:50:23.000Z
mysite/polls/tests.py
js1294/ECM-2434-Group-Software-Engineering-Project
c7edb7d9006920712341d780e3941a99f729630b
[ "Apache-2.0" ]
13
2022-03-02T20:25:47.000Z
2022-03-23T10:47:16.000Z
mysite/polls/tests.py
js1294/ECM-2434-Group-Software-Engineering-Project
c7edb7d9006920712341d780e3941a99f729630b
[ "Apache-2.0" ]
4
2022-02-27T13:19:23.000Z
2022-03-21T15:19:11.000Z
"""Django tests to ensure that the app is working correctly are written and run here."""
33.983287
94
0.74
"""Django tests to ensure that the app is working correctly are written and run here.""" import tempfile import datetime from django.db.models.fields.files import ImageFieldFile from django.test import TestCase from django.core.exceptions import ValidationError from django.core.files.uploadedfile import SimpleUploaded...
4
0
0
11,540
0
0
0
210
359
00360430e0d7600fd4981ee2a9f61d6755f8e92b
17,465
py
Python
scripts/loading/phenotype/load_phenotype.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
5
2015-11-24T23:09:46.000Z
2019-11-06T17:48:13.000Z
scripts/loading/phenotype/load_phenotype.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
188
2017-08-28T22:39:03.000Z
2022-03-02T14:53:46.000Z
scripts/loading/phenotype/load_phenotype.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
7
2018-05-13T01:58:07.000Z
2021-06-25T19:08:33.000Z
import sys __author__ = 'sweng66' cond_start_index = 12 cond_stop_index = 33 column_size = 36 cond_class = ['treatment', 'media', 'phase', 'temperature', 'chemical', 'assay', 'radiation'] # degree_file = "scripts/loading/phenotype/data/sample_line_with_degree.txt" if __name__ == '__main__':...
37.398287
262
0.536444
import sys import importlib from src.models import Apo, Locusdbentity, Referencedbentity, Phenotypeannotation, \ Source, PhenotypeannotationCond, Taxonomy, Chebi, Phenotype, Allele, Reporter, Chebi from scripts.loading.database_session import get_session from scripts.loading.util import get_strain_taxid_mapping __...
0
0
0
0
0
16,262
0
218
231
56eba2bd40e6acba1eb4a8799f336598eab7c462
1,413
py
Python
config.py
GT-AcerZhang/PaddlePaddle-OCR
b37211cae0ce3182ca7be05ba4a67153282fd7b5
[ "Apache-2.0" ]
null
null
null
config.py
GT-AcerZhang/PaddlePaddle-OCR
b37211cae0ce3182ca7be05ba4a67153282fd7b5
[ "Apache-2.0" ]
null
null
null
config.py
GT-AcerZhang/PaddlePaddle-OCR
b37211cae0ce3182ca7be05ba4a67153282fd7b5
[ "Apache-2.0" ]
null
null
null
# data dict dict_path = "dataset/dict.txt" # Data shape data_shape = [1, 60, -1] # Minibatch size. batch_size = 128 # Learning rate. lr = 1e-3 # Learning rate decay strategy. 'piecewise_decay' or None is valid. lr_decay_strategy = None # L2 decay rate. l2decay = 4e-4 # Momentum rate. momentum = 0.9 # The threshold of g...
27.705882
84
0.742392
# data dict dict_path = "dataset/dict.txt" # Data shape data_shape = [1, 60, -1] # Minibatch size. batch_size = 128 # Learning rate. lr = 1e-3 # Learning rate decay strategy. 'piecewise_decay' or None is valid. lr_decay_strategy = None # L2 decay rate. l2decay = 4e-4 # Momentum rate. momentum = 0.9 # The threshold of g...
0
0
0
0
0
0
0
0
0
c6f416a63af3b1efcde2f7ff2466a868d562aa14
426
py
Python
src/boot.py
begeistert/thingsboard
a12fe9e8688df27f6f03798ac96511d4a5475421
[ "MIT" ]
null
null
null
src/boot.py
begeistert/thingsboard
a12fe9e8688df27f6f03798ac96511d4a5475421
[ "MIT" ]
null
null
null
src/boot.py
begeistert/thingsboard
a12fe9e8688df27f6f03798ac96511d4a5475421
[ "MIT" ]
1
2021-08-31T09:04:00.000Z
2021-08-31T09:04:00.000Z
# This file is executed on every boot (including wake-boot from deepsleep) import gc import network import sys # import webrepl # import esp sys.path.reverse() # uos.dupterm(None, 1) # disable REPL on UART(0) # esp.osdebug(None) # webrepl.start() gc.collect() # Se inicia la conexin WiFi connection = network.WLAN(net...
17.75
74
0.753521
# This file is executed on every boot (including wake-boot from deepsleep) import uos import gc import network import sys # import webrepl # import esp from wifi import * sys.path.reverse() # uos.dupterm(None, 1) # disable REPL on UART(0) # esp.osdebug(None) # webrepl.start() gc.collect() # Se inicia la conexión Wi...
2
0
0
0
0
0
0
-14
45
37bc23220677061ba989d369dbd704972ca5dcca
3,781
py
Python
utility.py
parice02/anagram
cbee7b2acd73beafa02ab60497f194bc679bc15b
[ "MIT" ]
null
null
null
utility.py
parice02/anagram
cbee7b2acd73beafa02ab60497f194bc679bc15b
[ "MIT" ]
null
null
null
utility.py
parice02/anagram
cbee7b2acd73beafa02ab60497f194bc679bc15b
[ "MIT" ]
null
null
null
# -*- conding: utf8 -*- """ @author: Muhammed Zeba (parice02) """ import sqlite3 from re import compile, I from typing import List def regexp(motif: str, item: str) -> bool: """retourne True si le motif regex a t satisfait dans l'item False sinon """ pattern = compile(motif, I) return pattern.sear...
26.815603
102
0.590849
# -*- conding: utf8 -*- """ @author: Muhammed Zeba (parice02) """ import time import sqlite3 from re import compile, I from typing import List, Dict from pathlib import Path import json def N_(s): return s def regexp(motif: str, item: str) -> bool: """retourne True si le motif regex a été satisfait dans l'i...
6
668
0
1,876
0
547
0
-11
205
737d8b9d6816301bff076d72cea1c7b08b66645d
3,017
py
Python
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/access_to_protected_members.py
OrangeGzY/vimrc
ddcaedce2effbbd1014eddbceebeb8c621cd9f95
[ "MIT" ]
1
2021-05-08T07:32:20.000Z
2021-05-08T07:32:20.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/access_to_protected_members.py
OrangeGzY/vimrc
ddcaedce2effbbd1014eddbceebeb8c621cd9f95
[ "MIT" ]
null
null
null
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/access_to_protected_members.py
OrangeGzY/vimrc
ddcaedce2effbbd1014eddbceebeb8c621cd9f95
[ "MIT" ]
null
null
null
# pylint: disable=too-few-public-methods, W0231, print-statement, useless-object-inheritance # pylint: disable=no-classmethod-decorator """Test external access to protected class members.""" from __future__ import print_function INST = Subclass() INST.attr = 1 print(INST.attr) INST._protected = 2 # [protected-access...
29.578431
97
0.621478
# pylint: disable=too-few-public-methods, W0231, print-statement, useless-object-inheritance # pylint: disable=no-classmethod-decorator """Test external access to protected class members.""" from __future__ import print_function class MyClass(object): """Class with protected members.""" _cls_protected = 5 ...
0
0
0
2,461
0
0
0
0
92
fa4088f97a151acd7e55796d129b4ed7a8cd864b
1,081
py
Python
image2html/image2html.py
ZQPei/img2html
06c1d1734593ec753964b92f3331a9959b14638d
[ "MIT" ]
2
2019-12-17T08:51:25.000Z
2021-05-26T16:25:55.000Z
image2html/image2html.py
ZQPei/img2html
06c1d1734593ec753964b92f3331a9959b14638d
[ "MIT" ]
1
2020-03-04T05:24:57.000Z
2020-07-20T09:51:45.000Z
image2html/image2html.py
ZQPei/img2html
06c1d1734593ec753964b92f3331a9959b14638d
[ "MIT" ]
1
2020-12-09T04:39:11.000Z
2020-12-09T04:39:11.000Z
if __name__ == "__main__": image2html()
41.576923
153
0.693802
from .html_generator import build_html_generator def parse_args(): import argparse parser = argparse.ArgumentParser() # parser.add_argument("--mode", type=str, choices=['single', 'multiple'], help='To display a single image folder or Compare multiple image folders.') parser.add_argument("--dirs", type...
0
0
0
0
0
938
0
27
68
25351227459bae83e453349353bdc294c0b47886
122
py
Python
Week_1_Python_Basics/Problem Set 1/ps1_problem2.py
marwan1023/MITX.6.00.1x
f054fe1a64c0868668998d1cd44d6bb3c5e431b3
[ "CNRI-Python" ]
null
null
null
Week_1_Python_Basics/Problem Set 1/ps1_problem2.py
marwan1023/MITX.6.00.1x
f054fe1a64c0868668998d1cd44d6bb3c5e431b3
[ "CNRI-Python" ]
null
null
null
Week_1_Python_Basics/Problem Set 1/ps1_problem2.py
marwan1023/MITX.6.00.1x
f054fe1a64c0868668998d1cd44d6bb3c5e431b3
[ "CNRI-Python" ]
null
null
null
bob = 0 for i in range(len(s)-2): if s[i:i+3] == 'bob': bob += 1 print('Number of times bob occurs is:', bob)
20.333333
44
0.532787
bob = 0 for i in range(len(s)-2): if s[i:i+3] == 'bob': bob += 1 print('Number of times bob occurs is:', bob)
0
0
0
0
0
0
0
0
0
f46d256053c1ccb9894f109ff08cd3706ce3ca7a
1,021
py
Python
app.py
rafaelsouzak2b/lista_favoritos
38cdda263a7a8d157cbfd9abdc4b6e4af3b9f4b8
[ "MIT" ]
null
null
null
app.py
rafaelsouzak2b/lista_favoritos
38cdda263a7a8d157cbfd9abdc4b6e4af3b9f4b8
[ "MIT" ]
null
null
null
app.py
rafaelsouzak2b/lista_favoritos
38cdda263a7a8d157cbfd9abdc4b6e4af3b9f4b8
[ "MIT" ]
null
null
null
from src.app.ma import ma from src.app.db import db from src.app.controllers.cliente import Cliente, ClienteList from src.app.controllers.favoritos import FavoritoList, Favorito from src.app.controllers.usuario import UsuarioAuth, Usuario from src.app.server.instance import server import logging api = server.api app...
31.90625
100
0.790402
from marshmallow import ValidationError from src.app.ma import ma from src.app.db import db from src.app.controllers.cliente import Cliente, ClienteList from src.app.controllers.favoritos import FavoritoList, Favorito from src.app.controllers.usuario import UsuarioAuth, Usuario from src.app.server.instance import ser...
0
45
0
0
0
0
0
18
45
36e22b9a97d22dae4a3bf254b51c8c019598d7d4
24,151
py
Python
sdk/python/pulumi_okta/behaviour.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
5
2019-10-29T21:59:22.000Z
2021-11-08T12:00:24.000Z
sdk/python/pulumi_okta/behaviour.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
109
2020-01-06T10:28:09.000Z
2022-03-25T19:52:40.000Z
sdk/python/pulumi_okta/behaviour.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-11T16:31:04.000Z
2020-11-24T12:23:17.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi __all__ = ['BehaviourArgs', 'Behaviour']
44.313761
137
0.639601
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
0
21,099
0
2,607
0
0
0
44
158
453a00b5f5eff817a5db5d9cffe28cc248ea085c
228
py
Python
ranker/__init__.py
rebryk/SPbAU-IR
15ef67b49617cc6b67d69ecba5e2585ea56a52b7
[ "MIT" ]
null
null
null
ranker/__init__.py
rebryk/SPbAU-IR
15ef67b49617cc6b67d69ecba5e2585ea56a52b7
[ "MIT" ]
null
null
null
ranker/__init__.py
rebryk/SPbAU-IR
15ef67b49617cc6b67d69ecba5e2585ea56a52b7
[ "MIT" ]
null
null
null
import logging from .ranker import AbstractAndArticle from .tfidf import TfIdf logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG) __all__ = ("AbstractAndArticle", "TfIdf")
25.333333
103
0.741228
import logging from .ranker import AbstractAndArticle from .tfidf import TfIdf logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG) __all__ = ("AbstractAndArticle", "TfIdf")
0
0
0
0
0
0
0
0
0
566b6caef237f48bef5eff181a6d2a1a17ed799d
8,460
py
Python
banner.py
mh-Earth/instaploit
fb871b3c0d7d74df828826314da3893945ee71ad
[ "MIT" ]
7
2021-02-25T17:37:32.000Z
2022-01-13T15:49:45.000Z
banner.py
mh-Earth/instaploit
fb871b3c0d7d74df828826314da3893945ee71ad
[ "MIT" ]
1
2021-02-25T20:13:18.000Z
2021-02-27T06:22:12.000Z
banner.py
mh-Earth/instaploit
fb871b3c0d7d74df828826314da3893945ee71ad
[ "MIT" ]
null
null
null
banner1=(''' ...
60.863309
298
0.089362
from random import choice banner1=(''' ██ ██████ ████ ██ ██████ ██ ████ ██ ██ ...
3,231
0
0
0
0
478
0
4
69
08f6e34eb576d4fb663cb60cd23844b93b06d91d
413
py
Python
main/migrations/0003_pdfaudio_audio_file.py
VijyantVerma/pdf-to-audio
2eb925be77c4ee079b27a180521fa7fc460b8e5f
[ "MIT" ]
1
2020-10-14T22:50:01.000Z
2020-10-14T22:50:01.000Z
main/migrations/0003_pdfaudio_audio_file.py
VijyantVerma/pdf-to-audio
2eb925be77c4ee079b27a180521fa7fc460b8e5f
[ "MIT" ]
null
null
null
main/migrations/0003_pdfaudio_audio_file.py
VijyantVerma/pdf-to-audio
2eb925be77c4ee079b27a180521fa7fc460b8e5f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-20 18:25
21.736842
76
0.605327
# Generated by Django 3.1.2 on 2020-10-20 18:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0002_auto_20201020_2339'), ] operations = [ migrations.AddField( model_name='pdfaudio', name='audio_file', ...
0
0
0
299
0
0
0
19
46
26d881e5af1dfe72f33db1b99628896f3fc92b9a
6,732
py
Python
RAISoft/instruments/Regulator.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
RAISoft/instruments/Regulator.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
RAISoft/instruments/Regulator.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
# This should define the abstract regulator
40.071429
145
0.577094
# This should define the abstract regulator import threading from LocalTimer import LocalTimerClass from DummyMeter import Bedna from numpy import array class Regulator(Bedna): class Feedback: prop = 0.1 loopTime = 1 measLoopTime = loopTime memory = None signal = None cl...
0
0
0
6,550
0
0
0
21
111
ec42a3a648d541e2ff3fbadfec0b10d0704f5e07
9,521
py
Python
src/api.py
ZingLix/alala
c305261bdf3c852509786596851f348b79ca3547
[ "MIT" ]
null
null
null
src/api.py
ZingLix/alala
c305261bdf3c852509786596851f348b79ca3547
[ "MIT" ]
null
null
null
src/api.py
ZingLix/alala
c305261bdf3c852509786596851f348b79ca3547
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS from user import register_user_module import secrets app = Flask(__name__) app.secret_key = secrets.token_urlsafe(16) register_user_module(app) CORS(app)
30.41853
88
0.664426
import json from os import abort from flask import Flask, request from flask_cors import CORS from bson import ObjectId import flask_login from requests import api import permission import requests from Util.db import rule_db, keywords_db, bili_mtr_db, user_db, permission_db, api_db from rule import keywords, update_ke...
0
8,320
0
0
0
0
0
154
816
11d2d9fdeeee1810d1147f8e6f96a95243432786
4,096
py
Python
jacdac/jacscript_manager/client.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-15T21:30:36.000Z
2022-02-15T21:30:36.000Z
jacdac/jacscript_manager/client.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
null
null
null
jacdac/jacscript_manager/client.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-08T19:32:45.000Z
2022-02-08T19:32:45.000Z
# Autogenerated file. Do not edit.
37.925926
129
0.676514
# Autogenerated file. Do not edit. from jacdac.bus import Bus, Client, EventHandlerFn, UnsubscribeFn from .constants import * from typing import Optional class JacscriptManagerClient(Client): """ Allows for deployment and control over Jacscript virtual machine. * * Programs start automatically afte...
0
1,503
0
2,410
0
0
0
53
89
098e835eaf8c13ab80b472d86955cbff1de3448b
475
py
Python
_site/Class 7/binarysearch.py
noahklein/pythonClass
8c33443cfc53f648440d40b6ed3e2ea952ce8876
[ "MIT" ]
null
null
null
_site/Class 7/binarysearch.py
noahklein/pythonClass
8c33443cfc53f648440d40b6ed3e2ea952ce8876
[ "MIT" ]
null
null
null
_site/Class 7/binarysearch.py
noahklein/pythonClass
8c33443cfc53f648440d40b6ed3e2ea952ce8876
[ "MIT" ]
null
null
null
#example: a = range(1,25) print(binarySearch(a,1,debug=True))
29.6875
68
0.745263
def binarySearch(listOfNumbers,number,debug=False): if debug: print(listOfNumbers) length = len(listOfNumbers) if listOfNumbers[length//2] == number: return True if length == 1: return False elif listOfNumbers[length//2] > number: return binarySearch(listOfNumbers[:length//2], number,debug=debug) else: #...
0
0
0
0
0
392
0
0
22
087959f59cb4f153652d2ea4b82d4f53ec62cdb3
2,435
py
Python
foodx_devops_tools/pipeline_config/deployments.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
3
2021-06-23T20:53:43.000Z
2022-01-26T14:19:43.000Z
foodx_devops_tools/pipeline_config/deployments.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
33
2021-08-09T15:44:51.000Z
2022-03-03T18:28:02.000Z
foodx_devops_tools/pipeline_config/deployments.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
1
2021-06-23T20:53:52.000Z
2021-06-23T20:53:52.000Z
# Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Subscriptions deployment configuration I/O.""" import pathlib import typing from ._ex...
26.182796
73
0.731828
# Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Subscriptions deployment configuration I/O.""" import pathlib import typing import py...
0
414
0
820
0
0
0
-6
138
2c9422bc77aae39ebb1357b4e31d9b7bdbe7f017
36,548
py
Python
codes/singint.py
Hadrien-Montanelli/singintpy
1706afe42d0cc6e0f3c53759d489f7209e50ef29
[ "MIT" ]
null
null
null
codes/singint.py
Hadrien-Montanelli/singintpy
1706afe42d0cc6e0f3c53759d489f7209e50ef29
[ "MIT" ]
null
null
null
codes/singint.py
Hadrien-Montanelli/singintpy
1706afe42d0cc6e0f3c53759d489f7209e50ef29
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 28 15:39:49 2021 Copyright 2021 by Hadrien Montanelli. """ import numpy as np from numpy.linalg import norm def singint(A, x0, n, p, trans=[True, True, True], optim='BFGS', quad='numerical'): """ Compute a singular or near-singular integral...
36.548
85
0.435126
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 28 15:39:49 2021 Copyright 2021 by Hadrien Montanelli. """ import numpy as np from numpy.linalg import norm from scipy.optimize import minimize def singint(A, x0, n, p, trans=[True, True, True], optim='BFGS', quad='numerical'): """ Compute ...
0
0
0
0
0
33,586
0
14
392
5e641ecf20f1d503885b0c2aade91d39570cefd9
2,277
py
Python
src/quantum_util/topology.py
alchayward/quantum_util
76f48e02760e080e70127dd089a4c4e8a6c732cf
[ "MIT" ]
null
null
null
src/quantum_util/topology.py
alchayward/quantum_util
76f48e02760e080e70127dd089a4c4e8a6c732cf
[ "MIT" ]
null
null
null
src/quantum_util/topology.py
alchayward/quantum_util
76f48e02760e080e70127dd089a4c4e8a6c732cf
[ "MIT" ]
null
null
null
# tools for analysing topologial quantities for various systems from scipy import pi, log, imag # 1D topology def polarization(wf, d_phi=1.0e-10): """ Polarization from Resta formula. """ L = states.shape[0] X = diag(exp(-1.0j*linspace(0,2*pi,L))) return -imag(log(det(conj(states.T) @ ...
26.788235
74
0.634607
# tools for analysing topologial quantities for various systems import numpy as np from scipy.integrate import quad, dblquad from scipy import pi, log, imag from quantum_util.operators import ParameterizedWavefunction # 1D topology class TorusState2D(object): """Docstring for TorusState2D. Todo: Add some...
0
0
0
625
0
828
0
56
294
2acc822c79652f7e9afd78c450db48f5e01422b1
14,948
py
Python
dfirtrack_main/importer/file/csv_form_based.py
FabFaeb/dfirtrack
6dd1f5d16a688ea921753512fbf38ec8865e4c48
[ "MIT" ]
null
null
null
dfirtrack_main/importer/file/csv_form_based.py
FabFaeb/dfirtrack
6dd1f5d16a688ea921753512fbf38ec8865e4c48
[ "MIT" ]
null
null
null
dfirtrack_main/importer/file/csv_form_based.py
FabFaeb/dfirtrack
6dd1f5d16a688ea921753512fbf38ec8865e4c48
[ "MIT" ]
null
null
null
# deprecated, TODO: check for useful stuff regarding tag handling # #from dfirtrack.config import TAGLIST #from dfirtrack.config import TAGPREFIX # # """ # - remove all tags for systems beginning with 'TAGPREFIX' (if there are any) # - evaluate given CSV line by line (without first row) # - check wheth...
42.107042
166
0.582085
import csv from django.contrib import messages from django.contrib.auth.decorators import login_required from django.shortcuts import redirect, render from django.urls import reverse from django.utils import timezone from dfirtrack_config.models import SystemImporterFileCsvFormbasedConfigModel from dfirtrack_main.impor...
0
9,252
0
0
0
0
0
542
331
c1012a0c816befadf95b8b196dc767c17064660e
533
py
Python
NewsProcessorServer/config.py
theodorachu/ihavenewsforyou
bc7be1952af5eee8f1ace92469a1364b974ab984
[ "MIT" ]
1
2017-01-26T01:25:03.000Z
2017-01-26T01:25:03.000Z
NewsProcessorServer/config.py
theodorachu/ihavenewsforyou
bc7be1952af5eee8f1ace92469a1364b974ab984
[ "MIT" ]
null
null
null
NewsProcessorServer/config.py
theodorachu/ihavenewsforyou
bc7be1952af5eee8f1ace92469a1364b974ab984
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__))
25.380952
84
0.771107
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): DEBUG = False CSRF_ENABLED = True SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] # required by Flask-SQLAlchemy # OAUTH_CLIENT_ID = os.environ['OAUTH_CLIENT_ID'] # CLIENT_SECRET = os.environ['CLIENT_SECRET'] CORS_HEADERS =...
0
0
0
378
0
0
0
0
92
45b7d1d77a8b4ef50beeefda60b7ff07d37f1fc6
2,678
py
Python
analysis/prep/barriers/special/extract_snapping_dataset_outside_prev_region.py
astutespruce/sarp
7ce503380440c47b762ed1a8efd1d3e3aab6605e
[ "MIT" ]
null
null
null
analysis/prep/barriers/special/extract_snapping_dataset_outside_prev_region.py
astutespruce/sarp
7ce503380440c47b762ed1a8efd1d3e3aab6605e
[ "MIT" ]
null
null
null
analysis/prep/barriers/special/extract_snapping_dataset_outside_prev_region.py
astutespruce/sarp
7ce503380440c47b762ed1a8efd1d3e3aab6605e
[ "MIT" ]
null
null
null
import os from pathlib import Path import warnings import pygeos as pg import geopandas as gp from pyogrio import read_dataframe, write_dataframe from analysis.constants import CRS, STATES PREVIOUS_STATES = { "AL", "AR", "AZ", "CO", "FL", "GA", "IA", "KS", "KY", "LA", "MO"...
25.028037
96
0.676998
import os from pathlib import Path import warnings import pygeos as pg import geopandas as gp from pyogrio import read_dataframe, write_dataframe from analysis.constants import CRS, STATES PREVIOUS_STATES = { "AL", "AR", "AZ", "CO", "FL", "GA", "IA", "KS", "KY", "LA", "MO"...
0
0
0
0
0
0
0
0
0
38880200e76e06d22e94df45480ca1fd7e5a9a82
904
py
Python
deliverable_model/serving/remote_model/model_registry.py
lanSeFangZhou/deliverable_model
b01c502286850879bc3f9be1dd6f369ad1181d07
[ "Apache-2.0" ]
2
2020-08-20T04:26:58.000Z
2021-01-04T10:06:31.000Z
deliverable_model/serving/remote_model/model_registry.py
lanSeFangZhou/deliverable_model
b01c502286850879bc3f9be1dd6f369ad1181d07
[ "Apache-2.0" ]
6
2019-12-12T03:13:43.000Z
2021-11-10T20:08:18.000Z
deliverable_model/serving/remote_model/model_registry.py
lanSeFangZhou/deliverable_model
b01c502286850879bc3f9be1dd6f369ad1181d07
[ "Apache-2.0" ]
4
2019-11-15T09:56:01.000Z
2020-05-08T10:23:00.000Z
_endpoint_type_registry = {}
29.16129
88
0.820796
from pathlib import Path from deliverable_model.serving.remote_model.model_endpoint_base import ModelEndpointBase _endpoint_type_registry = {} def get_endpoint_class_by_type(model_type) -> ModelEndpointBase: global _endpoint_type_registry model_loader_class = _endpoint_type_registry[model_type] return ...
0
0
0
0
0
687
0
70
114
8a047cd30341546b9165ab7b923c949d6ffdb963
479
py
Python
scuole/counties/migrations/0004_auto_20170813_2350.py
texastribune/scuole
8ab316ee50ef0d8e71b94b50dc889d10c6e83412
[ "MIT" ]
1
2019-03-12T04:30:02.000Z
2019-03-12T04:30:02.000Z
scuole/counties/migrations/0004_auto_20170813_2350.py
texastribune/scuole
8ab316ee50ef0d8e71b94b50dc889d10c6e83412
[ "MIT" ]
616
2017-08-18T21:15:39.000Z
2022-03-25T11:17:10.000Z
scuole/counties/migrations/0004_auto_20170813_2350.py
texastribune/scuole
8ab316ee50ef0d8e71b94b50dc889d10c6e83412
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-08-13 23:50 from __future__ import unicode_literals
22.809524
49
0.638831
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-08-13 23:50 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('counties', '0003_auto_20170811_2045'), ] operations = [ migrations.AlterFie...
0
0
0
300
0
0
0
19
46
58ca962f1bbbcccd31a06aeb2de9c62035360259
75
py
Python
ts_app/__main__.py
ngocneo/time-series-app
910cae8a05e0ad7fb21aa3844ff9b1ff39e287e2
[ "MIT" ]
null
null
null
ts_app/__main__.py
ngocneo/time-series-app
910cae8a05e0ad7fb21aa3844ff9b1ff39e287e2
[ "MIT" ]
null
null
null
ts_app/__main__.py
ngocneo/time-series-app
910cae8a05e0ad7fb21aa3844ff9b1ff39e287e2
[ "MIT" ]
null
null
null
from ts_app import run_in_cli if __name__ == "__main__": run_in_cli()
15
29
0.72
from ts_app import run_in_cli if __name__ == "__main__": run_in_cli()
0
0
0
0
0
0
0
0
0
e009771b8dc62d1f5fc7dcde6bef84d2cc2d249c
539
py
Python
src/concurrency in python/python concurrecy/thead_monitor.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
src/concurrency in python/python concurrecy/thead_monitor.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
3
2019-12-26T05:13:55.000Z
2020-03-07T06:59:56.000Z
src/concurrency in python/python concurrecy/thead_monitor.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
monitor_deamons()
28.368421
92
0.684601
import subprocess def monitor_deamons(): print ("starting monitor") ps = subprocess.Popen(('ps', '-ef'), stdout=subprocess.PIPE) grep = subprocess.Popen(('grep', '-v', 'grep'), stdin=ps.stdout, stdout=subprocess.PIPE) ps.stdout.close() # Allow ps to receive a SIGPIPE if grep exits. grep_daemon ...
0
0
0
0
0
480
0
-4
45
63230fe10d1a1ba9882aa450100c2db362bf35bb
4,934
py
Python
metal/end_model/em_defaults.py
inimino/metal
6d557e0956fb92c6d1afccd4b0089c5166d38565
[ "Apache-2.0" ]
437
2018-08-03T21:24:15.000Z
2022-03-18T19:31:39.000Z
metal/end_model/em_defaults.py
inimino/metal
6d557e0956fb92c6d1afccd4b0089c5166d38565
[ "Apache-2.0" ]
134
2018-08-02T14:33:44.000Z
2021-12-22T06:39:42.000Z
metal/end_model/em_defaults.py
inimino/metal
6d557e0956fb92c6d1afccd4b0089c5166d38565
[ "Apache-2.0" ]
80
2018-08-06T21:18:39.000Z
2022-03-10T09:17:49.000Z
em_default_config = { # GENERAL "seed": None, "verbose": True, "show_plots": True, # Network # The first value is the output dim of the input module (or the sum of # the output dims of all the input modules if multitask=True and # multiple input modules are provided). The last value is t...
43.280702
145
0.58715
em_default_config = { # GENERAL "seed": None, "verbose": True, "show_plots": True, # Network # The first value is the output dim of the input module (or the sum of # the output dims of all the input modules if multitask=True and # multiple input modules are provided). The last value is t...
0
0
0
0
0
0
0
0
0
a0ab8966ba729b58ef60fe30df62a2cbd9de6013
296
py
Python
config.py
golnazads/ADSAuthorAffiliationService
69a4f2e2ea481d7a26bac1c37d880ef691be8c72
[ "MIT" ]
1
2021-04-25T15:04:22.000Z
2021-04-25T15:04:22.000Z
config.py
golnazads/ADSAuthorAffiliationService
69a4f2e2ea481d7a26bac1c37d880ef691be8c72
[ "MIT" ]
21
2017-12-08T01:21:22.000Z
2021-02-26T17:44:06.000Z
config.py
golnazads/ADSAuthorAffiliationService
69a4f2e2ea481d7a26bac1c37d880ef691be8c72
[ "MIT" ]
2
2018-08-07T13:51:39.000Z
2021-04-25T15:04:26.000Z
LOG_STDOUT = True AUTHOR_AFFILIATION_SOLRQUERY_URL = "http://api.adsabs.harvard.edu/v1/search/bigquery" AUTHOR_AFFILATION_SERVICE_MAX_RECORDS_SOLR = 1000 # must be here for adsmutils to override it using env vars # but if left empty (resolving to False) it won't be used SERVICE_TOKEN = None
26.909091
85
0.797297
LOG_STDOUT = True AUTHOR_AFFILIATION_SOLRQUERY_URL = "http://api.adsabs.harvard.edu/v1/search/bigquery" AUTHOR_AFFILATION_SERVICE_MAX_RECORDS_SOLR = 1000 # must be here for adsmutils to override it using env vars # but if left empty (resolving to False) it won't be used SERVICE_TOKEN = None
0
0
0
0
0
0
0
0
0
97419f3dc72c64bccb2d2d4a114e256582785944
421
py
Python
accounts/migrations/0006_auto_20180422_2204.py
Tomasz-Kluczkowski/Bnice
75eb66a94a3bf3225691ed6802e674fbcf108571
[ "MIT" ]
null
null
null
accounts/migrations/0006_auto_20180422_2204.py
Tomasz-Kluczkowski/Bnice
75eb66a94a3bf3225691ed6802e674fbcf108571
[ "MIT" ]
60
2018-04-20T21:32:21.000Z
2021-09-07T23:53:31.000Z
accounts/migrations/0006_auto_20180422_2204.py
Tomasz-Kluczkowski/Bnice
75eb66a94a3bf3225691ed6802e674fbcf108571
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-04-22 21:04
22.157895
79
0.605701
# Generated by Django 2.0.3 on 2018-04-22 21:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20180419_2101'), ] operations = [ migrations.AlterField( model_name='user', name='profile_phot...
0
0
0
307
0
0
0
19
46
1749e798a32d13f7c0e13894de38f49b9ed27849
32,134
py
Python
tests/python/modules/mesh_test.py
noorbeast/blender
9dc69b3848b46f4fbf3daa3360a3b975f4e1565f
[ "Naumen", "Condor-1.1", "MS-PL" ]
365
2015-02-10T15:10:55.000Z
2022-03-03T15:50:51.000Z
tests/python/modules/mesh_test.py
noorbeast/blender
9dc69b3848b46f4fbf3daa3360a3b975f4e1565f
[ "Naumen", "Condor-1.1", "MS-PL" ]
45
2015-01-09T15:34:20.000Z
2021-10-05T14:44:23.000Z
tests/python/modules/mesh_test.py
noorbeast/blender
9dc69b3848b46f4fbf3daa3360a3b975f4e1565f
[ "Naumen", "Condor-1.1", "MS-PL" ]
172
2015-01-25T15:16:53.000Z
2022-01-31T08:25:36.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
43.898907
121
0.643835
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
0
0
0
30,003
0
0
0
-30
228
a4f994ce49cc4a42d2efab739a386ae352bb08dd
423
py
Python
aclark/db/migrations/0052_note__note.py
aclark4life/aclark-net-1
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
[ "MIT" ]
null
null
null
aclark/db/migrations/0052_note__note.py
aclark4life/aclark-net-1
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
[ "MIT" ]
null
null
null
aclark/db/migrations/0052_note__note.py
aclark4life/aclark-net-1
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-18 18:17
22.263158
102
0.598109
# Generated by Django 3.0.7 on 2020-07-18 18:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('db', '0051_note_doc_type'), ] operations = [ migrations.AddField( model_name='note', name='_note', field...
0
0
0
309
0
0
0
19
46
5653637ee356e11fdb0fc4dacc1b2b44a6d254f3
8,951
py
Python
main.py
smogork/TAiO_ImageClassification
14b2f6e707475b45e936a8ddd4345309aaef78f2
[ "MIT" ]
null
null
null
main.py
smogork/TAiO_ImageClassification
14b2f6e707475b45e936a8ddd4345309aaef78f2
[ "MIT" ]
2
2021-10-12T17:45:49.000Z
2021-12-21T19:23:30.000Z
main.py
smogork/TAiO_ImageClassification
14b2f6e707475b45e936a8ddd4345309aaef78f2
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Pocztkowy modu """ import argparse from feature.simple_features.avg_size_of_hole_feature import AvgSizeOfHoleFeature from feature.simple_features.avg_size_of_island_feature import AvgSizeOfIslandFeature from feature.simple_features.first_quart_feature import FirstQuartFeature from feature.si...
50.286517
190
0.790414
#! /usr/bin/env python """ Początkowy moduł """ import argparse import numpy from bitmap_mapper.min_max_difference_coordinates_bitmap_mapper import MinMaxDifferenceCoordinatesBitmapMapper from data_parsers.classify_data import ClassifyData from data_parsers.learning_data import LearningData from feature.simple_featu...
4
0
0
0
0
2,260
0
166
181
73cb7f84904c9f5e9797faba056f08ccdf349848
449
py
Python
auxilia/funcao truncar.py
HigorAnjos/Fundamentos-VI
e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb
[ "MIT" ]
null
null
null
auxilia/funcao truncar.py
HigorAnjos/Fundamentos-VI
e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb
[ "MIT" ]
null
null
null
auxilia/funcao truncar.py
HigorAnjos/Fundamentos-VI
e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb
[ "MIT" ]
null
null
null
def truncate(number, decimals=0): """ Returns a value truncated to a specific number of decimal places. """ if not isinstance(decimals, int): raise TypeError("decimal places must be an integer.") elif decimals < 0: raise ValueError("decimal places has to be 0 or more.") elif dec...
23.631579
69
0.639198
def truncate(number, decimals=0): """ Returns a value truncated to a specific number of decimal places. """ if not isinstance(decimals, int): raise TypeError("decimal places must be an integer.") elif decimals < 0: raise ValueError("decimal places has to be 0 or more.") elif dec...
0
0
0
0
0
0
0
0
0
350f482e992f32b93957d2a42ad52be3552c6bce
4,465
py
Python
linux-exec.py
mlyapin/linux-exec
0ccd813407f928b2f9120e637dabaae4c241fb91
[ "MIT" ]
null
null
null
linux-exec.py
mlyapin/linux-exec
0ccd813407f928b2f9120e637dabaae4c241fb91
[ "MIT" ]
null
null
null
linux-exec.py
mlyapin/linux-exec
0ccd813407f928b2f9120e637dabaae4c241fb91
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import hashlib DOCKERFILE_BASIC = """ FROM archlinux # Update the system RUN pacman --noconfirm -Syu # We will append commands to install packages later. See the function `construct_dockerfile()` """ def calc_image_hash(config: Config) -> str: """Calculate image hash from given a config...
29.375
98
0.603135
#!/usr/bin/env python3 import sys import os import subprocess import hashlib import typing import dataclasses DOCKERFILE_BASIC = """ FROM archlinux # Update the system RUN pacman --noconfirm -Syu # We will append commands to install packages later. See the function `construct_dockerfile()` """ @dataclasses.datacl...
0
1,013
0
0
730
2,087
0
-38
272
15d57e2727120c6ebac03e3adaf2d3552e6cc5d0
6,794
py
Python
Other_Python/ThetaGPU_Ray/source/post_analyses.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
8
2020-09-02T14:46:07.000Z
2021-11-29T15:27:05.000Z
Other_Python/ThetaGPU_Ray/source/post_analyses.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
18
2020-11-13T18:49:33.000Z
2022-03-12T00:54:43.000Z
Other_Python/ThetaGPU_Ray/source/post_analyses.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
5
2019-09-25T23:57:00.000Z
2021-04-18T08:15:34.000Z
import os dir_path = os.path.dirname(os.path.realpath(__file__)) parent_path = os.path.dirname(dir_path) import numpy as np np.random.seed(10) if __name__ == '__main__': print('Analysis module')
40.682635
129
0.6937
import os import xarray as xr dir_path = os.path.dirname(os.path.realpath(__file__)) parent_path = os.path.dirname(dir_path) import numpy as np np.random.seed(10) import matplotlib.pyplot as plt from utils import plot_averaged_errors, plot_windowed_errors, plot_contours, plot_bars def perform_analyses(data_paths,va...
0
0
0
0
0
6,403
0
73
113
fdf60a95ab6ea7e7941b21b1434f1f1f7908eeb0
13,728
py
Python
train_single_scale.py
Mawiszus/World-GAN
0ad21849e284e18c44e7ffede0eefb764e0ff4bb
[ "MIT" ]
41
2021-06-21T03:31:16.000Z
2022-02-17T08:06:07.000Z
train_single_scale.py
codingwatching/World-GAN
0ad21849e284e18c44e7ffede0eefb764e0ff4bb
[ "MIT" ]
1
2021-10-24T02:08:53.000Z
2021-11-14T22:15:40.000Z
train_single_scale.py
codingwatching/World-GAN
0ad21849e284e18c44e7ffede0eefb764e0ff4bb
[ "MIT" ]
1
2021-09-12T08:00:52.000Z
2021-09-12T08:00:52.000Z
import os import subprocess import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from loguru import logger from tqdm import tqdm import numpy as np import wandb from draw_concat import draw_concat from generate_noise import generate_spatial_noise from minecraft.level_utils im...
43.719745
119
0.565487
import os import subprocess import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.nn.functional import interpolate from loguru import logger from tqdm import tqdm import numpy as np import wandb from draw_concat import draw_concat from generate_noise import generate...
0
0
0
0
0
0
0
22
22
5d89df9aec90bf9a7fbbad8609de99387bb74a7a
6,460
py
Python
analysis_vis/scripts/PromisPlotMetrics.py
arubenstein/deep_seq
96c2bc131dc3bd3afb05486bfbc6f7297c57e604
[ "BSD-2-Clause" ]
null
null
null
analysis_vis/scripts/PromisPlotMetrics.py
arubenstein/deep_seq
96c2bc131dc3bd3afb05486bfbc6f7297c57e604
[ "BSD-2-Clause" ]
null
null
null
analysis_vis/scripts/PromisPlotMetrics.py
arubenstein/deep_seq
96c2bc131dc3bd3afb05486bfbc6f7297c57e604
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """Plot all graph metrics as histograms""" import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description=__doc__) parser.add_argument ('--list_nodes', '-d', nargs=2, action='append', help="text file which contains sequences and the label you want to use for th...
44.551724
257
0.680805
#!/usr/bin/env python """Plot all graph metrics as histograms""" import itertools import sys import operator import numpy as np import argparse from general_seq import conv from general_seq import seq_IO from plot import conv as pconv from plot import hist from collections import Counter import matplotlib.pyplot as pl...
0
0
0
0
0
5,482
0
20
341
f5e52d8f8be3ea6b39880e3f6eb0aa7a22e1d02d
5,393
py
Python
qtapp/widgets/C_QNavigator.py
philipdavis82/ModernQt
2708f4227e4d9a6e9f7d3a0987a79a4d34e45b6a
[ "MIT" ]
1
2021-08-11T01:58:27.000Z
2021-08-11T01:58:27.000Z
qtapp/widgets/C_QNavigator.py
philipdavis82/ModernQt
2708f4227e4d9a6e9f7d3a0987a79a4d34e45b6a
[ "MIT" ]
null
null
null
qtapp/widgets/C_QNavigator.py
philipdavis82/ModernQt
2708f4227e4d9a6e9f7d3a0987a79a4d34e45b6a
[ "MIT" ]
null
null
null
# Left side navigator import PyQt5.QtCore as QtCore import PyQt5.QtGui as QtGui import PyQt5.QtWidgets as QtWidgets NAVIGATION_STYLE_SHEET=""" QWidget { color: #1f1f1f; background-color: #1f1f1f; } QPushButton { font-size: 32px; border: none; padding: 0px; font-size: 32px; padding...
30.297753
132
0.656036
# Left side navigator import __global__,os import PyQt5.QtCore as QtCore import PyQt5.QtGui as QtGui import PyQt5.QtWidgets as QtWidgets NAVIGATION_STYLE_SHEET=""" QWidget { color: #1f1f1f; background-color: #1f1f1f; } QPushButton { font-size: 32px; border: none; padding: 0px; font-si...
0
0
0
4,499
0
0
0
-1
91
eca278c2ee6deb3d003508dc2e1fdd4ff13899ae
1,127
py
Python
soco/exceptions.py
Nnamdi/sonos-group-manager
0887031551f47cd27e55a31b0293138f659e703f
[ "MIT" ]
3
2015-08-24T18:34:23.000Z
2017-03-07T11:00:22.000Z
soco/exceptions.py
Nnamdi/sonos-group-manager
0887031551f47cd27e55a31b0293138f659e703f
[ "MIT" ]
null
null
null
soco/exceptions.py
Nnamdi/sonos-group-manager
0887031551f47cd27e55a31b0293138f659e703f
[ "MIT" ]
1
2021-07-18T03:19:07.000Z
2021-07-18T03:19:07.000Z
# -*- coding: utf-8 -*- """ Exceptions that are used by SoCo """
27.487805
79
0.709849
# -*- coding: utf-8 -*- """ Exceptions that are used by SoCo """ class SoCoException(Exception): """ base exception raised by SoCo, containing the UPnP error code """ class UnknownSoCoException(SoCoException): """ raised if reason of the error can not be extracted The exception object will contain the...
0
0
0
941
0
0
0
0
115
a8225798514d9d01e55862c8b25f9000b322d24a
95
py
Python
chia/types/spend_bundle_conditions.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
1
2022-03-22T18:11:52.000Z
2022-03-22T18:11:52.000Z
chia/types/spend_bundle_conditions.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
null
null
null
chia/types/spend_bundle_conditions.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
null
null
null
from chia_rs import Spend, SpendBundleConditions __all__ = ["Spend", "SpendBundleConditions"]
23.75
48
0.8
from chia_rs import Spend, SpendBundleConditions __all__ = ["Spend", "SpendBundleConditions"]
0
0
0
0
0
0
0
0
0
f671136c39d6d927ecbbd01627b9ff662d333587
3,317
py
Python
BioSQL/DBUtils.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
3
2017-10-23T21:53:57.000Z
2019-09-23T05:14:12.000Z
BioSQL/DBUtils.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
null
null
null
BioSQL/DBUtils.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
6
2020-02-26T16:34:20.000Z
2020-03-04T15:34:00.000Z
# Copyright 2002 by Andrew Dalke. All rights reserved. # Revisions 2007-2008 by Peter Cock. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # # Note that BioSQL (including the database schema and scr...
30.154545
77
0.621043
# Copyright 2002 by Andrew Dalke. All rights reserved. # Revisions 2007-2008 by Peter Cock. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # # Note that BioSQL (including the database schema and scr...
0
0
0
2,507
0
101
0
0
139
8619c950c392865b21c93eb16b05442fb12255e2
3,526
py
Python
cloudnetpy/products/product_tools.py
MoLochmann/cloudnetpy
328a54eecc0ce0fe5a3bb2018782c8de19ef7216
[ "MIT" ]
1
2019-12-05T19:59:24.000Z
2019-12-05T19:59:24.000Z
cloudnetpy/products/product_tools.py
KarlJohnsonnn/cloudnetpy
eae2966a515829108899a527b8d34ddff2472124
[ "MIT" ]
null
null
null
cloudnetpy/products/product_tools.py
KarlJohnsonnn/cloudnetpy
eae2966a515829108899a527b8d34ddff2472124
[ "MIT" ]
null
null
null
"""General helper classes and functions for all products.""" import netCDF4 import cloudnetpy.utils as utils def read_nc_fields(nc_file, names): """Reads selected variables from a netCDF file. Args: nc_file (str): netCDF file name. names (str/list): Variables to be read, e.g. 'temperature' ...
34.23301
81
0.637266
"""General helper classes and functions for all products.""" import netCDF4 import cloudnetpy.utils as utils class CategorizeBits: """Class holding information about category and quality bits. Args: categorize_file (str): Categorize file name. Attributes: category_bits (dict): Dictionary...
0
0
0
2,001
0
197
0
0
72
7456be1dd24d12db9457d398933f4ea547e55224
2,380
py
Python
iniesta/config.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
1
2021-03-14T08:27:43.000Z
2021-03-14T08:27:43.000Z
iniesta/config 2.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
1
2020-10-08T08:14:04.000Z
2020-10-08T08:14:04.000Z
iniesta/config.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
null
null
null
from typing import Optional, Dict, List #: The redlock caches INIESTA_CACHES: Dict[str, dict] = { "iniesta1": {"HOST": "localhost", "PORT": 6379, "DATABASE": 1}, "iniesta2": {"HOST": "localhost", "PORT": 6379, "DATABASE": 2}, "iniesta3": {"HOST": "localhost", "PORT": 6379, "DATABASE": 3}, } #: The initial...
36.615385
113
0.764286
from typing import Optional, Dict, List #: The redlock caches INIESTA_CACHES: Dict[str, dict] = { "iniesta1": {"HOST": "localhost", "PORT": 6379, "DATABASE": 1}, "iniesta2": {"HOST": "localhost", "PORT": 6379, "DATABASE": 2}, "iniesta3": {"HOST": "localhost", "PORT": 6379, "DATABASE": 3}, } #: The initial...
0
0
0
0
0
0
0
0
0
fbd7345df2d3f5d20f5e14e99c1c43086d81847e
1,331
py
Python
src/regex/executor.py
avli/nfa-regex
fe9a9817773bfeb36c1069b51fad52e7329361aa
[ "MIT" ]
5
2019-06-24T08:13:53.000Z
2022-01-04T12:41:08.000Z
src/regex/executor.py
avli/nfa-regex
fe9a9817773bfeb36c1069b51fad52e7329361aa
[ "MIT" ]
null
null
null
src/regex/executor.py
avli/nfa-regex
fe9a9817773bfeb36c1069b51fad52e7329361aa
[ "MIT" ]
1
2021-03-10T01:41:47.000Z
2021-03-10T01:41:47.000Z
"""The main API module. """ from __future__ import absolute_import, print_function from .compiler import Match, compile from .tokenizer import to_postfix def match(pattern, s): """Apply a pattern to a string and return the result of the match. :param pattern: A POSIX-like regular expression. :type patt...
26.62
70
0.687453
"""The main API module. """ from __future__ import absolute_import, print_function from .compiler import State, SplitState, Match, compile from .tokenizer import to_postfix def update_states(current_states, state): if state in current_states: return elif isinstance(state, State) or state is Match: ...
0
0
0
0
0
491
0
19
46
db5fb949ccde43873ffc3924ac1e5571fce6f30b
61
py
Python
pymusiclooper/__init__.py
sysnoble/PyMusicLooper
67e0c1d9d6766c5ca390ec0b5824b0d683e5600e
[ "MIT" ]
null
null
null
pymusiclooper/__init__.py
sysnoble/PyMusicLooper
67e0c1d9d6766c5ca390ec0b5824b0d683e5600e
[ "MIT" ]
null
null
null
pymusiclooper/__init__.py
sysnoble/PyMusicLooper
67e0c1d9d6766c5ca390ec0b5824b0d683e5600e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 __version__ = "3.0.0-dev"
12.2
25
0.655738
#!/usr/bin/python3 # coding=utf-8 __version__ = "3.0.0-dev"
0
0
0
0
0
0
0
0
0
baeb6676733dcc0b2aa9f9b5fcee68ba51f62fe5
710
py
Python
main_monte.py
veritaem/RL_udemy
f817be686b85406fbddd961441c4970bf8b05045
[ "MIT" ]
null
null
null
main_monte.py
veritaem/RL_udemy
f817be686b85406fbddd961441c4970bf8b05045
[ "MIT" ]
null
null
null
main_monte.py
veritaem/RL_udemy
f817be686b85406fbddd961441c4970bf8b05045
[ "MIT" ]
null
null
null
import gym from monte_carlo import Agent if __name__=='__main__': env=gym.make("Blackjack-v0") agent=Agent() n_episodes=500000 for i in range(n_episodes): if i%50000==0: print(f'starting episode {i}') observation=env.reset() done=False while not d...
29.583333
63
0.574648
import gym from monte_carlo import Agent if __name__=='__main__': env=gym.make("Blackjack-v0") agent=Agent() n_episodes=500000 for i in range(n_episodes): if i%50000==0: print(f'starting episode {i}') observation=env.reset() done=False while not d...
0
0
0
0
0
0
0
0
0
afb47de2e54683cd32ecb92965e3cbf57e48613c
1,871
py
Python
src/day7.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day7.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day7.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
#!/bin/python3 # Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """Day Seven, Handy Haversacks.""" # I had to postpone this day because I was not aware of the techniques of # graph theory to solve this problem. from sys import argv from re import findall fro...
24.946667
74
0.61411
#!/bin/python3 # Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """Day Seven, Handy Haversacks.""" # I had to postpone this day because I was not aware of the techniques of # graph theory to solve this problem. from sys import argv from re import findall fro...
0
0
0
0
0
0
0
6
0
20afce4036b3521f093a9b82048f9c2a04955401
14,324
py
Python
main.py
Tiamat-Tech/DETReg
cea2cd2db456e502522a04f8cc4f38326c2466de
[ "Apache-2.0" ]
212
2021-06-09T10:32:25.000Z
2022-03-29T07:48:07.000Z
main.py
Tiamat-Tech/DETReg
cea2cd2db456e502522a04f8cc4f38326c2466de
[ "Apache-2.0" ]
34
2021-07-16T11:27:03.000Z
2022-03-25T08:42:16.000Z
main.py
Tiamat-Tech/DETReg
cea2cd2db456e502522a04f8cc4f38326c2466de
[ "Apache-2.0" ]
23
2021-07-28T00:15:28.000Z
2022-03-17T11:35:08.000Z
# ------------------------------------------------------------------------ # Deformable DETR # Copyright (c) 2020 SenseTime. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ # Modified from DETR (ht...
44.073846
150
0.629363
# ------------------------------------------------------------------------ # Deformable DETR # Copyright (c) 2020 SenseTime. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ # Modified from DETR (ht...
0
0
0
0
0
12,780
0
86
378
978d471b17063ea5a74f283f2e45bbf497328a77
2,041
py
Python
tests/Action/test_Conditional.py
aalireza/arep
95f0ec6282c4f5d12462d2a64e82d6777f51bf06
[ "BSD-3-Clause" ]
1
2022-01-14T00:15:26.000Z
2022-01-14T00:15:26.000Z
tests/Action/test_Conditional.py
aalireza/arep
95f0ec6282c4f5d12462d2a64e82d6777f51bf06
[ "BSD-3-Clause" ]
null
null
null
tests/Action/test_Conditional.py
aalireza/arep
95f0ec6282c4f5d12462d2a64e82d6777f51bf06
[ "BSD-3-Clause" ]
null
null
null
from ..utils import results_formatter from functools import partial import os results_formatter = partial(results_formatter, name=os.path.basename(__file__)) results_with_elif = results_formatter({ (2, 0), (13, 0) }) results_with_else = results_formatter({ (2, 0), (11, 5) }) results_is_ifexp = results_forma...
30.462687
79
0.675649
from ..utils import action, results_formatter from functools import partial import arep import pytest import os results_formatter = partial(results_formatter, name=os.path.basename(__file__)) results_with_elif = results_formatter({ (2, 0), (13, 0) }) results_with_else = results_formatter({ (2, 0), (11, 5) })...
0
1,340
0
0
0
0
0
-10
90
9b8af072244e762dbf07841299fca6ff38da8282
740
py
Python
5. Probability and Statistics/probability-fundamentals/Probability Rules-378.py
bibekuchiha/dataquest
c7d8a2966fe2eee864442a59d64309033ea9993e
[ "MIT" ]
null
null
null
5. Probability and Statistics/probability-fundamentals/Probability Rules-378.py
bibekuchiha/dataquest
c7d8a2966fe2eee864442a59d64309033ea9993e
[ "MIT" ]
null
null
null
5. Probability and Statistics/probability-fundamentals/Probability Rules-378.py
bibekuchiha/dataquest
c7d8a2966fe2eee864442a59d64309033ea9993e
[ "MIT" ]
null
null
null
## 1. Sample Space ## coin_toss_omega = {'TH','HT','HH','TT'} ## 2. Probability of Events ## p_sum_6 = 5/ 36 p_lower_15 = 36/ 36 p_greater_13 = 0/ 36 ## 3. Certain and Impossible Events ## p_2_or_4 = 4/ 36 p_12_or_13 = 1/ 36 ## 4. The Addition Rule ## p_5_or_9 = (4/36) + (4/36) p_even_or_less_2 = (18/36) + (0...
14.509804
40
0.645946
## 1. Sample Space ## coin_toss_omega = {'TH','HT','HH','TT'} ## 2. Probability of Events ## p_sum_6 = 5/ 36 p_lower_15 = 36/ 36 p_greater_13 = 0/ 36 ## 3. Certain and Impossible Events ## p_2_or_4 = 4/ 36 p_12_or_13 = 1/ 36 ## 4. The Addition Rule ## p_5_or_9 = (4/36) + (4/36) p_even_or_less_2 = (18/36) + (0...
0
0
0
0
0
0
0
0
0
420dc3cb1fda2bf37b4238763133c898f1af9b53
304
py
Python
Python_OO/NumeroComParametrodeVariavel.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Python_OO/NumeroComParametrodeVariavel.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Python_OO/NumeroComParametrodeVariavel.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Funcao(1,2,3, 'fabio') ''' a utilizao do args serve para poder passa mais de um parametro cqunado declaramos a funo ou uma classe sempre utilizamos * ou ** para transformar em tupla ou dicionario ''' F1(nome ='Fabio',idade=25)
23.384615
106
0.710526
def Funcao(*args): print(args) Funcao(1,2,3, 'fabio') ''' a utilização do args serve para poder passa mais de um parametro cqunado declaramos a função ou uma classe sempre utilizamos * ou ** para transformar em tupla ou dicionario ''' def F1(**Kwargs): print(Kwargs) F1(nome ='Fabio',idade=25)
8
0
0
0
0
27
0
0
44
fdcb49336a1fb5846df01b552975c21502fd5069
8,426
py
Python
src/cowrie/output/omniscidb.py
Zeerg/cowrie
27c5c416e52b87bfa7d4c75ec8fbbe08203f5949
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/output/omniscidb.py
Zeerg/cowrie
27c5c416e52b87bfa7d4c75ec8fbbe08203f5949
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/output/omniscidb.py
Zeerg/cowrie
27c5c416e52b87bfa7d4c75ec8fbbe08203f5949
[ "BSD-3-Clause" ]
null
null
null
# A simple logger to export events to omnisci from __future__ import absolute_import, division
38.474886
76
0.559221
# A simple logger to export events to omnisci from __future__ import absolute_import, division import geoip2.database import pymapd as pmd from twisted.python import log import cowrie.core.output from cowrie.core.config import CowrieConfig class CowrieOutput(): def __init__(self): self.session = None...
0
0
0
8,133
0
0
0
35
160
b2db234b1ac27dbf2278c75c63c341c886c4d51a
738
py
Python
scripts/fun/whatsapp_simple_stats.py
oxalorg/dotfiles
f49258abcc1dbc17fbb5fb9548863fce75779a17
[ "MIT" ]
13
2016-12-07T23:35:02.000Z
2021-05-18T14:48:46.000Z
scripts/fun/whatsapp_simple_stats.py
oxalorg/dotfiles
f49258abcc1dbc17fbb5fb9548863fce75779a17
[ "MIT" ]
2
2017-08-15T16:29:24.000Z
2020-04-10T06:36:19.000Z
scripts/fun/whatsapp_simple_stats.py
oxalorg/dotfiles
f49258abcc1dbc17fbb5fb9548863fce75779a17
[ "MIT" ]
5
2017-01-23T22:36:44.000Z
2021-11-02T20:44:45.000Z
import datetime import sys date_start = datetime.date(2015, 10, 5) date_end = datetime.date(2016, 2, 8) date_delta = datetime.timedelta(days=1) whatsapp_file = sys.argv[1] with open(whatsapp_file, 'r') as fp: lines = fp.readlines() day_count = {} while date_start <= date_end: date_start += date_delta d...
21.085714
61
0.673442
import datetime import sys import pprint date_start = datetime.date(2015, 10, 5) date_end = datetime.date(2016, 2, 8) date_delta = datetime.timedelta(days=1) whatsapp_file = sys.argv[1] with open(whatsapp_file, 'r') as fp: lines = fp.readlines() day_count = {} while date_start <= date_end: date_start += da...
0
0
0
0
0
0
0
-8
22
7cbad9a991b60892e16f0c92b20f36073fe23c15
1,300
py
Python
lecture3/tests/question-3_4.py
ggorman/Introduction-Python-programming-2018
739b864c1499ccdbf9010d8fe774087a07bb09ee
[ "CC-BY-3.0" ]
1
2019-01-12T12:43:24.000Z
2019-01-12T12:43:24.000Z
lecture3/tests/question-3_4.py
ggorman/Introduction-Python-programming-2018
739b864c1499ccdbf9010d8fe774087a07bb09ee
[ "CC-BY-3.0" ]
null
null
null
lecture3/tests/question-3_4.py
ggorman/Introduction-Python-programming-2018
739b864c1499ccdbf9010d8fe774087a07bb09ee
[ "CC-BY-3.0" ]
3
2019-05-16T21:08:48.000Z
2022-02-21T06:54:57.000Z
test = { 'name': 'question 3.4', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> type(my_factorial) == types.FunctionType True """, 'hidden': False, 'locked': False }, { 'code': r""" >>> len(...
20.634921
98
0.372308
test = { 'name': 'question 3.4', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> type(my_factorial) == types.FunctionType True """, 'hidden': False, 'locked': False }, { 'code': r""" >>> len(...
0
0
0
0
0
0
0
0
0
424afe2b1d98716108c7d7f1fc4d8683ffc2df68
187
py
Python
poolink_backend/apps/link/urls.py
jaethewiederholen/Poolink_backend
3a1b28856bc8916aedb7735de8b64fef3269ef1b
[ "MIT" ]
null
null
null
poolink_backend/apps/link/urls.py
jaethewiederholen/Poolink_backend
3a1b28856bc8916aedb7735de8b64fef3269ef1b
[ "MIT" ]
null
null
null
poolink_backend/apps/link/urls.py
jaethewiederholen/Poolink_backend
3a1b28856bc8916aedb7735de8b64fef3269ef1b
[ "MIT" ]
null
null
null
from django.urls import path from .api.views import link_search_view, link_view app_name = "links" urlpatterns = [ path("", view=link_view), path("search", link_search_view), ]
18.7
50
0.716578
from django.urls import path from .api.views import link_search_view, link_view app_name = "links" urlpatterns = [ path("", view=link_view), path("search", link_search_view), ]
0
0
0
0
0
0
0
0
0
e7cae6339bd56a0e07e9bbfd5eb98c5d42b8a782
1,426
py
Python
Winpy/CaptchaDataset.py
Soapy-Salted-Fish-King/captcha_break
96abe0a443db9d9bb81563f0fb894687cf88f0dd
[ "MIT" ]
2,486
2017-03-29T16:48:25.000Z
2022-03-31T17:31:25.000Z
Winpy/CaptchaDataset.py
Soapy-Salted-Fish-King/captcha_break
96abe0a443db9d9bb81563f0fb894687cf88f0dd
[ "MIT" ]
67
2017-04-01T03:30:20.000Z
2022-03-08T14:12:03.000Z
Winpy/CaptchaDataset.py
Soapy-Salted-Fish-King/captcha_break
96abe0a443db9d9bb81563f0fb894687cf88f0dd
[ "MIT" ]
706
2017-03-30T01:22:34.000Z
2022-03-28T16:16:27.000Z
import torch.nn as nn
41.941176
101
0.701964
import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader from torchvision.transforms.functional import to_tensor, to_pil_image from captcha.image import ImageCaptcha from tqdm import tqdm import random import numpy as np from collections import Order...
0
0
0
1,075
0
0
0
96
233
9674fbb105b7e5ebdf80a78a0ed10c1b5a8f04fa
2,327
py
Python
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlCosmicsInCollisions_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlCosmicsInCollisions_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlCosmicsInCollisions_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# Author : Andreas Mussgiller # Date : July 1st, 2010 # last update: $Date: 2010/03/17 18:17:34 $ by $Author: mussgill $ import FWCore.ParameterSet.Config as cms #_________________________________HLT bits___________________________________________ import HLTrigger.HLTfilters.hltHighLevel_cfi ALCARECOTkAlCos...
41.553571
176
0.762355
# Author : Andreas Mussgiller # Date : July 1st, 2010 # last update: $Date: 2010/03/17 18:17:34 $ by $Author: mussgill $ import FWCore.ParameterSet.Config as cms #_________________________________HLT bits___________________________________________ import HLTrigger.HLTfilters.hltHighLevel_cfi ALCARECOTkAlCos...
0
0
0
0
0
0
0
39
22
718e53e07458ffd516f7910c2e12d5132f259d55
8,462
py
Python
argoverse/evaluation/eval_tracking.py
MengshiLi/argoverse-api
52d6947ab79a3c24a2cf9747cb16284237625d47
[ "MIT" ]
null
null
null
argoverse/evaluation/eval_tracking.py
MengshiLi/argoverse-api
52d6947ab79a3c24a2cf9747cb16284237625d47
[ "MIT" ]
null
null
null
argoverse/evaluation/eval_tracking.py
MengshiLi/argoverse-api
52d6947ab79a3c24a2cf9747cb16284237625d47
[ "MIT" ]
1
2020-07-14T13:49:14.000Z
2020-07-14T13:49:14.000Z
# <Copyright 2019, Argo AI, LLC. Released under the MIT license.> import argparse import glob import logging import os import pathlib from typing import Any, Dict, List, TextIO, Union import motmetrics as mm import numpy as np from argoverse.evaluation.eval_utils import get_pc_inside_bbox, label_to_bbox, leave_only_r...
34.259109
120
0.627629
# <Copyright 2019, Argo AI, LLC. Released under the MIT license.> import argparse import glob import json import logging import os import pathlib from typing import Any, Dict, List, TextIO, Union import motmetrics as mm import numpy as np from argoverse.evaluation.eval_utils import get_pc_inside_bbox, label_to_bbox, ...
0
0
0
0
0
0
0
-10
22
99f394f8217046df0046db4afd0ebf860c353a3a
441
py
Python
targets/test_router/rec_pkt.py
liusheng198933/behavioral-model
c713879458e4d97266ba36ea1c18475490e8382d
[ "Apache-2.0" ]
null
null
null
targets/test_router/rec_pkt.py
liusheng198933/behavioral-model
c713879458e4d97266ba36ea1c18475490e8382d
[ "Apache-2.0" ]
null
null
null
targets/test_router/rec_pkt.py
liusheng198933/behavioral-model
c713879458e4d97266ba36ea1c18475490e8382d
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
20.045455
46
0.605442
from scapy.all import sniff, sendp import struct import sys def handle_pkt(pkt): pkt = str(pkt) preamble = pkt[:8] preamble_exp = "\x00" * 8 if preamble != preamble_exp: return pktTMP = struct.unpack("!I", pkt[8:12])[0] msg = pkt[66:len(pkt)] print pktTMP print msg sys.stdout.flush(...
0
0
0
0
0
296
0
-6
112
69204edc1381caa9d326ae4e310094b1c4177b34
1,181
py
Python
esmvalcore/preprocessor/_derive/xco2.py
markelg/ESMValCore
b2f7ffc3232f174dd5ebc50ad20b4a02d3517c2c
[ "Apache-2.0" ]
26
2019-06-07T07:50:07.000Z
2022-03-22T21:04:01.000Z
esmvalcore/preprocessor/_derive/xco2.py
markelg/ESMValCore
b2f7ffc3232f174dd5ebc50ad20b4a02d3517c2c
[ "Apache-2.0" ]
1,370
2019-06-06T09:03:07.000Z
2022-03-31T04:37:20.000Z
esmvalcore/preprocessor/_derive/xco2.py
zklaus/ESMValCore
5656fb8b546eeb4d750a424de7ed56a237edfabb
[ "Apache-2.0" ]
26
2019-07-03T13:08:48.000Z
2022-03-02T16:08:47.000Z
"""Derivation of variable ``xco2``."""
31.078947
77
0.645216
"""Derivation of variable ``xco2``.""" from iris import Constraint from ._baseclass import DerivedVariableBase from ._shared import column_average class DerivedVariable(DerivedVariableBase): """Derivation of variable ``xco2``.""" @staticmethod def required(project): """Declare the variables nee...
0
889
0
119
0
0
0
42
91
56d16a3329cb464251701a96d5087b3a275d954a
264
py
Python
art/_yaml.py
kosma/art
2947e8f170139b8c4d2378a1a3e86c13548a57d1
[ "WTFPL" ]
9
2017-07-30T21:45:24.000Z
2020-04-01T16:31:12.000Z
art/_yaml.py
ellisto/gitlab-art
2947e8f170139b8c4d2378a1a3e86c13548a57d1
[ "WTFPL" ]
15
2020-04-07T08:57:06.000Z
2020-07-02T17:50:44.000Z
art/_yaml.py
kosma/art
2947e8f170139b8c4d2378a1a3e86c13548a57d1
[ "WTFPL" ]
3
2018-01-08T17:20:57.000Z
2020-03-31T00:07:00.000Z
# -*- coding: utf-8 -*-
18.857143
68
0.640152
# -*- coding: utf-8 -*- import yaml def load(path): with open(path, 'r') as stream: return yaml.safe_load(stream=stream) def save(path, obj): with open(path, 'w') as stream: yaml.safe_dump(obj, stream=stream, default_flow_style=False)
0
0
0
0
0
179
0
-10
69
cbbeeaeaf2df763f524eea85585bb316de69a79d
3,331
py
Python
examples/blacklist.py
Leechael/flask-jwt-extended
aff5175ab65d4fa12b58f2b46c83c1cbfb13cca6
[ "MIT" ]
null
null
null
examples/blacklist.py
Leechael/flask-jwt-extended
aff5175ab65d4fa12b58f2b46c83c1cbfb13cca6
[ "MIT" ]
1
2021-03-25T22:35:35.000Z
2021-03-25T22:35:35.000Z
examples/blacklist.py
caser789/flask-jwt
4b06a20799f5bee237763add3af5b80c79ac684f
[ "MIT" ]
1
2021-05-13T18:15:55.000Z
2021-05-13T18:15:55.000Z
from datetime import timedelta import simplekv import simplekv.memory from flask import Flask from flask_jwt_extended import JWTManager # Setup flask app = Flask(__name__) app.secret_key = 'super-secret' # Configure access token expires time app.config['JWT_ACCESS_TOKEN_EXPIRES'] = timedelta(minutes=5) # Enable an...
31.424528
82
0.710597
from datetime import timedelta import simplekv import simplekv.memory from flask import Flask, request, jsonify from flask_jwt_extended import JWTManager, jwt_required, \ get_jwt_identity, revoke_token, unrevoke_token, \ get_stored_tokens, get_all_stored_tokens, create_access_token, \ create_refresh_token...
0
1,824
0
0
0
0
0
229
158
7d6f0cea619c754982d40159fba61994c36df25d
45
py
Python
new.py
debriv/pweb1
43087f3d36ed821e35b26f176380de8c0fe3c517
[ "Apache-2.0" ]
null
null
null
new.py
debriv/pweb1
43087f3d36ed821e35b26f176380de8c0fe3c517
[ "Apache-2.0" ]
null
null
null
new.py
debriv/pweb1
43087f3d36ed821e35b26f176380de8c0fe3c517
[ "Apache-2.0" ]
null
null
null
n = input( "Name: ") print(f"My name is {n}")
22.5
24
0.555556
n = input( "Name: ") print(f"My name is {n}")
0
0
0
0
0
0
0
0
0
cf7c86a00dd6af622a50f8e0c3b25e86ae1a5b41
14,837
py
Python
tests/input/field_types/test_field_type_string.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tests/input/field_types/test_field_type_string.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tests/input/field_types/test_field_type_string.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""Testing TcEx Input module field types.""" # standard library from typing import TYPE_CHECKING # third-party # first-party if TYPE_CHECKING: # first-party # pylint: disable=no-self-argument, no-self-use
32.395197
98
0.497405
"""Testing TcEx Input module field types.""" # standard library from typing import TYPE_CHECKING, Dict, List, Optional, Union # third-party import pytest from pydantic import BaseModel, validator # first-party from tcex.input.field_types import String, always_array, conditional_required, string from tcex.pleb.scoped_...
0
13,977
0
308
0
0
0
180
158
a3cff8a63dce741ea09295246519053f01984fb9
1,309
py
Python
testweet/listFiltereddirectMessages.py
fuzzyhandle/pihangout
9382a9bde92d753d52584d99e2e52987d504da54
[ "MIT" ]
null
null
null
testweet/listFiltereddirectMessages.py
fuzzyhandle/pihangout
9382a9bde92d753d52584d99e2e52987d504da54
[ "MIT" ]
null
null
null
testweet/listFiltereddirectMessages.py
fuzzyhandle/pihangout
9382a9bde92d753d52584d99e2e52987d504da54
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function from datetime import datetime if __name__ == '__main__': starttime = datetime.now() api = getTwitterAPIHandle() myid = api.me().id #Get Default number of recent tweets dm = api.direct_messages() #print (dm) filters= (filter_for_author,) ...
24.240741
82
0.722689
from __future__ import absolute_import, print_function from datetime import datetime import json import urllib import time from pprint import pprint from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream from tweepy import API from itertools import ifilter ...
0
0
0
0
0
565
0
21
305
ec1e47db5f2ec0dc6381106a7822899e4b8a3ca3
1,033
py
Python
lib/model/hough_voting/modules/hough_voting.py
mrlooi/Detectron.pytorch
e1bde064b763de1428c7494b86a365baff4fa1d4
[ "MIT" ]
null
null
null
lib/model/hough_voting/modules/hough_voting.py
mrlooi/Detectron.pytorch
e1bde064b763de1428c7494b86a365baff4fa1d4
[ "MIT" ]
null
null
null
lib/model/hough_voting/modules/hough_voting.py
mrlooi/Detectron.pytorch
e1bde064b763de1428c7494b86a365baff4fa1d4
[ "MIT" ]
null
null
null
# from functions.hough_voting import HoughVotingFunction
49.190476
148
0.762827
from torch.nn.modules.module import Module from ..functions.hough_voting import HoughVotingFunction # from functions.hough_voting import HoughVotingFunction class HoughVoting(Module): def __init__(self, num_classes, threshold_vote, threshold_percentage, label_threshold=500, inlier_threshold=0.9, skip_pixels=1, is_...
0
0
0
853
0
0
0
56
67
c6353098091af6c161147e9ff1d4891704d585f8
3,118
py
Python
trading_strategy_test.py
alfredholmes/shortterm_rnn
fe79423db80400a1d663af6f35f46b3802cbdb30
[ "MIT" ]
null
null
null
trading_strategy_test.py
alfredholmes/shortterm_rnn
fe79423db80400a1d663af6f35f46b3802cbdb30
[ "MIT" ]
null
null
null
trading_strategy_test.py
alfredholmes/shortterm_rnn
fe79423db80400a1d663af6f35f46b3802cbdb30
[ "MIT" ]
null
null
null
#get the price and volume data from file if __name__ == '__main__': main()
35.033708
176
0.614817
import rnn import csv, random from functions import * #get the price and volume data from file def main(): scale = 3 inputs = 168 forcaster = rnn.TimeSeriesForcaster('forcaster', inputs, 2, 2, 0.001) forcaster.restore() daily = get_price_volume_data('hourly_btc.csv', 1, 2) #split daily data...
0
0
0
0
0
2,958
0
-12
91
0e517074ab184506d992b2d3ed97bbce9eab6677
4,053
py
Python
machine_learning/torch_anomaly_detection/src/data/celeba.py
iimuz/til
b100438e8ce2f369331b3be215a4b9cdce9ffda5
[ "MIT" ]
4
2020-07-25T01:20:08.000Z
2020-10-03T12:58:15.000Z
machine_learning/torch_anomaly_detection/src/data/celeba.py
iimuz/til
b100438e8ce2f369331b3be215a4b9cdce9ffda5
[ "MIT" ]
29
2019-09-30T08:04:14.000Z
2022-03-12T13:51:08.000Z
machine_learning/torch_anomaly_detection/src/data/celeba.py
iimuz/til
b100438e8ce2f369331b3be215a4b9cdce9ffda5
[ "MIT" ]
1
2020-08-14T05:15:51.000Z
2020-08-14T05:15:51.000Z
"""CelebA Dataset. Notes: - `http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html` """ # default packages import logging import pathlib import typing as t # third party packages import requests import tqdm as tqdm_std # my packages import src.data.dataset as dataset import src.data.utils as ut # logger _logger = lo...
29.158273
83
0.630891
"""CelebA Dataset. Notes: - `http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html` """ # default packages import logging import pathlib import shutil import typing as t import zipfile # third party packages import pandas as pd import requests import tqdm as tqdm_std # my packages import src.data.dataset as dataset i...
432
0
0
1,739
0
0
0
-17
89
5632ee42701d1fcbabc80e7abde275ccc5f6d2d1
206
py
Python
Desafios/desafio-03.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
Desafios/desafio-03.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
Desafios/desafio-03.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
# Aula 6 - Desafio 3: Somando dois numeros num1 = int(input('1 numero: ')) num2 = int(input('2 numero: ')) soma = (num1 + num2) print(f'A soma entre {num1} e {num2} eh igual a \033[7;33m{soma}\033[m')
22.888889
72
0.635922
# Aula 6 - Desafio 3: Somando dois numeros num1 = int(input('1º numero: ')) num2 = int(input('2º numero: ')) soma = (num1 + num2) print(f'A soma entre {num1} e {num2} eh igual a \033[7;33m{soma}\033[m')
4
0
0
0
0
0
0
0
0
b6029e5c3de03586995e695f33d08198c6b3bcec
4,639
py
Python
equilibrium-propagation/numpy_one_layer.py
jiangdaniel/dl-papers
ca85708b5629dc1ba22ec1dfc023d3a6267b0d34
[ "MIT" ]
1
2019-03-26T12:19:59.000Z
2019-03-26T12:19:59.000Z
equilibrium-propagation/numpy_one_layer.py
jiangdaniel/ml-implementations
ca85708b5629dc1ba22ec1dfc023d3a6267b0d34
[ "MIT" ]
5
2018-11-26T05:48:52.000Z
2018-11-26T05:50:45.000Z
equilibrium-propagation/numpy_one_layer.py
jiangdaniel/ml-implementations
ca85708b5629dc1ba22ec1dfc023d3a6267b0d34
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--epochs", type=int, default=1000) parser.add_argument("--batch-size", t...
36.527559
117
0.538047
#!/usr/bin/env python3 from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import numpy as np import torch as th import torchvision from tqdm import tqdm def main(args): trainloader, testloader = get_loaders(args.batch_size, args.fashion)...
0
0
0
0
0
4,006
0
-9
181
00dab43f15c3b886433951b60f7cd8a4dda65920
995
py
Python
tests/test_stdout_stderr.py
MisanthropicBit/colorise
c7a7e3d4b224e80f39761edfc10e5676b610ba41
[ "BSD-3-Clause" ]
2
2016-02-07T19:58:46.000Z
2022-03-28T12:26:57.000Z
tests/test_stdout_stderr.py
MisanthropicBit/colorise
c7a7e3d4b224e80f39761edfc10e5676b610ba41
[ "BSD-3-Clause" ]
5
2018-05-25T04:36:11.000Z
2021-01-18T19:08:04.000Z
tests/test_stdout_stderr.py
MisanthropicBit/colorise
c7a7e3d4b224e80f39761edfc10e5676b610ba41
[ "BSD-3-Clause" ]
2
2018-03-04T21:57:03.000Z
2022-03-28T12:25:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Test writing to stdout and stderr."""
26.184211
77
0.635176
#!/usr/bin/env python # -*- coding: utf-8 -*- """Test writing to stdout and stderr.""" import os import sys import pytest import colorise @pytest.mark.skip_on_windows def test_stdout_stderr(redirect): with redirect('stdout') as stdout: colorise.cprint('Hello', fg='red', file=sys.stderr) asser...
0
679
0
0
0
126
0
-37
137
4ac117a2732d98a9b33699c194bf06fe8aa8fc28
14,896
py
Python
common/trainers/bert_trainer.py
marjanhs/procon20
c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b
[ "MIT" ]
5
2020-07-12T08:27:47.000Z
2021-10-16T11:40:48.000Z
common/trainers/bert_trainer.py
marjanhs/procon20
c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b
[ "MIT" ]
null
null
null
common/trainers/bert_trainer.py
marjanhs/procon20
c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b
[ "MIT" ]
1
2021-04-12T09:54:37.000Z
2021-04-12T09:54:37.000Z
import matplotlib.pyplot as plt from matplotlib.lines import Line2D import numpy as np def plot_grad_flow(named_parameters): '''Plots the gradients flowing through different layers in the net during training. Can be used for checking for possible gradient vanishing / exploding problems. Usage: Plug thi...
46.55
188
0.637755
import datetime import os import torch import torch.nn.functional as F from torch.utils.data import DataLoader, RandomSampler, TensorDataset from torch.utils.data.distributed import DistributedSampler from tqdm import tqdm from tqdm import trange from common.evaluators.bert_evaluator import BertEvaluator from dataset...
0
0
0
12,734
0
0
0
323
355
e3e23e7da12594d400ab1a9586a233be2c2e5204
10,834
py
Python
check_elasticstack.py
icefish-creativ/check_elastic-stack
7aad8dcbcff0291d8cb6bb64b2bab72feb9cd214
[ "Apache-2.0" ]
null
null
null
check_elasticstack.py
icefish-creativ/check_elastic-stack
7aad8dcbcff0291d8cb6bb64b2bab72feb9cd214
[ "Apache-2.0" ]
null
null
null
check_elasticstack.py
icefish-creativ/check_elastic-stack
7aad8dcbcff0291d8cb6bb64b2bab72feb9cd214
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # noris network AG 2020 # Tim Zllner __date__ = '2020-06-22' __version__ = '0.4.2' #from docopt import docopt import sys from datetime import datetime # check elasticsearch module try: from elasticsearch import Elasticsearch except ImportError as missing: print ( ...
25.313084
122
0.555012
#!/usr/bin/env python # -*- coding: utf-8 -*- # noris network AG 2020 # Tim Zöllner __date__ = '2020-06-22' __version__ = '0.4.2' #from docopt import docopt import argparse import sys import ssl import json import requests from requests.auth import HTTPBasicAuth from datetime import datetime # check elasticsearch modu...
2
0
0
0
0
6,909
0
120
389
4c3b6b4167ba28cc061c2c1060cef6caaa82766e
8,930
py
Python
sed2tau/plot_data.py
masato1122/md2tau
cd9998f1da13887cbc39e70224ffed5a86fc8c11
[ "MIT" ]
3
2021-12-19T02:24:15.000Z
2022-01-09T23:40:49.000Z
sed2tau/plot_data.py
masato1122/md2tau
cd9998f1da13887cbc39e70224ffed5a86fc8c11
[ "MIT" ]
null
null
null
sed2tau/plot_data.py
masato1122/md2tau
cd9998f1da13887cbc39e70224ffed5a86fc8c11
[ "MIT" ]
3
2021-12-18T08:02:15.000Z
2021-12-27T22:55:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #--- for matplotlib import matplotlib matplotlib.use('Agg') #import seaborn as sns #------------------------- NUM_MULTIPLE = 5 NUM_SECTION = 500 #------------------------- #--- plot data #--- plot data with Lorentzian function
29.183007
98
0.53617
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys import numpy as np #--- for matplotlib import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.ticker as tick from matplotlib import cm #import seaborn as sns def bubble_sort_down_ID(array): n = len(array) ID = np.a...
0
0
0
0
0
8,342
0
15
292
1265adf15844bd9340b23f8ce9cab3e09814f72a
170
py
Python
extensions/python/qrgen/setup.py
tungdev1209/iOS_CI_Utils
a0ce44b3fd07010721cec8cad4ee43ebe073fcf4
[ "MIT" ]
63
2019-01-27T11:00:30.000Z
2019-02-01T12:55:11.000Z
extensions/python/qrgen/setup.py
tungdev1209/iOS_CI_Utils
a0ce44b3fd07010721cec8cad4ee43ebe073fcf4
[ "MIT" ]
null
null
null
extensions/python/qrgen/setup.py
tungdev1209/iOS_CI_Utils
a0ce44b3fd07010721cec8cad4ee43ebe073fcf4
[ "MIT" ]
27
2019-01-27T09:56:33.000Z
2019-01-30T06:53:43.000Z
from setuptools import setup setup( name='qrgen', version='0.0.1', entry_points={ 'console_scripts': [ 'qrgen=qrgen:run' ] } )
17
29
0.523529
from setuptools import setup setup( name='qrgen', version='0.0.1', entry_points={ 'console_scripts': [ 'qrgen=qrgen:run' ] } )
0
0
0
0
0
0
0
0
0
dc0d12496a24a44ef0af787953cc533b35adbd1e
5,062
py
Python
exile/migrations/0001_initial.py
exildev/webpage
0d545bd295f17e97f5c296939bc73e177e83ac55
[ "MIT" ]
null
null
null
exile/migrations/0001_initial.py
exildev/webpage
0d545bd295f17e97f5c296939bc73e177e83ac55
[ "MIT" ]
null
null
null
exile/migrations/0001_initial.py
exildev/webpage
0d545bd295f17e97f5c296939bc73e177e83ac55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-14 22:38 from __future__ import unicode_literals
39.24031
154
0.536942
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-14 22:38 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
0
0
0
4,850
0
0
0
30
68
725c4ff3713f6ec63c248cb9d509fa4ef3f2fc51
5,418
py
Python
switch_model/hawaii/fuel_markets_expansion.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
switch_model/hawaii/fuel_markets_expansion.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
switch_model/hawaii/fuel_markets_expansion.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# For large systems, each fuel market tier is a category of capacity expansion, and # it can be built fractionally. For small systems, each fuel market tier is one # capacity-expansion project, and it must be fully built and/or activated each period. # To do this, we add binary variables and confine additions and acti...
51.6
138
0.684755
# For large systems, each fuel market tier is a category of capacity expansion, and # it can be built fractionally. For small systems, each fuel market tier is one # capacity-expansion project, and it must be fully built and/or activated each period. # To do this, we add binary variables and confine additions and acti...
0
0
0
0
0
4,576
0
-6
91
35b986ad00605141edcdf85fe76d44b9e67a9062
4,384
py
Python
pyntpg/dataset_tabs/file_picker.py
5tefan/py-netcdf-timeseries-gui
47a46c576eef51e7b840b1cd48f58fc508b6beda
[ "MIT" ]
null
null
null
pyntpg/dataset_tabs/file_picker.py
5tefan/py-netcdf-timeseries-gui
47a46c576eef51e7b840b1cd48f58fc508b6beda
[ "MIT" ]
5
2019-03-14T20:22:45.000Z
2021-03-11T20:14:52.000Z
pyntpg/dataset_tabs/file_picker.py
5tefan/py-netcdf-timeseries-gui
47a46c576eef51e7b840b1cd48f58fc508b6beda
[ "MIT" ]
null
null
null
# For testing individual widget if __name__ == "__main__": import sys from PyQt5.QtWidgets import QApplication app = QApplication(sys.argv) main = FilePicker() main.show() exit(app.exec_())
44.282828
115
0.683622
from PyQt5.QtCore import pyqtSignal, Qt, QSize from PyQt5.QtWidgets import QLabel, QListWidget, QListWidgetItem, QFileDialog from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QStyle, QSizePolicy, QPushButton, QAbstractItemView class FilePicker(QWidget): selected_files = pyqtSignal(list) def __in...
0
0
0
3,902
0
0
0
174
89
72de97fcc221369113f3d1d8e8942f5c5862693c
977
py
Python
utils/callbacks.py
lukasgd/cosmoflow-benchmark
2823a308c80827b900214acfe48275858ea4d2c4
[ "BSD-3-Clause-LBNL" ]
null
null
null
utils/callbacks.py
lukasgd/cosmoflow-benchmark
2823a308c80827b900214acfe48275858ea4d2c4
[ "BSD-3-Clause-LBNL" ]
null
null
null
utils/callbacks.py
lukasgd/cosmoflow-benchmark
2823a308c80827b900214acfe48275858ea4d2c4
[ "BSD-3-Clause-LBNL" ]
1
2020-12-15T10:24:13.000Z
2020-12-15T10:24:13.000Z
""" This module contains some utility callbacks for Keras training. """ # System # Externals #class LearningRateScheduleCallback(tf.keras.callbacks.Callback): # def __init__(self, multiplier, # start_epoch=0, end_epoch=None, # momentum_correction=True): # super().__init__() ...
28.735294
65
0.653019
""" This module contains some utility callbacks for Keras training. """ # System from time import time # Externals import tensorflow as tf class TimingCallback(tf.keras.callbacks.Callback): """A Keras Callback which records the time of each epoch""" def __init__(self): self.times = [] def on...
0
0
0
386
0
0
0
2
67
809b104103fa2d4ee3d5206465c5502fd81164e3
285
py
Python
twisted/plugins/otter_metrics.py
codebyravi/otter
d58077ba4af24a586ae0a0becaf6da96b716a597
[ "Apache-2.0" ]
20
2015-02-11T16:32:07.000Z
2019-11-12T03:27:54.000Z
twisted/plugins/otter_metrics.py
codebyravi/otter
d58077ba4af24a586ae0a0becaf6da96b716a597
[ "Apache-2.0" ]
1,145
2015-01-01T00:00:47.000Z
2022-02-11T03:40:39.000Z
twisted/plugins/otter_metrics.py
codebyravi/otter
d58077ba4af24a586ae0a0becaf6da96b716a597
[ "Apache-2.0" ]
29
2015-01-08T15:00:11.000Z
2021-02-16T16:33:53.000Z
""" Otter twisted application plugins for the various services. """ from twisted.application.service import ServiceMaker OtterMetrics = ServiceMaker( "Otter Metrics Collector", "otter.metrics", "Collects metrics for a region on an interval basis", "otter-metrics" )
20.357143
59
0.733333
""" Otter twisted application plugins for the various services. """ from twisted.application.service import ServiceMaker OtterMetrics = ServiceMaker( "Otter Metrics Collector", "otter.metrics", "Collects metrics for a region on an interval basis", "otter-metrics" )
0
0
0
0
0
0
0
0
0
e0cc409326c892b874fc79ca394dfd56968e25c0
4,065
py
Python
anpcp/utils.py
netotz/alpha-neighbor-p-center-problem
9ebe2718b749dcfc07884063bc118734457e36a9
[ "MIT" ]
2
2021-06-26T22:16:37.000Z
2022-02-04T16:44:38.000Z
anpcp/utils.py
netotz/alpha-neighbor-p-center-problem
9ebe2718b749dcfc07884063bc118734457e36a9
[ "MIT" ]
11
2021-08-31T15:09:28.000Z
2022-03-26T06:55:25.000Z
anpcp/utils.py
netotz/alpha-neighbor-p-center-problem
9ebe2718b749dcfc07884063bc118734457e36a9
[ "MIT" ]
null
null
null
import timeit from typing import Any, Iterable, Mapping, Callable, Optional, Set from models.solver import Solver import pandas as pd def get_stats_df( solvers: Iterable[Solver], constructive: Optional[Callable[..., Set[int]]], local_search: Callable[..., Set[int]], a...
29.671533
111
0.534563
import timeit from typing import Any, Dict, Iterable, Mapping, Callable, Optional, Set from models.solver import Solver import pandas as pd def get_stats_df( solvers: Iterable[Solver], constructive: Optional[Callable[..., Set[int]]], local_search: Callable[..., Set[int]], ...
0
0
0
0
0
598
0
6
23
d9419561cd99d1600af603d6ded1ba6a38df456a
934
py
Python
server/app/utils/jwt.py
SheetWithoutShit/sws-server
16b7154188f08b33f84d88caea217673cf989b2b
[ "MIT" ]
null
null
null
server/app/utils/jwt.py
SheetWithoutShit/sws-server
16b7154188f08b33f84d88caea217673cf989b2b
[ "MIT" ]
57
2020-08-01T14:58:59.000Z
2020-09-20T13:27:16.000Z
server/app/utils/jwt.py
SpentlessInc/spentless-server
16b7154188f08b33f84d88caea217673cf989b2b
[ "MIT" ]
null
null
null
"""This module provides helper functionality with JWT.""" from datetime import datetime import jwt from app.utils.errors import TokenError def generate_token(secret_key, private_claims=None, exp_days=None): """Return encoded json web token.""" token_exp = None now = int(datetime.now().timestamp()) ...
26.685714
67
0.679872
"""This module provides helper functionality with JWT.""" from datetime import datetime import jwt from app.utils.errors import TokenError def generate_token(secret_key, private_claims=None, exp_days=None): """Return encoded json web token.""" token_exp = None now = int(datetime.now().timestamp()) ...
0
0
0
0
0
0
0
0
0
77f18ed4256f973128a7f7ad9247e1d005ef8599
8,409
py
Python
lib/redfin/api.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
206
2015-10-15T07:05:08.000Z
2021-02-19T11:48:36.000Z
lib/redfin/api.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
8
2017-10-16T10:18:31.000Z
2022-03-09T14:24:27.000Z
lib/redfin/api.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
61
2015-10-15T08:12:44.000Z
2022-03-10T12:25:06.000Z
# Python Standard Library Imports # Third Party (PyPI) Imports # HTK Imports
43.123077
974
0.609704
# Python Standard Library Imports import json # Third Party (PyPI) Imports import requests import rollbar # HTK Imports from htk.lib.redfin.constants import * from htk.utils.urls import build_url_with_query_params class RedfinAPI(object): def __init__(self): pass def _get_api_request(self, endpoint...
0
0
0
8,146
0
0
0
27
156
bbda6963b4d42582470130a18342ad45b6a14d72
3,048
py
Python
gen_fp.py
PatWalters/faiss_kmeans
07cd8d1d0745e4232758c613fc8900c08b4f1ae2
[ "MIT" ]
4
2020-02-03T03:13:05.000Z
2020-12-05T14:27:24.000Z
gen_fp.py
PatWalters/faiss_kmeans
07cd8d1d0745e4232758c613fc8900c08b4f1ae2
[ "MIT" ]
2
2019-10-03T23:26:20.000Z
2020-02-25T03:29:31.000Z
gen_fp.py
PatWalters/faiss_kmeans
07cd8d1d0745e4232758c613fc8900c08b4f1ae2
[ "MIT" ]
4
2020-05-01T13:57:04.000Z
2021-09-09T08:41:27.000Z
#!/usr/bin/env python import sys def timing(f): """ Decorator to measure execution time, adapted from # https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d # https://codereview.stackexchange.com/questions/169870/decorator-to-measure-execution-time-of-a...
29.307692
109
0.656496
#!/usr/bin/env python import sys import h5py import numpy as np from rdkit import Chem, DataStructs from rdkit.Chem import rdMolDescriptors as rdmd from tqdm import tqdm from functools import wraps from time import time def timing(f): """ Decorator to measure execution time, adapted from # https://mediu...
0
2,207
0
0
0
0
0
33
274
6616d131b8bf5736ae5fe2bc0242fa879111be9c
4,064
py
Python
odps/df/tools/lib/hll.py
wjsi/aliyun-odps-python-sdk
8b064340e4376def201b8d8fdc0c2fa021aae9be
[ "Apache-2.0" ]
412
2015-11-01T09:27:52.000Z
2022-03-26T05:04:03.000Z
odps/df/tools/lib/hll.py
wjsi/aliyun-odps-python-sdk
8b064340e4376def201b8d8fdc0c2fa021aae9be
[ "Apache-2.0" ]
168
2015-11-16T09:46:39.000Z
2022-03-17T06:35:26.000Z
odps/df/tools/lib/hll.py
wjsi/aliyun-odps-python-sdk
8b064340e4376def201b8d8fdc0c2fa021aae9be
[ "Apache-2.0" ]
103
2015-12-01T08:10:09.000Z
2022-02-21T12:46:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # 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-...
26.38961
91
0.579724
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # 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-...
0
0
0
2,658
0
0
0
10
45
018d6c2fcea71c46d33050e71da40d26ddf183ff
4,752
py
Python
fooof/plts/templates.py
TheCheeseToast/fooof
f3f8422af7d87fa73772e083deaf8439ca59908d
[ "Apache-2.0" ]
null
null
null
fooof/plts/templates.py
TheCheeseToast/fooof
f3f8422af7d87fa73772e083deaf8439ca59908d
[ "Apache-2.0" ]
null
null
null
fooof/plts/templates.py
TheCheeseToast/fooof
f3f8422af7d87fa73772e083deaf8439ca59908d
[ "Apache-2.0" ]
null
null
null
"""Plot templates for the FOOOF module.""" from fooof.core.modutils import safe_import plt = safe_import('.pyplot', 'matplotlib') ################################################################################################### #######################################################################################...
27.952941
99
0.608165
"""Plot templates for the FOOOF module.""" import numpy as np from fooof.core.modutils import safe_import, check_dependency plt = safe_import('.pyplot', 'matplotlib') ################################################################################################### #################################################...
0
4,286
0
0
0
0
0
15
115
92137cbc9f05fa026ca9e6467c6e97454bd526a5
2,630
py
Python
backtrader/backtrader/analyzers/sqn.py
harshabakku/live-back-testing-trader
1fd69c7598dc15bea740f160eed886f396bcba2c
[ "MIT" ]
1
2021-07-14T22:04:08.000Z
2021-07-14T22:04:08.000Z
backtrader/backtrader/analyzers/sqn.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
null
null
null
backtrader/backtrader/analyzers/sqn.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
3
2021-03-07T16:29:40.000Z
2022-03-17T21:42:38.000Z
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015, 2016, 2017 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Li...
30.581395
80
0.604563
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015, 2016, 2017 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Li...
0
0
0
1,434
0
0
0
57
113
1a2cfabc718285a45f77995165dc8cc087cb7a47
470
py
Python
django/tweets/migrations/0003_auto_20190113_0618.py
aleGpereira/django.twitter
1e57d79e0839bec6df61f2d7d67de68bc2739a04
[ "MIT" ]
null
null
null
django/tweets/migrations/0003_auto_20190113_0618.py
aleGpereira/django.twitter
1e57d79e0839bec6df61f2d7d67de68bc2739a04
[ "MIT" ]
null
null
null
django/tweets/migrations/0003_auto_20190113_0618.py
aleGpereira/django.twitter
1e57d79e0839bec6df61f2d7d67de68bc2739a04
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2019-01-13 06:18 from __future__ import unicode_literals
22.380952
76
0.625532
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2019-01-13 06:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tweets', '0002_auto_20190113_0617'), ] operations = [ migrations.AlterField(...
0
0
0
292
0
0
0
19
46
ab05eaceb31b3ba84683af44cb7bbb918b9dcc55
2,168
py
Python
tests/unit/test_s3.py
pmakarov/gbdxtools
07840cd15f64f20c852a90ca9f83749fd376b6bf
[ "MIT" ]
null
null
null
tests/unit/test_s3.py
pmakarov/gbdxtools
07840cd15f64f20c852a90ca9f83749fd376b6bf
[ "MIT" ]
null
null
null
tests/unit/test_s3.py
pmakarov/gbdxtools
07840cd15f64f20c852a90ca9f83749fd376b6bf
[ "MIT" ]
null
null
null
import os """ How to use the mock_gbdx_session and vcr to create unit tests: 1. Add a new test that is dependent upon actually hitting GBDX APIs. 2. Decorate the test with @vcr appropriately, supply a yaml file path to gbdxtools/tests/unit/cassettes note: a yaml file will be created after the test is run 3. Repla...
38.714286
111
0.712177
from gbdxtools import Interface from gbdxtools.s3 import S3 from auth_mock import get_mock_gbdx_session import vcr import os import tempfile import unittest """ How to use the mock_gbdx_session and vcr to create unit tests: 1. Add a new test that is dependent upon actually hitting GBDX APIs. 2. Decorate the test with ...
0
752
0
483
0
0
0
15
155
4834caa0eb3f36e7e46b784ae632a0f86de34560
1,182
py
Python
python/stabpoly/randomly_check_bistochastic_bounds.py
grawies/stable-poly
14e78c7b9771b548953c637d0c1fda1ee076fdbb
[ "MIT" ]
null
null
null
python/stabpoly/randomly_check_bistochastic_bounds.py
grawies/stable-poly
14e78c7b9771b548953c637d0c1fda1ee076fdbb
[ "MIT" ]
null
null
null
python/stabpoly/randomly_check_bistochastic_bounds.py
grawies/stable-poly
14e78c7b9771b548953c637d0c1fda1ee076fdbb
[ "MIT" ]
null
null
null
#!/home/sam/shared-space/linux-system/anaconda3/bin/python import numpy.random SEED = 1 numpy.random.seed(SEED) if __name__ == '__main__': main()
26.863636
84
0.71489
#!/home/sam/shared-space/linux-system/anaconda3/bin/python from math import factorial import sympy as sp from bistochastic import generate_matrix import fpiter from polynomials import product_polynomial from functionals import elementary_symmetric_differential_operator import numpy.random SEED = 1 numpy.random.seed(S...
0
0
0
0
0
797
0
79
156
be3df371b3bbbcb0dd2f8780cfe35e3ce3531c15
607
py
Python
pypy/rpython/ootypesystem/rvirtualizable2.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/rpython/ootypesystem/rvirtualizable2.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/rpython/ootypesystem/rvirtualizable2.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
from pypy.rpython.ootypesystem.rclass import OBJECT VABLERTI = OBJECT
31.947368
83
0.769357
from pypy.rpython.rmodel import inputconst from pypy.rpython.ootypesystem import ootype from pypy.rpython.ootypesystem.rclass import InstanceRepr, mangle, OBJECT from pypy.rpython.rvirtualizable2 import AbstractVirtualizable2InstanceRepr VABLERTI = OBJECT class Virtualizable2InstanceRepr(AbstractVirtualizable2Instan...
0
0
0
326
0
0
0
120
89
a5f537bd9bf4d86e55c1520a890750f0f74b0e0d
7,534
py
Python
src/rubrix/server/tasks/commons/dao/dao.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
src/rubrix/server/tasks/commons/dao/dao.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
src/rubrix/server/tasks/commons/dao/dao.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
from typing import Optional from fastapi import Depends from rubrix.server.commons.es_wrapper import ElasticsearchWrapper, create_es_wrapper from rubrix.server.commons.settings import settings from rubrix.server.datasets.dao import (DATASETS_RECORDS_INDEX_NAME) from rubrix.server.tasks.commons.es_helpers import (EsRec...
29.896825
91
0.530794
from typing import Any, Dict, Iterable, List, Optional from fastapi import Depends from rubrix.server.commons.es_wrapper import ElasticsearchWrapper, create_es_wrapper from rubrix.server.commons.helpers import unflatten_dict from rubrix.server.commons.settings import settings from rubrix.server.datasets.dao import ( ...
0
0
0
4,310
0
0
0
236
89