hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
376e087b68a3598da36841defe85a1e107a09f66
2,906
py
Python
focus_balancer/dashboard_node.py
oshev/focus-balancer
30107e99f876fcaab12871d3e4f507c67f9861fb
[ "MIT" ]
null
null
null
focus_balancer/dashboard_node.py
oshev/focus-balancer
30107e99f876fcaab12871d3e4f507c67f9861fb
[ "MIT" ]
null
null
null
focus_balancer/dashboard_node.py
oshev/focus-balancer
30107e99f876fcaab12871d3e4f507c67f9861fb
[ "MIT" ]
null
null
null
from enum import Enum import re class NodeType(Enum): CATEGORY = 1 LEAF = 2 class DashboardNode: def __init__(self, node_type: NodeType, name: str=None, children: list=None, link: str=None, day_goal: int=None, week_goal: int=None, title_regex: str=None, tags: list=None): self.n...
33.022727
99
0.577426
a6ded282097ce889258d52d21f84fcf4990f2004
44
py
Python
objloader/__init__.py
isaaclepes/pypboy
2e283172f0232993fda93db3b29358351d0e94eb
[ "MIT" ]
null
null
null
objloader/__init__.py
isaaclepes/pypboy
2e283172f0232993fda93db3b29358351d0e94eb
[ "MIT" ]
null
null
null
objloader/__init__.py
isaaclepes/pypboy
2e283172f0232993fda93db3b29358351d0e94eb
[ "MIT" ]
null
null
null
from objloader import OBJ __all__ = ['OBJ']
14.666667
25
0.727273
e0505c349f3abb2a118180a5bc1e566f4be75d69
4,199
py
Python
HyperV/WS2012R2/stress/PerfFIOTest.py
microsoft/FreeBSD-Test-Automation
e96a84054d771ece83908299d37e3c02a19f98b3
[ "Apache-2.0" ]
1
2020-01-16T08:45:59.000Z
2020-01-16T08:45:59.000Z
HyperV/WS2012R2/stress/PerfFIOTest.py
LIS/FreeBSD-Test-Automation
e96a84054d771ece83908299d37e3c02a19f98b3
[ "Apache-2.0" ]
null
null
null
HyperV/WS2012R2/stress/PerfFIOTest.py
LIS/FreeBSD-Test-Automation
e96a84054d771ece83908299d37e3c02a19f98b3
[ "Apache-2.0" ]
1
2021-08-03T00:22:40.000Z
2021-08-03T00:22:40.000Z
#!/usr/bin/env python import sys import os import time import test_class import subprocess import socket DEFAULT_COOL_DOWN_TIME = 5 class PerfFIOTest(test_class.TestClass): def _set_up_vm(self, vm_name, args): # this piece of code will be executed first thing after the VM is # booted up ...
31.810606
100
0.471779
ad7c4d0c1c061241cabaa7e9c1c360528629eed7
4,087
py
Python
tools/third_party/pytest/testing/test_pastebin.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
9
2019-04-01T10:57:10.000Z
2021-12-02T11:12:06.000Z
tools/third_party/pytest/testing/test_pastebin.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
33
2019-03-21T10:18:37.000Z
2022-03-23T13:21:40.000Z
tools/third_party/pytest/testing/test_pastebin.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
# encoding: utf-8 from __future__ import absolute_import, division, print_function import sys import pytest class TestPasteCapture(object): @pytest.fixture def pastebinlist(self, monkeypatch, request): pastebinlist = [] plugin = request.config.pluginmanager.getplugin("pastebin") monke...
30.729323
76
0.54343
0e9d4aa5315bc3f8038fe02d5eb0675f63599a11
22,254
py
Python
projects/scheme/scheme/scheme.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
projects/scheme/scheme/scheme.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
projects/scheme/scheme/scheme.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
"""A Scheme interpreter and its read-eval-print loop.""" from __future__ import print_function # Python 2 compatibility from scheme_builtins import * from scheme_reader import * from ucb import main, trace ############## # Eval/Apply # ############## def scheme_eval(expr, env, _=None): # Optional third argument is...
32.630499
108
0.607936
133ce9612aa3cc4e7a0c52bd416397423bdda07b
7,033
py
Python
mesonbuild/compilers/mixins/clang.py
danielcjacobs/meson
e58b3adc7044980bbddca1ad9674ac7b0c5bac0a
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/mixins/clang.py
danielcjacobs/meson
e58b3adc7044980bbddca1ad9674ac7b0c5bac0a
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/mixins/clang.py
danielcjacobs/meson
e58b3adc7044980bbddca1ad9674ac7b0c5bac0a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The meson development team # # 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 ...
43.147239
136
0.647377
b1c4d271f2f99f55087cd128f4eda0798a79ed85
1,895
py
Python
Chapter09/B06246_09_01-tiles.py
mapenthusiast/QGIS-Python-Programming-Cookbook-Second-Edition
1b2fefdb09f614a2005976a451f882a198c6c9c5
[ "MIT" ]
43
2017-03-27T18:58:26.000Z
2022-03-25T15:29:45.000Z
Chapter09/B06246_09_01-tiles.py
mapenthusiast/QGIS-Python-Programming-Cookbook-Second-Edition
1b2fefdb09f614a2005976a451f882a198c6c9c5
[ "MIT" ]
2
2018-07-02T09:23:47.000Z
2018-08-23T13:57:41.000Z
Chapter09/B06246_09_01-tiles.py
mapenthusiast/QGIS-Python-Programming-Cookbook-Second-Edition
1b2fefdb09f614a2005976a451f882a198c6c9c5
[ "MIT" ]
31
2017-03-08T06:37:22.000Z
2021-12-17T21:51:30.000Z
# Creating Tiles from a QGIS Map # https://github.com/GeospatialPython/Learn/raw/master/countries.zip # Requires QMetaTiles plugin from PyQt4.QtCore import * from PyQt4.QtGui import * import QMetaTiles import random def randomColor(mix=(255,255,255)): red = random.randrange(0,256) green = random.randrange(0...
24.934211
77
0.637467
768bf9df2ec109ca8730a9783868a85d37159f0a
1,434
py
Python
DataSim/globals.py
interaction-lab/RE-BT-Espresso
03ee50af3728a07ced5da00b38124e41994facbc
[ "MIT" ]
null
null
null
DataSim/globals.py
interaction-lab/RE-BT-Espresso
03ee50af3728a07ced5da00b38124e41994facbc
[ "MIT" ]
26
2021-08-24T15:54:25.000Z
2021-12-10T20:37:45.000Z
DataSim/globals.py
interaction-lab/RE-BT-Espresso
03ee50af3728a07ced5da00b38124e41994facbc
[ "MIT" ]
null
null
null
import os import shutil student_cfg_path = 'configs/student_config.json' robot_cfg_path = 'configs/robot_config.json' world_cfg_path = 'configs/world_config.json' output_filename = "simulated_data.csv" global_output_folder = "sim_data/" config_folder_name = "" num_rows = 20000 csv_writer = None env_va...
24.724138
73
0.713389
f94bd1837d3914e1829d1c9d296c2ff678c85ad8
3,927
py
Python
biopipen/namespaces/plot.py
pwwang/bioprocs
4055a62eed8ef4fba0a5f1be430af72a9e22143d
[ "MIT" ]
4
2018-01-16T08:25:53.000Z
2019-01-03T23:41:31.000Z
biopipen/namespaces/plot.py
pwwang/bioprocs
4055a62eed8ef4fba0a5f1be430af72a9e22143d
[ "MIT" ]
3
2018-05-22T20:11:46.000Z
2019-08-19T17:37:04.000Z
biopipen/namespaces/plot.py
pwwang/bioprocs
4055a62eed8ef4fba0a5f1be430af72a9e22143d
[ "MIT" ]
1
2019-01-14T23:14:24.000Z
2019-01-14T23:14:24.000Z
"""Plotting data""" from email import header from ..core.proc import Proc from ..core.config import config class VennDiagram(Proc): """Plot Venn diagram Needs `ggVennDiagram` Input: infile: The input file for data If `envs.intype` is raw, it should be a data frame with row names ...
34.752212
80
0.562007
78b4f82d96208291bc9b3a4e9df8f61e5a959be9
48,814
py
Python
dataset.py
Mrhsk/cpsc2021
dcb7fb23edf7df79549279d053e4a8cadab3b268
[ "MIT" ]
1
2021-12-21T11:59:57.000Z
2021-12-21T11:59:57.000Z
dataset.py
Mrhsk/cpsc2021
dcb7fb23edf7df79549279d053e4a8cadab3b268
[ "MIT" ]
null
null
null
dataset.py
Mrhsk/cpsc2021
dcb7fb23edf7df79549279d053e4a8cadab3b268
[ "MIT" ]
null
null
null
""" data generator for feeding data into pytorch models NOTE ---- In order to avoid potential error in the methods of slicing signals and rr intervals, one can check using the following code ```python from cfg import TrainCfg ds_train = CPSC2021(TrainCfg, task="qrs_detection", training=True) ds_val = CPSC2021(TrainC...
39.208032
134
0.579567
d8d52d395d851686cc664e4b76637295baa692d0
70,116
py
Python
conda_build/utils.py
odidev/conda-build
61624e603f9185528e1f4e5db948e8964ea0de9e
[ "BSD-3-Clause" ]
null
null
null
conda_build/utils.py
odidev/conda-build
61624e603f9185528e1f4e5db948e8964ea0de9e
[ "BSD-3-Clause" ]
null
null
null
conda_build/utils.py
odidev/conda-build
61624e603f9185528e1f4e5db948e8964ea0de9e
[ "BSD-3-Clause" ]
1
2021-01-29T05:22:22.000Z
2021-01-29T05:22:22.000Z
from __future__ import absolute_import, division, print_function from collections import OrderedDict, defaultdict import contextlib import fnmatch import hashlib import json from locale import getpreferredencoding import libarchive import logging import logging.config import mmap import operator import os from os.path...
36.329534
141
0.589594
fde3c29e5e790269cf5297176503f5264ee1063a
2,342
py
Python
python/pyspark/shell.py
xieyuchen/spark
62c557609929982eeec170fe12f810bedfcf97f2
[ "Apache-2.0" ]
1
2019-06-19T06:39:38.000Z
2019-06-19T06:39:38.000Z
python/pyspark/shell.py
xieyuchen/spark
62c557609929982eeec170fe12f810bedfcf97f2
[ "Apache-2.0" ]
null
null
null
python/pyspark/shell.py
xieyuchen/spark
62c557609929982eeec170fe12f810bedfcf97f2
[ "Apache-2.0" ]
11
2016-03-18T16:17:45.000Z
2021-08-05T10:04:58.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 us...
33.942029
90
0.725021
4e932020ad8e9cf5442e682787bce35d96fc24fc
1,027
py
Python
re/02-group-match-number.py
arvimal/python-standard-library
b89f261479951ca47512cb83ccb7e927eff740dc
[ "MIT" ]
null
null
null
re/02-group-match-number.py
arvimal/python-standard-library
b89f261479951ca47512cb83ccb7e927eff740dc
[ "MIT" ]
null
null
null
re/02-group-match-number.py
arvimal/python-standard-library
b89f261479951ca47512cb83ccb7e927eff740dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re def group_match(num=None): if num is None: print("The function `group_match` takes a number.") else: group_num_re = re.compile("(\d\d\d)-(\d\d\d)-(\d\d\d\d)") num_search = group_num_re.search(num) try: if num_search.group(): ...
31.121212
91
0.570594
919d0ca8ec0e75118b1e722cb44bdf7927e1d18e
25,157
py
Python
Macros/Python/ConfigParser.py
rec/dmxis
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
2
2019-05-26T15:11:18.000Z
2021-12-27T21:05:32.000Z
Macros/Python/ConfigParser.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
Macros/Python/ConfigParser.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
"""Configuration file parser. A setup file consists of sections, lead by a "[section]" header, and followed by "name: value" entries, with continuations and such in the style of RFC 822. The option values can contain format strings which refer to other values in the same section, or values in a special [DEFAUL...
37.547761
81
0.548197
c6ab4dd3a8df79087bf3f08bf3981b53497a5f32
939
py
Python
tests/Python/OWASP_a4/cwe_22/unsafe/cwe_22__I_readline__F_no_filtering__S_file_exists__1-1.4_File1.py
usnistgov/VTSG
f4477a78ec19f7e9757da0321cb5a69428e358cf
[ "MIT" ]
null
null
null
tests/Python/OWASP_a4/cwe_22/unsafe/cwe_22__I_readline__F_no_filtering__S_file_exists__1-1.4_File1.py
usnistgov/VTSG
f4477a78ec19f7e9757da0321cb5a69428e358cf
[ "MIT" ]
1
2022-01-31T22:22:55.000Z
2022-01-31T22:22:55.000Z
tests/Python/OWASP_a4/cwe_22/unsafe/cwe_22__I_readline__F_no_filtering__S_file_exists__1-1.4_File1.py
usnistgov/VTSG
f4477a78ec19f7e9757da0321cb5a69428e358cf
[ "MIT" ]
null
null
null
''' input: direct user input in string no filtering sink: check if a file exists ''' ''' Created by Paul E. Black and William Mentzer 2020 This software was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title ...
21.340909
81
0.690096
c2be57c9a2d345979b50f3483a3d60d29929a4df
849
py
Python
SysColegioJD/JuanDiegoSys/urls.py
WebColegioJD/Proyecto
5003edd73b99a11dd3f18614413b298631198764
[ "bzip2-1.0.6" ]
null
null
null
SysColegioJD/JuanDiegoSys/urls.py
WebColegioJD/Proyecto
5003edd73b99a11dd3f18614413b298631198764
[ "bzip2-1.0.6" ]
2
2019-11-17T02:05:50.000Z
2019-11-17T02:05:51.000Z
SysColegioJD/JuanDiegoSys/urls.py
WebColegioJD/Proyecto
5003edd73b99a11dd3f18614413b298631198764
[ "bzip2-1.0.6" ]
null
null
null
"""ProyectoPrueba URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
32.653846
77
0.732627
5fd6e0e57dad32338ffaf5d7d8d370751556e0af
1,802
py
Python
openGaussBase/testcase/TOOLS/INTERNAL_TOOLS/gs_ctl/Opengauss_Function_Tools_gs_ctl_Case0058.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/INTERNAL_TOOLS/gs_ctl/Opengauss_Function_Tools_gs_ctl_Case0058.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/INTERNAL_TOOLS/gs_ctl/Opengauss_Function_Tools_gs_ctl_Case0058.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
32.178571
84
0.657048
c8970885a792e991ff04bfc479b28eed09704685
488
py
Python
operations/operation.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
operations/operation.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
operations/operation.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
import abc class Operation(abc.ABC): """ Abstract Base Class to represent an operation following Command Design Pattern """ NAN = float('nan') @abc.abstractmethod def add_operand(self, operand, tag): """ Allows operands to be added to the given operator :param operand...
27.111111
82
0.653689
95a0debed112e4adf7ded86ea3b4b44adb0a4ec6
1,172
py
Python
arch/device.py
BlueYangDroid/test-python-appium-android
1a5fac08ddc8c8738092ae7ee341c29bdfd63da2
[ "MIT" ]
1
2018-08-30T06:59:00.000Z
2018-08-30T06:59:00.000Z
arch/device.py
BlueYangDroid/test-python-appium-android
1a5fac08ddc8c8738092ae7ee341c29bdfd63da2
[ "MIT" ]
null
null
null
arch/device.py
BlueYangDroid/test-python-appium-android
1a5fac08ddc8c8738092ae7ee341c29bdfd63da2
[ "MIT" ]
1
2020-01-08T14:10:43.000Z
2020-01-08T14:10:43.000Z
from arch import adb from utils.pylog import Log as L TAG = 'Device' class Device(object): def __init__(self, params={}): super(Device, self).__init__() self._os_name = params.get("os_name", "Android") self._os_version = params.get("os_version", "4.4") self._ip = params.get("ip",...
29.3
78
0.581058
0f93f82bdb671fa79f0049ebc33d52fc89dda407
1,631
py
Python
fixture/session.py
BarablinVS/python_training
56f1f390323fea6e0d5c1982fd6a021dc11cc652
[ "Apache-2.0" ]
null
null
null
fixture/session.py
BarablinVS/python_training
56f1f390323fea6e0d5c1982fd6a021dc11cc652
[ "Apache-2.0" ]
null
null
null
fixture/session.py
BarablinVS/python_training
56f1f390323fea6e0d5c1982fd6a021dc11cc652
[ "Apache-2.0" ]
null
null
null
__author__ = 'viktor' class SessionHelper: def __init__(self, app): self.app = app def login(self, username, password): wd = self.app.wd self.app.open_home_page() wd.find_element_by_name("pass").click() wd.find_element_by_name("user").clear() wd.f...
29.654545
89
0.58553
0ef3c7f60ac42a3fafe796541cf8caf0b0dfa70b
18,117
py
Python
typingtester/accounts/tests.py
AmirMohammad2003/TypingWebsite
4f45e88dfdd35666c0028fc53d22197014505226
[ "MIT" ]
2
2022-01-23T10:04:19.000Z
2022-01-23T10:21:45.000Z
typingtester/accounts/tests.py
AmirMohammad2003/TypingWebsite
4f45e88dfdd35666c0028fc53d22197014505226
[ "MIT" ]
null
null
null
typingtester/accounts/tests.py
AmirMohammad2003/TypingWebsite
4f45e88dfdd35666c0028fc53d22197014505226
[ "MIT" ]
null
null
null
"""accounts.tests Test Cases Defined for Accounts Application """ import json from django.core import mail from django.test import TestCase from django.contrib.auth import get_user_model from django.utils.http import urlsafe_base64_encode class LoginAndLogoutTestCases(TestCase): """Login and Logout Test Cases""...
38.302326
78
0.610421
617dcae13d68ffc59e9a93ca194648833d7a9486
2,789
py
Python
mysite/mysite/settings.py
kubapok/django-socialnetwork-app
a20436a307bf74ad239fd6d540999056265da1fe
[ "MIT" ]
null
null
null
mysite/mysite/settings.py
kubapok/django-socialnetwork-app
a20436a307bf74ad239fd6d540999056265da1fe
[ "MIT" ]
null
null
null
mysite/mysite/settings.py
kubapok/django-socialnetwork-app
a20436a307bf74ad239fd6d540999056265da1fe
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
25.354545
71
0.701327
eba66dfbc7ca5333aca0b6054d4f4a520a0e4acb
849
py
Python
test/test_rep_target.py
FengyunPan2/python-harborclient
69a55fdb92855d5080232a6e77f3ec9899624071
[ "Apache-2.0" ]
null
null
null
test/test_rep_target.py
FengyunPan2/python-harborclient
69a55fdb92855d5080232a6e77f3ec9899624071
[ "Apache-2.0" ]
null
null
null
test/test_rep_target.py
FengyunPan2/python-harborclient
69a55fdb92855d5080232a6e77f3ec9899624071
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Harbor API These APIs provide services for manipulating Harbor project. OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import swagger_client from ...
18.866667
79
0.684335
142167b7bc1eaa369294e00a2efcd739d4860593
218
py
Python
study/study7.py
tanyong-cq/pythonlearning
d807389e7637fb327a68560dbaf85c51bd2e03ae
[ "MIT" ]
null
null
null
study/study7.py
tanyong-cq/pythonlearning
d807389e7637fb327a68560dbaf85c51bd2e03ae
[ "MIT" ]
null
null
null
study/study7.py
tanyong-cq/pythonlearning
d807389e7637fb327a68560dbaf85c51bd2e03ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' tuple ''' t1 = (1, 2, 3) t2 = ('a', 'b', 'c') print((t1, t2)) print(len(t1)) print(t1[0]) print(t1[1:3]) print(t1*4) print(1 in t1) print(t1+t2) print(tuple([1, 2]))
12.111111
23
0.527523
5fbcbc11d4a8ce0bcef516d97abf63f7916f5b08
817
py
Python
v1/teams/migrations/0009_auto_20210310_0627.py
buckyroberts/Website-API
e74d202a41533c7622acbe12c793d047d44012ad
[ "MIT" ]
64
2020-10-02T02:58:06.000Z
2022-01-29T20:00:50.000Z
v1/teams/migrations/0009_auto_20210310_0627.py
buckyroberts/Website-API
e74d202a41533c7622acbe12c793d047d44012ad
[ "MIT" ]
93
2020-10-04T22:53:46.000Z
2022-03-05T18:17:46.000Z
v1/teams/migrations/0009_auto_20210310_0627.py
buckyroberts/Website-API
e74d202a41533c7622acbe12c793d047d44012ad
[ "MIT" ]
21
2020-10-11T14:16:13.000Z
2021-11-09T17:50:25.000Z
# Generated by Django 3.1.6 on 2021-03-10 06:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teams', '0008_auto_20210219_0551'), ] operations = [ migrations.RemoveField( model_name='team', name='responsibiliti...
24.757576
74
0.544676
9387f9ecacc71db49084596e6644a313abee42df
11,284
py
Python
data/migrations/0001_initial.py
ve7cxz/ferrystatus
ac52eaf7d8c562bd67e256ced9f4c8a04b232d8f
[ "MIT" ]
1
2019-02-26T15:27:42.000Z
2019-02-26T15:27:42.000Z
data/migrations/0001_initial.py
ve7cxz/ferrystatus
ac52eaf7d8c562bd67e256ced9f4c8a04b232d8f
[ "MIT" ]
null
null
null
data/migrations/0001_initial.py
ve7cxz/ferrystatus
ac52eaf7d8c562bd67e256ced9f4c8a04b232d8f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-17 04:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ] operations = [ migrations.CreateMode...
46.821577
200
0.573644
c0a1b3e18754c6eae3564c020013ac91f2277330
2,074
py
Python
profiles_api/models.py
ganmaazuma02/django-rest-api
022759704f35efa44617975c2afc4367efdc086a
[ "MIT" ]
null
null
null
profiles_api/models.py
ganmaazuma02/django-rest-api
022759704f35efa44617975c2afc4367efdc086a
[ "MIT" ]
7
2020-06-06T03:35:44.000Z
2022-02-10T11:22:56.000Z
profiles_api/models.py
ganmaazuma02/django-rest-api
022759704f35efa44617975c2afc4367efdc086a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings class UserProfileManager(BaseUserManager): """Manager for user profiles""" def c...
28.805556
73
0.679846
352c444f2e2ac684b8af53247e9843f8ce30cef1
4,489
py
Python
Class8/run.py
yipliu/NLPseq2seq
cf676387bb120cd974da71d848c95adb4aa46b19
[ "MIT" ]
null
null
null
Class8/run.py
yipliu/NLPseq2seq
cf676387bb120cd974da71d848c95adb4aa46b19
[ "MIT" ]
null
null
null
Class8/run.py
yipliu/NLPseq2seq
cf676387bb120cd974da71d848c95adb4aa46b19
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from torchtext.data import BucketIterator, Iterator from tqdm import tqdm from sklearn.model_selection import KFold import numpy as np import time import math import random from utils.data_cl import Lang from utils.model_func import * from model import ...
34.267176
100
0.605703
347d6ea34228c85729fc33fa35fc3040501b80aa
3,370
py
Python
tests/test_beatport_key.py
ooyamatakehisa/mirdata
12303e4c9941d96cafc178a8f542abf6cdf7cb1b
[ "BSD-3-Clause" ]
null
null
null
tests/test_beatport_key.py
ooyamatakehisa/mirdata
12303e4c9941d96cafc178a8f542abf6cdf7cb1b
[ "BSD-3-Clause" ]
null
null
null
tests/test_beatport_key.py
ooyamatakehisa/mirdata
12303e4c9941d96cafc178a8f542abf6cdf7cb1b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from mirdata.datasets import beatport_key from tests.test_utils import run_track_tests def test_track(): default_trackid = "1" data_home = "tests/resources/mir_datasets/beatport_key" track = beatport_key.Track(default_trackid, data_home=data_home) expected...
34.387755
122
0.675371
f055e6bd8aedb5ea09929326d2bb9976db670ab7
9,927
py
Python
myext/operands_unique.py
RyanJJunor/metrixplusplus
1596331ab28f3e43fcac16d17cb0c132a7728c61
[ "MIT" ]
null
null
null
myext/operands_unique.py
RyanJJunor/metrixplusplus
1596331ab28f3e43fcac16d17cb0c132a7728c61
[ "MIT" ]
null
null
null
myext/operands_unique.py
RyanJJunor/metrixplusplus
1596331ab28f3e43fcac16d17cb0c132a7728c61
[ "MIT" ]
null
null
null
import csv import re import mpp.api def operand_calc(operator): if operator == "++" or \ operator == "--" or \ operator == "delete" or \ operator == "new" or \ operator == "!" or \ operator == "--" or \ operator == "bool" or \ op...
43.16087
227
0.505893
c67e70844446fc71b021638141ec84a171967cad
1,230
py
Python
renku/core/management/interface/project_gateway.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
26
2018-06-04T15:21:50.000Z
2022-02-11T17:31:24.000Z
renku/core/management/interface/project_gateway.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
1,655
2018-05-17T22:07:50.000Z
2022-03-31T21:22:01.000Z
renku/core/management/interface/project_gateway.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
19
2018-05-18T14:12:25.000Z
2022-03-30T19:51:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017-2021 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
33.243243
75
0.73252
fb03a5fd4a3583e2f32c7b395c67a035aecff6b5
201
py
Python
test.py
hotco87/continual_learning2
25ce5c26bbdc048981318d7c076923519b794387
[ "MIT" ]
null
null
null
test.py
hotco87/continual_learning2
25ce5c26bbdc048981318d7c076923519b794387
[ "MIT" ]
null
null
null
test.py
hotco87/continual_learning2
25ce5c26bbdc048981318d7c076923519b794387
[ "MIT" ]
null
null
null
import torch from torch.distributions.categorical import Categorical m = Categorical(torch.tensor([ 0.25, 0.25, 0.25, 0.25 ])) a = m.sample() # equal probability of 0, 1, 2, 3 print(a) print(m.mode())
33.5
57
0.706468
7195c74c2eb01a2180b114e39b58f024c0ada20b
33,081
py
Python
api/cluster_views.py
amleshkov/adcm
5a6c82a34ef2591cb4952d17ee823c6230aa1d82
[ "Apache-2.0" ]
null
null
null
api/cluster_views.py
amleshkov/adcm
5a6c82a34ef2591cb4952d17ee823c6230aa1d82
[ "Apache-2.0" ]
null
null
null
api/cluster_views.py
amleshkov/adcm
5a6c82a34ef2591cb4952d17ee823c6230aa1d82
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.918824
105
0.674073
a7c767c77f3ead572ec70dc213c9d15b9939ba4d
5,037
py
Python
tutorials/endToEndMaya/tutorial_scripts/add_shadingVariants.py
PaulDoessel/AL_USDMaya
912071b304748073299be08ba46a670390eee346
[ "Apache-2.0" ]
5
2017-12-04T16:56:32.000Z
2019-05-24T05:20:18.000Z
tutorials/endToEndMaya/tutorial_scripts/add_shadingVariants.py
PaulDoessel/AL_USDMaya
912071b304748073299be08ba46a670390eee346
[ "Apache-2.0" ]
null
null
null
tutorials/endToEndMaya/tutorial_scripts/add_shadingVariants.py
PaulDoessel/AL_USDMaya
912071b304748073299be08ba46a670390eee346
[ "Apache-2.0" ]
4
2018-03-17T15:55:28.000Z
2021-02-01T01:25:38.000Z
#!/pxrpythonsubst # # Copyright 2016 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
37.589552
79
0.660314
3675c080d174291c17165acef735a601ea3c3712
293
py
Python
03 - Strings/What's Your Name.py
LynX-gh/HackerRank-python
52705f423dd564463c67de1b8a2ded49bbef565e
[ "MIT" ]
null
null
null
03 - Strings/What's Your Name.py
LynX-gh/HackerRank-python
52705f423dd564463c67de1b8a2ded49bbef565e
[ "MIT" ]
null
null
null
03 - Strings/What's Your Name.py
LynX-gh/HackerRank-python
52705f423dd564463c67de1b8a2ded49bbef565e
[ "MIT" ]
null
null
null
# # Complete the 'print_full_name' function below. # # The function is expected to return a STRING. # The function accepts following parameters: # 1. STRING first # 2. STRING last # def print_full_name(first, last): print("Hello {} {}! You just delved into python.".format(first, last))
26.636364
74
0.716724
89ec31e4f127b9f2b1e39847ba89dd2d6838c75b
9,049
py
Python
popmon/visualization/alert_section_generator.py
Sharath302/popmon
43755048ad419109afabaca6c81b50b4e39c60b7
[ "MIT" ]
null
null
null
popmon/visualization/alert_section_generator.py
Sharath302/popmon
43755048ad419109afabaca6c81b50b4e39c60b7
[ "MIT" ]
null
null
null
popmon/visualization/alert_section_generator.py
Sharath302/popmon
43755048ad419109afabaca6c81b50b4e39c60b7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics # # 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, mo...
37.547718
115
0.612996
35a2fe39e3494f6a6cb5353894a5e81463e013c9
1,980
py
Python
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
1
2020-05-27T16:18:43.000Z
2020-05-27T16:18:43.000Z
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
null
null
null
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-18 10:36 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('grosshaendler', '0001_initial'), ('artikel', '0...
46.046512
156
0.647475
042e3b55c6c0322ae5ad0b6e97d2e963b5697d58
21,434
py
Python
canteen/logic/cache.py
dbl0null/canteen
3bef22a2059ef6ac5df178324fbc1dba45316e22
[ "MIT" ]
2
2016-08-24T18:42:41.000Z
2017-12-08T00:41:02.000Z
canteen/logic/cache.py
dbl0null/canteen
3bef22a2059ef6ac5df178324fbc1dba45316e22
[ "MIT" ]
null
null
null
canteen/logic/cache.py
dbl0null/canteen
3bef22a2059ef6ac5df178324fbc1dba45316e22
[ "MIT" ]
2
2015-09-22T05:36:27.000Z
2017-12-08T00:41:21.000Z
# -*- coding: utf-8 -*- """ caching logic ~~~~~~~~~~~~~ exposes simple logic for caching objects in-memory or in caching engines like ``memcached``. :author: Sam Gammon <sg@samgammon.com> :copyright: (c) Sam Gammon, 2014 :license: This software makes use of the MIT Open Source License. A c...
33.701258
80
0.615751
2adda073a8e9892da5b81fe884ead3e3f2c40492
3,606
py
Python
catkin_ws/src/lab2/src/scripts/gotogoal.py
rits417/AuE8230Spring22_RithvikReddyPindi
25a91b301d0634477fb52be1c3e604518c3fa6f2
[ "MIT" ]
null
null
null
catkin_ws/src/lab2/src/scripts/gotogoal.py
rits417/AuE8230Spring22_RithvikReddyPindi
25a91b301d0634477fb52be1c3e604518c3fa6f2
[ "MIT" ]
4
2022-02-10T12:55:50.000Z
2022-02-10T17:38:14.000Z
catkin_ws/src/lab2/src/scripts/gotogoal.py
rits417/AuE8230Spring22_RithvikReddyPindi
25a91b301d0634477fb52be1c3e604518c3fa6f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy from geometry_msgs.msg import Twist from turtlesim.msg import Pose from math import pow, atan2, sqrt class TurtleBot: def __init__(self): # Creates a node with name 'turtlebot_controller' and make sure it is a # unique node (using anonymous=True). rosp...
35.009709
79
0.606489
3299ba064fba31ad79d6c6f821b588295b9fea11
5,044
py
Python
snuba/datasets/cdc/cdcprocessors.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/datasets/cdc/cdcprocessors.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/datasets/cdc/cdcprocessors.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import re from abc import ABC, abstractmethod from datetime import datetime from typing import Any, Mapping, Optional, Sequence, Type from snuba.processor import InsertBatch, MessageProcessor, ProcessedMessage from snuba.writer import WriterTableRow POSTGRES_DATE_FORMAT_WITH_NS = ...
32.753247
88
0.608446
9d2a507f760a4c214c74569f411199a010982eca
1,449
py
Python
project_generator/tools/makearmcc.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
12
2015-01-02T06:59:55.000Z
2019-12-15T17:08:12.000Z
project_generator/tools/makearmcc.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
65
2015-01-16T07:38:08.000Z
2015-07-06T18:16:48.000Z
project_generator/tools/makearmcc.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
7
2015-01-17T09:55:54.000Z
2019-04-11T06:27:54.000Z
# Copyright 2014-2015 0xc0170 # # 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,...
35.341463
186
0.73637
cf03f3976ba5ad9b43673afe9f6c3761cdcbf44b
124
py
Python
histonets/apps.py
sul-cidr/histonets-arch
6105de90905d54db604b0606d517f53782aae16d
[ "MIT" ]
null
null
null
histonets/apps.py
sul-cidr/histonets-arch
6105de90905d54db604b0606d517f53782aae16d
[ "MIT" ]
19
2018-04-19T19:32:59.000Z
2018-06-04T23:20:03.000Z
histonets/apps.py
sul-cidr/histonets-arch
6105de90905d54db604b0606d517f53782aae16d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HistonetsConfig(AppConfig): name = 'histonets' verbose_name = "Histonets"
17.714286
33
0.741935
1757297bcbeb90ebcd6a2a61a3a7da215ab4431f
2,140
py
Python
google/cloud/bigtable/encryption_info.py
chrisrossi/python-bigtable
be1703812754dd8b5fbce306c143554b6341a04d
[ "Apache-2.0" ]
34
2020-07-27T19:14:01.000Z
2022-03-31T14:46:53.000Z
google/cloud/bigtable/encryption_info.py
chrisrossi/python-bigtable
be1703812754dd8b5fbce306c143554b6341a04d
[ "Apache-2.0" ]
254
2020-01-31T23:44:06.000Z
2022-03-23T22:52:49.000Z
google/cloud/bigtable/encryption_info.py
chrisrossi/python-bigtable
be1703812754dd8b5fbce306c143554b6341a04d
[ "Apache-2.0" ]
30
2020-01-31T20:45:34.000Z
2022-03-23T19:56:42.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.923077
86
0.706075
3b2aa7f6606f39b37a377c978562af958603d45e
2,993
py
Python
csdaily/index/utils/cnindex.py
qytz/cn_stock_daily
93950c7be37f6717d1448e0f6c0f93947fdcafce
[ "Apache-2.0" ]
1
2018-05-29T09:13:05.000Z
2018-05-29T09:13:05.000Z
csdaily/index/utils/cnindex.py
qytz/csdaily
93950c7be37f6717d1448e0f6c0f93947fdcafce
[ "Apache-2.0" ]
1
2018-05-04T08:15:37.000Z
2018-05-04T08:15:37.000Z
csdaily/index/utils/cnindex.py
qytz/csdaily
93950c7be37f6717d1448e0f6c0f93947fdcafce
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of CSDaily. # Copyright (C) 2018-present qytz <hhhhhf@foxmail.com> # # 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/l...
32.532609
85
0.445707
918af2d6f346660db23b4af9bebf444135d18e05
130,342
py
Python
sublime/Packages/Anaconda/anaconda_lib/autopep/autopep8_lib/autopep8.py
mklewitz-kisura/dotfiles
ab090ddb7a6d892a957fb23923d4a6aedf3d2d8a
[ "MIT" ]
null
null
null
sublime/Packages/Anaconda/anaconda_lib/autopep/autopep8_lib/autopep8.py
mklewitz-kisura/dotfiles
ab090ddb7a6d892a957fb23923d4a6aedf3d2d8a
[ "MIT" ]
3
2021-05-10T18:59:14.000Z
2021-09-02T01:50:15.000Z
sublime/Packages/Anaconda/anaconda_lib/autopep/autopep8_lib/autopep8.py
mklewitz-kisura/dotfiles
ab090ddb7a6d892a957fb23923d4a6aedf3d2d8a
[ "MIT" ]
3
2020-02-03T13:24:54.000Z
2020-02-03T13:45:37.000Z
#!/usr/bin/env python # Copyright (C) 2010-2011 Hideo Hattori # Copyright (C) 2011-2013 Hideo Hattori, Steven Myint # Copyright (C) 2013-2016 Hideo Hattori, Steven Myint, Bill Wendling # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files...
33.369688
79
0.556643
f2ae788eecc6616d650598579c75b94bb1623b60
5,983
py
Python
greengraph/tests/test_map.py
jdfoster/greengraph
57d2235579ff1d628981dfbda83cc3e2cc4a7dc1
[ "MIT" ]
null
null
null
greengraph/tests/test_map.py
jdfoster/greengraph
57d2235579ff1d628981dfbda83cc3e2cc4a7dc1
[ "MIT" ]
null
null
null
greengraph/tests/test_map.py
jdfoster/greengraph
57d2235579ff1d628981dfbda83cc3e2cc4a7dc1
[ "MIT" ]
null
null
null
from mock import patch from nose.tools import assert_raises, assert_equal import requests from matplotlib import image as img import os import yaml from StringIO import StringIO import numpy as np from ..map import Map def test_init_type_fail(): with open(os.path.join(os.path.dirname(__file__), 'fixtures', 'broke...
50.277311
120
0.639813
786bd3e12c6dfce44dd5b46d09840e9fa27923b9
6,407
py
Python
elemenpy/core/common.py
roadnarrows-robotics/elemenpy
bc7d065a1071ce0b3b89b22ce1cb1a6f4b028d20
[ "MIT" ]
null
null
null
elemenpy/core/common.py
roadnarrows-robotics/elemenpy
bc7d065a1071ce0b3b89b22ce1cb1a6f4b028d20
[ "MIT" ]
null
null
null
elemenpy/core/common.py
roadnarrows-robotics/elemenpy
bc7d065a1071ce0b3b89b22ce1cb1a6f4b028d20
[ "MIT" ]
null
null
null
""" An olio of useful data types and functions. Package: RoadNarrows elemenpy package. File: common.py Link: https://github.com/roadnarrows-robotics/ Copyright: (c) 2019. RoadNarrows LLC http://www.roadnarrows.com All Rights Reserved License: MIT """ import sys # RDK needs work - only executes afte...
22.324042
79
0.618074
0d84bbce43a650fd36300041cbb8397304a89612
2,492
py
Python
src/mem/slicc/ast/CheckProbeStatementAST.py
zinob15/gem5
fb2946e314ea9e63c7696ee8023150ed13956582
[ "BSD-3-Clause" ]
19
2018-07-20T15:08:50.000Z
2022-03-26T16:15:59.000Z
src/mem/slicc/ast/CheckProbeStatementAST.py
zinob15/gem5
fb2946e314ea9e63c7696ee8023150ed13956582
[ "BSD-3-Clause" ]
148
2018-07-20T00:58:36.000Z
2021-11-16T01:52:33.000Z
src/mem/slicc/ast/CheckProbeStatementAST.py
zinob15/gem5
fb2946e314ea9e63c7696ee8023150ed13956582
[ "BSD-3-Clause" ]
10
2019-01-10T03:01:30.000Z
2022-01-21T18:36:18.000Z
# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood # Copyright (c) 2009 The Hewlett-Packard Development Company # Copyright (c) 2010 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following ...
46.148148
75
0.737961
ef3e08d2b6abc812d789f4576f8e8e2f8db9d6a5
2,198
py
Python
Configuration/EcalTB/python/reco_application_2006h2rawdata_ecalLocalReco_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/EcalTB/python/reco_application_2006h2rawdata_ecalLocalReco_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/EcalTB/python/reco_application_2006h2rawdata_ecalLocalReco_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("RECO") process.load("RecoTBCalo.EcalTBTDCReconstructor.ecal2006TBH2TDCReconstructor_cfi") process.load("Configuration.EcalTB.readConfigurationH2_2006_v0_cff") process.load("RecoTBCalo.EcalTBRecProducers.ecal2006TBH2WeightUncalibRecHit_cfi") process.Mes...
35.451613
154
0.712011
558a2d5e4263428a4aa385c30e815c30b016fdbb
3,131
py
Python
examples/mlp/native.py
lijiansong/singa
352cfc910deff0d6a8383c5e97f45795c67cb206
[ "Apache-2.0" ]
null
null
null
examples/mlp/native.py
lijiansong/singa
352cfc910deff0d6a8383c5e97f45795c67cb206
[ "Apache-2.0" ]
null
null
null
examples/mlp/native.py
lijiansong/singa
352cfc910deff0d6a8383c5e97f45795c67cb206
[ "Apache-2.0" ]
null
null
null
# # 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...
32.957895
102
0.656979
14214320ef2ed288843bfc8e8136843aa2c06e13
19,167
py
Python
elephant/test/test_sta.py
Moritz-Alexander-Kern/elephant-1
6ed3cb3089783035885e2fbec1fff535df7369cd
[ "BSD-3-Clause" ]
null
null
null
elephant/test/test_sta.py
Moritz-Alexander-Kern/elephant-1
6ed3cb3089783035885e2fbec1fff535df7369cd
[ "BSD-3-Clause" ]
null
null
null
elephant/test/test_sta.py
Moritz-Alexander-Kern/elephant-1
6ed3cb3089783035885e2fbec1fff535df7369cd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests for the function sta module :copyright: Copyright 2014-2022 by the Elephant team, see `doc/authors.rst`. :license: Modified BSD, see LICENSE.txt for details. """ import unittest import math import numpy as np import scipy from numpy.testing import assert_array_equal from numpy.testin...
42.218062
79
0.550999
994e40ff8966ac5fd3e24bc6bf57e5311ab90923
2,240
py
Python
src/oci/waf/models/protection_capability_collection.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/waf/models/protection_capability_collection.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/waf/models/protection_capability_collection.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.549296
245
0.674554
e30845b664d9a228c068aee79e960f45d323d709
4,665
py
Python
widgets/physionet_widget.py
sensomatrix/sensocore
f2e94b7dae6ab3e95785c4c1b363e49aab23ddab
[ "MIT" ]
2
2019-04-02T00:17:57.000Z
2019-08-20T05:21:46.000Z
widgets/physionet_widget.py
sensomatrix/sensocore
f2e94b7dae6ab3e95785c4c1b363e49aab23ddab
[ "MIT" ]
13
2019-04-01T00:37:01.000Z
2020-10-04T00:50:01.000Z
widgets/physionet_widget.py
sensomatrix/sensocore
f2e94b7dae6ab3e95785c4c1b363e49aab23ddab
[ "MIT" ]
null
null
null
from wfdb import rdrecord, rdann from models.signal import Signal from utils.timeutils import generate_time_array import pyqtgraph as pg from PyQt5.QtWidgets import QMessageBox from PyQt5.QtCore import Qt from pathlib import Path import numpy as np import wget import os from utils.file_read import load_from_edf path ...
39.201681
115
0.545981
d0f093bb7075c045451db3a2bc0934329877dcc9
705
py
Python
tax_debts/views.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-10T21:20:56.000Z
2021-04-04T11:21:06.000Z
tax_debts/views.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
7
2018-08-14T20:54:49.000Z
2020-06-05T18:17:30.000Z
tax_debts/views.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-27T12:53:13.000Z
2020-09-25T19:41:46.000Z
from django.shortcuts import render from django.http import Http404 from django.views.generic import TemplateView from elasticsearch.exceptions import NotFoundError from .elastic_models import ElasticTaxDebtsModel from .apps import TaxDebtsConfig as DataSourceConfig class TaxDebtsDetailsView(TemplateView): temp...
27.115385
59
0.720567
597643799302e73a28dd0c90f6485d55f20f0caa
3,664
py
Python
sdk/python/tests/compiler/testdata/withitem_multi_nested.py
shrivs3/kfp-tekton
b7c1d542d43ea24e70f24a874a7c972199e8f976
[ "Apache-2.0" ]
102
2019-10-23T20:35:41.000Z
2022-03-27T10:28:56.000Z
sdk/python/tests/compiler/testdata/withitem_multi_nested.py
shrivs3/kfp-tekton
b7c1d542d43ea24e70f24a874a7c972199e8f976
[ "Apache-2.0" ]
891
2019-10-24T04:08:17.000Z
2022-03-31T22:45:40.000Z
sdk/python/tests/compiler/testdata/withitem_multi_nested.py
shrivs3/kfp-tekton
b7c1d542d43ea24e70f24a874a7c972199e8f976
[ "Apache-2.0" ]
85
2019-10-24T04:04:36.000Z
2022-03-01T10:52:57.000Z
# Copyright 2021 kubeflow.org # # 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...
26.941176
82
0.614356
12d228000e94741a6a32ef8c1d84912404f4bfe4
63
py
Python
tests/__init__.py
clintonhealthaccess/superset-patchup
2a1f3dc3541d2ddc69e05b5d5de532cefcb1591d
[ "Apache-2.0" ]
5
2019-02-19T06:56:36.000Z
2021-11-14T17:16:20.000Z
tests/__init__.py
clintonhealthaccess/superset-patchup
2a1f3dc3541d2ddc69e05b5d5de532cefcb1591d
[ "Apache-2.0" ]
37
2019-02-07T10:01:55.000Z
2022-01-04T15:14:49.000Z
tests/__init__.py
clintonhealthaccess/superset-patchup
2a1f3dc3541d2ddc69e05b5d5de532cefcb1591d
[ "Apache-2.0" ]
4
2019-05-17T22:39:39.000Z
2021-08-03T22:51:01.000Z
# -*- coding: utf-8 -*- """ Superset-Patchup tests module. """
12.6
30
0.571429
b67ae176296078cc9e045145f62a459beed30ceb
6,440
py
Python
Python/Core1/lib/oes_distributions.py
gwagner57/oes
7c0432643cdf61f58550046df675b5e8155106a1
[ "MIT" ]
8
2020-10-19T14:47:55.000Z
2022-01-20T08:32:29.000Z
Python/Core1/lib/oes_distributions.py
gwagner57/oes
7c0432643cdf61f58550046df675b5e8155106a1
[ "MIT" ]
null
null
null
Python/Core1/lib/oes_distributions.py
gwagner57/oes
7c0432643cdf61f58550046df675b5e8155106a1
[ "MIT" ]
2
2020-09-02T09:08:47.000Z
2021-07-05T03:46:04.000Z
# still working need to implement UniformInt and frequency """ Create random number streams from numpy.random import default_rng seed1 = 1 gen1 = default_rng( seed1) seed2 = 2 gen2 = default_rng( seed2) rns1_1 = gen1.rand() rns1_2 = gen1.rand() rns2_1 = gen2.rand() rns2_2 = gen2.rand() """ from numpy.random import ...
36.384181
121
0.588354
702db7a2fb55361d745ba34ab9caf93209d18038
770
py
Python
examples/django_project/django_project/urls.py
kam193/snapshottest
98cda1aedd704cc6be4b5eca38cdd8f470fa7ef1
[ "MIT" ]
null
null
null
examples/django_project/django_project/urls.py
kam193/snapshottest
98cda1aedd704cc6be4b5eca38cdd8f470fa7ef1
[ "MIT" ]
null
null
null
examples/django_project/django_project/urls.py
kam193/snapshottest
98cda1aedd704cc6be4b5eca38cdd8f470fa7ef1
[ "MIT" ]
null
null
null
"""django_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
35
79
0.702597
d1a5f7ff5a42c03c55a6aee3501acb67c36fec86
5,029
py
Python
mlflow/models/docker_utils.py
jinzhang21/mlflow
e926be917795fd945ea347e02cf31214008d3f1e
[ "Apache-2.0" ]
1
2022-03-15T00:19:10.000Z
2022-03-15T00:19:10.000Z
mlflow/models/docker_utils.py
jinzhang21/mlflow
e926be917795fd945ea347e02cf31214008d3f1e
[ "Apache-2.0" ]
9
2021-08-04T06:41:49.000Z
2022-01-10T10:10:52.000Z
mlflow/models/docker_utils.py
jinzhang21/mlflow
e926be917795fd945ea347e02cf31214008d3f1e
[ "Apache-2.0" ]
1
2021-03-01T10:09:32.000Z
2021-03-01T10:09:32.000Z
import os from subprocess import Popen, PIPE, STDOUT import logging import mlflow import mlflow.version from mlflow.utils.file_utils import TempDir, _copy_project from mlflow.utils.logging_utils import eprint _logger = logging.getLogger(__name__) DISABLE_ENV_CREATION = "MLFLOW_DISABLE_ENV_CREATION" _DOCKERFILE_TEMP...
36.977941
99
0.646252
69e0be3a41f35294f2bd1fd61cf5a31b15b1c621
9,808
py
Python
src/greentest/known_failures.py
hackaugusto/gevent
ab5272c5b6fade84ea001f579748898a6d56d5ba
[ "MIT" ]
null
null
null
src/greentest/known_failures.py
hackaugusto/gevent
ab5272c5b6fade84ea001f579748898a6d56d5ba
[ "MIT" ]
null
null
null
src/greentest/known_failures.py
hackaugusto/gevent
ab5272c5b6fade84ea001f579748898a6d56d5ba
[ "MIT" ]
null
null
null
# This is a list of known failures (=bugs). # The tests listed there must fail (or testrunner.py will report error) unless they are prefixed with FLAKY # in which cases the result of them is simply ignored from __future__ import print_function import os import sys import struct from greentest.sysinfo import RUNNING_ON...
37.723077
127
0.601244
5fb379da26ab483ffd8fdb3bb74b551713b12253
3,460
py
Python
S4/S4 Library/generated/protocolbuffers/MTXEntitlement_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/generated/protocolbuffers/MTXEntitlement_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/generated/protocolbuffers/MTXEntitlement_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 DESCRIPTOR = descriptor.FileDescriptor(name='MTXEntitlement.proto', package='EA.Sims4.Network', serialized_pb='\n\x14MTXEntitlement.proto\x12\x10EA.Sims4.Network"¼...
192.222222
1,636
0.828324
c8767daa718f33aa6b32442b8c73f20f6d6093fb
45
py
Python
arsa/__init__.py
trippingrobot/arsa
e0628af8376ae52dc375c882721a36ccdc106173
[ "MIT" ]
null
null
null
arsa/__init__.py
trippingrobot/arsa
e0628af8376ae52dc375c882721a36ccdc106173
[ "MIT" ]
1
2018-03-14T20:24:01.000Z
2018-03-14T20:24:01.000Z
arsa/__init__.py
trippingrobot/arsa
e0628af8376ae52dc375c882721a36ccdc106173
[ "MIT" ]
null
null
null
from .arsa import Arsa __version__ = '1.0.0'
15
22
0.711111
414e0193744ea1ba76249a7273decabb85371bcd
945
py
Python
setup.py
berhane/GoodVibes
d4939e8f50f5b4814a0a02d5f6ce7c3d459003fe
[ "MIT" ]
null
null
null
setup.py
berhane/GoodVibes
d4939e8f50f5b4814a0a02d5f6ce7c3d459003fe
[ "MIT" ]
null
null
null
setup.py
berhane/GoodVibes
d4939e8f50f5b4814a0a02d5f6ce7c3d459003fe
[ "MIT" ]
null
null
null
from setuptools import setup import io # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='goodvibes', packages=['goodvibes'], v...
35
107
0.752381
eb6d45e699875558e600b5acdba8f02402f98d87
2,598
py
Python
tests/devices/standards/trafic/virtual/chassis/test_configuration_attributes_structure.py
QualiSystems/cloudshell-networking-devices
f316cefca174975424ec21854b672335feaf8f87
[ "Apache-2.0" ]
null
null
null
tests/devices/standards/trafic/virtual/chassis/test_configuration_attributes_structure.py
QualiSystems/cloudshell-networking-devices
f316cefca174975424ec21854b672335feaf8f87
[ "Apache-2.0" ]
34
2016-11-28T10:52:44.000Z
2019-10-01T08:52:59.000Z
tests/devices/standards/trafic/virtual/chassis/test_configuration_attributes_structure.py
QualiSystems/cloudshell-networking-devices
f316cefca174975424ec21854b672335feaf8f87
[ "Apache-2.0" ]
1
2017-05-23T08:46:45.000Z
2017-05-23T08:46:45.000Z
import unittest import mock from cloudshell.devices.standards.traffic.virtual.chassis.configuration_attributes_structure import \ TrafficGeneratorVChassisResource class TestTrafficGeneratorVBladeResource(unittest.TestCase): def setUp(self): self.shell_name = 'test shell name' self.resource =...
33.307692
101
0.681293
fc5802d47bf3b0a5983bfafffcdb01ae554070e7
572
py
Python
impersonate/urls.py
benwhalley/django-impersonate
b8c8ea283bfc2dba3fc980545610043dd473cdbf
[ "BSD-3-Clause" ]
null
null
null
impersonate/urls.py
benwhalley/django-impersonate
b8c8ea283bfc2dba3fc980545610043dd473cdbf
[ "BSD-3-Clause" ]
null
null
null
impersonate/urls.py
benwhalley/django-impersonate
b8c8ea283bfc2dba3fc980545610043dd473cdbf
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.urls import include, re_path from . import views urlpatterns = [ re_path(r'^stop/$', views.stop_impersonate, name='impersonate-stop'), re_path(r'^list/$', views.list_users, {'template': 'impersonate/list_users.html'}, name='imperson...
23.833333
54
0.587413
a3d30c47e5c79053a5ab4afb413221e2be6673f7
1,322
py
Python
supervised/validation/validation_step.py
spamz23/mljar-supervised
e9713eda80f9f1e11debd67c7dc2af1e5d7e7f83
[ "MIT" ]
2
2020-09-24T05:32:57.000Z
2020-12-30T23:33:54.000Z
supervised/validation/validation_step.py
spamz23/mljar-supervised
e9713eda80f9f1e11debd67c7dc2af1e5d7e7f83
[ "MIT" ]
null
null
null
supervised/validation/validation_step.py
spamz23/mljar-supervised
e9713eda80f9f1e11debd67c7dc2af1e5d7e7f83
[ "MIT" ]
1
2021-07-11T15:45:49.000Z
2021-07-11T15:45:49.000Z
import logging log = logging.getLogger(__name__) from supervised.validation.validator_kfold import KFoldValidator from supervised.validation.validator_split import SplitValidator from supervised.validation.validator_with_dataset import WithDatasetValidator from supervised.exceptions import AutoMLException class Va...
30.744186
83
0.67171
2f55ef7f631c541e7a5a24756315d72b8223c75d
2,969
py
Python
src/data/process_ball_data.py
N1kYan/vssil
214363f1a924414415cfef940404d8057f6912e7
[ "MIT" ]
null
null
null
src/data/process_ball_data.py
N1kYan/vssil
214363f1a924414415cfef940404d8057f6912e7
[ "MIT" ]
null
null
null
src/data/process_ball_data.py
N1kYan/vssil
214363f1a924414415cfef940404d8057f6912e7
[ "MIT" ]
null
null
null
import os import time import cv2 from tqdm import tqdm from natsort import natsort_keygen natsort_key = natsort_keygen() def process_ball(root_path: str, target_path: str, target_img_shape: tuple = (128, 128), sample_freq: int = 1, skip_existing: bo...
34.126437
111
0.577636
08df6d14822575aa67e7ff09d77289bf4a72b2e1
2,429
py
Python
src/lambda_function.py
aws-samples/sample-sagemaker-pipeline-with-hpo-step
13d2beea6f3a82286d9e0955243983c2cdacb2a9
[ "MIT-0" ]
null
null
null
src/lambda_function.py
aws-samples/sample-sagemaker-pipeline-with-hpo-step
13d2beea6f3a82286d9e0955243983c2cdacb2a9
[ "MIT-0" ]
null
null
null
src/lambda_function.py
aws-samples/sample-sagemaker-pipeline-with-hpo-step
13d2beea6f3a82286d9e0955243983c2cdacb2a9
[ "MIT-0" ]
null
null
null
import json import boto3 import time import datetime import os DB_NAME = os.environ.get('DB_NAME') DB_USER = os.environ.get('DB_USER') CLUSTER_IDENTIFIER = os.environ.get('CLUSTER_IDENTIFIER') ROLE_ARN = os.environ.get('ROLE_ARN') PIPELINE_NAME = os.environ.get('PIPELINE_NAME') BUCKET_NAME = os.environ.get('BUCKET_NAME...
34.211268
130
0.687114
903aedec207f73f61cdf35b31eb5070fb25f4752
40,012
py
Python
tests/backends/tests.py
adambrenecki/django
28a571348bca9c5a3c137e495e7d3c9349a5bd56
[ "BSD-3-Clause" ]
1
2020-02-08T11:04:08.000Z
2020-02-08T11:04:08.000Z
tests/backends/tests.py
adambrenecki/django
28a571348bca9c5a3c137e495e7d3c9349a5bd56
[ "BSD-3-Clause" ]
null
null
null
tests/backends/tests.py
adambrenecki/django
28a571348bca9c5a3c137e495e7d3c9349a5bd56
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Unit and doctests for specific database backends. from __future__ import unicode_literals import datetime from decimal import Decimal import re import threading import unittest from django.conf import settings from django.core.management.color import no_style from django.db import (connectio...
40.580122
161
0.633985
17fd161b17b3663668efda386bd7e7e3cf420aa8
6,681
py
Python
cirq-core/cirq/ops/swap_gates_test.py
augustehirth/Cirq
e616710a0fa243524a9f6d7bc0d35e6b952fe3d0
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/ops/swap_gates_test.py
augustehirth/Cirq
e616710a0fa243524a9f6d7bc0d35e6b952fe3d0
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/ops/swap_gates_test.py
augustehirth/Cirq
e616710a0fa243524a9f6d7bc0d35e6b952fe3d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.506849
93
0.596468
67cb639c90f73587a70394028f685752f9ebed68
2,742
py
Python
tests/test_version.py
k-sriram/negargparse
d996f3fdcc279ca20769b12a9a6da577d88470c4
[ "MIT" ]
null
null
null
tests/test_version.py
k-sriram/negargparse
d996f3fdcc279ca20769b12a9a6da577d88470c4
[ "MIT" ]
1
2021-11-24T00:06:44.000Z
2021-11-24T03:19:03.000Z
tests/test_version.py
k-sriram/negargparse
d996f3fdcc279ca20769b12a9a6da577d88470c4
[ "MIT" ]
null
null
null
import re try: from importlib import metadata except ImportError: import importlib_metadata as metadata # type: ignore from negargparse import negargparse _PACKAGE = "negargparse" VERSION_PATTERN = r""" v? (?: (?:(?P<epoch>[0-9]+)!)? # epoch (?P<release>[0-9...
27.148515
75
0.432166
dfb7489fe813449179bde1026d97276c839baad3
60,578
py
Python
tests/python/pants_test/option/test_options.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
1
2018-12-10T21:31:02.000Z
2018-12-10T21:31:02.000Z
tests/python/pants_test/option/test_options.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
tests/python/pants_test/option/test_options.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
1
2018-03-08T22:21:44.000Z
2018-03-08T22:21:44.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import shl...
45.207463
109
0.625805
cab3fe063d30ed641cb9ef3234af2187434f449e
3,681
py
Python
tests/test_cells.py
vmarceau/jupytext
799ea65b693a5f387fe37c9aebad463a97d1dd38
[ "MIT" ]
1
2020-03-16T12:48:33.000Z
2020-03-16T12:48:33.000Z
tests/test_cells.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
1
2020-01-23T00:47:05.000Z
2020-01-23T00:47:05.000Z
tests/test_cells.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
1
2021-07-02T17:49:27.000Z
2021-07-02T17:49:27.000Z
from nbformat.v4.nbbase import new_markdown_cell from jupytext.cell_reader import RMarkdownCellReader, LightScriptCellReader, \ uncomment from jupytext.cell_to_text import RMarkdownCellExporter def test_uncomment(): assert uncomment(['# line one', '#line two', 'line three'], '#') == [ 'line one', 'lin...
23.902597
78
0.627275
7af645383942296f294359c42d6ea9ab76f73481
35,770
py
Python
bot.py
Lelanto/ProjectCamilla
4c0feb5826f89868e710f4e01cafb41f4ffa294f
[ "BSD-2-Clause" ]
null
null
null
bot.py
Lelanto/ProjectCamilla
4c0feb5826f89868e710f4e01cafb41f4ffa294f
[ "BSD-2-Clause" ]
null
null
null
bot.py
Lelanto/ProjectCamilla
4c0feb5826f89868e710f4e01cafb41f4ffa294f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import socket import random from BeautifulSoup import BeautifulSoup from logging.handlers import RotatingFileHandler import time import logging import mechanize import os import re from random import randint from datetime import datetime from urllib import urlencode from planet import Planet, Mo...
41.257209
180
0.522561
e602435efff328b58b53b7f99cf3d21ab4753a4c
1,650
py
Python
entropia.py
cabustillo13/Imagenes-microscopicas
ab1a3d749cdc90e27c96a701eb6a7ce6e8e50854
[ "MIT" ]
null
null
null
entropia.py
cabustillo13/Imagenes-microscopicas
ab1a3d749cdc90e27c96a701eb6a7ce6e8e50854
[ "MIT" ]
null
null
null
entropia.py
cabustillo13/Imagenes-microscopicas
ab1a3d749cdc90e27c96a701eb6a7ce6e8e50854
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Determinar cómo varía el área plana de la imagen a lo largo del tiempo""" import matplotlib.pyplot as plt from skimage import io, restoration from skimage.filters.rank import entropy from skimage.filters import try_all_threshold, threshold_otsu from skimage.morphology import disk import nu...
41.25
119
0.612121
a1ab7aa89dcc1d240d54b5d39acc902434e45bf9
1,116
py
Python
python/src/nnabla/backward_function/binary_tanh.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
2,792
2017-06-26T13:05:44.000Z
2022-03-28T07:55:26.000Z
python/src/nnabla/backward_function/binary_tanh.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
138
2017-06-27T07:04:44.000Z
2022-02-28T01:37:15.000Z
python/src/nnabla/backward_function/binary_tanh.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
380
2017-06-26T13:23:52.000Z
2022-03-25T16:51:30.000Z
# Copyright 2019,2020,2021 Sony Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
31
86
0.717742
e1f7f957f789d3279b3ce46ffc532898bfb30b4e
3,455
py
Python
dragonchain/webserver/request_authorizer.py
cheeseandcereal/dragonchain
34d34e344b887c2a0eeb591ede2015cc2506a323
[ "Apache-2.0" ]
null
null
null
dragonchain/webserver/request_authorizer.py
cheeseandcereal/dragonchain
34d34e344b887c2a0eeb591ede2015cc2506a323
[ "Apache-2.0" ]
null
null
null
dragonchain/webserver/request_authorizer.py
cheeseandcereal/dragonchain
34d34e344b887c2a0eeb591ede2015cc2506a323
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Dragonchain, Inc. # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # 6. Tr...
42.134146
103
0.691751
e34653a2f438d493ebff1ba743b24ac19193c89e
9,736
py
Python
apis/python_examples/subscribe.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
apis/python_examples/subscribe.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
apis/python_examples/subscribe.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
# Copyright Dave Trollope 2015 # This source code is not to be distributed without agreement from # D. Trollope # # This example demonstrates a basic subscriber which receives data # from a publisher. It supports TCP and UDP (Raw, Unicast and Multicast) data flows. # # It creates a name subscription on the name server ...
30.712934
190
0.713229
10ca4038ec246d0dfde84aacf642adb725dea18d
4,128
py
Python
deepctr/estimator/models/dssm.py
Eadon999/DeepCTR
b37c04f1a6ff687b884dd0935ed0b4de2bdf4a7a
[ "Apache-2.0" ]
1
2021-07-06T04:52:31.000Z
2021-07-06T04:52:31.000Z
deepctr/estimator/models/dssm.py
Eadon999/DeepCTR
b37c04f1a6ff687b884dd0935ed0b4de2bdf4a7a
[ "Apache-2.0" ]
null
null
null
deepctr/estimator/models/dssm.py
Eadon999/DeepCTR
b37c04f1a6ff687b884dd0935ed0b4de2bdf4a7a
[ "Apache-2.0" ]
null
null
null
""" Author: Zhe Wang,734914022@qq.com Reference: Huang P S , He X , Gao J , et al. Learning deep structured semantic models for web search using clickthrough data[C]// Acm International Conference on Conference on Information & Knowledge Management. ACM, 2013. """ import os import sys import tensorflow as tf from...
57.333333
211
0.664002
21d7e916b43305f4c9e9fb874e79b268cdbf8c6d
6,593
py
Python
start.py
geni94/bert-summarizer-gui
f43764e23129bb6f262af85dccf58a9243643571
[ "MIT" ]
null
null
null
start.py
geni94/bert-summarizer-gui
f43764e23129bb6f262af85dccf58a9243643571
[ "MIT" ]
null
null
null
start.py
geni94/bert-summarizer-gui
f43764e23129bb6f262af85dccf58a9243643571
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from summarizer import SingleModel body=""" Kjo vepër satirike nisi në një seri shkrimesh në "Dielli" më 1924, por u ndërpre pasi Konica u rendit me Zogun (nënviz. ynë)". Në këtë vlerësim të Panaritit, sipas të gjitha gjasave, i ka rrënjët pohimi, i cili vijon i pandërprerë e i përforcuar për ...
149.840909
1,357
0.780828
fdfafec8c8cbd18a2bc4860a94bd0b93d7da6d67
953
py
Python
src/i2c/airQuality.py
mazsbc03/MA-Z
f91df671f81cdfaf29dfe1df59d731b0c55e859b
[ "Apache-2.0" ]
null
null
null
src/i2c/airQuality.py
mazsbc03/MA-Z
f91df671f81cdfaf29dfe1df59d731b0c55e859b
[ "Apache-2.0" ]
null
null
null
src/i2c/airQuality.py
mazsbc03/MA-Z
f91df671f81cdfaf29dfe1df59d731b0c55e859b
[ "Apache-2.0" ]
1
2020-03-04T08:07:00.000Z
2020-03-04T08:07:00.000Z
class airQuality: def __init__(self, bus): self.iaq = 0 self.bus = bus self.address = 0x5A self.datablock = 9 self.data = 0 def read(self): data = self.bus.read_i2c_block_data(self.address, 0x00, self.datablock) #WIP # Convert the data #if...
36.653846
132
0.520462
69d0d5b934475b5a5146a3e080e2feba1d9fddd6
2,346
py
Python
pubmedextract/sex.py
allenai/pubmedextract
2723b3d23697fcd83cc931de5f0b6abe3588938f
[ "Apache-2.0" ]
8
2019-03-16T08:42:24.000Z
2021-01-20T09:05:54.000Z
pubmedextract/sex.py
allenai/pubmedextract
2723b3d23697fcd83cc931de5f0b6abe3588938f
[ "Apache-2.0" ]
1
2019-07-09T13:25:06.000Z
2019-07-09T13:25:06.000Z
pubmedextract/sex.py
allenai/pubmedextract
2723b3d23697fcd83cc931de5f0b6abe3588938f
[ "Apache-2.0" ]
2
2019-07-09T12:22:43.000Z
2020-10-18T19:24:17.000Z
import numpy as np from pubmedextract.sex_utils.namedtuples import DemographicInfo from pubmedextract.sex_utils.parse_sex_rows import parse_sex_rows from pubmedextract.sex_utils.subdivide_table import subdivide from pubmedextract.sex_utils.sex_from_omnipage_tables import extract_male_female_counts_from_tables def ge...
46
116
0.652174
e7167dd9db0c31a3c1a0aee225f873ec8e78eee7
2,805
py
Python
utils/eval.py
ciocancosmin98/MixMatch-pytorch
81de2e0a758e1e12cb939c482a383acbd2cc2824
[ "MIT" ]
null
null
null
utils/eval.py
ciocancosmin98/MixMatch-pytorch
81de2e0a758e1e12cb939c482a383acbd2cc2824
[ "MIT" ]
null
null
null
utils/eval.py
ciocancosmin98/MixMatch-pytorch
81de2e0a758e1e12cb939c482a383acbd2cc2824
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import from torchvision.transforms import ToTensor import PIL.Image import matplotlib.pyplot as plt import torch import numpy as np import io __all__ = ['accuracy', 'confusion_matrix', 'plot_confusion_matrix', 'precision_recall'] def accuracy(outputs, targets): batc...
25.972222
91
0.655258
6ff42fd269f14b04c792746c049432e135d87111
10,344
py
Python
train_basic.py
LinXueyuanStdio/EchoEA
d9b8564023cca71678dec44cf8cab3f91736448a
[ "Apache-2.0" ]
1
2022-03-14T06:33:42.000Z
2022-03-14T06:33:42.000Z
train_basic.py
LinXueyuanStdio/EchoEA
d9b8564023cca71678dec44cf8cab3f91736448a
[ "Apache-2.0" ]
1
2022-03-14T06:34:57.000Z
2022-03-15T08:35:56.000Z
train_basic.py
LinXueyuanStdio/EchoEA
d9b8564023cca71678dec44cf8cab3f91736448a
[ "Apache-2.0" ]
null
null
null
import argparse import itertools from pathlib import Path from data import DBP15K from loss import L1_Loss from model import * from toolbox.DataSchema import read_cache from toolbox.RandomSeeds import set_seeds from utils import composeS, add_inverse_rels, get_hits, get_hits_stable, load_alignment_pair set_seeds() ...
38.453532
243
0.607405
6b15ec3813b15af63a13e4237391b793d378f939
4,884
py
Python
multiplai/structural_plasticity/clique/clique_test.py
dmacd/deep-neuroevolution
47f98d4c71ea6be0c63b2ab78c0814da137800d2
[ "MIT" ]
1
2019-12-25T14:52:19.000Z
2019-12-25T14:52:19.000Z
multiplai/structural_plasticity/clique/clique_test.py
dmacd/deep-neuroevolution
47f98d4c71ea6be0c63b2ab78c0814da137800d2
[ "MIT" ]
null
null
null
multiplai/structural_plasticity/clique/clique_test.py
dmacd/deep-neuroevolution
47f98d4c71ea6be0c63b2ab78c0814da137800d2
[ "MIT" ]
null
null
null
import pytest from mxnet import ndarray as nd import numpy as np import mxnet as mx import multiplai.structural_plasticity.clique.clique as c from multiplai.structural_plasticity.assembly_test import allclose def test_cluster_wta(): activations = nd.array([1, 2, 3, 4, 2, 1, ...
29.071429
79
0.612408
627ec1a63cb45ed9aec9f641ee57de3f0712f698
9,413
py
Python
popsearch/sample.py
flennerhag/popsearch
92f81d68bd577338de382abf2f7ed9dc1f8c8656
[ "BSD-3-Clause" ]
1
2019-09-14T08:15:30.000Z
2019-09-14T08:15:30.000Z
popsearch/sample.py
flennerhag/popsearch
92f81d68bd577338de382abf2f7ed9dc1f8c8656
[ "BSD-3-Clause" ]
null
null
null
popsearch/sample.py
flennerhag/popsearch
92f81d68bd577338de382abf2f7ed9dc1f8c8656
[ "BSD-3-Clause" ]
null
null
null
""" Routines for sampling parameters """ from numpy.random import RandomState from .utils import parse_params ############################################################################### PERTURB_RANGE = { int: (1, 1), float: (0.1, 0.1), bool: False, str: False } def uniform(mn, mx, rs): """S...
28.963077
82
0.562839
cfc199773a4e983a81ddd3fa2aee1e8e31864de0
2,242
py
Python
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_checkos/Opengauss_Function_Tools_gs_checkos_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_checkos/Opengauss_Function_Tools_gs_checkos_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_checkos/Opengauss_Function_Tools_gs_checkos_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
32.970588
84
0.657449
5c626e577274a40a6c5e4ca71a8829db39d9f234
4,389
py
Python
batch/batch/log_store.py
danking/hail
b857e9f3934541bb59702277137d9073f63f7438
[ "MIT" ]
null
null
null
batch/batch/log_store.py
danking/hail
b857e9f3934541bb59702277137d9073f63f7438
[ "MIT" ]
3
2017-06-16T18:10:45.000Z
2017-07-21T17:44:13.000Z
batch/batch/log_store.py
danking/hail
b857e9f3934541bb59702277137d9073f63f7438
[ "MIT" ]
2
2018-01-30T00:50:52.000Z
2018-03-22T20:04:01.000Z
import logging import asyncio from hailtop.google_storage import GCS from .spec_writer import SpecWriter from .globals import BATCH_FORMAT_VERSION from .batch_format_version import BatchFormatVersion log = logging.getLogger('logstore') class LogStore: def __init__(self, batch_logs_bucket_name, worker_logs_buck...
45.71875
135
0.72226
e169339bc33f9345dcff101504e896a6ec0f4ea0
395
py
Python
openbook_notifications/migrations/0002_notification_read.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
164
2019-07-29T17:59:06.000Z
2022-03-19T21:36:01.000Z
openbook_notifications/migrations/0002_notification_read.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
188
2019-03-16T09:53:25.000Z
2019-07-25T14:57:24.000Z
openbook_notifications/migrations/0002_notification_read.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
80
2019-08-03T17:49:08.000Z
2022-02-28T16:56:33.000Z
# Generated by Django 2.1.7 on 2019-02-28 16:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('openbook_notifications', '0001_initial'), ] operations = [ migrations.AddField( model_name='notification', name='rea...
20.789474
53
0.607595
cb86693db34b7a9b33cf819ff38b5ec185c80142
31,574
py
Python
FactorLib/data_source/h5db.py
wanhanwan/Packages
14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3
[ "MIT" ]
5
2018-06-29T16:56:10.000Z
2019-06-20T03:31:44.000Z
FactorLib/data_source/h5db.py
wanhanwan/Packages
14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3
[ "MIT" ]
null
null
null
FactorLib/data_source/h5db.py
wanhanwan/Packages
14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3
[ "MIT" ]
3
2018-06-25T06:37:17.000Z
2018-11-22T08:12:20.000Z
# coding: utf-8 """基于HDF文件的数据库""" import pandas as pd import numpy as np import os import warnings from multiprocessing import Lock from ..utils.datetime_func import Datetime2DateStr, DateStr2Datetime from ..utils.tool_funcs import ensure_dir_exists from ..utils.disk_persist_provider import DiskPersistProvid...
43.913769
123
0.573225
2e8accff03ccac2eb4971563f5d286f1df714bd4
2,552
py
Python
examples/lif.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
examples/lif.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
examples/lif.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
import numpy as np import events_tfds.vis.anim as anim from numba_stream import grid from numba_stream.lif import leaky_integrate_and_fire, spatial_leaky_integrate_and_fire from numba_stream.ragged import transpose_csr try: from events_tfds.events.nmnist import NMNIST from events_tfds.vis.image import as_fram...
32.303797
87
0.655956
af1a46b2bd5fd5c7da5f8f76add2cbdae9252624
1,906
py
Python
anytask/lessons/migrations/0001_initial.py
antselevich/anytask
b00ea8ad929f267ac4a37d1a0eaabce28c5b02cf
[ "MIT" ]
31
2015-03-24T21:11:44.000Z
2022-03-28T22:55:12.000Z
anytask/lessons/migrations/0001_initial.py
antselevich/anytask
b00ea8ad929f267ac4a37d1a0eaabce28c5b02cf
[ "MIT" ]
286
2015-06-11T10:32:16.000Z
2022-03-28T12:01:04.000Z
anytask/lessons/migrations/0001_initial.py
bcskda/anytask
5a359dcb669b689fc5a4f1705f2c88cd031ab37d
[ "MIT" ]
44
2015-05-23T21:30:51.000Z
2021-11-07T12:56:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('groups', '0001_initial'), ('cours...
47.65
143
0.609129
598962017d21ac238651cb28494daa896ece08e9
6,839
py
Python
EOSS/data/problem_specific.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
EOSS/data/problem_specific.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
EOSS/data/problem_specific.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
from string import ascii_uppercase from EOSS.vassar.api import VASSARClient from asgiref.sync import async_to_sync from EOSS.graphql.client.Abstract import AbstractGraphqlClient ''' Because this functionality is hardcoded, it is not compatible with daphne's new aws architecture. The current issue specifically...
41.198795
119
0.69206
0f049e5fc91350f6091c7fad85949a4a19aba641
1,630
py
Python
venv_py36/Lib/site-packages/PyInstaller/config.py
PeterMoresco/RefriCalcSoft
1ed728ef1937fdda248cee19d97b3d13bd98af03
[ "MIT" ]
1
2018-09-12T06:30:21.000Z
2018-09-12T06:30:21.000Z
venv_py36/Lib/site-packages/PyInstaller/config.py
PeterMoresco/RefriCalcSoft
1ed728ef1937fdda248cee19d97b3d13bd98af03
[ "MIT" ]
1
2018-09-12T06:32:17.000Z
2018-09-12T19:03:50.000Z
venv/lib/python3.6/site-packages/PyInstaller/config.py
rilakkyuma/tweetdelete
5ac4001b2ba7c7d87379e616c93361c2090ed4ae
[ "MIT" ]
2
2018-12-29T07:49:59.000Z
2020-03-18T02:44:31.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2018, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
28.103448
81
0.689571
dbe33ffdbdf78333b1026621ebfe7a05dec2e10f
14,830
py
Python
python_modules/dagster/dagster/core/storage/event_log/in_memory.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/event_log/in_memory.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/event_log/in_memory.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
import logging import time import warnings from collections import OrderedDict, defaultdict from typing import Dict, Iterable, Mapping, Optional, Sequence, Set, cast import dagster._check as check from dagster.core.assets import AssetDetails from dagster.core.definitions.events import AssetKey from dagster.core.events...
35.90799
103
0.589413
c7430101d0558d87eaf0933c33d4f27b66f4a703
8,113
py
Python
AirSimE2EDeepLearning/Cooking.py
EVYang1992/AutonomousDrivingCookbook
a0b2c011ff901ea7b20dac50435ff0a959485d81
[ "MIT" ]
29
2018-01-31T00:38:02.000Z
2022-02-10T08:01:08.000Z
AirSimE2EDeepLearning/Cooking.py
Bigfoots/AutonomousDrivingCookbook
a0b2c011ff901ea7b20dac50435ff0a959485d81
[ "MIT" ]
null
null
null
AirSimE2EDeepLearning/Cooking.py
Bigfoots/AutonomousDrivingCookbook
a0b2c011ff901ea7b20dac50435ff0a959485d81
[ "MIT" ]
11
2018-01-31T01:04:28.000Z
2021-12-26T14:49:10.000Z
import random import csv from PIL import Image import numpy as np import pandas as pd import sys import os import errno from collections import OrderedDict import h5py from pathlib import Path import copy import re def checkAndCreateDir(full_path): """检查给出的路径是否存在,不存在,创建此路径。 输入: full_p...
40.163366
148
0.622088
e90799c704ee281bbe21d412e8857c2c7048ab54
401
py
Python
hawkeye/utils/schemas/db_credentials_schema.py
Sheshtawy/hawkeye
3f8a6002ec56edc6d60d0fb87aa6b7ee56ccfb14
[ "MIT" ]
1
2017-08-08T14:30:36.000Z
2017-08-08T14:30:36.000Z
hawkeye/utils/schemas/db_credentials_schema.py
Sheshtawy/hawkeye
3f8a6002ec56edc6d60d0fb87aa6b7ee56ccfb14
[ "MIT" ]
45
2017-08-22T13:01:51.000Z
2017-12-12T12:19:14.000Z
hawkeye/utils/schemas/db_credentials_schema.py
Sheshtawy/hawkeye
3f8a6002ec56edc6d60d0fb87aa6b7ee56ccfb14
[ "MIT" ]
null
null
null
DB_CREDENTIALS_SCHEMA = { "type": "object", "properties": { "host": { "type": "string", "minLength": 1 }, "port": { "type": "number" }, "username": { "type": "string", "minLength": 1 }, "password"...
19.095238
29
0.336658
cac334f7d9974bfd512ef872cad96bd245476508
4,923
py
Python
sigpyproc/core/stats.py
FRBs/sigpyproc3
b1f87c0174ca5770d0e5b5380a53cdd2dd8b7a86
[ "MIT" ]
9
2020-08-12T16:54:00.000Z
2022-03-29T23:04:31.000Z
sigpyproc/core/stats.py
FRBs/sigpyproc3
b1f87c0174ca5770d0e5b5380a53cdd2dd8b7a86
[ "MIT" ]
19
2020-08-14T06:57:49.000Z
2022-02-23T14:53:21.000Z
sigpyproc/core/stats.py
FRBs/sigpyproc3
b1f87c0174ca5770d0e5b5380a53cdd2dd8b7a86
[ "MIT" ]
6
2020-07-31T11:36:29.000Z
2022-02-22T18:50:32.000Z
from __future__ import annotations import numpy as np import bottleneck as bn from sigpyproc.core import kernels def running_median(array, window): """ Calculate the running median of an array. Parameters ---------- array : numpy.ndarray The array to calculate the running median of. ...
27.657303
90
0.576275
88e9677189f77004018655852a0711483def4fb9
13,449
py
Python
sdk/python/pulumi_azure_native/network/virtual_router_peering.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/virtual_router_peering.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/virtual_router_peering.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from .. import _utilities __a...
45.435811
1,931
0.655811
4ae173cc43d33ce485a502f5234562133d4e6154
1,805
py
Python
kuknos_sdk/xdr/ledger_header_ext.py
javadnikbakht/kuknos_sdk
0755e9eb713702bd8b62bce9d56c5fa716e82efb
[ "Apache-2.0" ]
null
null
null
kuknos_sdk/xdr/ledger_header_ext.py
javadnikbakht/kuknos_sdk
0755e9eb713702bd8b62bce9d56c5fa716e82efb
[ "Apache-2.0" ]
null
null
null
kuknos_sdk/xdr/ledger_header_ext.py
javadnikbakht/kuknos_sdk
0755e9eb713702bd8b62bce9d56c5fa716e82efb
[ "Apache-2.0" ]
null
null
null
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from .base import * from ..exceptions import ValueError __all__ = ["LedgerHeaderExt"] class LedgerHeaderExt: """ XDR Source Code ---------------------------------...
25.422535
68
0.541274