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
d65ed9c3f66518829cc01586b6a03515940d9b75
3,742
py
Python
PhysicsTools/PatAlgos/test/miniAOD/example_jet_and_met.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
PhysicsTools/PatAlgos/test/miniAOD/example_jet_and_met.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
PhysicsTools/PatAlgos/test/miniAOD/example_jet_and_met.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
# THIS CONFIGURATION IS BROKEN. SINCE 2015 Geometry_cff has been deleted # and it is a fatal error to load it. And because of this I did not bother # to convert it to use tasks in 2017 when Tasks where implemented for unscheduled # mode (or remove the allowUnscheduled flag which no longer does anything). # Modules whic...
49.893333
172
0.809193
922cb7d9e2d03918876d6845a4ca3a21e0de27e1
197
py
Python
cmd/gorgo/testapps/example.py
pib/gorgo
61237b789f1207dece3f495ae60f87de8b4e104b
[ "MIT" ]
70
2015-01-02T11:55:46.000Z
2022-01-23T05:23:58.000Z
cmd/gorgo/testapps/example.py
pib/gorgo
61237b789f1207dece3f495ae60f87de8b4e104b
[ "MIT" ]
1
2018-07-09T02:29:02.000Z
2018-07-09T14:45:04.000Z
cmd/gorgo/testapps/example.py
pib/gorgo
61237b789f1207dece3f495ae60f87de8b4e104b
[ "MIT" ]
19
2015-01-04T10:47:46.000Z
2019-09-23T13:29:51.000Z
import time def hello(name, counter): print "Hello", name, counter, "!" a = 5 b = 10 print a, "*", b, "=", a*b print "Unix time?", time.time() i = 0 while i < 5: hello("Go", i) i += 1
13.133333
41
0.527919
c8863047f5a9c485a987db46023efb532835ea2f
15,097
py
Python
scionlab/forms/attachment_conf_form.py
mlegner/scionlab
3d5000dbb502621e5b2831d0ec73e7c1cca41ac3
[ "Apache-2.0" ]
null
null
null
scionlab/forms/attachment_conf_form.py
mlegner/scionlab
3d5000dbb502621e5b2831d0ec73e7c1cca41ac3
[ "Apache-2.0" ]
null
null
null
scionlab/forms/attachment_conf_form.py
mlegner/scionlab
3d5000dbb502621e5b2831d0ec73e7c1cca41ac3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 ETH Zurich # # 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, sof...
39.728947
100
0.560906
cf1381cc33503615e8b61430bf75191ee7e3a71f
3,737
py
Python
baselibs/python/openhpi_baselib/HpiUtil.py
openhpi2/openhpi_apr25
720d4043124ac44d17715db4ffb735c623c08e38
[ "BSD-3-Clause" ]
5
2018-12-18T01:32:53.000Z
2021-11-15T10:41:48.000Z
baselibs/python/openhpi_baselib/HpiUtil.py
openhpi2/openhpi_apr25
720d4043124ac44d17715db4ffb735c623c08e38
[ "BSD-3-Clause" ]
34
2018-05-11T21:31:33.000Z
2021-01-12T07:13:46.000Z
baselibs/python/openhpi_baselib/HpiUtil.py
openhpi2/openhpi_apr25
720d4043124ac44d17715db4ffb735c623c08e38
[ "BSD-3-Clause" ]
8
2018-08-27T22:48:44.000Z
2022-03-15T03:49:55.000Z
# -*- python -*- # # Copyright (C) 2012, Pigeon Point Systems # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This # file and program are licensed under a BSD style license....
31.141667
92
0.557131
4d8ea1f1220b015b3b5ed3fdb690a9e10ed6b005
8,300
py
Python
multicall/constants.py
heki-ru/multicall.py
e3d89e88c76cc5876ab6af7578ea2d50f6585362
[ "MIT" ]
null
null
null
multicall/constants.py
heki-ru/multicall.py
e3d89e88c76cc5876ab6af7578ea2d50f6585362
[ "MIT" ]
null
null
null
multicall/constants.py
heki-ru/multicall.py
e3d89e88c76cc5876ab6af7578ea2d50f6585362
[ "MIT" ]
null
null
null
import os from enum import IntEnum from typing import Dict from aiohttp import ClientTimeout # If brownie is installed and connected, we will use brownie's Web3 # Otherwise, we will use w3 from web3py. try: from brownie import network, web3 # type: ignore if network.is_connected(): w3 = web3 else...
105.063291
5,272
0.919639
0c71c73bce44174dce963452d1da88a423385b64
147,383
py
Python
venv/lib/python2.7/site-packages/matplotlib/patches.py
denis-gordeev/sobakin_glottal_closures
809120835681df1a56d88471c610794f8cc56cf6
[ "Apache-2.0" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
venv/lib/python2.7/site-packages/matplotlib/patches.py
denis-gordeev/sobakin_glottal_closures
809120835681df1a56d88471c610794f8cc56cf6
[ "Apache-2.0" ]
3
2020-09-26T01:09:47.000Z
2022-02-10T02:12:08.000Z
venv/lib/python2.7/site-packages/matplotlib/patches.py
denis-gordeev/sobakin_glottal_closures
809120835681df1a56d88471c610794f8cc56cf6
[ "Apache-2.0" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from matplotlib.externals import six from matplotlib.externals.six.moves import map, zip import math import matplotlib as mpl import numpy as np import matplotlib.cbook as cbook impor...
32.264229
79
0.514062
2517455a545c9fd1ca88b81765bc463c544ea360
317
py
Python
src/LogisticRegression/Predict.py
pavanadapa/LogisiticRegression
cbc9b2f1c82ef1c0e3c259836a7ed7f49e937b99
[ "MIT" ]
null
null
null
src/LogisticRegression/Predict.py
pavanadapa/LogisiticRegression
cbc9b2f1c82ef1c0e3c259836a7ed7f49e937b99
[ "MIT" ]
null
null
null
src/LogisticRegression/Predict.py
pavanadapa/LogisiticRegression
cbc9b2f1c82ef1c0e3c259836a7ed7f49e937b99
[ "MIT" ]
null
null
null
import numpy as np from LogisticRegression.Sigmoid import sigmoid def predict(X, theta): m, n = X.shape X = np.hstack((X,np.ones((m, 1)))) y_results = [] for i in range(0, len(X)): if sigmoid(np.dot(X[i,:], theta)) >= 0.5: y_results.append(1) else: y_results.append(0) return y_results
22.642857
46
0.624606
7be5fbdd0e3540a0720845bc87ba09a14a1f181d
14,737
py
Python
neuralNets/emnlp2017bilstm/util/preprocessing.py
UKPLab/emnlp2019-NeuralWeb
9f94eec6bff92396c0401b6981bcb46f8d5e1f80
[ "Apache-2.0" ]
3
2019-07-10T08:12:46.000Z
2020-02-05T08:36:45.000Z
neuralNets/emnlp2017bilstm/util/preprocessing.py
UKPLab/emnlp2019-NeuralWeb
9f94eec6bff92396c0401b6981bcb46f8d5e1f80
[ "Apache-2.0" ]
6
2020-01-28T22:49:43.000Z
2022-02-10T00:11:52.000Z
neuralNets/emnlp2017bilstm/util/preprocessing.py
UKPLab/emnlp2019-NeuralWeb
9f94eec6bff92396c0401b6981bcb46f8d5e1f80
[ "Apache-2.0" ]
1
2021-02-16T01:57:07.000Z
2021-02-16T01:57:07.000Z
from __future__ import print_function import numpy as np import gzip import os.path import nltk import logging from nltk import FreqDist from .WordEmbeddings import wordNormalize from .CoNLL import readCoNLL import sys if (sys.version_info > (3, 0)): import pickle as pkl else: #Python 2.7 imports import cPick...
37.884319
146
0.58309
2f46faae3cb62311acdf5fff23c887dc0c11a149
50
py
Python
D01/func_create_function.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D01/func_create_function.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D01/func_create_function.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
def nama_fungsi(): print ("Hello ini fungsi")
16.666667
30
0.66
29372a7493264182673fa68fb9eadec9b192e76e
1,357
py
Python
tests/unit-tests/test_engine_run_defaults.py
releng-tool/releng-tool
cd8728f35a7bdaf6ef90fd019e8c33bc5da8b265
[ "BSD-2-Clause" ]
7
2019-04-06T21:21:22.000Z
2021-12-10T04:07:20.000Z
tests/unit-tests/test_engine_run_defaults.py
releng-tool/releng-tool
cd8728f35a7bdaf6ef90fd019e8c33bc5da8b265
[ "BSD-2-Clause" ]
1
2019-10-01T20:03:10.000Z
2019-10-02T20:28:00.000Z
tests/unit-tests/test_engine_run_defaults.py
releng-tool/releng-tool
cd8728f35a7bdaf6ef90fd019e8c33bc5da8b265
[ "BSD-2-Clause" ]
1
2021-07-23T17:00:57.000Z
2021-07-23T17:00:57.000Z
# -*- coding: utf-8 -*- # Copyright 2021 releng-tool from releng_tool.exceptions import RelengToolMissingConfigurationError from releng_tool.exceptions import RelengToolMissingPackagesError from tests import prepare_testenv from tests import run_testenv import os import unittest class TestEngineRunDefaults(unittest.T...
41.121212
71
0.725866
fe3de749dda75a1e949a5953fad5d04e50ae39b8
2,241
py
Python
correct_names.py
anduleh/canvas-migration
a46e33e20638c38eda8bffd57982b894b38f5dda
[ "MIT" ]
1
2021-10-19T16:09:47.000Z
2021-10-19T16:09:47.000Z
correct_names.py
anduleh/canvas-migration
a46e33e20638c38eda8bffd57982b894b38f5dda
[ "MIT" ]
null
null
null
correct_names.py
anduleh/canvas-migration
a46e33e20638c38eda8bffd57982b894b38f5dda
[ "MIT" ]
null
null
null
import init import api_calls as api import pprint import re import tkinter as tk from tkinter import * from tkinter import simpledialog def has_date(array): for elem in array: check = re.match(r'[\d]{4}[A-z]{1}[\d]{1}', elem) if check: return True def has_last_name(course_name_param)...
31.56338
108
0.623382
7cbdb4387ce55bb5a91f6f74adfd61d0858e4df1
13,002
py
Python
train.py
laiguokun/fairseq
6c01c91aac81eb2e3173add4463dfa45c404ffa5
[ "MIT" ]
1
2020-06-08T19:40:03.000Z
2020-06-08T19:40:03.000Z
train.py
laiguokun/fairseq
6c01c91aac81eb2e3173add4463dfa45c404ffa5
[ "MIT" ]
null
null
null
train.py
laiguokun/fairseq
6c01c91aac81eb2e3173add4463dfa45c404ffa5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Train a new model on one or across multiple GPUs. """ import collections import math import random import os im...
38.017544
102
0.655361
b84588b7efd7cc0be89caf5987d0f7e04466bad0
147
py
Python
tests/config.py
AltTether/msdn
3c1190705e79bca935de9b7830e710de7abec4e0
[ "MIT" ]
3
2018-12-22T05:42:26.000Z
2019-02-25T15:16:50.000Z
tests/config.py
AltTether/msdn
3c1190705e79bca935de9b7830e710de7abec4e0
[ "MIT" ]
null
null
null
tests/config.py
AltTether/msdn
3c1190705e79bca935de9b7830e710de7abec4e0
[ "MIT" ]
null
null
null
BASE_URI = '' ACCESS_TOKEN = '' TEST_ID = '' TEST_DOMAIN = '' TEST_FILTER_ID = '' TEST_LIST_ID = '' TEST_NOTIFICATION_ID = '' TEST_STATUS_ID = ''
14.7
25
0.666667
fd311f3368d7b4bdde7c4b49eac8d56a0fe19822
2,845
py
Python
postprocessing/gen_prediction_label.py
HaowenWeiJohn/CV_Project
8e2414796f60a8c3fe452f3721e4a6ef7edfdb11
[ "MIT" ]
null
null
null
postprocessing/gen_prediction_label.py
HaowenWeiJohn/CV_Project
8e2414796f60a8c3fe452f3721e4a6ef7edfdb11
[ "MIT" ]
null
null
null
postprocessing/gen_prediction_label.py
HaowenWeiJohn/CV_Project
8e2414796f60a8c3fe452f3721e4a6ef7edfdb11
[ "MIT" ]
null
null
null
import shutil import yaml import os import sys import yaml import numpy as np from torch.utils.data import DataLoader from tqdm import tqdm import matplotlib.pyplot as plt import torch from config.data_path_config import root_data_dir from model.CustomDataLoader.dataloader import ResLSTM_DataLoader from model.ResLSTM_t...
27.892157
118
0.696661
ba0a614ee26bbdd336dd9a52c4862a18d47962bd
118
py
Python
creglist_clone/my_app/admin.py
Reeju2019/CreglistApp_Clone
1bf2763f4b330aef09744447038028063a034b02
[ "MIT" ]
null
null
null
creglist_clone/my_app/admin.py
Reeju2019/CreglistApp_Clone
1bf2763f4b330aef09744447038028063a034b02
[ "MIT" ]
null
null
null
creglist_clone/my_app/admin.py
Reeju2019/CreglistApp_Clone
1bf2763f4b330aef09744447038028063a034b02
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.Search)
23.6
34
0.805085
683f75d5e4d20f304b0bcd0deb2ced1bba909c0e
11,929
py
Python
cinder/volume/drivers/san/hp/hp_3par_fc.py
sombrafam/cinder
60ffb0eedf41b56f3c6af5b301400ced95762194
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/san/hp/hp_3par_fc.py
sombrafam/cinder
60ffb0eedf41b56f3c6af5b301400ced95762194
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/san/hp/hp_3par_fc.py
sombrafam/cinder
60ffb0eedf41b56f3c6af5b301400ced95762194
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Copyright 2012 OpenStack Foundation # # 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...
36.368902
79
0.607679
e1ef258172e11107b4a21b6a543e1ebe34e0af3c
379
py
Python
misc/test_gui.py
winnerineast/taichi
57ae0abc374e0df8f0b54bde4bcb92d9d97ed269
[ "MIT" ]
null
null
null
misc/test_gui.py
winnerineast/taichi
57ae0abc374e0df8f0b54bde4bcb92d9d97ed269
[ "MIT" ]
1
2019-10-20T08:46:09.000Z
2019-10-20T08:46:09.000Z
misc/test_gui.py
hoojaoh/taichi
641c4b83bcf98e7354b135964cd23759b0110c6b
[ "MIT" ]
null
null
null
import taichi as tc vec = tc.vec gui = tc.core.GUI("Test GUI", tc.veci(512, 512)) canvas = gui.get_canvas() canvas.clear(0xFFFFFF) canvas.rect(vec(0.3, 0.3), vec(0.6, 0.6)).radius(2).color(0x000000).close().finish() canvas.path(vec(0.3, 0.3), vec(0.6, 0.6)).radius(2).color(0x000000).finish() canvas.circle(vec(0.5, 0....
27.071429
84
0.675462
2db3f40a90bf72d7f4962ece278558566a8b4778
473
py
Python
electrum/plugins/revealer/__init__.py
zcoinofficial/electrum
5fdc234f817aed1d7d4bcd894fafd99972423314
[ "MIT" ]
23
2018-02-19T16:59:23.000Z
2020-09-10T16:58:44.000Z
electrum/plugins/revealer/__init__.py
zcoinofficial/electrum
5fdc234f817aed1d7d4bcd894fafd99972423314
[ "MIT" ]
37
2018-03-04T11:59:44.000Z
2020-09-27T19:58:21.000Z
electrum/plugins/revealer/__init__.py
zcoinofficial/electrum
5fdc234f817aed1d7d4bcd894fafd99972423314
[ "MIT" ]
12
2018-02-20T01:37:48.000Z
2020-08-06T06:18:42.000Z
from electrum_xzc.i18n import _ fullname = _('Revealer Backup Utility') description = ''.join(["<br/>", "<b>"+_("Do you have something to hide ?")+"</b>", '<br/>', '<br/>', _("This plug-in allows you to create a visually encrypted backup of your wallet seeds, or of custom alphanumeric secrets."), '<br/>', '<br...
36.384615
146
0.604651
a576d5b2e3180c80e2bdc0306c4651940c088a75
403
py
Python
iris/routes/general.py
ismailuddin/iris
f1a9065991e7c50ab180e7b3c6b18f0f24f0d857
[ "MIT" ]
2
2021-06-10T11:57:08.000Z
2022-02-07T22:14:38.000Z
iris/routes/general.py
ismailuddin/iris
f1a9065991e7c50ab180e7b3c6b18f0f24f0d857
[ "MIT" ]
3
2020-04-19T09:08:45.000Z
2022-02-13T11:14:06.000Z
iris/routes/general.py
ismailuddin/iris
f1a9065991e7c50ab180e7b3c6b18f0f24f0d857
[ "MIT" ]
1
2022-02-28T04:46:58.000Z
2022-02-28T04:46:58.000Z
import os from flask import Blueprint, render_template, send_from_directory, current_app general = Blueprint("general", __name__) @general.route("/") def home(): """Route for the home page""" return render_template("general/home.html") @general.route("/images/<path:image_path>") def get_image(image_path: ...
21.210526
78
0.699752
442eccff8d7fc99d3bfbdf0734ad0ca8556c674f
1,451
py
Python
data/__init__.py
edocoh87/ssd.pytorch
09fe21af84976dd6ab09ff0c5649db2793e47468
[ "MIT" ]
null
null
null
data/__init__.py
edocoh87/ssd.pytorch
09fe21af84976dd6ab09ff0c5649db2793e47468
[ "MIT" ]
null
null
null
data/__init__.py
edocoh87/ssd.pytorch
09fe21af84976dd6ab09ff0c5649db2793e47468
[ "MIT" ]
null
null
null
from .voc0712 import VOCDetection, VOCAnnotationTransform, VOC_CLASSES, VOC_ROOT from .bonecell import BoneCellDetection, BoneCellAnnotationTransform, BONE_CELL_CLASSES_MAP, BoneCellInfer # from .coco import COCODetection, COCOAnnotationTransform, COCO_CLASSES, COCO_ROOT, get_label_map from .config import * import tor...
32.244444
106
0.684356
31028e82f1dc91f7c784b743c4a4cf465c46b4eb
1,053
py
Python
reservoirpy/nodes/tests/test_nvar.py
neuronalX/Funky_Reservoir
ce11aafb02ad36d37232a8a813e70923e0da1cc8
[ "MIT" ]
99
2020-12-25T02:49:19.000Z
2022-03-30T07:34:05.000Z
reservoirpy/nodes/tests/test_nvar.py
AmmarKheder/reservoirpy
6c972f820970fb56a7bf329d47fb2a8d76452ccb
[ "MIT" ]
41
2021-01-21T09:05:51.000Z
2022-03-28T10:40:46.000Z
reservoirpy/nodes/tests/test_nvar.py
AmmarKheder/reservoirpy
6c972f820970fb56a7bf329d47fb2a8d76452ccb
[ "MIT" ]
22
2020-12-25T02:50:28.000Z
2022-03-14T15:18:19.000Z
# Author: Nathan Trouvain at 18/11/2021 <nathan.trouvain@inria.fr> # Licence: MIT License # Copyright: Xavier Hinaut (2018) <xavier.hinaut@inria.fr> import sys if sys.version_info < (3, 8): from scipy.special import comb else: from math import comb import numpy as np from reservoirpy.nodes import NVAR def ...
21.489796
77
0.652422
5eb7639530c2b174ff5da3d8265d1b5313e36f34
3,540
py
Python
Env/LunarLanderEnv/LunarLanderEnvWrapper.py
antoniosap/WU-UCT
e071fbb47364c791ccb04c4cb0540b377d5d61f0
[ "MIT" ]
null
null
null
Env/LunarLanderEnv/LunarLanderEnvWrapper.py
antoniosap/WU-UCT
e071fbb47364c791ccb04c4cb0540b377d5d61f0
[ "MIT" ]
null
null
null
Env/LunarLanderEnv/LunarLanderEnvWrapper.py
antoniosap/WU-UCT
e071fbb47364c791ccb04c4cb0540b377d5d61f0
[ "MIT" ]
null
null
null
# # 20.12.2020 - custom env wrapper for ReversedAddition test # import gym from gym import spaces from copy import deepcopy from collections import deque # To allow easily extending to other tasks, we built a wrapper on top of the 'real' environment. class LunarLanderEnvWrapper: def __init__(self, env_name, max_...
26.616541
132
0.630508
0fe4a1d347ab24cbd28db59dc5dbef5454a2cfe9
1,097
py
Python
catalyst/contrib/dl/callbacks/__init__.py
AndreySheka/catalyst
28dd7696fb4a1331c85dbeecc147bed6b46b411c
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/dl/callbacks/__init__.py
AndreySheka/catalyst
28dd7696fb4a1331c85dbeecc147bed6b46b411c
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/dl/callbacks/__init__.py
AndreySheka/catalyst
28dd7696fb4a1331c85dbeecc147bed6b46b411c
[ "Apache-2.0" ]
null
null
null
# flake8: noqa import logging import os from .criterion import CriterionAggregatorCallback from .cutmix_callback import CutmixCallback from .knn import KNNMetricCallback from .telegram_logger import TelegramLogger logger = logging.getLogger(__name__) try: import alchemy from .alchemy import AlchemyLogger exc...
25.511628
80
0.658159
902feef31fd6dec15d774e299e15de56f3396866
2,668
py
Python
tests/handlers/test_model_repository.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
191
2020-06-16T18:07:27.000Z
2022-03-29T05:56:23.000Z
tests/handlers/test_model_repository.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
347
2020-08-21T02:22:04.000Z
2022-03-31T12:27:26.000Z
tests/handlers/test_model_repository.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
56
2020-06-22T14:29:25.000Z
2022-03-25T21:58:48.000Z
import pytest from typing import Optional from mlserver.errors import ModelNotFound from mlserver.registry import MultiModelRegistry from mlserver.handlers import ModelRepositoryHandlers from mlserver.settings import ModelSettings from mlserver.types import RepositoryIndexRequest, State async def test_index( mo...
32.536585
86
0.784108
265c7cba3a4fc9ae1fd7bb2717d8f4ca5c5262bf
8,221
py
Python
resolwe/flow/models/entity.py
genialis/resolwe
64ab124e5898ffd28c13c7104d32a2f4bdee55c9
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
resolwe/flow/models/entity.py
genialis/resolwe
64ab124e5898ffd28c13c7104d32a2f4bdee55c9
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
resolwe/flow/models/entity.py
genialis/resolwe
64ab124e5898ffd28c13c7104d32a2f4bdee55c9
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
"""Resolwe entity model.""" from django.contrib.postgres.fields import CICharField from django.contrib.postgres.indexes import GinIndex from django.core.exceptions import ValidationError from django.db import models, transaction from resolwe.permissions.models import PermissionObject, PermissionQuerySet from .base im...
34.687764
88
0.650286
550653dc96d84f6afaa60225d81bea644ed59841
21,582
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations_async/_azure_firewalls_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations_async/_azure_firewalls_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations_async/_azure_firewalls_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.747788
197
0.66435
17e10feec6d9d31a8d4268ffbf5e9215760a5341
2,005
py
Python
sdk/identity/azure-identity/azure/identity/_credentials/cloud_shell.py
Jg1255/azure-sdk-for-python
e63c302816cf372e2a51a8c1ae982e35c8fd9c24
[ "MIT" ]
1
2021-08-14T04:33:48.000Z
2021-08-14T04:33:48.000Z
sdk/identity/azure-identity/azure/identity/_credentials/cloud_shell.py
SkyN9ne/azure-sdk-for-python
a8fd00bb50687494841b3caee0519dd39ca7046c
[ "MIT" ]
2
2021-08-24T15:32:30.000Z
2021-08-24T23:21:34.000Z
sdk/identity/azure-identity/azure/identity/_credentials/cloud_shell.py
paikend/azure-sdk-for-python
5772d14728569fce7b40552a0f20795d12ecd797
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import functools import os from typing import TYPE_CHECKING from azure.core.pipeline.transport import HttpRequest from .. import CredentialUnavailableError from .._con...
35.175439
93
0.646384
6460eec6908e9535c5f0d9ebaf00b44387f0d305
756
py
Python
roglick/world/world.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
6
2015-05-05T21:28:35.000Z
2019-04-14T13:42:38.000Z
roglick/world/world.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
null
null
null
roglick/world/world.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
null
null
null
from .dungeon import DungeonManager from roglick.engine import event,random from roglick.events import MoveEvent,ClimbDownEvent,ClimbUpEvent class WorldManager(object): """The central manager for maintaining all world data.""" def __init__(self, entity_manager): self._em = entity_manager self....
29.076923
65
0.728836
958dc69547cc506193db980017a866267f387db9
906
py
Python
hphp/hack/test/integration/runner.py
webhacking/hhvm
24b6fd8acfaa00a2bbb6086942d084eb28bcc9d7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/integration/runner.py
webhacking/hhvm
24b6fd8acfaa00a2bbb6086942d084eb28bcc9d7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/integration/runner.py
webhacking/hhvm
24b6fd8acfaa00a2bbb6086942d084eb28bcc9d7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import sys import unittest import test_save_mini import test_save_restore if __name__ == '__main__': parser = argparse.ArgumentParser() parser.ad...
31.241379
71
0.780353
9d8c3d04302eda2cbc743d7df472e85a7c43133f
34,980
py
Python
homeassistant/components/homekit/__init__.py
prwood80/core
7d408e32887a260b7c92f1d8c23c8ac757bdaff1
[ "Apache-2.0" ]
5
2020-01-21T16:06:49.000Z
2021-12-20T11:54:20.000Z
homeassistant/components/homekit/__init__.py
prwood80/core
7d408e32887a260b7c92f1d8c23c8ac757bdaff1
[ "Apache-2.0" ]
68
2018-10-04T16:01:20.000Z
2022-03-31T06:21:46.000Z
homeassistant/components/homekit/__init__.py
prwood80/core
7d408e32887a260b7c92f1d8c23c8ac757bdaff1
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Support for Apple HomeKit.""" import asyncio import ipaddress import logging import os from aiohttp import web from pyhap.const import STANDALONE_AID import voluptuous as vol from homeassistant.components import device_automation, network, zeroconf from homeassistant.components.binary_sensor import ( DEVICE_CL...
36.173733
107
0.648142
2cee3264ac6bfefe189f06dea15902a3367d9ac3
1,291
py
Python
Rebecca.py
ashwani-rathee/Chatbots
14a62aa491a256fac62a2385b600c07fc336ed98
[ "MIT" ]
null
null
null
Rebecca.py
ashwani-rathee/Chatbots
14a62aa491a256fac62a2385b600c07fc336ed98
[ "MIT" ]
null
null
null
Rebecca.py
ashwani-rathee/Chatbots
14a62aa491a256fac62a2385b600c07fc336ed98
[ "MIT" ]
null
null
null
#Rebecca #Description :This is a python program GUI for a chatbot #library from tkinter import * root =Tk() root.title("Rebecca") #Dimension and root.geometry("400x500") root.resizable(width=FALSE,height=FALSE) main_menu= Menu(root) # Create the submenu file_menu = Menu(root) # Add commands to submenu #file_...
29.340909
109
0.712626
0842bc94c7f3eba271c18b2d3a8d9799ead6f021
4,295
py
Python
Pricing/Binomial_Tree/tree_generator.py
jingshenghua/QuantTopics
20e64710f9a4f22b626fa0ac0a7b062baccdc62a
[ "MIT" ]
null
null
null
Pricing/Binomial_Tree/tree_generator.py
jingshenghua/QuantTopics
20e64710f9a4f22b626fa0ac0a7b062baccdc62a
[ "MIT" ]
null
null
null
Pricing/Binomial_Tree/tree_generator.py
jingshenghua/QuantTopics
20e64710f9a4f22b626fa0ac0a7b062baccdc62a
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import copy import networkx as nx import matplotlib.pyplot as plt def binomial(n,k): if 0<=k<=n: a=b=1 for i in range(1,min(k,n-k)+1): a*=n b*=i n-=1 return a//b else: return 0 """object oriented tree gene...
35.791667
177
0.563679
09042eeb7f168fe5c098a76f2f75bf4209ac7b49
2,811
py
Python
tests/test_analyzer.py
Dineshkarthik/Whatsapp-analyzer
2da7c470afdf90efd158154a5aaf88e4b1159dfe
[ "MIT" ]
30
2016-02-23T10:21:03.000Z
2022-01-10T15:54:50.000Z
tests/test_analyzer.py
Dineshkarthik/Whatsapp-analyzer
2da7c470afdf90efd158154a5aaf88e4b1159dfe
[ "MIT" ]
18
2016-09-24T11:34:54.000Z
2021-12-03T23:00:01.000Z
tests/test_analyzer.py
Dineshkarthik/Whatsapp-analyzer
2da7c470afdf90efd158154a5aaf88e4b1159dfe
[ "MIT" ]
8
2016-05-24T06:27:44.000Z
2021-09-11T16:34:23.000Z
"""Unittest module for wapp analyzer.""" import os import mock import logging import unittest from wapp.analyzer.app import calculate_stats, allowed_file, is_date, week_day class WhatsappAnalyzerTestCase(unittest.TestCase): def test_calculate_stats(self): expected_result = { "word_cloud": { ...
28.979381
78
0.434009
ada5c2c20e8a69f52f81b6f12ff6b884aa445e85
3,707
py
Python
avc.py
soehlert/avc
164fe554e7dfc7dc29628568964e1d8ed4c95362
[ "MIT" ]
null
null
null
avc.py
soehlert/avc
164fe554e7dfc7dc29628568964e1d8ed4c95362
[ "MIT" ]
1
2021-04-29T19:15:40.000Z
2021-04-29T19:15:40.000Z
avc.py
soehlert/avc
164fe554e7dfc7dc29628568964e1d8ed4c95362
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os.path import yaml import re regex = re.compile(r"\{\{.*\}\}") var_dirs = ["vars", "defaults"] conf_files = [] conf_vars = [] template_files = [] template_vars = [] task_files = [] task_vars = [] missing_vars = [] parser = argparse.ArgumentParser() parser.add_argument("-...
31.683761
127
0.604532
35d37d1058555d4265a454b451c69be4f9b3935d
23,469
py
Python
shelf/broker3.py
MIT-Informatics/PreservationSimulation
38c6641a25108022ce8f225a352f566ad007b0f3
[ "X11" ]
9
2016-08-24T05:54:45.000Z
2020-11-12T16:44:48.000Z
shelf/broker3.py
MIT-Informatics/PreservationSimulation
38c6641a25108022ce8f225a352f566ad007b0f3
[ "X11" ]
1
2021-03-20T02:55:37.000Z
2021-03-20T02:55:37.000Z
shelf/broker3.py
MIT-Informatics/PreservationSimulation
38c6641a25108022ce8f225a352f566ad007b0f3
[ "X11" ]
null
null
null
#!/usr/bin/env python3 # broker3.py # Herewith a truly ridiculous number of imports. import os import re import time import json from NewTraceFac import NTRC,ntrace,ntracef import sys from catchex import catchex import searchspace import searchdatabasemongo import util import brokercli i...
39.643581
85
0.615067
733cd57599c0043ecbebd6770e453cb0635adbba
4,027
py
Python
src/pfh/glidersim/extras/data/braking_NACA24018_Xtr0.25/resample.py
pfheatwole/glidersim
12cca5fdd39438d0effe549c320a602b27a96e82
[ "MIT" ]
null
null
null
src/pfh/glidersim/extras/data/braking_NACA24018_Xtr0.25/resample.py
pfheatwole/glidersim
12cca5fdd39438d0effe549c320a602b27a96e82
[ "MIT" ]
null
null
null
src/pfh/glidersim/extras/data/braking_NACA24018_Xtr0.25/resample.py
pfheatwole/glidersim
12cca5fdd39438d0effe549c320a602b27a96e82
[ "MIT" ]
null
null
null
# Hack to resample a set of XFLR5 (or XFOIL) airfoil data in `.txt` files into # a regular grid (each dimension uses its own uniform spacing) to make it # useable by faster linear interpolation methods, such as in `fast_interp.py`. import itertools import pathlib import re import numpy as np from numpy.lib import rec...
36.944954
99
0.672709
fe3ea321daf06df465b17a640d34d7aef835a507
182
py
Python
intermediario/exercicios/exercicio5.py
Nataliaartini/cursoPython
01dc9cafd5cef1252ca84503e7a9011bd709ef46
[ "MIT" ]
null
null
null
intermediario/exercicios/exercicio5.py
Nataliaartini/cursoPython
01dc9cafd5cef1252ca84503e7a9011bd709ef46
[ "MIT" ]
null
null
null
intermediario/exercicios/exercicio5.py
Nataliaartini/cursoPython
01dc9cafd5cef1252ca84503e7a9011bd709ef46
[ "MIT" ]
null
null
null
string = "012345678901234567890123456789012345678901234567890123456789" n = 10 l1 = [string[i: i+n] for i in range(0, len(string), n)] print(l1) retorno = '.'.join(l1) print(retorno)
30.333333
71
0.736264
d2cb6e892913a92ea23a690f7628e6577dc11f3a
929
py
Python
examples/httpparser.py
mathstuf/http-parser
dedc9858b607453e16af50169a701cb439d43a62
[ "MIT" ]
null
null
null
examples/httpparser.py
mathstuf/http-parser
dedc9858b607453e16af50169a701cb439d43a62
[ "MIT" ]
null
null
null
examples/httpparser.py
mathstuf/http-parser
dedc9858b607453e16af50169a701cb439d43a62
[ "MIT" ]
null
null
null
#!/usr/bin/env python import socket from http_parser.parser import HttpParser def main(): p = HttpParser() s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) body = [] header_done = False try: s.connect(('gunicorn.org', 80)) s.send("GET / HTTP/1.1\r\nHost: gunicorn.org\r\n\r\n...
20.644444
62
0.517761
3c6894daa3ae7e4d7f784bd41e189c8938024653
2,412
py
Python
research/cv/mae/src/datasets/imagenet.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/mae/src/datasets/imagenet.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/mae/src/datasets/imagenet.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies 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 required by applicable law or agreed to...
33.5
82
0.640962
1f0bfb7b4547d8f22602de3ad5eae846284e741f
629
py
Python
ex021 # reproduz um arquivo mp3 -=-.py
jbmarcos/Python-Curso-em-video-Mundo-1-2-3-
a5bd705b2437c281f8f7ac02dc7ff54a09a37046
[ "MIT" ]
null
null
null
ex021 # reproduz um arquivo mp3 -=-.py
jbmarcos/Python-Curso-em-video-Mundo-1-2-3-
a5bd705b2437c281f8f7ac02dc7ff54a09a37046
[ "MIT" ]
null
null
null
ex021 # reproduz um arquivo mp3 -=-.py
jbmarcos/Python-Curso-em-video-Mundo-1-2-3-
a5bd705b2437c281f8f7ac02dc7ff54a09a37046
[ "MIT" ]
null
null
null
# reproduz um arquivo mp3 -=- '''import pygame pygame.init() pygame.mixer.music.load('ex021.mp3') pygame.mixer.music.play() pygame.event.wait() input('CURTE O SOM PIVETE!')''' '''from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') mixer.music.play() input('CURTE O SOM PIVETE!')''' '''import pygame ...
20.966667
58
0.72337
bcb0078f187b1280175bd6f77ee8d6618628a9a3
17,603
py
Python
reckoner/tests/test_chart.py
elthariel/reckoner
bdcc38bed3b01bf5b09d35522ca6b7fae1da3562
[ "Apache-2.0" ]
null
null
null
reckoner/tests/test_chart.py
elthariel/reckoner
bdcc38bed3b01bf5b09d35522ca6b7fae1da3562
[ "Apache-2.0" ]
null
null
null
reckoner/tests/test_chart.py
elthariel/reckoner
bdcc38bed3b01bf5b09d35522ca6b7fae1da3562
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 FairwindsOps 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 to in writ...
37.058947
136
0.614441
9f7798775de82e01313a098ce852dde3baa9a0f3
39
py
Python
copulae/copula/estimator/__init__.py
Wittgensteen/copulae
5db0cecb5b577d520f06b2b4a3d03aa0e08b633a
[ "MIT" ]
null
null
null
copulae/copula/estimator/__init__.py
Wittgensteen/copulae
5db0cecb5b577d520f06b2b4a3d03aa0e08b633a
[ "MIT" ]
1
2020-03-10T23:05:50.000Z
2020-03-10T23:05:50.000Z
copulae/copula/estimator/__init__.py
Wittgensteen/copulae
5db0cecb5b577d520f06b2b4a3d03aa0e08b633a
[ "MIT" ]
null
null
null
from .estimator import CopulaEstimator
19.5
38
0.871795
1d5afdb20b18b90059c374261cc9567c34836347
389
py
Python
bbya/wsgi.py
Red-Teapot/bbyaworld.com-django
6eb8febd2cfa304a062ac924240cbdf060499cfc
[ "MIT" ]
1
2020-01-11T18:04:15.000Z
2020-01-11T18:04:15.000Z
bbya/wsgi.py
Red-Teapot/bbyaworld.com-django
6eb8febd2cfa304a062ac924240cbdf060499cfc
[ "MIT" ]
2
2018-08-24T08:53:27.000Z
2019-07-05T16:08:28.000Z
bbya/wsgi.py
Red-Teapot/bbyaworld.com-django
6eb8febd2cfa304a062ac924240cbdf060499cfc
[ "MIT" ]
1
2018-11-22T16:19:52.000Z
2018-11-22T16:19:52.000Z
""" WSGI config for bbya 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
22.882353
78
0.781491
94414fcd31e59e032f9bd8008720e665004452a8
2,172
py
Python
main.py
cjku97/project6
dbcbd68693f1222cbcb67949fd98d092cc6bf1b1
[ "MIT" ]
null
null
null
main.py
cjku97/project6
dbcbd68693f1222cbcb67949fd98d092cc6bf1b1
[ "MIT" ]
null
null
null
main.py
cjku97/project6
dbcbd68693f1222cbcb67949fd98d092cc6bf1b1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from regression import (logreg, utils) from sklearn.preprocessing import StandardScaler from sklearn.metrics import confusion_matrix from sklearn.metrics import classification_report from sklearn.metrics import roc_auc_score from sklearn.metrics imp...
36.2
142
0.691529
2bc8d5a81e87147187be240472ca73067a221c63
370
py
Python
tests/trenz/_axi.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/trenz/_axi.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/trenz/_axi.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
import sys from magma import * from mantle import * from loam.boards.trenz import Trenz trenz = Trenz() axi_slave = trenz.axi0.slave mmio = MMIO(axi_slave=axi,data_size=2) data0 = mmio.data[0] written = mmio.written[0] add = Add(32) data0_plus_1 = add(data0,1) mmio.data[0].write(data=data0_plus_1,write=written) ...
16.086957
51
0.735135
929c1463413cf323c492e464bc047aea57547abb
4,281
py
Python
setup.py
caltechlibrary/caltechdata_api
69a986642942379a12fac64cbba4c08c4ae29cc3
[ "BSD-3-Clause" ]
7
2018-03-07T17:24:22.000Z
2022-02-01T20:01:30.000Z
setup.py
caltechlibrary/caltechdata_api
69a986642942379a12fac64cbba4c08c4ae29cc3
[ "BSD-3-Clause" ]
7
2018-05-18T23:49:17.000Z
2021-07-22T23:40:26.000Z
setup.py
caltechlibrary/caltechdata_api
69a986642942379a12fac64cbba4c08c4ae29cc3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io, json import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command def read(fname): with open(fname, mode="r", encoding="utf-8...
27.619355
81
0.637468
dd192df528c36f610b05f4214b5dcbd3f2fb7935
134
py
Python
Web_Server/webapps/discovery/apps.py
Entek-Technical-Services/BEMOSS3.5
581a205b4129530474a5ceee93cb36ef62992d4c
[ "BSD-3-Clause" ]
73
2017-07-11T21:46:41.000Z
2022-03-11T03:35:25.000Z
Web_Server/webapps/discovery/apps.py
Entek-Technical-Services/BEMOSS3.5
581a205b4129530474a5ceee93cb36ef62992d4c
[ "BSD-3-Clause" ]
19
2017-10-10T22:06:15.000Z
2022-03-28T21:03:33.000Z
Web_Server/webapps/discovery/apps.py
Entek-Technical-Services/BEMOSS3.5
581a205b4129530474a5ceee93cb36ef62992d4c
[ "BSD-3-Clause" ]
36
2017-06-24T00:17:03.000Z
2022-03-31T13:58:36.000Z
from __future__ import unicode_literals from django.apps import AppConfig class DiscoveryConfig(AppConfig): name = 'discovery'
16.75
39
0.798507
87cf4bb73d1f8af994e1597046e6e34354185967
9,184
py
Python
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/typescript/get_completions_test.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
2
2018-04-16T03:08:42.000Z
2021-01-06T10:21:49.000Z
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/typescript/get_completions_test.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/typescript/get_completions_test.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
# encoding: utf-8 # # Copyright (C) 2015-2018 ycmd contributors # # This file is part of ycmd. # # ycmd 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) an...
31.452055
79
0.51949
701cf867047ea52dafef64fab55c0d7f9a59b4bc
485
py
Python
setup.py
ABernard27/PROJET-groupe-3
a9ab9d80c10724ded9e20751fda018a7ed05589b
[ "MIT" ]
3
2021-12-11T16:06:37.000Z
2021-12-12T14:41:27.000Z
setup.py
ABernard27/PROJET-groupe-3
a9ab9d80c10724ded9e20751fda018a7ed05589b
[ "MIT" ]
null
null
null
setup.py
ABernard27/PROJET-groupe-3
a9ab9d80c10724ded9e20751fda018a7ed05589b
[ "MIT" ]
5
2021-11-15T15:53:24.000Z
2021-12-10T08:59:52.000Z
from setuptools import setup from Coberny import __version__ as version setup( name='Coberny', version=version, description='Étude des prix des autoroutes et estimation des coûts de trajet', url='https://github.com/ABernard27/PROJET-groupe-3.git', author='Bernard Anne, Chery Fanny, Côme Olivier', author_em...
32.333333
96
0.756701
f0540f07423c22dbb49436d9075eb4ac89319d3d
1,515
py
Python
tests/compiler/test_options.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
6
2021-03-09T10:24:02.000Z
2022-01-16T03:52:11.000Z
tests/compiler/test_options.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
1,319
2020-12-18T08:52:29.000Z
2022-03-31T18:17:32.000Z
tests/compiler/test_options.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
4
2021-03-03T15:36:50.000Z
2022-03-11T11:41:51.000Z
""" Copyright 2018 Inmanta 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 ...
19.423077
80
0.721452
a22297e20624d6fa7bf9a7b3d0628f5638beb6f9
2,036
py
Python
src/tashi/clustermanager/data/datainterface.py
apache/tashi
87f55e4d30800c085ea786bf40c9412b816969e6
[ "Apache-2.0" ]
6
2015-02-26T22:52:15.000Z
2021-11-10T16:04:40.000Z
src/tashi/clustermanager/data/datainterface.py
stroucki/tashi
6888a865c184ea80f10e70981addc73a262a81b7
[ "Apache-2.0" ]
null
null
null
src/tashi/clustermanager/data/datainterface.py
stroucki/tashi
6888a865c184ea80f10e70981addc73a262a81b7
[ "Apache-2.0" ]
6
2015-06-29T19:03:20.000Z
2021-11-10T16:04:30.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
27.146667
62
0.77112
e131d817644d5c4372e7bf0977038e61c6ad6dde
10,412
py
Python
ParamGenerator/Spearmint/spearmint/kernels/sum_kernel.py
Tabor-Research-Group/ChemOS
50117f572e95e68dc4dccb624cedb28dbfc6e419
[ "Apache-2.0" ]
37
2018-03-20T21:23:11.000Z
2022-03-26T08:19:20.000Z
ParamGenerator/Spearmint/spearmint/kernels/sum_kernel.py
Tabor-Research-Group/ChemOS
50117f572e95e68dc4dccb624cedb28dbfc6e419
[ "Apache-2.0" ]
1
2021-06-29T10:03:22.000Z
2021-06-29T10:03:22.000Z
ParamGenerator/Spearmint/spearmint/kernels/sum_kernel.py
Tabor-Research-Group/ChemOS
50117f572e95e68dc4dccb624cedb28dbfc6e419
[ "Apache-2.0" ]
10
2018-05-16T21:04:05.000Z
2021-10-15T18:14:06.000Z
# -*- coding: utf-8 -*- # Spearmint # # Academic and Non-Commercial Research Use Software License and Terms # of Use # # Spearmint is a software package to perform Bayesian optimization # according to specific algorithms (the “Software”). The Software is # designed to automatically run experiments (thus the code name ...
49.818182
123
0.77574
b300dc5d4e654e38a74bfe0777e12bed0ff12ed5
9,927
py
Python
src/util.py
hwang595/Draco
8472912cce82e6d74087a402fd417e7a837517ab
[ "MIT" ]
21
2018-09-19T06:30:57.000Z
2022-03-25T22:44:39.000Z
src/util.py
hwang595/Draco
8472912cce82e6d74087a402fd417e7a837517ab
[ "MIT" ]
3
2018-12-31T05:44:22.000Z
2021-09-09T15:59:46.000Z
src/util.py
hwang595/Draco
8472912cce82e6d74087a402fd417e7a837517ab
[ "MIT" ]
12
2018-09-19T06:30:59.000Z
2021-12-13T09:53:54.000Z
import random import numpy as np from torchvision import datasets, transforms from model_ops.lenet import LeNet, LeNetSplit from model_ops.resnet import * from model_ops.resnet_split import * from model_ops.vgg import * from model_ops.fc_nn import FC_NN, FC_NN_Split from model_ops.utils import err_simulation from co...
44.316964
126
0.558175
48113b8847cc211a9c870a8905639e972ba11c29
815
py
Python
DjangoRestFrameworkNestedJSON/django_trial_proj/manage.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
null
null
null
DjangoRestFrameworkNestedJSON/django_trial_proj/manage.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
5
2020-05-04T03:11:14.000Z
2021-06-10T20:20:38.000Z
DjangoRestFrameworkNestedJSON/django_trial_proj/manage.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
1
2019-07-31T18:28:34.000Z
2019-07-31T18:28:34.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_trial_proj.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure...
35.434783
81
0.646626
a1e3fcebb373b36ab304cd6768b3f6f20f10e9ad
17,869
py
Python
test/functional/feature_bip68_sequence.py
doriancoins/doriancoin
1ff8a0324b642c030825d08bcc298fcde04dd7ec
[ "MIT" ]
null
null
null
test/functional/feature_bip68_sequence.py
doriancoins/doriancoin
1ff8a0324b642c030825d08bcc298fcde04dd7ec
[ "MIT" ]
null
null
null
test/functional/feature_bip68_sequence.py
doriancoins/doriancoin
1ff8a0324b642c030825d08bcc298fcde04dd7ec
[ "MIT" ]
1
2017-12-04T07:18:09.000Z
2017-12-04T07:18:09.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Doriancoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP68 implementation.""" from test_framework.test_framework import DoriancoinTestFramework fro...
45.123737
140
0.633387
e640329ca77017eab4622db0d402b8557df314df
2,370
py
Python
tests/autodiffobj_test.py
ELAA207/cs207-FinalProject
6e4f265c220a2a156bab51e7717878dea252256c
[ "MIT" ]
1
2019-10-26T12:46:22.000Z
2019-10-26T12:46:22.000Z
tests/autodiffobj_test.py
ELAA207/cs207-FinalProject
6e4f265c220a2a156bab51e7717878dea252256c
[ "MIT" ]
16
2019-11-19T07:33:03.000Z
2019-12-10T14:53:05.000Z
tests/autodiffobj_test.py
ELAA207/cs207-FinalProject
6e4f265c220a2a156bab51e7717878dea252256c
[ "MIT" ]
null
null
null
import pytest import numpy as np import autodiff32 as ad def test_submulti(): x = ad.AutoDiff(3) func = 1 + x*5 - 2*x assert (func.val, func.der, func.Jacobian()) == (10, 3, 3) def test_addnegexp(): x = ad.AutoDiff(5) func = -x + 2*x**2 + 2 assert(func.val, func.der, func.Jacobian()) == (47,...
27.241379
95
0.556118
84536664748858d2f6c48c295d935bb187de2c8f
18,064
py
Python
sdk/python/pulumi_azure_nextgen/network/v20181101/virtual_network_gateway_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20181101/virtual_network_gateway_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20181101/virtual_network_gateway_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# 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...
52.35942
2,921
0.694807
17afe43065e8a948523340e33747fca58ab19882
4,150
py
Python
plt/catplot.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
null
null
null
plt/catplot.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
null
null
null
plt/catplot.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
2
2018-09-19T00:52:15.000Z
2021-05-14T23:04:47.000Z
""" plot_accuracies.py """ import sys import pandas as pd, seaborn as sns from seqpy import cout, cerr, cexit from seqpy.cmds import arg_parser def init_argparser(): parser = arg_parser("plot_accuracies.py") parser.add_argument('--variables', default='F') parser.add_argument('--method', default='') ...
28.424658
114
0.609157
d71b35b708cda66f4aa397ecaf8e130cd9e75cd4
12,512
py
Python
v1.0.0.test/toontown/golf/BuildGeometry.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/golf/BuildGeometry.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/golf/BuildGeometry.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.distributed import DistributedObject from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import ToontownGlobals from panda3d.core import * from math import * import math GEO_ID = 0 def circleX(angle, radius, centerX, centerY): x = radius * cos(angle) + centerX return x def c...
39.974441
106
0.690377
5993e58c0e0a07fac21017b565925083d76ddd62
2,673
py
Python
research/cv/MVD/third_party/pre_process_sysu.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/MVD/third_party/pre_process_sysu.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/MVD/third_party/pre_process_sysu.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
""" Preprocess SYSU Dataset """ import os import argparse import numpy as np from PIL import Image parser = argparse.ArgumentParser(description="SYSU-MM01 Preprocessing") parser.add_argument("--data-path", type=str, default="Define your own path/sysu",\ help="path to SYSU-MM01 dataset folder") args = parser.pars...
30.033708
82
0.670782
396ec7a6e14efe31d4788d62c288061fe68a7a70
2,818
py
Python
tensorflow/python/data/experimental/ops/unique.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
4
2020-09-23T01:20:01.000Z
2022-03-08T06:09:29.000Z
tensorflow/python/data/experimental/ops/unique.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
8
2019-07-08T10:09:18.000Z
2019-09-26T20:55:43.000Z
tensorflow/python/data/experimental/ops/unique.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
2
2021-01-26T08:23:41.000Z
2021-07-13T16:23:18.000Z
# Copyright 2017 The TensorFlow Authors. 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 applica...
39.138889
82
0.724273
15ed46ec3c93c103ac5c7ed25bd9b17a3c69d147
5,057
py
Python
src/third_party/wiredtiger/bench/workgen/runner/maintain_low_dirty_cache.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
72
2020-06-12T06:33:41.000Z
2021-03-22T03:15:56.000Z
src/third_party/wiredtiger/bench/workgen/runner/maintain_low_dirty_cache.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
9
2020-07-02T09:36:49.000Z
2021-03-25T23:54:00.000Z
src/third_party/wiredtiger/bench/workgen/runner/maintain_low_dirty_cache.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
14
2020-06-12T03:08:03.000Z
2021-02-03T11:43:09.000Z
#!/usr/bin/env python # # Public Domain 2014-2018 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
39.507813
232
0.730473
d29fec52985e2eb982027f4acbf871f45eba9f3d
419
py
Python
checkout/migrations/0002_auto_20160724_1533.py
cesarbcruz/ecommerce-python-django
d80462b831124d6932bd94896f90efe4a9e8c016
[ "CC0-1.0" ]
60
2016-06-07T00:34:53.000Z
2021-11-22T11:33:43.000Z
checkout/migrations/0002_auto_20160724_1533.py
cesarbcruz/ecommerce-python-django
d80462b831124d6932bd94896f90efe4a9e8c016
[ "CC0-1.0" ]
3
2019-11-25T02:20:53.000Z
2021-06-10T22:18:05.000Z
checkout/migrations/0002_auto_20160724_1533.py
cesarbcruz/ecommerce-python-django
d80462b831124d6932bd94896f90efe4a9e8c016
[ "CC0-1.0" ]
45
2016-07-15T18:07:08.000Z
2021-07-27T20:14:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-24 18:33 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('checkout', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( ...
20.95
59
0.613365
c908016f542deb630c7eb3743b662705c56b27cb
14,823
py
Python
dqn_agent/dqn_agent_4.py
gjp1203/fms_marl
3031b5bf2e7770cf0033b2afcb4b27d40f731d7b
[ "MIT" ]
null
null
null
dqn_agent/dqn_agent_4.py
gjp1203/fms_marl
3031b5bf2e7770cf0033b2afcb4b27d40f731d7b
[ "MIT" ]
null
null
null
dqn_agent/dqn_agent_4.py
gjp1203/fms_marl
3031b5bf2e7770cf0033b2afcb4b27d40f731d7b
[ "MIT" ]
null
null
null
import os, os.path import tensorflow as tf from tensorflow.python.framework import graph_util import csv import numpy as np import sqlite3 import math from jinja2.runtime import to_string #import matplotlib.pyplot as plt class DeepQNetwork(object): def __init__(self, lr, n_actions, name, fc1_dim=70, fc2...
48.126623
202
0.548944
668b154e091a0df4b42fccd266a3382c793079cb
105
py
Python
python/testData/override/circle.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/override/circle.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/override/circle.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class Spam(Eggs): def spam_methods(self): pass class Eggs(Spam): def my_methods(self): pass
13.125
25
0.666667
6756d6d2267b9116f29cd7f7b8a034e53f7081cc
3,194
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_03_01/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_03_01/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_03_01/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.671642
134
0.697245
a376f56fcfa80fc0d162e73402bc553f8b0dc187
46,547
py
Python
BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py
sscargal/ipmctl
48e4cdc8682e9efafc838bda66d4af282c29dc11
[ "BSD-3-Clause" ]
151
2018-06-01T20:14:34.000Z
2022-03-13T08:34:07.000Z
BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py
sscargal/ipmctl
48e4cdc8682e9efafc838bda66d4af282c29dc11
[ "BSD-3-Clause" ]
179
2018-06-21T18:07:54.000Z
2022-03-30T16:06:39.000Z
BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py
sscargal/ipmctl
48e4cdc8682e9efafc838bda66d4af282c29dc11
[ "BSD-3-Clause" ]
58
2018-06-07T21:59:15.000Z
2022-03-16T23:26:38.000Z
## @file GenInfFile.py # # This file contained the logical of transfer package object to INF files. # # Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials are licensed and made available # under the terms and conditions of the BSD License which...
41.046737
121
0.588631
b591e222841d262811abbd876996f5fa495054de
44
py
Python
desidlas/tests/datafile/_init_.py
cosmodesi/desi-dlas
6e0fb574f342431679898a454c222509341a9d73
[ "BSD-3-Clause" ]
null
null
null
desidlas/tests/datafile/_init_.py
cosmodesi/desi-dlas
6e0fb574f342431679898a454c222509341a9d73
[ "BSD-3-Clause" ]
3
2021-01-22T13:39:04.000Z
2021-09-22T08:19:55.000Z
desidlas/tests/datafile/_init_.py
cosmodesi/desi-dlas
6e0fb574f342431679898a454c222509341a9d73
[ "BSD-3-Clause" ]
null
null
null
#the files in this forder is uesd for tests
22
43
0.772727
387fe8b70bfb84565f64c7ea3e98b146cf7a19b0
1,127
py
Python
2021/7/puzzle7a.py
TimothyDJones/advent-of-code
06253b61e4ccfed4a07a7a9bcf1a0e515f3f09b4
[ "MIT" ]
null
null
null
2021/7/puzzle7a.py
TimothyDJones/advent-of-code
06253b61e4ccfed4a07a7a9bcf1a0e515f3f09b4
[ "MIT" ]
null
null
null
2021/7/puzzle7a.py
TimothyDJones/advent-of-code
06253b61e4ccfed4a07a7a9bcf1a0e515f3f09b4
[ "MIT" ]
null
null
null
# puzzle7a.py from utils import * from pprint import pprint, pformat # Strategy: # Find minimum and maximum values in list as boundaries for iteration. # Iterate through list and build list/array of deltas (absolute value) for each # position from that test position to determine the fuel spent and then sum # up those ...
35.21875
79
0.677906
ce498f6d97dc2ed3f81ac1382f66fd5fead9399d
5,168
py
Python
code/02.getall_cors.rest.py
QianZiTang/LiLab_coexprssion_and_TAD
184642598c4e7b3e758c561a7cbf0dc1c7b5d725
[ "Apache-2.0" ]
null
null
null
code/02.getall_cors.rest.py
QianZiTang/LiLab_coexprssion_and_TAD
184642598c4e7b3e758c561a7cbf0dc1c7b5d725
[ "Apache-2.0" ]
null
null
null
code/02.getall_cors.rest.py
QianZiTang/LiLab_coexprssion_and_TAD
184642598c4e7b3e758c561a7cbf0dc1c7b5d725
[ "Apache-2.0" ]
null
null
null
import sys import re from optparse import OptionParser import subprocess import os import time #modify /Lustre02/data/hic/highres_human/allsamples/'''+mytissue+'''_forsort/allcisandtrans.hic for your specific case #modify alltissues=['A1','A2','A3','A4'] for your specific case class generate: def __init__ (self,pa...
36.13986
232
0.633707
f9c1fb3a0b7224f9329b67f58a9b87ca2c7a105e
810
py
Python
Programming Languages/python/4-strings.py
Iftee360/syntax-library
b5e8256382d04ea021aa2ea7cb4c6c36f162b8dd
[ "MIT" ]
1
2020-08-12T06:31:50.000Z
2020-08-12T06:31:50.000Z
Programming Languages/python/4-strings.py
Iftee360/syntax-library
b5e8256382d04ea021aa2ea7cb4c6c36f162b8dd
[ "MIT" ]
null
null
null
Programming Languages/python/4-strings.py
Iftee360/syntax-library
b5e8256382d04ea021aa2ea7cb4c6c36f162b8dd
[ "MIT" ]
null
null
null
### S T R I N G S greeting = "Hello" #indexes: 01234 print( len(greeting) ) # returns LENGTH of the String print( greeting[0] ) # returns 'H' print( greeting[1] ) # returns 'e' # Counting backwards with (-) sign print( greeting[-1] ) # returns 'o' print( greeting[-2] ) # returns 'l' #String F...
23.823529
79
0.661728
3cb901af7d35cb2c3e1b92fe51c8e21e0c23ad59
33,261
py
Python
tests/utils_tests/test_autoreload.py
cwboyd/django
6993e1bf6dff04b6e3ab284b154397b341463b50
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
4
2020-07-13T04:49:13.000Z
2021-12-07T11:42:32.000Z
tests/utils_tests/test_autoreload.py
cwboyd/django
6993e1bf6dff04b6e3ab284b154397b341463b50
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8
2017-04-19T16:20:47.000Z
2022-03-28T14:40:11.000Z
tests/utils_tests/test_autoreload.py
cwboyd/django
6993e1bf6dff04b6e3ab284b154397b341463b50
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
3
2020-07-13T04:49:16.000Z
2021-12-22T21:15:14.000Z
import contextlib import os import py_compile import shutil import sys import tempfile import threading import time import types import weakref import zipfile from importlib import import_module from pathlib import Path from subprocess import CompletedProcess from unittest import mock, skip, skipIf import pytz import...
42.102532
118
0.676047
2ddba3d92328f3d0d8a83cc4bf66856a8335eca4
7,437
py
Python
examples/pytorch/hgt/model.py
ghk829/dgl
a6fa3cb83db5a6bba7db6c07d3a5e267e1475ac6
[ "Apache-2.0" ]
1
2020-10-12T08:14:04.000Z
2020-10-12T08:14:04.000Z
examples/pytorch/hgt/model.py
ghk829/dgl
a6fa3cb83db5a6bba7db6c07d3a5e267e1475ac6
[ "Apache-2.0" ]
6
2018-12-13T15:22:08.000Z
2021-04-22T02:40:27.000Z
examples/pytorch/hgt/model.py
ghk829/dgl
a6fa3cb83db5a6bba7db6c07d3a5e267e1475ac6
[ "Apache-2.0" ]
1
2022-02-08T11:27:24.000Z
2022-02-08T11:27:24.000Z
import dgl import math import torch import torch.nn as nn import torch.nn.functional as F import dgl.function as fn from dgl.nn.functional import edge_softmax class HGTLayer(nn.Module): def __init__(self, in_dim, out_dim, node_dict, edge_dict, ...
41.780899
105
0.572543
941ce01c173c0b1a6f4e37b8ef50e5a872e863c4
2,317
py
Python
Backend/flask_server.py
minurajeeve/Hand-Sign-Language-Interpreter
4bc6cdbf354b629493e9bea4978f24bdd506b736
[ "MIT" ]
4
2020-03-04T01:35:59.000Z
2020-06-27T11:03:55.000Z
Backend/flask_server.py
aayush-ag21/Hand-Sign-Language-Interpreter
4bc6cdbf354b629493e9bea4978f24bdd506b736
[ "MIT" ]
null
null
null
Backend/flask_server.py
aayush-ag21/Hand-Sign-Language-Interpreter
4bc6cdbf354b629493e9bea4978f24bdd506b736
[ "MIT" ]
null
null
null
import flask import flask_inputs import werkzeug import keras.models from keras.preprocessing.image import img_to_array import numpy as np import cv2 app = flask.Flask(__name__) @app.route('/', methods = ['GET', 'POST']) def hello(): return('hello') @app.route('/classify/<int:id>', methods = ['GET','POST']) def h...
36.203125
235
0.556754
b3994579502e9e492f217c31ec9661aae93968c4
8,787
py
Python
MyBanking/do_money_transfer.py
ChandanAdiga/WebApp_MyBanking
06c94b65ed1d99be762fa5903d566a9a863877e7
[ "MIT" ]
2
2018-02-23T13:18:59.000Z
2018-05-28T04:57:05.000Z
MyBanking/do_money_transfer.py
ChandanAdiga/WebApp_MyBanking
06c94b65ed1d99be762fa5903d566a9a863877e7
[ "MIT" ]
null
null
null
MyBanking/do_money_transfer.py
ChandanAdiga/WebApp_MyBanking
06c94b65ed1d99be762fa5903d566a9a863877e7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import cgi, cgitb import _mysql import sys import helperHTML import helperSession import database.db_config as db_config import mlog import datetime from helperRegEx import Validator TAG = "DO_MONEY_TRANSFER" mlog.debug(TAG, "Trying to do money transfer..") cgitb.enable() print(helperHTML.get_html_...
45.061538
180
0.64823
56e4e9ba2abcb542814e483629c83a6fe778da39
12,985
py
Python
packager/third_party/libxml/src/genUnicode.py
koln67/shaka-packager
5b9fd409a5de502e8af2e46ee12840bd2226874d
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,964
2016-09-27T03:46:29.000Z
2022-03-31T16:25:27.000Z
third_party/libxml/src/genUnicode.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
894
2016-05-17T00:39:30.000Z
2022-03-02T18:46:21.000Z
third_party/libxml/src/genUnicode.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
1,006
2016-09-27T05:17:27.000Z
2022-03-30T02:46:51.000Z
#!/usr/bin/python -u # # Original script modified in November 2003 to take advantage of # the character-validation range routines, and updated to the # current Unicode information (Version 4.0.1) # # NOTE: there is an 'alias' facility for blocks which are not present in # the current release, but are needed for ABI com...
27.108559
89
0.605237
c912ebaf73e5ba32d647a446308d2cef89828e38
3,115
py
Python
scripts/count-median-khmer13.py
jiarong/seqdep
98e4a844c4ea33c81b28412c4932d16f2056fef6
[ "BSD-2-Clause" ]
1
2020-02-09T14:29:25.000Z
2020-02-09T14:29:25.000Z
scripts/count-median.py
ianbruyere/khmer
1608e6d6871b8534a3de2cb5bfe3db5fae8fcded
[ "BSD-3-Clause" ]
null
null
null
scripts/count-median.py
ianbruyere/khmer
1608e6d6871b8534a3de2cb5bfe3db5fae8fcded
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2014. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # # pylint: disable=missing-docstring,invalid-name """ Count...
34.230769
78
0.677689
9506c18ca1b1b2424a313ba80c1c0ff43236bb1d
22,716
py
Python
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_backup_info/lsp_backups/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_backup_info/lsp_backups/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_backup_info/lsp_backups/__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...
69.46789
565
0.742736
06a79be2d5daab199a9c6128a5c1d13117572699
724
py
Python
src/exports/migrations/0004_move_exports_dir.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
2
2021-09-10T19:40:30.000Z
2022-01-31T07:15:51.000Z
src/exports/migrations/0004_move_exports_dir.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
null
null
null
src/exports/migrations/0004_move_exports_dir.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
1
2021-09-10T19:40:42.000Z
2021-09-10T19:40:42.000Z
import os from django.db import migrations from django.conf import settings def move_exports_dir(*args): protected_root = settings.PROTECTED_ROOT if not os.path.exists(protected_root): os.makedirs(protected_root) private_root = settings.PRIVATE_ROOT if not os.path.exists(protected_root): ...
22.625
57
0.700276
979ff08fd83243dcc0d8aa64be4b70524844122d
849
py
Python
setup.py
slxswaa1993/commit_gen
5f53f74f37b4088a0018842ac055084be1eca673
[ "BSD-3-Clause" ]
22
2017-09-29T09:43:59.000Z
2021-03-31T03:57:52.000Z
setup.py
slxswaa1993/commit_gen
5f53f74f37b4088a0018842ac055084be1eca673
[ "BSD-3-Clause" ]
3
2018-04-15T12:57:18.000Z
2020-02-25T12:43:21.000Z
setup.py
slxswaa1993/commit_gen
5f53f74f37b4088a0018842ac055084be1eca673
[ "BSD-3-Clause" ]
13
2017-07-18T03:45:52.000Z
2019-10-09T05:16:02.000Z
#!/usr/bin/env python import os import setuptools setuptools.setup( name='nematus', version='0.1dev', description='Neural machine translation tools on top of Theano', long_description=open(os.path.join(os.path.dirname( os.path.abspath(__file__)), 'README.md')).read(), license='BSD 3-clause...
33.96
77
0.59364
3f6fed1c696babe42a6675716ac5bec063063267
6,594
py
Python
external/unbound/testdata/pymod.tdir/pymod.py
simplixcurrency/simplix
dd313f6fe5a42cf508b19aea3f49cb8ba6b5dbf1
[ "BSD-3-Clause" ]
170
2017-04-27T10:41:55.000Z
2021-11-15T12:28:03.000Z
external/unbound/testdata/pymod.tdir/pymod.py
simplixcurrency/simplix
dd313f6fe5a42cf508b19aea3f49cb8ba6b5dbf1
[ "BSD-3-Clause" ]
202
2017-05-11T19:02:42.000Z
2021-07-20T13:49:28.000Z
external/unbound/testdata/pymod.tdir/pymod.py
simplixcurrency/simplix
dd313f6fe5a42cf508b19aea3f49cb8ba6b5dbf1
[ "BSD-3-Clause" ]
244
2017-04-27T10:41:59.000Z
2022-02-10T05:36:46.000Z
# -*- coding: utf-8 -*- ''' ubmodule-msg.py: simple response packet logger Authors: Zdenek Vasicek (vasicek AT fit.vutbr.cz) Marek Vavrusa (xvavru00 AT stud.fit.vutbr.cz) Copyright (c) 2008. All rights reserved. This software is open source. Redistribution and use in source and binary forms, with o...
41.2125
198
0.653473
3d1e33aa2faae815b41abeb0d2221b79f2aeeef4
3,141
py
Python
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/source_control_create_or_update_parameters.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/source_control_create_or_update_parameters.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/source_control_create_or_update_parameters.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.239437
110
0.645018
99b4db7de4db085d308f2ccbab45280961c3cf63
142,324
py
Python
hail/python/hail/methods/statgen.py
chrisvittal/hail
b9537d16564dc148a49c8202e68dce7e27460419
[ "MIT" ]
null
null
null
hail/python/hail/methods/statgen.py
chrisvittal/hail
b9537d16564dc148a49c8202e68dce7e27460419
[ "MIT" ]
1
2022-03-28T19:35:55.000Z
2022-03-28T19:35:55.000Z
hail/python/hail/methods/statgen.py
chrisvittal/hail
b9537d16564dc148a49c8202e68dce7e27460419
[ "MIT" ]
null
null
null
import itertools import math import numpy as np from typing import * import hail as hl import hail.expr.aggregators as agg from hail.expr.expressions import * from hail.expr.types import * from hail.ir import * from hail.genetics.reference_genome import reference_genome_type from hail.linalg import BlockMatrix from ha...
42.421461
200
0.627519
75c1d86f78022b78715458ecf4ac3f328bf59a37
7,712
py
Python
snippext/conlleval.py
achen353/dacon
07859492297457d6913166dcf4ec4627af2584ee
[ "BSD-3-Clause" ]
null
null
null
snippext/conlleval.py
achen353/dacon
07859492297457d6913166dcf4ec4627af2584ee
[ "BSD-3-Clause" ]
null
null
null
snippext/conlleval.py
achen353/dacon
07859492297457d6913166dcf4ec4627af2584ee
[ "BSD-3-Clause" ]
null
null
null
""" This script applies to IOB2 or IOBES tagging scheme. If you are using a different scheme, please convert to IOB2 or IOBES. IOB2: - B = begin, - I = inside but not the first, - O = outside e.g. John lives in New York City . B-PER O O B-LOC I-LOC I-LOC O IOBES: - B = begin, - E = end, - S = singleton, ...
27.942029
88
0.619424
e635986eed14efb040197263f3e7b378ddf68d84
1,362
py
Python
defoe/extract_contents.py
akrause2014/defoe-1
ca4247cdd8007791ae2692dabc6fe58dfcacc906
[ "MIT" ]
null
null
null
defoe/extract_contents.py
akrause2014/defoe-1
ca4247cdd8007791ae2692dabc6fe58dfcacc906
[ "MIT" ]
null
null
null
defoe/extract_contents.py
akrause2014/defoe-1
ca4247cdd8007791ae2692dabc6fe58dfcacc906
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import importlib import json root_module = "defoe" setup_module = "setup" models = ["books", "papers", "fmp", "nzpp", "generic_xml", "nls", "nlsArticles", "phdtheses", "hdfs", "psql", "es"] def extract(model_name, file_name): setup = importlib.import_module(f'{root_module}.{mod...
34.05
120
0.627753
7fa49bdd185ddc692c9b65eb62b10cf46f61d1a3
707
py
Python
setup.py
wrznr/text_merger
7e1157a0cdb388da9307fc53a94f58d6b575b79e
[ "MIT" ]
1
2019-10-31T12:09:40.000Z
2019-10-31T12:09:40.000Z
setup.py
wrznr/text_merger
7e1157a0cdb388da9307fc53a94f58d6b575b79e
[ "MIT" ]
2
2019-11-04T11:25:44.000Z
2019-11-06T18:27:10.000Z
setup.py
wrznr/text_merger
7e1157a0cdb388da9307fc53a94f58d6b575b79e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import codecs from setuptools import setup, find_packages setup( name='text_merger', version='0.0.1', description='Text merger', long_description=codecs.open('README.md', encoding='utf-8').read(), author='Kay-Michael Würzner', author_email='wuerzner@gmail.com', url=...
27.192308
71
0.618105
5a041c1331b98d4fa43c329fb44cf1178057e84f
4,541
py
Python
response_operations_social_ui/common/social_outcomes.py
ONSdigital/response-operations-social-ui
9b34f8e3261e30d732a32438e67b288e0042ed7c
[ "MIT" ]
null
null
null
response_operations_social_ui/common/social_outcomes.py
ONSdigital/response-operations-social-ui
9b34f8e3261e30d732a32438e67b288e0042ed7c
[ "MIT" ]
27
2018-09-26T08:46:07.000Z
2021-04-21T07:09:53.000Z
response_operations_social_ui/common/social_outcomes.py
ONSdigital/response-operations-social-ui
9b34f8e3261e30d732a32438e67b288e0042ed7c
[ "MIT" ]
1
2021-04-11T08:02:48.000Z
2021-04-11T08:02:48.000Z
from collections import namedtuple SocialOutcome = namedtuple('SocialOutcome', 'reference_string formatted_string status') _SOCIAL_OUTCOMES = [ SocialOutcome('PRIVACY_DATA_CONFIDENTIALITY_CONCERNS', '411 Privacy Concerns/Data security/confidentiality concerns', 'REFUSAL'), # NOQA SocialOutcome('LEGITIMACY_...
63.957746
225
0.76503
835404763d3e89c11cc28e09da2b57c5105c514a
933
py
Python
honda/honda/doctype/purchase_order/purchase_order.py
umapulkurte/honda
1c2ac3fb177e04bad7df8cdcbffcbd376591dc76
[ "MIT" ]
null
null
null
honda/honda/doctype/purchase_order/purchase_order.py
umapulkurte/honda
1c2ac3fb177e04bad7df8cdcbffcbd376591dc76
[ "MIT" ]
null
null
null
honda/honda/doctype/purchase_order/purchase_order.py
umapulkurte/honda
1c2ac3fb177e04bad7df8cdcbffcbd376591dc76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Wayzon and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.model.mapper import get_mapped_doc class PurchaseOrder(Document): pass @frappe.whiteli...
25.216216
80
0.717042
ac43cec30947c7f6fa36ed3d8248845f01abcbca
1,723
py
Python
setup.py
zzpwahaha/ARC-Alkali-Rydberg-Calculator
8f15f5f0c5247c5d2254efdfd01894fcd3e5d586
[ "BSD-3-Clause" ]
null
null
null
setup.py
zzpwahaha/ARC-Alkali-Rydberg-Calculator
8f15f5f0c5247c5d2254efdfd01894fcd3e5d586
[ "BSD-3-Clause" ]
null
null
null
setup.py
zzpwahaha/ARC-Alkali-Rydberg-Calculator
8f15f5f0c5247c5d2254efdfd01894fcd3e5d586
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- mode: Python; coding: utf-8 -*- try: from setuptools import setup, Extension except ImportError: from distutils.core import setup from distutils.extension import Extension from numpy.distutils.misc_util import get_numpy_include_dirs arc_ext = Extension( 'arc.arc_c...
32.509434
159
0.650029
f043231c1196d8538fa47ef5fe6c9517d3366807
2,912
py
Python
QUANTAXIS/QASU/save_tdx_file.py
Sinovel/QUANTAXIS
97f1ea2140f58c92ff5c84b851886d9eda1f9ac3
[ "MIT" ]
4
2019-08-21T18:05:06.000Z
2019-12-28T07:45:23.000Z
QUANTAXIS/QASU/save_tdx_file.py
Sinovel/QUANTAXIS
97f1ea2140f58c92ff5c84b851886d9eda1f9ac3
[ "MIT" ]
2
2019-12-25T09:24:47.000Z
2020-01-13T07:33:50.000Z
QUANTAXIS/QASU/save_tdx_file.py
Sinovel/QUANTAXIS
97f1ea2140f58c92ff5c84b851886d9eda1f9ac3
[ "MIT" ]
2
2020-08-04T21:52:07.000Z
2020-12-14T00:29:00.000Z
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2019 yutiansut/QUANTAXIS # # 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 th...
38.315789
80
0.625343
fa584c0c60404c34d02042edad26c26a35a297a7
7,729
py
Python
qa/rpc-tests/python-beancashrpc/beancashrpc/authproxy.py
George55555/BeanCash
99654ba710dfb5676f9373f4f1f75bceedc6ee08
[ "MIT" ]
12
2017-12-20T23:54:37.000Z
2021-06-01T04:54:26.000Z
qa/rpc-tests/python-beancashrpc/beancashrpc/authproxy.py
George55555/BeanCash
99654ba710dfb5676f9373f4f1f75bceedc6ee08
[ "MIT" ]
8
2018-01-05T10:32:14.000Z
2021-12-20T23:07:48.000Z
qa/rpc-tests/python-beancashrpc/beancashrpc/authproxy.py
George55555/BeanCash
99654ba710dfb5676f9373f4f1f75bceedc6ee08
[ "MIT" ]
18
2017-12-20T23:54:43.000Z
2021-10-03T05:02:51.000Z
""" Copyright 2011 Jeff Garzik Copyright 2019 Bean Core www.beancash.org AuthServiceProxy has the following improvements over python-jsonrpc's ServiceProxy class: - HTTP connections persist for the life of the AuthServiceProxy object (if server supports HTTP/1.1) - sends protocol 'version', per JSON-...
38.073892
141
0.60383
a93aaf7fcf704ad1b6ec16bab6513520d6d65fb6
2,108
py
Python
beatmachine/loader.py
JousterL/beat-machine
3885a531006c297d579bf7530cc9f9e344587f70
[ "MIT" ]
25
2019-12-01T14:55:06.000Z
2022-01-04T13:11:09.000Z
beatmachine/loader.py
JousterL/beat-machine
3885a531006c297d579bf7530cc9f9e344587f70
[ "MIT" ]
33
2019-11-23T18:40:05.000Z
2022-01-15T17:39:26.000Z
beatmachine/loader.py
dhsavell/beat-machine
3885a531006c297d579bf7530cc9f9e344587f70
[ "MIT" ]
3
2020-04-27T21:11:12.000Z
2021-08-13T03:19:56.000Z
""" The ``loader`` module contains functions for loading beats from song files. """ from typing import BinaryIO, Union, Generator, Callable, Iterable, Tuple import numpy as np from madmom.audio import Signal from madmom.features import DBNBeatTrackingProcessor, RNNBeatProcessor BeatLoader = Callable[[Union[str, Binar...
34.557377
117
0.685958
8866b4eaa32b622fb0d9a691e1e5abda6d2f94eb
1,662
py
Python
plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
6
2019-05-03T02:12:04.000Z
2020-03-01T06:33:21.000Z
plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
null
null
null
plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
5
2019-05-18T16:50:11.000Z
2021-07-06T21:14:36.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='size', parent_name='layout.scene.annotation.hoverlabel.font', **kwargs ): super(SizeValidator, self).__init__( plotly_n...
25.96875
68
0.602888
ce4ac73cf06a5405c86096982568f11a022a3795
11,564
py
Python
train.py
bingao110/psp-xp
0648f65eeeba911204cd32c140f6b11955d36e4e
[ "MIT" ]
null
null
null
train.py
bingao110/psp-xp
0648f65eeeba911204cd32c140f6b11955d36e4e
[ "MIT" ]
null
null
null
train.py
bingao110/psp-xp
0648f65eeeba911204cd32c140f6b11955d36e4e
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.backends.cudnn as cudnn import torch.optim as optim from torch.utils.data import DataLoader from tqdm import tqdm import os from nets.pspnet import PSPNet from nets.pspnet_training import CE_Loss, Dice_loss, LossHistory, weights_init from utils.dataloader import PSP...
41.3
154
0.505448
9f1b79d420d0216934b914dd9ccac0e90434388f
6,276
py
Python
tests/astronomer/flask_appbuilder/conftest.py
andriisoldatenko/astronomer-fab-securitymanager
bd0da28b7921ca0983a5adaccdc42ff3a2d38f14
[ "Apache-2.0" ]
10
2019-03-04T14:46:57.000Z
2021-12-09T22:03:21.000Z
tests/astronomer/flask_appbuilder/conftest.py
andriisoldatenko/astronomer-fab-securitymanager
bd0da28b7921ca0983a5adaccdc42ff3a2d38f14
[ "Apache-2.0" ]
12
2019-03-01T13:37:07.000Z
2022-03-10T18:45:56.000Z
tests/astronomer/flask_appbuilder/conftest.py
andriisoldatenko/astronomer-fab-securitymanager
bd0da28b7921ca0983a5adaccdc42ff3a2d38f14
[ "Apache-2.0" ]
3
2021-04-12T09:58:47.000Z
2021-12-01T21:19:52.000Z
import os import time import uuid import flask_appbuilder import flask_appbuilder.security.sqla.manager from jwcrypto import jwk, jwt import pytest from sqlalchemy import event from astronomer.flask_appbuilder import current_user_backend from astronomer.flask_appbuilder.security import AstroSecurityManagerMixin AUDI...
29.055556
110
0.695666
178811dac098b0784c8af35a93fd483960a3844c
6,446
py
Python
model-optimizer/unit_tests/extensions/front/ATenToEmbeddingBag_test.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
model-optimizer/unit_tests/extensions/front/ATenToEmbeddingBag_test.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
model-optimizer/unit_tests/extensions/front/ATenToEmbeddingBag_test.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from extensions.front.ATenToEmbeddingBag import AtenToEmbeddingBag from mo.front.common.partial_infer.utils import int64_array from mo.utils.ir_engine.compare_graphs import compare_graphs from unit_te...
43.261745
118
0.491312
fe7b83b05038f4d7261a8d544f91f0322e3d4690
1,674
py
Python
Scripts/gui_se.py
rockbyo5/Skyrim-NX-Toolkit
0097c1da6f2b76751884355ee688d11dffd1172c
[ "MIT" ]
84
2018-08-07T12:37:35.000Z
2022-01-07T09:16:49.000Z
Scripts/gui_se.py
Lord-Akkrand/SkyrimNX
22d5054af694337e9e7665dde86cb5af5bb78192
[ "MIT" ]
32
2018-08-07T00:25:02.000Z
2021-10-06T03:25:56.000Z
Scripts/gui_se.py
Lord-Akkrand/SkyrimNX
22d5054af694337e9e7665dde86cb5af5bb78192
[ "MIT" ]
11
2018-09-12T00:05:08.000Z
2021-01-28T18:51:40.000Z
import util import os import gui_log import logging import toolkit_config from tkinter import filedialog, messagebox, ttk from tkinter import * class SolutionExplorer: def __init__(self, root, path): self.root = root self.pane = PanedWindow(root, orient=VERTICAL, relief=RAISED) self.treeView = ttk.Treeview(sel...
29.368421
83
0.703106
34bca53e92c11773350fd6167a2c10c72276ba0c
9,628
py
Python
parlai/scripts/eval_model.py
ParikhKadam/ParlAI
9daae69320c07104493486e022c0e46a7871b253
[ "MIT" ]
null
null
null
parlai/scripts/eval_model.py
ParikhKadam/ParlAI
9daae69320c07104493486e022c0e46a7871b253
[ "MIT" ]
null
null
null
parlai/scripts/eval_model.py
ParikhKadam/ParlAI
9daae69320c07104493486e022c0e46a7871b253
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Basic example which iterates through the tasks specified and evaluates the given model on them. ## Examples ```she...
31.464052
257
0.644786
b1a94bb3b47c6ff2662463aa45ff980470026b3c
9,573
py
Python
feeder/dataset.py
NingWang2049/STIGPN
04d2c27e269e6cbcc0b00fc00ad559dcfd8369c6
[ "MIT" ]
5
2022-01-01T06:19:12.000Z
2022-03-24T15:00:55.000Z
feeder/dataset.py
NingWang2049/STIGPN
04d2c27e269e6cbcc0b00fc00ad559dcfd8369c6
[ "MIT" ]
6
2022-01-01T06:46:32.000Z
2022-03-11T09:57:53.000Z
feeder/dataset.py
NingWang2049/STIGPN
04d2c27e269e6cbcc0b00fc00ad559dcfd8369c6
[ "MIT" ]
null
null
null
import torch import numpy as np import joblib from PIL import Image import feeder.gtransforms as gtransforms class Dataset(torch.utils.data.Dataset): def __init__(self,args,is_val=False,isSegment=False,isAnticipation=True): self.is_val = is_val self.num_boxes = args.nr_boxes self.coord_nr_f...
47.865
138
0.595738
1d88e21d795be2dee886ef0e29b64f315132084c
9,901
py
Python
td3.py
takuseno/nnabla-drl-collections
18bc55313818767958f07f96c49306cd8f889e33
[ "MIT" ]
3
2019-07-02T10:28:04.000Z
2020-08-03T12:49:10.000Z
td3.py
takuseno/nnabla-drl-collections
18bc55313818767958f07f96c49306cd8f889e33
[ "MIT" ]
null
null
null
td3.py
takuseno/nnabla-drl-collections
18bc55313818767958f07f96c49306cd8f889e33
[ "MIT" ]
null
null
null
import numpy as np import nnabla as nn import nnabla.functions as F import nnabla.parametric_functions as PF import nnabla.solvers as S import argparse import gym from nnabla.ext_utils import get_extension_context from common.buffer import ReplayBuffer from common.log import prepare_monitor from common.experiment impo...
37.362264
78
0.625896