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
1f6f99fefcaa72b50ca3f77111a0e213e5d44f04
374
py
Python
qatrack/qa/tests/test_utils.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/qa/tests/test_utils.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/qa/tests/test_utils.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
#============================================================================
26.714286
77
0.393048
from django.test import TestCase from qatrack.qa import utils #============================================================================ class TestUtils(TestCase): #---------------------------------------------------------------------- def test_unique(self): items = ["foo", "foo", "bar"] ...
0
0
0
208
0
0
0
18
68
84d3c9e993e46c35168c2cba4d2b5e8a4329395f
1,027
py
Python
data_test.py
dhlee-work/SKT-FellowShip3
4a4156a787155680c6cff5f5de7da3b412d29f40
[ "BSD-3-Clause" ]
null
null
null
data_test.py
dhlee-work/SKT-FellowShip3
4a4156a787155680c6cff5f5de7da3b412d29f40
[ "BSD-3-Clause" ]
null
null
null
data_test.py
dhlee-work/SKT-FellowShip3
4a4156a787155680c6cff5f5de7da3b412d29f40
[ "BSD-3-Clause" ]
null
null
null
import json # import json module # with statement with open('./data/spider/train_raw.json') as json_file: json_data = json.load(json_file) type(json_data) re_data = [] for idx, row in enumerate(json_data): bb = {} for i in ['db_id', 'query', 'question']: bb[i] = row[i] re_data.append(bb) ...
23.340909
151
0.651412
import json # import json module # with statement with open('./data/spider/train_raw.json') as json_file: json_data = json.load(json_file) type(json_data) re_data = [] for idx, row in enumerate(json_data): bb = {} for i in ['db_id', 'query', 'question']: bb[i] = row[i] re_data.append(bb) ...
0
0
0
0
0
0
0
0
0
ca171654fdf23cdf1b5a971f2123e10c51953e39
852
py
Python
algorithms/Others/fibonacci_dynamic_programming.py
OblackatO/ITSecurity_CS_Topics
c6a88021609e2df610b720061154dadddd35f537
[ "MIT" ]
null
null
null
algorithms/Others/fibonacci_dynamic_programming.py
OblackatO/ITSecurity_CS_Topics
c6a88021609e2df610b720061154dadddd35f537
[ "MIT" ]
null
null
null
algorithms/Others/fibonacci_dynamic_programming.py
OblackatO/ITSecurity_CS_Topics
c6a88021609e2df610b720061154dadddd35f537
[ "MIT" ]
null
null
null
# Example of Dynamic Programming for the fibonacci sequence. Extracted from https://www.youtube.com/watch?v=vYquumk4nWw # A naive recursive solution # A memoized solution # A bottom-up solution
23.027027
119
0.57277
# Example of Dynamic Programming for the fibonacci sequence. Extracted from https://www.youtube.com/watch?v=vYquumk4nWw # A naive recursive solution def fib(n): if n == 1 or n == 2: result = 1 else: result = fib(n-1) + fib(n-2) return result # A memoized solution def fib_2(n, memo): i...
0
0
0
0
0
565
0
0
89
9b302603d00072a91229dc97f52bad8340e5c7df
1,124
py
Python
engine/sitemap-generator/xml_to_html.py
hasadna/OpenPress
7aa99ed92c6aef975f59c0295681f02211fc7ab5
[ "MIT" ]
null
null
null
engine/sitemap-generator/xml_to_html.py
hasadna/OpenPress
7aa99ed92c6aef975f59c0295681f02211fc7ab5
[ "MIT" ]
null
null
null
engine/sitemap-generator/xml_to_html.py
hasadna/OpenPress
7aa99ed92c6aef975f59c0295681f02211fc7ab5
[ "MIT" ]
null
null
null
import sys LINE_THRESHOLD = 10 TEXT_MATCHES = [".//HedLine_hl1/*/*", ".//Content/*/*"] TEXT_NODES = ['W','Q'] if __name__ == "__main__": main(sys.argv)
26.761905
98
0.565836
import sys import xml.etree.ElementTree as ET LINE_THRESHOLD = 10 TEXT_MATCHES = [".//HedLine_hl1/*/*", ".//Content/*/*"] TEXT_NODES = ['W','Q'] def parse_text_xml(xml_path): tree = ET.parse(xml_path) root = tree.getroot() lines_list = [] temp_line = [] last_y = None for match in TEX...
0
0
0
0
0
873
0
13
68
d3e61f0bcef9a25df15a1c420c43ad58dba2425b
4,148
py
Python
lunr/db/migrations/versions/001_initial_migration.py
PythonGirlSam/lunr
9476436a46d377fab26674d41ac7444d98df1cbd
[ "Apache-2.0" ]
6
2015-11-09T14:16:26.000Z
2018-04-05T14:27:35.000Z
lunr/db/migrations/versions/001_initial_migration.py
PythonGirlSam/lunr
9476436a46d377fab26674d41ac7444d98df1cbd
[ "Apache-2.0" ]
16
2016-01-28T20:16:47.000Z
2019-03-07T07:30:29.000Z
lunr/db/migrations/versions/001_initial_migration.py
SaumyaRackspace/lunr
9476436a46d377fab26674d41ac7444d98df1cbd
[ "Apache-2.0" ]
18
2015-10-23T10:10:52.000Z
2020-12-15T07:11:52.000Z
# Copyright (c) 2011-2016 Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
31.424242
79
0.67406
# Copyright (c) 2011-2016 Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
0
0
0
0
0
476
0
3
69
b8a04e49bdb8d45ba1ff49fda54cb3a967501103
910
py
Python
Pandas_Stats.py
Bhaney44/Patent-Valuation
57af26f9ec60c85cbf6217358b70520a7b916189
[ "Apache-2.0" ]
null
null
null
Pandas_Stats.py
Bhaney44/Patent-Valuation
57af26f9ec60c85cbf6217358b70520a7b916189
[ "Apache-2.0" ]
null
null
null
Pandas_Stats.py
Bhaney44/Patent-Valuation
57af26f9ec60c85cbf6217358b70520a7b916189
[ "Apache-2.0" ]
null
null
null
import pandas as pd df = pd.read_csv('Lite_Coin_12_Mos.csv') print(df.head()) print(df.tail()) print(df.index) print(df.columns) print("-----") print(df.describe()) #print mediuan print('median') print(df.median()) print("-----") #Mode print('mode') print(df.mode()) print("-----") #Variance ##In probability theo...
15.964912
128
0.703297
import pandas as pd from pandas import DataFrame import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D df = pd.read_csv('Lite_Coin_12_Mos.csv') print(df.head()) print(df.tail()) print(df.index) print(df.columns) print("-----") print(df.describe()) #print mediuan print('median') print(df.median()...
0
0
0
0
0
0
0
35
66
8fc3213472f874ffef4a133ad7f509494145dee9
17,612
py
Python
main.py
PonygeekICY/CodyCloud-Server
9b64e8a58806b616a15f4f3a30370b5f2802ee28
[ "MIT" ]
1
2018-02-19T17:40:36.000Z
2018-02-19T17:40:36.000Z
main.py
PonygeekICY/CodyCloud-Server
9b64e8a58806b616a15f4f3a30370b5f2802ee28
[ "MIT" ]
null
null
null
main.py
PonygeekICY/CodyCloud-Server
9b64e8a58806b616a15f4f3a30370b5f2802ee28
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Name: CodyCloud Ngrok Server # Author: Icy(enderman1024@foxmail.com) # OS: Linux if __name__ == "__main__": main()
26.765957
159
0.655973
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Name: CodyCloud Ngrok Server # Author: Icy(enderman1024@foxmail.com) # OS: Linux import time, socket, threading, os, sys, json def init(): global LOGGER, KEY, STOP paths = ("./bin/","./cache/","./configs/","./logs/") for i in paths: path_fixer(i) try: configs = ...
0
0
0
5,462
0
11,522
0
24
391
6f2dcc0895c468d608e01b4c75e972a0baf2bb86
1,819
py
Python
src/osqp/tests/non_convex_test.py
vineetbansal/osqp_cuda
f456e830df84a3dc7ee13a11b9c8df2e59df40be
[ "Apache-2.0" ]
null
null
null
src/osqp/tests/non_convex_test.py
vineetbansal/osqp_cuda
f456e830df84a3dc7ee13a11b9c8df2e59df40be
[ "Apache-2.0" ]
null
null
null
src/osqp/tests/non_convex_test.py
vineetbansal/osqp_cuda
f456e830df84a3dc7ee13a11b9c8df2e59df40be
[ "Apache-2.0" ]
null
null
null
# Test osqp python module # import osqppurepy as osqp # Unit Test
31.912281
124
0.575591
# Test osqp python module import osqp from osqp import constant, default_algebra # import osqppurepy as osqp import numpy as np from scipy import sparse # Unit Test import unittest import pytest import numpy.testing as nptest class non_convex_tests(unittest.TestCase): def setUp(self): # Simple QP probl...
0
571
0
997
0
0
0
6
177
d99e0f224d1640231a5721ef8b5e83e536d27909
2,212
py
Python
neo3/contracts/interop/binary.py
Degget1986/neo-mamba
da7312d5027f3e9b0e5421495d5c00915bdfd786
[ "MIT" ]
null
null
null
neo3/contracts/interop/binary.py
Degget1986/neo-mamba
da7312d5027f3e9b0e5421495d5c00915bdfd786
[ "MIT" ]
null
null
null
neo3/contracts/interop/binary.py
Degget1986/neo-mamba
da7312d5027f3e9b0e5421495d5c00915bdfd786
[ "MIT" ]
null
null
null
from __future__ import annotations
38.807018
93
0.694846
from __future__ import annotations import base64 import base58 # type: ignore from neo3 import vm, contracts from neo3.contracts.interop import register @register("System.Binary.Serialize", 1 << 12, contracts.CallFlags.NONE) def binary_serialize(engine: contracts.ApplicationEngine, stack_item: vm.StackItem) -> bytes...
0
1,866
0
0
0
0
0
15
288
f9f12dedc52949f3beb791a4827bf3a3a3c82cd8
1,672
py
Python
untitled/crossdoc/pie.py
ramanpreet1990/CSE_535_Multilingual_Search_System_For_Social_Network
0475a983ac0d08e4404e8fbde2ef78d077fd6540
[ "Apache-2.0" ]
1
2016-05-30T19:43:31.000Z
2016-05-30T19:43:31.000Z
untitled/crossdoc/pie.py
ramanpreet1990/CSE_535_Multilingual_Search_System_For_Social_Network
0475a983ac0d08e4404e8fbde2ef78d077fd6540
[ "Apache-2.0" ]
null
null
null
untitled/crossdoc/pie.py
ramanpreet1990/CSE_535_Multilingual_Search_System_For_Social_Network
0475a983ac0d08e4404e8fbde2ef78d077fd6540
[ "Apache-2.0" ]
null
null
null
from json import loads from os.path import isfile, splitext from sys import argv, exit from highcharts import Highchart DOCS = 'docs' RESPONSE = 'response' LANG = 'tweet_lang' COUNTRY = 'user_location' TITLE = 'title' TEXT = 'text' # Make sure we have the correct command line arguments if len(argv) ...
24.588235
95
0.667464
from json import loads from os.path import isfile, splitext from sys import argv, exit from highcharts import Highchart DOCS = 'docs' RESPONSE = 'response' LANG = 'tweet_lang' COUNTRY = 'user_location' TITLE = 'title' TEXT = 'text' # Make sure we have the correct command line arguments if len(argv) ...
0
0
0
0
0
0
0
0
0
29bc5246ba7ecd13d647eaa1873b9811b3aa153c
8,949
py
Python
multiproc_queues.py
okahilak/xcoord
255d30555f312a2afb0a0d42dce829b1f6ec2caa
[ "MIT" ]
null
null
null
multiproc_queues.py
okahilak/xcoord
255d30555f312a2afb0a0d42dce829b1f6ec2caa
[ "MIT" ]
null
null
null
multiproc_queues.py
okahilak/xcoord
255d30555f312a2afb0a0d42dce829b1f6ec2caa
[ "MIT" ]
1
2021-09-15T13:54:15.000Z
2021-09-15T13:54:15.000Z
from PyQt5 import QtWidgets # Some other functions I toyed with before I got the vtk example working if __name__ == '__main__': app = QtWidgets.QApplication([]) window = DemoGui() window.show() app.exec_()
35.511905
131
0.602414
from PyQt5 import QtCore, QtWidgets import sys from multiprocessing import Process, Queue from time import time import vtk from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor import numpy as np from time import sleep # Some other functions I toyed with before I got the vtk example working def ad...
0
0
0
6,812
0
1,579
0
56
268
168b8c8988d0ef325a712b4234a66b5d4485b00e
4,066
py
Python
notebooks/2021-07/utility.py
ianozsvald/kaggle_optiver_volatility
9645e666e836dc37ca98a9ccbd9bafa0442b3e70
[ "MIT" ]
null
null
null
notebooks/2021-07/utility.py
ianozsvald/kaggle_optiver_volatility
9645e666e836dc37ca98a9ccbd9bafa0442b3e70
[ "MIT" ]
null
null
null
notebooks/2021-07/utility.py
ianozsvald/kaggle_optiver_volatility
9645e666e836dc37ca98a9ccbd9bafa0442b3e70
[ "MIT" ]
null
null
null
import os import pandas as pd from tqdm import tqdm if os.environ.get("USER") == "ian": ROOT = "/home/ian/data/kaggle/optiver_volatility/" else: ROOT = "/kaggle/input/optiver-realized-volatility-prediction" print(f"Utility says ROOT is {ROOT}") TRAIN_CSV = os.path.join(ROOT, "train.csv") TEST_CSV = os.path.jo...
38
98
0.631825
import os import pandas as pd from tqdm import tqdm if os.environ.get("USER") == "ian": ROOT = "/home/ian/data/kaggle/optiver_volatility/" else: ROOT = "/kaggle/input/optiver-realized-volatility-prediction" print(f"Utility says ROOT is {ROOT}") TRAIN_CSV = os.path.join(ROOT, "train.csv") TEST_CSV = os.path.jo...
0
0
0
0
0
407
0
0
46
a6e94f1b904c72dcba076eb53a57f6cc0e8df07e
156
py
Python
Guanabara/desafio06.py
manuellaAlvesVarella/python
eedb8362f0ebc8074f87d15c9e629e319ff29394
[ "MIT" ]
1
2022-03-25T20:42:20.000Z
2022-03-25T20:42:20.000Z
Guanabara/desafio06.py
manuellaAlvesVarella/python
eedb8362f0ebc8074f87d15c9e629e319ff29394
[ "MIT" ]
null
null
null
Guanabara/desafio06.py
manuellaAlvesVarella/python
eedb8362f0ebc8074f87d15c9e629e319ff29394
[ "MIT" ]
null
null
null
n = int(input('digite um nmero:')) d = n * 2 t = n * 3 r = n ** (1/2) print ('o dobro de {} {} o triplo {} e a raiz quadrada {:.0f}'.format(n,d,t,r))
26
83
0.519231
n = int(input('digite um número:')) d = n * 2 t = n * 3 r = n ** (1/2) print ('o dobro de {} é {} o triplo {} e a raiz quadrada é {:.0f}'.format(n,d,t,r))
6
0
0
0
0
0
0
0
0
8ccd287bf65bc7988f1940dfd466766b8aed01a5
1,782
py
Python
aliyun/api/rest/Ecs20130110CreateInstanceRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
aliyun/api/rest/Ecs20130110CreateInstanceRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
aliyun/api/rest/Ecs20130110CreateInstanceRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2015.11.25 '''
42.428571
567
0.76431
''' Created by auto_sdk on 2015.11.25 ''' from aliyun.api.base import RestApi class Ecs20130110CreateInstanceRequest(RestApi): def __init__(self,domain='ecs.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.ClientToken = None self.DataDisk_1_Category = None self.DataDisk_1_Size = None ...
0
0
0
1,677
0
0
0
14
46
677b7ed830986663c0c925794ef07be67a43106b
54,126
py
Python
skorch/net.py
MeRajat/skorch
6b013a1fa8b52cf781d54abbae515c755e1c6f9c
[ "BSD-3-Clause" ]
null
null
null
skorch/net.py
MeRajat/skorch
6b013a1fa8b52cf781d54abbae515c755e1c6f9c
[ "BSD-3-Clause" ]
null
null
null
skorch/net.py
MeRajat/skorch
6b013a1fa8b52cf781d54abbae515c755e1c6f9c
[ "BSD-3-Clause" ]
null
null
null
"""Neural net classes.""" # pylint: disable=unused-argument # pylint: disable=unused-argument # pylint: disable=too-many-instance-attributes ####################### # NeuralNetClassifier # ####################### neural_net_clf_doc_start = """NeuralNet for classification tasks Use this specifically if yo...
33.82875
79
0.587204
"""Neural net classes.""" import fnmatch from itertools import chain from functools import partial import re import tempfile import warnings import numpy as np from sklearn.base import BaseEstimator import torch from torch.utils.data import DataLoader from skorch.callbacks import EpochTimer from skorch.callbacks imp...
0
985
0
50,282
0
730
0
265
754
c8f8ad297b00d0ff8d03b823d3451f34cb74c850
2,381
py
Python
tikphish/tikphish_dec.py
shyamjangid07/Reverse-Engineering
469efabcd6057f7895d8d891f1fabdf2ffe730b0
[ "Apache-2.0" ]
337
2020-08-15T12:22:14.000Z
2022-03-29T06:05:15.000Z
tikphish/tikphish_dec.py
Wh014M/Reverse-Engineering
f7aae2c43f7ea4a6730964d085c07814b6660a53
[ "Apache-2.0" ]
3
2020-11-12T14:30:48.000Z
2021-05-18T16:56:22.000Z
tikphish/tikphish_dec.py
Wh014M/Reverse-Engineering
f7aae2c43f7ea4a6730964d085c07814b6660a53
[ "Apache-2.0" ]
83
2020-08-15T00:22:58.000Z
2022-03-31T08:40:23.000Z
# -*- coding: UTF-8 -*- #Colours Defined Variables W = '\033[1;37m' N = '\033[0m' R="\033[1;37m\033[31m" B = '\033[1;37m\033[34m' G = '\033[1;32m' Y = '\033[1;33;40m' #Decorators SBR = W+"("+R+""+W+")" SBG = W+"("+G+""+W+")" SRO = W+"("+R+">"+W+")" SGO = W+"("+G+">"+W+")" SEO = W+"("+R+"!"+W+")" newlin = "\n"...
23.116505
66
0.450231
# -*- coding: UTF-8 -*- #Colours Defined Variables W = '\033[1;37m' N = '\033[0m' R="\033[1;37m\033[31m" B = '\033[1;37m\033[34m' G = '\033[1;32m' Y = '\033[1;33;40m' #Decorators SBR = W+"("+R+"π"+W+")" SBG = W+"("+G+"π"+W+")" SRO = W+"("+R+">"+W+")" SGO = W+"("+G+">"+W+")" SEO = W+"("+R+"!"+W+")" newlin = "\...
247
0
0
0
0
0
0
-1
22
5dc6adfbea0f503b61bd5379951cf06f3d25c883
1,932
py
Python
tests/utils_tests/testing_tests/assertions_tests/test_assert_is_image.py
beam2d/chainercv
55d34c07cbbd03642b71d375db579433859bd00e
[ "MIT" ]
1,600
2017-06-01T15:37:52.000Z
2022-03-09T08:39:09.000Z
tests/utils_tests/testing_tests/assertions_tests/test_assert_is_image.py
beam2d/chainercv
55d34c07cbbd03642b71d375db579433859bd00e
[ "MIT" ]
547
2017-06-01T06:43:16.000Z
2021-05-28T17:14:05.000Z
tests/utils_tests/testing_tests/assertions_tests/test_assert_is_image.py
beam2d/chainercv
55d34c07cbbd03642b71d375db579433859bd00e
[ "MIT" ]
376
2017-06-02T01:29:10.000Z
2022-03-13T11:19:59.000Z
from chainercv.utils import testing testing.run_module(__name__, __file__)
32.745763
72
0.537267
import numpy as np import unittest from chainercv.utils import assert_is_image from chainercv.utils import testing @testing.parameterize( { 'img': np.random.randint(0, 256, size=(3, 48, 64)), 'color': True, 'check_range': True, 'valid': True}, { 'img': np.random.randint(0, 256, size=(...
0
1,751
0
0
0
0
0
13
90
64069bacd93abee587639507d2122231a4f593d7
3,275
py
Python
main.py
Zoey31/Console3DRenderer
876603b10c90fc55d4536608644248794600720f
[ "MIT" ]
null
null
null
main.py
Zoey31/Console3DRenderer
876603b10c90fc55d4536608644248794600720f
[ "MIT" ]
null
null
null
main.py
Zoey31/Console3DRenderer
876603b10c90fc55d4536608644248794600720f
[ "MIT" ]
null
null
null
import numpy as np theta_spacing = 0.07 phi_spacing = 0.02 R1 = 1 R2 = 2 K2 = 5 screen_width = 50 screen_height = 50 K1 = screen_width * K2 * 3 / (8 * (R1 + R2)) def calc_luminance(cos_a, cos_b, cos_phi, cos_theta, sin_a, sin_b, sin_phi, sin_theta): """ Luminance should be equal to: cosphi*costheta*...
28.232759
107
0.598168
import os import numpy as np theta_spacing = 0.07 phi_spacing = 0.02 R1 = 1 R2 = 2 K2 = 5 screen_width = 50 screen_height = 50 K1 = screen_width * K2 * 3 / (8 * (R1 + R2)) def print_chararray(char_arr): pretty = str(b"x".join([b"".join(s) for s in char_arr]))[2:-2] return pretty.replace("x", "\n").replace(...
0
0
0
0
0
1,439
0
-12
137
04a83dd369d05e08b65c8577ad28ddee5551d498
27,017
py
Python
scripts/batch/exp-comp.py
ixent/qosa-snee
cc103a2f50262cad1927976a0b7f99554362581d
[ "BSD-3-Clause" ]
1
2019-01-19T06:45:42.000Z
2019-01-19T06:45:42.000Z
scripts/batch/exp-comp.py
ixent/qosa-snee
cc103a2f50262cad1927976a0b7f99554362581d
[ "BSD-3-Clause" ]
null
null
null
scripts/batch/exp-comp.py
ixent/qosa-snee
cc103a2f50262cad1927976a0b7f99554362581d
[ "BSD-3-Clause" ]
3
2017-03-08T17:42:16.000Z
2021-05-28T16:01:30.000Z
#!/usr/bin/python #This script assumes that gnuplot is in the environment PATH import SneeqlLib, os, UtilLib optSneeqlRoot = os.getenv("SNEEQLROOT") optNumAgendaEvals = 2 optQueryDuration = UtilLib.monthsToSeconds(6) optOutputRoot = os.getenv("HOME")+"/tmp/output" optLabel = 'qosCmp' optTimeStampOutput = True #optTime...
37.111264
580
0.718363
#!/usr/bin/python #This script assumes that gnuplot is in the environment PATH import getopt, logging, sys, SneeqlLib, TossimLib, AvroraLib, os, UtilLib, checkTupleCount, RandomSeeder, networkLib, StatLib, GraphData optSneeqlRoot = os.getenv("SNEEQLROOT") optNumAgendaEvals = 2 optQueryDuration = UtilLib.monthsToSecond...
0
0
0
0
0
24,097
0
107
469
3b193401daaad21805830b6dc8cedba6a22a9c50
329
py
Python
selfsup/multi/loaders/loader.py
abhaymittal/self-supervision
fe99e707bcccc0eed39dfe8a4651c433caf6f8c4
[ "BSD-3-Clause" ]
29
2017-04-13T17:39:43.000Z
2022-02-17T10:01:10.000Z
selfsup/multi/loaders/loader.py
abhaymittal/self-supervision
fe99e707bcccc0eed39dfe8a4651c433caf6f8c4
[ "BSD-3-Clause" ]
7
2017-05-10T07:30:16.000Z
2019-09-09T15:38:20.000Z
selfsup/multi/loaders/loader.py
abhaymittal/self-supervision
fe99e707bcccc0eed39dfe8a4651c433caf6f8c4
[ "BSD-3-Clause" ]
6
2017-09-10T15:57:26.000Z
2020-04-21T06:14:30.000Z
from __future__ import division, print_function, absolute_import
25.307692
64
0.693009
from __future__ import division, print_function, absolute_import class Loader: def __init__(self, batch_size=16, num_threads=5): self._batch_size = batch_size self._num_threads = num_threads def batch(self): raise NotImplemented('Cannot use base class') def start(self, sess): ...
0
0
0
241
0
0
0
0
23
b2ff30049a6e8e88d79dfb15dcddc16cb38fa3e5
15,705
py
Python
enso/quasimode/__init__.py
toolness/community-enso
e688e14628765235bf3575401192fc66f4c57236
[ "BSD-3-Clause" ]
2
2015-12-02T16:54:36.000Z
2018-02-04T00:41:39.000Z
enso/quasimode/__init__.py
toolness/community-enso
e688e14628765235bf3575401192fc66f4c57236
[ "BSD-3-Clause" ]
null
null
null
enso/quasimode/__init__.py
toolness/community-enso
e688e14628765235bf3575401192fc66f4c57236
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2008, Humanized, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
38.777778
79
0.638077
# Copyright (c) 2008, Humanized, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
0
187
0
12,433
0
0
0
109
246
db83b41e625efe7bc0eb034cd249e583350bf10e
1,628
py
Python
tests/default_value.py
thielepaul/wirepas-mesh-messaging-python
cf2590880bbe96581efa8b5c58f052f2924c1a6e
[ "Apache-2.0" ]
null
null
null
tests/default_value.py
thielepaul/wirepas-mesh-messaging-python
cf2590880bbe96581efa8b5c58f052f2924c1a6e
[ "Apache-2.0" ]
2
2021-09-13T18:43:07.000Z
2021-11-23T15:38:02.000Z
tests/default_value.py
thielepaul/wirepas-mesh-messaging-python
cf2590880bbe96581efa8b5c58f052f2924c1a6e
[ "Apache-2.0" ]
2
2021-09-30T06:39:43.000Z
2021-11-11T15:36:21.000Z
# flake8: noqa import wirepas_mesh_messaging # Define list of default values used during testing GATEWAY_ID = "test_gateway" GATEWAY_STATE = wirepas_mesh_messaging.GatewayState.ONLINE SINK_ID = "sink3" RES_OK = wirepas_mesh_messaging.GatewayResultCode.GW_RES_OK RES_KO = wirepas_mesh_messaging.GatewayResultCode.GW_RES...
34.638298
124
0.761057
# flake8: noqa import wirepas_mesh_messaging # Define list of default values used during testing GATEWAY_ID = "test_gateway" GATEWAY_STATE = wirepas_mesh_messaging.GatewayState.ONLINE SINK_ID = "sink3" RES_OK = wirepas_mesh_messaging.GatewayResultCode.GW_RES_OK RES_KO = wirepas_mesh_messaging.GatewayResultCode.GW_RES...
0
0
0
0
0
0
0
0
0
03e5313ab99e9e85b495febfc66625b35374d101
449
py
Python
update.py
dreamflasher/merge-ics
fa60fde37d615e24ae280ee19638e536a18ac621
[ "Apache-2.0" ]
null
null
null
update.py
dreamflasher/merge-ics
fa60fde37d615e24ae280ee19638e536a18ac621
[ "Apache-2.0" ]
null
null
null
update.py
dreamflasher/merge-ics
fa60fde37d615e24ae280ee19638e536a18ac621
[ "Apache-2.0" ]
null
null
null
from ics import Calendar from urllib.request import urlopen url1 = "https://calendar.google.com/calendar/ical/marcel%40intuitionmachines.com/public/basic.ics" url2 = "https://calendar.google.com/calendar/ical/dreamflasher%40dreamflasher.de/public/basic.ics" c1 = Calendar(urlopen(url1).read().decode()) c2 = Calendar(url...
34.538462
98
0.746102
from ics import Calendar from urllib.request import urlopen url1 = "https://calendar.google.com/calendar/ical/marcel%40intuitionmachines.com/public/basic.ics" url2 = "https://calendar.google.com/calendar/ical/dreamflasher%40dreamflasher.de/public/basic.ics" c1 = Calendar(urlopen(url1).read().decode()) c2 = Calendar(url...
0
0
0
0
0
0
0
0
0
6523484e8372b27654ee33f716f12420da130d21
1,226
py
Python
Django Rest Pagination/Person/views.py
abhisheksahu92/Django-Rest-Framework
45ddafb93ed1f2e232d2f537f144bf79cb30bf3d
[ "MIT" ]
null
null
null
Django Rest Pagination/Person/views.py
abhisheksahu92/Django-Rest-Framework
45ddafb93ed1f2e232d2f537f144bf79cb30bf3d
[ "MIT" ]
null
null
null
Django Rest Pagination/Person/views.py
abhisheksahu92/Django-Rest-Framework
45ddafb93ed1f2e232d2f537f144bf79cb30bf3d
[ "MIT" ]
null
null
null
# View with global pagenumber pagination
35.028571
101
0.82708
from django.shortcuts import render from rest_framework import viewsets from rest_framework.filters import SearchFilter,OrderingFilter from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination,CursorPagination from .pagination import PersonPageNumberPagination,PersonLimitOffsetPagination,Person...
0
0
0
681
0
0
0
251
246
01c1505db97917d5641d2a4af8d2cea715ecfefb
911
py
Python
cooperate/renderers.py
johnnoone/cooperate
2ae8c71f2938c65406bf6b16352fc27174111393
[ "BSD-3-Clause" ]
null
null
null
cooperate/renderers.py
johnnoone/cooperate
2ae8c71f2938c65406bf6b16352fc27174111393
[ "BSD-3-Clause" ]
null
null
null
cooperate/renderers.py
johnnoone/cooperate
2ae8c71f2938c65406bf6b16352fc27174111393
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['Renderer', 'StatusRenderer']
25.305556
50
0.45225
import yaml __all__ = ['Renderer', 'StatusRenderer'] class Renderer: pass class StatusRenderer(Renderer): def render(self, future, node, command): try: result = future.result() response = { 'node': node.name, 'command': command, ...
0
0
0
809
0
0
0
-10
68
4e234da7542e4e7567b595d6cbbc623b5632fced
804
py
Python
backend/api/fixtures/operational/0013_add_notional_transfer_types.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/fixtures/operational/0013_add_notional_transfer_types.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/fixtures/operational/0013_add_notional_transfer_types.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
script_class = AddNotionalTransferTypes
25.935484
64
0.676617
from django.db import transaction from api.management.data_script import OperationalDataScript from api.models.NotionalTransferType import NotionalTransferType class AddNotionalTransferTypes(OperationalDataScript): """ Adds Notional Transfer Types """ is_revertable = False comment = 'Adds Notiona...
0
338
0
240
0
0
0
94
90
f77e498e171d62ea931b08f78a69f67276d0bd67
3,627
py
Python
test_parser.py
electricitymap/electricitymap-contrib
6572b12d1cef72c734b80273598e156ebe3c22ea
[ "MIT" ]
143
2022-01-01T10:56:58.000Z
2022-03-31T11:25:47.000Z
test_parser.py
electricitymap/electricitymap-contrib
6572b12d1cef72c734b80273598e156ebe3c22ea
[ "MIT" ]
276
2021-12-30T15:57:15.000Z
2022-03-31T14:57:16.000Z
test_parser.py
electricitymap/electricitymap-contrib
6572b12d1cef72c734b80273598e156ebe3c22ea
[ "MIT" ]
44
2021-12-30T19:48:42.000Z
2022-03-29T22:46:16.000Z
#!/usr/bin/env python3 """ Usage: poetry run test_parser FR production """ import logging logger = logging.getLogger(__name__) logging.basicConfig( level=logging.DEBUG, format="%(asctime)s %(levelname)-8s %(name)-30s %(message)s" ) if __name__ == "__main__": # pylint: disable=no-value-for-parameter prin...
29.25
85
0.605183
#!/usr/bin/env python3 """ Usage: poetry run test_parser FR production """ import datetime import logging import pprint import time import arrow import click from parsers.lib.parsers import PARSER_KEY_TO_DICT from parsers.lib.quality import ( ValidationError, validate_consumption, validate_exchange, ...
0
3,014
0
0
0
0
0
96
180
f7c2ea97c5be72f34b806966ce8b9da48c15205d
1,295
py
Python
app/utils/token_help.py
luwenchang/service-template-py
ca507c9eefec03aa3f1696234ff8ccabcf97905d
[ "MIT" ]
null
null
null
app/utils/token_help.py
luwenchang/service-template-py
ca507c9eefec03aa3f1696234ff8ccabcf97905d
[ "MIT" ]
null
null
null
app/utils/token_help.py
luwenchang/service-template-py
ca507c9eefec03aa3f1696234ff8ccabcf97905d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'vincent' import uuid from redis_help import redis_client from . import redis_help # itsdangerous from itsdangerous import TimedJSONWebSignatureSerializer as Serializer def generate_auth_token(secret_key, user_id, expire=3600): '''ID''' s = Serializer(secret_key, expi...
23.125
73
0.70888
# -*- coding: utf-8 -*- __author__ = 'vincent' import uuid import json from redis_help import redis_client from werkzeug.security import generate_password_hash, check_password_hash from . import redis_help # 下面这个包 itsdangerous 用于生成确认令牌 from itsdangerous import TimedJSONWebSignatureSerializer as Serializer def gen...
438
0
0
0
0
0
0
42
45
b1d1f88c8f94744b386d4ad58c8303bca8695706
1,796
py
Python
discovery-provider/alembic/versions/273b8bcef694_user_bank_updates.py
Tenderize/audius-protocol
aa15844e3f12812fe8aaa81e2cb6e5c5fa89ff51
[ "Apache-2.0" ]
429
2019-08-14T01:34:07.000Z
2022-03-30T06:31:38.000Z
discovery-provider/alembic/versions/273b8bcef694_user_bank_updates.py
Tenderize/audius-protocol
aa15844e3f12812fe8aaa81e2cb6e5c5fa89ff51
[ "Apache-2.0" ]
998
2019-08-14T01:52:37.000Z
2022-03-31T23:17:22.000Z
discovery-provider/alembic/versions/273b8bcef694_user_bank_updates.py
Tenderize/audius-protocol
aa15844e3f12812fe8aaa81e2cb6e5c5fa89ff51
[ "Apache-2.0" ]
73
2019-10-04T04:24:16.000Z
2022-03-24T16:27:30.000Z
"""user bank updates Revision ID: 273b8bcef694 Revises: 2e02a681aeaa Create Date: 2021-06-22 17:22:00.102134 """ import logging from sqlalchemy.orm import sessionmaker logger = logging.getLogger(__name__) # revision identifiers, used by Alembic. revision = "273b8bcef694" down_revision = "2e02a681aeaa" branch_labels...
26.411765
85
0.665367
"""user bank updates Revision ID: 273b8bcef694 Revises: 2e02a681aeaa Create Date: 2021-06-22 17:22:00.102134 """ import logging from alembic import op import sqlalchemy as sa from sqlalchemy.orm import sessionmaker logger = logging.getLogger(__name__) # revision identifiers, used by Alembic. revision = "273b8bcef69...
0
0
0
0
0
1,329
0
3
90
f2e4d2a23347f13fa0dc6bc850f055e77b8a1b81
741
py
Python
Mundo I/D032 - Ano bissexto.py
Orecruta/Exercicios-Python
129a15930ea22df1f0a7d6bd39a7ac28be515034
[ "MIT" ]
null
null
null
Mundo I/D032 - Ano bissexto.py
Orecruta/Exercicios-Python
129a15930ea22df1f0a7d6bd39a7ac28be515034
[ "MIT" ]
null
null
null
Mundo I/D032 - Ano bissexto.py
Orecruta/Exercicios-Python
129a15930ea22df1f0a7d6bd39a7ac28be515034
[ "MIT" ]
null
null
null
from datetime import date #Importa biblioteca para pegar data e hora do pc print('='*6, 'DESAFIO 032 - ANO BISSEXTO', '='*6) ano = int(input('| Digite o ano que quer analisar ou digite 0 para analisar o ano atual: ')) #Recebe ano digitado if ano == 0: ...
57
206
0.608637
from datetime import date #Importa biblioteca para pegar data e hora do pc print('='*6, 'DESAFIO 032 - ANO BISSEXTO', '='*6) ano = int(input('| Digite o ano que quer analisar ou digite 0 para analisar o ano atual: ')) #Recebe ano digitado if ano == 0: ...
22
0
0
0
0
0
0
0
0
8c5a56d61d658df76f0d0b0fdbdad53aebd701ce
510
py
Python
tests/r/test_bthe_b.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_bthe_b.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_bthe_b.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import tempfile from observations.r.bthe_b import bthe_b def test_bthe_b(): """Test module bthe_b.py by downloading bthe_b.csv and testing shape of extracted data has 100 rows and 8 col...
21.25
44
0.75098
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.bthe_b import bthe_b def test_bthe_b(): """Test module bthe_b.py by downloading bthe_b.csv and testing shape of extracted data has 100 row...
0
0
0
0
0
0
0
-11
22
b1ada3acaf49213ce32af6db987a5494596981b6
726
py
Python
buuctf/35-inndy_echo2/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
buuctf/35-inndy_echo2/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
buuctf/35-inndy_echo2/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
cli_script() p = gift['io'] e = gift['elf'] if gift['debug']: libc = gift['libc'] else: libc = ELF("/root/LibcSearcher/libc-database/other_libc_so/libc-2.23.so") p.sendline("%41$p,%43$p") msg = p.recvline() code_addr, libc_addr = msg.split(b",") code_base_addr = int16(code_addr.decode()) - e.sym['main'] -...
21.352941
123
0.701102
from pwncli import * cli_script() p = gift['io'] e = gift['elf'] if gift['debug']: libc = gift['libc'] else: libc = ELF("/root/LibcSearcher/libc-database/other_libc_so/libc-2.23.so") p.sendline("%41$p,%43$p") msg = p.recvline() code_addr, libc_addr = msg.split(b",") code_base_addr = int16(code_addr.decode...
0
0
0
0
0
0
0
-1
22
f453bf6ee68b3ba5dab6bf69f37db730baa605d4
4,646
py
Python
merlin/examples/generator.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
merlin/examples/generator.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
merlin/examples/generator.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) 2019, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory # Written by the Merlin dev team, listed in the CONTRIBUTORS file. # <merlin@llnl.gov> # # LLNL-CODE-797170 # All righ...
34.932331
87
0.650667
############################################################################### # Copyright (c) 2019, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory # Written by the Merlin dev team, listed in the CONTRIBUTORS file. # <merlin@llnl.gov> # # LLNL-CODE-797170 # All righ...
0
0
0
0
0
217
0
15
69
7cd80880b8caf780c10faaaf7e062d2e3b67edba
2,741
py
Python
SerialController/Commands/PythonCommands/ImageProcessingOnly/ENG_Repop_Shiny_Backup.py
junkypoke/Poke-Controller
2303b8444d82cbd1a5cdfea241e57fdad2a837c6
[ "MIT" ]
2
2021-04-21T13:23:03.000Z
2021-04-21T13:23:06.000Z
SerialController/Commands/PythonCommands/ImageProcessingOnly/ENG_Repop_Shiny_Backup.py
junkypoke/Poke-Controller
2303b8444d82cbd1a5cdfea241e57fdad2a837c6
[ "MIT" ]
null
null
null
SerialController/Commands/PythonCommands/ImageProcessingOnly/ENG_Repop_Shiny_Backup.py
junkypoke/Poke-Controller
2303b8444d82cbd1a5cdfea241e57fdad2a837c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
41.530303
116
0.511492
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from Commands.PythonCommandBase import PythonCommand, ImageProcPythonCommand from Commands.Keys import KeyPress, Button, Direction, Stick, Hat class AutoEncount(ImageProcPythonCommand): NAME = 'ENG_BU_リポップ色違い厳選' def __init__(self,cam): super().__init__(c...
237
0
0
2,449
0
0
0
99
68
ce78551b07e723b8b7250c7ee44819aabf9b8abd
3,054
py
Python
pyfermions/wavelets.py
illc-uva/pyfermions
d685f317470a2542d9c9c9e9b3fe6cb6fad76d07
[ "MIT" ]
10
2019-02-25T11:18:11.000Z
2021-08-17T15:40:50.000Z
pyfermions/wavelets.py
illc-uva/pyfermions
d685f317470a2542d9c9c9e9b3fe6cb6fad76d07
[ "MIT" ]
null
null
null
pyfermions/wavelets.py
illc-uva/pyfermions
d685f317470a2542d9c9c9e9b3fe6cb6fad76d07
[ "MIT" ]
3
2019-05-28T07:58:49.000Z
2021-03-19T22:46:00.000Z
__all__ = ["orthogonal_wavelet", "DAUBECHIES_D4"] DAUBECHIES_D4_SCALING_FILTER = signal( [0.482_962_913_145, 0.836_516_303_738, 0.224_143_868_042, -0.129_409_522_551] ) DAUBECHIES_D4 = orthogonal_wavelet.from_scaling_filter(DAUBECHIES_D4_SCALING_FILTER)
41.835616
160
0.673543
from .signal import * __all__ = ["orthogonal_wavelet", "DAUBECHIES_D4"] class orthogonal_wavelet: """Orthogonal wavelet consisting of a scaling (low-pass) filter and a wavelet (high-pass) filter that together form a conjugate mirror filter (CMF) pair.""" def __init__(self, scaling_filter, wavelet_filter): ...
0
566
0
2,180
0
0
0
0
45
0f3ad93d2717be1e8643d8004f218577752f3160
3,105
py
Python
Chapter06/pyImage/classify.py
PacktPublishing/Artificial-Intelligence-for-IoT-Cookbook
c2f522c2a1dbb78c99e05abc3c0e8706618f4353
[ "MIT" ]
19
2019-11-06T08:00:03.000Z
2022-01-01T20:02:40.000Z
Chapter06/pyImage/classify.py
PacktPublishing/Artificial-Intelligence-for-IoT-Cookbook
c2f522c2a1dbb78c99e05abc3c0e8706618f4353
[ "MIT" ]
null
null
null
Chapter06/pyImage/classify.py
PacktPublishing/Artificial-Intelligence-for-IoT-Cookbook
c2f522c2a1dbb78c99e05abc3c0e8706618f4353
[ "MIT" ]
9
2020-02-17T23:44:16.000Z
2022-02-03T15:26:46.000Z
import numpy as np import torch from torch import nn from torch import optim from torchvision import datasets, transforms, models from torch.utils.data.sampler import SubsetRandomSampler datadir = './data/train' valid_size = .3 epochs = 3 steps = 0 running_loss = 0 print_every = 10 train_losses, test_losses = [],...
35.284091
170
0.698229
import numpy as np import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, models from torch.utils.data.sampler import SubsetRandomSampler datadir = './data/train' valid_size = .3 epochs = 3 steps = 0 running_loss = 0 print_every = 10...
0
0
0
0
0
934
0
10
45
c0cab6f779ea527b45216df762bd80c3e9bebd5c
4,018
py
Python
setup.py
mccullerlp/msurrogate
26e0269ed2a2c370f45810522ac9cb47da033519
[ "Apache-2.0" ]
null
null
null
setup.py
mccullerlp/msurrogate
26e0269ed2a2c370f45810522ac9cb47da033519
[ "Apache-2.0" ]
null
null
null
setup.py
mccullerlp/msurrogate
26e0269ed2a2c370f45810522ac9cb47da033519
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from setuptools import find_packages, setup version = '0.9.0.rc1' cmdclass = dict() cmdclass['bdist'] = check_bdist cmdclass['sdist'] = check_sdist try: except ImportError: pass cmdclass['bdist_whee...
34.34188
118
0.575162
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals import os import sys from os import path from setuptools import find_packages, setup from distutils.command.bdist import bdist from distutils.command.sdist import sdist version = '0.9.0.rc1' def check_versi...
0
0
0
246
0
1,819
0
35
231
f982acbb2ae43ffe1765a52bb72eb973d16f653d
4,040
py
Python
experiment.py
SouthForkResearch/osGNAT
b254c775b2061e3a8c0fd7baa02d94799fc4d193
[ "MIT" ]
2
2017-08-31T15:47:22.000Z
2019-07-06T05:08:41.000Z
experiment.py
SouthForkResearch/osGNAT
b254c775b2061e3a8c0fd7baa02d94799fc4d193
[ "MIT" ]
36
2017-02-28T20:43:08.000Z
2017-08-18T19:50:22.000Z
experiment.py
SouthForkResearch/pyGNAT
b254c775b2061e3a8c0fd7baa02d94799fc4d193
[ "MIT" ]
null
null
null
import networkx as nx import network as net import time from test.utilities import get_qgis_app QGIS_APP = get_qgis_app() inSmallNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_SmallNetwork.shp' inMedNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_MedNetwork.shp' inBraidsShp = r'C:\JL\Testing\py...
43.913043
98
0.697772
from qgis.core import * import networkx as nx import network as net import time from test.utilities import get_qgis_app QGIS_APP = get_qgis_app() inSmallNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_SmallNetwork.shp' inMedNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_MedNetwork.shp' inBraids...
0
0
0
0
0
0
0
2
22
0af2f9cbeeeed3de2288db5a073ca5d5a264204e
3,849
py
Python
build Android/extendes/linux.py
jadilson12/scripts
68beb0b61c68626e4e225e4128c47f7a95edd6b9
[ "MIT" ]
null
null
null
build Android/extendes/linux.py
jadilson12/scripts
68beb0b61c68626e4e225e4128c47f7a95edd6b9
[ "MIT" ]
null
null
null
build Android/extendes/linux.py
jadilson12/scripts
68beb0b61c68626e4e225e4128c47f7a95edd6b9
[ "MIT" ]
1
2021-03-03T16:20:06.000Z
2021-03-03T16:20:06.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
29.607692
108
0.545077
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from extendes.rom import * class Linux: @staticmethod def tela(): pegunta = int(input("0 - Desligar\n1 - Ligar\n")) if pegunta == 0: os.system("xset -display :0.0 dpms force off") if pegunta == 1: os.system("xset...
6
3,425
0
-9
0
0
0
5
370
69c308889093023758188a6b107f5d332d254748
2,396
py
Python
tests/test_renderer.py
telday/py_cui
9f7a5f9a72733effd5e50322774988ca998a5e8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_renderer.py
telday/py_cui
9f7a5f9a72733effd5e50322774988ca998a5e8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_renderer.py
telday/py_cui
9f7a5f9a72733effd5e50322774988ca998a5e8a
[ "BSD-3-Clause" ]
null
null
null
import py_cui test_string_A = "Hello world, etc 123 @ testing @ ++-- Test" test_string_B = " Test string number two Space" test_string_C = "Hi" dummy_grid = py_cui.grid.Grid(3,3,30,30) dummy_widget = py_cui.widgets.Widget('1', 'Test', dummy_grid, 1,1,1,1,1,0) dummy_renderer = py_cui.renderer.Renderer(None, None)...
47.92
98
0.733306
import pytest import py_cui test_string_A = "Hello world, etc 123 @ testing @ ++-- Test" test_string_B = " Test string number two Space" test_string_C = "Hi" dummy_grid = py_cui.grid.Grid(3,3,30,30) dummy_widget = py_cui.widgets.Widget('1', 'Test', dummy_grid, 1,1,1,1,1,0) dummy_renderer = py_cui.renderer.Render...
0
0
0
0
0
1,969
0
-8
114
d81c1636edb1eb625c7fd2a11a47379e317a19f8
53
py
Python
Aulas/a20/a17.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
Aulas/a20/a17.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
Aulas/a20/a17.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
# Condies aninhadas comparao a repetio aninhada
53
53
0.867925
# Condições aninhadas comparação a repetição aninhada
12
0
0
0
0
0
0
0
0
629888fac951db9c3fa3e788ee0ad0ee2b97fddb
2,133
py
Python
workflow/config/config_cpc.py
isciences/wsim
1f35dbf065e72a4aaed31eeabc08d9e18e71366b
[ "Apache-2.0" ]
5
2018-05-31T19:56:41.000Z
2022-02-09T13:04:18.000Z
workflow/config/config_cpc.py
isciences/wsim
1f35dbf065e72a4aaed31eeabc08d9e18e71366b
[ "Apache-2.0" ]
null
null
null
workflow/config/config_cpc.py
isciences/wsim
1f35dbf065e72a4aaed31eeabc08d9e18e71366b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 ISciences, LLC. # All rights reserved. # # WSIM is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. You may # obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. # # Unless required by applicab...
31.835821
115
0.723394
# Copyright (c) 2019 ISciences, LLC. # All rights reserved. # # WSIM is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. You may # obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. # # Unless required by applicab...
0
0
0
1,177
0
0
0
131
158
f023eacd26839d9e23636235357abdcd84e5a1bb
4,696
py
Python
tests/test_vmtkScripts/test_vmtkimagevesselenhancement.py
michelebucelli/vmtk
738bd1d152e8836847ab4d75f7e8360bd574e724
[ "Apache-2.0" ]
217
2015-01-05T19:08:30.000Z
2022-03-31T12:14:59.000Z
tests/test_vmtkScripts/test_vmtkimagevesselenhancement.py
mrp089/vmtk
64675f598e31bc6be3d4fba903fb59bf1394f492
[ "Apache-2.0" ]
226
2015-03-31T07:16:06.000Z
2022-03-01T14:59:30.000Z
tests/test_vmtkScripts/test_vmtkimagevesselenhancement.py
mrp089/vmtk
64675f598e31bc6be3d4fba903fb59bf1394f492
[ "Apache-2.0" ]
132
2015-02-16T11:38:34.000Z
2022-03-18T04:38:45.000Z
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
40.482759
120
0.603705
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
0
3,886
0
0
0
0
0
30
136
22e555f3d3d61d4c1b472a2ec090121de7ab9908
1,441
py
Python
haruhichanbot/commands_config.py
Sugihiru/Haruhi-chan-Bot
89681b0cbe824e88c0945a04dd4ebd121d027a09
[ "MIT" ]
null
null
null
haruhichanbot/commands_config.py
Sugihiru/Haruhi-chan-Bot
89681b0cbe824e88c0945a04dd4ebd121d027a09
[ "MIT" ]
null
null
null
haruhichanbot/commands_config.py
Sugihiru/Haruhi-chan-Bot
89681b0cbe824e88c0945a04dd4ebd121d027a09
[ "MIT" ]
null
null
null
if __name__ == '__main__': cfg = CommandsConfig() print(cfg.get_account_source_infos("al")) print(cfg.roles.keys())
34.309524
78
0.632894
import json from . import exceptions class CommandsConfig(): def __init__(self, json_cfg_file=None): if not json_cfg_file: json_cfg_file = CommandsConfigDefaults.json_cfg_file self.json_cfg_file = json_cfg_file with open(self.json_cfg_file, "r") as f: ...
0
0
0
1,210
0
0
0
-7
98
8e74ff6b083d36a481ff28a449671088c09fcc8a
4,893
py
Python
os_image_handler/image_handler.py
osfunapps/os_image_handler
5e05a0d7bf281503685778864564faaccb460660
[ "MIT" ]
null
null
null
os_image_handler/image_handler.py
osfunapps/os_image_handler
5e05a0d7bf281503685778864564faaccb460660
[ "MIT" ]
null
null
null
os_image_handler/image_handler.py
osfunapps/os_image_handler
5e05a0d7bf281503685778864564faaccb460660
[ "MIT" ]
null
null
null
from PIL import Image from os_tools import tools def load_img(img_path): """Will load image to a variable. Parameters: :param img_path: the path to the image file :return image file to work on """ img = Image.open(img_path) return img.convert('RGBA') def create_new_image(width, ...
35.456522
119
0.69814
from PIL import Image, ImageDraw from PIL import ImageFont from os_tools import tools def load_img(img_path): """Will load image to a variable. Parameters: :param img_path: the path to the image file :return image file to work on """ img = Image.open(img_path) return img.convert('RGBA') ...
0
0
0
0
612
289
0
15
68
a931a583f0337396d34103c91f68511ff826c199
1,144
py
Python
setup.py
grucin/flask-arango
37fb93e733b8ecbfabea43931aa4d232573d99b2
[ "Apache-2.0" ]
2
2016-08-23T18:07:00.000Z
2017-09-08T20:03:36.000Z
setup.py
grucin/flask-arango
37fb93e733b8ecbfabea43931aa4d232573d99b2
[ "Apache-2.0" ]
2
2016-07-19T15:46:47.000Z
2016-07-19T22:06:37.000Z
setup.py
grucin/flask-arango
37fb93e733b8ecbfabea43931aa4d232573d99b2
[ "Apache-2.0" ]
2
2016-07-14T22:45:50.000Z
2017-09-08T22:25:27.000Z
""" Flask-Arango ------------- Flask extension that provides integration with the Arango graph database using the pyArango library. Under initial development. """ from setuptools import setup setup( name='Flask-Arango', version='0.1.1', url='https://github.com/grucin/flask-arango', license='Apache L...
28.6
78
0.640734
""" Flask-Arango ------------- Flask extension that provides integration with the Arango graph database using the pyArango library. Under initial development. """ from setuptools import setup setup( name='Flask-Arango', version='0.1.1', url='https://github.com/grucin/flask-arango', license='Apache L...
0
0
0
0
0
0
0
0
0
69faf4f6d6472a265d5c0d936a95a95b5abdbecc
4,647
py
Python
md_davis/plotting/plot_timeseries.py
djmaity/md-davis
5ddc446a31366ca242b81a603ff4d09b4368f0f2
[ "MIT" ]
2
2020-05-06T04:56:13.000Z
2020-08-31T18:29:08.000Z
md_davis/plotting/plot_timeseries.py
djmaity/md_davis
040f3128f20310f21788110f61c6fc7317b1dcf2
[ "MIT" ]
null
null
null
md_davis/plotting/plot_timeseries.py
djmaity/md_davis
040f3128f20310f21788110f61c6fc7317b1dcf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import plotly.graph_objs as go def continuous_errorbar(x, y, err, name, hover_text=None, line_color=None, fill_color=None, dash=None, showlegend=True): """ return continuous errorbar plotly trace """ if not line_color: line_color = 'rgb(31,119,180)' if not fill_co...
36.590551
94
0.630299
#!/usr/bin/env python3 from warnings import simplefilter import numpy import plotly from plotly.offline import plot import plotly.graph_objs as go import h5py import click import colorsys from md_davis.common.stats import * class TimeSeries: """Create a time series object from data like RMSD and radius of gyrat...
2
2,498
0
442
280
0
0
-6
247
c0fc6d03d54a7079cfa80ec69c12fb0d6ec62521
11,484
py
Python
wifuzzit_ap.py
HectorTa1989/802.11-Wireless-Fuzzer
e30d45e12fdad39b256a8cca4eb165e13bf4eeec
[ "MIT" ]
null
null
null
wifuzzit_ap.py
HectorTa1989/802.11-Wireless-Fuzzer
e30d45e12fdad39b256a8cca4eb165e13bf4eeec
[ "MIT" ]
null
null
null
wifuzzit_ap.py
HectorTa1989/802.11-Wireless-Fuzzer
e30d45e12fdad39b256a8cca4eb165e13bf4eeec
[ "MIT" ]
null
null
null
#!/usr/bin/env python from optparse import OptionParser import re # Assume that wireless card is in monitor mode on appropriate channel # Saves from lot of dependencies (lorcon, pylorcon...) ############### if __name__ == '__main__': usage = 'usage: %prog [options]' parser = OptionParser(usage) pars...
37.529412
162
0.598398
#!/usr/bin/env python from sulley import * from ap_requests import * from optparse import OptionParser import re import socket import struct import time # Assume that wireless card is in monitor mode on appropriate channel # Saves from lot of dependencies (lorcon, pylorcon...) ############### def fuzz_ap(): d...
0
0
0
0
0
7,910
0
-23
134
d676cd478bc089a142b37ad88ed4eebc26424d65
409
py
Python
hello_world.py
mjplacroix/reddit-build-week
f6c9869d49bedaf07f348b6070a4e7a7d9a2f807
[ "MIT" ]
null
null
null
hello_world.py
mjplacroix/reddit-build-week
f6c9869d49bedaf07f348b6070a4e7a7d9a2f807
[ "MIT" ]
null
null
null
hello_world.py
mjplacroix/reddit-build-week
f6c9869d49bedaf07f348b6070a4e7a7d9a2f807
[ "MIT" ]
null
null
null
"""test page for Flask and Heroku""" from flask import Flask app = Flask(__name__) # make the application #APP = Flask(__name__) # app = Flask(__name__) # make the route # # make second route # @app.route("/about") # # func for about # def preds(): # return render_template('about.html')
17.782609
50
0.665037
"""test page for Flask and Heroku""" from flask import Flask, render_template app = Flask(__name__) # make the application #APP = Flask(__name__) # app = Flask(__name__) # make the route @app.route("/") def create_app(): return "Testing text for Reddit and Heroku..." # # make second route # @app.rout...
0
63
0
0
0
0
0
17
22
9fd22edfa5eceb96f9723497e0ac8f9561721dae
2,058
py
Python
src/rejection-sampling.py
waidotto/ridgelet-transform-numerial-experiment
2af1dc969347031c64e168cf071eb13d9ac1824c
[ "MIT" ]
4
2018-09-01T11:13:27.000Z
2020-10-12T02:37:44.000Z
src/rejection-sampling.py
waidotto/ridgelet-transform-numerial-experiment
2af1dc969347031c64e168cf071eb13d9ac1824c
[ "MIT" ]
null
null
null
src/rejection-sampling.py
waidotto/ridgelet-transform-numerial-experiment
2af1dc969347031c64e168cf071eb13d9ac1824c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import numpy as np import numpy.matlib import random # with open('./temp/setting.py') as f: exec(f.read()) # dist = np.loadtxt('./output/numerical-ridgelet.txt', usecols = range(J)) Max = np.max(np.abs(dist)) Min = np.min(np.abs(dist)) j = 0 tries = 0 a = np.zeros(number_of_hidden_nodes)...
31.181818
107
0.675413
#!/usr/bin/env python #棄却法でオラクル分布から重みを生成する import numpy as np import numpy.matlib import random #活性化関数 def eta(x): return np.exp(-np.square(x) / 2.0) #Gauss関数(正規分布) with open('./temp/setting.py') as f: exec(f.read()) #ファイル読み込み dist = np.loadtxt('./output/numerical-ridgelet.txt', usecols = range(J)) Max = np.max(...
243
0
0
0
0
35
0
0
22
683e7aa77fe877b11bcdb26830e44c9fdd51947e
37,216
py
Python
streetlearn/python/experiment.py
turningpoint1988/streetlearn
dd348cb811064582a77abe855b9ac15799e4a1ef
[ "Apache-2.0" ]
null
null
null
streetlearn/python/experiment.py
turningpoint1988/streetlearn
dd348cb811064582a77abe855b9ac15799e4a1ef
[ "Apache-2.0" ]
null
null
null
streetlearn/python/experiment.py
turningpoint1988/streetlearn
dd348cb811064582a77abe855b9ac15799e4a1ef
[ "Apache-2.0" ]
1
2020-03-05T05:47:59.000Z
2020-03-05T05:47:59.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.535714
80
0.698974
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
1,578
0
5,091
0
1,657
0
0
392
71bc2a94d3426bf643f33724f7b75457cdb6f2da
1,065
py
Python
connect_four/evaluation/victor/evaluator/evaluator_test_4x6.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/evaluation/victor/evaluator/evaluator_test_4x6.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/evaluation/victor/evaluator/evaluator_test_4x6.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
26.625
62
0.50892
import gym import unittest import numpy as np from connect_four.evaluation.board import Board from connect_four.evaluation.victor.evaluator import evaluator from connect_four.envs.connect_four_env import ConnectFourEnv class TestEvaluator4x6(unittest.TestCase): def setUp(self) -> None: self.env = gym.ma...
0
0
0
771
0
0
0
93
135
01624a2fdd9adbb7bf8aa0b20f87a2a702fbf57f
603
py
Python
mysite/account/migrations/0003_auto_20170803_1146.py
ismailtimo29/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
1
2021-03-03T22:25:23.000Z
2021-03-03T22:25:23.000Z
mysite/account/migrations/0003_auto_20170803_1146.py
akhadov11/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
null
null
null
mysite/account/migrations/0003_auto_20170803_1146.py
akhadov11/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-03 11:46 from __future__ import unicode_literals
26.217391
137
0.674959
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-03 11:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20170...
0
0
0
358
0
0
0
41
90
0b26289b27f146c186dfd97f3623746cf47ec55e
2,650
py
Python
hub.py
nshahr/Data-Visualization
ddb6b8f19ab047eb7a583f57928470e588ae90ed
[ "Apache-2.0" ]
null
null
null
hub.py
nshahr/Data-Visualization
ddb6b8f19ab047eb7a583f57928470e588ae90ed
[ "Apache-2.0" ]
null
null
null
hub.py
nshahr/Data-Visualization
ddb6b8f19ab047eb7a583f57928470e588ae90ed
[ "Apache-2.0" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib import style from os import path style.use('ggplot') rcParams.update({'font.size': 20}) fig, axes = plt.subplots(nrows=8, ncols=1, sharex=True, figsize=(30, 30)) df7 = pd.read_csv('Algonquin_Citygate.csv') a = df7.plot...
35.810811
157
0.70717
import pandas as pd import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib import style from os import path import numpy as np style.use('ggplot') rcParams.update({'font.size': 20}) fig, axes = plt.subplots(nrows=8, ncols=1, sharex=True, figsize=(30, 30)) df7 = pd.read_csv('Algonquin_Citygate...
0
0
0
0
0
0
0
-3
22
c1e8224502d2061ca3f04b40f2c3e24a1cd3ac47
75
py
Python
cts/taps/__init__.py
twbarber/dryhop-tap-scraper
52942e3ae133c2454b23cbc76a4ada31ddea212a
[ "MIT" ]
1
2017-09-12T16:30:56.000Z
2017-09-12T16:30:56.000Z
cts/taps/__init__.py
twbarber/dryhop-tap-scraper
52942e3ae133c2454b23cbc76a4ada31ddea212a
[ "MIT" ]
null
null
null
cts/taps/__init__.py
twbarber/dryhop-tap-scraper
52942e3ae133c2454b23cbc76a4ada31ddea212a
[ "MIT" ]
null
null
null
from cts.taps.corridor import get_menu
37.5
38
0.853333
from cts.taps.corridor import get_menu from cts.taps.dryhop import get_menu
0
0
0
0
0
0
0
15
22
cb9f5fd1884f4b0cfe841dbe2558230c6e815503
2,791
py
Python
Kode/Cleaning.py
emborg60/EAP_EF
ea69d79a2dafd4b1d913ab37bf7ecc6d950d6ab8
[ "MIT" ]
null
null
null
Kode/Cleaning.py
emborg60/EAP_EF
ea69d79a2dafd4b1d913ab37bf7ecc6d950d6ab8
[ "MIT" ]
null
null
null
Kode/Cleaning.py
emborg60/EAP_EF
ea69d79a2dafd4b1d913ab37bf7ecc6d950d6ab8
[ "MIT" ]
1
2021-04-23T02:25:45.000Z
2021-04-23T02:25:45.000Z
# Initial cleaning the comment data # Load the Pandas libraries with alias 'pd' import pandas as pd from os import listdir import re # Get names in dir: lFiles = listdir(r'Data\Archive') lFiles.pop() df = pd.DataFrame() lFiles = lFiles[40:] print(str(lFiles[0]) + str(lFiles[-1])) for f in lFiles: dfTemp = pd.re...
32.453488
243
0.64493
# Initial cleaning the comment data # Load the Pandas libraries with alias 'pd' import pandas as pd from os import listdir import re import html.parser # Get names in dir: lFiles = listdir(r'Data\Archive') lFiles.pop() df = pd.DataFrame() lFiles = lFiles[40:] print(str(lFiles[0]) + str(lFiles[-1])) for f in lFiles:...
18
0
0
0
0
0
0
-3
22
6941cf407050ffd905ed567598069101eb6ccdbd
206
py
Python
Ex005/Ex005.py
gleissonbispo/python-curso-em-video
1f764751eb353f9436e953361dab7c937d8c4f9f
[ "MIT" ]
null
null
null
Ex005/Ex005.py
gleissonbispo/python-curso-em-video
1f764751eb353f9436e953361dab7c937d8c4f9f
[ "MIT" ]
null
null
null
Ex005/Ex005.py
gleissonbispo/python-curso-em-video
1f764751eb353f9436e953361dab7c937d8c4f9f
[ "MIT" ]
null
null
null
n1 = int(input('Digite um nmero: ')) d = n1 * 2 t = n1 * 3 r = n1 ** (1 / 2) print(f"""Voc digitou: {n1}! \nO dobro deste nmero : {d} \nO triplo deste nmero : {t} A raiz deste nmero : {r:.2f}""")
22.888889
90
0.567961
n1 = int(input('Digite um número: ')) d = n1 * 2 t = n1 * 3 r = n1 ** (1 / 2) print(f"""Você digitou: {n1}! \nO dobro deste número é: {d} \nO triplo deste número é: {t} A raiz deste número é: {r:.2f}""")
16
0
0
0
0
0
0
0
0
72e03ff14d19124c9ba874952045ff123cff8075
1,517
py
Python
resultScripts/findResultDateTimes.py
SCECcode/CSEPcode
fcd9432b48bdabc6daa20e0746ffd19a9537511c
[ "BSD-3-Clause" ]
null
null
null
resultScripts/findResultDateTimes.py
SCECcode/CSEPcode
fcd9432b48bdabc6daa20e0746ffd19a9537511c
[ "BSD-3-Clause" ]
null
null
null
resultScripts/findResultDateTimes.py
SCECcode/CSEPcode
fcd9432b48bdabc6daa20e0746ffd19a9537511c
[ "BSD-3-Clause" ]
1
2020-07-26T14:29:48.000Z
2020-07-26T14:29:48.000Z
# # This contains utilities to convert the starttime endtime (and # result_interval) into a series of result dates. These result dates # are put into an array, and then processing is done for each expected # result date. This may need to be generalized to calculated expected result datetimes that # are not one-day-mode...
34.477273
97
0.711272
# # This contains utilities to convert the starttime endtime (and # result_interval) into a series of result dates. These result dates # are put into an array, and then processing is done for each expected # result date. This may need to be generalized to calculated expected result datetimes that # are not one-day-mode...
0
0
0
0
0
0
0
0
0
18234d8afa07441209c5c3269d39c2681c0b8d0f
3,010
py
Python
pandajedi/jedimsgprocessor/atlas_idds_msg_processor.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
2
2020-04-17T10:24:09.000Z
2020-05-12T17:59:06.000Z
pandajedi/jedimsgprocessor/atlas_idds_msg_processor.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
20
2015-08-25T13:40:14.000Z
2022-03-29T12:50:46.000Z
pandajedi/jedimsgprocessor/atlas_idds_msg_processor.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
10
2015-05-27T14:01:42.000Z
2021-09-20T17:38:02.000Z
from pandacommon.pandalogger import logger_utils # logger base_logger = logger_utils.setup_logger(__name__.split('.')[-1]) # Atlas iDDS message processing plugin, a bridge connect to other idds related message processing plugins
43
126
0.662791
import json from pandajedi.jedimsgprocessor.base_msg_processor import BaseMsgProcPlugin from pandajedi.jedimsgprocessor.tape_carousel_msg_processor import TapeCarouselMsgProcPlugin from pandajedi.jedimsgprocessor.hpo_msg_processor import HPOMsgProcPlugin from pandajedi.jedimsgprocessor.processing_msg_processor import ...
0
0
0
2,410
0
0
0
233
133
c56c6a9dc35897abbea9160100749c193d0f2019
255
py
Python
pycode/Visitor.py
mrybarczyk/UG-market-python
9051cb9373fa060c6d8e4eecdcb9ecaeaa1576b3
[ "MIT" ]
null
null
null
pycode/Visitor.py
mrybarczyk/UG-market-python
9051cb9373fa060c6d8e4eecdcb9ecaeaa1576b3
[ "MIT" ]
null
null
null
pycode/Visitor.py
mrybarczyk/UG-market-python
9051cb9373fa060c6d8e4eecdcb9ecaeaa1576b3
[ "MIT" ]
null
null
null
NOT_IMPLEMENTED = "You should implement this."
19.615385
51
0.705882
from abc import ABCMeta, abstractmethod NOT_IMPLEMENTED = "You should implement this." class Visitor: __metaclass__ = ABCMeta @abstractmethod def visit(self, element, value): raise NotImplementedError(NOT_IMPLEMENTED)
0
84
0
52
0
0
0
18
47
695ef3a4bee1ed144cf7dddfa1aa9fd8dc596639
656
py
Python
articles/urls.py
dmahon10/django-tiered-membership-web-app
a2b8ba345d3e814aa44422f7b61016538c52de61
[ "MIT" ]
null
null
null
articles/urls.py
dmahon10/django-tiered-membership-web-app
a2b8ba345d3e814aa44422f7b61016538c52de61
[ "MIT" ]
null
null
null
articles/urls.py
dmahon10/django-tiered-membership-web-app
a2b8ba345d3e814aa44422f7b61016538c52de61
[ "MIT" ]
null
null
null
from django.urls import path from .views import (FreeArticleDetailView, FreeArticleListView, PremiumArticleDetailView, PremiumArticleListView, SearchResultsListView) urlpatterns = [ path('free/', FreeArticleListView.as_view(), name='free_article_list'), path('premium/', PremiumArticleListView.as_view(), name=...
43.733333
99
0.724085
from django.urls import path from .views import (FreeArticleDetailView, FreeArticleListView, PremiumArticleDetailView, PremiumArticleListView, SearchResultsListView) urlpatterns = [ path('free/', FreeArticleListView.as_view(), name='free_article_list'), path('premium/',...
0
0
0
0
0
0
0
40
0
5e1e6700b9db565b2c3b2d225d6bb8ea7c33c049
1,565
py
Python
examples/example1.py
mtingers/timedlist
3efc23c0aef61d2a45bd8a33a04c0cb4234cc1cf
[ "MIT" ]
null
null
null
examples/example1.py
mtingers/timedlist
3efc23c0aef61d2a45bd8a33a04c0cb4234cc1cf
[ "MIT" ]
null
null
null
examples/example1.py
mtingers/timedlist
3efc23c0aef61d2a45bd8a33a04c0cb4234cc1cf
[ "MIT" ]
null
null
null
import time from timedlist import TimedList # Create a TimedList object that will remove items older than 10 seconds within # 3% of maxtime tl1 = TimedList(maxtime=10, filled_percent=3.0) tl2 = TimedList(maxtime=10, filled_percent=3.0) for i in range(20): tl1.append(time.time(), i) time.sleep(0.75) print(...
26.525424
93
0.689457
import time from timedlist import TimedList # Create a TimedList object that will remove items older than 10 seconds within # 3% of maxtime tl1 = TimedList(maxtime=10, filled_percent=3.0) tl2 = TimedList(maxtime=10, filled_percent=3.0) for i in range(20): tl1.append(time.time(), i) time.sleep(0.75) print(...
0
0
0
0
0
0
0
0
0
7f2312bb9764817717d742d29b2cce4e10f3bd41
5,354
py
Python
main.py
cm-amaya/UNet_Multiclass
96132440c975790b31e332e42659e9599e092099
[ "MIT" ]
15
2020-04-30T06:30:01.000Z
2022-01-19T13:15:20.000Z
main.py
cm-amaya/UNet_Multiclass
96132440c975790b31e332e42659e9599e092099
[ "MIT" ]
5
2020-01-28T23:00:33.000Z
2022-02-10T00:46:07.000Z
main.py
cm-amaya/UNet_Multiclass
96132440c975790b31e332e42659e9599e092099
[ "MIT" ]
7
2020-07-22T13:17:17.000Z
2021-03-23T14:14:20.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import keras import argparse import numpy as np import tensorflow as tf from keras import backend as K import matplotlib.pyplot as plt import segmentation_models as sm from utils import freeze_session from data_loader import D...
36.421769
135
0.769145
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import keras import argparse import numpy as np import tensorflow as tf from keras import backend as K import matplotlib.pyplot as plt import segmentation_models as sm from utils import visualize, freeze_session from data_load...
0
0
0
0
0
0
0
16
22
c70a4aa8753833fdc71d30a4953f29307cb08d66
609
py
Python
setup.py
godber/gdal_pds
169d88e9399e23202b7bfce11d1b93a5af720461
[ "MIT" ]
null
null
null
setup.py
godber/gdal_pds
169d88e9399e23202b7bfce11d1b93a5af720461
[ "MIT" ]
3
2015-04-07T01:09:40.000Z
2015-04-07T01:10:11.000Z
setup.py
godber/gdal_pds
169d88e9399e23202b7bfce11d1b93a5af720461
[ "MIT" ]
1
2015-03-30T23:32:20.000Z
2015-03-30T23:32:20.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A PDS Image library based on the GDAL implementation.', 'author': 'Austin Godber', 'url': 'https://github.com/godber/gdal_pds', 'download_url': 'https://github.com/godber/gdal_pds',...
25.375
75
0.597701
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A PDS Image library based on the GDAL implementation.', 'author': 'Austin Godber', 'url': 'https://github.com/godber/gdal_pds', 'download_url': 'https://github.com/godber/gdal_pds',...
0
0
0
0
0
0
0
0
0
488c100370de8c11bdbe7c8165d4bfec90a5f641
104
py
Python
mayan/apps/django_gpg/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/django_gpg/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
7
2020-06-06T00:01:04.000Z
2022-01-13T01:47:17.000Z
mayan/apps/django_gpg/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals default_app_config = 'mayan.apps.django_gpg.apps.DjangoGPGApp'
26
62
0.855769
from __future__ import unicode_literals default_app_config = 'mayan.apps.django_gpg.apps.DjangoGPGApp'
0
0
0
0
0
0
0
0
0
bda9477aa12f70971cfc3d2d33596de1e3f83667
13,319
py
Python
tutorials/FRDEEP.py
erikauer/as595.github.io
e714e7877add0db025d232a5f107563070238e04
[ "MIT" ]
null
null
null
tutorials/FRDEEP.py
erikauer/as595.github.io
e714e7877add0db025d232a5f107563070238e04
[ "MIT" ]
9
2020-03-24T17:36:39.000Z
2022-03-11T23:59:32.000Z
tutorials/FRDEEP.py
erikauer/as595.github.io
e714e7877add0db025d232a5f107563070238e04
[ "MIT" ]
2
2019-09-20T14:33:14.000Z
2019-09-29T08:27:30.000Z
from __future__ import print_function import os import sys if sys.version_info[0] == 2: import cPickle as pickle else: import torch.utils.data as data
38.383285
110
0.582326
from __future__ import print_function from PIL import Image import os import os.path import numpy as np import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle import torch.utils.data as data from torchvision.datasets.utils import download_url, check_integrity class FRDEEPN(data....
0
0
0
12,971
0
0
0
29
160
6aaaed888930d6f10008eb732635a21cb73e4854
6,621
py
Python
yardstick/benchmark/runners/arithmetic.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/arithmetic.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/arithmetic.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
32.940299
96
0.631325
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
0
0
0
1,603
0
3,535
0
-13
225
5067993b7ec89138d4e0e59fdcba76e0ee25ffb2
476
py
Python
sonsuz_website/news/api/api_router.py
Jairoguo/Populus-Euphratica-Service
0032446b39b6902fa938ee771313a5602e0646b2
[ "MIT" ]
null
null
null
sonsuz_website/news/api/api_router.py
Jairoguo/Populus-Euphratica-Service
0032446b39b6902fa938ee771313a5602e0646b2
[ "MIT" ]
null
null
null
sonsuz_website/news/api/api_router.py
Jairoguo/Populus-Euphratica-Service
0032446b39b6902fa938ee771313a5602e0646b2
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from sonsuz_website.news.api.views import NewsViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("", NewsViewSet) # router.register("upload-image", NewsImageViewSet) u...
28
84
0.810924
from dj_rest_auth.registration.views import VerifyEmailView from django.conf import settings from django.urls import path, include from rest_framework.routers import DefaultRouter, SimpleRouter from sonsuz_website.news.api.views import NewsViewSet, NewsImageViewSet, upload_file if settings.DEBUG: router = Defaul...
0
0
0
0
0
0
0
85
45
372ca61a71687fd3a333fd31e02bbcacc1d13a10
6,440
py
Python
past-exams/2017-01-13-midterm/exercises/exercise3.py
DavidLeoni/algolab
b1c8bb3667aa1f1f08f5a37ce3fa049c7eb2c9cd
[ "Apache-2.0" ]
null
null
null
past-exams/2017-01-13-midterm/exercises/exercise3.py
DavidLeoni/algolab
b1c8bb3667aa1f1f08f5a37ce3fa049c7eb2c9cd
[ "Apache-2.0" ]
1
2017-01-24T15:29:14.000Z
2017-01-24T15:29:14.000Z
past-exams/2017-01-13-midterm/exercises/exercise3.py
DavidLeoni/algolab
b1c8bb3667aa1f1f08f5a37ce3fa049c7eb2c9cd
[ "Apache-2.0" ]
null
null
null
#unittest.main()
28.370044
86
0.507298
import unittest class Node: """ A Node of an UnorderedList. Holds data provided by the user. """ def __init__(self,initdata): self._data = initdata self._next = None def get_data(self): return self._data def get_next(self): return self._next def set_data(self...
0
0
0
6,304
0
0
0
-6
115
37d14812041d57bca7d7a4b8b439606e3e21f6ec
743
py
Python
cursorless-talon/src/modifiers/head_tail.py
trace-andreason/cursorless-vscode
b47fa9d2d6c1aa1170b473b9f5ac1ee1cdd09395
[ "MIT" ]
22
2021-05-06T06:18:42.000Z
2022-01-23T19:21:05.000Z
cursorless-talon/src/modifiers/head_tail.py
trace-andreason/cursorless-vscode
b47fa9d2d6c1aa1170b473b9f5ac1ee1cdd09395
[ "MIT" ]
71
2021-06-22T19:38:14.000Z
2022-01-25T14:48:36.000Z
cursorless-talon/src/modifiers/head_tail.py
trace-andreason/cursorless-vscode
b47fa9d2d6c1aa1170b473b9f5ac1ee1cdd09395
[ "MIT" ]
12
2021-05-12T19:30:34.000Z
2022-01-16T14:17:16.000Z
from talon import Module mod = Module() mod.list("cursorless_head_tail", desc="Cursorless modifier for head or tail of line") head_tail_list = [ HeadTail("head", "extendThroughStartOf", "head"), HeadTail("tail", "extendThroughEndOf", "tail"), ] head_tail_map = {i.cursorlessIdentifier: i.type for i in head_t...
24.766667
85
0.711978
from talon import Module from dataclasses import dataclass mod = Module() mod.list("cursorless_head_tail", desc="Cursorless modifier for head or tail of line") @dataclass class HeadTail: defaultSpokenForm: str cursorlessIdentifier: str type: str head_tail_list = [ HeadTail("head", "extendThroughSta...
0
250
0
0
0
0
0
12
68
5d00e06782e0c961f27b48bc12c77ff21088700b
1,832
py
Python
stac_fastapi/sqlalchemy/setup.py
moradology/stac-fastapi
c3dd27d0a2f5129f36904dd521d7bff22460c306
[ "MIT" ]
null
null
null
stac_fastapi/sqlalchemy/setup.py
moradology/stac-fastapi
c3dd27d0a2f5129f36904dd521d7bff22460c306
[ "MIT" ]
null
null
null
stac_fastapi/sqlalchemy/setup.py
moradology/stac-fastapi
c3dd27d0a2f5129f36904dd521d7bff22460c306
[ "MIT" ]
null
null
null
"""arturo-stac-api.""" import os from imp import load_source from setuptools import find_namespace_packages, setup with open("README.md") as f: desc = f.read() # Get version from stac-fastapi-api __version__ = load_source( "stac_fastapi.sqlalchemy.version", os.path.join(os.path.dirname(__file__), "stac_f...
28.184615
82
0.66048
"""arturo-stac-api.""" import os from imp import load_source from setuptools import find_namespace_packages, setup with open("README.md") as f: desc = f.read() # Get version from stac-fastapi-api __version__ = load_source( "stac_fastapi.sqlalchemy.version", os.path.join(os.path.dirname(__file__), "stac_f...
0
0
0
0
0
0
0
0
0
6af4e3e2b416e148a819a3539ef75e3c1649d218
4,043
py
Python
{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/cli.py
pcrespov/cookiecutter-simcore-pyservice
4c35ae839373cb3f28effd612350f2e5f2ee9ce9
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/cli.py
pcrespov/cookiecutter-simcore-pyservice
4c35ae839373cb3f28effd612350f2e5f2ee9ce9
[ "MIT" ]
8
2018-10-10T16:56:55.000Z
2022-02-09T18:17:12.000Z
{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/cli.py
pcrespov/cookiecutter-simcore-pyservice
4c35ae839373cb3f28effd612350f2e5f2ee9ce9
[ "MIT" ]
3
2018-10-08T16:15:44.000Z
2020-05-14T10:18:39.000Z
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m{{cookiecutter.package_name}}` python will execute `...
31.834646
91
0.702943
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m{{cookiecutter.package_name}}` python will execute `...
0
0
0
0
0
1,206
0
70
158
301470b55867a4dc06c4d0aa830683d6f54aa492
2,273
py
Python
main.py
carloshernangarrido/whatsapp_sender
1489bc6cf12e1557e6e85a5ed2f15e4ba3b86a19
[ "MIT" ]
null
null
null
main.py
carloshernangarrido/whatsapp_sender
1489bc6cf12e1557e6e85a5ed2f15e4ba3b86a19
[ "MIT" ]
null
null
null
main.py
carloshernangarrido/whatsapp_sender
1489bc6cf12e1557e6e85a5ed2f15e4ba3b86a19
[ "MIT" ]
null
null
null
import pywhatkit from datetime import datetime as dt, timedelta from functions import e164, close_tab, wait_seconds import openpyxl as xl import myexceptions as ex import os wellcome_message = """ ******************************************************************************** ********************* Whatsapp...
32.014085
88
0.611527
import pywhatkit from datetime import datetime as dt, timedelta from functions import e164, close_tab, wait_seconds import openpyxl as xl import myexceptions as ex import os wellcome_message = """ ******************************************************************************** ********************* Whatsapp...
30
0
0
0
0
0
0
0
0
b605eb5c47df3489b22c2cd717704f0094912a34
889
py
Python
python/Merge-Two-Sorted-Lists/sol.py
yutong-xie/Leetcode-with-python
6578f288a757bf76213030b73ec3319a7baa2661
[ "MIT" ]
null
null
null
python/Merge-Two-Sorted-Lists/sol.py
yutong-xie/Leetcode-with-python
6578f288a757bf76213030b73ec3319a7baa2661
[ "MIT" ]
null
null
null
python/Merge-Two-Sorted-Lists/sol.py
yutong-xie/Leetcode-with-python
6578f288a757bf76213030b73ec3319a7baa2661
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright 2020, Yutong Xie, UIUC. Using iteration two merge two sorted linked list ''' # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next
22.794872
52
0.475816
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright 2020, Yutong Xie, UIUC. Using iteration two merge two sorted linked list ''' # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solutio...
0
0
0
560
0
0
0
0
22
fc688e689304e672905c8ffbb576f49336056119
3,742
py
Python
eh_sample_report.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
null
null
null
eh_sample_report.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
5
2020-07-06T14:02:59.000Z
2021-04-08T20:01:41.000Z
eh_sample_report.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
null
null
null
''' reads in disease threshold annotated EH results splits annotation into different columns fills outlier column with sample name if GT is in disease threshold adds mean, std, median GT sizes from 1000Genomes EH runs (static file) writes o/p as excel file ''' import sys, os from collections import namedtuple from xls...
33.115044
153
0.54356
''' reads in disease threshold annotated EH results splits annotation into different columns fills outlier column with sample name if GT is in disease threshold adds mean, std, median GT sizes from 1000Genomes EH runs (static file) writes o/p as excel file ''' import sys, os, re from collections import namedtuple from...
0
0
0
0
0
1,331
0
4
23
233bb0a92b51583bc7c40dc4baaf8051b0fecbf4
3,402
py
Python
PageRank.py
josndan/urabn-fortnight
5f0413997bea4298f83e1029e26e8ea78a57ac65
[ "MIT" ]
null
null
null
PageRank.py
josndan/urabn-fortnight
5f0413997bea4298f83e1029e26e8ea78a57ac65
[ "MIT" ]
null
null
null
PageRank.py
josndan/urabn-fortnight
5f0413997bea4298f83e1029e26e8ea78a57ac65
[ "MIT" ]
null
null
null
import pandas as pd import os.path as path import pickle webGraph = None if path.exists("web.pkl"): with open("web.pkl", "rb") as f: webGraph = pickle.load(f) else: df = pd.read_csv('links.srt.gz', compression='gzip', header=None, sep='\t') webGraph = Web(df) with open("web.pkl", "wb") as f: ...
29.842105
109
0.501764
import pandas as pd import os.path as path import pickle import collections as c import numpy as np import math class Web: def __init__(self, df): self.graph = {} count = 0 for __, row in df.iterrows(): if row[0] in self.graph: self.graph[row[0]].add(row[1]) ...
0
0
0
2,841
0
0
0
-11
89
81f4cc63dd0d4b35c1e0e62c0ef94cfa66751796
1,808
py
Python
geonition_utils/views.py
geonition/django_geonition_utils
75a28e82509f7b69f3817cdf56119e7fdc0315aa
[ "MIT" ]
1
2015-11-05T15:17:09.000Z
2015-11-05T15:17:09.000Z
geonition_utils/views.py
geonition/django_geonition_utils
75a28e82509f7b69f3817cdf56119e7fdc0315aa
[ "MIT" ]
null
null
null
geonition_utils/views.py
geonition/django_geonition_utils
75a28e82509f7b69f3817cdf56119e7fdc0315aa
[ "MIT" ]
null
null
null
""" This file contains view classes that can be used in other applications. """
29.16129
71
0.581305
""" This file contains view classes that can be used in other applications. """ from geonition_utils.http import HttpResponseNotImplemented from django.views.generic import View class RequestHandler(View): """ This class should be inherited by the view classes to be used for implementing REST """ d...
0
0
0
1,579
0
0
0
54
67
73d073a7796469e2667913416885c8698b383e53
833
py
Python
modules/xia2/Test/regression/test_insulin.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/xia2/Test/regression/test_insulin.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/xia2/Test/regression/test_insulin.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function expected_data_files = [ "AUTOMATIC_DEFAULT_NATIVE_SWEEP1_INTEGRATE.mtz", "AUTOMATIC_DEFAULT_free.mtz", "AUTOMATIC_DEFAULT_scaled.sca", "AUTOMATIC_DEFAULT_scaled_unmerged.mtz", "AUTOMATIC_DEFAULT_scaled_unmerged.sca", ]
28.724138
83
0.726291
from __future__ import absolute_import, division, print_function import procrunner import pytest import xia2.Test.regression expected_data_files = [ "AUTOMATIC_DEFAULT_NATIVE_SWEEP1_INTEGRATE.mtz", "AUTOMATIC_DEFAULT_free.mtz", "AUTOMATIC_DEFAULT_scaled.sca", "AUTOMATIC_DEFAULT_scaled_unmerged.mtz", ...
0
0
0
0
0
443
0
-6
90
428c8d656814598817087448fc7eac71b0aa8f84
1,214
py
Python
LeetCode/0297_serialize_deserialize_binary_tree.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
1
2020-05-13T19:16:23.000Z
2020-05-13T19:16:23.000Z
LeetCode/0297_serialize_deserialize_binary_tree.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
LeetCode/0297_serialize_deserialize_binary_tree.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
tree = "1,2,3,None,None,4,5" print(serialize(deserialize(tree)))
20.931034
69
0.51318
from collections import deque class Node: def __init__(self, val): self.val = val self.left = None self.right = None def serialize(root): if not root: return "" data = [root.val] queue = deque([root]) while queue: cur = queue.popleft() if cur.left: ...
0
0
0
93
0
957
0
8
91
db0abe20790d8a97ecf0aabdd2c643bc1e52e945
2,434
py
Python
airflow/dags/helpers.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
6
2018-02-16T15:07:17.000Z
2020-10-09T09:34:29.000Z
airflow/dags/helpers.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
107
2018-03-29T14:55:33.000Z
2021-12-13T19:44:50.000Z
airflow/dags/helpers.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
1
2021-03-03T21:02:33.000Z
2021-03-03T21:02:33.000Z
# -*- coding: utf-8 -*-
28.635294
81
0.661463
# -*- coding: utf-8 -*- import re from datetime import timedelta from airflow.models import Variable from airflow.operators.bash_operator import BashOperator def base_path(): return Variable.get("BASE_PATH") def opendata_sql_path(filename): return "{base}/opendata_sql/{filename}.sql".format( base=b...
0
0
0
0
0
2,035
0
46
319
428b1642c7b699cb079961e02bb144b23feada71
3,079
py
Python
music/index/migrations/0001_initial.py
xeroCBW/music
ba73151b35dbc898cfb56f1576aa7695f2d61fe9
[ "MIT" ]
null
null
null
music/index/migrations/0001_initial.py
xeroCBW/music
ba73151b35dbc898cfb56f1576aa7695f2d61fe9
[ "MIT" ]
null
null
null
music/index/migrations/0001_initial.py
xeroCBW/music
ba73151b35dbc898cfb56f1576aa7695f2d61fe9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2020-06-01 12:28
45.279412
129
0.58558
# Generated by Django 2.0.2 on 2020-06-01 12:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Comment', fields=[ ...
216
0
0
2,860
0
0
0
30
68
561630ce561a10a2096813a2c5d825743feae1a4
10,097
py
Python
image2pptx.py
taC-h/image2pptx
40180b02eb4139254da9768b358e8b598af63b39
[ "MIT" ]
null
null
null
image2pptx.py
taC-h/image2pptx
40180b02eb4139254da9768b358e8b598af63b39
[ "MIT" ]
null
null
null
image2pptx.py
taC-h/image2pptx
40180b02eb4139254da9768b358e8b598af63b39
[ "MIT" ]
null
null
null
#python3.8.3 #IO #GUI import tkinter as tk if __name__ == "__main__": root = tk.Tk() root.title("image2pptx2.0") root.geometry("200x150") app = Application(master=root) app.mainloop()
33.323432
165
0.564029
#python3.8.3 import itertools import os import pathlib import shutil #IO from pptx import Presentation from PIL import Image from pdf2image import convert_from_path import json from io import BytesIO import subprocess from glob import glob #GUI import tkinter as tk import tkinter.filedialog as dialog from tkinter.mes...
756
0
0
9,299
0
0
0
28
309
5ce752c889fc25d620eef3e990d367d8eaa922be
9,047
py
Python
util/analysis/test_value_est.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
15
2020-10-20T22:09:36.000Z
2021-12-24T13:40:36.000Z
util/analysis/test_value_est.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
null
null
null
util/analysis/test_value_est.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
1
2020-10-23T19:48:06.000Z
2020-10-23T19:48:06.000Z
import comet_ml import numpy as np import json import torch import copy import time import math from lib import create_agent from lib.distributions import kl_divergence from util.env_util import create_env, SynchronousEnv from util.plot_util import load_checkpoint from local_vars import PROJECT_NAME, WORKSPACE, LOADING...
49.437158
127
0.674699
import comet_ml import numpy as np import json import torch import copy import time import math from lib import create_agent from lib.distributions import kl_divergence from util.env_util import create_env, SynchronousEnv from util.train_util import collect_episode from util.plot_util import load_checkpoint from local_...
0
0
0
0
0
0
0
39
22
a6c61e39a7319302b8822328a3554a95e3af023d
344
py
Python
8.sets/1.access_sets.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
8.sets/1.access_sets.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
8.sets/1.access_sets.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
names = {'anonymous','tazri','focasa','troy','farha'}; # can use for loop for access names sets for name in names : print("Hello, "+name.title()+"!"); # can check value is exist in sets ? print("\n'tazri' in names : ",'tazri' in names); print("'solus' not in names : ",'solus' not in names); print("'xenon' in name...
34.4
54
0.633721
names = {'anonymous','tazri','focasa','troy','farha'}; # can use for loop for access names sets for name in names : print("Hello, "+name.title()+"!"); # can check value is exist in sets ? print("\n'tazri' in names : ",'tazri' in names); print("'solus' not in names : ",'solus' not in names); print("'xenon' in name...
0
0
0
0
0
0
0
0
0
b18a67b5ab80634d4413a7691e9929d2eac91aa5
2,919
py
Python
test_ee101_1wire.py
tge96/ee101-macOS-py
a38e01bd297c857d2b583578ed7aceb2c94e59c9
[ "MIT" ]
null
null
null
test_ee101_1wire.py
tge96/ee101-macOS-py
a38e01bd297c857d2b583578ed7aceb2c94e59c9
[ "MIT" ]
null
null
null
test_ee101_1wire.py
tge96/ee101-macOS-py
a38e01bd297c857d2b583578ed7aceb2c94e59c9
[ "MIT" ]
null
null
null
# $ python3 -m pip install pyserial # /dev/cu.usbserial-<XYZ> for mac, # ...you can find your XYZ using $ python3 -m serial.tools.list_ports -v # ...it might also be something like /dev/cu.usbmodem<XYZ>, depending on the USB Serial adapter # My XYZ is "FTVHYZXQ", which matches my USB Serial adapter, model n...
27.8
101
0.608428
# $ python3 -m pip install pyserial # /dev/cu.usbserial-<XYZ> for mac, # ...you can find your XYZ using $ python3 -m serial.tools.list_ports -v # ...it might also be something like /dev/cu.usbmodem<XYZ>, depending on the USB Serial adapter # My XYZ is "FTVHYZXQ", which matches my USB Serial adapter, model n...
0
0
0
0
0
499
0
0
46
d411df6e14986a4bb40cf52b0ddc2bf2f5fa40f3
265
py
Python
deepnlpf/dataset.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
3
2020-04-11T14:12:45.000Z
2020-05-30T16:31:06.000Z
deepnlpf/dataset.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
34
2020-03-20T19:36:40.000Z
2022-03-20T13:00:32.000Z
deepnlpf/dataset.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
1
2020-09-05T06:44:15.000Z
2020-09-05T06:44:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*-
16.5625
57
0.584906
#!/usr/bin/env python # -*- coding: utf-8 -*- class Dataset(object): def __init__(self): pass def save(self, path_dataset): pass def list_all(self): pass def delete(self, id_dataset=None, name_dataset=None): pass
0
0
0
197
0
0
0
0
23
971c36046d3fb526a5151fb57e223235fc7e90fc
1,613
py
Python
Part4-DataInteraction/disctlib/neighbour.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
7
2020-09-15T15:52:53.000Z
2021-05-19T17:51:56.000Z
Part4-DataInteraction/disctlib/neighbour.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
null
null
null
Part4-DataInteraction/disctlib/neighbour.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
49
2020-09-12T12:56:32.000Z
2021-12-30T13:27:38.000Z
# encoding: utf-8 ################################################## # This script interacts with data files to extract information and modify values given to a function. # It is part of an exercise in which data about districts and neighbourhoods are processed # Here we have the functions for manipulating information...
32.918367
101
0.561066
# encoding: utf-8 ################################################## # This script interacts with data files to extract information and modify values given to a function. # It is part of an exercise in which data about districts and neighbourhoods are processed # Here we have the functions for manipulating information...
0
0
0
0
0
682
0
-11
68
ba184b7176d88c41e1edd42ecd4603e89d007bf8
575
py
Python
articles/migrations/0002_auto_20200622_2013.py
ArifCengic/fool
376816c30eff0f6a740358db2d318efca44e9a7d
[ "Apache-2.0" ]
null
null
null
articles/migrations/0002_auto_20200622_2013.py
ArifCengic/fool
376816c30eff0f6a740358db2d318efca44e9a7d
[ "Apache-2.0" ]
3
2021-03-30T13:56:20.000Z
2021-06-04T23:31:08.000Z
articles/migrations/0002_auto_20200622_2013.py
ArifCengic/fool
376816c30eff0f6a740358db2d318efca44e9a7d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-22 20:13
23
74
0.591304
# Generated by Django 3.0.7 on 2020-06-22 20:13 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.RenameField( model_name='comment', ...
0
0
0
432
0
0
0
26
68
e6bc479af0a39ac467b8cffd2df00adc7ba58bda
8,508
py
Python
nicrabgrp/cli/nitimeconv.py
tenoto/nicrabgrp
e81954526d2db9c9b73fde47df27ae9855f52bcb
[ "MIT" ]
3
2020-04-17T06:49:24.000Z
2020-08-27T03:04:44.000Z
nicrabgrp/cli/nitimeconv.py
tenoto/nicrabgrp
e81954526d2db9c9b73fde47df27ae9855f52bcb
[ "MIT" ]
null
null
null
nicrabgrp/cli/nitimeconv.py
tenoto/nicrabgrp
e81954526d2db9c9b73fde47df27ae9855f52bcb
[ "MIT" ]
1
2021-07-20T08:51:06.000Z
2021-07-20T08:51:06.000Z
#!/usr/bin/env python __name__ = 'nitimeconv' __author__ = 'Teruaki Enoto' __version__ = '1.02' __date__ = '2018 April 11' from optparse import OptionParser from astropy.time import Time NICER_MJDREFI = 56658.0 NICER_MJDREFF = 0.000777592592592593 NICER_TIMEZERO = -1.0 #LEAP_INIT = 2.0 NICER_MET_ORIGIN...
41.502439
149
0.70851
#!/usr/bin/env python __name__ = 'nitimeconv' __author__ = 'Teruaki Enoto' __version__ = '1.02' __date__ = '2018 April 11' from optparse import OptionParser from astropy.time import Time NICER_MJDREFI = 56658.0 NICER_MJDREFF = 0.000777592592592593 NICER_TIMEZERO = -1.0 #LEAP_INIT = 2.0 NICER_MET_ORIGIN...
0
0
0
0
0
0
0
0
0
d49607a29050dc6539a5304ee8aaec240b59477a
206
py
Python
files/exercises/for-loops-reversing-a-string.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
null
null
null
files/exercises/for-loops-reversing-a-string.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
null
null
null
files/exercises/for-loops-reversing-a-string.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
1
2020-01-09T10:58:56.000Z
2020-01-09T10:58:56.000Z
#Fill in the blanks in the program below so that it prints nit (the reverse of the original character string tin). original = "tin" result = ____ for char in original: result = ____ print(result)
22.888889
118
0.723301
#Fill in the blanks in the program below so that it prints “nit” (the reverse of the original character string “tin”). original = "tin" result = ____ for char in original: result = ____ print(result)
12
0
0
0
0
0
0
0
0
b50e2be2dc49bb5ea2eb9a9cc36170c45939f152
8,005
py
Python
template_engine/step04_for_block/template.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
80
2020-06-04T01:34:30.000Z
2022-03-21T08:10:01.000Z
template_engine/step04_for_block/template.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
5
2021-02-09T01:02:09.000Z
2021-03-29T02:11:06.000Z
template_engine/step04_for_block/template.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
11
2020-11-06T01:11:11.000Z
2022-03-06T07:19:58.000Z
import re import typing OUTPUT_VAR = "_output_" INDENT = 1 UNINDENT = -1 INDENT_SPACES = 2 INDEX_VAR = "index" def extract_last_filter(text: str) -> (str, str): """ Extract last filter from expression like 'var | filter'. return (var, None) when no more filters found. """ m = re.search(r...
28.386525
93
0.598376
import re import typing OUTPUT_VAR = "_output_" INDENT = 1 UNINDENT = -1 INDENT_SPACES = 2 INDEX_VAR = "index" class LoopVar: def __init__(self, index: int): self.index = index self.index0 = index self.index1 = index + 1 class CodeBuilder: """Manage code generating context.""" ...
0
0
0
5,562
0
0
0
0
230
b0a6c15a95d1873d4bde8355c3aca42dbf0f77d5
2,775
py
Python
urls.py
heidi666/WorldsAtWar
59c49462ad250cbd1fec4d5875f3f103c57217cf
[ "MIT" ]
8
2016-04-04T15:48:07.000Z
2020-08-29T22:30:26.000Z
urls.py
heidi666/WorldsAtWar
59c49462ad250cbd1fec4d5875f3f103c57217cf
[ "MIT" ]
null
null
null
urls.py
heidi666/WorldsAtWar
59c49462ad250cbd1fec4d5875f3f103c57217cf
[ "MIT" ]
8
2016-04-03T22:34:06.000Z
2020-12-28T12:17:24.000Z
# Django Imports from django.conf.urls import patterns, include, url from django.views.generic import RedirectView from django.contrib import admin from django.views.generic.base import TemplateView from django.contrib.auth import views as auth_views from registration.backends.default.views import ActivationView from r...
40.808824
104
0.692973
# Django Imports from django.conf.urls import patterns, include, url from django.views.generic import RedirectView from django.contrib import admin from django.views.generic.base import TemplateView from django.contrib.auth import views as auth_views from registration.backends.default.views import ActivationView from r...
0
0
0
0
0
0
0
0
0
8450e9a6fa67fa3595dd0951f72ef26c8d4d3cc4
1,790
py
Python
jobs/get_us_history.py
shenzhongqiang/cnstock_py
2bb557657a646acb9d20d3ce78e15cf68390f8ea
[ "MIT" ]
2
2016-10-31T04:05:11.000Z
2017-04-17T08:46:53.000Z
jobs/get_us_history.py
shenzhongqiang/cnstock_py
2bb557657a646acb9d20d3ce78e15cf68390f8ea
[ "MIT" ]
null
null
null
jobs/get_us_history.py
shenzhongqiang/cnstock_py
2bb557657a646acb9d20d3ce78e15cf68390f8ea
[ "MIT" ]
null
null
null
import os.path import Queue us_dir = HIST_DIR['us'] if not os.path.isdir(us_dir): os.makedirs(us_dir) #for ticker in tickers: # for quote in quotes: # # open-high-low-close # day = num2date(quote[0]) # open = quote[1] # close = quote[2] # high = quote[...
26.323529
66
0.568156
import os.path import threading import Queue import cPickle as pickle import datetime from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import num2date from stock.globalvar import * us_dir = HIST_DIR['us'] if not os.path.isdir(us_dir): os.makedirs(us_dir) class Downloader(threading.Thre...
0
0
0
701
0
0
0
49
155
2e6b14a089bc3584daff4710286eaf001c0fa6b6
4,472
py
Python
21-fs-ias-lec/06-SecretSharing/secretsharingUI.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/06-SecretSharing/secretsharingUI.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/06-SecretSharing/secretsharingUI.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import sys from PyQt5.QtWidgets import (QApplication) from PyQt5.QtCore import QFile, QIODevice, QTextStream from FrontEnd.Tabs import act from FrontEnd.Dialogs import LoginDialog, RegisterDialog if __name__ == "__main__": app = QApplication(sys.argv) # Style from: https://github.com/sommerc/pyqt-styleshee...
35.776
108
0.673301
import sys import os import platform def setup_logging(): import logging log_formatter = logging.Formatter('%(msecs)dms %(funcName)s %(lineno)d %(message)s') log_filename = os.path.join("secret_sharing.log") log_filemode = "w" log_level = logging.DEBUG fh = logging.FileHandler(filename=log_fi...
0
0
0
2,787
0
516
0
180
112
cedd707f4d5fa5e06a5121ec8d49280192531d08
1,107
py
Python
plugins/DebugPlugin.py
Pigeoncraft/spock
391986f263f2e79e3b87725e8465e1392ecb55a8
[ "MIT" ]
1
2020-06-04T19:44:31.000Z
2020-06-04T19:44:31.000Z
plugins/DebugPlugin.py
Pigeoncraft/spock
391986f263f2e79e3b87725e8465e1392ecb55a8
[ "MIT" ]
null
null
null
plugins/DebugPlugin.py
Pigeoncraft/spock
391986f263f2e79e3b87725e8465e1392ecb55a8
[ "MIT" ]
null
null
null
#Constantly Changing, just a plugin I use to debug whatever is broken atm
30.75
80
0.724481
#Constantly Changing, just a plugin I use to debug whatever is broken atm import sys import threading from spock.mcmap import mapdata from spock.mcp import mcdata from spock.utils import pl_announce class DebugPlugin: def __init__(self, ploader, settings): for packet in mcdata.hashed_structs: ploader.reg_event_h...
0
0
0
886
0
0
0
15
133
0891dcf8937c113a00999c74b85be1fc9943969e
1,129
py
Python
tests/nsis_maker.py
Thiagojm/InfoVision
9a66d4469a2524bf3f5de22720c891881d6651ab
[ "MIT" ]
null
null
null
tests/nsis_maker.py
Thiagojm/InfoVision
9a66d4469a2524bf3f5de22720c891881d6651ab
[ "MIT" ]
null
null
null
tests/nsis_maker.py
Thiagojm/InfoVision
9a66d4469a2524bf3f5de22720c891881d6651ab
[ "MIT" ]
null
null
null
# Change parameters appname = "InfoVision" compname = "Conscienciology" descript = "Application for training remote viewing" vmajor = 1 vminor = 1 vbuild = 2 helpurl = "" updateurl = "" abouturl = "" installsize = 16692 iconpath = "src/images/tapa_olho.ico" builder = "py" # ------------------------------------------...
22.58
88
0.615589
from string import Template class MyTemplate(Template): delimiter = '&' # Change parameters appname = "InfoVision" compname = "Conscienciology" descript = "Application for training remote viewing" vmajor = 1 vminor = 1 vbuild = 2 helpurl = "" updateurl = "" abouturl = "" installsize = 16692 iconpath = "src/image...
0
0
0
26
0
0
0
6
45
f5a2d037bc6bddcfd5109a509fa031b1b3fc6138
5,492
py
Python
ven2/lib/python2.7/site-packages/persistent/list.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
34
2015-11-25T15:46:13.000Z
2021-08-04T02:17:46.000Z
ven2/lib/python2.7/site-packages/persistent/list.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
145
2015-03-16T06:38:56.000Z
2022-03-10T06:55:50.000Z
ven2/lib/python2.7/site-packages/persistent/list.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
24
2015-03-22T04:39:51.000Z
2021-12-02T06:31:39.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
33.693252
97
0.620903
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
0
0
0
4,576
0
0
0
20
111
ba8daea0bae4793292d70f96b7f2357d384c0091
1,530
py
Python
boucanpy/api/routers/dns_server/zone/router.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
34
2019-11-16T17:22:15.000Z
2022-02-11T23:12:46.000Z
boucanpy/api/routers/dns_server/zone/router.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
1
2021-02-09T09:34:55.000Z
2021-02-10T21:46:20.000Z
boucanpy/api/routers/dns_server/zone/router.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
9
2019-11-18T22:18:07.000Z
2021-02-08T13:23:51.000Z
from fastapi import APIRouter router = APIRouter() options = {"prefix": "/dns-server/{dns_server}"}
30
88
0.7
from typing import List from fastapi import APIRouter, Depends, Query from boucanpy.core import only from boucanpy.core.security import ScopedTo, TokenPayload from boucanpy.db.models.zone import Zone from boucanpy.core import SortQS, PaginationQS, BaseResponse from boucanpy.core.zone import ( ZoneRepo, ZonesRes...
0
1,054
0
0
0
0
0
219
155
d3ebbf0039b81b3c302a40eb6de89ff68dbea9a4
803
py
Python
apps/media_apps/mocp/main.py
haxwithaxe/pyLCI
6014f2f70fa232c2d68d27f74013efe7c380b7f5
[ "Apache-2.0" ]
55
2016-04-03T09:19:33.000Z
2021-02-25T09:33:43.000Z
apps/media_apps/mocp/main.py
haxwithaxe/pyLCI
6014f2f70fa232c2d68d27f74013efe7c380b7f5
[ "Apache-2.0" ]
2
2017-08-26T13:53:43.000Z
2019-01-25T03:57:10.000Z
apps/media_apps/mocp/main.py
haxwithaxe/pyLCI
6014f2f70fa232c2d68d27f74013efe7c380b7f5
[ "Apache-2.0" ]
15
2016-04-14T20:27:54.000Z
2021-02-25T09:33:47.000Z
menu_name = "MOCP control" #Some globals for LCS main_menu = None callback = None #Some globals for us i = None o = None #MOCP commands main_menu_contents = [ ["Toggle play/pause", mocp_toggle_play], ["Next song", mocp_next], ["Previous song", mocp_prev], ["Exit", 'exit'] ]
19.119048
59
0.66127
menu_name = "MOCP control" from subprocess import call from ui import Menu, Printer #Some globals for LCS main_menu = None callback = None #Some globals for us i = None o = None #MOCP commands def mocp_command(*command): try: return call(['mocp'] + list(command)) except: Printer(["Oops", "Is ...
0
0
0
0
0
351
0
13
159
b8c99a42c70bcdde8cf8e31aec986dc510cbd693
5,782
py
Python
keystone/endpoint_policy/backends/base.py
dtroyer/keystone
ba21db422d4f58c185e1b4414e118f723c33b959
[ "Apache-2.0" ]
null
null
null
keystone/endpoint_policy/backends/base.py
dtroyer/keystone
ba21db422d4f58c185e1b4414e118f723c33b959
[ "Apache-2.0" ]
null
null
null
keystone/endpoint_policy/backends/base.py
dtroyer/keystone
ba21db422d4f58c185e1b4414e118f723c33b959
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.472393
76
0.666724
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
0
5,158
0
0
0
0
0
-13
91