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
4a25b01943ea0196591233ea5dbaffddf9e29af1
10,522
py
Python
misc/dataLoader.py
Unmesh-Kumar/DMRM
f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02
[ "MIT" ]
23
2019-12-19T02:46:33.000Z
2022-03-22T07:52:28.000Z
misc/dataLoader.py
Unmesh-Kumar/DMRM
f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02
[ "MIT" ]
5
2020-07-28T14:25:45.000Z
2022-03-08T14:30:21.000Z
misc/dataLoader.py
Unmesh-Kumar/DMRM
f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02
[ "MIT" ]
5
2019-12-20T15:46:08.000Z
2021-11-23T01:15:32.000Z
import torch.utils.data as data from PIL import Image import torch import numpy as np import h5py import json import pdb import random from misc.utils import repackage_hidden, clip_gradient, adjust_learning_rate, decode_txt from misc.readers import ImageFeaturesHdfReader from torch.nn.functional import normalize clas...
36.408304
115
0.566907
4a25b0b888ab7f4c4e59ad60da02ce35381ce574
9,934
py
Python
widget/printer3d.py
bkosciow/doton2
3fce534c9f9d12ddd8111a6a1f2b8298df106b1f
[ "MIT" ]
null
null
null
widget/printer3d.py
bkosciow/doton2
3fce534c9f9d12ddd8111a6a1f2b8298df106b1f
[ "MIT" ]
null
null
null
widget/printer3d.py
bkosciow/doton2
3fce534c9f9d12ddd8111a6a1f2b8298df106b1f
[ "MIT" ]
null
null
null
from service.widget import Widget, Clickable from PIL import Image import re import datetime import math import service.comm as comm class Printer3d(Widget, Clickable): def __init__(self, font, light_pin=None, power_pin=None, reverse_relay=True): super().__init__() self.font = font self.w...
39.577689
176
0.542178
4a25b16df9cbd692c1ef2ba732ab247ad7fef29d
20,089
py
Python
openstack_dashboard/dashboards/project/loadbalancers/tables.py
maestro-hybrid-cloud/horizon
b6490f77d34fa155fa9133278adf7f7814fbfe45
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/loadbalancers/tables.py
maestro-hybrid-cloud/horizon
b6490f77d34fa155fa9133278adf7f7814fbfe45
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/loadbalancers/tables.py
maestro-hybrid-cloud/horizon
b6490f77d34fa155fa9133278adf7f7814fbfe45
[ "Apache-2.0" ]
null
null
null
# Copyright 2013, Big Switch Networks, 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 applic...
35.367958
79
0.598736
4a25b1a659c187acafee7e6f6c037e0d2a95533b
2,134
py
Python
Problema3.py
chrisfrrrr/Tarea-preparatoria-1-proyectos-de-computaci-n
ef235b0b37021c2ed162fcebcfdb2a574dab192c
[ "MIT" ]
null
null
null
Problema3.py
chrisfrrrr/Tarea-preparatoria-1-proyectos-de-computaci-n
ef235b0b37021c2ed162fcebcfdb2a574dab192c
[ "MIT" ]
null
null
null
Problema3.py
chrisfrrrr/Tarea-preparatoria-1-proyectos-de-computaci-n
ef235b0b37021c2ed162fcebcfdb2a574dab192c
[ "MIT" ]
null
null
null
#Libreria from sqlite3 import Cursor import psycopg2 try: conexion = psycopg2.connect( host = "localhost", port = "5432", user = "postgres", password = "password", dbname = "Tarea1" ) print("\n") print("Conexión Exitosa!!!") print("\n") excep...
25.105882
98
0.476101
4a25b3243209b16f4cd0c26fa6f5e957dca5ad24
7,821
py
Python
trestle/core/generators.py
CyberFlameGO/compliance-trestle
aeae771e0e90c7c69ef914ca02d4857ed6f50222
[ "Apache-2.0" ]
70
2020-09-10T08:46:26.000Z
2022-03-29T17:52:56.000Z
trestle/core/generators.py
CyberFlameGO/compliance-trestle
aeae771e0e90c7c69ef914ca02d4857ed6f50222
[ "Apache-2.0" ]
892
2020-09-09T10:48:58.000Z
2022-03-31T03:36:28.000Z
trestle/core/generators.py
CyberFlameGO/compliance-trestle
aeae771e0e90c7c69ef914ca02d4857ed6f50222
[ "Apache-2.0" ]
33
2020-09-11T05:11:08.000Z
2022-03-29T16:14:35.000Z
# -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. 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 # https://www.apache.org/licenses/LICENSE-2.0 # # ...
44.4375
118
0.656438
4a25b37780a38bde9169b1bb014300b4dc1ad82f
2,167
py
Python
algorithms/strings/is_palindrome.py
williamfzc/algorithms
87afd1e654a1c6e115f76c87f1db313599fa4216
[ "MIT" ]
null
null
null
algorithms/strings/is_palindrome.py
williamfzc/algorithms
87afd1e654a1c6e115f76c87f1db313599fa4216
[ "MIT" ]
null
null
null
algorithms/strings/is_palindrome.py
williamfzc/algorithms
87afd1e654a1c6e115f76c87f1db313599fa4216
[ "MIT" ]
null
null
null
""" Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. Note: Have you consider that the string might be empty? This is a good question to ask during an interview. F...
23.301075
103
0.626211
4a25b3865616d7f7b99924dbe708bc35e5c01595
1,398
py
Python
mmLib/Sequence.py
hokinus/mmLib
19f954f1c6785a69e882eb677c59aa3168ec3f57
[ "Artistic-2.0" ]
null
null
null
mmLib/Sequence.py
hokinus/mmLib
19f954f1c6785a69e882eb677c59aa3168ec3f57
[ "Artistic-2.0" ]
null
null
null
mmLib/Sequence.py
hokinus/mmLib
19f954f1c6785a69e882eb677c59aa3168ec3f57
[ "Artistic-2.0" ]
null
null
null
## Copyright 2002-2010 by PyMMLib Development Group (see AUTHORS file) ## This code is part of the PyMMLib distribution and governed by ## its license. Please see the LICENSE file that should have been ## included as part of this package. from __future__ import absolute_import from . import Library class Sequence(ob...
31.772727
81
0.668813
4a25b43b0bb70d9392607e3dedbbb2fd8e6bf8bd
1,305
py
Python
wasteline/users/forms.py
rasfa98/wasteline
8cd5206d75f837da0e48087446da4a8c77e04cb4
[ "MIT" ]
null
null
null
wasteline/users/forms.py
rasfa98/wasteline
8cd5206d75f837da0e48087446da4a8c77e04cb4
[ "MIT" ]
null
null
null
wasteline/users/forms.py
rasfa98/wasteline
8cd5206d75f837da0e48087446da4a8c77e04cb4
[ "MIT" ]
null
null
null
from django import forms as d_forms from django.contrib.auth import forms, get_user_model from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from .models import CollectorMore, CustomerMore User = get_user_model() class UserChangeForm(forms.UserChangeForm): ...
25.096154
74
0.701916
4a25b452b3a816c0cbdbd88d6c1bbb2d07d2af7e
6,403
py
Python
history.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
null
null
null
history.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
null
null
null
history.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
null
null
null
"""\ history for undo/redo/repeat copyright: 2017-2020 Dietmar Schwertberger license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY """ import common, config, clipboard class PropertyValue(object): def __init__(self, deactivated, value, modified): self.deactivated = deactivated sel...
38.806061
121
0.61846
4a25b60ec346dbe689b906cc1ed4be1167dbb3b9
15,628
py
Python
load_user.py
jaimevalero/github-recommendation-engine
6024829fb4fa7bd500ba6ee8fd62f0d7ad6fd274
[ "MIT" ]
86
2017-11-28T20:54:04.000Z
2022-03-23T12:26:14.000Z
load_user.py
owenblake38/owen
42b7b8e4630dd12b43bdab8d7f8fc0478e00afcd
[ "MIT" ]
60
2017-10-18T05:43:39.000Z
2022-01-04T15:15:58.000Z
load_user.py
jaimevalero/github-recommendation-engine
6024829fb4fa7bd500ba6ee8fd62f0d7ad6fd274
[ "MIT" ]
24
2017-10-18T05:36:56.000Z
2020-07-08T05:46:23.000Z
import pandas as pd from pathlib import Path import requests import get_repos import json import pyjq import os import pickle import numpy as np import time import operator import gzip import _pickle as cPickle def Load_User_Directory(df, num_users_to_read): """ Load a dataframe with the tags of users given a us...
40.592208
1,403
0.632711
4a25b6f180e3487059723dbad381a12323f229b0
2,189
py
Python
nipype/utils/matlabtools.py
acamargofb/nipype
4e8f54d8e304dd940cfdc5d42f37288651bc8a03
[ "Apache-2.0" ]
1
2019-07-30T08:14:26.000Z
2019-07-30T08:14:26.000Z
venv/Lib/site-packages/nipype/utils/matlabtools.py
mysnyldz/Tez-Analizi
47e149bbd6a9e865e9242e50fb7ca1a18adfc640
[ "MIT" ]
1
2021-01-21T21:36:37.000Z
2021-01-22T20:45:53.000Z
venv/Lib/site-packages/nipype/utils/matlabtools.py
mysnyldz/Tez-Analizi
47e149bbd6a9e865e9242e50fb7ca1a18adfc640
[ "MIT" ]
1
2021-09-25T15:02:40.000Z
2021-09-25T15:02:40.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Useful Functions for working with matlab""" # Stdlib imports import os import re import tempfile import numpy as np # Functions, classes and other top-level code def fltcols(...
30.830986
83
0.652353
4a25b764e94df369cfb284ce1049020c09696a51
5,508
py
Python
tests/hamcrest_unit_test/object/hasproperty_test.py
sthagen/PyHamcrest
963fd50be3b9a5ffa78223f6cb27866571767af6
[ "BSD-3-Clause" ]
547
2015-01-28T19:15:07.000Z
2022-03-29T00:03:37.000Z
tests/hamcrest_unit_test/object/hasproperty_test.py
brunns/PyHamcrest
498e031815312485cb9fb54a88291d3eb5735efd
[ "BSD-3-Clause" ]
129
2015-02-05T09:29:04.000Z
2022-03-28T14:02:03.000Z
tests/hamcrest_unit_test/object/hasproperty_test.py
brunns/PyHamcrest
498e031815312485cb9fb54a88291d3eb5735efd
[ "BSD-3-Clause" ]
96
2015-01-09T08:34:41.000Z
2022-03-11T17:14:11.000Z
if __name__ == "__main__": import sys sys.path.insert(0, "..") sys.path.insert(0, "../..") import unittest from hamcrest import greater_than from hamcrest.library.object.hasproperty import has_properties, has_property from hamcrest_unit_test.matcher_test import MatcherTest __author__ = "Chris Rose" __co...
31.655172
98
0.660131
4a25b94be40b8ba4c3fc90d8aebf4aff11797edc
2,109
py
Python
libmodernize/fixes/fix_itertools_six.py
graingert/python-modernize
028d13416d7abe4b8b39bc21e6425df65c7836c0
[ "BSD-3-Clause" ]
null
null
null
libmodernize/fixes/fix_itertools_six.py
graingert/python-modernize
028d13416d7abe4b8b39bc21e6425df65c7836c0
[ "BSD-3-Clause" ]
null
null
null
libmodernize/fixes/fix_itertools_six.py
graingert/python-modernize
028d13416d7abe4b8b39bc21e6425df65c7836c0
[ "BSD-3-Clause" ]
null
null
null
""" Fixer for itertools.(imap|ifilter|izip) --> (six.moves.map|six.moves.filter|six.moves.zip) and itertools.ifilterfalse --> six.moves.filterfalse (bugs 2360-2363) imports from itertools are fixed in fix_itertools_imports_six.py If itertools is imported as something else (ie: import itertools as it; ...
37
82
0.62257
4a25b9986c5238d6b346961e4eb845692fa279e0
4,180
py
Python
Scripts/run_SVM_rejection.py
hemrekale/scRNAseq_Benchmark
77d6304f9627be704bff2111be43f2a25b5a16bd
[ "MIT" ]
145
2019-04-30T14:23:14.000Z
2022-03-15T06:57:20.000Z
Scripts/run_SVM_rejection.py
hemrekale/scRNAseq_Benchmark
77d6304f9627be704bff2111be43f2a25b5a16bd
[ "MIT" ]
16
2019-05-27T20:04:54.000Z
2022-01-13T13:29:37.000Z
Scripts/run_SVM_rejection.py
hemrekale/scRNAseq_Benchmark
77d6304f9627be704bff2111be43f2a25b5a16bd
[ "MIT" ]
43
2019-05-07T08:49:32.000Z
2022-03-15T06:56:40.000Z
import os import numpy as np import pandas as pd import time as tm from sklearn.svm import LinearSVC import rpy2.robjects as robjects from sklearn.calibration import CalibratedClassifierCV def run_SVM(DataPath, LabelsPath, CV_RDataPath, OutputDir, GeneOrderPath = "", NumGenes = 0, Threshold = 0.7): '''...
36.666667
118
0.617225
4a25ba4c55e3f892d25d5cf8283588bb7f6b6da1
14,835
py
Python
cantools/database/can/c2000_source.py
gmarescotti/cantools
8712deb496b0e62ef57b7b2d5b194058a4aab31b
[ "MIT" ]
null
null
null
cantools/database/can/c2000_source.py
gmarescotti/cantools
8712deb496b0e62ef57b7b2d5b194058a4aab31b
[ "MIT" ]
null
null
null
cantools/database/can/c2000_source.py
gmarescotti/cantools
8712deb496b0e62ef57b7b2d5b194058a4aab31b
[ "MIT" ]
null
null
null
import re import time from decimal import Decimal from ...version import __version__ from .c_source import Message, Signal HEADER_FMT = '''\ /** * This file was generated by cantools version {version} {date}. */ #ifndef {include_guard} #define {include_guard} #ifdef __cplusplus extern "C" {{ #endif #include <std...
37.180451
191
0.626896
4a25ba5115acbdac459208546fa8c11148aa5762
23,314
py
Python
zipline/errors.py
bowlofstew/zipline
07661788465a42be86b56d5c51e98307360fe941
[ "Apache-2.0" ]
3
2019-11-19T10:28:38.000Z
2020-04-02T16:46:05.000Z
zipline/errors.py
bowlofstew/zipline
07661788465a42be86b56d5c51e98307360fe941
[ "Apache-2.0" ]
4
2018-11-02T07:31:31.000Z
2018-11-05T09:08:17.000Z
zipline/errors.py
softagram/zipline
50248d9acc4a430ac0d0f9e3de23e04bd16e3c4c
[ "Apache-2.0" ]
4
2018-11-12T10:48:01.000Z
2020-07-29T19:48:35.000Z
# # Copyright 2015 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
27.954436
79
0.671785
4a25bb62a7c555005f6295617eeec62d7e7c9d09
6,022
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_kusto_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_kusto_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_kusto_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
40.689189
133
0.657921
4a25bbaeb6954d5c0b3c3f0b26b7a455e65d81be
15,325
py
Python
pyocd/tools/gdb_server.py
majorlin/pyOCD
62dbca36645a72152f0fb9049e5d46070f8b66b7
[ "Apache-2.0" ]
1
2022-02-13T13:47:49.000Z
2022-02-13T13:47:49.000Z
pyocd/tools/gdb_server.py
majorlin/pyOCD
62dbca36645a72152f0fb9049e5d46070f8b66b7
[ "Apache-2.0" ]
null
null
null
pyocd/tools/gdb_server.py
majorlin/pyOCD
62dbca36645a72152f0fb9049e5d46070f8b66b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # pyOCD debugger # Copyright (c) 2006-2018 Arm Limited # Copyright (c) 2020 Cypress Semiconductor Corporation # Copyright (c) 2021 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance w...
47.593168
301
0.599478
4a25bdff3ffb6b7e062fc08593493a15f4a7b6f2
916
py
Python
setup.py
Appsurify/appsurifyci
02a75acaab9a08124f5c069a31e02c27306f9c36
[ "MIT" ]
null
null
null
setup.py
Appsurify/appsurifyci
02a75acaab9a08124f5c069a31e02c27306f9c36
[ "MIT" ]
null
null
null
setup.py
Appsurify/appsurifyci
02a75acaab9a08124f5c069a31e02c27306f9c36
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Education', 'Operating System :: Microsoft :: Windows :: Windows 10', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3' ] setup( name='appsurifyc...
32.714286
109
0.709607
4a25c0b1cafb0dcaf6bf2319831ad7baac18cde7
1,612
py
Python
api/routes/users.py
osmarvalero100/fast-api-example
3380b5c49333c193b169071143edaa7410cf72a8
[ "MIT" ]
null
null
null
api/routes/users.py
osmarvalero100/fast-api-example
3380b5c49333c193b169071143edaa7410cf72a8
[ "MIT" ]
null
null
null
api/routes/users.py
osmarvalero100/fast-api-example
3380b5c49333c193b169071143edaa7410cf72a8
[ "MIT" ]
null
null
null
from typing import List from fastapi import Cookie from fastapi import Response from fastapi import APIRouter from fastapi import HTTPException from fastapi.security import HTTPBasicCredentials from ..database import User from ..schemas import ReviewResponseModel, UserRequestModel from ..schemas import UserResponseM...
30.415094
77
0.736973
4a25c233f79ca66452932f4b73f66b10e307dd4b
7,267
py
Python
tests/runners/test_maven.py
webscopeio/license.sh
69986167013b3c628dbaa51cd54d2aa38d0cacdd
[ "MIT" ]
39
2019-08-09T12:52:05.000Z
2021-08-12T21:25:49.000Z
tests/runners/test_maven.py
webscopeio/license.sh
69986167013b3c628dbaa51cd54d2aa38d0cacdd
[ "MIT" ]
97
2019-10-31T18:34:59.000Z
2021-08-20T19:35:01.000Z
tests/runners/test_maven.py
webscopeio/license.sh
69986167013b3c628dbaa51cd54d2aa38d0cacdd
[ "MIT" ]
6
2019-12-17T16:02:54.000Z
2020-09-26T18:48:12.000Z
import unittest import xml.etree.ElementTree as ET from license_sh.runners.maven import ( parse_dependency_xml, parse_licenses_xml, get_project_name, ) class ParserTestCase(unittest.TestCase): def test_project_name(self): pom_xml = """<?xml version="1.0" encoding="UTF-8"?> <project xmlns="h...
39.494565
87
0.647172
4a25c28b050209c5bf0948f430294e687f9c7fa3
5,828
py
Python
doc/sphinx/conf.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
null
null
null
doc/sphinx/conf.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
null
null
null
doc/sphinx/conf.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.887179
79
0.632807
4a25c3582378f58bfc14fb683da8f670ac5d210e
2,046
py
Python
CombineResult.py
jerrychan807/WSPIH
46b7db76f5d1447294f70be1687da7e92031965d
[ "MIT" ]
202
2019-04-27T10:04:37.000Z
2022-03-28T02:11:09.000Z
CombineResult.py
362902755/WSPIH
46b7db76f5d1447294f70be1687da7e92031965d
[ "MIT" ]
6
2021-03-19T00:21:26.000Z
2022-03-11T23:46:10.000Z
CombineResult.py
362902755/WSPIH
46b7db76f5d1447294f70be1687da7e92031965d
[ "MIT" ]
52
2019-04-27T14:11:28.000Z
2022-03-22T08:11:33.000Z
#!/usr/local/bin/python # -*- coding:utf-8 -*- # @Time : 2019/4/22 11:52 PM # @Author : Jerry # @Desc : 汇集所有有敏感的结果 # @File : CombineResult.py import os import sys import json import platform def combineReuslt(folder_name): system_info = platform.system() cmd = "for /r {0} %i in (*result.json) do @...
35.275862
161
0.570381
4a25c53cf722323749ce5639c831469639d01117
31,218
py
Python
cloudperf/providers/aws_helpers.py
bra-fsn/ec2bench
2c9b22b89198aa52c85b42f268468bab3f293e49
[ "MIT" ]
6
2019-01-18T18:42:18.000Z
2022-02-24T21:24:21.000Z
cloudperf/providers/aws_helpers.py
bra-fsn/ec2bench
2c9b22b89198aa52c85b42f268468bab3f293e49
[ "MIT" ]
4
2019-10-05T01:11:40.000Z
2021-10-06T13:12:57.000Z
cloudperf/providers/aws_helpers.py
bra-fsn/ec2bench
2c9b22b89198aa52c85b42f268468bab3f293e49
[ "MIT" ]
3
2019-03-01T22:25:40.000Z
2020-06-12T23:51:29.000Z
from __future__ import absolute_import import base64 import re import sys import json import time import threading import logging import functools import collections from logging import NullHandler import copy from datetime import datetime, date from io import StringIO from multiprocessing.pool import ThreadPool import...
40.91481
141
0.583638
4a25c592a14607aee5f1d3a1e7913752fe9f0093
864
py
Python
Clases/Lab04/HallarComplejidadTwoSum.py
PaulAlexander19/LabADAGrupoB
dd984381e336961501384d712705680a78182fc4
[ "BSD-3-Clause" ]
null
null
null
Clases/Lab04/HallarComplejidadTwoSum.py
PaulAlexander19/LabADAGrupoB
dd984381e336961501384d712705680a78182fc4
[ "BSD-3-Clause" ]
null
null
null
Clases/Lab04/HallarComplejidadTwoSum.py
PaulAlexander19/LabADAGrupoB
dd984381e336961501384d712705680a78182fc4
[ "BSD-3-Clause" ]
null
null
null
## Hallar la complejidad del algoritmod ## Algoritmo origianal escrito en javascript # function twoSum(array){ # for (let i = 0; i < array.length; i++) { # for (let j = 0; j < array.length; j++) { # if (i !== j && array[i] + array[j] === 10) { # return true; # } # ...
27
111
0.545139
4a25c5d16544f6ff242b8c659253e17c98af7453
385
py
Python
mywb/asgi.py
tarsisferreira/personalsite
480ceb773d74ff4427e344ad240a1cdac92bcd36
[ "MIT" ]
null
null
null
mywb/asgi.py
tarsisferreira/personalsite
480ceb773d74ff4427e344ad240a1cdac92bcd36
[ "MIT" ]
null
null
null
mywb/asgi.py
tarsisferreira/personalsite
480ceb773d74ff4427e344ad240a1cdac92bcd36
[ "MIT" ]
null
null
null
""" ASGI config for mywb project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
22.647059
78
0.781818
4a25c6d345fad7a216ab59ed9e0565341c38f0f6
613
py
Python
PlanningBoard/migrations/0003_auto_20180205_0339.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
null
null
null
PlanningBoard/migrations/0003_auto_20180205_0339.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
4
2018-02-14T11:58:51.000Z
2018-02-14T14:03:16.000Z
PlanningBoard/migrations/0003_auto_20180205_0339.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-04 18:39 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('PlanningBoard', '0002_auto_20180205_0334'), ] op...
24.52
70
0.623165
4a25c74e61a5442686f1d2ff2d3e48b4a3faa229
1,999
py
Python
setup.py
ydcjeff/sphinxcontrib-playground
d7bbb52d05e09b78d02cecde0b16f63f8a2c909a
[ "MIT" ]
1
2021-06-21T18:37:17.000Z
2021-06-21T18:37:17.000Z
setup.py
ydcjeff/sphinxcontrib-playground
d7bbb52d05e09b78d02cecde0b16f63f8a2c909a
[ "MIT" ]
1
2022-02-06T02:21:17.000Z
2022-02-06T02:21:17.000Z
setup.py
ydcjeff/sphinxcontrib-playground
d7bbb52d05e09b78d02cecde0b16f63f8a2c909a
[ "MIT" ]
null
null
null
import json from setuptools import find_namespace_packages, setup with open('README.md', 'r', encoding='utf-8') as f: README = f.read() with open('package.json', 'r') as f: VERSION = json.load(f)['version'] tests = ['pytest', 'pytest-cov', 'black', 'pylint', 'isort', 'flake8'] install_requires = ['sphinx'] ext...
34.465517
108
0.701351
4a25c8686dd27276122491ac5f46b23565be0354
389
py
Python
myBlog/wsgi.py
GermainPereira/Django_Blog
acab35a68b8b2290915e4cbac3f7b86fc7d6c17f
[ "MIT" ]
null
null
null
myBlog/wsgi.py
GermainPereira/Django_Blog
acab35a68b8b2290915e4cbac3f7b86fc7d6c17f
[ "MIT" ]
null
null
null
myBlog/wsgi.py
GermainPereira/Django_Blog
acab35a68b8b2290915e4cbac3f7b86fc7d6c17f
[ "MIT" ]
null
null
null
""" WSGI config for myBlog project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.786632
4a25c94de53d29f9a1a4d2bae0319578e14432d3
17,827
py
Python
qa/rpc-tests/test_framework/util.py
mirzaei-ce/core-javabit
bfc1f145268455ca788c8a0b70fb3f054e4287f9
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/util.py
mirzaei-ce/core-javabit
bfc1f145268455ca788c8a0b70fb3f054e4287f9
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/util.py
mirzaei-ce/core-javabit
bfc1f145268455ca788c8a0b70fb3f054e4287f9
[ "MIT" ]
null
null
null
# Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regression testing # # Add python-javabitrpc to module search path: import os import sys from decimal ...
35.654
119
0.645538
4a25c95e96440466d0f4a4b0571245f51753f2a2
2,958
py
Python
pycheck/test/test_checkcomposerjson.py
lauft/pyCheck
ae4107bfa66474afafaff3c964bf81641d0a023a
[ "MIT" ]
1
2021-09-06T16:24:53.000Z
2021-09-06T16:24:53.000Z
pycheck/test/test_checkcomposerjson.py
lauft/pyCheck
ae4107bfa66474afafaff3c964bf81641d0a023a
[ "MIT" ]
null
null
null
pycheck/test/test_checkcomposerjson.py
lauft/pyCheck
ae4107bfa66474afafaff3c964bf81641d0a023a
[ "MIT" ]
null
null
null
__author__ = 'lauft' import unittest import os import pycheck.checkcomposerjson class CheckComposerJsonFileTestCase(unittest.TestCase): """CheckJsonFile test case""" def setUp(self): """ :return: """ self.validTestFile = "valid_composer.json" self.invalidTestFile = "...
30.183673
131
0.666329
4a25ca35901d1b4f40693d42356043afb9281cca
555
py
Python
config.py
pkch93/cardshare
f0ebc2dbe530f3b6a26b60aa5f881b45917f67b9
[ "MIT" ]
null
null
null
config.py
pkch93/cardshare
f0ebc2dbe530f3b6a26b60aa5f881b45917f67b9
[ "MIT" ]
3
2018-12-28T02:54:06.000Z
2018-12-30T11:06:49.000Z
config.py
pkch93/cardshare
f0ebc2dbe530f3b6a26b60aa5f881b45917f67b9
[ "MIT" ]
1
2018-12-25T14:52:17.000Z
2018-12-25T14:52:17.000Z
import os # POSTGRESQL CONFIG USERNAME = os.getenv("DB_USERNAME") PASSWORD = os.getenv("DB_PASSWORD") DB_NAME = os.getenv("DB_NAME") SQLALCHEMY_DATABASE_URI = f"postgresql://{USERNAME}:{PASSWORD}@localhost:5432/{DB_NAME}" # SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] # AWS BUCKET CONFIG S3_BUCKET_NAME = os.en...
34.6875
88
0.778378
4a25cb559ec23d82191763eb8905a36879143586
20,719
py
Python
src/abaqus/Interaction/SurfaceToSurfaceContactStd.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/Interaction/SurfaceToSurfaceContactStd.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/Interaction/SurfaceToSurfaceContactStd.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
import typing from abaqusConstants import * from .Interaction import Interaction from ..Datum.DatumAxis import DatumAxis from ..Region.Region import Region class SurfaceToSurfaceContactStd(Interaction): """The SurfaceToSurfaceContactStd object defines surface-to-surface contact during an Abaqus/Standard anal...
56.764384
118
0.670447
4a25cda84c12636d8c44ff2b0f3f8beeef8a089f
4,348
py
Python
autotest/ogr/ogr_as_sqlite_extension.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
3
2017-01-12T10:18:56.000Z
2020-03-21T16:42:55.000Z
autotest/ogr/ogr_as_sqlite_extension.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
1
2016-04-04T09:14:19.000Z
2016-04-14T19:17:10.000Z
autotest/ogr/ogr_as_sqlite_extension.py
pramsey/gdal
965421b79fe4d3332b0f2f633b072fdcab2b700a
[ "MIT" ]
2
2018-05-08T01:51:34.000Z
2019-06-26T05:08:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test GDAL as a SQLite3 dynamically loaded extension # Author: Even Rouault <even dot rouault at mines dash paris dot org> # ###############...
36.537815
115
0.647884
4a25ced5738b1e1b177d2faec64bfa0208f54a47
811
py
Python
var/spack/repos/builtin/packages/py-region-grower/package.py
MatMaul/spack
46c56c163cd0b437c96492b0fa1f3d4bbc4fb492
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-region-grower/package.py
MatMaul/spack
46c56c163cd0b437c96492b0fa1f3d4bbc4fb492
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-region-grower/package.py
MatMaul/spack
46c56c163cd0b437c96492b0fa1f3d4bbc4fb492
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyRegionGrower(PythonPackage): """Python library for space-aware neuron synthesis""" ...
33.791667
93
0.694205
4a25cf85c94b5e06a4ea93cb0b02da974d193804
2,684
py
Python
syft/generic/id_provider.py
sparkingdark/PySyft
8fec86803dd20ca9ad58590ff0d16559991f1b08
[ "Apache-2.0" ]
7
2020-04-20T22:22:08.000Z
2020-07-25T17:32:08.000Z
syft/generic/id_provider.py
sparkingdark/PySyft
8fec86803dd20ca9ad58590ff0d16559991f1b08
[ "Apache-2.0" ]
3
2020-04-24T21:20:57.000Z
2020-05-28T09:17:02.000Z
syft/generic/id_provider.py
sparkingdark/PySyft
8fec86803dd20ca9ad58590ff0d16559991f1b08
[ "Apache-2.0" ]
4
2020-04-24T22:32:37.000Z
2020-05-25T19:29:20.000Z
import random from typing import List from syft import exceptions def create_random_id(): return int(10e10 * random.random()) class IdProvider: """Provides Id to all syft objects. Generate id and store the list of ids generated Can take a pre set list in input and will complete when it's empty....
29.822222
92
0.619598
4a25cfc1d5f1c5577ae2bf45de3be961a07f9305
133
py
Python
sopy/wiki/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:07:27.000Z
2021-08-15T17:46:13.000Z
sopy/wiki/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:04:16.000Z
2021-02-21T03:52:55.000Z
sopy/wiki/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
29
2015-01-18T18:28:06.000Z
2022-02-05T03:11:04.000Z
from flask import Blueprint bp = Blueprint('wiki', __name__) @bp.record_once def register(state): from sopy.wiki import views
14.777778
32
0.744361
4a25cfe80368fdaadec886ade0c1328c60f0a0fa
45,279
py
Python
tapas/models/tapas_classifier_model.py
SOI-TechNinjas/Tapas-Demo
ab1c7404fce708fa66b742393a310b1da4e39643
[ "Apache-2.0" ]
1
2021-06-06T02:49:38.000Z
2021-06-06T02:49:38.000Z
tapas/models/tapas_classifier_model.py
SOI-TechNinjas/Tapas-Demo
ab1c7404fce708fa66b742393a310b1da4e39643
[ "Apache-2.0" ]
null
null
null
tapas/models/tapas_classifier_model.py
SOI-TechNinjas/Tapas-Demo
ab1c7404fce708fa66b742393a310b1da4e39643
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
40.463807
80
0.718435
4a25d09fa1f759440ffcc507bbce3fb36b55dbbb
3,897
py
Python
blues/models/object_detections/efficientdet/efficientdet_lib/models/efficientdet.py
Kageshimasu/blues
a808fb8da86224f2e597916b04bdbd29376af6bb
[ "MIT" ]
null
null
null
blues/models/object_detections/efficientdet/efficientdet_lib/models/efficientdet.py
Kageshimasu/blues
a808fb8da86224f2e597916b04bdbd29376af6bb
[ "MIT" ]
null
null
null
blues/models/object_detections/efficientdet/efficientdet_lib/models/efficientdet.py
Kageshimasu/blues
a808fb8da86224f2e597916b04bdbd29376af6bb
[ "MIT" ]
1
2021-02-15T07:54:17.000Z
2021-02-15T07:54:17.000Z
import torch import torch.nn as nn import math from .efficientnet import EfficientNet from .bifpn import BIFPN from .retinahead import RetinaHead from .module import RegressionModel, ClassificationModel, Anchors, ClipBoxes, BBoxTransform from torchvision.ops import nms from .losses import FocalLoss MODEL_MAP = { ...
38.584158
96
0.59379
4a25d0a07d5c15216506acda31c39f16b30f3620
3,004
py
Python
tests/test_readme.py
fau-klue/pandas-association-measures
80625936d8c25afc81810a5c82b2b7fff66a375c
[ "MIT" ]
5
2020-07-30T08:17:53.000Z
2021-12-09T09:00:03.000Z
tests/test_readme.py
fau-klue/pandas-association-measures
80625936d8c25afc81810a5c82b2b7fff66a375c
[ "MIT" ]
11
2019-04-14T21:28:25.000Z
2021-12-07T10:35:49.000Z
tests/test_readme.py
fau-klue/pandas-association-measures
80625936d8c25afc81810a5c82b2b7fff66a375c
[ "MIT" ]
null
null
null
import association_measures.frequencies as fq import association_measures.measures as am from pandas import read_csv def test_input(): # frequency signature notation df = read_csv("tests/ucs-gold-100.ds", comment='#', index_col=0, sep="\t", quoting=3, keep_default_na=False) df.rename({'...
31.621053
114
0.5749
4a25d0a13c13517ad38ac47f02d63a5a97b949ff
59
py
Python
vigir_flexbe_states/src/vigir_flexbe_states/__init__.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-08-25T18:47:52.000Z
2019-12-04T21:40:28.000Z
vigir_flexbe_states/src/vigir_flexbe_states/__init__.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
2
2017-08-16T16:09:47.000Z
2020-08-18T17:25:22.000Z
vigir_flexbe_states/src/vigir_flexbe_states/__init__.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-11-06T21:57:37.000Z
2022-03-30T10:15:57.000Z
import roslib; roslib.load_manifest('vigir_flexbe_states')
29.5
58
0.847458
4a25d0cdfc439b0dee64287c8d33fde2aee211bf
1,051
py
Python
uploader.py
Raekon/pythonfiles
04574113a132f24deda48617274a71ecaf55a376
[ "MIT" ]
null
null
null
uploader.py
Raekon/pythonfiles
04574113a132f24deda48617274a71ecaf55a376
[ "MIT" ]
null
null
null
uploader.py
Raekon/pythonfiles
04574113a132f24deda48617274a71ecaf55a376
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: UTF-8 -*- import threading import subprocess import ftplib import os import time import datetime from PIL import Image class Uploader(threading.Thread): def __init__(self, shoottime, timelapse): threading.Thread.__init__(self) self.Shoottime = shoottime*1000 ...
31.848485
78
0.600381
4a25d0eda94fecb821966f5e6593008b8a56afb7
31,336
py
Python
openpathsampling/tests/test_snapshot_modifier.py
sroet/openpathsampling
97c2d51ada941b952189da3deb61cd71b0e5e4a3
[ "MIT" ]
64
2016-07-06T13:38:51.000Z
2022-03-30T15:58:01.000Z
openpathsampling/tests/test_snapshot_modifier.py
sroet/openpathsampling
97c2d51ada941b952189da3deb61cd71b0e5e4a3
[ "MIT" ]
601
2016-06-13T10:22:01.000Z
2022-03-25T00:10:40.000Z
openpathsampling/tests/test_snapshot_modifier.py
dwhswenson/openpathsampling
72fedad9ba8bc60d17c7cc73c641129898d5d530
[ "MIT" ]
45
2016-11-10T11:17:53.000Z
2022-02-13T11:50:26.000Z
from __future__ import division from __future__ import absolute_import from builtins import zip from builtins import range from past.utils import old_div from builtins import object import pytest from numpy.testing import assert_array_almost_equal from .test_helpers import u import openpathsampling as paths import ope...
44.135211
79
0.60263
4a25d104c2e484e1d6c446c7a21d549c0092bf0f
1,665
py
Python
src/utils.py
imperial-qore/GON
08743504f3a0d86b7bbef77e363eb9a04ffe9242
[ "BSD-3-Clause" ]
2
2021-12-13T14:12:42.000Z
2022-01-09T11:14:55.000Z
src/utils.py
imperial-qore/GON
08743504f3a0d86b7bbef77e363eb9a04ffe9242
[ "BSD-3-Clause" ]
null
null
null
src/utils.py
imperial-qore/GON
08743504f3a0d86b7bbef77e363eb9a04ffe9242
[ "BSD-3-Clause" ]
1
2022-03-15T22:10:31.000Z
2022-03-15T22:10:31.000Z
import matplotlib.pyplot as plt import os from src.constants import * import pandas as pd import numpy as np from sklearn.metrics import * class color: HEADER = '\033[95m' BLUE = '\033[94m' GREEN = '\033[92m' RED = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLIN...
32.647059
112
0.66006
4a25d26ba979c9c5eedc71b005f4be5572079095
5,939
py
Python
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/language/v1/language_v1_client.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/language/v1/language_v1_client.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/language/v1/language_v1_client.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
"""Generated client library for language version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.language.v1 import language_v1_messages as messages class LanguageV1(base_api.BaseApiClient): """Generated client li...
37.828025
114
0.701297
4a25d2ee83da6f755fa87540b25c325fdcecaff2
51,185
py
Python
salt/grains/core.py
Jiaion/salt
a7d2444a60f33942a293680a41e894eec98f5707
[ "Apache-2.0" ]
null
null
null
salt/grains/core.py
Jiaion/salt
a7d2444a60f33942a293680a41e894eec98f5707
[ "Apache-2.0" ]
null
null
null
salt/grains/core.py
Jiaion/salt
a7d2444a60f33942a293680a41e894eec98f5707
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The static grains, these are the core, or built in grains. When grains are loaded they are not loaded in the same way that modules are loaded, grain functions are detected and executed, the functions MUST return a dict which will be applied to the main grains dict. This module will always b...
35.422145
165
0.538888
4a25d38cec340d604a5190e29cfbc17594325d20
1,269
py
Python
yatai/yatai/metrics.py
jmc529/BentoML
96c1ec9e486d98930e24bbbac5b2991a6d416f97
[ "Apache-2.0" ]
null
null
null
yatai/yatai/metrics.py
jmc529/BentoML
96c1ec9e486d98930e24bbbac5b2991a6d416f97
[ "Apache-2.0" ]
null
null
null
yatai/yatai/metrics.py
jmc529/BentoML
96c1ec9e486d98930e24bbbac5b2991a6d416f97
[ "Apache-2.0" ]
null
null
null
from yatai.configuration.containers import YataiContainer yatai_metrics_client = YataiContainer.yatai_metrics_client.get() GRPC_SERVER_STARTED_COUNTER = yatai_metrics_client.Counter( "grpc_server_started_total", "Total number of RPCs started on the server.", ["grpc_type", "grpc_service", "grpc_method"], ...
35.25
86
0.762017
4a25d4392b94a1bbcc13aaada7b5379b8c9c0e5f
10,260
py
Python
app/api/views/new_custom_alias.py
A-NL/simplelogin-app
f17f9aaf8c57373c09dc3393975d2509f37815b9
[ "MIT" ]
4
2021-07-06T14:51:24.000Z
2021-07-23T16:40:53.000Z
app/api/views/new_custom_alias.py
A-NL/simplelogin-app
f17f9aaf8c57373c09dc3393975d2509f37815b9
[ "MIT" ]
1
2021-05-11T13:02:48.000Z
2021-05-11T13:03:32.000Z
app/api/views/new_custom_alias.py
A-NL/simplelogin-app
f17f9aaf8c57373c09dc3393975d2509f37815b9
[ "MIT" ]
null
null
null
from flask import g from flask import jsonify, request from itsdangerous import SignatureExpired from app.alias_utils import check_alias_prefix from app.api.base import api_bp, require_api_auth from app.api.serializer import ( serialize_alias_info_v2, get_alias_info_v2, serialize_alias_info, get_alias_...
32.884615
100
0.657212
4a25d5285dac4fc291ed802fd246bd4be334e36a
716
py
Python
xyzspaces/__version__.py
fangkun202303x/heremapsn
67c0b670ef337d236761932a6fc4da4129d999ad
[ "Apache-2.0" ]
28
2020-07-23T12:02:53.000Z
2021-01-09T18:26:32.000Z
xyzspaces/__version__.py
fangkun202303x/heremapsn
67c0b670ef337d236761932a6fc4da4129d999ad
[ "Apache-2.0" ]
93
2020-07-24T10:45:40.000Z
2021-08-18T16:14:10.000Z
xyzspaces/__version__.py
fangkun202303x/heremapsn
67c0b670ef337d236761932a6fc4da4129d999ad
[ "Apache-2.0" ]
9
2020-07-23T12:27:51.000Z
2021-08-15T20:09:50.000Z
# Copyright (C) 2019-2021 HERE Europe B.V. # # 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 t...
34.095238
74
0.748603
4a25d52fd0b038200e9ada6a1e0292a54b1f9f7f
4,135
py
Python
segmenter/visualizers/CombinedF1Visualizer.py
brandongk/segmenter
dbc042d31dc74f1abdc87ae10a6be78ba38ddb91
[ "Unlicense" ]
null
null
null
segmenter/visualizers/CombinedF1Visualizer.py
brandongk/segmenter
dbc042d31dc74f1abdc87ae10a6be78ba38ddb91
[ "Unlicense" ]
null
null
null
segmenter/visualizers/CombinedF1Visualizer.py
brandongk/segmenter
dbc042d31dc74f1abdc87ae10a6be78ba38ddb91
[ "Unlicense" ]
null
null
null
import os import pandas as pd import numpy as np from matplotlib import pyplot as plt from segmenter.visualizers.BaseVisualizer import BaseVisualizer import glob from segmenter.helpers.p_tqdm import t_map as mapper from segmenter.aggregators import Aggregators import seaborn as sns class CombinedF1Visualizer(BaseVisu...
36.59292
79
0.538573
4a25d67d55bfe07a689e35dfce94b7c1f0388063
770
py
Python
sample/lambda_handler_basic.py
alecsandrapetruescu/AWS-Lambda-templates
f2a2479c6af868ce3b4e9d734ec4ea3589a3a3e3
[ "MIT" ]
null
null
null
sample/lambda_handler_basic.py
alecsandrapetruescu/AWS-Lambda-templates
f2a2479c6af868ce3b4e9d734ec4ea3589a3a3e3
[ "MIT" ]
null
null
null
sample/lambda_handler_basic.py
alecsandrapetruescu/AWS-Lambda-templates
f2a2479c6af868ce3b4e9d734ec4ea3589a3a3e3
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) # Define a dict of operations called by the AWS Lambda function. OPERATIONS = { 'add': lambda x, y: x + y, 'substract': lambda x, y: x - y, } def lambda_handler(event, context): """ AWS lambda handler with a basic event. Ex...
26.551724
66
0.675325
4a25d6c08bc3bd01522cfbc1f95e8ec99f6f8950
506
py
Python
config.py
cuylerquint/byte-drawer
0277842886f9b454337320bdec4b5045257a2111
[ "MIT" ]
1
2019-10-01T14:02:05.000Z
2019-10-01T14:02:05.000Z
config.py
cuylerquint/byte-drawer
0277842886f9b454337320bdec4b5045257a2111
[ "MIT" ]
6
2019-09-08T17:59:17.000Z
2022-02-18T09:43:26.000Z
config.py
cuylerquint/byte-drawer
0277842886f9b454337320bdec4b5045257a2111
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): DEBUG = False TESTING = False CSRF_ENABLED = True SECRET_KEY = "this-really-needs-to-be-changed" SQLALCHEMY_DATABASE_URI = os.environ["DATABASE_URL"] class ProductionConfig(Config): DEBUG = False class St...
16.866667
56
0.703557
4a25d86e861368e38cdf1f190fa0f0c4dfc7180d
1,186
py
Python
Python/Estruturas e Bibliotecas/1023 - Time limit exceeded.py
TiagoSanti/uri-solutions
e80d9e2874cac13e721a96d7aeb075e7d72ceb2d
[ "MIT" ]
null
null
null
Python/Estruturas e Bibliotecas/1023 - Time limit exceeded.py
TiagoSanti/uri-solutions
e80d9e2874cac13e721a96d7aeb075e7d72ceb2d
[ "MIT" ]
null
null
null
Python/Estruturas e Bibliotecas/1023 - Time limit exceeded.py
TiagoSanti/uri-solutions
e80d9e2874cac13e721a96d7aeb075e7d72ceb2d
[ "MIT" ]
null
null
null
def join(array): index = 0 i = index+1 while i < len(array): if array[i][2] == array[index][2]: array[index][0] += array[i][0] array[index][1] += array[i][1] array.pop(i) i = index+1 else: index += 1 i += 1 return array cidade = 1 imoveis = int(input()) while imoveis != 0: pares = [] ...
20.101695
111
0.627319
4a25d88376662b42451db9fe11a704f642f94744
62
py
Python
av/video/__init__.py
philipnbbc/PyAV
6f9a1561f43e0cedc10c0ee33cd30bded7d34dc0
[ "BSD-3-Clause" ]
965
2015-01-08T19:11:16.000Z
2020-04-30T16:27:07.000Z
av/video/__init__.py
philipnbbc/PyAV
6f9a1561f43e0cedc10c0ee33cd30bded7d34dc0
[ "BSD-3-Clause" ]
542
2015-01-02T12:55:46.000Z
2020-04-30T16:13:56.000Z
av/video/__init__.py
philipnbbc/PyAV
6f9a1561f43e0cedc10c0ee33cd30bded7d34dc0
[ "BSD-3-Clause" ]
211
2015-01-10T12:10:02.000Z
2020-04-29T14:02:51.000Z
from .frame import VideoFrame from .stream import VideoStream
20.666667
31
0.83871
4a25d8bfd91d86cc3c2ea92e5d52be351cbcf0a4
1,984
py
Python
examples/ssl_transports/ssl_transports.py
GorrieXIV/tornadio2
6be64e91607f3d7a32acf7535c1a7464debbae40
[ "Apache-2.0" ]
null
null
null
examples/ssl_transports/ssl_transports.py
GorrieXIV/tornadio2
6be64e91607f3d7a32acf7535c1a7464debbae40
[ "Apache-2.0" ]
3
2020-10-30T18:10:37.000Z
2020-11-05T17:07:55.000Z
examples/ssl_transports/ssl_transports.py
GorrieXIV/tornadio2
6be64e91607f3d7a32acf7535c1a7464debbae40
[ "Apache-2.0" ]
1
2019-08-22T20:49:32.000Z
2019-08-22T20:49:32.000Z
from os import path as op import tornado.web import tornadio3 import tornadio3.router import tornadio3.server import tornadio3.conn ROOT = op.normpath(op.dirname(__file__)) class IndexHandler(tornado.web.RequestHandler): """Regular HTTP handler to serve the chatroom page""" def get(self): self.rende...
27.555556
88
0.652722
4a25d912ea0f9a9a936f94f32beabdd3fc329c18
5,452
py
Python
python/api-eventbridge-lambda/api_eventbridge_lambda/api_eventbridge_lambda.py
damshenas/aws-cdk-examples
85d247df404444cde6ef913aae31aaa47cd93daa
[ "Apache-2.0" ]
1
2022-02-02T20:23:28.000Z
2022-02-02T20:23:28.000Z
python/api-eventbridge-lambda/api_eventbridge_lambda/api_eventbridge_lambda.py
damshenas/aws-cdk-examples
85d247df404444cde6ef913aae31aaa47cd93daa
[ "Apache-2.0" ]
null
null
null
python/api-eventbridge-lambda/api_eventbridge_lambda/api_eventbridge_lambda.py
damshenas/aws-cdk-examples
85d247df404444cde6ef913aae31aaa47cd93daa
[ "Apache-2.0" ]
null
null
null
from constructs import Construct from aws_cdk import ( aws_lambda as _lambda, aws_apigateway as api_gw, aws_events as events, aws_events_targets as targets, aws_kinesisfirehose as _firehose, aws_iam as iam, aws_s3 as s3, Stack ) class ApiEventBridgeLambdaStack(Stack): def __init__...
50.018349
162
0.483492
4a25d9501693ee741465bbbab1176cd0eceeb022
13,851
py
Python
flask_rest_jsonapi_next/data_layers/base.py
tadams42/flask-rest-jsonapi
c73f4ca7ea5ba87867c8ce6e874472462f072f83
[ "MIT" ]
null
null
null
flask_rest_jsonapi_next/data_layers/base.py
tadams42/flask-rest-jsonapi
c73f4ca7ea5ba87867c8ce6e874472462f072f83
[ "MIT" ]
null
null
null
flask_rest_jsonapi_next/data_layers/base.py
tadams42/flask-rest-jsonapi
c73f4ca7ea5ba87867c8ce6e874472462f072f83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # isort: skip_file # fmt: off """The base class of a data layer. If you want to create your own data layer you must inherite from this base class""" import types class BaseDataLayer(object): """Base class of a data layer""" REWRITABLE_METHODS = ('query', 'b...
41.10089
118
0.671215
4a25daf35b5d56df844ac471737ae9a03e0b9400
1,376
py
Python
handlers/followHandler.py
zhuxiyulu/sugar
c780618aa6493779cc869e984f8e38be9314e1b8
[ "Apache-2.0" ]
2
2018-06-14T15:28:10.000Z
2019-01-11T07:11:32.000Z
handlers/followHandler.py
zhuxiyulu/sugar
c780618aa6493779cc869e984f8e38be9314e1b8
[ "Apache-2.0" ]
null
null
null
handlers/followHandler.py
zhuxiyulu/sugar
c780618aa6493779cc869e984f8e38be9314e1b8
[ "Apache-2.0" ]
null
null
null
from tornado.web import RequestHandler from tornado.web import gen from controller import followController import json # 关注 class AddFollow(RequestHandler): @gen.coroutine def post(self): session_id = self.get_argument('session_id') followId = self.get_argument('followId') da...
31.272727
71
0.664244
4a25db3055e43774a11182b72574fe5e71ef8289
2,677
py
Python
src/python/plot/plot_data_distribution_1d.py
YoungLew/ResLib
1ed5a01b5650de9da11c100be3838f84016a2737
[ "MIT" ]
null
null
null
src/python/plot/plot_data_distribution_1d.py
YoungLew/ResLib
1ed5a01b5650de9da11c100be3838f84016a2737
[ "MIT" ]
null
null
null
src/python/plot/plot_data_distribution_1d.py
YoungLew/ResLib
1ed5a01b5650de9da11c100be3838f84016a2737
[ "MIT" ]
null
null
null
#! /usr/bin/env python # # File Name : plot_data_distribution_1d.py # Created By : largelymfs # Creation Date : [2015-12-23 14:16] # Last Modified : [2015-12-24 14:36] # Description : plot the data distribution given multi label # #data fo...
32.646341
98
0.624953
4a25ddc40ad30fd1da4a0ed61cbe7d6ed2bdb680
461
py
Python
src/lib/detectors/detector_factory.py
Artcs1/piou2
6ffda363b97969ea8e1c933a90d46720196a42b1
[ "MIT" ]
177
2020-07-22T08:06:11.000Z
2022-03-04T03:24:13.000Z
src/lib/detectors/detector_factory.py
gds101054108/piou
98f8d068a903d295f990609d8f90e4136e836495
[ "MIT" ]
18
2020-07-30T14:05:09.000Z
2021-12-15T12:21:13.000Z
src/lib/detectors/detector_factory.py
gds101054108/piou
98f8d068a903d295f990609d8f90e4136e836495
[ "MIT" ]
47
2020-07-21T01:38:55.000Z
2022-03-04T03:24:15.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .exdet import ExdetDetector from .ddd import DddDetector from .ctdet import CtdetDetector from .multi_pose import MultiPoseDetector from .ctdet_angle import CtdetAngleDetector detector_factory = { 'exde...
25.611111
43
0.813449
4a25de5c5319b948f76500e66e17938babbf72ab
6,425
py
Python
elvaluate.py
mcwindy/NJUPT_Autojudge
0498f7abfdea21b5b9b04f0d4034f152b4b8e24f
[ "MIT" ]
5
2018-12-02T15:06:31.000Z
2019-08-13T15:55:05.000Z
elvaluate.py
mcwindy/NJUPT_Autojudge
0498f7abfdea21b5b9b04f0d4034f152b4b8e24f
[ "MIT" ]
8
2019-03-28T11:54:19.000Z
2022-01-13T00:58:19.000Z
elvaluate.py
mcwindy/NJUPT_Autojudge
0498f7abfdea21b5b9b04f0d4034f152b4b8e24f
[ "MIT" ]
4
2019-02-16T06:45:15.000Z
2019-11-25T12:44:45.000Z
from njupt import Zhengfang from selenium import webdriver from selenium.common.exceptions import (NoSuchElementException, NoAlertPresentException, UnexpectedAlertPresentException, NoSuchFrameExcepti...
34.358289
138
0.536654
4a25de8ae38098d03d28acb1e1f4f7a012d0ff4b
1,249
py
Python
ferenda/tocpage.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
18
2015-03-12T17:42:44.000Z
2021-12-27T10:32:22.000Z
ferenda/tocpage.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
13
2016-01-27T10:19:07.000Z
2021-12-13T20:24:36.000Z
ferenda/tocpage.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
6
2016-11-28T15:41:29.000Z
2022-01-08T11:16:48.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * class TocPage(object): """Represents a particular TOC page. :param linktext: The text used for TOC links *to* this page, like "a" or "2013". :param ...
37.848485
226
0.646918
4a25de8e8ea7098f7e8916d2323630e14bb39f6e
1,604
py
Python
package/spack-py-pycrypto/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-py-pycrypto/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-py-pycrypto/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
41.128205
81
0.673317
4a25e07509edba1e549d4dc3854823d5e7b7cfc3
9,700
py
Python
shanshan-django/5/shan/views.py
hujiaweibujidao/XingShan
6e423c1d4cd90ddd766244006b7a4a0449a7d2cb
[ "Apache-2.0" ]
6
2015-03-04T08:17:13.000Z
2018-10-01T06:58:29.000Z
shanshan-django/5/shan/views.py
hujiaweibujidao/XingShan
6e423c1d4cd90ddd766244006b7a4a0449a7d2cb
[ "Apache-2.0" ]
null
null
null
shanshan-django/5/shan/views.py
hujiaweibujidao/XingShan
6e423c1d4cd90ddd766244006b7a4a0449a7d2cb
[ "Apache-2.0" ]
1
2018-10-01T06:58:30.000Z
2018-10-01T06:58:30.000Z
# coding=utf-8 from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.http import HttpResponse from django.shortcuts import render, redirect # Create your views here. from django.views.decorators.csrf import csrf_exempt from ShanShan.settings import MEDIA_ROOT, MEDIA_URL from shan.models...
34.519573
120
0.623196
4a25e1b74534f706f447211f96ef0afd3df33ebb
1,223
py
Python
exercises/exc_07_01.py
ruslan-kl/py-for-neuro
fcb463e0e6a724e9e1e8b644084aaead6489afe6
[ "MIT" ]
7
2021-04-28T13:12:16.000Z
2022-01-15T00:21:11.000Z
exercises/exc_07_01.py
ruslan-kl/py-for-neuro
fcb463e0e6a724e9e1e8b644084aaead6489afe6
[ "MIT" ]
2
2021-04-02T18:42:55.000Z
2021-05-20T08:43:06.000Z
exercises/exc_07_01.py
ruslan-kl/py-for-neuro
fcb463e0e6a724e9e1e8b644084aaead6489afe6
[ "MIT" ]
2
2021-07-04T22:57:29.000Z
2021-07-29T19:28:43.000Z
from scipy.___ import loadmat import ___.pyplot as ___ import ___ as np # import the file h1_data = ___( file_name=___, squeeze_me=___ # squeeze the file to remove empty indexes ) # create a new key with the time points as integers # from 0 to the length of the data h1_data["timepnt"] = ___ # select only ...
29.119048
78
0.719542
4a25e2b7befabc671376b8586c5f85e838390c8d
2,872
py
Python
python/moneysocket/core/message/message.py
jarret/prototype
74124b8ea74061a97f092c3f973907b42b2de8e8
[ "MIT" ]
null
null
null
python/moneysocket/core/message/message.py
jarret/prototype
74124b8ea74061a97f092c3f973907b42b2de8e8
[ "MIT" ]
null
null
null
python/moneysocket/core/message/message.py
jarret/prototype
74124b8ea74061a97f092c3f973907b42b2de8e8
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Jarret Dyrbye # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php import sys import time import uuid import json import string PROTOCOL = "Moneysocket" VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_RELEASE = 0 VER...
30.88172
79
0.61734
4a25e3d72622e55e7e4d48e58f5fd7242d324150
1,813
py
Python
agdc-v2/tests/api/test_api.py
ceos-seo/Data_Cube_v2
81c3be66153ea123b5d21cf9ec7f59ccb7a2050a
[ "Apache-2.0" ]
27
2016-08-16T18:22:47.000Z
2018-08-25T17:18:15.000Z
tests/api/test_api.py
HarshvardhanM/datacube-iirs
1b7e2d192d969609756def8923c20899733e695d
[ "Apache-2.0" ]
null
null
null
tests/api/test_api.py
HarshvardhanM/datacube-iirs
1b7e2d192d969609756def8923c20899733e695d
[ "Apache-2.0" ]
27
2016-08-26T18:14:40.000Z
2021-12-24T08:41:29.000Z
# Copyright 2015 Geoscience Australia # # 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 la...
27.892308
77
0.707115
4a25e44fb3e92139ba076ab6cb069ab965d384ff
27,151
py
Python
Convolutional Neural Networks/Week_1/Convolution_model_Application_v1a.py
iamjp7/Coursera-Deep-Learning
fa2e01f3a14f6f8f800957cb26b2fae54be04654
[ "MIT" ]
null
null
null
Convolutional Neural Networks/Week_1/Convolution_model_Application_v1a.py
iamjp7/Coursera-Deep-Learning
fa2e01f3a14f6f8f800957cb26b2fae54be04654
[ "MIT" ]
null
null
null
Convolutional Neural Networks/Week_1/Convolution_model_Application_v1a.py
iamjp7/Coursera-Deep-Learning
fa2e01f3a14f6f8f800957cb26b2fae54be04654
[ "MIT" ]
null
null
null
# coding: utf-8 # # Convolutional Neural Networks: Application # # Welcome to Course 4's second assignment! In this notebook, you will: # # - Implement helper functions that you will use when implementing a TensorFlow model # - Implement a fully functioning ConvNet using TensorFlow # # **After this assignment you...
43.028526
556
0.674045
4a25e51c4edd2247075f7eccd6c036485cf3faf6
1,801
py
Python
alipay/aop/api/domain/DiscountByDayModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/DiscountByDayModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/DiscountByDayModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class DiscountByDayModel(object): def __init__(self): self._begin_day = None self._discount = None self._end_day = None @property def begin_day(self): return se...
25.366197
69
0.568018
4a25e5480a77ed5226ec0963b36a2b44de2f6273
731
py
Python
ondewo/utils/base_service_container.py
ondewo/ondewo-client-utils-python
0c8dc6594e9380328c8f5d8edd8501e8d1111eec
[ "Apache-2.0" ]
null
null
null
ondewo/utils/base_service_container.py
ondewo/ondewo-client-utils-python
0c8dc6594e9380328c8f5d8edd8501e8d1111eec
[ "Apache-2.0" ]
null
null
null
ondewo/utils/base_service_container.py
ondewo/ondewo-client-utils-python
0c8dc6594e9380328c8f5d8edd8501e8d1111eec
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 ONDEWO GmbH # # 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, ...
28.115385
74
0.751026
4a25e703a77f23a2216bbc7ce400dd50265c3ab8
11,077
py
Python
dataloader/dataset/image_augmentation.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
1
2021-11-16T02:26:34.000Z
2021-11-16T02:26:34.000Z
dataloader/dataset/image_augmentation.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
dataloader/dataset/image_augmentation.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Xue Yang <yangxue-2019-sjtu@sjtu.edu.cn> # Jirui Yang <yangjirui123@gmail.com> # # License: Apache-2.0 license from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np import tensorflow as tf f...
46.154167
297
0.577593
4a25e77a73d0f2d2fe2d669788fed2165297133b
1,682
py
Python
docker/remap_envvars.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
null
null
null
docker/remap_envvars.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
123
2019-04-04T06:59:59.000Z
2021-08-02T07:46:21.000Z
docker/remap_envvars.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Parses and remaps DB URLs into standard psql environment variables # https://www.postgresql.org/docs/9.6/static/libpq-envars.html from future import standard_library # isort:skip standard_library.install_aliases() # noqa: E402 from os import environ from urllib.parse import urlparse def g...
26.28125
80
0.6522
4a25e7bbcbd530a60de267c057a49cf30797737e
1,141
py
Python
jupyter_cadquery/_version.py
koodistrom/jupyter-cadquery
b7f1e422ceee7d5468db73825dc5d713305b713c
[ "Apache-2.0" ]
null
null
null
jupyter_cadquery/_version.py
koodistrom/jupyter-cadquery
b7f1e422ceee7d5468db73825dc5d713305b713c
[ "Apache-2.0" ]
null
null
null
jupyter_cadquery/_version.py
koodistrom/jupyter-cadquery
b7f1e422ceee7d5468db73825dc5d713305b713c
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 Bernhard Walter # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
35.65625
106
0.720421
4a25e833d618ca3916de7efe6456675cfb8f4989
170
py
Python
output/models/ms_data/datatypes/facets/qname/qname_min_length002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/facets/qname/qname_min_length002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/facets/qname/qname_min_length002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.datatypes.facets.qname.qname_min_length002_xsd.qname_min_length002 import ( FooType, Test, ) __all__ = [ "FooType", "Test", ]
17
102
0.705882
4a25e86965b7e511a34be878b86c6d5888eac17d
3,426
py
Python
ebr_connector/hooks/common/store_results.py
swathisa/ebr-connector
f083be71c3c37bb0d9a42066234ba3de182550b2
[ "Apache-2.0" ]
null
null
null
ebr_connector/hooks/common/store_results.py
swathisa/ebr-connector
f083be71c3c37bb0d9a42066234ba3de182550b2
[ "Apache-2.0" ]
null
null
null
ebr_connector/hooks/common/store_results.py
swathisa/ebr-connector
f083be71c3c37bb0d9a42066234ba3de182550b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Library with convience functions for use in hooks """ import argparse from datetime import datetime import requests from ebr_connector.schema.build_results import BuildResults from ebr_connector.hooks.common.args import add_common_args, add_build_args, validate_args def parse_args(desc...
32.628571
124
0.714536
4a25e9c4e81b5c66c09d9163e415e5fdec971be6
2,447
py
Python
plugins/ipstack/unit_test/util.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ipstack/unit_test/util.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ipstack/unit_test/util.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
import logging import os import json from icon_ipstack.connection import Connection from icon_ipstack.connection.schema import Input from insightconnect_plugin_runtime.exceptions import PluginException class Util: @staticmethod def read_file_to_string(filename): with open(filename, "rt") as my_file: ...
37.075758
111
0.624847
4a25ea442560f864993bfc780a1bcdf7263cba2a
1,891
py
Python
Trie.py
HarshaChinni/Leetcode
9597cc0142da833e3d167e78de25c198b856a405
[ "MIT" ]
null
null
null
Trie.py
HarshaChinni/Leetcode
9597cc0142da833e3d167e78de25c198b856a405
[ "MIT" ]
null
null
null
Trie.py
HarshaChinni/Leetcode
9597cc0142da833e3d167e78de25c198b856a405
[ "MIT" ]
null
null
null
class TrieNode: def __init__(self): self.children = [None] * 26 self.isEndOfWord = False class Trie: def __init__(self): """ Initialize your data structure here. """ self.root = TrieNode() def getIndex(self, ch): return ord(ch) - ord('a') def ...
25.213333
134
0.566896
4a25eac6aace8026ee45c0574a206cfb05d1a24a
1,905
py
Python
javspider/javspider/middlewares.py
dannywxh/mypy
5036c32de8d6c9e77126ef4189976b6938ac9186
[ "Apache-2.0" ]
null
null
null
javspider/javspider/middlewares.py
dannywxh/mypy
5036c32de8d6c9e77126ef4189976b6938ac9186
[ "Apache-2.0" ]
null
null
null
javspider/javspider/middlewares.py
dannywxh/mypy
5036c32de8d6c9e77126ef4189976b6938ac9186
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class JavspiderSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy...
33.421053
78
0.673491
4a25ead5d35a25c05c2996cb3627aa4703c7108f
244
py
Python
mikan/__init__.py
dzzhvks94vd2/mikan
569b331cff02a089721fd6d0a430d5c2812b4934
[ "MIT" ]
1
2021-12-31T23:56:21.000Z
2021-12-31T23:56:21.000Z
mikan/__init__.py
dzzhvks94vd2/mikan
569b331cff02a089721fd6d0a430d5c2812b4934
[ "MIT" ]
null
null
null
mikan/__init__.py
dzzhvks94vd2/mikan
569b331cff02a089721fd6d0a430d5c2812b4934
[ "MIT" ]
null
null
null
from .adjective import * from .compound import * from .counter import * from .date import * from .number import * from .reading import * from .utils import * from .verb import * from .word import * from .writing import * __version__ = '0.2.0'
18.769231
24
0.717213
4a25eae73d4b4feddf46111e6b09a74efe188e51
160
py
Python
travis_test/__init__.py
raickhr/travis_test
7c12bc5613c25daff950a206fd9365059c3d7193
[ "MIT" ]
null
null
null
travis_test/__init__.py
raickhr/travis_test
7c12bc5613c25daff950a206fd9365059c3d7193
[ "MIT" ]
null
null
null
travis_test/__init__.py
raickhr/travis_test
7c12bc5613c25daff950a206fd9365059c3d7193
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for travis_test.""" __author__ = """Shikhar Rai""" __email__ = 'shikhar.rai@rochester.edu' __version__ = '0.1.0'
20
40
0.65
4a25eb273fe68d857e5932a4e0751f12a50e89c7
3,617
py
Python
lavapy/ext/spotify/client.py
rexwu1104/Lavapy
d6111a1fb408f799f5321bce07edf5885c7a45a2
[ "MIT" ]
null
null
null
lavapy/ext/spotify/client.py
rexwu1104/Lavapy
d6111a1fb408f799f5321bce07edf5885c7a45a2
[ "MIT" ]
null
null
null
lavapy/ext/spotify/client.py
rexwu1104/Lavapy
d6111a1fb408f799f5321bce07edf5885c7a45a2
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021-present Aspect1103 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
36.535354
144
0.698092
4a25eb3046fc8558b665eea7438c7153fe9b1dfc
16,832
py
Python
python/translate_source_bone.py
khanghugo/PMX-VMD-Scripting-Tools
bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b
[ "MIT" ]
null
null
null
python/translate_source_bone.py
khanghugo/PMX-VMD-Scripting-Tools
bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b
[ "MIT" ]
null
null
null
python/translate_source_bone.py
khanghugo/PMX-VMD-Scripting-Tools
bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b
[ "MIT" ]
null
null
null
import os try: from . import nuthouse01_core as core from . import nuthouse01_pmx_parser as pmxlib from . import nuthouse01_pmx_struct as pmxstruct from . import file_sort_textures from ._prune_unused_vertices import newval_from_range_map, delme_list_to_rangemap except ImportError as eee: try: ...
40.461538
119
0.595948
4a25ece4d917ff03f5be7200b1a31cfd52de46f1
1,786
py
Python
google-cloud-sdk/lib/surface/ml/vision/detect_web.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/ml/vision/detect_web.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/ml/vision/detect_web.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.271186
80
0.731803
4a25ee2327dc18abeb3f5ca4e71fdb815d722aaf
1,546
py
Python
setup.py
numan/django-tastypie
834f728b07ab1a008b281b12a2cab2987f26c99d
[ "BSD-3-Clause" ]
null
null
null
setup.py
numan/django-tastypie
834f728b07ab1a008b281b12a2cab2987f26c99d
[ "BSD-3-Clause" ]
null
null
null
setup.py
numan/django-tastypie
834f728b07ab1a008b281b12a2cab2987f26c99d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-tastypie', version='0.11.1-dev', description='A flexible & capable API layer for Django....
28.109091
61
0.584735
4a25efc3eed4aa592646de89dc630326691041eb
7,187
py
Python
research/object_detection/predictors/heads/keras_class_head_test.py
xingyu-long/models
eae0eaf4c6dbb02a61df27ac62dcdc645563277c
[ "Apache-2.0" ]
2
2021-03-04T22:58:29.000Z
2021-04-12T07:10:12.000Z
research/object_detection/predictors/heads/keras_class_head_test.py
xingyu-long/models
eae0eaf4c6dbb02a61df27ac62dcdc645563277c
[ "Apache-2.0" ]
13
2020-11-13T18:53:26.000Z
2022-03-12T00:32:31.000Z
research/object_detection/predictors/heads/keras_class_head_test.py
xingyu-long/models
eae0eaf4c6dbb02a61df27ac62dcdc645563277c
[ "Apache-2.0" ]
1
2019-10-04T21:46:56.000Z
2019-10-04T21:46:56.000Z
# Copyright 2018 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.432292
80
0.704884
4a25efc6a4c277e3123cdaf5614d94c51f61dfe3
4,280
py
Python
main.py
amira770/DCGAN-tensorflow
2c874f3302c3a1fad6b4bf213c964ecc5fa916a1
[ "MIT" ]
null
null
null
main.py
amira770/DCGAN-tensorflow
2c874f3302c3a1fad6b4bf213c964ecc5fa916a1
[ "MIT" ]
null
null
null
main.py
amira770/DCGAN-tensorflow
2c874f3302c3a1fad6b4bf213c964ecc5fa916a1
[ "MIT" ]
null
null
null
import os import scipy.misc import numpy as np from model import DCGAN from utils import pp, visualize, to_json, show_all_variables import tensorflow as tf flags = tf.app.flags flags.DEFINE_integer("epoch", 25, "Epoch to train [25]") flags.DEFINE_float("learning_rate", 0.0002, "Learning rate of for adam [0.0002]") f...
41.153846
138
0.691589
4a25eff8d472d73fdcef35866265226aad310ed4
7,941
py
Python
code/MLSampleBase.py
simontindemans/MLMC-PSCC2020
0c4021f207d17e250a935a87ed129520d4ab7ad6
[ "MIT" ]
null
null
null
code/MLSampleBase.py
simontindemans/MLMC-PSCC2020
0c4021f207d17e250a935a87ed129520d4ab7ad6
[ "MIT" ]
null
null
null
code/MLSampleBase.py
simontindemans/MLMC-PSCC2020
0c4021f207d17e250a935a87ed129520d4ab7ad6
[ "MIT" ]
1
2021-03-16T16:11:34.000Z
2021-03-16T16:11:34.000Z
# -*- coding: utf-8 -*- """ Provides base classes that are used as scaffolding for an MLMC simulation. Two classes are defined: MLSampleFactory : Base class for sample-generating objects. MLSample : Base class for generated samples. Together, the classes form an interface to the MCCoordinator class, which orch...
43.393443
129
0.703186
4a25effda7f364ed5c30aa76629291a2a14e838b
583
py
Python
bq_schema/migration/schema_diff.py
raphaelbrand-limehome/bq-schema
e1f2b01369f491b49247031787f4a0b492dadbdf
[ "MIT" ]
null
null
null
bq_schema/migration/schema_diff.py
raphaelbrand-limehome/bq-schema
e1f2b01369f491b49247031787f4a0b492dadbdf
[ "MIT" ]
null
null
null
bq_schema/migration/schema_diff.py
raphaelbrand-limehome/bq-schema
e1f2b01369f491b49247031787f4a0b492dadbdf
[ "MIT" ]
null
null
null
from typing import Iterator, List from google.cloud import bigquery def find_new_columns( local_schema: List[bigquery.SchemaField], remote_schema: List[bigquery.SchemaField], ) -> Iterator[bigquery.SchemaField]: remote_columns = {column.name: column for column in remote_schema} for column in local_s...
27.761905
70
0.672384
4a25f0c55c78df3be743a95260b71cfdc793e128
3,511
py
Python
yt_dlp/extractor/utreon.py
andykit/yt-dlp
bf5f605e7674c96d752aabb102cf627f5d7258ae
[ "Unlicense" ]
18
2020-12-21T22:33:46.000Z
2021-01-11T20:14:35.000Z
yt_dlp/extractor/utreon.py
mikebaz/yt-dlp
9dc69339076087fbe43174c291482208c7664e33
[ "Unlicense" ]
8
2021-01-06T21:01:20.000Z
2021-01-12T21:34:46.000Z
yt_dlp/extractor/utreon.py
mikebaz/yt-dlp
9dc69339076087fbe43174c291482208c7664e33
[ "Unlicense" ]
6
2021-12-20T05:04:50.000Z
2022-01-31T18:35:28.000Z
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( dict_get, int_or_none, str_or_none, try_get, unified_strdate, url_or_none, ) class UtreonIE(InfoExtractor): _VALID_URL = r'(?:https?://)(?:www\.)?utreon.com/v/(?P<id>[a-zA-Z0-9_...
40.825581
131
0.578468
4a25f1556a57e3dba76102d5ce5ae708f61afff5
9,110
py
Python
pcdsdevices/tests/test_state.py
pcdshub/pcds-devices
82de60f361814ede14e021d8ca03ce4e98f14b9d
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/tests/test_state.py
pcdshub/pcds-devices
82de60f361814ede14e021d8ca03ce4e98f14b9d
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/tests/test_state.py
pcdshub/pcds-devices
82de60f361814ede14e021d8ca03ce4e98f14b9d
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging from unittest.mock import Mock import pytest from ophyd.device import Component as Cpt from ophyd.device import Device from ophyd.signal import Signal from ophyd.sim import make_fake_device from ..device import UpdateComponent as UpCpt from ..state import (TWINCAT_MAX_STATES, PVStatePositioner, StatePo...
30.673401
79
0.672228
4a25f16755f114458c1a3e409fb40ac8c23ec9d4
5,377
py
Python
pymux/client.py
ABaldwinHunter/pymux-clone
c0630053d664c0770a69f1bd15fb4ca04f57da70
[ "BSD-3-Clause" ]
null
null
null
pymux/client.py
ABaldwinHunter/pymux-clone
c0630053d664c0770a69f1bd15fb4ca04f57da70
[ "BSD-3-Clause" ]
null
null
null
pymux/client.py
ABaldwinHunter/pymux-clone
c0630053d664c0770a69f1bd15fb4ca04f57da70
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from prompt_toolkit.terminal.vt100_input import raw_mode, cooked_mode from prompt_toolkit.eventloop.posix import _select, call_on_sigwinch from prompt_toolkit.eventloop.base import INPUT_TIMEOUT from prompt_toolkit.terminal.vt100_output import _get_size, Vt100_Output from pymux...
31.080925
87
0.522596
4a25f2272b5d961e36ac2b82c955df1919d6f4c0
30,542
py
Python
projects/finite_fractal/test_finite_farey_fractal_dyadic.py
ReaganLawrence/ChaoS
f4019ace0122c64fda4da6ac876a531101884dad
[ "Apache-2.0" ]
null
null
null
projects/finite_fractal/test_finite_farey_fractal_dyadic.py
ReaganLawrence/ChaoS
f4019ace0122c64fda4da6ac876a531101884dad
[ "Apache-2.0" ]
null
null
null
projects/finite_fractal/test_finite_farey_fractal_dyadic.py
ReaganLawrence/ChaoS
f4019ace0122c64fda4da6ac876a531101884dad
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Create the Farey FInite Fractal as a sampling pattern for MRI All figures and code pertaining to the display, saving and generation of fractals, are covered under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License: http://creativecommons.org/l...
33.018378
145
0.56843
4a25f2d03254b0f6ffcca4f5f384379be086eb88
839
py
Python
tests/datasets_test/test_mnist.py
tlatkowski/u-net-tpu
0496f408c5460bb1209224a0c6c0539221b8fc0d
[ "Apache-2.0" ]
2
2019-09-17T08:30:48.000Z
2020-07-20T16:22:06.000Z
tests/datasets_test/test_mnist.py
tlatkowski/u-net-tpu
0496f408c5460bb1209224a0c6c0539221b8fc0d
[ "Apache-2.0" ]
1
2019-07-16T12:56:53.000Z
2019-07-16T12:56:53.000Z
tests/datasets_test/test_mnist.py
tlatkowski/u-net-tpu
0496f408c5460bb1209224a0c6c0539221b8fc0d
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf from datasets import mnist class TestPlacesDataset(tf.test.TestCase): def testDataset(self): path = os.path.join(os.path.abspath('.'), "data_test") dataset = mnist.dataset(image_paths, image_files) dataset_iterator = dataset.make_initializable_iterator() instanc...
31.074074
72
0.743743
4a25f2ee07b3b8914880782b057083b8c870d32b
3,143
py
Python
dedoc/structure_parser/heirarchy_level.py
IlyaKozlov/dedoc
aa25a8868b5fd61314a32de2e22871a6d10fa3be
[ "Apache-2.0" ]
null
null
null
dedoc/structure_parser/heirarchy_level.py
IlyaKozlov/dedoc
aa25a8868b5fd61314a32de2e22871a6d10fa3be
[ "Apache-2.0" ]
null
null
null
dedoc/structure_parser/heirarchy_level.py
IlyaKozlov/dedoc
aa25a8868b5fd61314a32de2e22871a6d10fa3be
[ "Apache-2.0" ]
null
null
null
from functools import total_ordering from typing import Optional @total_ordering class HierarchyLevel: paragraph = "paragraph" raw_text = "raw_text" list_item = "list_item" root = "root" def __init__(self, level_1: Optional[int], level_2: Optional[int], ...
41.906667
110
0.651925
4a25f34e3de16a9d1c9686bd1517a600beb56992
2,443
py
Python
statsmodels/tools/testing.py
aliavni/statsmodels
ef5d57a8d45de76a895e9401705280d558d688ad
[ "BSD-3-Clause" ]
1
2022-01-24T15:17:37.000Z
2022-01-24T15:17:37.000Z
statsmodels/tools/testing.py
aliavni/statsmodels
ef5d57a8d45de76a895e9401705280d558d688ad
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tools/testing.py
aliavni/statsmodels
ef5d57a8d45de76a895e9401705280d558d688ad
[ "BSD-3-Clause" ]
null
null
null
"""assert functions from numpy and pandas testing """ from statsmodels.compat.pandas import testing as pdt import numpy.testing as npt import pandas from statsmodels.tools.tools import Bunch # Standard list for parsing tables PARAM_LIST = ['params', 'bse', 'tvalues', 'pvalues'] def bunch_factory(attribute, column...
30.5375
77
0.624642
4a25f38d63a5b750c0b191634cb0f9284c2cf460
1,969
py
Python
ooobuild/dyn/ucb/certificate_validation_request.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/ucb/certificate_validation_request.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/ucb/certificate_validation_request.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.8
117
0.689182
4a25f46ee32b8b79aa82e072bd3bd63dc2015076
647
py
Python
adcm/dev.py
amleshkov/adcm
5a6c82a34ef2591cb4952d17ee823c6230aa1d82
[ "Apache-2.0" ]
null
null
null
adcm/dev.py
amleshkov/adcm
5a6c82a34ef2591cb4952d17ee823c6230aa1d82
[ "Apache-2.0" ]
null
null
null
adcm/dev.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...
40.4375
86
0.763524
4a25f4b062582a268360b5d8762fbfb4558d7329
934
py
Python
setup.py
samv/normalize
fcb92074122cb89a434c3509f015c1978cbe4c9d
[ "MIT" ]
null
null
null
setup.py
samv/normalize
fcb92074122cb89a434c3509f015c1978cbe4c9d
[ "MIT" ]
null
null
null
setup.py
samv/normalize
fcb92074122cb89a434c3509f015c1978cbe4c9d
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup try: with open("README.rst", "ro") as readme: lines = [] for line in readme: lines.append(line) if "...and much more" in line: break long_description = "".join(lines) except: long_description = """ This...
28.30303
77
0.663812
4a25f4de7133f6a46d9d465c2cc8f4e73ba38807
44,405
py
Python
robolearn/torch/algorithms/rl_algos/gps/gps/mdgps.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
1
2020-01-13T09:44:22.000Z
2020-01-13T09:44:22.000Z
robolearn/torch/algorithms/rl_algos/gps/gps/mdgps.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
null
null
null
robolearn/torch/algorithms/rl_algos/gps/gps/mdgps.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
1
2021-12-22T00:41:20.000Z
2021-12-22T00:41:20.000Z
import gtimer as gt import numpy as np import scipy as sp import torch import math import copy import logging from robolearn.algorithms.rl_algos import RLAlgorithm from robolearn.utils.logging import logger import robolearn.torch.utils.pytorch_util as ptu # from robolearn.utils.plots.core import subplots from collec...
36.850622
95
0.526742
4a25f57e9f58676867e4aeeac6563e5b50b32bca
450
py
Python
jinja2_cli/tests/common.py
ssato/python-jinja2-cli
87a1f925bd181688483c63b3eaf347311d3e0027
[ "BSD-3-Clause" ]
null
null
null
jinja2_cli/tests/common.py
ssato/python-jinja2-cli
87a1f925bd181688483c63b3eaf347311d3e0027
[ "BSD-3-Clause" ]
null
null
null
jinja2_cli/tests/common.py
ssato/python-jinja2-cli
87a1f925bd181688483c63b3eaf347311d3e0027
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (C) 2011 - 2015 Satoru SATOH <ssato at redhat.com> # License: MIT # import os.path import subprocess import tempfile def selfdir(filename=__file__): return os.path.dirname(filename) def setup_workdir(): return tempfile.mkdtemp(dir="/tmp", prefix="python-jinja2-cli-tests-") def cleanup_workdi...
18
74
0.68