hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794eee7a39da3031070e91ec81d62d5dadd3bb1e
471
py
Python
Lab_3/part_2.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
1
2022-01-12T21:48:23.000Z
2022-01-12T21:48:23.000Z
Lab_3/part_2.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
null
null
null
Lab_3/part_2.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
null
null
null
list_den = [2, 3, 4, 0, 5, 6, 8] list_num = [] results = [] entered = 0 i=0 for num in list_den: while True: entered = int(input("Enter a number greater than or equal to 10: ")) if entered >= 10: break else: print("Number must be greater than 10") ...
21.409091
77
0.524416
794ef040c3a7f25257f7612ec1f908c19e848ed0
2,424
py
Python
doc/sphinx/example-acoustics-1d/setplot_3.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
doc/sphinx/example-acoustics-1d/setplot_3.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
doc/sphinx/example-acoustics-1d/setplot_3.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Single figure with two axes ============================= The pressure q[0] and q[1] are plotted on two sets of axes in a single figure. """ #-------------------------- def setplot(plotdata): #-------------------------- """ Specify what is to be plotted at each frame. Input: plotdata, an i...
31.076923
74
0.616749
794ef0926bc7ea5930935578d8207f5da587518d
1,374
py
Python
examples/linkedViews.py
nodedge/pyqtgraph
5a08650853a339c383281fd531fe059b74e1bbcd
[ "MIT" ]
1
2021-04-28T05:16:24.000Z
2021-04-28T05:16:24.000Z
examples/linkedViews.py
nodedge/pyqtgraph
5a08650853a339c383281fd531fe059b74e1bbcd
[ "MIT" ]
null
null
null
examples/linkedViews.py
nodedge/pyqtgraph
5a08650853a339c383281fd531fe059b74e1bbcd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This example demonstrates the ability to link the axes of views together Views can be linked manually using the context menu, but only if they are given names. """ import initExample ## Add path to library (just for examples; you do not need this) from pyqtgraph.Qt import QtGui, QtCore i...
29.869565
104
0.699418
794ef1aab91c4c4546ee1703544ca5c10f7babb9
5,298
py
Python
onnx_tf/common/__init__.py
tanp5364/onnx-tensorflow
08e41de7b127a53d072a54730e4784fe50f8c7c3
[ "Apache-2.0" ]
56
2018-12-20T11:16:20.000Z
2022-01-26T08:22:49.000Z
onnx_tf/common/__init__.py
tanp5364/onnx-tensorflow
08e41de7b127a53d072a54730e4784fe50f8c7c3
[ "Apache-2.0" ]
16
2019-04-29T15:22:45.000Z
2021-04-22T16:05:09.000Z
onnx_tf/common/__init__.py
tanp5364/onnx-tensorflow
08e41de7b127a53d072a54730e4784fe50f8c7c3
[ "Apache-2.0" ]
59
2019-03-05T12:37:43.000Z
2021-11-08T11:01:18.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import inspect import re import sys import uuid import warnings import logging from onnx.backend.base import DeviceType from tensorflow.python.client import device_lib ...
26.893401
83
0.68271
794ef211c9bcdfbf5f165e36dd0f985e905d1f6e
4,839
py
Python
prediction_utils/prediction_utils/extraction_utils/extract_features.py
som-shahlab/sepsis_transfer_learning_public
e41b3d1f43f0e59726e04215ea0da9c9919c0f68
[ "MIT" ]
9
2020-07-22T09:01:40.000Z
2022-02-03T18:44:15.000Z
prediction_utils/extraction_utils/extract_features.py
som-shahlab/fairness_benchmark
7d9e2619bf636acb2a9261ed7b4fdf59c105b8a1
[ "MIT" ]
null
null
null
prediction_utils/extraction_utils/extract_features.py
som-shahlab/fairness_benchmark
7d9e2619bf636acb2a9261ed7b4fdf59c105b8a1
[ "MIT" ]
2
2020-07-26T01:28:05.000Z
2021-12-07T13:16:52.000Z
import configargparse as argparse import os from prediction_utils.extraction_utils.featurizer import BigQueryOMOPFeaturizer parser = argparse.ArgumentParser(description="An extraction script") parser.add_argument( "--data_path", type=str, default="/share/pi/nigam/projects/spfohl/cohorts/admissions/starr_20...
27.651429
88
0.699525
794ef2528edf9b5f5698b833e0b50158d4ed9271
10,851
py
Python
collections/nemo_asr/nemo_asr/parts/jasper.py
petermartigny/NeMo
b20821e637314940e36b63d32c601c43d1b74051
[ "Apache-2.0" ]
1
2020-03-22T11:23:11.000Z
2020-03-22T11:23:11.000Z
collections/nemo_asr/nemo_asr/parts/jasper.py
petermartigny/NeMo
b20821e637314940e36b63d32c601c43d1b74051
[ "Apache-2.0" ]
null
null
null
collections/nemo_asr/nemo_asr/parts/jasper.py
petermartigny/NeMo
b20821e637314940e36b63d32c601c43d1b74051
[ "Apache-2.0" ]
1
2019-10-23T01:19:19.000Z
2019-10-23T01:19:19.000Z
# Taken straight from Patter https://github.com/ryanleary/patter # TODO: review, and copyright and fix/add comments import torch import torch.nn as nn jasper_activations = { "hardtanh": nn.Hardtanh, "relu": nn.ReLU, "selu": nn.SELU, } def init_weights(m, mode='xavier_uniform'): if isinstance(m, nn.Co...
35.230519
79
0.518017
794ef309cf2c12c6de54d781a2575bfe23e58b82
920
py
Python
examples/Python/jupyter_strip_output.py
yxlao/Open3D
59691600bc0dc07a0aa4a7355b0dc5cee32d3531
[ "MIT" ]
3
2019-06-13T21:51:14.000Z
2022-03-07T11:05:23.000Z
examples/Python/jupyter_strip_output.py
yxlao/Open3D
59691600bc0dc07a0aa4a7355b0dc5cee32d3531
[ "MIT" ]
1
2019-01-24T00:33:28.000Z
2019-06-11T00:44:32.000Z
examples/Python/jupyter_strip_output.py
yxlao/Open3D
59691600bc0dc07a0aa4a7355b0dc5cee32d3531
[ "MIT" ]
3
2018-11-19T16:13:06.000Z
2019-06-13T10:17:55.000Z
import nbformat import nbconvert from pathlib import Path import os if __name__ == "__main__": # Setting os.environ["CI"] will disable interactive (blocking) mode in # Jupyter notebooks os.environ["CI"] = "true" file_dir = Path(__file__).absolute().parent nb_paths = sorted((file_dir / "Basic").glo...
34.074074
74
0.640217
794ef459aece9ffb5dabf04b8994f620291ecd65
2,180
py
Python
base/nn/pt/model.py
yd8534976/Personae
5da37a51c446275a5d2e2c9d745fbf24b736c340
[ "MIT" ]
null
null
null
base/nn/pt/model.py
yd8534976/Personae
5da37a51c446275a5d2e2c9d745fbf24b736c340
[ "MIT" ]
null
null
null
base/nn/pt/model.py
yd8534976/Personae
5da37a51c446275a5d2e2c9d745fbf24b736c340
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np from abc import abstractmethod class BasePTModel(object): def __init__(self, env, **options): self.env = env try: self.learning_rate = options['learning_rate'] except KeyError: self.learning_rate = 0.001 try: ...
19.818182
92
0.542202
794ef61c1c9e24c6c6a75527e09ffb1fca30eb50
303
py
Python
wafw00f/plugins/tencent.py
aqyoung/scan-wafw00f
a95a94253f138d5ef791232ef4d8371de41622b6
[ "BSD-3-Clause" ]
1
2019-08-01T11:19:55.000Z
2019-08-01T11:19:55.000Z
wafw00f/plugins/tencent.py
aqyoung/scan-wafw00f
a95a94253f138d5ef791232ef4d8371de41622b6
[ "BSD-3-Clause" ]
null
null
null
wafw00f/plugins/tencent.py
aqyoung/scan-wafw00f
a95a94253f138d5ef791232ef4d8371de41622b6
[ "BSD-3-Clause" ]
2
2017-12-27T15:56:15.000Z
2017-12-27T20:03:09.000Z
#!/usr/bin/env python NAME = 'Tencent Cloud Firewall (Tencent Technologies)' def is_waf(self): for attack in self.attacks: r = attack(self) if r is None: return _, page = r if b'waf.tencent-cloud.com/' in page: return True return False
20.2
54
0.570957
794efc1b8c69f15770db216885afe17bd00c0a87
13,876
py
Python
tensor2tensor/models/mtf_resnet.py
levskaya/tensor2tensor
4643800137f802693f880a1fab9e10de7ba32e66
[ "Apache-2.0" ]
1
2021-04-05T09:55:38.000Z
2021-04-05T09:55:38.000Z
tensor2tensor/models/mtf_resnet.py
levskaya/tensor2tensor
4643800137f802693f880a1fab9e10de7ba32e66
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/mtf_resnet.py
levskaya/tensor2tensor
4643800137f802693f880a1fab9e10de7ba32e66
[ "Apache-2.0" ]
1
2020-07-13T03:15:32.000Z
2020-07-13T03:15:32.000Z
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # 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...
32.57277
79
0.679374
794efd079558e810e6448e15461f656d62951170
1,872
py
Python
connector/mysql.py
BranKein/Practice-for-Transporting-Image-by-Flask
22b4185ef3329a1c3408bd634dd85cc5e31edd0f
[ "MIT" ]
null
null
null
connector/mysql.py
BranKein/Practice-for-Transporting-Image-by-Flask
22b4185ef3329a1c3408bd634dd85cc5e31edd0f
[ "MIT" ]
null
null
null
connector/mysql.py
BranKein/Practice-for-Transporting-Image-by-Flask
22b4185ef3329a1c3408bd634dd85cc5e31edd0f
[ "MIT" ]
null
null
null
from config.mysql import host, port, username, password, database import pymysql class Transaction(object): def __init__(self, sql): self.sql = sql def start(self, level='REPEATABLE READ'): self.sql.query("SET AUTOCOMMIT=FALSE") self.sql.query(f"SET SESSION TRANSACTION ISOLATION LEVEL...
28.363636
93
0.586538
794efd88c4c591016cc9be45d1d45757d02b47ff
4,887
py
Python
third_party/Paste/paste/translogger.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
third_party/Paste/paste/translogger.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
third_party/Paste/paste/translogger.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ Middleware for logging requests, using Apache combined log format """ import logging import six import time from six.moves.urllib.parse import quo...
39.731707
84
0.600982
794efd8d9f55c7a682c977d933372fde3793b48a
1,755
bzl
Python
build/rust_toolchains.bzl
jmillikin/rust-fuse
17ea55d66d171b44877fa1610365ea9e459be2a2
[ "Apache-2.0" ]
17
2020-08-07T10:36:45.000Z
2022-02-07T07:18:39.000Z
build/rust_toolchains.bzl
jmillikin/rust-fuse
17ea55d66d171b44877fa1610365ea9e459be2a2
[ "Apache-2.0" ]
11
2020-08-02T04:47:38.000Z
2020-08-19T06:40:02.000Z
build/rust_toolchains.bzl
jmillikin/rust-fuse
17ea55d66d171b44877fa1610365ea9e459be2a2
[ "Apache-2.0" ]
3
2021-02-28T03:58:44.000Z
2022-02-07T07:18:42.000Z
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repository_set") _NIGHTLY_DATE = "2020-12-30" _SHA256S = { "2020-12-30/rust-nightly-x86_64-apple-darwin": "2b5b885694d0d1a9bdd0473d9e2df1f2c6eac88986e3135e6573e1d71e7824dc", "2020-12-30/llvm-tools-nightly-x86_64-apple-darwin": "8aca7ddf73983bf2db484672...
37.340426
133
0.720228
794eff0da7b004c1e15458d9bef4c8ce05f54654
4,169
py
Python
app/service/auth_svc.py
IGchra/caldera
75f5a9c3f63139f8f3c6ee6e7cb4ce094e82b1b9
[ "Apache-2.0" ]
1
2020-01-27T00:48:03.000Z
2020-01-27T00:48:03.000Z
app/service/auth_svc.py
EmilioPanti/caldera
e743703b11883c08d415650e84bbc43bf6d9e9b7
[ "Apache-2.0" ]
null
null
null
app/service/auth_svc.py
EmilioPanti/caldera
e743703b11883c08d415650e84bbc43bf6d9e9b7
[ "Apache-2.0" ]
null
null
null
import base64 from collections import namedtuple from aiohttp import web from aiohttp.web_exceptions import HTTPUnauthorized, HTTPForbidden from aiohttp_security import SessionIdentityPolicy, check_permission, remember, forget from aiohttp_security import setup as setup_security from aiohttp_security.abc import Abstra...
32.069231
86
0.6426
794f001d000687700b3233986b0bdb66d772c252
1,919
py
Python
tareas/2/ArvizuLuis/Asesorias_Luis.py
Miguelp-rez/sistop-2019-2
428444217ba0cc98030a9d84d8b415dcddad9b65
[ "CC-BY-4.0" ]
null
null
null
tareas/2/ArvizuLuis/Asesorias_Luis.py
Miguelp-rez/sistop-2019-2
428444217ba0cc98030a9d84d8b415dcddad9b65
[ "CC-BY-4.0" ]
null
null
null
tareas/2/ArvizuLuis/Asesorias_Luis.py
Miguelp-rez/sistop-2019-2
428444217ba0cc98030a9d84d8b415dcddad9b65
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import time import threading global alumno alumno = 0 #contador para el alumno preguntas = 0 # ontador para las preguntas max_preguntas = 3 #maximo de preguntas realizadas por cada alumno max_alumnos = 5 #maximo de alumnos aceptados en el cubiculo mutex = threading.Semap...
24.602564
77
0.702449
794f010f3ab22c60fe35b9e00963f2bc4945c0d8
392
py
Python
database/migrations/0009_auto_20191227_1558.py
r0somak/inzynierka
9306f19fcce9ff1dbb3c7e47874d963769af7508
[ "MIT" ]
2
2020-01-08T11:42:08.000Z
2020-01-08T12:37:50.000Z
database/migrations/0009_auto_20191227_1558.py
r0somak/inzynierka
9306f19fcce9ff1dbb3c7e47874d963769af7508
[ "MIT" ]
10
2021-03-09T23:21:46.000Z
2022-02-26T20:12:59.000Z
database/migrations/0009_auto_20191227_1558.py
r0somak/inzynierka
9306f19fcce9ff1dbb3c7e47874d963769af7508
[ "MIT" ]
1
2020-02-17T08:27:09.000Z
2020-02-17T08:27:09.000Z
# Generated by Django 3.0 on 2019-12-27 15:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('database', '0008_auto_20191227_1302'), ] operations = [ migrations.AlterModelOptions( name='daneepidemiologiczne', options={'o...
21.777778
77
0.630102
794f01f0e714722648f3cf9d4e2f18fa4b309235
496
py
Python
plotly/validators/scatterpolar/selected/marker/_color.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/scatterpolar/selected/marker/_color.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/scatterpolar/selected/marker/_color.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='color', parent_name='scatterpolar.selected.marker', **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_...
26.105263
66
0.608871
794f0316b5c80f41d7e861646129285de950a733
1,052
py
Python
tests/setup_data.py
dmlerner/ynabassistant
8482a0cffb38dcb59c7d1ce00a524e07707e3ec1
[ "MIT" ]
19
2019-12-23T14:35:37.000Z
2021-04-07T03:37:40.000Z
tests/setup_data.py
jhult/assistantforynab
96a213c19f08190a2d352a8759f75f761a9a6089
[ "MIT" ]
1
2019-12-20T21:27:51.000Z
2019-12-20T21:27:51.000Z
tests/setup_data.py
jhult/assistantforynab
96a213c19f08190a2d352a8759f75f761a9a6089
[ "MIT" ]
4
2020-01-10T14:38:08.000Z
2021-05-09T00:15:50.000Z
from assistantforynab.ynab import ynab from assistantforynab import settings, utils from assistantforynab.assistant import Assistant ''' Restore state for start of tests: Test data has unlabeled/unsplit Annotated has labeled/split Chase Amazon is empty No other accounts ''' def delete_extra_accounts(...
28.432432
85
0.726236
794f0353dbbc851cc1a50b03c6cf6a59d763e18b
9,733
py
Python
prody/trajectory/trajectory.py
RuJinlong/ProDy
cf23b96f147321e365b2c5fd2a527018c1babb67
[ "MIT" ]
1
2021-06-20T11:53:09.000Z
2021-06-20T11:53:09.000Z
prody/trajectory/trajectory.py
rujinlong/ProDy
cf23b96f147321e365b2c5fd2a527018c1babb67
[ "MIT" ]
null
null
null
prody/trajectory/trajectory.py
rujinlong/ProDy
cf23b96f147321e365b2c5fd2a527018c1babb67
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
# -*- coding: utf-8 -*- """This module defines a class for handling multiple trajectories.""" import os.path import numpy as np from .trajbase import TrajBase from .frame import Frame from prody.trajectory import openTrajFile __all__ = ['Trajectory'] class Trajectory(TrajBase): """A class for handling trajec...
31.095847
78
0.556355
794f0455ba734ec36e78e4619db2691e89c803fd
148
py
Python
umlawuli/apps.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
umlawuli/apps.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
umlawuli/apps.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class UmlawuliConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "umlawuli"
21.142857
56
0.763514
794f04e9fc3125e7cd6258b206f06f92be085308
596
py
Python
tests/test_kelly_criterion.py
leki75/kelly-criterion
15762531a241e8c6be876b3a72fad49d760b0b22
[ "BSD-3-Clause" ]
58
2015-08-13T05:10:19.000Z
2022-01-18T15:15:09.000Z
tests/test_kelly_criterion.py
leki75/kelly-criterion
15762531a241e8c6be876b3a72fad49d760b0b22
[ "BSD-3-Clause" ]
2
2019-06-13T20:23:37.000Z
2021-06-01T23:23:41.000Z
tests/test_kelly_criterion.py
leki75/kelly-criterion
15762531a241e8c6be876b3a72fad49d760b0b22
[ "BSD-3-Clause" ]
25
2015-08-13T05:10:23.000Z
2022-01-27T11:32:52.000Z
from datetime import date from pytest import approx from kelly_criterion import calc_kelly_leverages def test_kelly_criterion(): # Given a time period and multiple securities start_date = date(2018, 1, 1) end_date = date(2018, 12, 31) securities = {'AAPL', 'IBM'} # When we calculate kelly leve...
28.380952
77
0.731544
794f054d621cdb1e5f002a2a601922c62b74f4cb
154
py
Python
Lib/site-packages/nclib/errors.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
57
2016-09-15T15:21:38.000Z
2022-02-23T03:48:05.000Z
nclib/errors.py
rhelmot/nclib
f18bedac43c2741b06a4e7c3c992b56ea4a2e5d9
[ "MIT" ]
20
2016-12-15T21:50:25.000Z
2022-01-27T22:27:50.000Z
Lib/site-packages/nclib/errors.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
11
2016-09-16T06:23:23.000Z
2020-07-03T19:24:31.000Z
import socket class NetcatError(Exception): pass class NetcatTimeout(NetcatError, socket.timeout): pass class NetcatEOF(NetcatError): pass
14
49
0.753247
794f05da8887761cc44bcc6552e37991eb737ce6
2,105
py
Python
tests/rw_all.py
killvxk/retrowrite
879bc668125f096914129e991fe5855c8f548516
[ "MIT" ]
1
2021-08-07T15:14:04.000Z
2021-08-07T15:14:04.000Z
tests/rw_all.py
killvxk/retrowrite
879bc668125f096914129e991fe5855c8f548516
[ "MIT" ]
null
null
null
tests/rw_all.py
killvxk/retrowrite
879bc668125f096914129e991fe5855c8f548516
[ "MIT" ]
null
null
null
import argparse import json import subprocess import os from multiprocessing import Pool def do_test(cmd): print("[!] Running on {}".format(cmd)) try: subprocess.check_call(cmd, shell=True) except subprocess.CalledProcessError: print("[x] Failed {}".format(cmd)) def do_tests(tests, filte...
27.337662
79
0.585748
794f06b00b5acea7f3b88571c0a2062e631bd492
2,312
py
Python
reactor_master/decorators.py
AdamTheAnalyst/openc2-reactor-master
a2688c7e7ea659c100f0093fa3d8403a95b2dc42
[ "MIT" ]
null
null
null
reactor_master/decorators.py
AdamTheAnalyst/openc2-reactor-master
a2688c7e7ea659c100f0093fa3d8403a95b2dc42
[ "MIT" ]
null
null
null
reactor_master/decorators.py
AdamTheAnalyst/openc2-reactor-master
a2688c7e7ea659c100f0093fa3d8403a95b2dc42
[ "MIT" ]
1
2020-04-16T12:35:58.000Z
2020-04-16T12:35:58.000Z
##################################################### #__________ __ # #\______ \ ____ _____ _____/ |_ ___________ # # | _// __ \\__ \ _/ ___\ __\/ _ \_ __ \ # # | | \ ___/ / __ \\ \___| | ( <_> ) | \/ # # |____|_ /\___ >____ /\___ >__| \____/|...
25.977528
71
0.58045
794f06f797fba46cda7b16075d419cae37bbcc2c
9,687
py
Python
docs/conf.py
Nawarrr/wagtail
4db71de5a2af19086026605be8fcb92c4be623aa
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
Nawarrr/wagtail
4db71de5a2af19086026605be8fcb92c4be623aa
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
Nawarrr/wagtail
4db71de5a2af19086026605be8fcb92c4be623aa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Wagtail documentation build configuration file, created by # sphinx-quickstart on Tue Jan 14 17:38:55 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
32.182724
98
0.714876
794f07f1c1aaf581774906dc1c2214a3ca1637db
443
py
Python
src/algorithms/answers/binary_search_algorithm.py
Soumithri/coding_problems
b10820d81677ef0edc9a5f2b310720d8e1df6c76
[ "MIT" ]
null
null
null
src/algorithms/answers/binary_search_algorithm.py
Soumithri/coding_problems
b10820d81677ef0edc9a5f2b310720d8e1df6c76
[ "MIT" ]
8
2020-08-05T02:27:45.000Z
2021-04-20T20:48:50.000Z
src/algorithms/answers/binary_search_algorithm.py
Soumithri/coding_problems
b10820d81677ef0edc9a5f2b310720d8e1df6c76
[ "MIT" ]
null
null
null
def binary_search(target, num_list): if not target: raise Exception if not num_list: raise Exception left, right = 0, len(num_list)-1 mid = left + (right - left)//2 while left <= right: mid = left + (right - left)//2 if num_list[mid] == target: return T...
22.15
38
0.525959
794f095941a7245fb29b9aece94ac7a04df80a90
13,191
py
Python
sql/views.py
linqining/Archery
334d9e003b1825f7ab9cad4911156f85480cf3a1
[ "Apache-2.0" ]
null
null
null
sql/views.py
linqining/Archery
334d9e003b1825f7ab9cad4911156f85480cf3a1
[ "Apache-2.0" ]
null
null
null
sql/views.py
linqining/Archery
334d9e003b1825f7ab9cad4911156f85480cf3a1
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import traceback import simplejson as json import re from django.contrib.auth.decorators import permission_required from django.contrib.auth.models import Group from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect from django.urls import reverse ...
34.896825
146
0.70677
794f099a8fa0f21b1c87eeae82713a7cafbd7f42
2,100
py
Python
proxy/environment.py
gigimon/proxy-model.py
cf9112d299cfcd46f7d3ad716d34cc0300e2e494
[ "BSD-3-Clause" ]
null
null
null
proxy/environment.py
gigimon/proxy-model.py
cf9112d299cfcd46f7d3ad716d34cc0300e2e494
[ "BSD-3-Clause" ]
null
null
null
proxy/environment.py
gigimon/proxy-model.py
cf9112d299cfcd46f7d3ad716d34cc0300e2e494
[ "BSD-3-Clause" ]
null
null
null
import os import subprocess import logging from solana.publickey import PublicKey logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) solana_url = os.environ.get("SOLANA_URL", "http://localhost:8899") evm_loader_id = os.environ.get("EVM_LOADER") neon_cli_timeout = float(os.environ.get("NEON_CLI_TIMEOU...
35
109
0.599524
794f0a0f858debb3d2f803d62bf84ee8c3e448ef
6,365
py
Python
publish/publish.py
chnuessli/wc-guide-data
4daca57c9183fa2677ad6d21fe5922f660727293
[ "MIT" ]
null
null
null
publish/publish.py
chnuessli/wc-guide-data
4daca57c9183fa2677ad6d21fe5922f660727293
[ "MIT" ]
null
null
null
publish/publish.py
chnuessli/wc-guide-data
4daca57c9183fa2677ad6d21fe5922f660727293
[ "MIT" ]
null
null
null
import argparse import json import os import requests def get_features(data): return data.get('features', []) def get_properties(feature): return feature.get('properties', {}) def get_type(properties): if is_type_iv(properties): return 'iv' if is_type_pissoir(properties): return '...
28.931818
111
0.673841
794f0b0b5317180a3a680f16f3632b42cb1754cc
3,057
py
Python
modela/data/DataPipeline.py
metaprov/modela-python-sdk
45ed040a241d07351886f785e224ffb3615a8c94
[ "Apache-2.0" ]
1
2022-03-05T23:21:20.000Z
2022-03-05T23:21:20.000Z
modela/data/DataPipeline.py
metaprov/modela-python-sdk
45ed040a241d07351886f785e224ffb3615a8c94
[ "Apache-2.0" ]
null
null
null
modela/data/DataPipeline.py
metaprov/modela-python-sdk
45ed040a241d07351886f785e224ffb3615a8c94
[ "Apache-2.0" ]
null
null
null
import grpc from github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.generated_pb2 import DataPipeline as MDDataPipeline from github.com.metaprov.modelaapi.services.datapipeline.v1.datapipeline_pb2_grpc import DataPipelineServiceStub from github.com.metaprov.modelaapi.services.datapipeline.v1.datapipeline_pb2 import C...
35.546512
133
0.685967
794f0b15410e6b359b4cb2703d53eacfaaa88169
3,046
py
Python
bokeh/sampledata/periodic_table.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-04-09T02:57:29.000Z
2021-04-09T02:57:29.000Z
bokeh/sampledata/periodic_table.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
5
2021-05-07T10:31:27.000Z
2021-05-07T10:33:37.000Z
bokeh/sampledata/periodic_table.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
35.011494
78
0.374918
794f0c24751f640429984d6fb34460bc2f4a226b
1,828
py
Python
src/python/dart/tool/migration/migrate_trigger_workflow_ids.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
18
2016-03-03T19:10:21.000Z
2021-07-14T22:37:35.000Z
src/python/dart/tool/migration/migrate_trigger_workflow_ids.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
62
2016-04-11T15:17:23.000Z
2017-09-08T17:18:53.000Z
src/python/dart/tool/migration/migrate_trigger_workflow_ids.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
15
2016-03-03T15:38:34.000Z
2019-03-27T19:33:08.000Z
import logging from dart.context.database import db from dart.model.orm import TriggerDao from dart.model.trigger import Trigger from dart.service.patcher import patch_difference from dart.tool.tool_runner import Tool _logger = logging.getLogger(__name__) class MigrateTriggerWorkflowIds(Tool): def __init__(self...
35.843137
110
0.604486
794f0cfd6bdab69ad952230748b3de93ee1fc656
18,140
py
Python
oslo_service/loopingcall.py
openstack/oslo.service
7a62271de38d0b113cded110a40158689748e210
[ "Apache-2.0" ]
38
2015-05-28T11:44:28.000Z
2022-01-20T09:28:06.000Z
oslo_service/loopingcall.py
openstack/oslo.service
7a62271de38d0b113cded110a40158689748e210
[ "Apache-2.0" ]
1
2020-04-08T14:18:50.000Z
2020-04-08T14:18:50.000Z
oslo_service/loopingcall.py
openstack/oslo.service
7a62271de38d0b113cded110a40158689748e210
[ "Apache-2.0" ]
41
2015-07-01T08:32:00.000Z
2021-11-16T09:07:31.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
41.321185
79
0.59151
794f0d30ddea85d733f4fa94de6749eb5a7ed8e3
9,191
py
Python
tests/snc/agents/activity_rate_to_mpc_actions/test_feedback_mip_feasible_mpc_policy.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
5
2021-03-24T16:23:10.000Z
2021-11-17T12:44:51.000Z
tests/snc/agents/activity_rate_to_mpc_actions/test_feedback_mip_feasible_mpc_policy.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
3
2021-03-26T01:16:08.000Z
2021-05-08T22:06:47.000Z
tests/snc/agents/activity_rate_to_mpc_actions/test_feedback_mip_feasible_mpc_policy.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
2
2021-03-24T17:20:06.000Z
2021-04-19T09:01:12.000Z
import numpy as np from snc.agents.activity_rate_to_mpc_actions.feedback_mip_feasible_mpc_policy \ import FeedbackMipFeasibleMpcPolicy def get_mpc_policy_sirl(): # Simple reentrant line like environment. constituency_matrix = np.array([[1, 0, 1], [0, 1, 0]]) buffer_processing_matrix = np.array([[-1, 0...
40.311404
96
0.684909
794f0dca949134f9430a7fe401920522143f995f
8,552
py
Python
desktop/core/ext-py/Django-1.2.3/tests/runtests.py
digideskio/hortonworks-sandbox
dd8e95c91faee3daa094707baeb94c3953b41efa
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Django-1.2.3/tests/runtests.py
abayer/hue
27213bb8fe89cdf0547109081e9f29c03bcc8ca5
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Django-1.2.3/tests/runtests.py
abayer/hue
27213bb8fe89cdf0547109081e9f29c03bcc8ca5
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
#!/usr/bin/env python import os, sys, traceback import unittest import django.contrib as contrib CONTRIB_DIR_NAME = 'django.contrib' MODEL_TESTS_DIR_NAME = 'modeltests' REGRESSION_TESTS_DIR_NAME = 'regressiontests' TEST_TEMPLATE_DIR = 'templates' CONTRIB_DIR = os.path.dirname(contrib.__file__) MODEL_TEST_DIR = os....
41.921569
161
0.684167
794f0dfe5192e41a9135adc31c6165732eb6fad3
15,427
py
Python
src/zvt/contract/api.py
vishalbelsare/zvt
d55051147274c0a4157f08ec60908c781a323c8f
[ "MIT" ]
2,032
2019-04-16T14:10:32.000Z
2022-03-31T12:40:13.000Z
src/zvt/contract/api.py
vishalbelsare/zvt
d55051147274c0a4157f08ec60908c781a323c8f
[ "MIT" ]
162
2019-05-07T09:57:46.000Z
2022-03-25T16:23:08.000Z
src/zvt/contract/api.py
vishalbelsare/zvt
d55051147274c0a4157f08ec60908c781a323c8f
[ "MIT" ]
755
2019-04-30T10:25:16.000Z
2022-03-29T17:50:49.000Z
# -*- coding: utf-8 -*- import logging import os import platform from typing import List, Union, Type import pandas as pd from sqlalchemy import create_engine from sqlalchemy import func, exists, and_ from sqlalchemy.engine import Engine from sqlalchemy.ext.declarative import DeclarativeMeta from sqlalchemy.orm import...
27.112478
119
0.636546
794f0f6aba28285d1ce0fda808c3b6c1abf11f9b
285
py
Python
anjuke/items.py
awolfly9/anjuke
80ed47db05a032a66284073134d2649312201d02
[ "MIT" ]
null
null
null
anjuke/items.py
awolfly9/anjuke
80ed47db05a032a66284073134d2649312201d02
[ "MIT" ]
null
null
null
anjuke/items.py
awolfly9/anjuke
80ed47db05a032a66284073134d2649312201d02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class AnjukeItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
19
51
0.684211
794f112c0b160fdccf438b6edbce4a895acacd77
431
py
Python
apps/coupon/migrations/0002_alter_coupon_id.py
FusionArc/retrodev_2
8b1e09f54ae0fb268dc7842718a014bc961a4dd7
[ "MIT" ]
null
null
null
apps/coupon/migrations/0002_alter_coupon_id.py
FusionArc/retrodev_2
8b1e09f54ae0fb268dc7842718a014bc961a4dd7
[ "MIT" ]
null
null
null
apps/coupon/migrations/0002_alter_coupon_id.py
FusionArc/retrodev_2
8b1e09f54ae0fb268dc7842718a014bc961a4dd7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-28 09:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coupon', '0001_initial'), ] operations = [ migrations.AlterField( model_name='coupon', name='id', field=...
22.684211
111
0.614849
794f13098729848c1bfc438be78e99beb938f872
2,789
py
Python
2018/puzzle_03/puzzle_03.py
alexanderson/advent-of-code
92bb34353f430e420869797cff3604046e1f1192
[ "MIT" ]
null
null
null
2018/puzzle_03/puzzle_03.py
alexanderson/advent-of-code
92bb34353f430e420869797cff3604046e1f1192
[ "MIT" ]
null
null
null
2018/puzzle_03/puzzle_03.py
alexanderson/advent-of-code
92bb34353f430e420869797cff3604046e1f1192
[ "MIT" ]
null
null
null
import collections import re CUTOUT_RE = re.compile( r'#(?P<id>\d+) @ (?P<x>\d+),(?P<y>\d+): (?P<width>\d+)x(?P<height>\d+)' ) Cutout = collections.namedtuple('Cutout', 'id x y width height') class Fabric: def __init__(self, width, height): self._width = width self._height = height ...
23.635593
75
0.562567
794f13bbfb6b10ca07f1f3a1e6b2aca8859eb39e
132,771
py
Python
pandas/core/indexes/multi.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-12-07T13:37:31.000Z
2021-12-07T13:37:31.000Z
pandas/core/indexes/multi.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/multi.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from functools import wraps from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Collection, Hashable, Iterable, List, Sequence, Tuple, cast, ) import warnings import numpy as np from pandas._config import get_option ...
33.775375
88
0.534808
794f1436947ca7836b9de996790b97c40a5b88e3
2,060
py
Python
wwpdb/utils/nmr/CifToNmrStar.py
wwPDB/py-wwpdb_utils_nmr
531f1cf5dba0c1fb4e5d710d740c3ee05d34dafb
[ "Apache-2.0" ]
null
null
null
wwpdb/utils/nmr/CifToNmrStar.py
wwPDB/py-wwpdb_utils_nmr
531f1cf5dba0c1fb4e5d710d740c3ee05d34dafb
[ "Apache-2.0" ]
null
null
null
wwpdb/utils/nmr/CifToNmrStar.py
wwPDB/py-wwpdb_utils_nmr
531f1cf5dba0c1fb4e5d710d740c3ee05d34dafb
[ "Apache-2.0" ]
1
2021-06-21T10:46:22.000Z
2021-06-21T10:46:22.000Z
## # File: CifToNmrStar.py # Date: 19-Jul-2021 # # Updates: # 13-Oct-2021 M. Yokochi - code revision according to PEP8 using Pylint (DAOTHER-7389, issue #5) ## """ Wrapper class for CIF to NMR-STAR converter. @author: Masashi Yokochi """ import sys import os import os.path import pynmrstar from wwpdb.utils.nmr.io...
26.075949
97
0.558252
794f14567a0eba710792faf7f2218156a6ac21a8
397
py
Python
openai/deepq/__init__.py
niksaz/dota2-expert-demo
b46ce6fc2c9223f07d91db78633c7d20c36f4653
[ "MIT" ]
17
2018-12-26T10:18:35.000Z
2021-11-04T02:49:29.000Z
openai/deepq/__init__.py
niksaz/dota2-expert-demo
b46ce6fc2c9223f07d91db78633c7d20c36f4653
[ "MIT" ]
null
null
null
openai/deepq/__init__.py
niksaz/dota2-expert-demo
b46ce6fc2c9223f07d91db78633c7d20c36f4653
[ "MIT" ]
5
2019-01-26T06:10:15.000Z
2021-11-04T02:49:30.000Z
from openai.deepq import models # noqa from openai.deepq.build_graph import build_act, build_train # noqa from openai.deepq.deepq import learn, load_act # noqa from openai.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa def wrap_atari_dqn(env): from baselines.common.atari_wrappers impor...
44.111111
84
0.811083
794f14a6162211e376244e0ac44ddae2d98cb7f7
1,239
py
Python
agents/random_agents_test.py
lavanyashukla/ml-fairness-gym
fb68b379d4284b7af746b2a051d518b3bd45ab00
[ "Apache-2.0" ]
null
null
null
agents/random_agents_test.py
lavanyashukla/ml-fairness-gym
fb68b379d4284b7af746b2a051d518b3bd45ab00
[ "Apache-2.0" ]
null
null
null
agents/random_agents_test.py
lavanyashukla/ml-fairness-gym
fb68b379d4284b7af746b2a051d518b3bd45ab00
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The ML Fairness Gym Authors. # # 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...
30.219512
74
0.76594
794f14c189536db6d356f14982383559ef5589e4
144
py
Python
queries/query_organization/query.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
1
2020-03-14T11:00:14.000Z
2020-03-14T11:00:14.000Z
queries/query_organization/query.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
null
null
null
queries/query_organization/query.py
akarapun/elearning
fe116d5815925269819061ea183cbfdb773844cf
[ "MIT" ]
null
null
null
import graphene from query_organization.getAllOrg import GetAllOrg class OrganizationQuery( GetAllOrg, graphene.ObjectType): pass
16
50
0.784722
794f15031a3947f8a56bb058759a9a49fc085b14
393
py
Python
website1/wsgi.py
sandykaka/vroombaby
61222390c24c44b50cf2771a38bbfb243f5ecb11
[ "MIT" ]
null
null
null
website1/wsgi.py
sandykaka/vroombaby
61222390c24c44b50cf2771a38bbfb243f5ecb11
[ "MIT" ]
3
2020-02-11T23:08:19.000Z
2021-06-10T20:48:00.000Z
website1/wsgi.py
sandykaka/vroombaby
61222390c24c44b50cf2771a38bbfb243f5ecb11
[ "MIT" ]
null
null
null
""" WSGI config for website1 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
794f15d74ee0465affc367ea8d74bc8d20a0a7f6
29
py
Python
tests/test_iex.py
lkire/share-dash
4c94ea8e72c88b3d3976247ef9718560b63da67d
[ "MIT" ]
null
null
null
tests/test_iex.py
lkire/share-dash
4c94ea8e72c88b3d3976247ef9718560b63da67d
[ "MIT" ]
null
null
null
tests/test_iex.py
lkire/share-dash
4c94ea8e72c88b3d3976247ef9718560b63da67d
[ "MIT" ]
null
null
null
from dashboards.iex import *
14.5
28
0.793103
794f164f98e5ad2949c2cca6bdcbaba9aff82023
6,392
py
Python
asposewordscloud/models/requests/delete_table_cell_request.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
asposewordscloud/models/requests/delete_table_cell_request.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
asposewordscloud/models/requests/delete_table_cell_request.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="delete_table_cell_request.py"> # Copyright (c) 2020 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a co...
48.793893
255
0.649718
794f194ecc5c8f0324cab6af5afd05837cda6521
11,749
py
Python
hihope_neptune-oh_hid/00_src/v0.1/test/xts/tools/lite/build/utils.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/test/xts/tools/lite/build/utils.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/test/xts/tools/lite/build/utils.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Copyright (c) 2021 Huawei Device Co., Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless req...
31.92663
79
0.631288
794f1a2d4558eba652b2f10da4b0068d53e926dc
15,614
py
Python
napari/plugins/io.py
noisysky/napari
6a3e11aa717e7928a0a5a3c7693577729a466ef1
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/io.py
noisysky/napari
6a3e11aa717e7928a0a5a3c7693577729a466ef1
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/io.py
noisysky/napari
6a3e11aa717e7928a0a5a3c7693577729a466ef1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import os import pathlib import warnings from logging import getLogger from typing import TYPE_CHECKING, Any, List, Optional, Sequence, Tuple, Union from napari_plugin_engine import HookImplementation, PluginCallError from ..layers import Layer from ..types import LayerData from .....
37.17619
138
0.650442
794f1b43a667b97b377cd18a5d5468013bf620d9
228
py
Python
website/models.py
cangkevin/asain-show-rss-website-wrapper
ca7953e2b764705d1a78c691e1920b2f632e6bc9
[ "MIT" ]
null
null
null
website/models.py
cangkevin/asain-show-rss-website-wrapper
ca7953e2b764705d1a78c691e1920b2f632e6bc9
[ "MIT" ]
46
2018-12-16T02:38:34.000Z
2021-06-01T22:44:45.000Z
website/models.py
cangkevin/asain-show-rss-website-wrapper
ca7953e2b764705d1a78c691e1920b2f632e6bc9
[ "MIT" ]
1
2019-01-06T04:13:51.000Z
2019-01-06T04:13:51.000Z
"""Models used throughout the application. This module holds various model classes that are intended for internal use. """ from collections import namedtuple RssResponse = namedtuple("RssResponse", "title items paginations")
22.8
66
0.79386
794f1cc7cc35108f8e9898b87780b14987e66811
4,296
py
Python
releasetool/circleci.py
michaelbausor/releasetool
5bac8a5ab8f9d993c0b52312ff04e847c322d525
[ "Apache-2.0" ]
23
2018-10-09T15:14:21.000Z
2022-01-24T12:18:57.000Z
releasetool/circleci.py
quartzmo/releasetool
fca57b9e6caefe013444fa576bc3bba514942f97
[ "Apache-2.0" ]
160
2018-09-21T22:16:02.000Z
2022-03-30T21:51:35.000Z
releasetool/circleci.py
quartzmo/releasetool
fca57b9e6caefe013444fa576bc3bba514942f97
[ "Apache-2.0" ]
19
2018-10-08T20:39:39.000Z
2021-07-28T15:17:14.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, ...
37.034483
85
0.61406
794f1ce20e19ec8121eaa524481d526904e9285f
2,776
py
Python
sonic_installer/bootloader/grub.py
monipko/sonic-utilities
ad801bfb81633812b4aa25f45bdd555a27121845
[ "Apache-2.0" ]
1
2021-02-03T06:28:38.000Z
2021-02-03T06:28:38.000Z
sonic_installer/bootloader/grub.py
monipko/sonic-utilities
ad801bfb81633812b4aa25f45bdd555a27121845
[ "Apache-2.0" ]
5
2020-02-27T09:19:52.000Z
2021-05-24T16:04:51.000Z
sonic_installer/bootloader/grub.py
monipko/sonic-utilities
ad801bfb81633812b4aa25f45bdd555a27121845
[ "Apache-2.0" ]
null
null
null
""" Bootloader implementation for grub based platforms """ import os import re import subprocess import click from ..common import ( HOST_PATH, IMAGE_DIR_PREFIX, IMAGE_PREFIX, run_command, ) from .onie import OnieInstallerBootloader class GrubBootloader(OnieInstallerBootloader): NAME = 'grub' ...
31.908046
116
0.600865
794f1d69f1013ddcb5af85d315fab6bfa7272c9b
1,774
py
Python
ems/context_processors.py
fetux/django-ems
ac581ea3573c5fc9976303320f278bc2fa7cea6f
[ "MIT" ]
null
null
null
ems/context_processors.py
fetux/django-ems
ac581ea3573c5fc9976303320f278bc2fa7cea6f
[ "MIT" ]
null
null
null
ems/context_processors.py
fetux/django-ems
ac581ea3573c5fc9976303320f278bc2fa7cea6f
[ "MIT" ]
null
null
null
from django.db.models import Q from django.conf import settings from ems import utils from ems.crm.forms import QuickSearchForm from ems.crm.models import Project from ems.entries.models import Entry def quick_search(request): return { 'quick_search_form': QuickSearchForm(), } def quick_clock_in(r...
30.586207
79
0.660654
794f1dd058bebe483cfbac06c96103a22cf1d4ae
11,459
py
Python
src/outlier_hub/datasets/odr/preprocessor.py
ichbk/outlierhub
5cb1ac80a9ea73b5144644d82ba695f3574e6815
[ "Apache-2.0" ]
null
null
null
src/outlier_hub/datasets/odr/preprocessor.py
ichbk/outlierhub
5cb1ac80a9ea73b5144644d82ba695f3574e6815
[ "Apache-2.0" ]
null
null
null
src/outlier_hub/datasets/odr/preprocessor.py
ichbk/outlierhub
5cb1ac80a9ea73b5144644d82ba695f3574e6815
[ "Apache-2.0" ]
null
null
null
import os import sys import tempfile import h5py import glob import csv import numpy as np import pandas as pd import io from natsort import natsorted, ns from PIL import Image, ImageFile from pathlib import Path from typing import Tuple, List, Any from data_stack.io.resources import StreamedResource, ResourceFactory ...
38.844068
113
0.669517
794f1ea232cc9a9f0a9c4465c521331ebbf5e3a7
391
py
Python
config/components/database.py
HanSaloZu/drf-blog-api
966776e59ed7699a9e94aeb85fdd6785c2532a3a
[ "MIT" ]
null
null
null
config/components/database.py
HanSaloZu/drf-blog-api
966776e59ed7699a9e94aeb85fdd6785c2532a3a
[ "MIT" ]
null
null
null
config/components/database.py
HanSaloZu/drf-blog-api
966776e59ed7699a9e94aeb85fdd6785c2532a3a
[ "MIT" ]
null
null
null
DATABASES = { "default": { "ENGINE": environ.get("DB_ENGINE", "django.db.backends.sqlite3"), "NAME": environ.get("DB_DATABASE", BASE_DIR / "db.sqlite3"), "USER": environ.get("DB_USER", "user"), "PASSWORD": environ.get("DB_PASSWORD", "password"), "HOST": environ.get("DB_HOST",...
35.545455
73
0.570332
794f1f4aea4cdc28e87ddcae810625d3908c2f6a
3,213
py
Python
venv/lib/python2.7/site-packages/ansible/utils/jsonrpc.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/utils/jsonrpc.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/utils/jsonrpc.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# (c) 2017, Peter Sprygada <psprygad@redhat.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json import traceback from ansible.module_utils._text ...
29.477064
95
0.601618
794f1f86e43b548f1d0cc91e168dc27a48517eec
433
py
Python
rest/conference/list-get-example-1/list-get-example-1.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
3
2020-05-05T10:01:02.000Z
2021-02-06T14:23:13.000Z
rest/conference/list-get-example-1/list-get-example-1.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
null
null
null
rest/conference/list-get-example-1/list-get-example-1.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
1
2019-10-02T14:36:36.000Z
2019-10-02T14:36:36.000Z
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "your_auth_token" client = Client(account_sid, auth_token) # A list of conference objec...
36.083333
72
0.810624
794f20a73b3f7eda01019bf7d1ee57e6394b37e1
1,770
py
Python
tests/test_paths.py
cuihantao/Andes
6cdc057986c4a8382194ef440b6e92b8dfb77e25
[ "Apache-2.0" ]
16
2017-06-16T14:21:04.000Z
2018-08-18T08:52:27.000Z
tests/test_paths.py
cuihantao/Andes
6cdc057986c4a8382194ef440b6e92b8dfb77e25
[ "Apache-2.0" ]
1
2017-12-12T07:51:16.000Z
2017-12-12T07:51:16.000Z
tests/test_paths.py
cuihantao/Andes
6cdc057986c4a8382194ef440b6e92b8dfb77e25
[ "Apache-2.0" ]
7
2017-12-10T07:32:36.000Z
2018-09-19T16:38:30.000Z
import os import unittest import andes from andes.utils.paths import list_cases class TestPaths(unittest.TestCase): def setUp(self) -> None: self.kundur = 'kundur/' self.matpower = 'matpower/' self.ieee14 = andes.get_case("ieee14/ieee14.raw") def test_tree(self): list_cases(s...
32.181818
76
0.547458
794f20c9eb7d3ac8bbaccfb73e8096a4b349a8b6
1,972
py
Python
src/App/avt_main.py
schmouk/ArcheryVideoTraining
8c7f5fadc485e0b3a0851d0227a26bd799d3eb69
[ "MIT" ]
null
null
null
src/App/avt_main.py
schmouk/ArcheryVideoTraining
8c7f5fadc485e0b3a0851d0227a26bd799d3eb69
[ "MIT" ]
65
2021-01-25T22:27:55.000Z
2021-03-05T10:19:49.000Z
src/App/avt_main.py
schmouk/ArcheryVideoTraining
8c7f5fadc485e0b3a0851d0227a26bd799d3eb69
[ "MIT" ]
null
null
null
""" Copyright (c) 2021 Philippe Schmouker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
34.596491
78
0.647566
794f218820dd397b924dfdb0b326990ab382ee14
50,039
py
Python
panel/pane/vtk/synchronizable_serializer.py
datalayer-contrib/holoviz-panel
c97b57e8eaff4b5f542add41f496395da2483b23
[ "BSD-3-Clause" ]
1
2020-02-01T07:14:16.000Z
2020-02-01T07:14:16.000Z
panel/pane/vtk/synchronizable_serializer.py
datalayer-contrib/holoviz-panel
c97b57e8eaff4b5f542add41f496395da2483b23
[ "BSD-3-Clause" ]
null
null
null
panel/pane/vtk/synchronizable_serializer.py
datalayer-contrib/holoviz-panel
c97b57e8eaff4b5f542add41f496395da2483b23
[ "BSD-3-Clause" ]
null
null
null
import base64 import hashlib import io import struct import sys import time import zipfile from vtk.vtkCommonCore import vtkTypeUInt32Array, vtkTypeInt32Array from vtk.vtkFiltersGeometry import vtkCompositeDataGeometryFilter, vtkGeometryFilter from vtk.vtkRenderingCore import vtkColorTransferFunction from vtk.vtkCommo...
37.426328
134
0.597514
794f21beebbfd584cdf47f89d5186426ae2e226b
35,040
py
Python
tests/unit/modules/test_zpool.py
alexey-zhukovin/salt
87382072abf353f3da62ae4e2d9fe1ba14344efa
[ "Apache-2.0" ]
1
2021-09-06T00:14:04.000Z
2021-09-06T00:14:04.000Z
tests/unit/modules/test_zpool.py
alexey-zhukovin/salt
87382072abf353f3da62ae4e2d9fe1ba14344efa
[ "Apache-2.0" ]
2
2021-04-30T21:17:57.000Z
2021-12-13T20:40:23.000Z
tests/unit/modules/test_zpool.py
Kamatera/salt
ac960a3308617657d9d039dae9108e0045ab3929
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests for salt.modules.zpool :codeauthor: Nitin Madhok <nmadhok@clemson.edu>, Jorge Schrauwen <sjorge@blackdot.be> :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.utils.zfs :platform: illumos,freebsd,linux """ # Import Python libs from ...
33.887814
160
0.486159
794f21de9ffe991ca10d143789420aa4397dfae3
5,038
py
Python
magenta/models/performance_rnn/performance_rnn_train.py
mikiec84/magenta
f10c6a52e22b9694542b419d20b64f2ace32ad70
[ "Apache-2.0" ]
1
2020-03-22T09:02:26.000Z
2020-03-22T09:02:26.000Z
magenta/models/performance_rnn/performance_rnn_train.py
mikiec84/magenta
f10c6a52e22b9694542b419d20b64f2ace32ad70
[ "Apache-2.0" ]
null
null
null
magenta/models/performance_rnn/performance_rnn_train.py
mikiec84/magenta
f10c6a52e22b9694542b419d20b64f2ace32ad70
[ "Apache-2.0" ]
1
2019-11-30T17:51:10.000Z
2019-11-30T17:51:10.000Z
# Copyright 2017 Google 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 by applicable law or ag...
43.059829
80
0.63557
794f234bc6ac828332479f3322cabff49ec56819
4,786
py
Python
v1.0.0.test/toontown/suit/DistributedSuitPlanner.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/suit/DistributedSuitPlanner.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/suit/DistributedSuitPlanner.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from panda3d.core import * from direct.distributed import DistributedObject import SuitPlannerBase from toontown.toonbase import ToontownGlobals class DistributedSuitPlanner(DistributedObject.DistributedObject, SuitPlannerBase.SuitPlannerBase): def __init__(self, cr): DistributedObject.DistributedObject._...
36.815385
114
0.552027
794f23d8a11d09db2958a3850747d42a582a0070
6,242
py
Python
datasets.py
ymym3412/textcnn-conv-deconv-pytorch
f0101160b8bd2de0f2a0718a9053ad85dc5f695f
[ "Apache-2.0" ]
60
2018-01-24T19:01:43.000Z
2021-10-09T08:44:17.000Z
datasets.py
ymym3412/textcnn-conv-deconv-pytorch
f0101160b8bd2de0f2a0718a9053ad85dc5f695f
[ "Apache-2.0" ]
3
2018-02-23T15:35:07.000Z
2020-04-19T12:17:09.000Z
datasets.py
ymym3412/textcnn-conv-deconv-pytorch
f0101160b8bd2de0f2a0718a9053ad85dc5f695f
[ "Apache-2.0" ]
14
2018-02-18T17:33:18.000Z
2021-07-14T04:45:58.000Z
from torch.utils.data import Dataset import torch import numpy as np from tqdm import tqdm from collections import Counter from copy import deepcopy def load_hotel_review_data(path, sentence_len): """ Load Hotel Reviews data from pickle distributed in https://drive.google.com/file/d/0B52eYWrYWqIpQzhBNkVxaV9m...
39.757962
133
0.559116
794f23df763e33e7ae39cadd8c8878b31853fa0b
3,854
py
Python
Study_5/Main.py
LeeDaeil/PyQt5_study
ecdd22ce2809ce6f01c8691a7ca75ef1771b7202
[ "MIT" ]
1
2020-03-22T14:35:11.000Z
2020-03-22T14:35:11.000Z
Study_5/Main.py
LeeDaeil/PyQt5_study
ecdd22ce2809ce6f01c8691a7ca75ef1771b7202
[ "MIT" ]
null
null
null
Study_5/Main.py
LeeDaeil/PyQt5_study
ecdd22ce2809ce6f01c8691a7ca75ef1771b7202
[ "MIT" ]
null
null
null
from collections import deque from multiprocessing import Manager from Study_5.CNS_UDP import * from Study_5.CNS_Fun import * # from .CNS_GFun import * # 인터페이스 설계로 인한 제외 from Study_5.CNS_CFun import * class body: def __init__(self): #==== Initial part for testing===========================================...
36.704762
118
0.504152
794f2413f52881a6abf70b233ba26dd2f9341036
280
py
Python
Mundo 1/Tratando Dados e fazendo contas/Desafio#11.py
kaio358/Python
16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1
[ "MIT" ]
null
null
null
Mundo 1/Tratando Dados e fazendo contas/Desafio#11.py
kaio358/Python
16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1
[ "MIT" ]
null
null
null
Mundo 1/Tratando Dados e fazendo contas/Desafio#11.py
kaio358/Python
16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1
[ "MIT" ]
null
null
null
largura = float(input("Insira a largura da parede : ")) altura = float(input("Insira a altura da parede : ")) print("O tamanho da parede e de {} X {} e sua area é de {} m²".format(largura, altura,altura*largura)) print ('A tinta gasta será de {} l'.format((altura*largura)/2))
56
78
0.675
794f25c0806df93c1da8fcda5cadc68c588aa667
6,777
py
Python
metadata-ingestion/src/datahub/emitter/mce_builder.py
shakti-garg-saxo/datahub
ed38168f54dd96b2b237f5df30a43769df4ec400
[ "Apache-2.0" ]
1
2021-04-29T17:40:02.000Z
2021-04-29T17:40:02.000Z
metadata-ingestion/src/datahub/emitter/mce_builder.py
shakti-garg-saxo/datahub
ed38168f54dd96b2b237f5df30a43769df4ec400
[ "Apache-2.0" ]
4
2022-03-02T03:01:24.000Z
2022-03-23T00:57:33.000Z
metadata-ingestion/src/datahub/emitter/mce_builder.py
Affirm/datahub
bd5e3b174a82b6d2b0d3fc9c036570dfd5bbadd0
[ "Apache-2.0" ]
null
null
null
"""Convenience functions for creating MCEs""" import logging import re import time from typing import List, Optional, Type, TypeVar, cast, get_type_hints import typing_inspect from avrogen.dict_wrapper import DictWrapper from datahub.metadata.com.linkedin.pegasus2avro.metadata.key import DatasetKey from datahub.metad...
30.945205
99
0.701343
794f26698d1104ff54a38dfa17617709ef4f72fe
218
py
Python
rtcclient/exception.py
sadikkuzu-mba/rtcclient
831d9eef57f0daca86728ea38743925f6db017fc
[ "Apache-2.0" ]
37
2015-07-31T03:21:55.000Z
2021-08-04T10:30:13.000Z
rtcclient/exception.py
sadikkuzu-mba/rtcclient
831d9eef57f0daca86728ea38743925f6db017fc
[ "Apache-2.0" ]
94
2015-07-29T14:27:13.000Z
2022-03-10T16:53:30.000Z
rtcclient/exception.py
sadikkuzu-mba/rtcclient
831d9eef57f0daca86728ea38743925f6db017fc
[ "Apache-2.0" ]
37
2015-11-11T15:06:39.000Z
2022-03-01T12:21:48.000Z
class RTCException(Exception): """Base exception class for all errors """ pass class BadValue(RTCException): pass class NotFound(RTCException): pass class EmptyAttrib(RTCException): pass
12.111111
42
0.688073
794f272b6059f4e70da3e79674aa72c6390f024d
8,856
py
Python
qa/rpc-tests/rawtransactions.py
ericramos1980/energi
aadc44f714f9d52433ab3595a9f33a61433c60c9
[ "MIT" ]
2
2021-12-28T21:47:07.000Z
2022-02-09T21:04:29.000Z
qa/rpc-tests/rawtransactions.py
reddragon34/energi
4cc6c426d9d4b6b9053912de9b2197eba071201e
[ "MIT" ]
null
null
null
qa/rpc-tests/rawtransactions.py
reddragon34/energi
4cc6c426d9d4b6b9053912de9b2197eba071201e
[ "MIT" ]
1
2019-10-07T19:17:55.000Z
2019-10-07T19:17:55.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Energi Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the...
44.954315
147
0.647245
794f2833ee6d6df6702c546a201816fb89d00b11
1,159
py
Python
nipype/interfaces/slicer/filtering/tests/test_auto_GrayscaleFillHoleImageFilter.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/slicer/filtering/tests/test_auto_GrayscaleFillHoleImageFilter.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
2
2017-10-05T21:08:38.000Z
2018-10-09T23:01:23.000Z
nipype/interfaces/slicer/filtering/tests/test_auto_GrayscaleFillHoleImageFilter.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
1
2016-10-11T19:18:53.000Z
2016-10-11T19:18:53.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from .....testing import assert_equal from ..morphology import GrayscaleFillHoleImageFilter def test_GrayscaleFillHoleImageFilter_inputs(): input_map = dict(args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore_exce...
28.268293
78
0.679896
794f285d9ce646d199aab7912f7713f032f5b0ce
4,230
py
Python
temboo/core/Library/RunKeeper/Nutrition/RetrieveLatestEntry.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/RunKeeper/Nutrition/RetrieveLatestEntry.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/RunKeeper/Nutrition/RetrieveLatestEntry.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # RetrieveLatestEntry # Returns the lastest entry from a user's nutrition history. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License...
39.166667
159
0.680851
794f28d29c760733ddb2d94c9c5345e470ce41a6
22,515
py
Python
pythran/tests/test_optimizations.py
sthagen/serge-sans-paille-pythran
fe41dcd069404a75ff56b537b7ac87a0e3c04dc2
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_optimizations.py
sthagen/serge-sans-paille-pythran
fe41dcd069404a75ff56b537b7ac87a0e3c04dc2
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_optimizations.py
sthagen/serge-sans-paille-pythran
fe41dcd069404a75ff56b537b7ac87a0e3c04dc2
[ "BSD-3-Clause" ]
null
null
null
from pythran.tests import TestEnv from pythran.typing import List import unittest import pythran class TestOptimization(TestEnv): def test_constant_fold_nan(self): code = "def constant_fold_nan(a): from numpy import nan; a[0] = nan; return a" self.run_test(code, [1., 2.], constant_fold_nan=[List...
30.50813
170
0.587608
794f2b4d157d2b7e2e2778c0c492ba5af4fa657b
1,712
py
Python
configs/swinunetv2gtv8crossattentionupsample/swinunetv2_g10_gtv8_cross_attention_upsample_patch_expand_base_patch4_window7_512x512_160k_ade20k.py
Myyyr/transseg2d
7664653dec0bf63d96ad3c76fc225d2d7f607e41
[ "Apache-2.0" ]
null
null
null
configs/swinunetv2gtv8crossattentionupsample/swinunetv2_g10_gtv8_cross_attention_upsample_patch_expand_base_patch4_window7_512x512_160k_ade20k.py
Myyyr/transseg2d
7664653dec0bf63d96ad3c76fc225d2d7f607e41
[ "Apache-2.0" ]
null
null
null
configs/swinunetv2gtv8crossattentionupsample/swinunetv2_g10_gtv8_cross_attention_upsample_patch_expand_base_patch4_window7_512x512_160k_ade20k.py
Myyyr/transseg2d
7664653dec0bf63d96ad3c76fc225d2d7f607e41
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/swin_unet_v2_gtv8_cross_attention_upsample.py', '../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] model = dict( backbone=dict( embed_dim=128, depths=[2, 2, 18, 2], num_heads=[4, 8, 16, 32], wi...
31.127273
101
0.568925
794f2b5d089da1680cfa6520c43a30396b24a03a
15,879
py
Python
pybind/slxos/v16r_1_00b/interface/port_channel/spanning_tree/vlan/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/interface/port_channel/spanning_tree/vlan/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/interface/port_channel/spanning_tree/vlan/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
67.858974
582
0.720071
794f2b621831af6296c973bddca62e641eaa072e
4,421
py
Python
xarray/core/dtypes.py
DocOtak/xarray
01a9baa01b1378cbf3f324ea3c27150a3860d3d1
[ "Apache-2.0" ]
1
2020-09-14T02:32:54.000Z
2020-09-14T02:32:54.000Z
xarray/core/dtypes.py
DocOtak/xarray
01a9baa01b1378cbf3f324ea3c27150a3860d3d1
[ "Apache-2.0" ]
null
null
null
xarray/core/dtypes.py
DocOtak/xarray
01a9baa01b1378cbf3f324ea3c27150a3860d3d1
[ "Apache-2.0" ]
2
2019-08-22T21:07:03.000Z
2020-03-30T10:25:00.000Z
import functools import numpy as np from . import utils # Use as a sentinel value to indicate a dtype appropriate NA value. NA = utils.ReprObject('<NA>') @functools.total_ordering class AlwaysGreaterThan: def __gt__(self, other): return True def __eq__(self, other): return isinstance(other...
26.005882
77
0.654377
794f2b66c200b853e36fd5fbb5b5ea8eb9c2a6b4
179
py
Python
tests/utils.py
black-cape/cast-iron-worker
023df792ade1813ff2fe851d39cba76d3a12e770
[ "MIT" ]
1
2021-04-28T21:32:49.000Z
2021-04-28T21:32:49.000Z
tests/utils.py
black-cape/cast-iron-worker
023df792ade1813ff2fe851d39cba76d3a12e770
[ "MIT" ]
5
2021-04-29T14:20:53.000Z
2022-01-06T17:09:13.000Z
tests/utils.py
black-cape/cast-iron-worker
023df792ade1813ff2fe851d39cba76d3a12e770
[ "MIT" ]
null
null
null
"""Common test module""" class DummyClass: def setup(self, **kwargs): pass def run(self, data, **kwargs): pass def test_run(data, **kwargs): pass
12.785714
34
0.569832
794f2dd075b8a4570c986f0a28f5b8541b381398
1,350
py
Python
candle.py
damonthecricket/py-stock
469ba6a53e091f36b336e39c5b6b6934adfab1cd
[ "MIT" ]
null
null
null
candle.py
damonthecricket/py-stock
469ba6a53e091f36b336e39c5b6b6934adfab1cd
[ "MIT" ]
8
2019-08-10T20:57:43.000Z
2019-08-15T15:06:14.000Z
candle.py
damonthecricket/pystock
469ba6a53e091f36b336e39c5b6b6934adfab1cd
[ "MIT" ]
null
null
null
import csv # Candle def create(date, open, high, low, close, volume): return Candle(date, open, high, low, close, volume) class Candle: def __init__(self, date, open_, high, low, close, volume): self._date = date self._open = open_ self._high = high self._low = low self._close = close self._volum...
16.875
103
0.660741
794f2dec6a07b2e30f788fb6de0f58d4220e2d83
918
py
Python
tests/test_optimizers/test_parameter/test_stochastic_hill_climbing_para_init.py
gtr8/Gradient-Free-Optimizers
19dcde35d93f048721bac3600f33696ca21ec669
[ "MIT" ]
860
2020-06-10T08:53:41.000Z
2022-03-30T14:22:20.000Z
tests/test_optimizers/test_parameter/test_stochastic_hill_climbing_para_init.py
gtr8/Gradient-Free-Optimizers
19dcde35d93f048721bac3600f33696ca21ec669
[ "MIT" ]
24
2021-01-25T08:06:54.000Z
2022-01-24T13:46:48.000Z
tests/test_optimizers/test_parameter/test_stochastic_hill_climbing_para_init.py
gtr8/Gradient-Free-Optimizers
19dcde35d93f048721bac3600f33696ca21ec669
[ "MIT" ]
52
2020-06-25T09:36:15.000Z
2022-03-18T18:11:52.000Z
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License import pytest import numpy as np from gradient_free_optimizers import StochasticHillClimbingOptimizer from .test_hill_climbing_para_init import hill_climbing_para from ._base_para_test import _base_para_test_func def objective_function(pa...
23.538462
68
0.715686
794f2f69b9b7678cacd02f5655016bfc47b2d4a6
1,230
py
Python
redlure-client.py
redlure/redlure-client
4441950ac41c16830d1bfea7b9fc98025429c38a
[ "BSD-3-Clause" ]
5
2020-08-09T16:09:58.000Z
2020-11-01T13:45:03.000Z
redlure-client.py
redlure/redlure-client
4441950ac41c16830d1bfea7b9fc98025429c38a
[ "BSD-3-Clause" ]
19
2021-04-01T12:25:50.000Z
2022-03-02T13:25:32.000Z
redlure-client.py
redlure/redlure-client
4441950ac41c16830d1bfea7b9fc98025429c38a
[ "BSD-3-Clause" ]
2
2020-12-09T05:00:54.000Z
2022-01-13T15:48:50.000Z
#!/usr/bin/env python3 from config import Config import subprocess import os import shlex def gen_certs(): proc = subprocess.Popen(shlex.split('openssl req -x509 -newkey rsa:4096 -nodes -subj "/" -out redlure-cert.pem -keyout redlure-key.pem -days 365')) proc.wait() def main(): # base ng command that wi...
29.285714
151
0.611382
794f2f8791b2b8b3850c1eae1b3db050aa76e192
2,799
py
Python
tests/unit/test_rdf_utils.py
gouttegd/kgx
1efa0bfaf62113855ffc1d002903236e4ff8706a
[ "BSD-3-Clause" ]
32
2020-10-21T17:35:27.000Z
2022-03-17T02:40:08.000Z
tests/unit/test_rdf_utils.py
gouttegd/kgx
1efa0bfaf62113855ffc1d002903236e4ff8706a
[ "BSD-3-Clause" ]
136
2018-04-24T02:15:39.000Z
2020-10-02T00:14:13.000Z
tests/unit/test_rdf_utils.py
gouttegd/kgx
1efa0bfaf62113855ffc1d002903236e4ff8706a
[ "BSD-3-Clause" ]
19
2018-05-03T17:03:08.000Z
2020-07-15T22:12:40.000Z
import os import pytest from rdflib import URIRef, Graph from kgx.prefix_manager import PrefixManager from kgx.utils.rdf_utils import infer_category, process_predicate from tests import RESOURCE_DIR @pytest.mark.parametrize( "query", [ (URIRef("http://purl.obolibrary.org/obo/GO_0007267"), "biological...
28.85567
87
0.538049
794f2f884908b33449a379effe4ce4343f0dd322
5,830
py
Python
random-forests.py
saksham-mittal/CS6510-Kaggle-Challenge
01cf220a826649fc7341c057a2175c98acf025ba
[ "MIT" ]
null
null
null
random-forests.py
saksham-mittal/CS6510-Kaggle-Challenge
01cf220a826649fc7341c057a2175c98acf025ba
[ "MIT" ]
null
null
null
random-forests.py
saksham-mittal/CS6510-Kaggle-Challenge
01cf220a826649fc7341c057a2175c98acf025ba
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.ensemble import RandomForestClassifier training_set = pd.read_csv("train.csv") # Extracting labels from training set training_labels = training_set['pricing_category'] print(training_labels) # Dropping t...
34.294118
167
0.750943
794f2fd2dd74d546dd881e0abc0fca6f405f1a94
6,707
py
Python
utilities/get_ifmtu.py
xod442/hpe-composable-fabric-sidekick
55c20b082c2ecacd8633bf3d085159100802ec2b
[ "Apache-2.0" ]
null
null
null
utilities/get_ifmtu.py
xod442/hpe-composable-fabric-sidekick
55c20b082c2ecacd8633bf3d085159100802ec2b
[ "Apache-2.0" ]
3
2019-06-27T18:29:44.000Z
2020-02-04T23:40:14.000Z
utilities/get_ifmtu.py
xod442/hpe-composable-fabric-sidekick
55c20b082c2ecacd8633bf3d085159100802ec2b
[ "Apache-2.0" ]
2
2019-06-02T23:04:39.000Z
2019-08-07T17:20:08.000Z
# -*-coding: utf-8 -*- # (C) Copyright 2019 Hewlett Packard Enterprise Development LP. # 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 ...
49.316176
110
0.586104
794f2fe458f7a6d4ce34c809346d6c32c6818ddf
899
py
Python
torchbenchmark/util/framework/timm/timm_config.py
LaudateCorpus1/benchmark
2a8528f91dfbbd880e514b4deefa692a48c32af8
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/util/framework/timm/timm_config.py
LaudateCorpus1/benchmark
2a8528f91dfbbd880e514b4deefa692a48c32af8
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/util/framework/timm/timm_config.py
LaudateCorpus1/benchmark
2a8528f91dfbbd880e514b4deefa692a48c32af8
[ "BSD-3-Clause" ]
null
null
null
import torch.nn as nn import dataclasses from timm.optim import create_optimizer @dataclasses.dataclass class OptimizerOption: lr: float opt: str weight_decay: float momentum: float class TimmConfig: def __init__(self, model, device): self.model = model self.device = device ...
35.96
137
0.707453
794f31047c5e87cabab1108511ed44da753531e1
14,383
py
Python
django/utils/functional.py
Dragon2zhao/Study
397b3705c5f762b359cdb494f9447c8a60685adf
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/utils/functional.py
Dragon2zhao/Study
397b3705c5f762b359cdb494f9447c8a60685adf
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/utils/functional.py
Dragon2zhao/Study
397b3705c5f762b359cdb494f9447c8a60685adf
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import copy import operator from functools import total_ordering, wraps from django.utils import six # You can't trivially replace this with `functools.partial` because this binds # to classes and returns bound instances, whereas functools.partial (on # CPython) is a type and its instances don't bind. def curry(_cur...
34.491607
92
0.619203
794f3112b8c60e538c72f065c7bcf110f84a45b5
1,151
py
Python
cappa/private/pip3.py
Captricity/cappa
6fa541e145c7fac7c499a63f7625be0dc8d3ea5d
[ "MIT" ]
3
2016-12-10T23:10:01.000Z
2017-12-28T19:38:49.000Z
cappa/private/pip3.py
Captricity/cappa
6fa541e145c7fac7c499a63f7625be0dc8d3ea5d
[ "MIT" ]
33
2015-01-08T01:32:39.000Z
2020-04-01T21:46:17.000Z
cappa/private/pip3.py
Captricity/cappa
6fa541e145c7fac7c499a63f7625be0dc8d3ea5d
[ "MIT" ]
1
2019-12-13T19:53:32.000Z
2019-12-13T19:53:32.000Z
from __future__ import print_function, absolute_import import os from ..pip3 import Pip3 class PrivatePip3(Pip3): def __init__(self, org, *flags): super(PrivatePip3, self).__init__(*flags) self.org = org def install(self, packages): packages = self._private_package_dict(packages) ...
32.885714
102
0.596003
794f321c650bb51e2ee8ee6b0a927d3afe0ca254
937
py
Python
submission/migrations/0028_auto_20181108_2301.py
jxtxzzw/eoj3
468c16ed6de8b9b542972d0e83b02fd2cfa35e4f
[ "MIT" ]
1
2020-11-17T13:08:07.000Z
2020-11-17T13:08:07.000Z
submission/migrations/0028_auto_20181108_2301.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
2
2020-09-23T21:27:55.000Z
2021-06-25T15:24:46.000Z
submission/migrations/0028_auto_20181108_2301.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
1
2019-07-13T00:44:39.000Z
2019-07-13T00:44:39.000Z
# Generated by Django 2.1.3 on 2018-11-08 23:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('submission', '0027_auto_20181106_1212'), ] operations = [ migrations.AddField( model_name='submission', name='contes...
39.041667
421
0.595518
794f3282f5414773851a73482ee0b1b5bca5b17d
305
py
Python
examples/example_1.py
tgsmith61591/gh_automation
2c2168019571e4f8c6f71bc00ee092cf2240ccfd
[ "MIT" ]
null
null
null
examples/example_1.py
tgsmith61591/gh_automation
2c2168019571e4f8c6f71bc00ee092cf2240ccfd
[ "MIT" ]
null
null
null
examples/example_1.py
tgsmith61591/gh_automation
2c2168019571e4f8c6f71bc00ee092cf2240ccfd
[ "MIT" ]
null
null
null
""" ======= Example ======= Here is an example "example" script (so meta!). You'd create examples like this and the documentation Makefile will run them during the doc build. .. raw:: html <br/> """ print(__doc__) # Author: Taylor Smith <taylor.smith@alkaline-ml.com> print("Here's an example!")
16.052632
79
0.665574
794f33150646f19bef216142286d69c2e3a66798
547
py
Python
buzzer.py
stijojoseph/SMART-AI-BLIND-STICK-WITH-OBJECT-RECOGNITION-VOICEFEEDBACK-USING-RASPBERRY-PI
a41e4c3fb88edafbae98649af09471485e9bcdd7
[ "MIT" ]
3
2020-06-05T07:57:42.000Z
2021-11-11T19:00:10.000Z
buzzer.py
stijojoseph/SMART-AI-BLIND-STICK-WITH-OBJECT-RECOGNITION-VOICEFEEDBACK-USING-RASPBERRY-PI
a41e4c3fb88edafbae98649af09471485e9bcdd7
[ "MIT" ]
1
2022-02-19T08:44:56.000Z
2022-02-19T13:42:15.000Z
buzzer.py
stijojoseph/SMART-AI-BLIND-STICK-WITH-OBJECT-RECOGNITION-VOICEFEEDBACK-USING-RASPBERRY-PI
a41e4c3fb88edafbae98649af09471485e9bcdd7
[ "MIT" ]
3
2020-11-04T15:02:06.000Z
2022-02-19T13:44:00.000Z
import RPi.GPIO as GPIO from time import sleep import time #Disable warnings (optional) GPIO.setmode(GPIO.BCM) # choose BCM or BOARD numbering schemes. I use BCM GPIO.setup(25, GPIO.OUT)# set GPIO 25 as an output. You can use any GPIO port p = GPIO.PWM(25, 50) # create an object p for PWM on port 25 at 50 Hertz...
30.388889
79
0.661792
794f33c2c4a771c15046b94c39103212954cb617
36
py
Python
Hello_World_NFT.py
tbotskina/Hello_World_NFT
c4f06f17a776c605c7eb1649464929d9fe6a34fe
[ "Apache-2.0" ]
null
null
null
Hello_World_NFT.py
tbotskina/Hello_World_NFT
c4f06f17a776c605c7eb1649464929d9fe6a34fe
[ "Apache-2.0" ]
null
null
null
Hello_World_NFT.py
tbotskina/Hello_World_NFT
c4f06f17a776c605c7eb1649464929d9fe6a34fe
[ "Apache-2.0" ]
null
null
null
print("Hello Decentralised World!")
18
35
0.777778
794f34866d1852bae90774cf16ba4a69e4eaac77
5,968
py
Python
src/ingest-pipeline/airflow/dags/validate_upload.py
AustinHartman/ingest-pipeline
788d9310792c9396a38650deda3dad11483b368c
[ "MIT" ]
6
2020-02-18T19:09:59.000Z
2021-10-07T20:38:46.000Z
src/ingest-pipeline/airflow/dags/validate_upload.py
AustinHartman/ingest-pipeline
788d9310792c9396a38650deda3dad11483b368c
[ "MIT" ]
324
2020-02-06T22:08:50.000Z
2022-03-24T20:44:33.000Z
src/ingest-pipeline/airflow/dags/validate_upload.py
AustinHartman/ingest-pipeline
788d9310792c9396a38650deda3dad11483b368c
[ "MIT" ]
2
2020-07-20T14:43:49.000Z
2021-10-29T18:24:36.000Z
import sys import os import ast import json from pathlib import Path from pprint import pprint from datetime import datetime, timedelta from airflow import DAG from airflow.configuration import conf as airflow_conf from airflow.operators.python_operator import PythonOperator from airflow.operators.bash_operator import...
32.434783
97
0.614779
794f34c2cc2fd73295d7684e3dc2a1b416e6fc8d
5,028
py
Python
augmentation/proxy_rep_augmentation.py
akashsengupta1997/STRAPS-3DHumanShapePose
f649a5790cd1ace15d2fa2e06908f0633ee24097
[ "MIT" ]
118
2020-08-08T06:35:12.000Z
2022-03-27T09:55:45.000Z
augmentation/proxy_rep_augmentation.py
akashsengupta1997/STRAPS-3DHumanShapePose
f649a5790cd1ace15d2fa2e06908f0633ee24097
[ "MIT" ]
23
2020-09-25T09:29:00.000Z
2022-02-16T07:51:33.000Z
augmentation/proxy_rep_augmentation.py
akashsengupta1997/STRAPS-3DHumanShapePose
f649a5790cd1ace15d2fa2e06908f0633ee24097
[ "MIT" ]
17
2020-08-16T16:47:41.000Z
2022-03-27T09:35:07.000Z
import torch import numpy as np def random_verts2D_deviation(vertices, delta_verts2d_dev_range=[-0.01, 0.01]): """ Randomly add 2D uniform noise to vertices to create silhouettes/part segmentations with corrupted edges. :param vertices: (bs, 6890, 3) :param delta_verts2d_dev_range: range of unifor...
39.590551
127
0.665672
794f35999545c0ac62c9e932e8c994b38ccb923d
1,883
py
Python
test.py
russlamb/file_convert
bcae13390da4728515304288951e9bd3ada8ce06
[ "MIT" ]
null
null
null
test.py
russlamb/file_convert
bcae13390da4728515304288951e9bd3ada8ce06
[ "MIT" ]
null
null
null
test.py
russlamb/file_convert
bcae13390da4728515304288951e9bd3ada8ce06
[ "MIT" ]
null
null
null
import os import unittest from csv_to_xlsx.convert import FileConvert def delete_files_if_exists(path_list): for path in path_list: if os.path.exists(path): os.remove(path) class TestConvert(unittest.TestCase): def setUp(self): delete_files_if_exists(["samples/FL_insurance_sampl...
35.528302
114
0.651089
794f35a7f8dbf9bdcfd57830c3d34e365fbe607f
3,307
py
Python
personality/personality_classifiers.py
Datalab-AUTH/MSc---Lampridis---MANIFEST
9c13018313f2681dd27ef56ac0eb8470319a1749
[ "Apache-2.0" ]
3
2021-03-28T20:13:11.000Z
2021-08-23T05:52:27.000Z
personality/personality_classifiers.py
Datalab-AUTH/MSc---Lampridis---MANIFEST
9c13018313f2681dd27ef56ac0eb8470319a1749
[ "Apache-2.0" ]
null
null
null
personality/personality_classifiers.py
Datalab-AUTH/MSc---Lampridis---MANIFEST
9c13018313f2681dd27ef56ac0eb8470319a1749
[ "Apache-2.0" ]
null
null
null
import pickle import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import train_test_split from sklearn.pipeline import Pipeline from sklearn.svm import LinearSVC from skmultilearn.problem_transform import ClassifierChain from utils.preprocessing import clean_te...
35.180851
93
0.761415
794f36490fce422761e56c03de5937f389891839
2,713
py
Python
unported scripts/magnification.py
KirovskiXVI/dicom-sr-qi
810f367d0845f4f47c3ee914502cf973b4f9b336
[ "BSD-2-Clause" ]
null
null
null
unported scripts/magnification.py
KirovskiXVI/dicom-sr-qi
810f367d0845f4f47c3ee914502cf973b4f9b336
[ "BSD-2-Clause" ]
null
null
null
unported scripts/magnification.py
KirovskiXVI/dicom-sr-qi
810f367d0845f4f47c3ee914502cf973b4f9b336
[ "BSD-2-Clause" ]
null
null
null
"""Makes box plots for DAP and exposure vs magnification. Can change some things in line to change the data source (bjh vs. slch) and to decide between graphing DAP and Exposure """ import my_utils import srdata import csv import matplotlib def build_table(): procs = srdata.process_file(my_utils.B...
36.662162
104
0.563583
794f36736e145f45ce11d87afd1e4629f3557275
1,562
py
Python
ossim/mat/views.py
hrithikbhat019/OS-Simulation
76521b130c41aae3ba157b3f07e54f7db4ab374d
[ "MIT" ]
8
2019-03-09T14:53:33.000Z
2021-06-06T11:22:59.000Z
ossim/mat/views.py
hrithikbhat019/OS-Simulation
76521b130c41aae3ba157b3f07e54f7db4ab374d
[ "MIT" ]
1
2019-12-01T23:14:27.000Z
2019-12-01T23:14:27.000Z
ossim/mat/views.py
hrithikbhat019/OS-Simulation
76521b130c41aae3ba157b3f07e54f7db4ab374d
[ "MIT" ]
10
2017-05-11T13:45:40.000Z
2020-03-28T06:25:50.000Z
from django.shortcuts import render # Create your views here. from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from django.template import loader import json def home_page(request): return render(request, 'mat/index.html') def mat_mft_get_data(request): variables = ...
31.877551
68
0.629962
794f36dd47d275d417360dca6fd88f55ddf2f57f
729
py
Python
account/migrations/0003_auto_20190816_1426.py
lilianwaweru/Bank
05ef2b86beec98d1cf31f3da168bbf32efaa1e3f
[ "MIT" ]
null
null
null
account/migrations/0003_auto_20190816_1426.py
lilianwaweru/Bank
05ef2b86beec98d1cf31f3da168bbf32efaa1e3f
[ "MIT" ]
7
2020-02-12T02:30:17.000Z
2021-10-06T02:49:08.000Z
account/migrations/0003_auto_20190816_1426.py
lilianwaweru/Bank
05ef2b86beec98d1cf31f3da168bbf32efaa1e3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-08-16 14:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0002_banks'), ] operations = [ migrations.CreateModel( ...
26.035714
114
0.577503
794f378662d023a782bb07fe1d16cb6df422dc5e
35,835
py
Python
quantum_heom/quantum_system.py
jwa7/h.e.o.m-quantum
e8835ba56f59a7e70aacc988cdba541fa085cf7e
[ "MIT" ]
8
2020-03-19T23:37:37.000Z
2021-11-17T11:35:20.000Z
quantum_heom/quantum_system.py
jwa7/quantum-HEOM
e8835ba56f59a7e70aacc988cdba541fa085cf7e
[ "MIT" ]
3
2019-12-17T09:48:34.000Z
2021-05-17T05:17:27.000Z
quantum_heom/quantum_system.py
jwa7/quantum-HEOM
e8835ba56f59a7e70aacc988cdba541fa085cf7e
[ "MIT" ]
3
2020-03-19T23:37:29.000Z
2021-07-11T06:33:34.000Z
"""Module for setting up a quantum system. Contains the QuantumSystem class.""" from scipy import constants import numpy as np from quantum_heom import evolution as evo from quantum_heom import hamiltonian as ham from quantum_heom import heom from quantum_heom import lindbladian as lind from quantum_heom.bath import...
35.656716
81
0.54804
794f378bfcc2685e0745c6a72bb3ad65073023ad
25,621
py
Python
quant/platform/okex_swap.py
yfjelley/thenextquant
5a2c4324ea390b513632ed2cc64d53314624e4ba
[ "MIT" ]
2
2021-09-22T08:41:55.000Z
2021-11-05T01:45:27.000Z
quant/platform/okex_swap.py
mrganer/thenextquant
52fb22f5df20d43cb275a08adad81dc97f25a712
[ "MIT" ]
1
2019-10-25T05:25:28.000Z
2019-10-25T05:25:28.000Z
quant/platform/okex_swap.py
mrganer/thenextquant
52fb22f5df20d43cb275a08adad81dc97f25a712
[ "MIT" ]
4
2019-11-29T03:12:34.000Z
2021-09-19T02:59:29.000Z
# -*- coding:utf-8 -*- """ OKEx Swap Trade module https://www.okex.me/docs/zh/ NOTE: Only Cross Margin Mode is supported in Trade module currently. Please change Margin Mode to `Cross`, not `Fixed`! Author: HuangTao Date: 2019/01/19 Email: huangtao@ifclover.com """ import time import zlib import json import copy...
40.348031
133
0.595878
794f3907a50c729a817f794d56f53e2b2e413047
97
py
Python
admin_object_actions/__init__.py
bjuretko/django-admin-object-actions
2c80ffcbb53b3d585f191d1fe662daf36fa7e204
[ "BSD-3-Clause" ]
null
null
null
admin_object_actions/__init__.py
bjuretko/django-admin-object-actions
2c80ffcbb53b3d585f191d1fe662daf36fa7e204
[ "BSD-3-Clause" ]
null
null
null
admin_object_actions/__init__.py
bjuretko/django-admin-object-actions
2c80ffcbb53b3d585f191d1fe662daf36fa7e204
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.1.5' default_app_config = 'admin_object_actions.apps.AdminObjectActionsConfig'
24.25
73
0.824742
794f398ae8272c803d342f2febc1e780945d475e
14,297
py
Python
scripts/imapServer.py
idiotic-geek/roundup-mirror-via-github-import
8b6956ff319092a18202882be41cf31860cfb787
[ "MIT" ]
20
2016-06-16T15:34:21.000Z
2021-11-17T10:02:09.000Z
scripts/imapServer.py
idiotic-geek/roundup-mirror-via-github-import
8b6956ff319092a18202882be41cf31860cfb787
[ "MIT" ]
2
2018-12-02T01:32:22.000Z
2021-12-09T20:30:04.000Z
scripts/imapServer.py
idiotic-geek/roundup-mirror-via-github-import
8b6956ff319092a18202882be41cf31860cfb787
[ "MIT" ]
8
2016-12-08T09:21:05.000Z
2021-02-04T05:13:14.000Z
#!/usr/bin/env python """\ This script is a wrapper around the mailgw.py script that exists in roundup. It runs as service instead of running as a one-time shot. It also connects to a secure IMAP server. The main reasons for this script are: 1) The roundup-mailgw script isn't designed to run as a server. It expect...
36.658974
79
0.576345