hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d5f79839ee8447226cf398d9edd00a635f9c473c
499
py
Python
simone/person/management.py
zuhalcakir/simone
88e04e6a228570d7d2a4c8bbf683e4903eeb592b
[ "BSD-3-Clause" ]
16
2015-03-27T12:39:23.000Z
2020-05-09T13:10:24.000Z
simone/person/management.py
zuhalcakir/simone
88e04e6a228570d7d2a4c8bbf683e4903eeb592b
[ "BSD-3-Clause" ]
2
2016-09-03T18:22:01.000Z
2018-01-04T12:20:01.000Z
simone/person/management.py
zuhalcakir/simone
88e04e6a228570d7d2a4c8bbf683e4903eeb592b
[ "BSD-3-Clause" ]
8
2015-08-26T18:17:54.000Z
2017-05-17T13:28:32.000Z
#from django.dispatch import dispatcher #def UserProfilePostInsert(sender, instance, signal, *args, **kwargs): #""" #Inserts a blank imap server entry (if necessary) and associates it with the user #""" #user = instance #i = user.get_profile().imap_servers.create() #user.get_profile().about = '...
33.266667
85
0.707415
0
0
0
0
0
0
0
0
453
0.907816
d5f7c879e6735f223e0344e0abf1f6975431be03
1,009
py
Python
watcher/fly.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
1
2021-12-09T22:09:24.000Z
2021-12-09T22:09:24.000Z
watcher/fly.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
null
null
null
watcher/fly.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
1
2021-11-18T08:54:20.000Z
2021-11-18T08:54:20.000Z
from utils.drawer import Drawer import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("name", help="the name of the datafile") parser.add_argument("--size", help="width,height") args = parser.parse_args() if args.size is None: width, height = 128...
36.035714
120
0.663033
0
0
0
0
0
0
0
0
101
0.100099
d5f85a460ddcb48e089b11f2309816efd46bb61e
3,263
py
Python
test/unit/test_structures.py
ourobouros/aws-encryption-sdk-python
1d0e40de7fef1b1131127a6f8626ef6a60739289
[ "Apache-2.0" ]
null
null
null
test/unit/test_structures.py
ourobouros/aws-encryption-sdk-python
1d0e40de7fef1b1131127a6f8626ef6a60739289
[ "Apache-2.0" ]
1
2019-05-30T22:14:47.000Z
2019-05-30T22:14:47.000Z
test/unit/test_structures.py
ourobouros/aws-encryption-sdk-python
1d0e40de7fef1b1131127a6f8626ef6a60739289
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
37.505747
120
0.70426
0
0
0
0
937
0.287159
0
0
1,129
0.346001
d5f884d302908ab9fba8e534f212148aba1c42a3
1,745
py
Python
codes/utils/mygraph.py
CristianLazoQuispe/Datathon-Interbank-2020
54f5d11fe83eb5a8ea8284be13d96e9e12978354
[ "MIT" ]
null
null
null
codes/utils/mygraph.py
CristianLazoQuispe/Datathon-Interbank-2020
54f5d11fe83eb5a8ea8284be13d96e9e12978354
[ "MIT" ]
null
null
null
codes/utils/mygraph.py
CristianLazoQuispe/Datathon-Interbank-2020
54f5d11fe83eb5a8ea8284be13d96e9e12978354
[ "MIT" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import numpy as np path_results = '../results/images/' # this function receives a dataset with binary target and it will graph a hist of values def graph_target(data,name="target",figsize=(6,4),title_name=None,color_text="white",save=False,name...
51.323529
140
0.671633
0
0
0
0
0
0
0
0
637
0.365043
d5f8c3fa603dfdb79ab13ebb13d4e8e23422a12c
1,134
py
Python
src/pretix/base/validators.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/validators.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/validators.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
1
2017-08-09T17:11:28.000Z
2017-08-09T17:11:28.000Z
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible from django.utils.translation import ugettext_lazy as _ class BlacklistValidator: blacklist = [] def __call__(self, value): # Validation logic if value in self.blacklist: raise...
20.618182
64
0.552028
931
0.820988
0
0
638
0.56261
0
0
290
0.255732
d5f8e7bbb353d3c7f7fae4eb9baaff7822b54512
32,192
py
Python
fortnitepy/ext/commands/bot.py
gfdb/fortnitepy
1cedbddee1f81c96fc60b586cd2c16398bc2d45f
[ "MIT" ]
127
2019-07-15T15:55:30.000Z
2022-03-22T07:39:29.000Z
fortnitepy/ext/commands/bot.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
65
2019-07-15T22:48:35.000Z
2022-01-30T05:18:36.000Z
fortnitepy/ext/commands/bot.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
83
2019-07-18T12:37:58.000Z
2022-03-19T20:56:47.000Z
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
35.02938
91
0.584493
30,155
0.936723
0
0
1,220
0.037898
9,292
0.288643
16,488
0.512177
d5fa6f305d9e54a79de33a61c7eebe1b7c16b303
657
py
Python
LeetCodeSolutions/python/64_Minimum_Path_Sum.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
1
2017-03-27T13:38:37.000Z
2017-03-27T13:38:37.000Z
LeetCodeSolutions/python/64_Minimum_Path_Sum.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
LeetCodeSolutions/python/64_Minimum_Path_Sum.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
class Solution(object): def minPathSum(self, grid): """ :type grid: List[List[int]] :rtype: int """ m, n = len(grid), len(grid[0]) dp = [[0] * n for _ in range(m)] for i in range(m): for j in range(n): if i == 0 and j == 0: ...
31.285714
75
0.340944
656
0.998478
0
0
0
0
0
0
71
0.108067
d5fad574122cf8647545ad83e7dc43147679cc22
1,129
py
Python
paths_win.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
15
2015-03-05T17:03:08.000Z
2022-01-28T07:49:38.000Z
paths_win.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
null
null
null
paths_win.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
9
2015-03-06T09:56:30.000Z
2017-11-07T00:24:17.000Z
import _winreg import os def get_shared_cache_folder(): """ Look in the registry for the configured cache folder. If there is no entry, then we create one. :return: """ _winreg.aReg = _winreg.ConnectRegistry(None, _winreg.HKEY_CURRENT_USER) try: key = _winreg.OpenKey(_winreg.aReg, ...
30.513514
84
0.70062
0
0
0
0
0
0
0
0
272
0.240921
d5fb061a3a4378d9720ff3a451d5983678f6ed08
2,712
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/ebu.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/ebu.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/ebu.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "ebu", "date_order": "DMY", "january": [ "mweri wa mbere", "mbe" ], "february": [ "mweri wa kaĩri", "kai" ], "march": [ "mweri wa kathatũ", "kat" ], "april": [ "mweri wa kana", "k...
15.859649
34
0.289823
0
0
0
0
0
0
0
0
1,145
0.419107
d5fc2fcc2b0439d566be57074eaeae0f3e82e072
129
py
Python
deepa2/preptrain/__init__.py
debatelab/deepa2
1a9e8c357d7e3924808c703ec9f4a6611a4b5f93
[ "Apache-2.0" ]
null
null
null
deepa2/preptrain/__init__.py
debatelab/deepa2
1a9e8c357d7e3924808c703ec9f4a6611a4b5f93
[ "Apache-2.0" ]
null
null
null
deepa2/preptrain/__init__.py
debatelab/deepa2
1a9e8c357d7e3924808c703ec9f4a6611a4b5f93
[ "Apache-2.0" ]
null
null
null
"""Preprocessing DeepA2 datasets for LM training""" # flake8: noqa from deepa2.preptrain.t2tpreprocessor import T2TPreprocessor
25.8
60
0.813953
0
0
0
0
0
0
0
0
65
0.503876
d5fcff660972d9337742f70ae81e7f0f26eaadac
310
py
Python
setup.py
martinfarrow/awspk
c3b5f8ede44ca96473b95f52ddb2291a45828565
[ "MIT" ]
null
null
null
setup.py
martinfarrow/awspk
c3b5f8ede44ca96473b95f52ddb2291a45828565
[ "MIT" ]
null
null
null
setup.py
martinfarrow/awspk
c3b5f8ede44ca96473b95f52ddb2291a45828565
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages setup(name='awspk', version='0.1', description='A aws cli pen knife with loads of interested stuff', author='Martin Farrow', author_email='[email protected]', py_modules=['awspk'], license='LICENSE', )
23.846154
71
0.651613
0
0
0
0
0
0
0
0
135
0.435484
d5fd3faa9866127caab32ba61fdd34ab4ec39ea3
36,968
py
Python
pyclicker/lib/python3.7/site-packages/Xlib/display.py
JayRovacsek/pyautoclick
e136a58c129332933eb8455dd7c8e16222d54fb2
[ "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
Xlib/display.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
Xlib/display.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# Xlib.display -- high level display object # # Copyright (C) 2000 Peter Liljenberg <[email protected]> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 # of the ...
38.872766
123
0.599681
35,111
0.949767
0
0
0
0
0
0
18,369
0.496889
d5fd49cbaa7ded4b224914739446f1a0434a93af
657
py
Python
Others/qupc/qupc2014/c/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/qupc/qupc2014/c/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/qupc/qupc2014/c/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): from string import ascii_uppercase n, m, q_large = map(int, input().split()) s = [list(input()) for _ in range(n)] q = [input() for _ in range(q_large)] pos = [None for _ in range(26)] for i in range(n): for j in range(m): sij = s[i][j]...
21.193548
50
0.47032
0
0
0
0
0
0
0
0
40
0.060883
d5fe5092d56595790c2072c2485827d644f9fbac
1,104
py
Python
NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'dimd' from zope.interface import Interface, Attribute class IBaseResourceSubscriber(Interface): """ IBaseResourceSubscriber provides functionality for comparison of the signature on a incoming request against a candidate DProtocol implementation registered as IJSONResource The `a...
26.285714
112
0.729167
1,027
0.930254
0
0
0
0
0
0
812
0.735507
d5fedd3bf29602a1334d3dbff567321747bbca26
4,652
py
Python
analysis/notebooks/helper/anova.py
dpedrosac/DBSgait
6df44cf975d43f9e932ef10144bfb7c1b5390b7b
[ "MIT" ]
1
2021-09-29T05:53:38.000Z
2021-09-29T05:53:38.000Z
analysis/notebooks/helper/anova.py
dpedrosac/DBSgait
6df44cf975d43f9e932ef10144bfb7c1b5390b7b
[ "MIT" ]
null
null
null
analysis/notebooks/helper/anova.py
dpedrosac/DBSgait
6df44cf975d43f9e932ef10144bfb7c1b5390b7b
[ "MIT" ]
1
2021-09-22T08:48:47.000Z
2021-09-22T08:48:47.000Z
import numpy as np import pandas as pd from scipy.stats import f_oneway from typing import Dict, Tuple, Set def extract_significant_p(df: pd.DataFrame, p_value_limit: float): """Return a df, which replaces values that are above p_value_limit with `None`""" return ( df.loc(axis=1)[f"p-value"] ...
36.34375
117
0.589209
0
0
0
0
0
0
0
0
1,567
0.336844
d5ff5d19a2e1fbd8c3dcb000fc779bc359c47c61
2,251
py
Python
bux_recorder/utils.py
roaldarbol/bux
356817bbc7139c972d640c64fb8fcba27b70b3f7
[ "MIT" ]
null
null
null
bux_recorder/utils.py
roaldarbol/bux
356817bbc7139c972d640c64fb8fcba27b70b3f7
[ "MIT" ]
9
2021-12-09T18:07:25.000Z
2022-03-30T23:22:45.000Z
bux_recorder/utils.py
roaldarbol/bux
356817bbc7139c972d640c64fb8fcba27b70b3f7
[ "MIT" ]
null
null
null
import os import platform import time import csv import serial import cv2 import tkinter as tk from tkinter.filedialog import askdirectory from serial.tools import list_ports # From https://raspberrypi.stackexchange.com/a/118473 def is_raspberrypi(): try: with io.open('/sys/firmware/devicetree/base/model',...
30.835616
103
0.631719
0
0
0
0
0
0
0
0
641
0.284762
d5fff25cf4828ce6ee852dfb013719288c2e6acf
1,712
py
Python
a2e/optimizer/hpbandster/_model_worker.py
maechler/a2e
c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00
[ "MIT" ]
1
2021-03-19T09:09:41.000Z
2021-03-19T09:09:41.000Z
a2e/optimizer/hpbandster/_model_worker.py
maechler/a2e
c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00
[ "MIT" ]
null
null
null
a2e/optimizer/hpbandster/_model_worker.py
maechler/a2e
c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00
[ "MIT" ]
null
null
null
from hpbandster.core.worker import Worker from a2e.model import AbstractModel from a2e.optimizer import EvaluationResultAggregator from a2e.utility import inf_nan_to_float_max class ModelWorker(Worker): def __init__( self, model: AbstractModel, evaluation_result_aggregator: EvaluationResul...
31.703704
138
0.657126
1,533
0.895444
0
0
0
0
0
0
60
0.035047
9101c6f835f7bccd8700b747bc71f0d2474bb905
1,245
py
Python
xagents/__init__.py
schissmantics/xagents
04f1b96f767903c62138b7d63986f16edfe5f240
[ "MIT" ]
37
2021-08-05T16:31:54.000Z
2022-01-16T11:49:46.000Z
xagents/__init__.py
schissmantics/xagents
04f1b96f767903c62138b7d63986f16edfe5f240
[ "MIT" ]
1
2022-01-08T17:22:53.000Z
2022-01-08T17:22:53.000Z
xagents/__init__.py
schissmantics/xagents
04f1b96f767903c62138b7d63986f16edfe5f240
[ "MIT" ]
3
2021-08-13T06:25:22.000Z
2021-08-20T01:37:15.000Z
from xagents import a2c, acer, ddpg, dqn, ppo, td3, trpo from xagents.a2c.agent import A2C from xagents.acer.agent import ACER from xagents.base import OffPolicy from xagents.ddpg.agent import DDPG from xagents.dqn.agent import DQN from xagents.ppo.agent import PPO from xagents.td3.agent import TD3 from xagents.trpo.ag...
30.365854
85
0.658635
0
0
0
0
0
0
0
0
394
0.316466
910239e4d64bcd7a23fd58a2e98cbfc09b91c703
65
py
Python
IsraeliQueue/__init__.py
YonLiud/Israeli-Queue
53e14e68701c06efdd23ba6584a2e8a561e60cd9
[ "MIT" ]
2
2021-06-20T23:47:58.000Z
2021-06-28T19:15:41.000Z
IsraeliQueue/__init__.py
YonLiud/Israeli-Queue
53e14e68701c06efdd23ba6584a2e8a561e60cd9
[ "MIT" ]
null
null
null
IsraeliQueue/__init__.py
YonLiud/Israeli-Queue
53e14e68701c06efdd23ba6584a2e8a561e60cd9
[ "MIT" ]
null
null
null
from .IsraeliQueue import IsraeliQueue, Item, IsraeliQueueByType
32.5
64
0.861538
0
0
0
0
0
0
0
0
0
0
91031df628ba0d6e12adf7ed9e0154be2d4256a3
3,794
py
Python
examples/MMPT/mmpt_cli/localjob.py
Este1le/fairseq
0fa073e0e0ddd90ff6850588e655c9566bb222ff
[ "MIT" ]
null
null
null
examples/MMPT/mmpt_cli/localjob.py
Este1le/fairseq
0fa073e0e0ddd90ff6850588e655c9566bb222ff
[ "MIT" ]
null
null
null
examples/MMPT/mmpt_cli/localjob.py
Este1le/fairseq
0fa073e0e0ddd90ff6850588e655c9566bb222ff
[ "MIT" ]
null
null
null
# 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. import os from mmpt.utils import recursive_config class BaseJob(object): def __init__(self, yaml_file, dryrun=False): self.yaml_...
32.152542
120
0.524512
3,557
0.937533
0
0
0
0
0
0
908
0.239325
9103b4aa5d2e6a5156212d03a9f3245d1c26b5fe
1,154
py
Python
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
import os.path from tron import g, hub from tron.Hub.Command.Encoders.ASCIICmdEncoder import ASCIICmdEncoder from tron.Hub.Nub.TCCShellNub import TCCShellNub from tron.Hub.Reply.Decoders.ASCIIReplyDecoder import ASCIIReplyDecoder name = 'tcc' def start(poller): stop() initCmds = ('show version', 'show us...
25.644444
97
0.598787
0
0
0
0
0
0
0
0
261
0.22617
91041f909c9548e67cfcf291bb438d3ff51c9d02
1,207
py
Python
src/PtDb/test.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/PtDb/test.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/PtDb/test.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- ''' Created on 2013-3-31 @author: Joseph ''' import PtDb if __name__ == '__main__': PtDb.config = { 'sqlite':{ 'type':'sqlite', 'dbname':"data1.db" }, ...
30.175
60
0.351284
0
0
0
0
0
0
0
0
443
0.367026
9104cf33f9cb7c9a9e220cded851c4d2434c8d05
49,016
py
Python
services/object_storage/tests/integ/test_object_storage_bulk_operations.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
services/object_storage/tests/integ/test_object_storage_bulk_operations.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
services/object_storage/tests/integ/test_object_storage_bulk_operations.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. import filecmp import json import pytest import oci import services.object_storage.src.oci_cli_object_storage as oci_cli_object_storage import os import random import shutil import six import string from tests import util fr...
50.118609
275
0.718643
0
0
4,513
0.092072
42,848
0.874164
0
0
14,096
0.28758
9104fd2a412765ae4aa352d6517c087a930d10a7
2,304
py
Python
Extras/benchmark/simple-benchmark.py
yunhaom94/redis-writeanywhere
1fefed820811fb89585b2b153d916c3b0fa507a6
[ "BSD-3-Clause" ]
null
null
null
Extras/benchmark/simple-benchmark.py
yunhaom94/redis-writeanywhere
1fefed820811fb89585b2b153d916c3b0fa507a6
[ "BSD-3-Clause" ]
null
null
null
Extras/benchmark/simple-benchmark.py
yunhaom94/redis-writeanywhere
1fefed820811fb89585b2b153d916c3b0fa507a6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import random import string import time import subprocess import os import redis import threading def generate_string(string_size, size, dict): ''' https://stackoverflow.com/questions/16308989/fastest-method-to-generate-big-random-string-with-lower-latin-letters ''' for i in ran...
22.368932
118
0.598524
0
0
0
0
0
0
0
0
475
0.206163
910584bb0f10ffc80b6bcbf199bcc87aa47ac74d
1,302
py
Python
challenges/015-setintersection.py
Widdershin/CodeEval
c1c769363763d6f7e1ac5bf3707de2731c3bd926
[ "MIT" ]
null
null
null
challenges/015-setintersection.py
Widdershin/CodeEval
c1c769363763d6f7e1ac5bf3707de2731c3bd926
[ "MIT" ]
null
null
null
challenges/015-setintersection.py
Widdershin/CodeEval
c1c769363763d6f7e1ac5bf3707de2731c3bd926
[ "MIT" ]
null
null
null
""" https://www.codeeval.com/browse/30/ Set Intersection Challenge Description: You are given two sorted list of numbers (ascending order). The lists themselves are comma delimited and the two lists are semicolon delimited. Print out the intersection of these two sets. Input Sample: File containin...
20.666667
93
0.654378
0
0
0
0
0
0
0
0
789
0.605991
9106509f9ec5a979f79cad4305026bbe9239af41
9,920
py
Python
python/arch/api/table/session.py
GentleWang1011/eggroll
417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c
[ "Apache-2.0" ]
1
2020-10-23T03:18:54.000Z
2020-10-23T03:18:54.000Z
python/arch/api/table/session.py
GentleWang1011/eggroll
417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c
[ "Apache-2.0" ]
null
null
null
python/arch/api/table/session.py
GentleWang1011/eggroll
417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE 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 appli...
39.055118
113
0.541431
7,597
0.765827
0
0
7,629
0.769052
0
0
2,155
0.217238
91085824641d29cf6a64bb1d7961d3c8c9b1d9df
10,481
py
Python
experiments/vitchyr/vaes/learn_swirl_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/vitchyr/vaes/learn_swirl_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/vitchyr/vaes/learn_swirl_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
""" VAE on the swirl task. Basically, VAEs don't work. It's probably because the prior isn't very good and/or because the learning signal is pretty weak when both the encoder and decoder change quickly. However, I tried also alternating between the two, and that didn't seem to help. """ from torch.distributions import...
30.556851
100
0.621983
701
0.066883
0
0
0
0
0
0
1,312
0.125179
91087a71b49d992aa86f465838203ca33ae315a2
893
py
Python
litex/build/openfpgaloader.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/build/openfpgaloader.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/build/openfpgaloader.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
# # This file is part of LiteX. # # Copyright (c) 2020 Florent Kermarrec <[email protected]> # SPDX-License-Identifier: BSD-2-Clause from litex.build.tools import write_to_file from litex.build.generic_programmer import GenericProgrammer # openFPGAloader --------------------------------------------------------...
31.892857
107
0.603583
536
0.600224
0
0
0
0
0
0
343
0.384099
9108d9fb9a94a37ce1d64b6c7561be3aaeaa3b32
10,557
py
Python
NutriBuddiAPIServices/ImageClassifier/NutriBuddiClassifier/Classifier/FoodClassifier.py
NutriBuddi/NutriBuddi
b4343216cbc99b17a1faf4df50b681465418291f
[ "MIT" ]
2
2017-12-11T03:47:14.000Z
2017-12-16T01:29:03.000Z
NutriBuddiAPIServices/ImageClassifier/NutriBuddiClassifier/Classifier/FoodClassifier.py
NutriBuddi/NutriBuddi
b4343216cbc99b17a1faf4df50b681465418291f
[ "MIT" ]
null
null
null
NutriBuddiAPIServices/ImageClassifier/NutriBuddiClassifier/Classifier/FoodClassifier.py
NutriBuddi/NutriBuddi
b4343216cbc99b17a1faf4df50b681465418291f
[ "MIT" ]
null
null
null
class FoodClassifier: #Class Attributes: #model - the underlying keras model #labels - the labels to be associated with the activation of each output neuron. #Labels must be the same size as the output layer of the neural network. def __init__(self, modelpath, labels, min_confidence =...
33.728435
180
0.626883
2,544
0.240978
0
0
0
0
0
0
3,238
0.306716
91095212fe94005bb0badaf0b1144da0c2a0e7f0
300
py
Python
freehackquest_libclient_py/__init__.py
freehackquest/libfhqcli-py
382242943047b63861aad0f41bb89c82e755963c
[ "Apache-2.0" ]
null
null
null
freehackquest_libclient_py/__init__.py
freehackquest/libfhqcli-py
382242943047b63861aad0f41bb89c82e755963c
[ "Apache-2.0" ]
null
null
null
freehackquest_libclient_py/__init__.py
freehackquest/libfhqcli-py
382242943047b63861aad0f41bb89c82e755963c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020-2021 FreeHackQuest Team <[email protected]> """This file was automatically generated by fhq-server Version: v0.2.47 Date: 2022-01-01 07:15:35 """ from freehackquest_libclient_py.freehackquest_client import FreeHackQuestClient
33.333333
79
0.77
0
0
0
0
0
0
0
0
216
0.72
9109df56e39b2986de46c0b2bc4cedc05e614932
5,234
py
Python
exchange_sockets/bitstamp_websocket.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
31
2020-07-20T14:11:39.000Z
2022-03-17T03:18:33.000Z
exchange_sockets/bitstamp_websocket.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
null
null
null
exchange_sockets/bitstamp_websocket.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
11
2020-07-20T14:11:52.000Z
2022-03-14T04:20:19.000Z
from exchange_sockets.exchange_websocket import ExchangeWebSocket from singletones.custom_logger import MyLogger import websocket import threading from time import sleep from time import time import json import ssl logger = MyLogger() class BitstampWebsocket(ExchangeWebSocket): def __init__(self, pairs_n_stream...
35.364865
108
0.488154
4,995
0.954337
0
0
0
0
0
0
507
0.096867
910a76a4ae610e5e78371c5e387ad8044c415dcd
2,509
py
Python
src/data_loading.py
katerakelly/pytorch-maml
75907aca148ad053dfaf75fc138319f0d89534a8
[ "MIT" ]
565
2017-08-29T02:02:30.000Z
2022-03-28T13:44:55.000Z
src/data_loading.py
lolinkun/pytorch-maml
75907aca148ad053dfaf75fc138319f0d89534a8
[ "MIT" ]
20
2017-10-23T02:19:51.000Z
2021-06-02T07:17:28.000Z
src/data_loading.py
lolinkun/pytorch-maml
75907aca148ad053dfaf75fc138319f0d89534a8
[ "MIT" ]
140
2017-09-09T09:18:15.000Z
2022-03-28T04:15:26.000Z
import numpy as np import random import torch from torch.utils.data import DataLoader from torch.utils.data.sampler import Sampler import torchvision.transforms as transforms from dataset import Omniglot, MNIST ''' Helpers for loading class-balanced few-shot tasks from datasets ''' class ClassBalancedSampler(Sample...
39.825397
121
0.697489
1,374
0.547629
0
0
0
0
0
0
723
0.288163
910af5706d2a9981705d65b7f790c5595e73aa3e
1,823
py
Python
DoChaP-db/UnusedScripts/main.py
Tal-Shay-Group/DoChaP
e721c6742fdff5f771bb947d92fa6cf66831939a
[ "MIT" ]
2
2021-05-28T04:59:17.000Z
2021-09-03T13:25:40.000Z
DoChaP-db/UnusedScripts/main.py
Tal-Shay-Group/DoChaP
e721c6742fdff5f771bb947d92fa6cf66831939a
[ "MIT" ]
null
null
null
DoChaP-db/UnusedScripts/main.py
Tal-Shay-Group/DoChaP
e721c6742fdff5f771bb947d92fa6cf66831939a
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os sys.path.append(os.getcwd()) from Director import Director from OrthologsBuilder import * from SpeciesDB import * if __name__ == "__main__": inputDict = {} for inarg in sys.argv[1:]: try: splitArg = inarg.strip("-").split("=") if splitArg[...
37.979167
106
0.638508
0
0
0
0
0
0
0
0
418
0.229292
910b7a1f1887af22123d521897d29cfa202ce555
397
py
Python
tests/constants.py
eigenein/sqlitemap
25846178dee90cfe45a2bc951309301bc7f3694b
[ "MIT" ]
4
2020-04-28T05:48:05.000Z
2020-10-05T06:56:13.000Z
tests/constants.py
eigenein/sqlitemap
25846178dee90cfe45a2bc951309301bc7f3694b
[ "MIT" ]
1
2019-04-02T20:13:55.000Z
2019-04-02T20:45:26.000Z
tests/constants.py
eigenein/sqlitemap
25846178dee90cfe45a2bc951309301bc7f3694b
[ "MIT" ]
null
null
null
# See also: https://stackoverflow.com/questions/3694276/what-are-valid-table-names-in-sqlite good_table_names = [ 'foo', '123abc', '123abc.txt', '123abc-ABC.txt', 'foo""bar', '😀', '_sqlite', ] # See also: https://stackoverflow.com/questions/3694276/what-are-valid-table-names-in-sqlite bad_...
20.894737
92
0.622166
0
0
0
0
0
0
0
0
286
0.715
910ba6c11fb3b85edca95edcb1ac441727f03f60
16,258
py
Python
TWLight/settings/base.py
amire80/TWLight
063a385ea46c61a4889ba88e3fded4183c3a6bd3
[ "MIT" ]
null
null
null
TWLight/settings/base.py
amire80/TWLight
063a385ea46c61a4889ba88e3fded4183c3a6bd3
[ "MIT" ]
56
2021-07-03T12:34:47.000Z
2022-03-29T12:20:08.000Z
TWLight/settings/base.py
amire80/TWLight
063a385ea46c61a4889ba88e3fded4183c3a6bd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Base settings for twlight project. This is not intended to be used as the live settings file for a project and will not work as one. You should instead use production.py, local.py, heroku.py, or another file that you write. These files should live in the settings directory; start with 'from...
35.969027
165
0.60807
0
0
0
0
0
0
0
0
10,951
0.673493
910c31b853b8a837a994aa06e68742ed3449818b
19,836
py
Python
modelator_py/util/tla/_optable.py
informalsystems/modelator-py
d66464096c022799e680e6201590a2ead69be32d
[ "Apache-2.0" ]
null
null
null
modelator_py/util/tla/_optable.py
informalsystems/modelator-py
d66464096c022799e680e6201590a2ead69be32d
[ "Apache-2.0" ]
3
2022-03-30T16:01:49.000Z
2022-03-31T13:40:03.000Z
modelator_py/util/tla/_optable.py
informalsystems/modelator-py
d66464096c022799e680e6201590a2ead69be32d
[ "Apache-2.0" ]
null
null
null
"""Table of operators.""" # Copyright 2020 by California Institute of Technology # Copyright (c) 2008-2013 INRIA and Microsoft Corporation # All rights reserved. Licensed under 3-clause BSD. # # This module is based on the file: # # <https://github.com/tlaplus/tlapm/blob/main/src/optable.ml> # import pprint from .ast...
41.497908
87
0.354658
728
0.036701
0
0
0
0
0
0
12,228
0.616455
910cebe2f9c8f06e688c3bb7c05c5907ea9954d5
40,599
py
Python
DIE/UI/FunctionViewEx.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
5
2017-05-17T21:53:46.000Z
2019-07-12T20:05:20.000Z
DIE/UI/FunctionViewEx.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
null
null
null
DIE/UI/FunctionViewEx.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
1
2020-03-15T21:25:14.000Z
2020-03-15T21:25:14.000Z
import networkx as nx from awesome.context import ignored import sark import idaapi import idautils import idc from idaapi import PluginForm from sark.qt import QtGui, QtCore, QtWidgets, form_to_widget, use_qt5 if use_qt5: _QSortFilterProxyModel = QtCore.QSortFilterProxyModel _MatchRecursive = QtC...
40.885196
176
0.610828
39,401
0.970492
0
0
0
0
0
0
7,884
0.194192
910e142fb045682f0db143a5a746598a72de10d6
1,103
py
Python
peerbot/PeerBot.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
peerbot/PeerBot.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
peerbot/PeerBot.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
from peerbot.PeerBotStateMachine import PeerBotStateMachine from utils.Logger import Logger import discord class PeerBot(discord.Client): def __init__(self, args): self.args = args self.isBotReady = False super().__init__() async def on_ready(self): stringifiedUse...
34.46875
91
0.637353
994
0.901179
0
0
0
0
803
0.728015
115
0.104261
910ef698981e05b36f0d36710e6f745c6eeb2055
3,017
py
Python
dags/oss_know/oss_know_dags/dags_github/dag_github_init_issues_timeline.py
ynang/airflow-jobs-1
857e9dfbc2444dc1d23dd2b0463fe89108f01b89
[ "Apache-2.0" ]
4
2022-01-24T11:27:39.000Z
2022-02-25T11:44:10.000Z
dags/oss_know/oss_know_dags/dags_github/dag_github_init_issues_timeline.py
linruoma/airflow-jobs-1
25d3996c6d11ee2d8f93ff2b73abcf83da986804
[ "Apache-2.0" ]
13
2021-12-17T12:14:11.000Z
2022-02-24T07:01:08.000Z
dags/oss_know/oss_know_dags/dags_github/dag_github_init_issues_timeline.py
linruoma/airflow-jobs-1
25d3996c6d11ee2d8f93ff2b73abcf83da986804
[ "Apache-2.0" ]
13
2022-01-19T09:30:03.000Z
2022-03-02T10:45:07.000Z
from datetime import datetime from airflow import DAG from airflow.operators.python import PythonOperator # v0.0.1 from oss_know.libs.base_dict.variable_key import NEED_INIT_GITHUB_ISSUES_TIMELINE_REPOS, GITHUB_TOKENS, \ OPENSEARCH_CONN_DATA, PROXY_CONFS from oss_know.libs.util.proxy import KuaiProxyService, Prox...
40.226667
111
0.705668
0
0
0
0
0
0
0
0
294
0.097448
9111781e785cdbf0e4af0d7fe8d43c637a7447e2
126
py
Python
conans/conan.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
2
2019-01-09T10:01:29.000Z
2019-01-09T10:01:31.000Z
conans/conan.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
6
2016-03-08T22:06:45.000Z
2020-06-02T15:22:19.000Z
conans/conan.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
2
2019-08-07T18:15:16.000Z
2021-08-04T12:33:05.000Z
import sys from conans.client.command import main def run(): main(sys.argv[1:]) if __name__ == '__main__': run()
10.5
38
0.642857
0
0
0
0
0
0
0
0
10
0.079365
9111af8dea9204ecc79252d0615a08b9fa56ab3b
4,998
py
Python
tests/apps/persons/test_cms_plugins_person.py
lunika/richie
b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f
[ "MIT" ]
null
null
null
tests/apps/persons/test_cms_plugins_person.py
lunika/richie
b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f
[ "MIT" ]
null
null
null
tests/apps/persons/test_cms_plugins_person.py
lunika/richie
b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit tests for the Person plugin and its model """ from django import forms from django.conf import settings from django.test import TestCase from cms.api import add_plugin, create_page from cmsplugin_plain_text.cms_plugins import PlaintextPlugin from djangocms_picture.cms_plugins import Pi...
36.75
91
0.62585
4,372
0.87405
0
0
0
0
0
0
1,509
0.301679
91124d593f9dcda3e366e95378c8d482f7f013ee
9,295
py
Python
mathics/core/subexpression.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
90
2021-09-11T14:14:00.000Z
2022-03-29T02:08:29.000Z
mathics/core/subexpression.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
187
2021-09-13T01:00:41.000Z
2022-03-31T11:52:52.000Z
mathics/core/subexpression.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
10
2021-10-05T15:44:26.000Z
2022-03-21T12:34:33.000Z
# cython: language_level=3 # -*- coding: utf-8 -*- from mathics.core.expression import Expression from mathics.core.symbols import Atom, Symbol from mathics.core.atoms import Integer from mathics.builtin.base import MessageException """ This module provides some infrastructure to deal with SubExpressions. """ def...
30.276873
94
0.563636
7,675
0.825713
0
0
1,369
0.147283
0
0
2,416
0.259925
911286f14d1a282acaf40a71af59fdf1cfb8d6e8
901
py
Python
pyopenproject/business/services/command/configuration/find.py
webu/pyopenproject
40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966
[ "MIT" ]
5
2021-02-25T15:54:28.000Z
2021-04-22T15:43:36.000Z
pyopenproject/business/services/command/configuration/find.py
webu/pyopenproject
40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966
[ "MIT" ]
7
2021-03-15T16:26:23.000Z
2022-03-16T13:45:18.000Z
pyopenproject/business/services/command/configuration/find.py
webu/pyopenproject
40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966
[ "MIT" ]
6
2021-06-18T18:59:11.000Z
2022-03-27T04:58:52.000Z
from pyopenproject.api_connection.exceptions.request_exception import RequestError from pyopenproject.api_connection.requests.get_request import GetRequest from pyopenproject.business.exception.business_error import BusinessError from pyopenproject.business.services.command.configuration.configuration_command import Co...
39.173913
108
0.760266
499
0.553829
0
0
0
0
0
0
163
0.18091
9112d9a09ef3e419ea9c838421fb6d27323a5f4c
1,960
py
Python
lib/python/treadmill/tests/api/cell_test.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
1
2019-04-14T20:17:07.000Z
2019-04-14T20:17:07.000Z
lib/python/treadmill/tests/api/cell_test.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
1
2017-09-18T10:36:12.000Z
2017-09-18T10:36:12.000Z
lib/python/treadmill/tests/api/cell_test.py
evreng/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
null
null
null
"""Cell API tests. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import mock from treadmill import admin from treadmill.api import cell class ApiCellTest(unittest.TestCase): """treadmill....
32.131148
72
0.628061
1,645
0.839286
0
0
1,463
0.746429
0
0
554
0.282653
91150271775e1bcf188908a5352023d285ea5e40
363
py
Python
src/python_package/__init__.py
microsoft/ai-python-package
770f5167ebc32b5410739f04c5730e68f84785c9
[ "MIT" ]
3
2021-12-11T17:02:56.000Z
2022-02-23T19:45:35.000Z
src/python_package/__init__.py
microsoft/ai-python-package
770f5167ebc32b5410739f04c5730e68f84785c9
[ "MIT" ]
5
2022-03-24T13:21:21.000Z
2022-03-31T13:21:39.000Z
src/python_package/__init__.py
microsoft/python-package-template
770f5167ebc32b5410739f04c5730e68f84785c9
[ "MIT" ]
null
null
null
# ------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # ------------------------------------------------------------- """Python Package Template""" from __future__...
40.333333
80
0.484848
0
0
0
0
0
0
0
0
307
0.84573
9116473055c5bd072ad59a444dc826781f8a2c35
2,387
py
Python
tests/test_integration_partition.py
themoodymann/piChain
4de9e8da3994901371713b68bc05295fe6676571
[ "MIT" ]
8
2018-02-22T08:52:26.000Z
2022-02-01T01:28:29.000Z
tests/test_integration_partition.py
themoodymann/piChain
4de9e8da3994901371713b68bc05295fe6676571
[ "MIT" ]
3
2018-03-07T18:13:53.000Z
2019-12-03T23:42:42.000Z
tests/test_integration_partition.py
florianmorath/piChain
df498021cb7c2df26a7980fb85b795f4a0105faf
[ "MIT" ]
7
2018-02-26T12:28:34.000Z
2021-01-01T11:33:59.000Z
"""Integration test: Test partition of piChain nodes. Note: run tests with default setting values in config.py. """ import time from tests.util import MultiNodeTest class MultiNodeTestPartition(MultiNodeTest): def test_scenario30_partition(self): self.start_processes_with_test_scenario(30, 5) t...
38.5
70
0.735233
2,217
0.928781
0
0
0
0
0
0
116
0.048597
9116cf95f3505891c20808a9297cb4047c9dcb7a
776
py
Python
sandbox/pdp2/arbitrary_data/zip_files.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
3
2021-04-17T10:20:26.000Z
2022-03-08T07:36:13.000Z
sandbox/pdp2/arbitrary_data/zip_files.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
sandbox/pdp2/arbitrary_data/zip_files.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
import zipfile import random RAND_INT_RANGE = (1,100) def wrf(fname): with open(fname, 'w') as f: for i in range(100): f.write(str(random.randint(*RAND_INT_RANGE))) fnames = [] for i in range(10): fname = 'file' + str(i) + '.txt' wrf(fname) fnames.append(fname) dirpaths = set() wi...
26.758621
79
0.636598
0
0
0
0
0
0
0
0
106
0.136598
911750f22693957597b2ca1cf0ab39d191230dfc
1,497
py
Python
tests/testproject/testproject/tests/test_middleware.py
mwesterhof/wagtail_managed404
a961271c7fc70accb43ec329da9defe36e3dab3c
[ "MIT" ]
1
2021-03-11T10:06:04.000Z
2021-03-11T10:06:04.000Z
tests/testproject/testproject/tests/test_middleware.py
mwesterhof/wagtail_managed404
a961271c7fc70accb43ec329da9defe36e3dab3c
[ "MIT" ]
null
null
null
tests/testproject/testproject/tests/test_middleware.py
mwesterhof/wagtail_managed404
a961271c7fc70accb43ec329da9defe36e3dab3c
[ "MIT" ]
null
null
null
import unittest from django.test import Client from wagtail.core.models import Page from wagtail_managed404.models import PageNotFoundEntry class TestMiddleware(unittest.TestCase): """Tests for `wagtail_app_pages` package.""" def setUp(self): self.client = Client() self.invalid_url = '/defi...
34.022727
76
0.706079
1,352
0.90314
0
0
0
0
0
0
95
0.06346
91179c358fa25c39a2ad4c7490688913f5e6e658
24
py
Python
src/reversion/version.py
maraujop/django-reversion
c9e7788ca858d3c75b617a7277ffcd177a19d414
[ "BSD-3-Clause" ]
null
null
null
src/reversion/version.py
maraujop/django-reversion
c9e7788ca858d3c75b617a7277ffcd177a19d414
[ "BSD-3-Clause" ]
null
null
null
src/reversion/version.py
maraujop/django-reversion
c9e7788ca858d3c75b617a7277ffcd177a19d414
[ "BSD-3-Clause" ]
null
null
null
__version__ = (1, 8, 5)
12
23
0.583333
0
0
0
0
0
0
0
0
0
0
911891456d9e7cb41632224dd81128e9e0fa9e6b
2,776
py
Python
observations/r/bomsoi.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/bomsoi.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/bomsoi.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def bomsoi(path): """Southern Oscillation Index Data The Southern Osci...
22.942149
74
0.699207
0
0
0
0
0
0
0
0
2,077
0.748199
9118ae0e8ce4a6964c33407d1f9bb269a5f81229
948
py
Python
openpype/hosts/houdini/plugins/publish/validate_bypass.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/hosts/houdini/plugins/publish/validate_bypass.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/hosts/houdini/plugins/publish/validate_bypass.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
import pyblish.api import openpype.api class ValidateBypassed(pyblish.api.InstancePlugin): """Validate all primitives build hierarchy from attribute when enabled. The name of the attribute must exist on the prims and have the same name as Build Hierarchy from Attribute's `Path Attribute` value on the Ale...
27.085714
78
0.632911
906
0.955696
0
0
129
0.136076
0
0
394
0.415612
9119b7e105152a68ddb6c7704cd3d58179e633e6
4,687
py
Python
gavPrj/dataset_core.py
GavinK-ai/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
1
2021-11-15T06:16:44.000Z
2021-11-15T06:16:44.000Z
gavPrj/dataset_core.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
gavPrj/dataset_core.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
import os import cv2 as cv import matplotlib.pyplot as plt import numpy as np #srcPaths = ('dataset/Screenshot1','dataset/Screenshot2','dataset/Screenshot3', 'dataset/Screenshot4') #srcPaths = ('all_dataset/s1', # 'all_dataset/s10', # 'all_dataset/s11', # 'all_dataset/s12', ...
26.331461
128
0.528056
0
0
0
0
0
0
0
0
2,287
0.487945
911a60720a34ab009d3e5702a34a60c445eb65cc
5,827
py
Python
kronos/kronos.py
jinified/kronos
1f110372a025d28ccc407372320491ee818c893d
[ "MIT" ]
null
null
null
kronos/kronos.py
jinified/kronos
1f110372a025d28ccc407372320491ee818c893d
[ "MIT" ]
null
null
null
kronos/kronos.py
jinified/kronos
1f110372a025d28ccc407372320491ee818c893d
[ "MIT" ]
null
null
null
""" Kronos: A simple scheduler for graduate training programme Entities: User, Schedule, Rotation """ from operator import itemgetter from datetime import datetime, timedelta def getRotationCapacity(rotationId, startDate, endDate, assignments): """ Calculate number of users assigned to a particular rotation dur...
33.107955
97
0.60151
0
0
0
0
0
0
0
0
1,962
0.336708
911aa9326eb51bb9ac375b836bec89f414a26904
2,384
py
Python
personal_env/lib/python3.8/site-packages/pylint/lint/utils.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/pylint/lint/utils.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/pylint/lint/utils.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING import contextlib import sys from pylint.utils import utils class ArgumentPreprocessingError(Exception): """Raised if an error occurs during argument prep...
30.961039
81
0.557047
112
0.04698
475
0.199245
503
0.21099
0
0
809
0.339346
911ae3a32af48a82692eb10be784caaac6d3d48a
4,847
py
Python
mol_dqn/experimental/multi_obj.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
mol_dqn/experimental/multi_obj.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
mol_dqn/experimental/multi_obj.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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.484277
78
0.704766
2,018
0.41634
0
0
0
0
0
0
1,941
0.400454
911b8570dbe4dd13160970c51c2cd287f8cc9dae
4,147
py
Python
myuw/test/views/test_rest_search.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/test/views/test_rest_search.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/test/views/test_rest_search.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- from django.test.utils import override_settings from django.urls import reverse from myuw.test.api import MyuwApiTest @override_settings( RESTCLIENTS_ADMIN_AUTH_MODULE='rc_django.tests.can_proxy_restcli...
39.875
77
0.613214
3,820
0.921148
0
0
3,914
0.943815
0
0
1,623
0.391367
911c431b68da1378ffaf6b7b804e393825322dec
1,770
py
Python
examples/cli-solver/cli_solver.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
examples/cli-solver/cli_solver.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
examples/cli-solver/cli_solver.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
# cli_solver.py import argparse import os from boggled import BoggleBoard, BoggleSolver, BoggleWords def solve_board(board, words): solver = BoggleSolver(board, words) solver.solve() return solver def display_board_details(board): print("Board details:") print("Columns: ", board.columns) pr...
30
82
0.589266
0
0
0
0
0
0
0
0
329
0.185876
911cc6fdfec9f96a292bbbfc6b3b0ac51752840f
45,086
py
Python
src/wepy/orchestration/orchestrator.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
35
2017-08-22T15:39:06.000Z
2022-03-20T15:17:52.000Z
src/wepy/orchestration/orchestrator.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
33
2017-10-02T22:04:45.000Z
2022-03-02T22:19:08.000Z
src/wepy/orchestration/orchestrator.py
stxinsite/wepy
352d4c1316b20e839aae8824eedd66f0f2d0b456
[ "MIT" ]
17
2018-07-14T15:33:30.000Z
2022-01-18T16:30:55.000Z
from copy import copy, deepcopy import sqlite3 from hashlib import md5 import time import os import os.path as osp from base64 import b64encode, b64decode from zlib import compress, decompress import itertools as it import logging # instead of pickle we use dill, so we can save dynamically defined # classes import dil...
32.319713
125
0.595883
40,269
0.89316
0
0
5,332
0.118263
0
0
19,763
0.43834
911d2626da51dec7964f3f20d1a80f93b2a0e8f3
2,681
py
Python
src/generate_class_specific_samples.py
HesterLim/pytorch-cnn-visualizations
59ddf0ef6ea2c9d4d69c1ac6b260cb399867d178
[ "MIT" ]
6,725
2017-10-25T08:00:25.000Z
2022-03-31T15:25:46.000Z
src/generate_class_specific_samples.py
woojoo99/pytorch-cnn-visualizations
16eddfa055a9c618ba548e9fb4529e2ccbc79c35
[ "MIT" ]
105
2017-11-26T11:59:24.000Z
2022-01-11T01:37:00.000Z
src/generate_class_specific_samples.py
woojoo99/pytorch-cnn-visualizations
16eddfa055a9c618ba548e9fb4529e2ccbc79c35
[ "MIT" ]
1,419
2017-10-25T08:00:27.000Z
2022-03-30T08:28:35.000Z
""" Created on Thu Oct 26 14:19:44 2017 @author: Utku Ozbulak - github.com/utkuozbulak """ import os import numpy as np import torch from torch.optim import SGD from torchvision import models from misc_functions import preprocess_image, recreate_image, save_image class ClassSpecificImageGeneration(): """ ...
34.818182
125
0.613577
2,200
0.820589
0
0
0
0
0
0
790
0.294666
911d31b9a8a7937bf3f3cbbfb6a83e53d58e13d7
16,673
py
Python
sumo/tools/net/visum_mapDistricts.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/net/visum_mapDistricts.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/net/visum_mapDistricts.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python """ @file visum_mapDistricts.py @author Daniel Krajzewicz @author Michael Behrisch @date 2007-10-25 @version $Id$ This script reads a network and a dump file and draws the network, coloring it by the values found within the dump-file. SUMO, Simulation of Urban MObility; see http://sum...
33.346
138
0.537156
0
0
0
0
0
0
0
0
2,289
0.137288
911d404601c245497e0b927e48a8d554d335993b
42,222
py
Python
BKPMediaDetector.py
bkpifc/BKPMediaDetector
51858b45e218e0c4b5ed4d6aac6d751e029d850e
[ "Apache-2.0" ]
5
2019-04-03T08:04:06.000Z
2019-10-01T12:08:30.000Z
BKPMediaDetector.py
bkpifc/BKPMediaDetector
51858b45e218e0c4b5ed4d6aac6d751e029d850e
[ "Apache-2.0" ]
13
2019-04-08T14:24:15.000Z
2022-03-11T23:50:32.000Z
BKPMediaDetector.py
bkpifc/BKPMediaDetector
51858b45e218e0c4b5ed4d6aac6d751e029d850e
[ "Apache-2.0" ]
2
2019-04-04T11:20:27.000Z
2019-04-04T14:51:11.000Z
#!/usr/bin/env python3 ###### # General Detector # 06.12.2018 / Last Update: 20.05.2021 # LRB ###### import numpy as np import os import sys import tensorflow as tf import hashlib import cv2 import magic import PySimpleGUI as sg import csv import imagehash import face_recognition import subprocess from itertools impo...
40.676301
238
0.613093
0
0
0
0
0
0
0
0
11,745
0.278173
911e4f54a8e9fbbfd53aa376d04e2f253bbddbd8
2,252
py
Python
src/BruteForce.py
stevenwalton/Retro-Learner
74586c57b5dd5f6e82abaff99344285731f1fc56
[ "MIT" ]
null
null
null
src/BruteForce.py
stevenwalton/Retro-Learner
74586c57b5dd5f6e82abaff99344285731f1fc56
[ "MIT" ]
null
null
null
src/BruteForce.py
stevenwalton/Retro-Learner
74586c57b5dd5f6e82abaff99344285731f1fc56
[ "MIT" ]
null
null
null
import time import retro import FrameSkip import TimeLimit import Brute class BruteForce(): def __init__(self, game='Airstriker-Genesis', max_episode_steps=4500, timestep_limit=100_000_000, state=retro.State.DEFAULT, scenario=Non...
34.121212
98
0.525311
2,177
0.966696
0
0
0
0
0
0
151
0.067052
911fe80423c3725cffb5c649027000c3b8755a5f
5,429
py
Python
tutorials/04-advanced/03-super-resolution-onnx/main.py
yakhyo/PyTorch-Tutorials
163287bc735b09c366dbdfa3989e81acaef6fa1f
[ "MIT" ]
7
2021-05-16T14:36:20.000Z
2021-12-30T07:07:31.000Z
tutorials/04-advanced/03-super-resolution-onnx/main.py
yakhyo/PyTorch-Tutorials
163287bc735b09c366dbdfa3989e81acaef6fa1f
[ "MIT" ]
null
null
null
tutorials/04-advanced/03-super-resolution-onnx/main.py
yakhyo/PyTorch-Tutorials
163287bc735b09c366dbdfa3989e81acaef6fa1f
[ "MIT" ]
3
2021-05-17T12:11:11.000Z
2021-11-25T10:06:14.000Z
import io import numpy as np import torch.utils.model_zoo as model_zoo import torch.onnx import torch.nn as nn import torch.nn.init as init # ================================================================ # # Building the Model # # ====================================...
40.514925
120
0.592374
1,161
0.213852
0
0
0
0
0
0
2,153
0.396574
91209eac140dfeb3483e2df389892eaa71a76d66
8,963
py
Python
features/steps/section.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
3,031
2015-01-02T11:11:24.000Z
2022-03-30T00:57:17.000Z
features/steps/section.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
934
2015-01-06T20:53:56.000Z
2022-03-28T10:08:03.000Z
features/steps/section.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
901
2015-01-07T18:22:07.000Z
2022-03-31T18:38:51.000Z
# encoding: utf-8 """ Step implementations for section-related features """ from __future__ import absolute_import, print_function, unicode_literals from behave import given, then, when from docx import Document from docx.enum.section import WD_ORIENT, WD_SECTION from docx.section import Section from docx.shared im...
34.340996
88
0.716278
0
0
0
0
8,327
0.929042
0
0
2,690
0.300123
9120d4c7c58950a1c79165874f5716c1d3e76e4c
4,421
py
Python
scipy/sparse/csgraph/_laplacian.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
1
2018-10-04T15:34:14.000Z
2018-10-04T15:34:14.000Z
scipy/sparse/csgraph/_laplacian.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/csgraph/_laplacian.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
""" Laplacian of a compressed-sparse graph """ # Authors: Aric Hagberg <[email protected]> # Gael Varoquaux <[email protected]> # Jake Vanderplas <[email protected]> # License: BSD import numpy as np from scipy.sparse import isspmatrix, coo_matrix #########################...
32.507353
86
0.570007
0
0
0
0
0
0
0
0
2,112
0.47772
9120f5bc8f814b4692efc7406b81c0fe8103d83e
7,225
py
Python
samples/barebone/settings.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
1
2018-10-12T15:12:15.000Z
2018-10-12T15:12:15.000Z
samples/barebone/settings.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
null
null
null
samples/barebone/settings.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
null
null
null
import os import logging from collections import namedtuple from Crypto.PublicKey import RSA from tornado import gen from tornado import concurrent from cosmos.rbac.object import * from cosmos.service import OBSERVER_PROCESSOR DEBUG = True DB_HOST = "127.0.0.1" DB_NAME = "cosmos" DB_PORT = 27017 DB_USER_NAME = None ...
47.847682
1,732
0.800969
0
0
0
0
0
0
0
0
3,728
0.515986
9123424991c5403f506995b73c11800e6232bbeb
274
py
Python
zilean/system/zilean_migrator.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
zilean/system/zilean_migrator.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
zilean/system/zilean_migrator.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
from .utils.migrations import (migrate_database_from, migrate_machine_from, zilean_rollback_database_backup, zilean_rollback_machine_backup) class ZileanMigrator(object): pass
34.25
63
0.569343
38
0.138686
0
0
0
0
0
0
0
0
912495f93184573b9203df22fc8bb27548652827
14,605
py
Python
coltran/run.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
coltran/run.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
coltran/run.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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...
34.940191
135
0.692503
0
0
0
0
245
0.016775
0
0
3,576
0.244848
9125319261fb94bc69a897401585fdd40320b1d2
25,070
py
Python
train_multi_human.py
wenliangdai/sunets-reproduce
d92efa80e8314aea153d498cce3c9c6e30c252bd
[ "MIT" ]
2
2018-07-02T16:03:07.000Z
2018-07-02T16:03:07.000Z
train_multi_human.py
wenliangdai/sunets-reproduce
d92efa80e8314aea153d498cce3c9c6e30c252bd
[ "MIT" ]
null
null
null
train_multi_human.py
wenliangdai/sunets-reproduce
d92efa80e8314aea153d498cce3c9c6e30c252bd
[ "MIT" ]
null
null
null
import argparse import math import os import pickle import random import sys import numpy as np import torch import torch.backends.cudnn as cudnn from torch import nn from torch.optim import lr_scheduler from torch.utils import data import torchvision.transforms as transforms import transforms as extended_transforms ...
55.835189
210
0.657359
0
0
0
0
0
0
0
0
4,019
0.160311
9125a2258a5cbeeafce52644773c51a924d107ac
392
py
Python
exemplos/exemplo-aula-14-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
exemplos/exemplo-aula-14-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
exemplos/exemplo-aula-14-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
# Apresentação print('Programa para somar 8 valores utilizando vetores/listas') print() # Declaração do vetor valores = [0, 0, 0, 0, 0, 0, 0, 0] # Solicita os valores for i in range(len(valores)): valores[i] = int(input('Informe o valor: ')) # Cálculo da soma soma = 0 for i in range(len(valores)): soma += va...
20.631579
64
0.67602
0
0
0
0
0
0
0
0
208
0.522613
9125c9f61c337477b68228ea1ba426e48ce06b1a
333
py
Python
day3/p1.py
pwicks86/adventofcode2015
fba7cc8f6942f43f5b0226a0ac70365630f14cbd
[ "MIT" ]
null
null
null
day3/p1.py
pwicks86/adventofcode2015
fba7cc8f6942f43f5b0226a0ac70365630f14cbd
[ "MIT" ]
null
null
null
day3/p1.py
pwicks86/adventofcode2015
fba7cc8f6942f43f5b0226a0ac70365630f14cbd
[ "MIT" ]
null
null
null
from collections import defaultdict f = open("input.txt") d = f.read() houses = defaultdict(int,{(0,0):1}) cur = [0,0] for c in d: if c == "<": cur[0] -= 1 if c == ">": cur[0] += 1 if c == "v": cur[1] += 1 if c == "^": cur[1] -= 1 houses[tuple(cur)]+=1 print(len(hou...
18.5
35
0.456456
0
0
0
0
0
0
0
0
23
0.069069
91266dc2fa03da47339e3882e71342b1ee45462b
2,326
py
Python
pbr/config/blend_config.py
NUbots/NUpbr
49b0d2abd15512a93bfe21157269288c9ec4c54d
[ "MIT" ]
1
2019-03-25T04:37:06.000Z
2019-03-25T04:37:06.000Z
pbr/config/blend_config.py
NUbots/NUpbr
49b0d2abd15512a93bfe21157269288c9ec4c54d
[ "MIT" ]
3
2020-07-24T11:55:48.000Z
2022-02-20T20:49:17.000Z
pbr/config/blend_config.py
NUbots/NUpbr
49b0d2abd15512a93bfe21157269288c9ec4c54d
[ "MIT" ]
null
null
null
# Blender-specific Configuration Settings from math import pi render = { "render_engine": "CYCLES", "render": {"cycles_device": "GPU"}, "dimensions": {"resolution": [1280, 1024], "percentage": 100.0}, "sampling": {"cycles_samples": 256, "cycles_preview_samples": 16}, "light_paths": { "tran...
31.432432
85
0.503439
0
0
0
0
0
0
0
0
1,097
0.471625
912692288f987cd8f54127db16d2b577edc80fc1
7,022
py
Python
simglucose/controller/basal_bolus_ctrller.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/controller/basal_bolus_ctrller.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/controller/basal_bolus_ctrller.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
from .base import Controller from .base import Action import numpy as np import pandas as pd import logging from collections import namedtuple from tqdm import tqdm logger = logging.getLogger(__name__) CONTROL_QUEST = 'simglucose/params/Quest.csv' PATIENT_PARA_FILE = 'simglucose/params/vpatient_params.csv' ParamTup = ...
38.582418
99
0.602108
5,661
0.806181
0
0
0
0
0
0
1,742
0.248077
912788fe05c2b0029d03454b315f2758ce890c5a
6,025
py
Python
ceilometer/event/trait_plugins.py
redhat-openstack/ceilometer
9e503d7068889e52e9144079de331ed51676e535
[ "Apache-2.0" ]
1
2016-03-10T06:55:45.000Z
2016-03-10T06:55:45.000Z
ceilometer/event/trait_plugins.py
redhat-openstack/ceilometer
9e503d7068889e52e9144079de331ed51676e535
[ "Apache-2.0" ]
null
null
null
ceilometer/event/trait_plugins.py
redhat-openstack/ceilometer
9e503d7068889e52e9144079de331ed51676e535
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Rackspace Hosting. # # 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...
37.42236
77
0.550539
5,375
0.892116
0
0
2,779
0.461245
0
0
4,301
0.713859
9127b9612983c8643c1eb5911a7a12880ad76607
803
py
Python
web13/jsonapi.py
gongjunhuang/web
9412f6fd7c223174fdb30f4d7a8b61a8e130e329
[ "Apache-2.0" ]
null
null
null
web13/jsonapi.py
gongjunhuang/web
9412f6fd7c223174fdb30f4d7a8b61a8e130e329
[ "Apache-2.0" ]
null
null
null
web13/jsonapi.py
gongjunhuang/web
9412f6fd7c223174fdb30f4d7a8b61a8e130e329
[ "Apache-2.0" ]
null
null
null
from flask import Flask, redirect, url_for, jsonify, request app = Flask(__name__) users = [] ''' Json api 请求form里面Json 返回Json 好处: 1.通信的格式统一,对语言的约束就小了 2.易于做成open api 3.客户端重度渲染 RESTful api Dr. Fielding url 用资源来组织的 名词 /GET /players 拿到所有玩家 /GET /player/id 访问id的玩家的数据 /PUT /players 全量更新 ...
16.387755
60
0.636364
0
0
0
0
394
0.412565
0
0
607
0.635602
91291f525e80342e370d1b3f81196a52f9108a77
786
py
Python
cards/migrations/0012_auto_20180331_1348.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
18
2018-04-15T14:01:25.000Z
2022-03-16T14:57:28.000Z
cards/migrations/0012_auto_20180331_1348.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
null
null
null
cards/migrations/0012_auto_20180331_1348.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
4
2018-04-15T14:16:12.000Z
2020-08-10T14:31:48.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-31 13:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cards', '0011_auto_20180319_1112'), ] operations = [ migrations.AlterField...
25.354839
68
0.577608
627
0.79771
0
0
0
0
0
0
170
0.216285
912a168bff4536c4b4657348252f51f09a3dbc8c
1,776
py
Python
MoMMI/Modules/ss14_nudges.py
T6751/MoMMI
4b9dd0d49c6e2bd82b82a4893fc35475d4e39e9a
[ "MIT" ]
18
2016-08-06T17:31:59.000Z
2021-12-24T13:08:02.000Z
MoMMI/Modules/ss14_nudges.py
T6751/MoMMI
4b9dd0d49c6e2bd82b82a4893fc35475d4e39e9a
[ "MIT" ]
29
2016-08-07T14:03:00.000Z
2022-01-23T21:05:33.000Z
MoMMI/Modules/ss14_nudges.py
T6751/MoMMI
4b9dd0d49c6e2bd82b82a4893fc35475d4e39e9a
[ "MIT" ]
25
2016-08-08T12:56:02.000Z
2022-02-09T07:17:51.000Z
import logging from typing import Match, Any, Dict import aiohttp from discord import Message from MoMMI import comm_event, command, MChannel, always_command logger = logging.getLogger(__name__) @comm_event("ss14") async def ss14_nudge(channel: MChannel, message: Any, meta: str) -> None: try: config: Dict...
27.75
126
0.649212
0
0
0
0
1,576
0.887387
1,513
0.851914
301
0.169482
912b4d4f0a7c8620ff9eef12211953cd7f872472
1,633
py
Python
oxe-api/test/resource/company/test_get_company_taxonomy.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/company/test_get_company_taxonomy.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/company/test_get_company_taxonomy.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
from test.BaseCase import BaseCase class TestGetCompanyTaxonomy(BaseCase): @BaseCase.login def test_ok(self, token): self.db.insert({"id": 1, "name": "My Company"}, self.db.tables["Company"]) self.db.insert({"id": 2, "name": "My Company 2"}, self.db.tables["Company"]) self.db.insert({...
49.484848
102
0.62278
1,595
0.97673
0
0
1,544
0.945499
0
0
475
0.290876
912c1f2c9b394208b14b4781f1f67d739e19f340
539
py
Python
spoon/models/groupmembership.py
mikeboers/Spoon
9fe4a06be7c2c6c307b79e72893e32f2006de4ea
[ "BSD-3-Clause" ]
4
2017-11-05T02:54:39.000Z
2022-03-01T06:01:20.000Z
spoon/models/groupmembership.py
mikeboers/Spoon
9fe4a06be7c2c6c307b79e72893e32f2006de4ea
[ "BSD-3-Clause" ]
null
null
null
spoon/models/groupmembership.py
mikeboers/Spoon
9fe4a06be7c2c6c307b79e72893e32f2006de4ea
[ "BSD-3-Clause" ]
null
null
null
import sqlalchemy as sa from ..core import db class GroupMembership(db.Model): __tablename__ = 'group_memberships' __table_args__ = dict( autoload=True, extend_existing=True, ) user = db.relationship('Account', foreign_keys='GroupMembership.user_id', backref=db.backr...
22.458333
68
0.651206
488
0.90538
0
0
0
0
0
0
145
0.269017
912c4617e4d0718d34c2b278ca0d1aef755136f4
59,222
py
Python
nonlinear/aorta/nonlinearCasesCreation_aorta.py
HaolinCMU/Soft_tissue_tracking
8592b87066ddec84a3aefc18240303cb085cf34c
[ "MIT" ]
3
2020-08-25T05:10:34.000Z
2020-09-18T01:50:33.000Z
nonlinear/aorta/nonlinearCasesCreation_aorta.py
HaolinCMU/Soft_tissue_tracking
8592b87066ddec84a3aefc18240303cb085cf34c
[ "MIT" ]
null
null
null
nonlinear/aorta/nonlinearCasesCreation_aorta.py
HaolinCMU/Soft_tissue_tracking
8592b87066ddec84a3aefc18240303cb085cf34c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 25 13:08:16 2020 @author: haolinl """ import copy import os import time import numpy as np import random import scipy.io # For extracting data from .mat file class inputFileGenerator(object): """ Generate input file for Abaqus. Unit s...
46.594807
238
0.590473
45,001
0.75987
0
0
0
0
0
0
26,649
0.449985
912dd1c1fee777c8a3a588b4ebb22c1cb4588df4
1,790
py
Python
data/cache/test/test_cache.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
data/cache/test/test_cache.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
data/cache/test/test_cache.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import pytest from mock import patch from data.cache import InMemoryDataModelCache, NoopDataModelCache, MemcachedModelCache from data.cache.cache_key import CacheKey class MockClient(object): def __init__(self, server, **kwargs): self.data = {} def get(self, key, default=None): return self....
32.545455
89
0.634078
248
0.138547
0
0
369
0.206145
0
0
268
0.149721
912ed2b516655605fdb89fa39bcc4f1ec0c3ed2a
2,306
py
Python
Packs/HealthCheck/Scripts/HealthCheckIncidentsCreatedMonthly/HealthCheckIncidentsCreatedMonthly.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/HealthCheck/Scripts/HealthCheckIncidentsCreatedMonthly/HealthCheckIncidentsCreatedMonthly.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/HealthCheck/Scripts/HealthCheckIncidentsCreatedMonthly/HealthCheckIncidentsCreatedMonthly.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 ctx = demisto.context() dataFromCtx = ctx.get("widgets") if not dataFromCtx: incident = demisto.incidents()[0] accountName = incident.get('account') accountName = f"acc_{accountName}" if accountName != "" else "" ...
27.452381
110
0.423677
0
0
0
0
0
0
0
0
712
0.30876
912f4cb2d5b6031823d833fa3533c0b3fca9c0fd
13,099
py
Python
Bert_training.py
qzlydao/Bert_Sentiment_Analysis
2da2d0c6da2cdb55f37ff0a7e95f0ea4876b2d61
[ "Apache-2.0" ]
null
null
null
Bert_training.py
qzlydao/Bert_Sentiment_Analysis
2da2d0c6da2cdb55f37ff0a7e95f0ea4876b2d61
[ "Apache-2.0" ]
null
null
null
Bert_training.py
qzlydao/Bert_Sentiment_Analysis
2da2d0c6da2cdb55f37ff0a7e95f0ea4876b2d61
[ "Apache-2.0" ]
null
null
null
from torch.utils.data import DataLoader from dataset.wiki_dataset import BERTDataset from models.bert_model import * from tqdm import tqdm import numpy as np import pandas as pd import os config = {} config['train_corpus_path'] = './corpus/train_wiki.txt' config['test_corpus_path'] = './corpus/test_wiki.txt' config[...
41.062696
130
0.579128
11,834
0.874843
0
0
0
0
0
0
2,951
0.218156
913073679e4abf540c0706db4723633ae6619d7d
5,757
py
Python
python/triton/language/random.py
appliedml85/triton
8bedcce9befbbe95d8fe0a082718edc4050e2831
[ "MIT" ]
1
2021-09-03T15:58:49.000Z
2021-09-03T15:58:49.000Z
python/triton/language/random.py
appliedml85/triton
8bedcce9befbbe95d8fe0a082718edc4050e2831
[ "MIT" ]
null
null
null
python/triton/language/random.py
appliedml85/triton
8bedcce9befbbe95d8fe0a082718edc4050e2831
[ "MIT" ]
null
null
null
import triton import triton.language as tl # Notes # 1. triton doesn't support uint32, so we use int32 instead and benefit from the fact that two's complement operations are equivalent to uint operations. # 2. multiply_low_high is currently inefficient. # 3. Even though technically philox sampling outputs int, in man...
27.545455
153
0.639396
0
0
0
0
5,313
0.922876
0
0
2,492
0.432864
9130c59838ca9f05494c451b3ac65479a741bec6
265
py
Python
pyctcdecode/__init__.py
kensho-technologies/pyctcdecode
c33f94bce283ea9af79d30e2b815e3bf34a137c9
[ "Apache-2.0" ]
203
2021-06-08T22:49:56.000Z
2022-03-31T11:55:21.000Z
pyctcdecode/__init__.py
kensho-technologies/pyctcdecode
c33f94bce283ea9af79d30e2b815e3bf34a137c9
[ "Apache-2.0" ]
40
2021-06-11T20:58:07.000Z
2022-03-23T10:58:27.000Z
pyctcdecode/__init__.py
kensho-technologies/pyctcdecode
c33f94bce283ea9af79d30e2b815e3bf34a137c9
[ "Apache-2.0" ]
39
2021-06-09T21:03:35.000Z
2022-03-26T13:14:23.000Z
# Copyright 2021-present Kensho Technologies, LLC. from .alphabet import Alphabet # noqa from .decoder import BeamSearchDecoderCTC, build_ctcdecoder # noqa from .language_model import LanguageModel # noqa __package_name__ = "pyctcdecode" __version__ = "0.3.0"
29.444444
67
0.792453
0
0
0
0
0
0
0
0
88
0.332075
9130dea9e896e245175b22a313c12b30eff43fdf
137
py
Python
wumpus/start_server.py
marky1991/Legend-of-Wumpus
b53f4a520cea274ddb4c40c6ab4f42a68008896f
[ "MIT" ]
null
null
null
wumpus/start_server.py
marky1991/Legend-of-Wumpus
b53f4a520cea274ddb4c40c6ab4f42a68008896f
[ "MIT" ]
null
null
null
wumpus/start_server.py
marky1991/Legend-of-Wumpus
b53f4a520cea274ddb4c40c6ab4f42a68008896f
[ "MIT" ]
null
null
null
from wumpus.server import Server from circuits import Debugger s = Server("0.0.0.0", 50551) + Debugger() s.run() import sys sys.exit(1)
17.125
41
0.722628
0
0
0
0
0
0
0
0
9
0.065693
9130e2a60db5f7dd70d5dc6252d49d770a1edb17
6,567
py
Python
platypush/backend/joystick/linux/__init__.py
BlackLight/platypush
6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a
[ "MIT" ]
228
2018-01-30T11:17:09.000Z
2022-03-24T11:22:26.000Z
platypush/backend/joystick/linux/__init__.py
BlackLight/platypush
6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a
[ "MIT" ]
167
2017-12-11T19:35:38.000Z
2022-03-27T14:45:30.000Z
platypush/backend/joystick/linux/__init__.py
BlackLight/runbullet
8d26c8634d2677b4402f0a21b9ab8244b44640db
[ "MIT" ]
16
2018-05-03T07:31:56.000Z
2021-12-05T19:27:37.000Z
import array import struct import time from fcntl import ioctl from typing import IO from platypush.backend import Backend from platypush.message.event.joystick import JoystickConnectedEvent, JoystickDisconnectedEvent, \ JoystickButtonPressedEvent, JoystickButtonReleasedEvent, JoystickAxisEvent class JoystickLin...
34.563158
115
0.536166
6,263
0.953708
0
0
0
0
0
0
2,032
0.309426
91319c7d1f44146497a5047e81aae4b710f7a353
10,043
py
Python
src/modules/sensors/vehicle_magnetometer/mag_compensation/python/mag_compensation.py
SaxionMechatronics/Firmware
7393d5d7610dc8d2cb64d90a5359b6c561fb642a
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
src/modules/sensors/vehicle_magnetometer/mag_compensation/python/mag_compensation.py
SaxionMechatronics/Firmware
7393d5d7610dc8d2cb64d90a5359b6c561fb642a
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
src/modules/sensors/vehicle_magnetometer/mag_compensation/python/mag_compensation.py
SaxionMechatronics/Firmware
7393d5d7610dc8d2cb64d90a5359b6c561fb642a
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ File: mag_compensation.py Author: Tanja Baumann Email: [email protected] Github: https://github.com/baumanta Description: Computes linear coefficients for mag compensation from thrust and current Usage: python mag_compensation.py /path/to/log/logfile.ulg curr...
36.787546
279
0.685054
0
0
0
0
0
0
0
0
2,772
0.276013
9131fc3d32e64957b9b0364448ce5a53a40a4303
110
py
Python
app.py
19857625778/watchlist
284e3f814394d0fda6e262ab84177a493027c19e
[ "MIT" ]
null
null
null
app.py
19857625778/watchlist
284e3f814394d0fda6e262ab84177a493027c19e
[ "MIT" ]
null
null
null
app.py
19857625778/watchlist
284e3f814394d0fda6e262ab84177a493027c19e
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(_name_) @app.route('/') def hello(): return 'welcome to my watchlist'
18.333333
36
0.690909
0
0
0
0
65
0.590909
0
0
28
0.254545
913206ffbcd62d973e6003afaac405c6a7ea1d3b
524
py
Python
portfolio_optimization/constants.py
AI-Traiding-Team/paired_trading
72d4dd0071314e2f0efaa26931ca7339199fc998
[ "MIT" ]
1
2022-03-26T23:21:51.000Z
2022-03-26T23:21:51.000Z
portfolio_optimization/constants.py
AI-Traiding-Team/paired_trading
72d4dd0071314e2f0efaa26931ca7339199fc998
[ "MIT" ]
null
null
null
portfolio_optimization/constants.py
AI-Traiding-Team/paired_trading
72d4dd0071314e2f0efaa26931ca7339199fc998
[ "MIT" ]
3
2021-12-07T07:39:43.000Z
2022-01-24T05:05:55.000Z
import os path1 = "outputs" path2 = "outputs/_imgs" path3 = "outputs/max_sharpe_weights" path4 = "outputs/opt_portfolio_trades" try: os.mkdir(path1) except OSError: print ("Директория %s уже создана" % path1) else: print ("Успешно создана директория %s " % path1) try: os.makedirs(path2) os.makedi...
20.153846
52
0.704198
0
0
0
0
0
0
0
0
322
0.521036
91329b52b2eb8891b64c02d1b241dca7cd47466e
26,007
py
Python
mypy/transformtype.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
1
2019-06-27T11:34:27.000Z
2019-06-27T11:34:27.000Z
mypy/transformtype.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
mypy/transformtype.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
"""Transform classes for runtime type checking.""" from typing import Undefined, List, Set, Any, cast, Tuple, Dict from mypy.nodes import ( TypeDef, Node, FuncDef, VarDef, Block, Var, ExpressionStmt, TypeInfo, SuperExpr, NameExpr, CallExpr, MDEF, MemberExpr, ReturnStmt, AssignmentStmt, TypeExpr, PassStmt,...
39.285498
79
0.560541
24,940
0.958973
0
0
0
0
0
0
7,602
0.292306
9133898a696d152066b05333d948605fe60ac07e
988
py
Python
jazzpos/admin.py
AhmadManzoor/jazzpos
7b771095b8df52d036657f33f36a97efb575d36c
[ "MIT" ]
5
2015-12-05T15:39:51.000Z
2020-09-16T20:14:29.000Z
jazzpos/admin.py
AhmadManzoor/jazzpos
7b771095b8df52d036657f33f36a97efb575d36c
[ "MIT" ]
null
null
null
jazzpos/admin.py
AhmadManzoor/jazzpos
7b771095b8df52d036657f33f36a97efb575d36c
[ "MIT" ]
2
2019-11-23T17:47:46.000Z
2022-01-14T11:05:21.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django_tablib.admin import TablibAdmin from jazzpos.models import Customer, Patient, Store, CustomerType, StoreSettings from jazzpos.models import UserProfile class CustomerAdmin(TablibAd...
26
80
0.798583
341
0.345142
0
0
0
0
0
0
20
0.020243
9134284163c48ec784f6cf8bb5ff49c9902c49ec
2,760
py
Python
classification/imaterialist_challenge_furniture_2018/configs/train/train_inceptionresnetv2_350_ssd_like_v3.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
11
2018-04-07T17:49:58.000Z
2022-03-15T07:18:18.000Z
classification/imaterialist_challenge_furniture_2018/configs/train/train_inceptionresnetv2_350_ssd_like_v3.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
null
null
null
classification/imaterialist_challenge_furniture_2018/configs/train/train_inceptionresnetv2_350_ssd_like_v3.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
null
null
null
# Basic training configuration file from torch.optim import RMSprop from torch.optim.lr_scheduler import MultiStepLR from torchvision.transforms import RandomHorizontalFlip, Compose from torchvision.transforms import RandomResizedCrop, RandomAffine, RandomApply from torchvision.transforms import ColorJitter, ToTensor, ...
30
87
0.659058
0
0
0
0
0
0
0
0
295
0.106884
913439b2a09a820bfc3faefc3e105469f128a1a8
1,352
py
Python
examples/qmmm/02-mcscf.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
examples/qmmm/02-mcscf.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
examples/qmmm/02-mcscf.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
#!/usr/bin/env python # # Author: Qiming Sun <[email protected]> # ''' A simple example to run MCSCF with background charges. ''' import numpy from pyscf import gto, scf, mcscf, qmmm mol = gto.M(atom=''' C 1.1879 -0.3829 0.0000 C 0.0000 0.5526 0.0000 O -1.1867 -0.2472 0.0000 H -1.9237 0...
22.915254
76
0.637574
0
0
0
0
0
0
0
0
755
0.558432
9134f2e89b9311a8b0265758c45e89d220be134a
5,948
py
Python
mtp_send_money/apps/send_money/utils.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-send-money
80db0cf5f384f93d35387a757605cfddbc98935f
[ "MIT" ]
null
null
null
mtp_send_money/apps/send_money/utils.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-send-money
80db0cf5f384f93d35387a757605cfddbc98935f
[ "MIT" ]
null
null
null
mtp_send_money/apps/send_money/utils.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-send-money
80db0cf5f384f93d35387a757605cfddbc98935f
[ "MIT" ]
null
null
null
import datetime from decimal import Decimal, ROUND_DOWN, ROUND_UP import logging import re from django.conf import settings from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.utils import formats from django.utils.cache import patch_cache_control from djang...
30.659794
102
0.714526
499
0.08388
0
0
0
0
0
0
1,256
0.211128
913583ff296aa5d8ee63fb484726346d1b7a2c13
151
py
Python
src/zmbrelev/config.py
Zumbi-ML/zmbRELEV
e6a6f789804d7230415f390da905e94ae2ab27f5
[ "BSD-2-Clause" ]
null
null
null
src/zmbrelev/config.py
Zumbi-ML/zmbRELEV
e6a6f789804d7230415f390da905e94ae2ab27f5
[ "BSD-2-Clause" ]
null
null
null
src/zmbrelev/config.py
Zumbi-ML/zmbRELEV
e6a6f789804d7230415f390da905e94ae2ab27f5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- import os this_file_path = os.path.dirname(os.path.realpath(__file__)) MODELS_DIR = os.path.join(this_file_path, "models/")
18.875
60
0.708609
0
0
0
0
0
0
0
0
32
0.211921
9136160d5624a0c97151f5a92ef4449fe0be2b28
1,951
py
Python
ArraysP2.py
EdgarVallejo96/pyEdureka
f103f67ed4f9eee6ab924237e9d94a489e602c7c
[ "MIT" ]
null
null
null
ArraysP2.py
EdgarVallejo96/pyEdureka
f103f67ed4f9eee6ab924237e9d94a489e602c7c
[ "MIT" ]
null
null
null
ArraysP2.py
EdgarVallejo96/pyEdureka
f103f67ed4f9eee6ab924237e9d94a489e602c7c
[ "MIT" ]
null
null
null
import array as arr a = arr.array('i', [ 1,2,3,4,5,6]) print(a) # Accessing elements print(a[2]) print(a[-2]) # BASIC ARRAY OPERATIONS # Find length of array print() print('Length of array') print(len(a)) # Adding elments to an array # append() to add a single element at the end of an array # extend() to add more th...
18.759615
95
0.664787
0
0
0
0
0
0
0
0
1,054
0.540236
9136706832c51a492458e311e9d6b0efd4abea13
2,931
py
Python
vesper/mpg_ranch/nfc_detector_low_score_classifier_1_0/classifier.py
RichardLitt/Vesper
5360844f42a06942e7684121c650b08cf8616285
[ "MIT" ]
29
2017-07-10T14:49:15.000Z
2022-02-02T23:14:38.000Z
vesper/mpg_ranch/nfc_detector_low_score_classifier_1_0/classifier.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
167
2015-03-17T14:45:22.000Z
2022-03-30T21:00:05.000Z
vesper/mpg_ranch/nfc_detector_low_score_classifier_1_0/classifier.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
4
2015-02-06T03:30:27.000Z
2020-12-27T08:38:52.000Z
""" Module containing low score classifier for MPG Ranch NFC detectors. An instance of the `Classifier` class of this module assigns the `LowScore` classification to a clip if the clip has no `Classification` annotation and has a `DetectorScore` annotation whose value is less than a threshold. This classifier is inte...
28.735294
77
0.616172
1,771
0.604231
0
0
0
0
0
0
874
0.298192
91374929866f2c29362313f46503faaf0a90ed51
1,506
py
Python
setup.py
yitzikc/athena2pd
d2d6b886a70e958f51d90103600572152eaa7bb9
[ "MIT" ]
1
2020-04-05T18:41:17.000Z
2020-04-05T18:41:17.000Z
setup.py
yitzikc/athena2pd
d2d6b886a70e958f51d90103600572152eaa7bb9
[ "MIT" ]
null
null
null
setup.py
yitzikc/athena2pd
d2d6b886a70e958f51d90103600572152eaa7bb9
[ "MIT" ]
1
2021-04-22T09:22:31.000Z
2021-04-22T09:22:31.000Z
from setuptools import setup, find_packages def find_version(path): import re # path shall be a plain ascii tetxt file s = open(path, 'rt').read() version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", s, re.M) if version_match: return version_match.group(1) raise RuntimeErro...
33.466667
119
0.653386
0
0
0
0
0
0
0
0
660
0.438247
913758ab43b30fce640a96f90c8472af68facfb1
117
py
Python
mmdet/core/ufp/__init__.py
PuAnysh/UFPMP-Det
6809b4f8de3aa1d013a3f86114bc3e8496d896a9
[ "Apache-2.0" ]
9
2022-01-18T14:42:39.000Z
2022-02-14T02:57:02.000Z
mmdet/core/ufp/__init__.py
PuAnysh/UFPMP-Det
6809b4f8de3aa1d013a3f86114bc3e8496d896a9
[ "Apache-2.0" ]
1
2022-03-28T11:51:49.000Z
2022-03-31T14:24:02.000Z
mmdet/core/ufp/__init__.py
PuAnysh/UFPMP-Det
6809b4f8de3aa1d013a3f86114bc3e8496d896a9
[ "Apache-2.0" ]
null
null
null
from .spp import * from .unified_foreground_packing import * __all__ = [ 'phsppog', 'UnifiedForegroundPacking' ]
16.714286
41
0.74359
0
0
0
0
0
0
0
0
35
0.299145