hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
57b8f635934bfe236a78eac9080d500004569035
1,440
py
Python
project_files/OLD NDlib Composite.py
TheAkashain/NDLib-C19-UNB
b9769b7ce931e1fadba3c78e0f29b37834675e1c
[ "BSD-2-Clause" ]
null
null
null
project_files/OLD NDlib Composite.py
TheAkashain/NDLib-C19-UNB
b9769b7ce931e1fadba3c78e0f29b37834675e1c
[ "BSD-2-Clause" ]
null
null
null
project_files/OLD NDlib Composite.py
TheAkashain/NDLib-C19-UNB
b9769b7ce931e1fadba3c78e0f29b37834675e1c
[ "BSD-2-Clause" ]
1
2020-11-24T14:21:03.000Z
2020-11-24T14:21:03.000Z
import networkx as nx import ndlib.models.ModelConfig as mc import ndlib.models.CompositeModel as gc import ndlib.models.compartments as ns from ndlib.utils import multi_runs import time N = 60000 connections = 6 iterations = 200 executions = 20 start_time = time.time() print('-----Generating Barbasi-Albert graph with...
27.169811
105
0.759028
5eefb9affe4459fa100cd7a267f17ce98c607a2b
1,832
py
Python
src/encoded/tests/test_upgrade_quality_metric.py
procha2/encoded
e9f122362b71f3b8641023b8d2d5ad531d3484b7
[ "MIT" ]
102
2015-05-20T01:17:43.000Z
2022-03-07T06:03:55.000Z
src/encoded/tests/test_upgrade_quality_metric.py
procha2/encoded
e9f122362b71f3b8641023b8d2d5ad531d3484b7
[ "MIT" ]
901
2015-01-07T23:11:57.000Z
2022-03-18T13:56:12.000Z
src/encoded/tests/test_upgrade_quality_metric.py
procha2/encoded
e9f122362b71f3b8641023b8d2d5ad531d3484b7
[ "MIT" ]
65
2015-02-06T23:00:26.000Z
2022-01-22T07:58:44.000Z
import pytest @pytest.mark.parametrize('qc_type, old_version, new_version', [ ('bismark_quality_metric', '8', '9'), ('chipseq_filter_quality_metric', '7', '8'), ('complexity_xcorr_quality_metric', '7', '8'), ('correlation_quality_metric', '7', '8'), ('cpg_correlation_quality_metric', '7', '8'), ...
48.210526
112
0.683406
c47e9ab7c936740646807a15278ed58692605039
20,161
py
Python
grasp/mt/minrisk.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
9
2015-07-22T18:07:44.000Z
2021-11-08T11:21:11.000Z
grasp/mt/minrisk.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
null
null
null
grasp/mt/minrisk.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
1
2021-01-12T10:00:22.000Z
2021-01-12T10:00:22.000Z
""" :Authors: - Wilker Aziz """ import logging import argparse import sys """ :Authors: - Wilker Aziz """ from os.path import splitext import subprocess as sp import shlex import argparse import logging import sys import itertools import os import numpy as np import traceback from multiprocessing import Pool from fu...
42.08977
129
0.621497
ee61c8480304d8b0a9cb464b470ae06fc2b03cd3
1,947
py
Python
vendor/google_riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py
PaulOKCrevinn/ibex
00240499bb865e0453ed52fa99f064462c7b053c
[ "Apache-2.0" ]
null
null
null
vendor/google_riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py
PaulOKCrevinn/ibex
00240499bb865e0453ed52fa99f064462c7b053c
[ "Apache-2.0" ]
null
null
null
vendor/google_riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py
PaulOKCrevinn/ibex
00240499bb865e0453ed52fa99f064462c7b053c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Google LLC Copyright 2020 PerfectVIPs 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 t...
37.442308
73
0.686184
117c236ec4ba2c6ecdc73b8299a72595a3d2def7
490
py
Python
BatchTestScripts/Low usage/MUXsandbox.py
jakehyvonen/BTSPython
9580a04622226a30fea4d5cbd036c7f88a9b732d
[ "MIT" ]
null
null
null
BatchTestScripts/Low usage/MUXsandbox.py
jakehyvonen/BTSPython
9580a04622226a30fea4d5cbd036c7f88a9b732d
[ "MIT" ]
null
null
null
BatchTestScripts/Low usage/MUXsandbox.py
jakehyvonen/BTSPython
9580a04622226a30fea4d5cbd036c7f88a9b732d
[ "MIT" ]
null
null
null
from gpiozero import LED from time import sleep #low level IC control pins led1 = LED(13) #A0 pin led2 = LED(6) #A1 pin led3 = LED(5) #A2 pin led4 = LED(27) #led4+5 = device rest plate led5 = LED(22) def SwitchMUXtoA(): led1.off() led2.off() led3.off() def SwitchMUXtoB(): led1.on() led2.off...
14.848485
42
0.593878
7ba625b4fe2f608acb4d92ea76533c6d856a3c03
10,135
py
Python
tests/platform_tests/test_reboot.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
null
null
null
tests/platform_tests/test_reboot.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
null
null
null
tests/platform_tests/test_reboot.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
null
null
null
""" Check platform status after reboot. Three types of reboot are covered in this script: * Cold reboot * Fast reboot * Warm reboot This script is to cover the test case 'Reload configuration' in the SONiC platform test plan: https://github.com/Azure/SONiC/blob/master/doc/pmon/sonic_platform_test_plan.md """ import lo...
43.497854
141
0.753527
3199cef8b54ce2e3cdbc1e5b7eee77a4525ccdd9
3,695
py
Python
main.py
ondrasouk/encoders-comparison-tool
81d257cf42865a9d70b19e8ed8ff7deab76af9b5
[ "MIT" ]
1
2021-12-30T19:44:13.000Z
2021-12-30T19:44:13.000Z
main.py
ondrasouk/encoders-comparison-tool
81d257cf42865a9d70b19e8ed8ff7deab76af9b5
[ "MIT" ]
null
null
null
main.py
ondrasouk/encoders-comparison-tool
81d257cf42865a9d70b19e8ed8ff7deab76af9b5
[ "MIT" ]
null
null
null
import os import numpy as np import pathlib import encoders_comparison_tool as enc def output_dir(path): if not os.path.isdir(path): p = pathlib.Path(path) p.mkdir(parents=True, exist_ok=True) # Options for transcoder # One line is one option # enc.sweep_param is class for defining variable in t...
46.1875
184
0.644114
96940759decf0b4c3e9744117b4f94e722ecba15
692
py
Python
brigadier/accounts/migrations/0003_alter_myuser_username.py
avoevodin/brigadier
c3869e4b526e0eb043146c53b78fda525ecfe5c4
[ "MIT" ]
1
2021-03-30T05:06:39.000Z
2021-03-30T05:06:39.000Z
brigadier/accounts/migrations/0003_alter_myuser_username.py
avoevodin/brigadier
c3869e4b526e0eb043146c53b78fda525ecfe5c4
[ "MIT" ]
25
2021-03-22T12:41:41.000Z
2021-10-20T10:42:05.000Z
brigadier/accounts/migrations/0003_alter_myuser_username.py
avoevodin/brigadier
c3869e4b526e0eb043146c53b78fda525ecfe5c4
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-10-06 20:16 import django.contrib.auth.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_create_public_group'), ] operations = [ migrations.AlterField( model_name='...
34.6
316
0.680636
49da4288fffe4ee0f5e8a05a1ed9e807ae9254fd
1,755
py
Python
qr_code/src/qr_code.py
soundarzozm/covid-automation-sop
e86b2b760c18aa1cc46486bfc1f2b387889b90e0
[ "MIT" ]
null
null
null
qr_code/src/qr_code.py
soundarzozm/covid-automation-sop
e86b2b760c18aa1cc46486bfc1f2b387889b90e0
[ "MIT" ]
null
null
null
qr_code/src/qr_code.py
soundarzozm/covid-automation-sop
e86b2b760c18aa1cc46486bfc1f2b387889b90e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # license removed for brevity import rospy from cv2 import cv2 import time import datetime from std_msgs.msg import String import csv from datetime import datetime,date def talker(data): pub = rospy.Publisher('chatter', String, queue_size=10) rospy.init_node('talker', anonymous=True) ...
31.909091
170
0.603419
527b94da6775c22a15f8d919d7973fd790c4aceb
1,961
py
Python
yate/tokens.py
mauro-balades/yate
af704006cfd78ec9b93afe632c8741e0582ee354
[ "MIT" ]
1
2022-02-23T14:48:39.000Z
2022-02-23T14:48:39.000Z
yate/tokens.py
mauro-balades/yate
af704006cfd78ec9b93afe632c8741e0582ee354
[ "MIT" ]
null
null
null
yate/tokens.py
mauro-balades/yate
af704006cfd78ec9b93afe632c8741e0582ee354
[ "MIT" ]
null
null
null
""" | YATE engine |------------- | MIT License | | Copyright (c) 2022 Mauro Baladés | | Permission is hereby granted, free of charge, to any person obtaining a copy | of this software and associated documentation files (the "Software"), to deal | in the Software without restriction, including without limitation the rig...
30.640625
80
0.72973
31109fc17c20343e9c487682e5f9dabb6b073d25
1,645
py
Python
Chapter 03/code/run_grid_search.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
387
2017-02-11T18:28:50.000Z
2022-03-27T01:16:05.000Z
Chapter 03/code/run_grid_search.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
18
2017-12-15T03:10:25.000Z
2021-04-20T14:32:43.000Z
Chapter 03/code/run_grid_search.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
407
2017-01-23T15:18:33.000Z
2022-03-16T05:39:02.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import classification_report from sklearn import cross_validation, grid_search from sklearn.ensemble import ExtraTreesClassifier from sklearn import cross_validation from sklearn.metrics import classification_report from utilities import visualize...
32.9
75
0.707599
1f1c3bf17a1d64f57e1d6f129b943ee0269987b2
4,501
py
Python
webdispatch/uritemplate.py
aodag/WebDispatch
55f8658a2b4100498e098a80303a346c3940f1bc
[ "MIT" ]
1
2016-09-03T00:32:47.000Z
2016-09-03T00:32:47.000Z
webdispatch/uritemplate.py
aodag/WebDispatch
55f8658a2b4100498e098a80303a346c3940f1bc
[ "MIT" ]
15
2017-07-25T08:00:38.000Z
2019-02-21T03:23:42.000Z
webdispatch/uritemplate.py
aodag/WebDispatch
55f8658a2b4100498e098a80303a346c3940f1bc
[ "MIT" ]
1
2018-03-05T17:37:18.000Z
2018-03-05T17:37:18.000Z
""" uri template parsing and generating url patterns """ from datetime import datetime import re import string from typing import ( # noqa pylint: disable=unused-import Any, Dict, Callable, Tuple, ) VARS_PT = re.compile(r"{(?P<varname>[a-zA-Z0-9_]+)" r"(:(?P<converter>[a-zA-Z0-9_...
30.208054
79
0.607865
e9991e38ecc98716d133689ce6fb4bb261f07b81
8,025
py
Python
openpype/hosts/houdini/api/usd.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/houdini/api/usd.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/houdini/api/usd.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
"""Houdini-specific USD Library functions.""" import contextlib import logging from Qt import QtWidgets, QtCore, QtGui from openpype import style from openpype.pipeline import legacy_io from openpype.tools.utils.assets_widget import SingleSelectAssetsWidget from pxr import Sdf log = logging.getLogger(__name__) ...
28.35689
78
0.645981
1c902e9cdb1d0a416258f324cdb1773702b741a0
3,898
py
Python
ampel/log/LogsDumper.py
mafn/Ampel-core
744acbf36f0a2ceae7230ceab1350236c1501b57
[ "BSD-3-Clause" ]
null
null
null
ampel/log/LogsDumper.py
mafn/Ampel-core
744acbf36f0a2ceae7230ceab1350236c1501b57
[ "BSD-3-Clause" ]
null
null
null
ampel/log/LogsDumper.py
mafn/Ampel-core
744acbf36f0a2ceae7230ceab1350236c1501b57
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: Ampel-core/ampel/log/LogsDumper.py # License: BSD-3-Clause # Author: valery brinnel <firstname.lastname@gmail.com> # Date: 17.03.2021 # Last Modified Date: 17.03.2021 # Last Modified By: valery brinnel <firs...
25.311688
104
0.639046
552bf211727a9856b6bc8e51afaf1133bef1f376
1,048
py
Python
apps/dataporten/client.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/dataporten/client.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/dataporten/client.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
import logging from oic.oic import Client, RegistrationResponse from oic.utils.authn.client import CLIENT_AUTHN_METHOD DATAPORTEN_PROVIDER_CONFIG = 'https://auth.dataporten.no/' def client_setup(client_id, client_secret): """Sets up an OpenID Connect Relying Party ("client") for connecting to Dataporten""" ...
36.137931
119
0.771947
2a593d0ab22cc76523f960d3515f87c71c6cda48
27,787
py
Python
astropy/io/fits/tests/test_connect.py
guntbert/astropy
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_connect.py
guntbert/astropy
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "BSD-3-Clause" ]
2
2016-11-30T20:31:42.000Z
2016-12-02T23:50:10.000Z
astropy/io/fits/tests/test_connect.py
guntbert/astropy
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "BSD-3-Clause" ]
null
null
null
import os import gc import pathlib import warnings import pytest import numpy as np from numpy.testing import assert_allclose from astropy.io.fits.column import (_parse_tdisp_format, _fortran_to_python_format, python_to_tdisp) from astropy.io.fits import HDUList, PrimaryHDU, BinTa...
36.901726
202
0.580415
0e5589c301276db1218df2073eba1559eb52a7c2
3,530
py
Python
tests/mock_tables/mock_multi_asic.py
sg893052/sonic-utilities
fdb79b8d65b8ca22232f4e6b140f593dd01613d5
[ "Apache-2.0" ]
91
2016-03-23T14:24:41.000Z
2022-03-18T20:25:37.000Z
tests/mock_tables/mock_multi_asic.py
sg893052/sonic-utilities
fdb79b8d65b8ca22232f4e6b140f593dd01613d5
[ "Apache-2.0" ]
1,495
2017-02-15T10:49:10.000Z
2022-03-31T18:49:56.000Z
tests/mock_tables/mock_multi_asic.py
sg893052/sonic-utilities
fdb79b8d65b8ca22232f4e6b140f593dd01613d5
[ "Apache-2.0" ]
466
2016-04-25T09:31:23.000Z
2022-03-31T06:54:17.000Z
# MONKEY PATCH!!! from unittest import mock from sonic_py_common import multi_asic from utilities_common import multi_asic as multi_asic_util mock_intf_table = { '': { 'eth0': { 2: [{'addr': '10.1.1.1', 'netmask': '255.255.255.0', 'broadcast': '10.1.1.1'}], 10: [{'addr': '3100::1',...
37.157895
154
0.55864
563b44e1dd04c4f5472712955ec7bc15c3a9fc72
547
py
Python
backend/apps/timing/utils/msg.py
lizhaoliu-Lec/OneApp
2919c7b191bd01c6783acc2b8baed288d4f60b47
[ "MIT" ]
1
2019-08-12T02:17:10.000Z
2019-08-12T02:17:10.000Z
backend/apps/timing/utils/msg.py
lizhaoliu-Lec/BookApp
2919c7b191bd01c6783acc2b8baed288d4f60b47
[ "MIT" ]
4
2020-06-05T22:13:15.000Z
2022-01-13T01:30:08.000Z
backend/apps/timing/utils/msg.py
lizhaoliu-Lec/BookApp
2919c7b191bd01c6783acc2b8baed288d4f60b47
[ "MIT" ]
null
null
null
"""Message returned to frontend. """ # for timing record TIMING_RECORD_GET_FAIL = '获取用户记录失败' TIMING_RECORD_GET_SUCCESS = '获取用户记录成功' TIMING_RECORD_POST_FAIL = '上传用户记录失败' TIMING_RECORD_POST_SUCCESS = '上传用户记录成功' # for timing plan TIMING_PLAN_GET_FAIL = '获取用户计划失败' TIMING_PLAN_GET_SUCCESS = '获取用户计划成功' TIMING_PLAN_POST_FA...
23.782609
39
0.809872
d868f8b56b2205a7621f71ca11fb4ac09239762b
1,382
py
Python
tests/first_stage_test.py
schlueter/mitogen
76102927c81d5dfcc6c91565b2984f24dd3ee678
[ "BSD-3-Clause" ]
null
null
null
tests/first_stage_test.py
schlueter/mitogen
76102927c81d5dfcc6c91565b2984f24dd3ee678
[ "BSD-3-Clause" ]
null
null
null
tests/first_stage_test.py
schlueter/mitogen
76102927c81d5dfcc6c91565b2984f24dd3ee678
[ "BSD-3-Clause" ]
null
null
null
import subprocess import unittest2 import mitogen.parent import testlib class CommandLineTest(testlib.RouterMixin, testlib.TestCase): # Ensure this version of Python produces a command line that is sufficient # to bootstrap this version of Python. # # TODO: # * 2.7 starting 2.4 # * 2.7 ...
31.409091
98
0.651954
b31f0baadaf613e17eb0bd30cfbf3f65d580d177
2,929
py
Python
dse_simulation/src/Old/aruco_test.py
hfekrmandi/Autonomous-GNC-MAS
b02bc3210d8b136400b1cf2b7950aa77f5831e0b
[ "MIT" ]
1
2021-03-22T01:47:00.000Z
2021-03-22T01:47:00.000Z
dse_simulation/src/Old/aruco_test.py
hfekrmandi/Self_Localization_Intelligent_Mapping_SLIM
6e073737c1e8ebd170a828500f825357beb699fe
[ "MIT" ]
1
2022-01-12T02:17:02.000Z
2022-01-12T21:51:40.000Z
dse_simulation/src/Old/aruco_test.py
hfekrmandi/Self_Localization_Intelligent_Mapping_SLIM
6e073737c1e8ebd170a828500f825357beb699fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 from __future__ import print_function import roslib import sys import rospy import csv import numpy as np import datetime import time from geometry_msgs.msg import Twist from dse_msgs.msg import PoseMarkers from std_msgs.msg import Float64MultiArray from std_msgs.msg import MultiArrayLayout from ...
33.284091
114
0.645954
d80e8f74d8c45a56378ed3890f532896a325d63c
1,127
py
Python
terminal-kafka-monitor/widgets.py
praveen97uma/terminal-kafka-monitor
523a410141bf5a55718d6867e783de4d8210ce8a
[ "Apache-2.0" ]
null
null
null
terminal-kafka-monitor/widgets.py
praveen97uma/terminal-kafka-monitor
523a410141bf5a55718d6867e783de4d8210ce8a
[ "Apache-2.0" ]
null
null
null
terminal-kafka-monitor/widgets.py
praveen97uma/terminal-kafka-monitor
523a410141bf5a55718d6867e783de4d8210ce8a
[ "Apache-2.0" ]
null
null
null
import npyscreen import psutil import sys class MultiLineWidget(npyscreen.BoxTitle): ''' A framed widget containing multiline text ''' _contained_widget = npyscreen.MultiLineEdit class CustomMultiLineAction(npyscreen.MultiLineAction): ''' Making custom MultiLineAction by adding the ha...
24.5
66
0.654836
463684a7d80b5f361a181944135e67506a1c4887
6,411
py
Python
pdf2text/pdf2text.py
guilacerda/playground
109960ffefc611fcda7354d7058d3256971ebfb9
[ "MIT" ]
null
null
null
pdf2text/pdf2text.py
guilacerda/playground
109960ffefc611fcda7354d7058d3256971ebfb9
[ "MIT" ]
null
null
null
pdf2text/pdf2text.py
guilacerda/playground
109960ffefc611fcda7354d7058d3256971ebfb9
[ "MIT" ]
null
null
null
def get_menu(): file = open("cardapio.txt", 'r') stringzona = "" line = "" foods = [] for line in file: if line[len(line)-1] == '\n': line = line[:len(line)-1] + " " stringzona = stringzona + line words = stringzona.split(" ") for word in words: if wo...
29.543779
84
0.427858
5fff91960180c6f5f534b1f4a5a2dde5e48561f4
5,198
py
Python
src/tests/test_status_flag_change.py
ghandic/6502Emulator
e647f86e5af777a2e0d8bccc50522e6db4e39162
[ "MIT" ]
null
null
null
src/tests/test_status_flag_change.py
ghandic/6502Emulator
e647f86e5af777a2e0d8bccc50522e6db4e39162
[ "MIT" ]
null
null
null
src/tests/test_status_flag_change.py
ghandic/6502Emulator
e647f86e5af777a2e0d8bccc50522e6db4e39162
[ "MIT" ]
null
null
null
import copy from truth.truth import AssertThat from ..emulator.const import OpCodes def test_clc_will_clear_the_carry_flag(cpu): """CLCWillClearTheCarryFlag""" # Given: cpu.reset_to(0xFF00) cpu.Flag.C = True cpu.Memory[0xFF00] = OpCodes.INS_CLC expected_cycles = 2 cpu_copy = copy.copy(cp...
31.125749
54
0.714121
f6e2750fd89bdd7556ebc4562600ff7421edc038
1,471
py
Python
demos/fluid_logo.py
marc-gav/PhiFlow
b6186fd1503d040997b52d49aa18cd875267c27e
[ "MIT" ]
null
null
null
demos/fluid_logo.py
marc-gav/PhiFlow
b6186fd1503d040997b52d49aa18cd875267c27e
[ "MIT" ]
null
null
null
demos/fluid_logo.py
marc-gav/PhiFlow
b6186fd1503d040997b52d49aa18cd875267c27e
[ "MIT" ]
null
null
null
""" Fluid Logo Incompressible fluid simulation with obstacles and buoyancy. """ from phi.flow import * # from phi.torch.flow import * # from phi.tf.flow import * # from phi.jax.flow import * DOMAIN = dict(x=128, y=128, bounds=Box[0:100, 0:100]) OBSTACLE_GEOMETRIES = [Box[15 + x * 7:15 + (x + 1) * 7, 41:83] for x in r...
54.481481
148
0.709041
df4412311f52a1be84ee7a2d580b1d0246a2c54d
3,382
py
Python
professionals/views.py
aykutgk/GoNaturalistic
f1f5e529eef94ae1f642e056cdfb01711333a929
[ "MIT" ]
null
null
null
professionals/views.py
aykutgk/GoNaturalistic
f1f5e529eef94ae1f642e056cdfb01711333a929
[ "MIT" ]
null
null
null
professionals/views.py
aykutgk/GoNaturalistic
f1f5e529eef94ae1f642e056cdfb01711333a929
[ "MIT" ]
null
null
null
import json from django.http import StreamingHttpResponse, HttpResponse from django.views.generic import ListView, DetailView, FormView from professionals.models import Professional from articles.models import Article from consultations.models import Consultation from django.contrib.auth.forms import AuthenticationForm...
53.68254
183
0.628326
15f1209a558bc712a08c71269aa333178844f790
54
py
Python
groupdocs/version.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
groupdocs/version.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
groupdocs/version.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
__pkgname__ = "groupdocs-python" __version__ = "1.7.0"
27
32
0.740741
f1b93782731a70a905ee076811ee4781598d1831
5,842
py
Python
staff_manage_sdk/model/ops_automation/jobs_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
staff_manage_sdk/model/ops_automation/jobs_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
staff_manage_sdk/model/ops_automation/jobs_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: jobs.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import...
46.365079
669
0.763608
f8c41105fc836706539f11f4d9931b80fcc84ebd
3,553
py
Python
tests/certification/optional/test_sofort_transactions.py
isunnapud/vantiv-sdk-for-python
85ea6ba160c2436a305b9326cbb7d6c8f127c57c
[ "MIT" ]
4
2017-11-16T16:02:06.000Z
2021-05-04T14:40:08.000Z
tests/certification/optional/test_sofort_transactions.py
isunnapud/vantiv-sdk-for-python
85ea6ba160c2436a305b9326cbb7d6c8f127c57c
[ "MIT" ]
7
2017-08-23T15:04:38.000Z
2020-04-07T20:20:15.000Z
tests/certification/optional/test_sofort_transactions.py
isunnapud/vantiv-sdk-for-python
85ea6ba160c2436a305b9326cbb7d6c8f127c57c
[ "MIT" ]
13
2017-10-17T22:07:57.000Z
2022-03-29T17:33:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 Vantiv eCommerce # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the 'Software'), to deal in the Software without # restriction, including without limitation the rights to use, # copy, ...
34.833333
108
0.567689
c5cc44393e38b390bc124473e54bef6bfb01dd7d
4,244
py
Python
test/test_file_metadata_definition.py
nodeum-io/nodeum-sdk-python
205536491bff507dea7be44af46202c17e7121d9
[ "MIT" ]
null
null
null
test/test_file_metadata_definition.py
nodeum-io/nodeum-sdk-python
205536491bff507dea7be44af46202c17e7121d9
[ "MIT" ]
null
null
null
test/test_file_metadata_definition.py
nodeum-io/nodeum-sdk-python
205536491bff507dea7be44af46202c17e7121d9
[ "MIT" ]
null
null
null
# coding: utf-8 """ Nodeum API The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http...
80.075472
2,886
0.745994
194464d0a7df3d9cd728751a76c0f3de87784917
4,169
py
Python
plot_log_arrays.py
victor-gil-sepulveda/PhD-ANMPythonHelpers
c0e15684cce4aa4da90141b51f043a567a5f8655
[ "MIT" ]
1
2017-11-01T15:19:10.000Z
2017-11-01T15:19:10.000Z
plot_log_arrays.py
victor-gil-sepulveda/PhD-ANMPythonHelpers
c0e15684cce4aa4da90141b51f043a567a5f8655
[ "MIT" ]
null
null
null
plot_log_arrays.py
victor-gil-sepulveda/PhD-ANMPythonHelpers
c0e15684cce4aa4da90141b51f043a567a5f8655
[ "MIT" ]
null
null
null
''' Created on 19/03/2015 @author: user ''' import numpy from optparse import OptionParser import matplotlib.pyplot as plt import anmichelpers.tools.measure as measure from pyRMSD.RMSDCalculator import RMSDCalculator def load_file(path): try: v = numpy.loadtxt(path) if len(v.shape) == 1: ...
33.087302
118
0.574478
9ee7a2a6f06c914e823a42be5ce2a234768220b0
924
py
Python
utils/filter_helper.py
jiangwei221/image-matching-benchmark
7f47a4acb24130ae49d9be261dd6333fd43e577e
[ "Apache-2.0" ]
271
2020-02-12T01:40:22.000Z
2022-03-16T03:13:29.000Z
utils/filter_helper.py
QinZiwen/image-matching-benchmark
e3946deb69940a7bcbbbc7aa7dc392f34497d036
[ "Apache-2.0" ]
24
2020-02-12T11:07:35.000Z
2020-08-10T09:06:39.000Z
utils/filter_helper.py
QinZiwen/image-matching-benchmark
e3946deb69940a7bcbbbc7aa7dc392f34497d036
[ "Apache-2.0" ]
42
2020-02-12T08:13:15.000Z
2021-09-26T07:45:18.000Z
# Copyright 2020 Google LLC, University of Victoria, Czech Technical University # # 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 ...
35.538462
79
0.765152
12407cd42b3bc1fbf29788e1cde7796769298b6c
276
py
Python
website/migrations/0055_merge_20210119_2125.py
czhu1217/cmimc-online
5ef49ceec0bb86d8ae120a6ecfd723532e277821
[ "MIT" ]
null
null
null
website/migrations/0055_merge_20210119_2125.py
czhu1217/cmimc-online
5ef49ceec0bb86d8ae120a6ecfd723532e277821
[ "MIT" ]
1
2022-01-23T21:08:12.000Z
2022-01-23T21:08:12.000Z
website/migrations/0055_merge_20210119_2125.py
czhu1217/cmimc-online
5ef49ceec0bb86d8ae120a6ecfd723532e277821
[ "MIT" ]
1
2021-10-17T17:11:42.000Z
2021-10-17T17:11:42.000Z
# Generated by Django 3.1.5 on 2021-01-20 02:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('website', '0052_auto_20210114_2228'), ('website', '0054_task_grader_data_file'), ] operations = [ ]
18.4
50
0.652174
545ba2df174810388f06523e5174cbed3c2148ad
63
py
Python
riberry_web/__init__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
1
2020-09-01T15:34:52.000Z
2020-09-01T15:34:52.000Z
riberry_web/__init__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
riberry_web/__init__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
from . import app from .app import main __version__ = '0.1.2'
12.6
21
0.698413
8b109a02a571623fc7148dfb67e2ff27e45c2d56
3,423
py
Python
recgve/models/tensorflow/train_model/ngcf/eval_ngcf.py
doubleblind148/IGCCF
bc0e90a5322f1ba4927ec89d9181190974f7e1ba
[ "MIT" ]
1
2022-02-14T07:29:18.000Z
2022-02-14T07:29:18.000Z
recgve/models/tensorflow/train_model/ngcf/eval_ngcf.py
doubleblind148/IGCCF
bc0e90a5322f1ba4927ec89d9181190974f7e1ba
[ "MIT" ]
null
null
null
recgve/models/tensorflow/train_model/ngcf/eval_ngcf.py
doubleblind148/IGCCF
bc0e90a5322f1ba4927ec89d9181190974f7e1ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "XXX" __email__ = "XXX" import argparse import shutil import tensorflow as tf import wandb from datasets.implemented_datasets import * from evaluation.topk_evaluator import Evaluator from igccf_experiments.best_models import get_wandb_project_dict # Define static variables from mo...
31.694444
70
0.568215
f8c85f279e0951e6a51763a8513c3e2a356c4544
1,543
py
Python
civis/tests/test_civis.py
mcoirad-gmmb/civis-python
4286da93496cc7d15d876c9001ea3aa1ad359972
[ "BSD-3-Clause" ]
1
2019-10-07T21:36:09.000Z
2019-10-07T21:36:09.000Z
civis/tests/test_civis.py
mcoirad-gmmb/civis-python
4286da93496cc7d15d876c9001ea3aa1ad359972
[ "BSD-3-Clause" ]
4
2019-09-25T21:05:09.000Z
2019-10-22T15:09:42.000Z
civis/tests/test_civis.py
mcoirad-gmmb/civis-python
4286da93496cc7d15d876c9001ea3aa1ad359972
[ "BSD-3-Clause" ]
null
null
null
from unittest import mock import civis from civis.tests.mocks import TEST_SPEC import pytest @pytest.mark.parametrize('schema_tablename', [ 'foo.bar', '"foo".bar', 'foo."bar"', '"foo"."bar"' ]) def test_get_table_id(schema_tablename): """Check that get_table_id handles quoted schema.tablename correctly.""" ...
29.673077
79
0.704472
a8eb322abe1bebd8923ff5bd66277690dd77ff11
9,769
py
Python
Numerico/EP2/Testes.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
Numerico/EP2/Testes.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
Numerico/EP2/Testes.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
#Lui Damianci Ferreira - 10770579 #Victor A. C. Athanasio - 9784401 # %% from Ep2_functions import * import matplotlib.pyplot as plt import pandas as pd from itertools import cycle, islice string = 'Resultados \n \n' #referente a criacao do apendice contendo resultados counter = 0 #referente a criacao do apen...
35.014337
130
0.598935
d21b1464cc28148885fa841d352e7aa2876d128c
1,877
py
Python
src/TileCoder.py
dquail/CycleWorld
2bc1833ce4b787b03cdbfaf27d0ed99af269f555
[ "MIT" ]
2
2017-09-18T21:55:20.000Z
2018-03-16T20:20:19.000Z
src/TileCoder.py
dquail/CycleWorld
2bc1833ce4b787b03cdbfaf27d0ed99af269f555
[ "MIT" ]
6
2017-02-08T07:27:19.000Z
2017-02-22T22:38:30.000Z
src/TileCoder.py
dquail/CycleWorld
2bc1833ce4b787b03cdbfaf27d0ed99af269f555
[ "MIT" ]
2
2017-05-19T21:06:38.000Z
2019-03-05T01:46:58.000Z
import numpy import random random.seed(0) from tiles import * def tileCode(numTilings, vectorLength, value): indexes = tiles(numTilings, vectorLength, value) #print("Tilecode for :" + str(value) + str(indexes)) featureVector = numpy.zeros(vectorLength) for idx in indexes: featureVector[idx] = 1...
34.759259
151
0.693127
b735ff0785cb9f592f1e4e2a14308a6b0c427029
873
py
Python
qiskit/ignis/mitigation/expval/__init__.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
182
2019-02-19T22:52:42.000Z
2022-02-28T05:48:07.000Z
qiskit/ignis/mitigation/expval/__init__.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
384
2019-02-19T21:30:18.000Z
2021-12-02T21:13:34.000Z
qiskit/ignis/mitigation/expval/__init__.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
203
2019-02-19T21:06:27.000Z
2022-03-02T14:16:50.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
36.375
77
0.799542
d296b24eaeccbb9d310b9cdbd26d8de59e8e4417
400
py
Python
book_tools/format/mimetype.py
Aladex/sopds-fb2sax-sqlalchemy
d483b1591d44a1c08170d4e8e1d797cc32e2899a
[ "MIT" ]
10
2015-02-09T14:23:42.000Z
2022-02-17T16:26:25.000Z
book_tools/format/mimetype.py
Aladex/sopds-fb2sax-sqlalchemy
d483b1591d44a1c08170d4e8e1d797cc32e2899a
[ "MIT" ]
2
2021-03-31T19:50:29.000Z
2021-12-13T20:38:48.000Z
book_tools/format/mimetype.py
Aladex/sopds-fb2sax-sqlalchemy
d483b1591d44a1c08170d4e8e1d797cc32e2899a
[ "MIT" ]
5
2016-11-27T12:06:59.000Z
2021-07-27T08:10:03.000Z
class Mimetype: OCTET_STREAM = 'application/octet-stream' XML = 'application/xml' ZIP = 'application/zip' EPUB = 'application/epub+zip' FB2 = 'application/fb2+xml' FB2_ZIP = 'application/fb2+zip' PDF = 'application/pdf' MSWORD = 'application/msword' MOBI = 'application/x-mobipocket-...
26.666667
45
0.6425
16ddbe9068e60b8ac5bcb60e2664b940075237ba
578
py
Python
screengrab.py
tillmanp/GTAV_OpenCV_Automation
a74ead4e1f8e90c1675d4859ba3a6578fb2e064d
[ "MIT" ]
null
null
null
screengrab.py
tillmanp/GTAV_OpenCV_Automation
a74ead4e1f8e90c1675d4859ba3a6578fb2e064d
[ "MIT" ]
null
null
null
screengrab.py
tillmanp/GTAV_OpenCV_Automation
a74ead4e1f8e90c1675d4859ba3a6578fb2e064d
[ "MIT" ]
null
null
null
from PIL import ImageGrab import numpy as np import cv2 import time import pyautogui ##workaround for window scaling problem last_time = time.time() while(True): img = ImageGrab.grab(bbox=(10,40,1920,1120)) #bbox specifies specific region (bbox= x,y,width,height) img_np = np.array(img) img = c...
30.421053
106
0.683391
cefc88d377e1bfa5f293c7602653afc2f5ce381a
54
py
Python
carla/models/catalog/Linear_TORCH/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/models/catalog/Linear_TORCH/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/models/catalog/Linear_TORCH/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .model_linear import LinearModel
13.5
37
0.796296
a8cc7c5a2829b63a0cf3134b4ce569f103d10164
1,384
py
Python
lib/csv2dict.py
alfa871212/shor_paper
09d3bf9d601d16cd369809e020c093de7889c3d4
[ "MIT" ]
3
2020-09-04T15:53:56.000Z
2021-11-15T11:22:21.000Z
lib/csv2dict.py
alfa871212/shor_paper
09d3bf9d601d16cd369809e020c093de7889c3d4
[ "MIT" ]
null
null
null
lib/csv2dict.py
alfa871212/shor_paper
09d3bf9d601d16cd369809e020c093de7889c3d4
[ "MIT" ]
null
null
null
import argparse import csv import math from qiskit.visualization import plot_histogram def process_command(): parser = argparse.ArgumentParser() method = parser.add_mutually_exclusive_group(required=True) method.add_argument('--normal', '--nor', action='store_true') method.add_argument('--sequential'...
29.446809
85
0.626445
344665cf6113a0a1c43decd003273672e0c31305
4,505
py
Python
backend/project/accounts/api/views.py
Kamil732/DK-team
d99482111761f8c12b486246c539542f4f41c6c3
[ "CC0-1.0" ]
4
2021-07-05T14:26:52.000Z
2021-08-25T15:54:39.000Z
backend/project/accounts/api/views.py
Kamil732/beauty-salon
d99482111761f8c12b486246c539542f4f41c6c3
[ "CC0-1.0" ]
null
null
null
backend/project/accounts/api/views.py
Kamil732/beauty-salon
d99482111761f8c12b486246c539542f4f41c6c3
[ "CC0-1.0" ]
null
null
null
from django.db.models import Q from django.db.models import Value as V from django.db.models.functions import Concat from django.views.decorators.csrf import csrf_protect from django.utils.decorators import method_decorator from django.contrib import auth from rest_framework.views import APIView from rest_framework.re...
34.653846
144
0.717869
cb931ffc49115dab170170a22b7f95b00fffaa80
1,696
py
Python
losses/_3dmm.py
human-analysis/3dfacefill
1f85d72731690730eef03871d3afecf9d4d307b4
[ "MIT" ]
4
2022-01-01T08:53:20.000Z
2022-01-26T18:43:36.000Z
losses/_3dmm.py
human-analysis/3dfacefill
1f85d72731690730eef03871d3afecf9d4d307b4
[ "MIT" ]
1
2022-03-07T11:34:59.000Z
2022-03-08T02:41:11.000Z
losses/_3dmm.py
human-analysis/3dfacefill
1f85d72731690730eef03871d3afecf9d4d307b4
[ "MIT" ]
3
2022-01-01T08:53:22.000Z
2022-03-16T12:40:40.000Z
# regression.py import torch from torch import nn import numpy as np __all__ = ['_3DMM'] class _3DMM(object): """docstring for 3DMM""" def __init__(self): super(_3DMM, self).__init__() self.l1_loss = nn.L1Loss(reduction='none') self.mse_loss = nn.MSELoss(reduction='none') self...
32.615385
116
0.552476
b4b4d17a71f9ecf2bfc76e1af49fcdb79fdb2c64
322
py
Python
h2a2b.py
EranGoldman/h2a2b
87a6d7f52d5431f47c1696751836ada667e6a325
[ "MIT" ]
null
null
null
h2a2b.py
EranGoldman/h2a2b
87a6d7f52d5431f47c1696751836ada667e6a325
[ "MIT" ]
null
null
null
h2a2b.py
EranGoldman/h2a2b
87a6d7f52d5431f47c1696751836ada667e6a325
[ "MIT" ]
null
null
null
import sys, binascii,base64,re if len(sys.argv) == 2: hex = sys.argv[1] for i in range(0,len(sys.argv[1])): if hex[i] not in "0987654321abcdef": print(hex + " is not hex") sys.exit() print(base64.b64decode(binascii.unhexlify(hex))) else: print("Please enter anigma string"...
29.272727
52
0.602484
450c4e3eb9ecb6528fa8f9ae0640a138b18d069d
67,602
py
Python
IntelFsp2Pkg/Tools/GenCfgOpt.py
tvbroughton/ModernFW
83f997e58dcab4238dc537f38730d98bf5dad0df
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
122
2019-05-14T02:30:24.000Z
2022-03-16T08:45:15.000Z
IntelFsp2Pkg/Tools/GenCfgOpt.py
tvbroughton/ModernFW
83f997e58dcab4238dc537f38730d98bf5dad0df
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
6
2019-05-15T03:46:22.000Z
2019-06-10T00:21:48.000Z
IntelFsp2Pkg/Tools/GenCfgOpt.py
tvbroughton/ModernFW
83f997e58dcab4238dc537f38730d98bf5dad0df
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
20
2019-05-14T01:27:02.000Z
2021-08-31T08:39:01.000Z
## @ GenCfgOpt.py # # Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import os import re import sys import struct from datetime import date # Generated file copyright header __copyright_txt__ = """## @file # # THIS IS AUT...
43.64235
171
0.443271
22cacb66410792fce58e16fad40d1fc761a815ba
6,140
py
Python
craft_detector/test.py
vinhtq115/CRAFT-pytorch
2be0399fde1ba9bbe7af73e29054fbb678a1d01b
[ "MIT" ]
6
2020-08-23T22:47:11.000Z
2021-06-17T14:32:49.000Z
craft_detector/test.py
vinhtq115/CRAFT-pytorch
2be0399fde1ba9bbe7af73e29054fbb678a1d01b
[ "MIT" ]
null
null
null
craft_detector/test.py
vinhtq115/CRAFT-pytorch
2be0399fde1ba9bbe7af73e29054fbb678a1d01b
[ "MIT" ]
7
2020-08-06T12:39:39.000Z
2021-07-03T01:00:55.000Z
""" Copyright (c) 2019-present NAVER Corp. MIT License """ # -*- coding: utf-8 -*- import sys import os import time import argparse import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.autograd import Variable from PIL import Image import cv2 from skimage import io import numpy as np...
34.494382
156
0.66987
1db579d8c0e92ac19ca95e88aa7aae19979a915a
917
py
Python
example/home/mutations.py
mazurbeam/wagtail-grapple
8ca975b71553c4454a619d51d66d61fcd696faeb
[ "BSD-3-Clause" ]
null
null
null
example/home/mutations.py
mazurbeam/wagtail-grapple
8ca975b71553c4454a619d51d66d61fcd696faeb
[ "BSD-3-Clause" ]
null
null
null
example/home/mutations.py
mazurbeam/wagtail-grapple
8ca975b71553c4454a619d51d66d61fcd696faeb
[ "BSD-3-Clause" ]
null
null
null
from wagtail.core import hooks from django.utils.crypto import get_random_string from wagtail.core.models import Page import graphene from grapple.types.pages import PageInterface from home.models import AuthorPage class CreateAuthor(graphene.Mutation): class Arguments: name = graphene.String() p...
28.65625
89
0.7012
a77eb82f0494762260f40bd5f6bcef42715bd451
30,761
py
Python
opennmt/training.py
feze23/OpenNMT-tf
27d8de46021ded39b6ffc9f09ec15b141af6cf5e
[ "MIT" ]
null
null
null
opennmt/training.py
feze23/OpenNMT-tf
27d8de46021ded39b6ffc9f09ec15b141af6cf5e
[ "MIT" ]
null
null
null
opennmt/training.py
feze23/OpenNMT-tf
27d8de46021ded39b6ffc9f09ec15b141af6cf5e
[ "MIT" ]
null
null
null
"""Training related classes and functions.""" import collections import contextlib import itertools import time import tensorflow as tf from opennmt.inputters import text_inputter from opennmt.optimizers import utils as optimizer_util from opennmt.utils import compat from opennmt.utils import misc def _add_mixed_p...
38.403246
98
0.604304
c53bff30b8c633b9cacb67f37bbe6bbcbcdfee66
3,928
py
Python
src/gamesbyexample/powerballlottery.py
Hacker-Boy9999/PythonStdioGames
be96635a3a54e0ca32f2658f9e7089b173db5fa2
[ "Python-2.0" ]
null
null
null
src/gamesbyexample/powerballlottery.py
Hacker-Boy9999/PythonStdioGames
be96635a3a54e0ca32f2658f9e7089b173db5fa2
[ "Python-2.0" ]
null
null
null
src/gamesbyexample/powerballlottery.py
Hacker-Boy9999/PythonStdioGames
be96635a3a54e0ca32f2658f9e7089b173db5fa2
[ "Python-2.0" ]
null
null
null
"""Powerball Lottery, by Al Sweigart al@inventwithpython.com A simulation of the lottery so you can experience the thrill of losing the lottery without wasting your money. This and other games are available at https://nostarch.com/XX Tags: short, humor, simulation""" __version__ = 0 import random print('''Powerball Lo...
31.677419
73
0.648167
3f96b0aff0cac543ee50f8adfd7fd692e3ef8b52
1,223
py
Python
ejemplo02/consulta_datos2.py
PlataformasWeb-P-AA2021/clase07-1bim-vysery98
50e48beb294efa4eb7b0ecda4c6145ac74581fea
[ "Unlicense", "MIT" ]
null
null
null
ejemplo02/consulta_datos2.py
PlataformasWeb-P-AA2021/clase07-1bim-vysery98
50e48beb294efa4eb7b0ecda4c6145ac74581fea
[ "Unlicense", "MIT" ]
null
null
null
ejemplo02/consulta_datos2.py
PlataformasWeb-P-AA2021/clase07-1bim-vysery98
50e48beb294efa4eb7b0ecda4c6145ac74581fea
[ "Unlicense", "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy import and_ # se importa el operador and # se importa la clase(s) del # archivo genera_tablas from genera_tablas import Club, Jugador # se importa información del archivo configuracion from configuracion import cadena_base_d...
28.44186
58
0.708095
d19bf8587714026758f1d389f9dcba5b2385782e
24,860
py
Python
pandas/conftest.py
rkbk2000/pandas
e95ac5c4fd49acf63bb671f81e97ddeb4a1460f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/conftest.py
rkbk2000/pandas
e95ac5c4fd49acf63bb671f81e97ddeb4a1460f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/conftest.py
rkbk2000/pandas
e95ac5c4fd49acf63bb671f81e97ddeb4a1460f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from collections import abc from datetime import date, time, timedelta, timezone from decimal import Decimal import operator import os from dateutil.tz import tzlocal, tzutc import hypothesis from hypothesis import strategies as st import numpy as np import pytest from pytz import FixedOffset, utc import pandas.util....
24.301075
87
0.633387
7bf688371ac95dbda217466b198c46e165223a3c
71
py
Python
tensortest.py
mcculzac/CSE891_Bio
3c22a40100490cecd412ac582cf5ff09e0f325b8
[ "MIT" ]
21
2020-03-07T06:27:20.000Z
2021-06-18T23:58:06.000Z
utils/test_gpu.py
pranjalchanda08/Self-Driving-Car
1bbe4fbe01d9d49803f21025aa8304b0174ea5e9
[ "MIT" ]
1
2021-01-27T11:54:22.000Z
2021-01-30T14:29:33.000Z
utils/test_gpu.py
pranjalchanda08/Self-Driving-Car
1bbe4fbe01d9d49803f21025aa8304b0174ea5e9
[ "MIT" ]
5
2020-05-21T00:41:00.000Z
2021-06-18T23:58:09.000Z
import tensorflow as tf print(tf.config.list_physical_devices('GPU'))
17.75
45
0.802817
f19e824096565970f613c258c72628d606fda078
348
py
Python
packages/core/minos-microservice-aggregate/minos/aggregate/transactions/contextvars.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
3
2021-11-05T08:47:45.000Z
2021-11-17T09:37:26.000Z
packages/core/minos-microservice-aggregate/minos/aggregate/transactions/contextvars.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
30
2021-11-05T08:49:28.000Z
2022-01-28T12:00:56.000Z
minos/aggregate/transactions/contextvars.py
Clariteia/minos_microservice_aggregate
517db2f1abb11f5a8f2d77da76613061590ee5a7
[ "MIT" ]
null
null
null
from __future__ import ( annotations, ) from contextvars import ( ContextVar, ) from typing import ( TYPE_CHECKING, Final, Optional, ) if TYPE_CHECKING: from .entries import ( TransactionEntry, ) TRANSACTION_CONTEXT_VAR: Final[ContextVar[Optional[TransactionEntry]]] = ContextVar("...
17.4
112
0.706897
2fd6cccdcd1d2f788b8e6244839e848a91fffe29
1,073
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/prime-arrangements.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/prime-arrangements.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/prime-arrangements.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n/2 + n/3 + ... + n/p) = O(nlog(logn)), see https://mathoverflow.net/questions/4596/on-the-series-1-2-1-3-1-5-1-7-1-11 # Space: O(n) class Solution(object): def numPrimeArrangements(self, n): """ :type n: int :rtype: int """ def count_primes(n): if n <...
29.805556
129
0.411929
ddf3d7689f44aefc2b70850a459318fd6f8001df
262
py
Python
django/tests/templates/form_view.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/tests/templates/form_view.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/tests/templates/form_view.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
BBBBBBB BBBBBBBBBBB BBBBB BBBBBXXXXXX XXXXBBBBBBBB BBBBB BBBBBBB XXXXXXXXX XXXXX XXXXXXXXXXXXXX BB BBBBBBBBBBB XX XXXXXXXXXXXXXXXXXXXXXX XXXXXXX XXX XXXXXX XXXXXXXXXX BBBBB XXX XXXXXXXXXXXXX XXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX XXXXX XXXXXXX BBBBBBBB
16.375
55
0.889313
7c7179ac98f7fafd10bb0ed8aad8e3beba7807e7
1,483
py
Python
tests/t_spnego_negotiate_once.py
devurandom/mod_auth_gssapi
06a069abddb97d735c45de58feac8ed18b65be35
[ "MIT" ]
null
null
null
tests/t_spnego_negotiate_once.py
devurandom/mod_auth_gssapi
06a069abddb97d735c45de58feac8ed18b65be35
[ "MIT" ]
null
null
null
tests/t_spnego_negotiate_once.py
devurandom/mod_auth_gssapi
06a069abddb97d735c45de58feac8ed18b65be35
[ "MIT" ]
1
2022-01-17T18:38:03.000Z
2022-01-17T18:38:03.000Z
#!/usr/bin/python # Copyright (C) 2015 - mod_auth_gssapi contributors, see COPYING for license. import os import requests from requests_kerberos import HTTPKerberosAuth, OPTIONAL if __name__ == '__main__': sess = requests.Session() url = 'http://%s/spnego_negotiate_once/' % ( os.environ['NSS_WRAPPER_...
39.026316
78
0.671612
74ca5a50110b46369a2e2df6b48e9b9c83cb05ee
1,106
py
Python
repo/examples/subscriber.py
justincpresley/nr-archway
327dd6f013a6b6f35b6e7ca8a9cf1ca3acc26a9e
[ "Apache-2.0" ]
4
2021-08-18T00:25:11.000Z
2021-11-03T02:14:17.000Z
repo/examples/subscriber.py
justincpresley/ndn-archway
54d704ad964690061ddc613ed58a0ea28629be3d
[ "Apache-2.0" ]
2
2021-09-29T21:43:45.000Z
2021-11-17T23:02:27.000Z
repo/examples/subscriber.py
justincpresley/ndn-archway
54d704ad964690061ddc613ed58a0ea28629be3d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Example subscriber for `util/pubsub.py`. @Author jonnykong@cs.ucla.edu @Date 2020-05-10 """ import asyncio as aio import logging from ndn.app import NDNApp from ndn.encoding import Name, NonStrictName import sys sys.path.insert(0,'..') from archway_repo.utils import PubSub as...
26.333333
72
0.66094
cefa74770e220b96ab1cf8f1a2919cd403161912
2,874
py
Python
users/views.py
Tipuch/editdojo
3efe6fa97a06d770ead7f4973a53dbb9b92445bf
[ "MIT" ]
402
2018-10-18T05:49:04.000Z
2022-03-31T08:02:50.000Z
users/views.py
Tipuch/editdojo
3efe6fa97a06d770ead7f4973a53dbb9b92445bf
[ "MIT" ]
52
2018-10-18T11:13:00.000Z
2021-06-10T21:26:18.000Z
users/views.py
Tipuch/editdojo
3efe6fa97a06d770ead7f4973a53dbb9b92445bf
[ "MIT" ]
138
2018-10-18T05:04:42.000Z
2022-01-10T13:07:51.000Z
from django.shortcuts import render from django.http import HttpResponseRedirect from .models import Language # returns True if the user has already finished the signup flow. def finished_signup_flow(user): # The assumption of this function is that the user is already signed in. assert user.is_authenticated ...
36.846154
86
0.687196
1ac91a10c867bd5efab1dc271b0e03e3503ada57
3,846
py
Python
xinshuo_io/pts_io.py
xinshuoweng/cv_ml_tool
1918b9e37ec5fb8148b8a089f226a4864d67b153
[ "MIT" ]
31
2020-03-05T12:27:21.000Z
2022-03-07T04:00:18.000Z
xinshuo_io/pts_io.py
xinshuoweng/cv_ml_tool
1918b9e37ec5fb8148b8a089f226a4864d67b153
[ "MIT" ]
null
null
null
xinshuo_io/pts_io.py
xinshuoweng/cv_ml_tool
1918b9e37ec5fb8148b8a089f226a4864d67b153
[ "MIT" ]
12
2020-07-06T05:06:58.000Z
2021-11-18T14:43:20.000Z
# Author: Xinshuo Weng # email: xinshuo.weng@gmail.com # this file includes functions about point file I/O stream import numpy as np from .file_io import load_txt_file from xinshuo_miscellaneous import is_path_exists_or_creatable, is2dptsarray_occlusion, is2dptsarray_confidence, is2dptsarray, remove_empty_item_from_l...
47.481481
183
0.630785
4f8aaef7d59c5184654de3481f3b39c50e952518
11,689
py
Python
storops_test/vnx/test_parsers.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
60
2016-04-18T23:42:10.000Z
2022-03-23T02:26:03.000Z
storops_test/vnx/test_parsers.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
317
2016-05-25T06:45:37.000Z
2022-03-25T13:22:38.000Z
storops_test/vnx/test_parsers.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
34
2016-03-18T02:39:12.000Z
2022-01-07T12:54:14.000Z
# coding=utf-8 # Copyright (c) 2015 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
36.301242
78
0.612627
6a926c4419ad82a57d70e3e69ae812f485e9e747
1,540
py
Python
post2notion.py
iayanpahwa/sensor2notion
f85ec09cbce0e626def9fadeef6793b3ffb9e236
[ "Apache-2.0" ]
5
2022-01-22T18:27:53.000Z
2022-02-25T13:38:32.000Z
post2notion.py
iayanpahwa/sensor2notion
f85ec09cbce0e626def9fadeef6793b3ffb9e236
[ "Apache-2.0" ]
null
null
null
post2notion.py
iayanpahwa/sensor2notion
f85ec09cbce0e626def9fadeef6793b3ffb9e236
[ "Apache-2.0" ]
null
null
null
import requests, json def createPage(databaseId, headers, data): ''' Create a new notion row incl following data: Date Outdoor Temperature Outdoor Humidity Air Quality Indoor Temperature Indoor Humidity ''' createUrl = 'https://api.notion.com/v1/pages' newPageData = { ...
27.017544
77
0.428571
75ca941b01cd09e7ab902b16ef2cb62d17673059
618
py
Python
microservice/examples/echo.py
MartinHowarth/microservice
d20adef043f0f8265e75c9ab518567ade21255bd
[ "MIT" ]
null
null
null
microservice/examples/echo.py
MartinHowarth/microservice
d20adef043f0f8265e75c9ab518567ade21255bd
[ "MIT" ]
null
null
null
microservice/examples/echo.py
MartinHowarth/microservice
d20adef043f0f8265e75c9ab518567ade21255bd
[ "MIT" ]
null
null
null
from microservice.core.decorator import microservice @microservice def echo_as_dict(*args, **kwargs): print(args) print(kwargs) ret = {'_args': args} ret.update(kwargs) return ret @microservice def echo_as_dict2(*args, **kwargs): print(args) print(kwargs) ret = {'_args': args} re...
19.935484
55
0.648867
6c3fd94f54ddcea68f3b10d7e4af822b08280083
9,079
py
Python
leetcode_python/Heap/least-number-of-unique-integers-after-k-removals.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Heap/least-number-of-unique-integers-after-k-removals.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Heap/least-number-of-unique-integers-after-k-removals.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 1481. Least Number of Unique Integers after K Removals Medium Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: arr = [5,5,4], k = 1 Output: 1 Explanation: Remove the single 4, only 5 is left. Example 2: Input: arr =...
33.625926
454
0.573191
d4b666f8cfe67763cdc84d1761aae643352fa9ee
7,132
py
Python
sdk/python/pulumi_azure_nextgen/keyvault/v20190901/get_key.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/keyvault/v20190901/get_key.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/keyvault/v20190901/get_key.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
33.961905
198
0.62493
b0834edf2893555d97e93126d285a8f6ddf68524
439
py
Python
tests/bdd/common/csi.py
xin3liang/mayastor-control-plane
05650c5cf673cf1433d3a68b4991674b87cfc214
[ "Apache-2.0" ]
13
2021-03-29T15:10:15.000Z
2022-03-23T04:01:59.000Z
tests/bdd/common/csi.py
xin3liang/mayastor-control-plane
05650c5cf673cf1433d3a68b4991674b87cfc214
[ "Apache-2.0" ]
146
2021-03-30T13:14:56.000Z
2022-03-31T15:54:38.000Z
tests/bdd/common/csi.py
xin3liang/mayastor-control-plane
05650c5cf673cf1433d3a68b4991674b87cfc214
[ "Apache-2.0" ]
12
2021-06-22T13:53:01.000Z
2022-03-31T12:07:36.000Z
""" Wrapper arount gRPC handle to communicate with CSI controller. """ import grpc import csi_pb2_grpc as rpc class CsiHandle(object): def __init__(self, csi_socket): self.channel = grpc.insecure_channel(csi_socket) self.controller = rpc.ControllerStub(self.channel) self.identity = rpc.Id...
21.95
62
0.690205
8a41e9afb4fa44cc254a8f3b85e90fec958e2b8c
613
py
Python
ZhipinSpider/ZhipinSpider/items.py
seeincen1/spider
ae468ecc143bc72f8c526d22c9850956d9456184
[ "Apache-2.0" ]
null
null
null
ZhipinSpider/ZhipinSpider/items.py
seeincen1/spider
ae468ecc143bc72f8c526d22c9850956d9456184
[ "Apache-2.0" ]
null
null
null
ZhipinSpider/ZhipinSpider/items.py
seeincen1/spider
ae468ecc143bc72f8c526d22c9850956d9456184
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class ZhipinspiderItem(scrapy.Item): # define the fields for your item here like: #工作名称 title = scrapy.Field() #工资 salary = scrapy...
19.15625
53
0.631321
233d21f217d60c600daf9c3db0fb5a7f6b6e9f76
189
py
Python
gherkin_to_markdown/expressions/example_expression.py
LeandreArseneault/gherkin_to_markdown
157a6a7ba5b7f1f3a159bc163bf1b1187401243a
[ "MIT" ]
6
2022-02-14T22:10:50.000Z
2022-03-10T20:42:29.000Z
gherkin_to_markdown/expressions/example_expression.py
LeandreArseneault/gherkin_to_markdown
157a6a7ba5b7f1f3a159bc163bf1b1187401243a
[ "MIT" ]
null
null
null
gherkin_to_markdown/expressions/example_expression.py
LeandreArseneault/gherkin_to_markdown
157a6a7ba5b7f1f3a159bc163bf1b1187401243a
[ "MIT" ]
null
null
null
from gherkin_to_markdown.expressions.expression import Expression class ExampleExpression(Expression): def to_markdown(self, statement: str): return f"### {self.keyword}\n\n"
27
65
0.751323
6582d1a76b32cd3335812ff253975ccf188db89b
2,211
py
Python
app.py
Ideneal/IVUShiftsSync
106d7835c6987b95b35275bc3217051fc886b033
[ "MIT" ]
null
null
null
app.py
Ideneal/IVUShiftsSync
106d7835c6987b95b35275bc3217051fc886b033
[ "MIT" ]
null
null
null
app.py
Ideneal/IVUShiftsSync
106d7835c6987b95b35275bc3217051fc886b033
[ "MIT" ]
null
null
null
import logging from datetime import datetime from ivu import IVU from cal import Calendar from event import EventAdapter from config import config from utils import progress_bar, str2date, add_days, date2datetime # Add logger logging.basicConfig(filename='app.log', filemode='w+', datefmt='%d-%m-%Y %H:%M:%S') def syn...
31.585714
103
0.684306
d77e8aacb1742334eb4b5506fbdcebe8963894ea
13,195
py
Python
vivisect/impemu/platarch/arm.py
pombredanne/vivisect
0274ff1dee066ccb9c9f5072fb7ac7b98655f854
[ "ECL-2.0", "Apache-2.0" ]
16
2015-12-10T06:18:16.000Z
2021-09-11T21:42:16.000Z
vivisect/impemu/platarch/arm.py
pombredanne/vivisect
0274ff1dee066ccb9c9f5072fb7ac7b98655f854
[ "ECL-2.0", "Apache-2.0" ]
5
2018-10-12T21:07:24.000Z
2018-10-12T21:08:49.000Z
vivisect/impemu/platarch/arm.py
pombredanne/vivisect
0274ff1dee066ccb9c9f5072fb7ac7b98655f854
[ "ECL-2.0", "Apache-2.0" ]
6
2016-03-20T11:15:51.000Z
2021-08-06T07:32:42.000Z
import logging import envi import envi.archs.arm as e_arm from envi.archs.arm.regs import * import vivisect.exc as v_exc import vivisect.impemu.emulator as v_i_emulator import visgraph.pathcore as vg_path logger = logging.getLogger(__name__) class ArmWorkspaceEmulator(v_i_emulator.WorkspaceEmulator, e_arm.ArmEmul...
42.291667
545
0.564532
4842aac0dd1661a0021046559077e21666cc20a1
3,388
py
Python
todo_list/settings.py
IgnacioBarroso/todo-challenge
d73046972f523648d5aed88e32dfbe380ba5effc
[ "MIT" ]
null
null
null
todo_list/settings.py
IgnacioBarroso/todo-challenge
d73046972f523648d5aed88e32dfbe380ba5effc
[ "MIT" ]
null
null
null
todo_list/settings.py
IgnacioBarroso/todo-challenge
d73046972f523648d5aed88e32dfbe380ba5effc
[ "MIT" ]
null
null
null
""" Django settings for todo_list project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathl...
25.666667
91
0.701004
a24e3c5ef885d3af97ca587f7c14624baa866534
9,141
py
Python
Bio/Data/IUPACData.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
3
2016-11-21T09:55:56.000Z
2019-04-09T17:39:43.000Z
Bio/Data/IUPACData.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
32
2016-11-21T07:38:21.000Z
2017-08-16T13:00:03.000Z
Bio/Data/IUPACData.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
8
2016-11-24T18:57:35.000Z
2022-01-16T08:15:25.000Z
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Information about the IUPAC alphabets.""" protein_letters = "ACDEFGHIKLMNPQRSTVWY" extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO" # B =...
22.186893
80
0.50815
819438227c18cf1318563b916e435e4027b1b9c4
591
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractBluebunnytranslationsWordpressCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractBluebunnytranslationsWordpressCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractBluebunnytranslationsWordpressCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractBluebunnytranslationsWordpressCom(item): ''' Parser for 'bluebunnytranslations.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('IHM', 'I Have Medicine', ...
29.55
104
0.659898
f53657f60e835a1cbda82c04cfd2252d03aaa786
331
py
Python
public/app.py
ayushmankumar7/Tre-Tak
781e9c4b72c46706bf62b704ace25a6180b3b620
[ "MIT" ]
null
null
null
public/app.py
ayushmankumar7/Tre-Tak
781e9c4b72c46706bf62b704ace25a6180b3b620
[ "MIT" ]
null
null
null
public/app.py
ayushmankumar7/Tre-Tak
781e9c4b72c46706bf62b704ace25a6180b3b620
[ "MIT" ]
null
null
null
from flask import Flask, send_from_directory, render_template import os app = Flask(__name__) @app.route('/favicon.ico') def favicon(): return send_from_directory(os.path.join(app.root_path, 'static'), 'images/icon.ico') @app.route("/") def index(): return render_template("inde...
20.6875
69
0.65861
64c7aec74eb8ed3b629ea4077e78b8f3b6e00265
1,629
py
Python
iotronic_ui/project/map/views.py
MDSLab/iotronic-ops-dashboard
ef12ec244e9ef156322749593c8d17de726f5586
[ "Apache-2.0" ]
null
null
null
iotronic_ui/project/map/views.py
MDSLab/iotronic-ops-dashboard
ef12ec244e9ef156322749593c8d17de726f5586
[ "Apache-2.0" ]
1
2018-10-17T10:59:55.000Z
2018-10-30T11:58:40.000Z
iotronic_ui/project/map/views.py
MDSLab/iotronic-ops-dashboard
ef12ec244e9ef156322749593c8d17de726f5586
[ "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...
33.244898
79
0.655003
bafa85e1b393b19efad399ec3700a3b4c7b9f07c
2,939
py
Python
Xana/Xfit/fitgaussian.py
ClLov/Xana
83d880432a457cff0f1fab2801e2530ddecb4019
[ "MIT" ]
null
null
null
Xana/Xfit/fitgaussian.py
ClLov/Xana
83d880432a457cff0f1fab2801e2530ddecb4019
[ "MIT" ]
null
null
null
Xana/Xfit/fitgaussian.py
ClLov/Xana
83d880432a457cff0f1fab2801e2530ddecb4019
[ "MIT" ]
null
null
null
import numpy as np from numpy import exp, sqrt, pi import lmfit def gaussian(x, **p): gauss = 0 for i in range(p['nm']): mst = str(i) gauss += (p['a'+mst]/(sqrt(2*pi)*p['sig'+mst])) * exp(-(x-p['cen'+mst])**2 /(2*p['sig'+mst]**2)) gauss += + p['bg'] return gauss def fitgaussian( x, y,...
32.655556
121
0.480436
d2f42ce2e1ed044de1af1b69b22c445011d00d4c
3,260
py
Python
scripts/artifacts/healthCadence.py
rathbuna/iLEAPP
391ddfab2257875fdf8181c84eb29a4992b60af7
[ "MIT" ]
2
2021-02-09T21:46:14.000Z
2021-06-14T12:26:55.000Z
scripts/artifacts/healthCadence.py
rathbuna/iLEAPP
391ddfab2257875fdf8181c84eb29a4992b60af7
[ "MIT" ]
null
null
null
scripts/artifacts/healthCadence.py
rathbuna/iLEAPP
391ddfab2257875fdf8181c84eb29a4992b60af7
[ "MIT" ]
1
2020-12-11T10:07:28.000Z
2020-12-11T10:07:28.000Z
import glob import os import pathlib import plistlib import sqlite3 from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows from scripts.ccl import ccl_bplist def get_healthCadence(files_found, report_folder, seeker): file_found = str(files...
38.809524
226
0.639571
67d3b4ba26fb78582ff2e2d2ea5c5cc4988e4e53
4,506
py
Python
networkx/algorithms/assortativity/connectivity.py
jmmcd/networkx
207ff7d1e9bfaff013ac77c8d6bb79619892c994
[ "BSD-3-Clause" ]
1
2020-08-08T21:52:34.000Z
2020-08-08T21:52:34.000Z
networkx/algorithms/assortativity/connectivity.py
jmmcd/networkx
207ff7d1e9bfaff013ac77c8d6bb79619892c994
[ "BSD-3-Clause" ]
2
2019-11-13T03:48:53.000Z
2021-02-15T16:52:09.000Z
networkx/algorithms/assortativity/connectivity.py
jmmcd/networkx
207ff7d1e9bfaff013ac77c8d6bb79619892c994
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2011 by # Jordi Torrents <jtorrents@milnou.net> # Aric Hagberg <hagberg@lanl.gov> # All rights reserved. # BSD license. # # # Authors: Jordi Torrents <jtorrents@milnou.net> # Aric Hagberg <hagberg@lanl.gov> from collections import defaultdict __all__ =...
31.957447
78
0.582335
5494b49a9993bf66a03a0f97c0b2dc8d9a062c60
57,098
py
Python
exl_env/lib/python3.6/site-packages/xgboost/core.py
verma-varsha/fraud-detection
13c5b0c274dfa2b68e82a4ee317e09223b5b663f
[ "MIT" ]
1
2019-12-26T03:43:28.000Z
2019-12-26T03:43:28.000Z
exl_env/lib/python3.6/site-packages/xgboost/core.py
verma-varsha/fraud-detection
13c5b0c274dfa2b68e82a4ee317e09223b5b663f
[ "MIT" ]
4
2021-03-18T22:30:03.000Z
2022-02-12T06:12:28.000Z
exl_env/lib/python3.6/site-packages/xgboost/core.py
verma-varsha/fraud-detection
13c5b0c274dfa2b68e82a4ee317e09223b5b663f
[ "MIT" ]
1
2022-01-27T15:35:59.000Z
2022-01-27T15:35:59.000Z
# coding: utf-8 # pylint: disable=too-many-arguments, too-many-branches, invalid-name # pylint: disable=too-many-branches, too-many-lines, W0141 """Core XGBoost Library.""" from __future__ import absolute_import import collections import ctypes import os import re import sys import numpy as np import scipy.sparse fr...
35.978576
99
0.552927
ca80b29ddd7241b5c7f235e840080a9d59237b7a
1,336
py
Python
config/settings.py
wilsonpe66/server-backend
16665d810fe1829f5dacc67f396b7cecf5af042f
[ "BSD-3-Clause" ]
1
2019-09-26T04:00:55.000Z
2019-09-26T04:00:55.000Z
config/settings.py
wilsonpe66/server-backend
16665d810fe1829f5dacc67f396b7cecf5af042f
[ "BSD-3-Clause" ]
2
2020-06-05T21:58:55.000Z
2021-06-10T21:45:08.000Z
config/settings.py
wilsonpe66/server-backend
16665d810fe1829f5dacc67f396b7cecf5af042f
[ "BSD-3-Clause" ]
1
2019-09-26T03:55:06.000Z
2019-09-26T03:55:06.000Z
from os import getenv """ To customize any of these values, append a line to config/remote_db_env.py such as: os.environ['S3_BUCKET'] = 'bucket_name' """ # This is the secret key for the website. Mostly it is used to sign cookies. You should provide a # cryptographically secure string to this value. FLASK_SECRET_KEY...
37.111111
97
0.794162
ce2911195a0ecf9654bdcba434cebbfd2ae82746
750
py
Python
openslidertfpy/__init__.py
OtaYuji/openslider-tfpy
19891babb1d2ad85e0a3866939f86e0fdbcce3d8
[ "Apache-2.0" ]
4
2020-05-10T11:36:10.000Z
2021-12-12T14:22:12.000Z
openslidertfpy/__init__.py
OtaYuji/openslider-tfpy
19891babb1d2ad85e0a3866939f86e0fdbcce3d8
[ "Apache-2.0" ]
1
2021-03-20T07:20:34.000Z
2021-03-20T07:20:34.000Z
openslidertfpy/__init__.py
yujota/openslider-tfpy
19891babb1d2ad85e0a3866939f86e0fdbcce3d8
[ "Apache-2.0" ]
null
null
null
# Copyright # 2019 Department of Dermatology, School of Medicine, Tohoku University # # 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/LICENS...
44.117647
76
0.752
7175d59264195992e9d1f9799379318b7a4fd217
7,179
py
Python
resource/compute_dynamic_params.py
dataiku/dss-plugin-snowflake-stages
866f4adca07fb24a7ed8feb90fb0758b28c82086
[ "Apache-2.0" ]
null
null
null
resource/compute_dynamic_params.py
dataiku/dss-plugin-snowflake-stages
866f4adca07fb24a7ed8feb90fb0758b28c82086
[ "Apache-2.0" ]
null
null
null
resource/compute_dynamic_params.py
dataiku/dss-plugin-snowflake-stages
866f4adca07fb24a7ed8feb90fb0758b28c82086
[ "Apache-2.0" ]
null
null
null
import logging from dataiku import SQLExecutor2, api_client, default_project_key def do(payload, config, plugin_config, inputs): """ Currently we can't dynamically recalculate the choices of a param B depending on the value of a param A (see https://app.clubhouse.io/dataiku/story/53713) This is why we hav...
38.805405
158
0.667363
e496e6fc11040043a2d18404d04d72f8b93399dd
172
py
Python
src/staticunderscorei18n/apps.py
chinsky/django-static-underscore-i18n
fb0ebd5b3848ed20e7e18e137b3722b3b8540c66
[ "MIT" ]
null
null
null
src/staticunderscorei18n/apps.py
chinsky/django-static-underscore-i18n
fb0ebd5b3848ed20e7e18e137b3722b3b8540c66
[ "MIT" ]
1
2019-02-27T16:22:40.000Z
2019-02-27T17:07:46.000Z
src/staticunderscorei18n/apps.py
chinsky/django-static-underscore-i18n
fb0ebd5b3848ed20e7e18e137b3722b3b8540c66
[ "MIT" ]
1
2019-02-28T10:08:55.000Z
2019-02-28T10:08:55.000Z
from django.apps import AppConfig class StaticUnderscoreI18NConfig(AppConfig): name = 'staticunderscorei18n' def ready(self): from . import conf # noqa
19.111111
44
0.715116
bc5b3647ceec4b0897fd0c0fb15e6d2f2358b0bb
1,178
py
Python
migrations/versions/9f2495bd66de_.py
Rdbaker/Mealbound
37cec6b45a632ac26a5341a0c9556279b6229ea8
[ "BSD-3-Clause" ]
1
2018-11-03T17:48:50.000Z
2018-11-03T17:48:50.000Z
migrations/versions/9f2495bd66de_.py
Rdbaker/Mealbound
37cec6b45a632ac26a5341a0c9556279b6229ea8
[ "BSD-3-Clause" ]
3
2021-03-09T09:47:04.000Z
2022-02-12T13:04:41.000Z
migrations/versions/9f2495bd66de_.py
Rdbaker/Mealbound
37cec6b45a632ac26a5341a0c9556279b6229ea8
[ "BSD-3-Clause" ]
null
null
null
"""Adds the review table Revision ID: 9f2495bd66de Revises: 3e4b230c5582 Create Date: 2017-07-09 11:02:10.683542 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '9f2495bd66de' down_revision = '3e4b230c5582' branch_label...
30.205128
72
0.689304
7e40219045d7e993b75cca7674d6ec5da064241a
38
py
Python
dataloader/__init__.py
pidan1231239/SR-Stereo2
8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29
[ "MIT" ]
1
2020-03-11T12:19:13.000Z
2020-03-11T12:19:13.000Z
dataloader/__init__.py
pidan1231239/SR-Stereo2
8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29
[ "MIT" ]
null
null
null
dataloader/__init__.py
pidan1231239/SR-Stereo2
8e7ef8f33a10c9d857cc5383c02d126ee6ab8a29
[ "MIT" ]
null
null
null
from .DataLoader import getDataLoader
19
37
0.868421
a3d5894c5feadeef271b6d94859a78639c244841
12,828
py
Python
modules/nxos_snmp_user.py
nestor-xentaurs/nxos-programmability
bf43e833e66a1ab80039ca242226bca7de15c3c5
[ "Apache-2.0" ]
null
null
null
modules/nxos_snmp_user.py
nestor-xentaurs/nxos-programmability
bf43e833e66a1ab80039ca242226bca7de15c3c5
[ "Apache-2.0" ]
null
null
null
modules/nxos_snmp_user.py
nestor-xentaurs/nxos-programmability
bf43e833e66a1ab80039ca242226bca7de15c3c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
32.312343
81
0.584191
ac1589fdf2e0540302ba512fa40c6db000e71fbc
2,157
py
Python
src/gripit/core/point_cloud_model.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/core/point_cloud_model.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/core/point_cloud_model.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from builtins import int from builtins import str from future import standard_library standard_library.install_aliases() from builtins import object import pyqtgraph as pg...
28.381579
107
0.628187
773a5aa65266063a8d5faf39b250a0db570570c9
148
py
Python
saas/portal/models.py
ParthS28/MLfly
f87494cd55c33af096d7bcd6f778c6fe06a41174
[ "MIT" ]
1
2021-05-23T12:07:32.000Z
2021-05-23T12:07:32.000Z
saas/portal/models.py
ParthS28/MLfly
f87494cd55c33af096d7bcd6f778c6fe06a41174
[ "MIT" ]
null
null
null
saas/portal/models.py
ParthS28/MLfly
f87494cd55c33af096d7bcd6f778c6fe06a41174
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.db.models import Count, CharField, Model from django.urls import reverse
29.6
52
0.831081
bec9946664df93f12feef5c6b2800a8b66fdd4df
990
py
Python
frequencia/calendario/migrations/0001_initial.py
andersonqueiroz/frequencia
7dae9bb6115759edb8e8297565d0dd1b638ac94a
[ "MIT" ]
1
2021-11-22T17:17:03.000Z
2021-11-22T17:17:03.000Z
frequencia/calendario/migrations/0001_initial.py
andersonqueiroz/frequencia
7dae9bb6115759edb8e8297565d0dd1b638ac94a
[ "MIT" ]
11
2019-06-18T11:19:23.000Z
2021-08-23T12:04:54.000Z
frequencia/calendario/migrations/0001_initial.py
andersonqueiroz/frequencia
7dae9bb6115759edb8e8297565d0dd1b638ac94a
[ "MIT" ]
2
2019-04-09T16:23:22.000Z
2022-01-27T19:13:19.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-24 15:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Feriad...
31.935484
114
0.589899
50154cc696961324575ede3eed9b20ac6cd657da
1,416
py
Python
scraping/get-reviews/amazon_reviews/amazon_reviews_scrapy/spiders/amazon_reviews.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
scraping/get-reviews/amazon_reviews/amazon_reviews_scrapy/spiders/amazon_reviews.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
scraping/get-reviews/amazon_reviews/amazon_reviews_scrapy/spiders/amazon_reviews.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
from pandas.core.algorithms import mode import scrapy import pandas as pd import time import os import json class QuotesSpider(scrapy.Spider): name = "leapoffaith" def start_requests(self): list_of_urls = [] link_file = "./User_IDs.csv" df1 = pd.read_csv(link_file) length = d...
28.897959
93
0.601695
dde865ec07132929cfa26715f8a96f22a786e608
1,162
py
Python
Curso_de_Python_ Curso_em_Video/PythonExercicios/ex115/lib/arquivo/__init__.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonExercicios/ex115/lib/arquivo/__init__.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonExercicios/ex115/lib/arquivo/__init__.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
from ex115.lib.interface import * def arquivoExiste(nome): try: a = open(nome, 'rt') a.close() except FileNotFoundError: return False else: return True def criarArquivo(nome): try: a = open(nome, 'wt+') a.close() except: print('Houve um ERR...
22.784314
63
0.519793
65956df00eb457b0ef7d48cc64986cfb5138e59a
1,157
py
Python
cloudmesh/docker/shell.py
cloudmesh/cloudmesh-docker
1bfa8b02fae9108930100b3e9bf152398257a1dd
[ "Apache-2.0" ]
null
null
null
cloudmesh/docker/shell.py
cloudmesh/cloudmesh-docker
1bfa8b02fae9108930100b3e9bf152398257a1dd
[ "Apache-2.0" ]
1
2020-10-03T19:22:23.000Z
2020-10-03T19:26:18.000Z
cloudmesh/docker/shell.py
cloudmesh/cloudmesh-docker
1bfa8b02fae9108930100b3e9bf152398257a1dd
[ "Apache-2.0" ]
null
null
null
from pprint import pprint from cloudmesh.common.dotdict import dotdict from cloudmesh.shell.command import map_parameters from docopt import docopt def main(): """cms. Usage: cm install cm init cm --help cm [--echo] [--debug] [--nosplash] [-i] [COMMAND ...] Arguments: COMM...
24.104167
64
0.54019
3498c34efb086d10286df77af015ae769581b8c7
2,614
py
Python
clippy.py
zenador/clips-web-app
71a0e0a66d947a5f718e83ffa063343b84518de5
[ "MIT" ]
null
null
null
clippy.py
zenador/clips-web-app
71a0e0a66d947a5f718e83ffa063343b84518de5
[ "MIT" ]
null
null
null
clippy.py
zenador/clips-web-app
71a0e0a66d947a5f718e83ffa063343b84518de5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import eventlet as eventlib eventlib.monkey_patch() import clips namespace = "/" def AddSpecificFunction(e, func, funcname=None): e.define_function(func, funcname) class TempAns: def clearAns(self): self.temp_ans = None def __init__(self): self.temp_ans = self.clearAns() def setAns(s...
27.515789
121
0.717674
2851b6fba21992385d3e520df1b577382e9cfda9
1,295
py
Python
alien.py
ysmintor/alien_invasion
5b7c70b2d18ea57eff2b57a26b664b3c5e12a54c
[ "Apache-2.0" ]
null
null
null
alien.py
ysmintor/alien_invasion
5b7c70b2d18ea57eff2b57a26b664b3c5e12a54c
[ "Apache-2.0" ]
null
null
null
alien.py
ysmintor/alien_invasion
5b7c70b2d18ea57eff2b57a26b664b3c5e12a54c
[ "Apache-2.0" ]
null
null
null
import pygame from pygame.sprite import Sprite class Alien(Sprite): """A class to represent a single alien in the fleet.""" def __init__(self, ai_settings, screen): """Initialize the alien and set its starting position.""" super(Alien, self).__init__() self.screen = screen sel...
31.585366
90
0.620849
fe925012032839c4bee7c0cab6fd1df0dfb9a6b8
1,173
py
Python
handlers/utils.py
AbhishekRana23/TeleTor
864d528b3afbb12ac03d371e866475801ee5e0ab
[ "Apache-2.0" ]
69
2018-11-30T11:22:50.000Z
2021-12-05T20:30:53.000Z
handlers/utils.py
AbhishekRana23/TeleTor
864d528b3afbb12ac03d371e866475801ee5e0ab
[ "Apache-2.0" ]
2
2019-02-24T09:33:25.000Z
2020-03-23T12:52:17.000Z
handlers/utils.py
AbhishekRana23/TeleTor
864d528b3afbb12ac03d371e866475801ee5e0ab
[ "Apache-2.0" ]
28
2019-03-28T16:32:00.000Z
2022-02-07T13:14:24.000Z
import os import urllib3 import shutil from config import auth_cfg def convert_bytes(num): step_unit = 1000.0 for x in ['bytes', 'KB', 'MB', 'GB', 'TB']: if num < step_unit: return "%3.1f %s" % (num, x) num /= step_unit def auth(user=None): if not user: return False...
25.5
108
0.622336
d45a5349050be3fbc7182cf918f71bfe2c1f66a0
6,670
py
Python
examples/seismic/viscoelastic/operators.py
CavalcanteLucas/devito
f52cfd7d55b91f83245f33af4424adbdb03075d8
[ "MIT" ]
1
2020-01-30T17:49:12.000Z
2020-01-30T17:49:12.000Z
examples/seismic/viscoelastic/operators.py
CavalcanteLucas/devito
f52cfd7d55b91f83245f33af4424adbdb03075d8
[ "MIT" ]
1
2019-11-06T18:01:25.000Z
2019-11-06T18:01:25.000Z
examples/seismic/viscoelastic/operators.py
CavalcanteLucas/devito
f52cfd7d55b91f83245f33af4424adbdb03075d8
[ "MIT" ]
2
2018-11-15T12:03:48.000Z
2018-11-15T13:16:19.000Z
import sympy as sp from devito import Eq, Operator from examples.seismic.elastic import tensor_function, vector_function, src_rec def viscoelastic_2d(model, space_order, save, geometry): """ 2D viscoelastic wave equation FD kernel """ vp, qp, vs, qs, rho, damp = \ model.vp, model.qp, model.vs...
39.467456
87
0.575562
0697fe21007d68cecae2fcceea4af17ff6635eff
1,457
py
Python
tinkoff/invest/strategies/base/account_manager.py
Tinkoff/invest-python
26ef8cc1e70d144707246e64f29466b4491d4f8c
[ "Apache-2.0" ]
41
2022-01-21T05:38:57.000Z
2022-03-30T03:54:41.000Z
tinkoff/invest/strategies/base/account_manager.py
Tinkoff/invest-python
26ef8cc1e70d144707246e64f29466b4491d4f8c
[ "Apache-2.0" ]
20
2022-01-24T05:46:02.000Z
2022-03-31T16:54:04.000Z
tinkoff/invest/strategies/base/account_manager.py
Tinkoff/invest-python
26ef8cc1e70d144707246e64f29466b4491d4f8c
[ "Apache-2.0" ]
15
2022-01-25T06:53:27.000Z
2022-03-30T03:49:07.000Z
import logging from decimal import Decimal from tinkoff.invest import Quotation from tinkoff.invest.services import Services from tinkoff.invest.strategies.base.errors import ( InsufficientMarginalTradeFunds, MarginalTradeIsNotActive, ) from tinkoff.invest.strategies.base.strategy_settings_base import Strategy...
37.358974
88
0.748799
d29c6c6a0ce335ea56da25c8c20efe16b624d8c2
4,934
py
Python
torch_geometric/data/lightning_data_module.py
Riyer01/pytorch_geometric
e8915ad1cb5831c33c77f0fa69ee8a2267074647
[ "MIT" ]
1
2022-03-22T10:08:23.000Z
2022-03-22T10:08:23.000Z
torch_geometric/data/lightning_data_module.py
marcmk6/pytorch_geometric
e8915ad1cb5831c33c77f0fa69ee8a2267074647
[ "MIT" ]
null
null
null
torch_geometric/data/lightning_data_module.py
marcmk6/pytorch_geometric
e8915ad1cb5831c33c77f0fa69ee8a2267074647
[ "MIT" ]
null
null
null
from typing import Optional import warnings from torch_geometric.data import Dataset from torch_geometric.loader import DataLoader try: from pytorch_lightning import LightningDataModule no_pytorch_lightning = False except (ImportError, ModuleNotFoundError): LightningDataModule = object no_pytorch_lig...
36.820896
77
0.638022
76c3e8e9ee17edd26eac574c0258e1e2426b06bd
171,093
py
Python
src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
jsmith00/contrail-controller
95cda68a50f8f23d08c3ed08805f7af5781f7fdc
[ "Apache-2.0" ]
null
null
null
src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
jsmith00/contrail-controller
95cda68a50f8f23d08c3ed08805f7af5781f7fdc
[ "Apache-2.0" ]
null
null
null
src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
jsmith00/contrail-controller
95cda68a50f8f23d08c3ed08805f7af5781f7fdc
[ "Apache-2.0" ]
null
null
null
# Copyright 2012, Contrail Systems, Inc. # """ .. attention:: Fix the license string """ import requests import re import uuid import json import time import socket import netaddr from netaddr import IPNetwork, IPSet, IPAddress import gevent import bottle from neutron.common import constants from neutron.common impor...
41.955125
104
0.577101
5bf606345a436f29f2f5df12903356518e00a286
783
py
Python
tests/views_tests.py
saugatsthapit/airtng-flask
172c6f00efbb965137e458d1a3018419b034138d
[ "MIT" ]
17
2016-01-26T23:19:20.000Z
2021-07-20T14:49:06.000Z
tests/views_tests.py
saugatsthapit/airtng-flask
172c6f00efbb965137e458d1a3018419b034138d
[ "MIT" ]
154
2016-01-27T21:11:28.000Z
2022-03-31T10:12:54.000Z
tests/views_tests.py
saugatsthapit/airtng-flask
172c6f00efbb965137e458d1a3018419b034138d
[ "MIT" ]
15
2016-03-17T15:03:17.000Z
2022-02-27T14:25:57.000Z
import unittest import xml.etree.ElementTree as ElementTree from tests.base import BaseTestCase class ViewsTests(BaseTestCase): def get_to_home_route_should_render_default_view(self): self.client.get('/home') self.assert_template_used('home.html') def test_get_to_test_root_route_should_rend...
25.258065
70
0.735632