hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795ddd5184727d5f04ed371c448a3dbd0095f6dd
968
py
Python
src/cfiddle/Exceptions.py
NVSL/fiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
2
2022-01-22T06:12:52.000Z
2022-01-24T07:29:44.000Z
src/cfiddle/Exceptions.py
NVSL/cfiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
null
null
null
src/cfiddle/Exceptions.py
NVSL/cfiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
null
null
null
from functools import wraps from click import secho class CFiddleException(Exception): pass def handle_cfiddle_exceptions(f): from .config import in_debug, get_config @wraps(f) def wrapped(*argc, **kwargs): try: return f(*argc, **kwargs) except CFiddleException as e: ...
27.657143
125
0.520661
795dde50b2d371906c051ae6475f09950b41c3e0
1,695
py
Python
horizon/test/tests/exceptions.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
60
2015-03-09T14:31:46.000Z
2021-12-12T19:22:31.000Z
horizon/test/tests/exceptions.py
2733284198/avos
becf7dd313fb8569581f985118c8367921c731ab
[ "Apache-2.0" ]
7
2015-04-13T13:21:10.000Z
2016-02-24T18:38:28.000Z
horizon/test/tests/exceptions.py
2733284198/avos
becf7dd313fb8569581f985118c8367921c731ab
[ "Apache-2.0" ]
13
2015-03-09T17:26:26.000Z
2020-02-22T19:19:14.000Z
# 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 # d...
41.341463
78
0.667257
795dde6acb55553b1f0205b417742873e5eda339
516
py
Python
Backend/parser/setup.py
nemkrisz11/Computer-Security-Homework-2021-SHAjt
f60d81b38e1c82a1618e7d83179b36318905d00c
[ "Apache-2.0" ]
null
null
null
Backend/parser/setup.py
nemkrisz11/Computer-Security-Homework-2021-SHAjt
f60d81b38e1c82a1618e7d83179b36318905d00c
[ "Apache-2.0" ]
56
2021-10-01T13:31:21.000Z
2021-12-03T09:58:04.000Z
Backend/parser/setup.py
nemkrisz11/Computer-Security-Homework-2021-SHAjt
f60d81b38e1c82a1618e7d83179b36318905d00c
[ "Apache-2.0" ]
null
null
null
import sys from pybind11 import get_cmake_dir # Available at setup time due to pyproject.toml from pybind11.setup_helpers import Pybind11Extension, build_ext from setuptools import setup ext_modules = [ Pybind11Extension("caffparser", ["pybind11_wrapper.cpp", "src/CaffParser.cpp", "src/CiffParser.cpp"] ...
24.571429
76
0.718992
795dde7d6c020dff504a7d33e4fc6ede6b18e920
271
py
Python
Spider/DouBanSpider/test/testUa.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
Spider/DouBanSpider/test/testUa.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
Spider/DouBanSpider/test/testUa.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
# -*- coding = utf-8 -*- # @Time:2021/3/115:35 # @Author:Linyu # @Software:PyCharm from fake_useragent import UserAgent ua = UserAgent() ua = ua.random print(type(ua)) #Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1467.0 Safari/537.36
24.636364
101
0.701107
795ddeee5ded53b0387be68ef507220963f7d343
16,638
py
Python
tests/oauth1/rfc5849/endpoints/test_base.py
shssoichiro/oauthlib
754b003514eaac50ac30f207bac692c39c6a94c6
[ "BSD-3-Clause" ]
null
null
null
tests/oauth1/rfc5849/endpoints/test_base.py
shssoichiro/oauthlib
754b003514eaac50ac30f207bac692c39c6a94c6
[ "BSD-3-Clause" ]
null
null
null
tests/oauth1/rfc5849/endpoints/test_base.py
shssoichiro/oauthlib
754b003514eaac50ac30f207bac692c39c6a94c6
[ "BSD-3-Clause" ]
2
2019-08-20T16:29:23.000Z
2020-02-15T18:35:43.000Z
from __future__ import absolute_import, unicode_literals from re import sub from mock import MagicMock from oauthlib.common import CaseInsensitiveDict, safe_string_equals from oauthlib.oauth1 import Client, RequestValidator from oauthlib.oauth1.rfc5849 import (SIGNATURE_HMAC, SIGNATURE_PLAINTEXT, ...
40.779412
88
0.620267
795ddef35c6baf54fe3f4f95112deb1900f78c50
316
py
Python
src/django_urlconf_export/views/http404.py
lyst/django-urlconf-export
3095948f2480b327f709927bbd7ae6ae03151cfd
[ "Apache-2.0" ]
2
2021-07-08T17:17:32.000Z
2022-01-04T03:38:57.000Z
src/django_urlconf_export/views/http404.py
lyst/django-urlconf-export
3095948f2480b327f709927bbd7ae6ae03151cfd
[ "Apache-2.0" ]
2
2020-05-29T16:54:19.000Z
2020-06-23T14:35:00.000Z
src/django_urlconf_export/views/http404.py
lyst/django-urlconf-export
3095948f2480b327f709927bbd7ae6ae03151cfd
[ "Apache-2.0" ]
1
2021-07-08T17:17:35.000Z
2021-07-08T17:17:35.000Z
from django.http import Http404 from django.views import View class Http404View(View): """ When we import URLconf, we must associate a view with each URL pattern. So we use this view that always returns 404. """ def dispatch(self, request, *args, **kwargs): raise Http404("not found")
24.307692
75
0.683544
795de06c56e4c1a711d695d7257d86d9405e112a
1,550
bzl
Python
swift/deps.bzl
ourcanopy/rules_grpc_swift
2e833b7070fc3aebe1e19bc9dc9fbd0edf6f8389
[ "MIT" ]
null
null
null
swift/deps.bzl
ourcanopy/rules_grpc_swift
2e833b7070fc3aebe1e19bc9dc9fbd0edf6f8389
[ "MIT" ]
null
null
null
swift/deps.bzl
ourcanopy/rules_grpc_swift
2e833b7070fc3aebe1e19bc9dc9fbd0edf6f8389
[ "MIT" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") load("@build_stack_rules_proto//:deps.bzl", "bazel_skylib", "build_bazel_rules_swift" ) load("//swift:zlib.bzl", "ZLIB_BUILD_FILE_CONTENT") load("//swift:grpc_swift.bzl", "GRPC_SWIFT_BUILD_FILE_CONTENT") load("//swift:swift_protobuf.bzl",...
36.046512
98
0.694839
795de096c19e546a1bf81c03a12efb112c005b00
11,219
py
Python
tensorflow/python/ops/linalg_ops.py
vmalarcon/tensorflow
eda89e930cfcbd992ecacafd40267d733e2153dc
[ "Apache-2.0" ]
21
2016-03-10T11:55:45.000Z
2021-02-03T02:49:11.000Z
tensorflow/python/ops/linalg_ops.py
vmalarcon/tensorflow
eda89e930cfcbd992ecacafd40267d733e2153dc
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/linalg_ops.py
vmalarcon/tensorflow
eda89e930cfcbd992ecacafd40267d733e2153dc
[ "Apache-2.0" ]
39
2016-03-25T05:13:09.000Z
2020-06-16T01:30:53.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.925267
80
0.675283
795de1405b256a450e2c89720e49993b33146e3a
3,613
py
Python
hb-downloader.py
Lordakius/hb-downloader
a5a2dc71b1a4621346aae4f317684003c41a3db2
[ "MIT" ]
195
2016-04-18T08:08:42.000Z
2022-03-06T17:49:07.000Z
hb-downloader.py
Lordakius/hb-downloader
a5a2dc71b1a4621346aae4f317684003c41a3db2
[ "MIT" ]
20
2016-03-14T15:02:57.000Z
2021-04-30T07:05:37.000Z
hb-downloader.py
Lordakius/hb-downloader
a5a2dc71b1a4621346aae4f317684003c41a3db2
[ "MIT" ]
45
2017-06-01T02:23:00.000Z
2022-02-15T01:34:17.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import hb_downloader.logger as logger from hb_downloader.config_data import ConfigData from hb_downloader.configuration import Configuration from hb_downloader.event_handler import EventHandler from hb_downloader.humble_api.humble_api import HumbleApi from hb_dow...
39.271739
119
0.761971
795de276e5fb000e3ba1081a0d2b429d1a5faca7
20,536
py
Python
trees/binarytree.py
Sukhrobjon/career-lab
67bc38c0eb3b47248157f618cb34ed2bdd44fc78
[ "MIT" ]
null
null
null
trees/binarytree.py
Sukhrobjon/career-lab
67bc38c0eb3b47248157f618cb34ed2bdd44fc78
[ "MIT" ]
null
null
null
trees/binarytree.py
Sukhrobjon/career-lab
67bc38c0eb3b47248157f618cb34ed2bdd44fc78
[ "MIT" ]
null
null
null
#!python # from stack import LinkedStack # from queue import LinkedQueue class BinaryTreeNode(object): def __init__(self, data): """Initialize this binary tree node with the given data.""" self.data = data self.left = None self.right = None def __repr__(self): """Retu...
42.429752
88
0.610148
795de30c04ebc9dd34ccf37caff3b81ba18a138a
1,105
py
Python
setup.py
manosim/pypiup
53dfd9257deb953bc8cf64c584e2ecff9e03f482
[ "BSD-2-Clause" ]
15
2016-09-01T09:47:39.000Z
2021-03-25T01:12:41.000Z
setup.py
manosim/pypiup
53dfd9257deb953bc8cf64c584e2ecff9e03f482
[ "BSD-2-Clause" ]
6
2016-09-01T10:32:09.000Z
2021-03-19T21:49:40.000Z
setup.py
manosim/pypiup
53dfd9257deb953bc8cf64c584e2ecff9e03f482
[ "BSD-2-Clause" ]
1
2017-06-12T08:23:36.000Z
2017-06-12T08:23:36.000Z
from setuptools import find_packages, setup setup( name='pypiup', version=__import__('pypiup').__version__, author="Emmanouil Konstantinidis", author_email="hello@manos.im", packages=find_packages(), include_package_data=True, url="https://github.com/manosim/pypiup", license='BSD', ...
30.694444
71
0.613575
795de30fd1c42095650ebb171ace5b7ddac09eae
4,896
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_host_feature_facts.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_host_feature_facts.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_host_feature_facts.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata_...
32.210526
138
0.670956
795de46417fdf79bf84be41fbe96758df554e672
600
py
Python
venv/lib/python3.7/site-packages/PyInstaller/hooks/hook-jsonpath_rw_ext.py
alexzacher/BMI-Body-Mass-Index-Calculator-APP
f54473757992568b73b066d507059e1053357174
[ "MIT" ]
5
2020-08-24T23:29:58.000Z
2022-02-07T19:58:07.000Z
PyInstaller/hooks/hook-jsonpath_rw_ext.py
samuelhwilliams/pyinstaller
8714423aa56803027b5a5585257392024ea9f7a0
[ "Apache-2.0" ]
12
2020-02-15T04:04:55.000Z
2022-02-18T20:29:49.000Z
pyinstaller-develop/PyInstaller/hooks/hook-jsonpath_rw_ext.py
onecklam/ethereum-graphviz
6993accf0cb85e23013bf7ae6b04145724a6dbd2
[ "Apache-2.0" ]
2
2020-08-24T23:30:06.000Z
2021-12-23T18:23:38.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2018-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
40
78
0.578333
795de555b09818feb07cabe6313ea9b711abcd5a
13,664
py
Python
scripts/spike_log_to_trace_csv.py
dpetrisko/riscv-dv
d07c42ded9c47f9fe1a7227edd0cd97120aa5d1a
[ "Apache-2.0" ]
1
2019-12-24T02:10:12.000Z
2019-12-24T02:10:12.000Z
scripts/spike_log_to_trace_csv.py
dpetrisko/riscv-dv
d07c42ded9c47f9fe1a7227edd0cd97120aa5d1a
[ "Apache-2.0" ]
null
null
null
scripts/spike_log_to_trace_csv.py
dpetrisko/riscv-dv
d07c42ded9c47f9fe1a7227edd0cd97120aa5d1a
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 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, software di...
34.245614
89
0.600776
795de59588a2e34e661936f29745c56a3801fc65
5,548
py
Python
pyburst/kepler/kepler_jobs.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
4
2019-05-01T07:30:15.000Z
2021-08-04T15:04:38.000Z
pyburst/kepler/kepler_jobs.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
null
null
null
pyburst/kepler/kepler_jobs.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
4
2019-03-26T12:38:37.000Z
2022-03-09T05:30:18.000Z
# ======================================================== # Functions for writing job submission scripts on cluster (e.g. monarch, ICER) # ======================================================== import os # pyburst from pyburst.grids import grid_strings def write_both_jobscripts(batch, source, walltime, path=None,...
34.246914
90
0.600577
795de5c2c8f8b6840e76a6854597b84a6ab81389
28,471
py
Python
reviewboard/accounts/models.py
grimmy/reviewboard
ca673e1ba77985a5dc1f3261595ba0389b48e093
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/accounts/models.py
grimmy/reviewboard
ca673e1ba77985a5dc1f3261595ba0389b48e093
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/accounts/models.py
grimmy/reviewboard
ca673e1ba77985a5dc1f3261595ba0389b48e093
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models from django.db.models import Q from django.db.models.signals import m2m_changed from django.dispatch import receiver from django.utils import timezone from django.utils.encoding import python_2_unicode_comp...
37.216993
79
0.661059
795de5eb64d00b31b61807f7159647f6f2198be9
27,109
py
Python
vplexapi-7.0.0/vplexapi/api/consistency_group_api.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/api/consistency_group_api.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/api/consistency_group_api.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library...
48.065603
350
0.645431
795de5ecfd4631792161362005fd41b1fb15db2e
9,854
py
Python
ceilometer/tests/api/v1/test_list_meters_scenarios.py
lexxito/monitoring
bec8dfb8d3610331c7ae5ec543e0b8da0948c164
[ "Apache-2.0" ]
1
2016-04-15T17:14:59.000Z
2016-04-15T17:14:59.000Z
ceilometer/tests/api/v1/test_list_meters_scenarios.py
lexxito/monitoring
bec8dfb8d3610331c7ae5ec543e0b8da0948c164
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/api/v1/test_list_meters_scenarios.py
lexxito/monitoring
bec8dfb8d3610331c7ae5ec543e0b8da0948c164
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright 2012 Red Hat, Inc. # # Author: Angus Salkeld <asalkeld@redhat.com> # Julien Danjou <julien@danjou.info> # # 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 Li...
39.733871
75
0.516846
795de6a40889eda3737c7cab67e583d4f06ee8d5
5,046
py
Python
tensorflow/contrib/slim/python/slim/data/dataset_data_provider_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/slim/python/slim/data/dataset_data_provider_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/slim/python/slim/data/dataset_data_provider_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.565217
80
0.682719
795de6b4202718dcab05e26f54ccf87d2132c5d8
1,416
py
Python
LinkedLists/2.6.py
gasamoma/cracking-code
888b73f81c90bbb8fe4a30f49fff7bd91733bd38
[ "MIT" ]
1
2019-09-11T04:43:17.000Z
2019-09-11T04:43:17.000Z
LinkedLists/2.6.py
gasamoma/cracking-code
888b73f81c90bbb8fe4a30f49fff7bd91733bd38
[ "MIT" ]
null
null
null
LinkedLists/2.6.py
gasamoma/cracking-code
888b73f81c90bbb8fe4a30f49fff7bd91733bd38
[ "MIT" ]
null
null
null
#Palindrome: Implement a function to check if a linked list is a palindrome. # only letters from a-z? A:Yes # no caps right? A:No there are no caps # simple linked list? A:yes #can i use hash a: NO class LinkedList: def __init__(self,value): self.next=None self.value=value def add(self,value): head = s...
22.125
77
0.655367
795de87ef19b5603cbe5e82b5638ee54e91b75ef
11,778
py
Python
script/tools/extract_labels.py
bakaserval/FrackinUniverse-sChinese-Project
81962e162c98419c807d780d670671e4ecb6607c
[ "MIT" ]
null
null
null
script/tools/extract_labels.py
bakaserval/FrackinUniverse-sChinese-Project
81962e162c98419c807d780d670671e4ecb6607c
[ "MIT" ]
null
null
null
script/tools/extract_labels.py
bakaserval/FrackinUniverse-sChinese-Project
81962e162c98419c807d780d670671e4ecb6607c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from bisect import insort_left from codecs import open as open_n_decode from json import dump, load, loads from multiprocessing import Pool from os import makedirs, remove, walk from os.path import abspath, basename, dirname, exists, join, relpath from re import compile as regex from sys import plat...
37.272152
109
0.564187
795de8829ab6a3105f884e2b428997a2710f5cda
37,117
py
Python
Oem/dbxml/dbxml/src/python/bsddb3-4.8.1/Lib/bsddb/test/test_basics.py
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
2
2017-04-19T01:38:30.000Z
2020-07-31T03:05:32.000Z
Oem/dbxml/dbxml/src/python/bsddb3-4.8.1/Lib/bsddb/test/test_basics.py
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
null
null
null
Oem/dbxml/dbxml/src/python/bsddb3-4.8.1/Lib/bsddb/test/test_basics.py
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
1
2021-12-29T10:46:12.000Z
2021-12-29T10:46:12.000Z
""" Basic TestCases for BTree and hash DBs, with and without a DBEnv, with various DB flags, etc. """ import os import errno import string from pprint import pprint import unittest import time from test_all import db, test_support, verbose, get_new_environment_path, \ get_new_database_path DASH = '-' #----...
31.164568
101
0.531185
795de8e52ece77d20c0b13347147d4136c89875d
5,847
py
Python
kubernetes/client/models/v2beta2_cross_version_object_reference.py
venukarnati92/python-1
3fabf9ed9f4758fb5133975a58fc147471e91d9d
[ "Apache-2.0" ]
1
2022-02-07T21:57:20.000Z
2022-02-07T21:57:20.000Z
kubernetes/client/models/v2beta2_cross_version_object_reference.py
venukarnati92/python-1
3fabf9ed9f4758fb5133975a58fc147471e91d9d
[ "Apache-2.0" ]
1
2022-03-01T03:37:57.000Z
2022-03-01T03:37:57.000Z
kubernetes/client/models/v2beta2_cross_version_object_reference.py
venukarnati92/python-1
3fabf9ed9f4758fb5133975a58fc147471e91d9d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.22 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
32.303867
152
0.617753
795de90dfb3c088b09977db07ef8ce0510fa3550
14,714
py
Python
lib/werkzeug/testsuite/test.py
Slashbunny/maraschino
941a0f82a352e9c178e701d5156711b613f7f6db
[ "MIT" ]
137
2015-01-12T19:29:04.000Z
2022-02-25T04:51:02.000Z
lib/werkzeug/testsuite/test.py
Slashbunny/maraschino
941a0f82a352e9c178e701d5156711b613f7f6db
[ "MIT" ]
24
2015-01-06T08:36:13.000Z
2019-04-08T13:59:05.000Z
lib/werkzeug/testsuite/test.py
Slashbunny/maraschino
941a0f82a352e9c178e701d5156711b613f7f6db
[ "MIT" ]
57
2015-01-01T00:42:44.000Z
2022-03-10T20:54:41.000Z
# -*- coding: utf-8 -*- """ werkzeug.testsuite.test ~~~~~~~~~~~~~~~~~~~~~~~ Tests the testing tools. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement import sys import unittest from cStringIO import StringIO, OutputTyp...
39.029178
90
0.610779
795dea3e433bd5406a9eb0f9c069a452d847826f
44,657
py
Python
src/cait/cortic_webapp/main.py
mturktest123/cep
aff0c9b8a76d4d07d5e719a49faa11fa120a1704
[ "MIT" ]
1
2021-11-19T16:16:35.000Z
2021-11-19T16:16:35.000Z
src/cait/cortic_webapp/main.py
mturktest123/cep
aff0c9b8a76d4d07d5e719a49faa11fa120a1704
[ "MIT" ]
null
null
null
src/cait/cortic_webapp/main.py
mturktest123/cep
aff0c9b8a76d4d07d5e719a49faa11fa120a1704
[ "MIT" ]
null
null
null
""" Copyright (C) Cortic Technology Corp. - All Rights Reserved Written by Michael Ng <michaelng@cortic.ca>, 2021 """ from flask import Flask from flask_autoindex import AutoIndex from flask import render_template, request, redirect, session, jsonify, url_for from flask_cors import CORS from flask_login import ( ...
31.897857
117
0.630786
795dea7759a4c4a5348c81c646caa23053e7562d
162
py
Python
pneumonia_pkg/__init__.py
advait-t/pneumonia_package
4f62289a65c0c08e57b68a2190caa9ee1ab5d3eb
[ "MIT" ]
null
null
null
pneumonia_pkg/__init__.py
advait-t/pneumonia_package
4f62289a65c0c08e57b68a2190caa9ee1ab5d3eb
[ "MIT" ]
null
null
null
pneumonia_pkg/__init__.py
advait-t/pneumonia_package
4f62289a65c0c08e57b68a2190caa9ee1ab5d3eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 30 12:52:08 2020 @author: advait_t """ from pneumonia_pkg.pneumonia_pkg import prediction
16.2
50
0.697531
795dec66e99538b9ccf716011c0a22841b729f7d
3,863
py
Python
pynamodb/tests/integration/table_integration.py
augustincouette/PynamoDB
e250948dd593beb878042d5b949e07a6e0478ae5
[ "MIT" ]
3
2017-06-06T07:38:48.000Z
2021-07-21T21:38:34.000Z
pynamodb/tests/integration/table_integration.py
augustincouette/PynamoDB
e250948dd593beb878042d5b949e07a6e0478ae5
[ "MIT" ]
8
2016-03-28T21:22:04.000Z
2016-11-01T18:01:21.000Z
pynamodb/tests/integration/table_integration.py
augustincouette/PynamoDB
e250948dd593beb878042d5b949e07a6e0478ae5
[ "MIT" ]
4
2019-08-17T20:02:28.000Z
2020-12-01T01:11:25.000Z
""" Run tests against dynamodb using the table abstraction """ import time import config as cfg from pynamodb.constants import PROVISIONED_THROUGHPUT, READ_CAPACITY_UNITS from pynamodb.connection import TableConnection from pynamodb.types import STRING, HASH, RANGE, NUMBER table_name = 'pynamodb-ci' # For use with a ...
26.101351
102
0.508931
795ded5375991d4409bcc0a1bd3bf88ef26d7cb9
186
py
Python
configs/vinvl/vinvl_pretrain.py
inspur-hsslab/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
configs/vinvl/vinvl_pretrain.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
configs/vinvl/vinvl_pretrain.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
_base_ = [ '../_base_/models/vinvl/vinvl_pretrain_config.py', '../_base_/datasets/oscar/oscar_plus_pretrain_dataset.py', # oscar+ -> vinvl '../_base_/default_runtime.py', ]
31
81
0.682796
795ded7efcb771ca95ccb4128df50bc06020086c
10,469
py
Python
src/sage/geometry/polytope.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/geometry/polytope.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/polytope.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
""" Polytopes This module provides access to polymake, which 'has been developed since 1997 in the Discrete Geometry group at the Institute of Mathematics of Technische Universitat Berlin. Since 2004 the development is shared with Fachbereich Mathematik, Technische Universitat Darmstadt. The system offers access to a ...
30.973373
162
0.50683
795deda05a5ee5dc320b3d34e4fa5e2f342b2b4b
2,476
py
Python
frappe/utils/bench_helper.py
snehapatil1/frappe
dd2c33e34ad120e6305a2fa230a72d23a7a03e98
[ "MIT" ]
1
2020-12-07T22:35:21.000Z
2020-12-07T22:35:21.000Z
frappe/utils/bench_helper.py
snehapatil1/frappe
dd2c33e34ad120e6305a2fa230a72d23a7a03e98
[ "MIT" ]
11
2018-04-01T18:36:05.000Z
2018-10-04T07:56:07.000Z
frappe/utils/bench_helper.py
snehapatil1/frappe
dd2c33e34ad120e6305a2fa230a72d23a7a03e98
[ "MIT" ]
3
2018-01-16T17:59:55.000Z
2019-09-24T16:02:10.000Z
from __future__ import unicode_literals, print_function import click import frappe import os import json import importlib import frappe.utils import traceback click.disable_unicode_literals_warning = True def main(): commands = get_app_groups() commands.update({ 'get-frappe-commands': get_frappe_commands, 'get-...
25.791667
76
0.732229
795deda90a7e7c886cb80d393da4b7b5d57df353
32,750
py
Python
claspy.py
zbanks/axi-art
243d93fd725166bedb1ac6e391e26ee187aa99c4
[ "MIT" ]
null
null
null
claspy.py
zbanks/axi-art
243d93fd725166bedb1ac6e391e26ee187aa99c4
[ "MIT" ]
null
null
null
claspy.py
zbanks/axi-art
243d93fd725166bedb1ac6e391e26ee187aa99c4
[ "MIT" ]
null
null
null
# Copyright 2013 Dany Qumsiyeh (dany@qhex.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
39.64891
94
0.579298
795dee15804431e827853fa98d967c3385c64f51
2,919
py
Python
openstack_dashboard/api/microversions.py
xinni-ge/horizon
892607890a4a36f23ce2d33b98431b79929680db
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/microversions.py
xinni-ge/horizon
892607890a4a36f23ce2d33b98431b79929680db
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/microversions.py
xinni-ge/horizon
892607890a4a36f23ce2d33b98431b79929680db
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Cisco Systems # # 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, so...
38.92
78
0.692703
795dee7601e07cac2002e12887cbc135e0f6eb27
1,933
py
Python
mne/datasets/brainstorm/bst_auditory.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
1
2021-02-16T13:33:13.000Z
2021-02-16T13:33:13.000Z
mne/datasets/brainstorm/bst_auditory.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
mne/datasets/brainstorm/bst_auditory.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
1
2021-04-01T15:56:39.000Z
2021-04-01T15:56:39.000Z
# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr> # # License: BSD (3-clause) from functools import partial from ...utils import verbose from ..utils import (has_dataset, _data_path, _get_version, _version_doc, _data_path_doc_accept) has_brainstorm_data = partial(has_dataset, name='brainst...
33.912281
78
0.698396
795deec72d6c71bb7ad4ed30528988706a30df3e
35,005
py
Python
wasm/config64.py
zerjioang/core
ae092583a4b333dd975438a720da7cccfcd27707
[ "Apache-2.0" ]
133
2019-09-04T14:42:38.000Z
2022-03-24T12:21:32.000Z
wasm/config64.py
zerjioang/core
ae092583a4b333dd975438a720da7cccfcd27707
[ "Apache-2.0" ]
40
2019-10-02T15:01:38.000Z
2022-03-16T13:35:43.000Z
wasm/config64.py
zerjioang/core
ae092583a4b333dd975438a720da7cccfcd27707
[ "Apache-2.0" ]
53
2019-09-09T18:50:20.000Z
2022-03-22T07:17:08.000Z
#!/usr/bin/env python3 # # Copyright (c) 2012-2020 MIRACL UK Ltd. # # This file is part of MIRACL Core # (see https://github.com/miracl/core). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at...
36.312241
180
0.542351
795df0e7d71ba6c083a609d3d7600786f791e498
13
py
Python
gmap_admin/__init__.py
amites/django-gmap-admin
b792764503e1fb0ec6fce0efbe2b63cdcafb5d10
[ "BSD-2-Clause" ]
null
null
null
gmap_admin/__init__.py
amites/django-gmap-admin
b792764503e1fb0ec6fce0efbe2b63cdcafb5d10
[ "BSD-2-Clause" ]
null
null
null
gmap_admin/__init__.py
amites/django-gmap-admin
b792764503e1fb0ec6fce0efbe2b63cdcafb5d10
[ "BSD-2-Clause" ]
null
null
null
VERSION = 0.1
13
13
0.692308
795df1d7bc02a7062bd5fcdc888c30befb9cb85f
355
py
Python
live_code/Feb17-server/python/server.py
robots-make-art-too/EECS_1720
9779681e79bd063eee1801cb2f1dd8f3307d36a8
[ "MIT" ]
20
2022-01-20T15:26:57.000Z
2022-02-10T21:55:03.000Z
live_code/Feb17-server/python/server.py
robots-make-art-too/EECS_1720
9779681e79bd063eee1801cb2f1dd8f3307d36a8
[ "MIT" ]
null
null
null
live_code/Feb17-server/python/server.py
robots-make-art-too/EECS_1720
9779681e79bd063eee1801cb2f1dd8f3307d36a8
[ "MIT" ]
11
2022-01-20T20:33:55.000Z
2022-02-16T02:00:51.000Z
import http.server import socketserver PORT = 3030 #8080, 8887, 8898, Handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), Handler) as httpd: print("Hi you are at PORT: ", PORT) httpd.serve_forever() # to run>: python3 server.py # might have to install the imports # pip/pip3 in...
22.1875
58
0.740845
795df28916e2e1188803428820c5c7d2bab0a391
13,743
py
Python
simscale_sdk/models/one_of_solar_calculator_solar_load.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/one_of_solar_calculator_solar_load.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/one_of_solar_calculator_solar_load.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class OneOfSolarCalculatorSolarLoad(object): """NOTE: This class is a...
40.420588
311
0.690533
795df2a179b49b8335dbe7c7581bd00fcc7ebaf8
711
py
Python
sardine/lang/parser/objects.py
JavierLuna/sardine
5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec
[ "MIT" ]
null
null
null
sardine/lang/parser/objects.py
JavierLuna/sardine
5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec
[ "MIT" ]
null
null
null
sardine/lang/parser/objects.py
JavierLuna/sardine
5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec
[ "MIT" ]
null
null
null
class RepositoryDeclaration: __slots__ = ('name', 'alias') def __init__(self, name: str, alias: str): self.name = name self.alias = alias def __repr__(self): return f"<Repository {self.alias} ('{self.name}')>" class StackDeclaration: __slots__ = ('name', 'repository_name', 'a...
30.913043
100
0.655415
795df360b2cd7c2f225ab3b4d7941f3e83f49e9b
377
py
Python
ScrapyFotocasaParcer/myparcer/myparcer/pipelines.py
dravicenna/Spain-House-Web-Scrapers
be254b92e7ad9f86c97498561fe1b6d13869b957
[ "MIT" ]
null
null
null
ScrapyFotocasaParcer/myparcer/myparcer/pipelines.py
dravicenna/Spain-House-Web-Scrapers
be254b92e7ad9f86c97498561fe1b6d13869b957
[ "MIT" ]
null
null
null
ScrapyFotocasaParcer/myparcer/myparcer/pipelines.py
dravicenna/Spain-House-Web-Scrapers
be254b92e7ad9f86c97498561fe1b6d13869b957
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import os, os.path from scrapy.pipelines.images import ImagesPipeline, ImageException class MyparcerPipeline(object): def...
23.5625
66
0.740053
795df3e514f8152da1a2ac20428816b88a2e93fe
868
py
Python
test/test_user_recipient.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_user_recipient.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_user_recipient.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import opsgenie_swagger from opsgenie_swagger.models.user...
21.170732
86
0.702765
795df5202ee0e8ee934c6781cc8845d6892b773b
122
py
Python
EZrename/utils/__init__.py
Euphyzr/EZrename
129994aab1e4375920bbfed9fe3e4c6ff2ba20d0
[ "MIT" ]
null
null
null
EZrename/utils/__init__.py
Euphyzr/EZrename
129994aab1e4375920bbfed9fe3e4c6ff2ba20d0
[ "MIT" ]
null
null
null
EZrename/utils/__init__.py
Euphyzr/EZrename
129994aab1e4375920bbfed9fe3e4c6ff2ba20d0
[ "MIT" ]
null
null
null
""""EZrename command-line tool utilities.""" from .confighandler import ConfigHandler from .pathhandler import PathHandler
40.666667
44
0.819672
795df584f2c8f9b263b1a74692ae756a076a76f3
48,998
py
Python
app/sql.py
pjclock/haproxy-wi
2ea59c892ae24d824d29dd0cee580c969f64cc87
[ "Apache-2.0" ]
null
null
null
app/sql.py
pjclock/haproxy-wi
2ea59c892ae24d824d29dd0cee580c969f64cc87
[ "Apache-2.0" ]
null
null
null
app/sql.py
pjclock/haproxy-wi
2ea59c892ae24d824d29dd0cee580c969f64cc87
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import funct mysql_enable = funct.get_config_var('mysql', 'enable') if mysql_enable == '1': import mysql.connector as sqltool else: db = "/var/www/haproxy-wi/app/haproxy-wi.db" import sqlite3 as sqltool def get_cur(): try: if mysql_enable == '0': con = sqlt...
28.437609
223
0.638393
795df5f10739d3c3700c21cce3277d0336359943
12,827
py
Python
tools/nntool/expressions/symbolic/function_collection.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
tools/nntool/expressions/symbolic/function_collection.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
tools/nntool/expressions/symbolic/function_collection.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
42.614618
111
0.579793
795df5f987693d20ebbf26594d44fff3ef7e02d3
857
py
Python
MedicationScheduler/MedicationScheduler/urls.py
bew5294/MedicationScheduler
572566b639f9f177a41990d686e95236fe1e2734
[ "MIT" ]
null
null
null
MedicationScheduler/MedicationScheduler/urls.py
bew5294/MedicationScheduler
572566b639f9f177a41990d686e95236fe1e2734
[ "MIT" ]
5
2022-01-02T15:38:33.000Z
2022-01-06T15:56:05.000Z
MedicationScheduler/MedicationScheduler/urls.py
bew5294/MedicationScheduler
572566b639f9f177a41990d686e95236fe1e2734
[ "MIT" ]
null
null
null
"""MedicationScheduler URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/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')...
32.961538
77
0.70245
795df71e9b3158416605cfdfc8633445c39a3fd4
712
py
Python
setup.py
lexibank/starostinaltaic
638500a49eda3d4dbf2a08d4cfa94dd3d0acbc05
[ "CC-BY-4.0" ]
1
2021-12-14T06:03:25.000Z
2021-12-14T06:03:25.000Z
setup.py
lexibank/starostinaltaic
638500a49eda3d4dbf2a08d4cfa94dd3d0acbc05
[ "CC-BY-4.0" ]
null
null
null
setup.py
lexibank/starostinaltaic
638500a49eda3d4dbf2a08d4cfa94dd3d0acbc05
[ "CC-BY-4.0" ]
null
null
null
from setuptools import setup import sys import json PY2 = sys.version_info.major == 2 with open('metadata.json', **({} if PY2 else {'encoding': 'utf-8'})) as fp: metadata = json.load(fp) setup( name='lexibank_starostinaltaic', description=metadata['title'], license=metadata.get('license', ''), u...
22.25
75
0.605337
795df74c02be98b8ab9a7233069e178b0275b791
1,495
py
Python
ci/check_version_bump.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
334
2019-01-23T13:48:08.000Z
2019-06-10T06:58:49.000Z
ci/check_version_bump.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
564
2019-06-11T15:31:48.000Z
2022-03-31T19:53:03.000Z
ci/check_version_bump.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
155
2019-06-13T11:42:00.000Z
2022-03-16T18:31:24.000Z
#!/usr/bin/env python """Script that checks if a version bump is needed, and whether it has been made. Checks are based on which files have been changed, indicating potential incompatibility between versions. This script is meant to be run in the context or GitHub Actions, and expects all changed files to be passed ...
28.75
98
0.699666
795df8f0ceb09c192a607f0e5feadf114532c0d6
12,403
py
Python
maddpg/common/distributions.py
schroeder-dewitt/maddpg
a2827dddde3aab87d278ccdead39a3e5e380a332
[ "MIT" ]
1
2021-07-04T08:25:25.000Z
2021-07-04T08:25:25.000Z
maddpg/common/distributions.py
schroederdewitt/maddpg
a2827dddde3aab87d278ccdead39a3e5e380a332
[ "MIT" ]
null
null
null
maddpg/common/distributions.py
schroederdewitt/maddpg
a2827dddde3aab87d278ccdead39a3e5e380a332
[ "MIT" ]
1
2019-06-11T11:24:17.000Z
2019-06-11T11:24:17.000Z
import tensorflow as tf import numpy as np import maddpg.common.tf_util as U from tensorflow.python.ops import math_ops from multiagent.multi_discrete import MultiDiscrete from tensorflow.python.ops import nn class Pd(object): """ A particular probability distribution """ def flatparam(self): ...
35.235795
199
0.620173
795df9619e786e82c7639de5167faac0b6a8bc75
595
py
Python
10845/10845.py
doribugi/BOJ
eae161475b1d155b17376206dfd2f6a7d40e9a8c
[ "MIT" ]
null
null
null
10845/10845.py
doribugi/BOJ
eae161475b1d155b17376206dfd2f6a7d40e9a8c
[ "MIT" ]
1
2019-06-15T14:38:09.000Z
2022-01-26T00:18:53.000Z
10845/10845.py
doribugi/BOJ
eae161475b1d155b17376206dfd2f6a7d40e9a8c
[ "MIT" ]
null
null
null
# 문제: https://www.acmicpc.net/problem/10845 # 풀이: 주어진 명령을 조건문으로 확인하여 수행 import sys import queue n = int(sys.stdin.readline()) q = queue.deque() for _ in range(n): cmd = sys.stdin.readline().split() if cmd[0] == "push": q.append(int(cmd[1])) elif cmd[0] == "pop": print(q.popleft() if not len(...
28.333333
53
0.531092
795dfaae27094103c381f0bf977f6133eeca4f69
671
py
Python
zygoat/cli.py
kborer/zygoat
638bbdb2bc8b39510c03c77d968e94aadf5ae51b
[ "MIT" ]
null
null
null
zygoat/cli.py
kborer/zygoat
638bbdb2bc8b39510c03c77d968e94aadf5ae51b
[ "MIT" ]
1
2020-02-25T13:06:02.000Z
2020-02-25T13:06:02.000Z
zygoat/cli.py
kborer/zygoat
638bbdb2bc8b39510c03c77d968e94aadf5ae51b
[ "MIT" ]
null
null
null
import click import logging from .components import backend from .config import Config log = logging.getLogger() @click.group() @click.option('--verbose', '-v', is_flag=True) def cli(verbose): if verbose: log.setLevel(logging.DEBUG) Config() @cli.command() def init(): # Handled by the CLI con...
19.171429
79
0.703428
795dfbe412ffca7323dbe654379442b6fe3a57ba
2,026
py
Python
docs/conf.py
rogue707Dev/Django-security-headers
97e2e4d3505217aaf9352bb3d484cd30285e0f00
[ "BSD-3-Clause" ]
3
2020-01-27T10:07:04.000Z
2020-02-16T15:02:19.000Z
docs/conf.py
rogue707Dev/Django-security-headers
97e2e4d3505217aaf9352bb3d484cd30285e0f00
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
rogue707Dev/Django-security-headers
97e2e4d3505217aaf9352bb3d484cd30285e0f00
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
36.178571
79
0.674729
795dfbeaf38dc2a788963ec5cbfeb08dc9a179f7
511
py
Python
verification/hybrid_test_4/read_nodal_flat_stream_stresses.py
avenkatraman31/warp3d
ba9a2a58c4c1d8a1f35fb749ec2509a5ec6f7f84
[ "NCSA" ]
75
2015-07-06T18:14:20.000Z
2022-01-24T02:54:32.000Z
verification/hybrid_test_4/read_nodal_flat_stream_stresses.py
avenkatraman31/warp3d
ba9a2a58c4c1d8a1f35fb749ec2509a5ec6f7f84
[ "NCSA" ]
15
2017-04-07T18:09:58.000Z
2022-02-28T01:48:33.000Z
verification/hybrid_test_4/read_nodal_flat_stream_stresses.py
avenkatraman31/warp3d
ba9a2a58c4c1d8a1f35fb749ec2509a5ec6f7f84
[ "NCSA" ]
41
2015-05-24T23:24:54.000Z
2021-12-13T22:07:45.000Z
from numpy import * import os # stream_fname = "./wns0000030_stream" # fileobj = open(stream_fname, mode='rb') num_cols = 26 num_nodes = 1568 num_vals_to_read = num_nodes * num_cols data = fromfile(file=fileobj,count=num_vals_to_read, dtype=float64).reshape(num_nodes, num_cols) x0 = data[:,0] x1 = data[:,1] x2 =...
20.44
57
0.651663
795dfc1d9730e9652508c50e1ba9ac238a6d645a
2,442
py
Python
guacamol_baselines/frag_gt/frag_gt/src/query_builder.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
null
null
null
guacamol_baselines/frag_gt/frag_gt/src/query_builder.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
1
2022-03-09T10:56:36.000Z
2022-03-09T11:52:09.000Z
guacamol_baselines/frag_gt/frag_gt/src/query_builder.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
null
null
null
import logging from rdkit import Chem from typing import Optional, List, Tuple from .src.fragstore import FragStoreBase from .src.sampling import FragSampler logger = logging.getLogger(__name__) class FragQueryBuilder: """ This class is used to communicate with a fragment store to retrieve fragments suitab...
42.103448
119
0.665438
795dfdb70d0e41581a70cb1d03f1ab6e4504699a
1,869
py
Python
jaxlib/cuda_prng.py
fedden/jax
30bede1f6af5f147e379c5c5679172730f3767fa
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-09T18:19:14.000Z
2020-07-09T18:19:14.000Z
jaxlib/cuda_prng.py
fedden/jax
30bede1f6af5f147e379c5c5679172730f3767fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jaxlib/cuda_prng.py
fedden/jax
30bede1f6af5f147e379c5c5679172730f3767fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.677966
74
0.736758
795dfdfd9c489a8710b036cf3b0723b407f38b8c
290,472
py
Python
mindspore/python/mindspore/ops/operations/array_ops.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/ops/operations/array_ops.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/ops/operations/array_ops.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.754195
120
0.584053
795dfedeaa75fe96d6e4dd43cd8a743eaea626f8
5,554
py
Python
test/integration/ggrc_workflows/notifications/test_monthly_wf.py
acidburn0zzz/ggrc-core
386781d08172102eb51030b65db8212974651628
[ "ECL-2.0", "Apache-2.0" ]
1
2016-11-06T05:21:24.000Z
2016-11-06T05:21:24.000Z
test/integration/ggrc_workflows/notifications/test_monthly_wf.py
acidburn0zzz/ggrc-core
386781d08172102eb51030b65db8212974651628
[ "ECL-2.0", "Apache-2.0" ]
2
2021-02-02T23:09:40.000Z
2021-02-08T21:00:48.000Z
test/integration/ggrc_workflows/notifications/test_monthly_wf.py
Acidburn0zzz/ggrc-core
386781d08172102eb51030b65db8212974651628
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from integration.ggrc import TestCase from freezegun import freeze_time from datetime import datetime from mock import patch from ggrc.notifications import common from ggrc.models import Notification, Perso...
35.602564
78
0.644941
795dff62aac5d2678c16e824f63103ed4383bea9
400
py
Python
trinity/extensibility/__init__.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
trinity/extensibility/__init__.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
trinity/extensibility/__init__.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
from trinity.extensibility.events import ( # noqa: F401 BaseEvent ) from trinity.extensibility.plugin import ( # noqa: F401 BasePlugin, BaseIsolatedPlugin, DebugPlugin, PluginContext, PluginProcessScope, ) from trinity.extensibility.plugin_manager import ( # noqa: F401 MainAndIsolatedProc...
23.529412
64
0.74
795dffb1c263c0062d733149938843141338b581
338
py
Python
inventorycalculator/settings.py
1T/InventoryCalculator
73590fe7e5e06a0a9ffa14afac6f441cdd1c9230
[ "MIT" ]
null
null
null
inventorycalculator/settings.py
1T/InventoryCalculator
73590fe7e5e06a0a9ffa14afac6f441cdd1c9230
[ "MIT" ]
null
null
null
inventorycalculator/settings.py
1T/InventoryCalculator
73590fe7e5e06a0a9ffa14afac6f441cdd1c9230
[ "MIT" ]
1
2020-03-17T16:01:40.000Z
2020-03-17T16:01:40.000Z
from os import getenv IS_PROD = getenv('ENV_TYPE', 'dev') == 'prod' S3_BUCKET = getenv('S3_BUCKET', 'vd-inventory-calculator') TABLE_NAME = getenv('TABLE_NAME', 'vd-inventory-calculator') ASYNC_WORKER = getenv('ASYNC_WORKER', 'vd-async-worker') class STATUSES: RUNNING = 'RUNNING' FAILED = 'FAILED' SUCCEE...
26
60
0.704142
795dffbafccd05e7bc9b58a493a99b37d27104f2
845
py
Python
day-32-smtplib-autosend-mailer/monday-quote-sender/main.py
anelshaer/Python100DaysOfCode
012ae7dda28dc790d3bc4d26df807a4dba179ffe
[ "MIT" ]
null
null
null
day-32-smtplib-autosend-mailer/monday-quote-sender/main.py
anelshaer/Python100DaysOfCode
012ae7dda28dc790d3bc4d26df807a4dba179ffe
[ "MIT" ]
null
null
null
day-32-smtplib-autosend-mailer/monday-quote-sender/main.py
anelshaer/Python100DaysOfCode
012ae7dda28dc790d3bc4d26df807a4dba179ffe
[ "MIT" ]
null
null
null
import datetime as dt import smtplib import random SENDER_MAIL = "test@gmail.com" PASSWORD = "TESTP@SSWORD" TO_MAIL = "test2@gmail.com" # Setup SMTP server: python -m smtpd -c DebuggingServer -n localhost:1025 def send_mail(msg): with smtplib.SMTP('localhost', 1025) as connection: # connection.starttls(...
22.837838
73
0.666272
795e0080c57260a2df13530d8ce7d3f4118ec12b
560
py
Python
pl_bolts/utils/__init__.py
jfrancis71/pytorch-lightning-bolts
8a4cf8f61644c28d6df54ccffe3a52d6f5fce5a6
[ "Apache-2.0" ]
1
2021-06-28T03:24:11.000Z
2021-06-28T03:24:11.000Z
pl_bolts/utils/__init__.py
jfrancis71/pytorch-lightning-bolts
8a4cf8f61644c28d6df54ccffe3a52d6f5fce5a6
[ "Apache-2.0" ]
null
null
null
pl_bolts/utils/__init__.py
jfrancis71/pytorch-lightning-bolts
8a4cf8f61644c28d6df54ccffe3a52d6f5fce5a6
[ "Apache-2.0" ]
null
null
null
import torch from pytorch_lightning.utilities import _module_available _NATIVE_AMP_AVAILABLE: bool = _module_available("torch.cuda.amp") and hasattr(torch.cuda.amp, "autocast") _TORCHVISION_AVAILABLE: bool = _module_available("torchvision") _GYM_AVAILABLE: bool = _module_available("gym") _SKLEARN_AVAILABLE: bool = _m...
43.076923
105
0.819643
795e013810ccf23581b43496b09d6851e5428aa2
7,144
py
Python
models/gnn_model.py
ChoiMunbong/GRAPE
9764fdebd237aaebf54cf8ab2b0e571db2ba1ba7
[ "MIT" ]
83
2020-10-21T03:37:59.000Z
2022-03-16T09:13:04.000Z
models/gnn_model.py
ChoiMunbong/GRAPE
9764fdebd237aaebf54cf8ab2b0e571db2ba1ba7
[ "MIT" ]
10
2020-11-18T02:01:53.000Z
2022-01-06T18:08:33.000Z
models/gnn_model.py
ChoiMunbong/GRAPE
9764fdebd237aaebf54cf8ab2b0e571db2ba1ba7
[ "MIT" ]
18
2020-11-08T14:32:09.000Z
2022-03-25T15:09:01.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch_geometric.nn as pyg_nn import torch_geometric.utils as pyg_utils from models.egcn import EGCNConv from models.egsage import EGraphSage from utils.utils import get_activation def get_gnn(data, args): model_types = ar...
40.590909
165
0.591545
795e023358704a6269c3af5f6fc6499598f8a4f4
15,566
py
Python
outsystems/lifetime/lifetime_deployments.py
amportela/outsystems-pipeline
565714bcc5b39f6825bbe32a11e67c8ebfe5e2fd
[ "Apache-2.0" ]
18
2019-10-15T07:09:48.000Z
2022-03-10T09:40:37.000Z
outsystems/lifetime/lifetime_deployments.py
amportela/outsystems-pipeline
565714bcc5b39f6825bbe32a11e67c8ebfe5e2fd
[ "Apache-2.0" ]
9
2019-11-14T06:40:08.000Z
2022-03-09T14:47:24.000Z
outsystems/lifetime/lifetime_deployments.py
amportela/outsystems-pipeline
565714bcc5b39f6825bbe32a11e67c8ebfe5e2fd
[ "Apache-2.0" ]
37
2019-11-05T17:20:18.000Z
2022-03-21T06:18:24.000Z
# Python Modules import json import os import datetime # Custom Modules # Exceptions from outsystems.exceptions.no_deployments import NoDeploymentsError from outsystems.exceptions.invalid_parameters import InvalidParametersError from outsystems.exceptions.not_enough_permissions import NotEnoughPermissionsError from ou...
55.992806
162
0.729346
795e02a03a8e82cfa49c0ea2b80912ad3be6101f
1,901
py
Python
remove_files.py
PavelLaktn/my_scripts
c292c9a572cac249c9c3a85eb5f2b68c90c31b0e
[ "MIT" ]
null
null
null
remove_files.py
PavelLaktn/my_scripts
c292c9a572cac249c9c3a85eb5f2b68c90c31b0e
[ "MIT" ]
null
null
null
remove_files.py
PavelLaktn/my_scripts
c292c9a572cac249c9c3a85eb5f2b68c90c31b0e
[ "MIT" ]
null
null
null
#-*- encoding: utf-8 -*- #!/usr/bin/python3 """Delete all files except Z reports""" import os def delete_files(dpath: str, label: str='') -> str: """ Delete all files except the files that have names matched with label If the directory path doesn't exist return 'The path doesn't exist' el...
32.775862
93
0.580747
795e04520fff02e90c12180a15e5bbac1c2cfe44
6,543
py
Python
track/replay_unpack/clients/wows/versions/old/0_10_1.orig/battle_controller.py
chemputer/track
377b4df09563e23c41da018f6f8fa6b0b2875503
[ "MIT" ]
null
null
null
track/replay_unpack/clients/wows/versions/old/0_10_1.orig/battle_controller.py
chemputer/track
377b4df09563e23c41da018f6f8fa6b0b2875503
[ "MIT" ]
null
null
null
track/replay_unpack/clients/wows/versions/old/0_10_1.orig/battle_controller.py
chemputer/track
377b4df09563e23c41da018f6f8fa6b0b2875503
[ "MIT" ]
null
null
null
# coding=utf-8 import logging import pickle from replay_unpack.core import IBattleController from replay_unpack.core.entity import Entity from .constants import DamageStatsType, Category, TaskType, Status try: from .constants import DEATH_TYPES except ImportError: DEATH_TYPES = {} from .players_info import Pl...
38.040698
109
0.655357
795e045b9c77eaec097d62fd34ffe702276130e4
427
py
Python
benchmarks/benchmark_summarization.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
6
2021-07-09T08:13:44.000Z
2021-11-10T04:09:33.000Z
benchmarks/benchmark_summarization.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
1
2021-07-09T17:18:16.000Z
2021-07-09T17:18:16.000Z
benchmarks/benchmark_summarization.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
1
2022-02-09T15:37:14.000Z
2022-02-09T15:37:14.000Z
import easynlp import time def benchmark_summarization(n_examples: int = 1_000): data = {"text": ["This is some very long text which must be summarized because it is a very long and contains unnecessary words."] * n_examples} t0 = time.monotonic() _ = easynlp.summarization(data) dt = time.mo...
28.466667
149
0.697892
795e04ddcfa9e39518dad3773f30b64ec6cfea99
14,436
py
Python
main.py
tirtharajghosh/Subtitle-Downloader
50f2eac6d960d2f5cd2769e3a327579abb62ecb5
[ "MIT" ]
null
null
null
main.py
tirtharajghosh/Subtitle-Downloader
50f2eac6d960d2f5cd2769e3a327579abb62ecb5
[ "MIT" ]
null
null
null
main.py
tirtharajghosh/Subtitle-Downloader
50f2eac6d960d2f5cd2769e3a327579abb62ecb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'subtitle-downloader.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! import os import sys import urllib import zipfile import requests from bs4 import BeautifulSoup from datetime im...
54.475472
228
0.700125
795e05026ab5feda5680b08e092de356ec55f835
305
py
Python
2016/02/poll-healthcare-impact-20160225/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/02/poll-healthcare-impact-20160225/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/02/poll-healthcare-impact-20160225/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1QSVoIlvBCKpr-8YdNy2SDs_IBVu4fY1Fi2TG0xSq1cI' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.816393
795e05805fa17b1556e28272feccd44ed3ee6061
1,198
py
Python
scripts/scratch_query/get_bq_job_info.py
broadinstitute/scp-ingest-service
1a63a27061b53a5f7909c72d59808f9af71456a6
[ "BSD-3-Clause" ]
1
2020-06-08T16:30:47.000Z
2020-06-08T16:30:47.000Z
scripts/scratch_query/get_bq_job_info.py
broadinstitute/scp-ingest-service
1a63a27061b53a5f7909c72d59808f9af71456a6
[ "BSD-3-Clause" ]
146
2019-07-25T13:09:47.000Z
2022-03-28T19:29:22.000Z
scripts/scratch_query/get_bq_job_info.py
broadinstitute/scp-ingest-service
1a63a27061b53a5f7909c72d59808f9af71456a6
[ "BSD-3-Clause" ]
null
null
null
"""Upload NDJSON file to BigQuery DESCRIPTION This CLI takes a local NDJSON file and appends it to an existing bigquery table. (reference: https://cloud.google.com/bigquery/docs/managing-jobs https://cloud.google.com/bigquery/troubleshooting-errors) SYNTAX $ python query_bq_job.py job_id EXAMPLE $ python query_bq_jo...
24.44898
81
0.700334
795e0651ab4d92cc5cb85ec744b5d74c429566dc
8,748
py
Python
lib/evaluators/linemod/pvnet.py
bertid/clean-pvnet
8e1afdfe450c7d73274581d2907ad0215cba8331
[ "Apache-2.0" ]
284
2019-12-14T08:09:40.000Z
2022-03-26T02:17:26.000Z
lib/evaluators/linemod/pvnet.py
danikhani/clean-pvnet
4f91324c5bc9d2a05624f49c6cad15a33a446106
[ "Apache-2.0" ]
208
2019-12-16T13:09:49.000Z
2022-03-25T07:38:20.000Z
lib/evaluators/linemod/pvnet.py
danikhani/clean-pvnet
4f91324c5bc9d2a05624f49c6cad15a33a446106
[ "Apache-2.0" ]
88
2019-12-14T12:33:51.000Z
2022-03-22T21:07:09.000Z
from lib.datasets.dataset_catalog import DatasetCatalog from lib.config import cfg import pycocotools.coco as coco import numpy as np from lib.utils.pvnet import pvnet_pose_utils, pvnet_data_utils import os from lib.utils.linemod import linemod_config import torch if cfg.test.icp: from lib.utils.icp import icp_util...
38.537445
159
0.603567
795e06e8c724caf7d15754e0f146cde70d061348
2,977
py
Python
train_Zenbo_dataset.py
yangchihyuan/shufflenet-v2-tensorflow
8eb37ab5f0c78d7a03636a68f9c74cb3e2f301bf
[ "MIT" ]
null
null
null
train_Zenbo_dataset.py
yangchihyuan/shufflenet-v2-tensorflow
8eb37ab5f0c78d7a03636a68f9c74cb3e2f301bf
[ "MIT" ]
null
null
null
train_Zenbo_dataset.py
yangchihyuan/shufflenet-v2-tensorflow
8eb37ab5f0c78d7a03636a68f9c74cb3e2f301bf
[ "MIT" ]
null
null
null
import tensorflow as tf import os from model import model_fn, RestoreMovingAverageHook from input_pipeline import Pipeline tf.compat.v1.logging.set_verbosity('INFO') #from datasets.DatasetFactory import DatasetFactory #from helper.model_helper import get_model_function, get_input_function #from helper.model_helper impo...
34.218391
98
0.767551
795e08a579d870cfaf527e6ac1c14bd34828d847
26,829
py
Python
test/functional/test_framework/p2p.py
XbitCC/xbitcoin
2c71b1adc311680e8f3aa977b42029b1a26164f1
[ "MIT" ]
2
2021-10-16T06:16:02.000Z
2022-03-26T21:48:38.000Z
test/functional/test_framework/p2p.py
XbitCC/xbitcoin
2c71b1adc311680e8f3aa977b42029b1a26164f1
[ "MIT" ]
null
null
null
test/functional/test_framework/p2p.py
XbitCC/xbitcoin
2c71b1adc311680e8f3aa977b42029b1a26164f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2020 The XBit Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test objects fo...
38.492109
182
0.644415
795e09839fff61aa04963827bfdd7f593ef31820
14,981
py
Python
jupyterlab_git/git.py
catap/jupyterlab-git
545262d21d5226b3178bba224875ac5ebe2db37e
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_git/git.py
catap/jupyterlab-git
545262d21d5226b3178bba224875ac5ebe2db37e
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_git/git.py
catap/jupyterlab-git
545262d21d5226b3178bba224875ac5ebe2db37e
[ "BSD-3-Clause" ]
null
null
null
""" Module for executing git commands, sending results back to the handlers """ import os import subprocess from subprocess import Popen, PIPE class Git: """ A single parent class containing all of the individual git methods in it. """ def status(self, current_path): """ Execute git s...
34.43908
88
0.449236
795e09bc9a6766f80b0027ae976d2abb598a4b74
23,398
py
Python
lingvo/core/model_pruning/pruning.py
anishmprasad/lingvo
4a8eb86fc9caa6358cac4d26ff2514072c85a83c
[ "Apache-2.0" ]
null
null
null
lingvo/core/model_pruning/pruning.py
anishmprasad/lingvo
4a8eb86fc9caa6358cac4d26ff2514072c85a83c
[ "Apache-2.0" ]
null
null
null
lingvo/core/model_pruning/pruning.py
anishmprasad/lingvo
4a8eb86fc9caa6358cac4d26ff2514072c85a83c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.376997
167
0.703778
795e0a1d388c7501c847874859ac47062fcb2ed0
539
py
Python
users/migrations/0003_workspaceuser_went_inactive_at.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
users/migrations/0003_workspaceuser_went_inactive_at.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
users/migrations/0003_workspaceuser_went_inactive_at.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-10 22:01 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("users", "0002_workspaceuser_active"), ] operations = [ migrations.AddField( model_name="workspaceus...
23.434783
68
0.61039
795e0b91dabdc0280f9f3db90ace41fbc9d5ba14
91,486
py
Python
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/words/protocols/msn.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/words/protocols/msn.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/words/protocols/msn.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
# -*- test-case-name: twisted.words.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ MSNP8 Protocol (client only) - semi-experimental This module provides support for clients using the MSN Protocol (MSNP8). There are basically 3 servers involved in any MSN session: I{Dis...
36.889516
137
0.585237
795e0bd4d7fbf3a459cfa1485987598f8ed8b478
3,325
py
Python
jasmin/vendor/falcon/cmd/print_routes.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
2
2020-05-14T18:27:01.000Z
2021-03-21T17:26:19.000Z
jasmin/vendor/falcon/cmd/print_routes.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
null
null
null
jasmin/vendor/falcon/cmd/print_routes.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
1
2020-11-24T06:48:22.000Z
2020-11-24T06:48:22.000Z
#!/usr/bin/env python # Copyright 2013 by Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.281553
79
0.621654
795e0c490a11b2e203fb81a93c3b75f01d9a2d9c
967
py
Python
scripts/visualize_humanseg.py
eidosmontreal/shape-analysis
62f62db869cc577dcf5a384cd0e72c321d83f976
[ "Apache-2.0" ]
1
2022-02-01T15:55:35.000Z
2022-02-01T15:55:35.000Z
scripts/visualize_humanseg.py
eidosmontreal/shape-analysis
62f62db869cc577dcf5a384cd0e72c321d83f976
[ "Apache-2.0" ]
null
null
null
scripts/visualize_humanseg.py
eidosmontreal/shape-analysis
62f62db869cc577dcf5a384cd0e72c321d83f976
[ "Apache-2.0" ]
null
null
null
import datasets import utils import open3d as o3d import pdb import torch import argparse from os.path import join parser = argparse.ArgumentParser() parser.add_argument("--dataset", type=str, default='HumanSegmentation') parser.add_argument("--test", action='store_false') parser.add_argument("--shuffle", action='stor...
26.861111
100
0.668046
795e0d535da92accade30cc3c87c151e821d0767
10,611
py
Python
doc/vbfilter.py
jorkin/asp-vbscript-cms
cbf48d3fac4a8f5312f52c09fdd01d0c0c4d909e
[ "MIT" ]
5
2019-09-02T16:07:04.000Z
2021-11-12T02:51:32.000Z
doc/vbfilter.py
jorkin/asp-vbscript-cms
cbf48d3fac4a8f5312f52c09fdd01d0c0c4d909e
[ "MIT" ]
1
2019-08-13T01:58:17.000Z
2019-09-16T15:01:31.000Z
doc/vbfilter.py
jorkin/asp-vbscript-cms
cbf48d3fac4a8f5312f52c09fdd01d0c0c4d909e
[ "MIT" ]
5
2019-03-19T07:29:01.000Z
2021-12-19T13:47:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This is a filter to convert Visual Basic v6.0 code # into something doxygen can understand. # Copyright (C) 2005 Basti Grembowietz # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License ...
30.317143
147
0.647724
795e0d8baea7d6469e2c36d4cd943a51c9600ff1
15,763
py
Python
eepackages/applications/bathymetry.py
EtienneKras/ee-packages-py
38157ecfadc146452f1728638012c34d1fc8c237
[ "MIT" ]
null
null
null
eepackages/applications/bathymetry.py
EtienneKras/ee-packages-py
38157ecfadc146452f1728638012c34d1fc8c237
[ "MIT" ]
null
null
null
eepackages/applications/bathymetry.py
EtienneKras/ee-packages-py
38157ecfadc146452f1728638012c34d1fc8c237
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Optional from datetime import datetime import ee from eepackages import assets from eepackages import gl from eepackages import utils class Bathymetry(object): def __init__(self, waterIndexMin: float = -0.15, waterIndexMax: float = 0.35): self.waterIndexMin = waterInd...
37.710526
162
0.570323
795e0d8de60e53d116019216a0bf6fbe608c4f20
524
py
Python
hackspacebot/bot.py
cheltenhamhackspace/hackspace_bot
2f4dec0b7da62f657a4492efc9b60ddbdbe755bb
[ "MIT" ]
null
null
null
hackspacebot/bot.py
cheltenhamhackspace/hackspace_bot
2f4dec0b7da62f657a4492efc9b60ddbdbe755bb
[ "MIT" ]
null
null
null
hackspacebot/bot.py
cheltenhamhackspace/hackspace_bot
2f4dec0b7da62f657a4492efc9b60ddbdbe755bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 "bot.py" import logging import discord from discord.ext import commands logger = logging.getLogger(__name__) bot = commands.Bot(command_prefix='$') @bot.event async def on_ready(): "Logs connection attempt and guild id on sucessful login" if len(bot.guilds) > 1: print("We've ...
22.782609
103
0.64313
795e0e44f66a7b3cb150beffebd2446f1a83e5d3
3,362
py
Python
examples/Chinese_handwriting/data.py
DeepLearnPhysics/SparseConvNet
f75ab7cacfd7f8d9f155ecc51ae9898c5dd212fe
[ "BSD-3-Clause" ]
1,708
2017-07-15T12:44:55.000Z
2022-03-30T03:09:36.000Z
examples/Chinese_handwriting/data.py
DeepLearnPhysics/SparseConvNet
f75ab7cacfd7f8d9f155ecc51ae9898c5dd212fe
[ "BSD-3-Clause" ]
220
2017-07-18T01:36:37.000Z
2022-03-25T10:35:54.000Z
examples/Chinese_handwriting/data.py
DeepLearnPhysics/SparseConvNet
f75ab7cacfd7f8d9f155ecc51ae9898c5dd212fe
[ "BSD-3-Clause" ]
308
2017-07-15T12:44:57.000Z
2022-03-15T11:24:06.000Z
# Copyright 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch import torchnet import sparseconvnet as scn import pickle import math import random import numpy as np import...
41
146
0.600238
795e0e48f7da0b0a6d2c5a31308491a6aeafd516
489
py
Python
tests/test_helpers.py
opawg/audiolipsum
2c4edc0e55bafdfce4a98aad52a471bb7428f872
[ "MIT" ]
null
null
null
tests/test_helpers.py
opawg/audiolipsum
2c4edc0e55bafdfce4a98aad52a471bb7428f872
[ "MIT" ]
null
null
null
tests/test_helpers.py
opawg/audiolipsum
2c4edc0e55bafdfce4a98aad52a471bb7428f872
[ "MIT" ]
null
null
null
from audiolipsum.exceptions import ExternalLibraryError from audiolipsum.helpers import lame from mock import patch import pytest class MockResult(object): stdout = '' def run_subprocess(cmd, shell, capture_output, text): assert cmd == 'which lame' assert shell assert capture_output assert text ...
21.26087
55
0.734151
795e0ea8e17676a23faebf5bcefec7e30ee15db1
1,168
py
Python
doc/examples/features_detection/plot_censure.py
vighneshbirodkar/scikit-image
766745c0498a82852c3044fb205c9970ba1caee2
[ "BSD-3-Clause" ]
null
null
null
doc/examples/features_detection/plot_censure.py
vighneshbirodkar/scikit-image
766745c0498a82852c3044fb205c9970ba1caee2
[ "BSD-3-Clause" ]
2
2016-01-08T18:30:49.000Z
2016-07-21T07:55:29.000Z
doc/examples/features_detection/plot_censure.py
vighneshbirodkar/scikit-image
766745c0498a82852c3044fb205c9970ba1caee2
[ "BSD-3-Clause" ]
2
2017-05-09T13:33:37.000Z
2018-12-23T10:57:18.000Z
""" ======================== CENSURE feature detector ======================== The CENSURE feature detector is a scale-invariant center-surround detector (CENSURE) that claims to outperform other detectors and is capable of real-time implementation. """ from skimage import data from skimage import transform as tf fro...
25.955556
79
0.672089
795e0f0ceaa85a532b0060e9490d797efce258f0
3,721
py
Python
main/control/profile.py
AlexRogalskiy/github-stats
49dbf8841e71a532e504865d5c1226ab158e7f8c
[ "MIT" ]
99
2015-12-21T17:14:44.000Z
2022-03-18T23:20:45.000Z
main/control/profile.py
lipis/github-graph
49dbf8841e71a532e504865d5c1226ab158e7f8c
[ "MIT" ]
7
2015-12-26T18:52:16.000Z
2019-03-13T11:01:32.000Z
main/control/profile.py
AlexRogalskiy/github-stats
49dbf8841e71a532e504865d5c1226ab158e7f8c
[ "MIT" ]
16
2016-03-12T09:50:55.000Z
2022-03-18T23:20:45.000Z
# coding: utf-8 import flask import flask_wtf import wtforms import auth import config import model import util import task from main import app ############################################################################### # Profile View ###########################################################################...
28.844961
79
0.621607
795e0f399ca42611072a1d19dcf699bc048ae77e
3,687
py
Python
DDPG Agent - Continous Multi-Agent Environment/agents/agent_ddpg/model.py
szemyd/deep-reinforcement-learning
2dc2ab8511bcf3975c51dc057b66d2d500e2cf80
[ "MIT" ]
null
null
null
DDPG Agent - Continous Multi-Agent Environment/agents/agent_ddpg/model.py
szemyd/deep-reinforcement-learning
2dc2ab8511bcf3975c51dc057b66d2d500e2cf80
[ "MIT" ]
null
null
null
DDPG Agent - Continous Multi-Agent Environment/agents/agent_ddpg/model.py
szemyd/deep-reinforcement-learning
2dc2ab8511bcf3975c51dc057b66d2d500e2cf80
[ "MIT" ]
null
null
null
import numpy as np import random import torch import torch.nn as nn import torch.nn.functional as F def hidden_init(layer): fan_in = layer.weight.data.size()[0] lim = 1. / np.sqrt(fan_in) return (-lim, lim) class Actor(nn.Module): def __init__(self, state_space, action_space, random_seed = 32, hidden...
37.242424
163
0.639002
795e0fd872cde8502c6fb07031424fe3d717b90e
5,765
py
Python
venv/Lib/site-packages/smmap/buf.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
41
2015-01-16T12:05:11.000Z
2021-10-15T05:57:53.000Z
venv/Lib/site-packages/smmap/buf.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
25
2015-01-07T12:44:54.000Z
2022-01-16T17:17:01.000Z
venv/Lib/site-packages/smmap/buf.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
19
2015-04-12T17:15:57.000Z
2022-03-15T21:32:38.000Z
"""Module with a simple buffer implementation using the memory manager""" import sys __all__ = ["SlidingWindowMapBuffer"] class SlidingWindowMapBuffer: """A buffer like object which allows direct byte-wise object and slicing into memory of a mapped file. The mapping is controlled by the provided cursor. ...
40.034722
108
0.59497
795e116c8f76d23ca3d344bf9c04b7829b7eddab
1,218
py
Python
20-concurrency/primes/spinner_thread.py
hdcpereira/example-code-2e
ade7558007f149e5ab7465dd9618d432f169eb9f
[ "MIT" ]
null
null
null
20-concurrency/primes/spinner_thread.py
hdcpereira/example-code-2e
ade7558007f149e5ab7465dd9618d432f169eb9f
[ "MIT" ]
null
null
null
20-concurrency/primes/spinner_thread.py
hdcpereira/example-code-2e
ade7558007f149e5ab7465dd9618d432f169eb9f
[ "MIT" ]
null
null
null
# spinner_thread.py # credits: Adapted from Michele Simionato's # multiprocessing example in the python-list: # https://mail.python.org/pipermail/python-list/2009-February/675659.html # tag::SPINNER_THREAD_TOP[] from threading import Thread, Event import itertools import time from primes import is_prime def spin(ms...
25.914894
73
0.589491
795e125daff5fc12bf28718e46cf16e92a493fd9
22,908
py
Python
pandas/tseries/tools.py
redhawkresearch/pandas
1dc78c71f4f81403eb340722c5a7ea3cfe3821f6
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/tools.py
redhawkresearch/pandas
1dc78c71f4f81403eb340722c5a7ea3cfe3821f6
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/tools.py
redhawkresearch/pandas
1dc78c71f4f81403eb340722c5a7ea3cfe3821f6
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta, time import sys import numpy as np import pandas.lib as lib import pandas.tslib as tslib import pandas.core.common as com from pandas.core.common import ABCIndexClass import pandas.compat as compat from pandas.util.decorators import deprecate_kwarg try: import dateutil ...
36.075591
96
0.580059
795e135e47debc69a32f53c4088026537ac28617
4,080
py
Python
ctree/transforms/declaration_filler.py
mbdriscoll/ctree
e15538ecdf3aaa3bb2f210701d29334fd5e4ec40
[ "BSD-2-Clause" ]
3
2017-01-23T10:48:52.000Z
2021-06-05T06:57:12.000Z
ctree/transforms/declaration_filler.py
mbdriscoll/ctree
e15538ecdf3aaa3bb2f210701d29334fd5e4ec40
[ "BSD-2-Clause" ]
2
2016-03-11T22:32:01.000Z
2018-10-17T17:35:50.000Z
ctree/transforms/declaration_filler.py
mbdriscoll/ctree
e15538ecdf3aaa3bb2f210701d29334fd5e4ec40
[ "BSD-2-Clause" ]
null
null
null
import ast import ctree.c.nodes as C import ctypes as ct class DeclarationFiller(ast.NodeTransformer): def __init__(self): self.__environments = [{}] def _lookup(self, key): """ :param key: :return: Looks up the last value corresponding to key in self.__environment...
36.106195
79
0.558578
795e14b304b164170c3a39d2117b34262e92d0ad
1,562
py
Python
python/oneflow/test/modules/test_consistent_einsum_eltwise_mul_then_reduce_sum.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2022-03-14T11:17:56.000Z
2022-03-14T11:17:56.000Z
python/oneflow/test/modules/test_consistent_einsum_eltwise_mul_then_reduce_sum.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_consistent_einsum_eltwise_mul_then_reduce_sum.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2021-12-15T02:14:49.000Z
2021-12-15T02:14:49.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
32.541667
83
0.736876
795e14d0fe2bc8e9d56e1ad64ccef604b6c234df
212
py
Python
do_like_javac/tools/jprint.py
markro49/do-like-javac
2bb345c9368347493b0fcf098f00e54594332a61
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
7
2016-03-16T17:21:05.000Z
2020-08-25T11:57:51.000Z
do_like_javac/tools/jprint.py
markro49/do-like-javac
2bb345c9368347493b0fcf098f00e54594332a61
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
9
2016-10-06T19:23:39.000Z
2017-12-19T19:58:16.000Z
do_like_javac/tools/jprint.py
markro49/do-like-javac
2bb345c9368347493b0fcf098f00e54594332a61
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
15
2016-04-20T20:46:52.000Z
2020-12-16T10:13:39.000Z
import json argparser = None def run(args, javac_commands, jars): print (json.dumps( { "javac_commands": javac_commands, "jars": jars }, indent = 2, separators = (',', ': ') ));
15.142857
39
0.556604
795e156693967c85d3c29da0a81e80f6d027014d
1,561
py
Python
tests/pyre/tabular/csv_read.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/tabular/csv_read.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/tabular/csv_read.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2018 all rights reserved # """ Read a sheet from a csv file """ def test(): # get the package import pyre.tabular # lay out a sheet class pricing(pyre.tabular.sheet): """ The sheet layout ...
24.015385
67
0.569507
795e17c88b646462033e0eeca03ab751b8c2758a
732
py
Python
6-check_layers.py
ZePilOt/FFIX_Upscale_Scripts
a02c7992cfe0f2421f271634777bd13869da6d36
[ "MIT" ]
7
2019-01-24T07:45:47.000Z
2022-02-22T23:10:27.000Z
6-check_layers.py
ZePilOt/FFIX_Upscale_Scripts
a02c7992cfe0f2421f271634777bd13869da6d36
[ "MIT" ]
1
2020-06-23T11:47:35.000Z
2020-06-23T11:47:35.000Z
6-check_layers.py
ZePilOt/FFIX_Upscale_Scripts
a02c7992cfe0f2421f271634777bd13869da6d36
[ "MIT" ]
3
2019-01-23T20:17:01.000Z
2021-04-21T15:46:55.000Z
import os import glob import cv2 import shutil import json dir_path = os.path.dirname(os.path.realpath(__file__)) REF_FOLDER = os.path.join(dir_path, "PC_LAYERS_FOR_CHECKING") UP_FOLDER = os.path.join(dir_path, "Upscaled_Fields_Layers") field_ref_list = sorted(glob.glob(REF_FOLDER+"\\Field*")) for field in field_r...
25.241379
77
0.759563
795e19285096f62b6cf0cbb1017455d28e759e6d
3,232
py
Python
recipe/views.py
adityasingh108/api-advance
cca7686567b30bd9d7897d66887fdd760718ed4c
[ "MIT" ]
null
null
null
recipe/views.py
adityasingh108/api-advance
cca7686567b30bd9d7897d66887fdd760718ed4c
[ "MIT" ]
null
null
null
recipe/views.py
adityasingh108/api-advance
cca7686567b30bd9d7897d66887fdd760718ed4c
[ "MIT" ]
null
null
null
from rest_framework import filters, viewsets,mixins,status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.decorators import action from django_filters.rest_framework import DjangoFilter...
32.646465
95
0.681621
795e1962b71dbafcac5a278e3a1cc6d066b9d12d
6,897
py
Python
tests/config.py
lhui2010/jcvi
1a5982a8a6dfbc7d8eccb12fb8dca0e578f1ef90
[ "BSD-2-Clause" ]
1
2020-10-04T13:21:24.000Z
2020-10-04T13:21:24.000Z
tests/config.py
Wangjien/jcvi
6732285f62dcbd7f3878e5017c3350124530c796
[ "BSD-2-Clause" ]
null
null
null
tests/config.py
Wangjien/jcvi
6732285f62dcbd7f3878e5017c3350124530c796
[ "BSD-2-Clause" ]
1
2020-11-16T19:25:30.000Z
2020-11-16T19:25:30.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ py.test script for jcvi repo * Test cases are defined using `yml` config files (tests.yml) * Test config files are stored in directory by the name of the script (./tests/formats/gff.py/tests.yml) * Test directory contains valid input data files used by the test cases ...
30.928251
120
0.60896
795e1ac94f36fab6ec273b5a31bbd05da9006e38
276
py
Python
mycfo/mycfo/doctype/operation_and_project_commercial/operation_and_project_commercial.py
shrikant9867/mycfo
520d396c72b3774cf4987fa3c0967869301904eb
[ "MIT" ]
null
null
null
mycfo/mycfo/doctype/operation_and_project_commercial/operation_and_project_commercial.py
shrikant9867/mycfo
520d396c72b3774cf4987fa3c0967869301904eb
[ "MIT" ]
null
null
null
mycfo/mycfo/doctype/operation_and_project_commercial/operation_and_project_commercial.py
shrikant9867/mycfo
520d396c72b3774cf4987fa3c0967869301904eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Indictrans and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class OperationAndProjectCommercial(Document): pass
25.090909
49
0.797101
795e1d357c411685e43d0615fc2a7db9cfbcb7b9
2,822
py
Python
src/testdata/y_attributes_8/lstm_online_test.py
suraj-jayakumar/lstm-rnn-ad
381c1679e3cf876208dbb7a7c0fdd7a0b0036982
[ "Apache-2.0" ]
8
2017-03-22T08:22:14.000Z
2020-08-05T11:13:10.000Z
src/testdata/y_attributes_8/lstm_online_test.py
suraj-jayakumar/lstm-rnn-ad
381c1679e3cf876208dbb7a7c0fdd7a0b0036982
[ "Apache-2.0" ]
null
null
null
src/testdata/y_attributes_8/lstm_online_test.py
suraj-jayakumar/lstm-rnn-ad
381c1679e3cf876208dbb7a7c0fdd7a0b0036982
[ "Apache-2.0" ]
2
2017-07-22T12:43:20.000Z
2019-07-05T07:11:50.000Z
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers.core import Dense from keras.layers.recurrent import LSTM from keras.models import Graph from keras.models import model_from_json from pandas import DataFrame import pandas as pd import pickl...
31.010989
111
0.688873
795e1da755c5d006a029dfe4dacec9b4c1567846
80
py
Python
tests/test_bioinformagic.py
nigeil/python-bioinformagic
4b0ecc2183c8686a27866debfef9c38239703fa3
[ "Apache-2.0" ]
1
2021-10-21T03:14:14.000Z
2021-10-21T03:14:14.000Z
tests/test_bioinformagic.py
nigeil/python-bioinformagic
4b0ecc2183c8686a27866debfef9c38239703fa3
[ "Apache-2.0" ]
null
null
null
tests/test_bioinformagic.py
nigeil/python-bioinformagic
4b0ecc2183c8686a27866debfef9c38239703fa3
[ "Apache-2.0" ]
null
null
null
from bioinformagic.cli import main def test_main(): assert main([]) == 0
11.428571
34
0.6625
795e1dff8660c7418ad1385f6db8353719cd0b9d
12,089
py
Python
samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
1
2022-02-23T20:33:43.000Z
2022-02-23T20:33:43.000Z
samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
7
2021-11-24T21:53:41.000Z
2022-03-22T19:29:41.000Z
samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
1
2022-02-19T21:56:04.000Z
2022-02-19T21:56:04.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noq...
44.774074
174
0.575813
795e1eb19ddbfad4c471ae4b1dadc659018819ad
4,976
py
Python
IsingClass.py
ethank5149/PurduePHYS580
54d5d75737aa0d31ed723dd0e79c98dc01e71ca7
[ "MIT" ]
null
null
null
IsingClass.py
ethank5149/PurduePHYS580
54d5d75737aa0d31ed723dd0e79c98dc01e71ca7
[ "MIT" ]
null
null
null
IsingClass.py
ethank5149/PurduePHYS580
54d5d75737aa0d31ed723dd0e79c98dc01e71ca7
[ "MIT" ]
null
null
null
import numpy as np from numpy.random import default_rng from tqdm import tqdm import matplotlib.pyplot as plt import pandas as pd class Ising: def __init__(self, rows=25, # Number of rows cols=25, # Number of columns relax=500, # Number of Equalibrium Cycles sam...
33.85034
142
0.57295
795e1f9852be2f3b62bfd0083f47979c6563b959
1,140
py
Python
big_oh_ejemplos/merge_sort.py
CCG-Magno/Tutoriales_Python
7f6291675cabccc35ddad71070271cbc58e7e283
[ "MIT" ]
1
2020-09-20T22:37:20.000Z
2020-09-20T22:37:20.000Z
big_oh_ejemplos/merge_sort.py
CCG-Magno/Tutoriales_Python
7f6291675cabccc35ddad71070271cbc58e7e283
[ "MIT" ]
null
null
null
big_oh_ejemplos/merge_sort.py
CCG-Magno/Tutoriales_Python
7f6291675cabccc35ddad71070271cbc58e7e283
[ "MIT" ]
null
null
null
import unittest from unittest import TestCase # Python program for implementation of MergeSort def mergeSort(arr): if len(arr) > 1: # Finding the mid of the array mid = len(arr)//2 # Dividing the array elements L, R = arr[:mid] , arr[mid:] # Sorting the first half mergeSort(L) # Sorting the second ...
16.285714
48
0.583333