hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f734528846dbb613a1f70d11b9f44b205a45b9f1
4,976
py
Python
tests/ssg_test_suite/combined.py
rhmdnd/content
478c60314b7a1692920a4031b51f4b6b3a6f25a0
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/combined.py
rhmdnd/content
478c60314b7a1692920a4031b51f4b6b3a6f25a0
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/combined.py
rhmdnd/content
478c60314b7a1692920a4031b51f4b6b3a6f25a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 from __future__ import print_function import logging import re from ssg.constants import OSCAP_PROFILE from ssg_test_suite import common from ssg_test_suite import rule from ssg_test_suite import xml_operations from ssg_test_suite import test_env class CombinedChecker(rule.RuleChecker): """ ...
39.808
103
0.687902
from __future__ import print_function import logging import re from ssg.constants import OSCAP_PROFILE from ssg_test_suite import common from ssg_test_suite import rule from ssg_test_suite import xml_operations from ssg_test_suite import test_env class CombinedChecker(rule.RuleChecker): def __init__(self, test_...
true
true
f73454591c4d3431543089df0c42b9280414f4e9
2,991
py
Python
shopify_csv/tests/test_end_to_end_tests.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
1
2021-02-28T11:36:50.000Z
2021-02-28T11:36:50.000Z
shopify_csv/tests/test_end_to_end_tests.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
null
null
null
shopify_csv/tests/test_end_to_end_tests.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
null
null
null
import os import csv from shopify_csv import ShopifyRow def get_template_rows(): with open( os.path.join( os.getcwd(), "shopify_csv", "tests", "fixtures", "product_template.csv" ), "r", ) as file: reader = csv.reader(file, delimiter=";") return [row for row...
30.520408
83
0.698094
import os import csv from shopify_csv import ShopifyRow def get_template_rows(): with open( os.path.join( os.getcwd(), "shopify_csv", "tests", "fixtures", "product_template.csv" ), "r", ) as file: reader = csv.reader(file, delimiter=";") return [row for row...
true
true
f734548f2fc07d83f4ec18ec59e58bd11bd031aa
128
py
Python
pub_site/src/ops/config/deploy/__init__.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
1
2019-10-14T11:51:49.000Z
2019-10-14T11:51:49.000Z
pub_site/src/ops/config/deploy/__init__.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
pub_site/src/ops/config/deploy/__init__.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
# coding=utf-8 HOST_STRING = "lvye_pay@192.168.0.165" CODE_DIR = "/home/lvye_pay/projects/pay2/pub_site" VENV_NAME = "pub_venv"
25.6
50
0.75
HOST_STRING = "lvye_pay@192.168.0.165" CODE_DIR = "/home/lvye_pay/projects/pay2/pub_site" VENV_NAME = "pub_venv"
true
true
f73454af719705d177bc737cb4a5f6855b349fd9
6,608
py
Python
flask/testing.py
sabikm9876/Dockers9876
5909e26fba86351063bd622cedf6a4c25eba2e79
[ "BSD-3-Clause" ]
1
2018-04-07T12:15:45.000Z
2018-04-07T12:15:45.000Z
flask/testing.py
sabikm9876/Dockers9876
5909e26fba86351063bd622cedf6a4c25eba2e79
[ "BSD-3-Clause" ]
null
null
null
flask/testing.py
sabikm9876/Dockers9876
5909e26fba86351063bd622cedf6a4c25eba2e79
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flask.testing ~~~~~~~~~~~~~ Implements test support helpers. This module is lazily imported and usually not used in production environments. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import werkzeug from contextlib im...
37.545455
78
0.631205
import werkzeug from contextlib import contextmanager from werkzeug.test import Client, EnvironBuilder from flask import _request_ctx_stack from flask.json import dumps as json_dumps try: from werkzeug.urls import url_parse except ImportError: from urlparse import urlsplit as url_parse def make_test_environ...
true
true
f73456535b7365629f81b36cbac61da3a24af926
583
py
Python
var/spack/repos/builtin/packages/perl-module-runtime/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/perl-module-runtime/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/perl-module-runtime/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 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 PerlModuleRuntime(PerlPackage): """Runtime module handling""" homepage = "http://sear...
32.388889
95
0.730703
from spack import * class PerlModuleRuntime(PerlPackage): homepage = "http://search.cpan.org/~zefram/Module-Runtime/lib/Module/Runtime.pm" url = "http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Module-Runtime-0.016.tar.gz" version('0.016', 'd3d47222fa2e3dfcb4526f6cc8437b20') depends_on('pe...
true
true
f734576213f7b4d421a0c2f2003e333c8a2ea478
13,946
py
Python
integration/sawtooth_integration/tests/test_transactor_permissioning.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
1
2018-06-28T07:39:38.000Z
2018-06-28T07:39:38.000Z
integration/sawtooth_integration/tests/test_transactor_permissioning.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
5
2018-05-17T21:56:07.000Z
2018-06-11T19:52:08.000Z
integration/sawtooth_integration/tests/test_transactor_permissioning.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
4
2018-06-13T16:28:26.000Z
2018-06-13T16:47:22.000Z
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.952381
78
0.636455
import enum import subprocess import unittest from uuid import uuid4 import cbor from sawtooth_signing import create_context from sawtooth_signing import CryptoFactory from sawtooth_signing.secp256k1 import Secp256k1PrivateKey from sawtooth_processor_test.message_factory import MessageFactory from sawtooth_integrat...
true
true
f734590f7846f821cd91f1a763773a979f4c0a23
1,928
py
Python
LearnyMcLearnface/Layers/AffineLayer.py
alexweav/Deep-Learning
f245708e40f36c4734ea0d4a7e6587624e4b116f
[ "MIT" ]
null
null
null
LearnyMcLearnface/Layers/AffineLayer.py
alexweav/Deep-Learning
f245708e40f36c4734ea0d4a7e6587624e4b116f
[ "MIT" ]
null
null
null
LearnyMcLearnface/Layers/AffineLayer.py
alexweav/Deep-Learning
f245708e40f36c4734ea0d4a7e6587624e4b116f
[ "MIT" ]
1
2018-06-23T14:47:03.000Z
2018-06-23T14:47:03.000Z
# -*- coding: utf-8 -*- """ Created on Fri May 06 14:54:11 2016 @author: Alexander Weaver """ """ Performs an affine (fully connected) operation on its input An affine layer with out_dim neurons takes a data array of size Nx(in_dim), x and returns a linearly transformed Nx(out_dim) data array The transformation resul...
35.703704
102
0.650415
import numpy as np class AffineLayer(object): def __init__(self, in_dim, out_dim, weight_scale, data_type=np.float32): self.in_dim = in_dim self.out_dim = out_dim self.weight_scale = weight_scale self.data_type = data_type self.W = np.random.randn(in_dim, out_dim) * w...
true
true
f73459a7469cfb0da671d5fc04aa4938378e823f
883
py
Python
wakepy/_linux.py
Mohammad-Mohsen/wakepy
baa09412924fb296e7b4e4e82eb8e45f592c032c
[ "MIT" ]
null
null
null
wakepy/_linux.py
Mohammad-Mohsen/wakepy
baa09412924fb296e7b4e4e82eb8e45f592c032c
[ "MIT" ]
null
null
null
wakepy/_linux.py
Mohammad-Mohsen/wakepy
baa09412924fb296e7b4e4e82eb8e45f592c032c
[ "MIT" ]
null
null
null
import subprocess COMMAND = u'systemctl' ARGS = [u'sleep.target', u'suspend.target', u'hibernate.target', u'hybrid-sleep.target'] # https://www.man7.org/linux/man-pages/man1/systemctl.1.html if not subprocess.check_output('pidof systemd'): raise NotImplementedError( "wakepy has not yet support for init pr...
30.448276
129
0.705549
import subprocess COMMAND = u'systemctl' ARGS = [u'sleep.target', u'suspend.target', u'hibernate.target', u'hybrid-sleep.target'] if not subprocess.check_output('pidof systemd'): raise NotImplementedError( "wakepy has not yet support for init processes other than systemd. Pull requests welcome: https://gi...
true
true
f73459f80917cdc270cb33a60e836b82656751da
30
py
Python
pushbots/__init__.py
damoon-cmpt376w/pushbots
de7c50da2cffd8527c51a78ab71afd1110e4376d
[ "MIT" ]
11
2015-08-21T20:23:03.000Z
2017-07-02T18:26:15.000Z
pushbots/__init__.py
damoon-cmpt376w/pushbots
de7c50da2cffd8527c51a78ab71afd1110e4376d
[ "MIT" ]
3
2015-08-17T22:01:52.000Z
2019-11-15T04:26:27.000Z
pushbots/__init__.py
damoon-cmpt376w/pushbots
de7c50da2cffd8527c51a78ab71afd1110e4376d
[ "MIT" ]
6
2015-07-27T12:48:43.000Z
2019-11-12T02:06:06.000Z
from .pushbots import Pushbots
30
30
0.866667
from .pushbots import Pushbots
true
true
f7345c5c40688503298c593d4b121e16e47e7984
124,110
py
Python
tools/sourcecode/Python-3.10.0/Lib/test/test_asyncio/test_tasks.py
gagominecraft12/Blueity-Client-Retrace
d42a927a85226d73da66123922d9ea11cc20ac3d
[ "MIT" ]
32
2021-05-03T09:03:57.000Z
2022-03-17T09:18:59.000Z
tools/sourcecode/Python-3.10.0/Lib/test/test_asyncio/test_tasks.py
gagominecraft12/Blueity-Client-Retrace
d42a927a85226d73da66123922d9ea11cc20ac3d
[ "MIT" ]
4
2021-05-29T20:42:52.000Z
2022-03-16T03:01:12.000Z
tools/sourcecode/Python-3.10.0/Lib/test/test_asyncio/test_tasks.py
gagominecraft12/Blueity-Client-Retrace
d42a927a85226d73da66123922d9ea11cc20ac3d
[ "MIT" ]
3
2021-10-05T20:56:09.000Z
2022-02-23T13:00:54.000Z
"""Tests for tasks.py.""" import collections import contextlib import contextvars import functools import gc import io import random import re import sys import textwrap import traceback import types import unittest import weakref from unittest import mock import asyncio from asyncio import coroutines from asyncio im...
32.42163
105
0.586899
import collections import contextlib import contextvars import functools import gc import io import random import re import sys import textwrap import traceback import types import unittest import weakref from unittest import mock import asyncio from asyncio import coroutines from asyncio import futures from asyncio ...
true
true
f7345ed683d8e259c5cd6ab20ecb5ca4fbafbe94
6,149
py
Python
lantz/drivers/thorlabs/cld101xlp.py
0xInfty/lantz-drivers
8ea49bbe247547356533bbbdb4af09581f9b44b5
[ "BSD-3-Clause" ]
6
2016-04-13T12:59:18.000Z
2020-06-24T17:43:04.000Z
lantz/drivers/thorlabs/cld101xlp.py
0xInfty/lantz-drivers
8ea49bbe247547356533bbbdb4af09581f9b44b5
[ "BSD-3-Clause" ]
null
null
null
lantz/drivers/thorlabs/cld101xlp.py
0xInfty/lantz-drivers
8ea49bbe247547356533bbbdb4af09581f9b44b5
[ "BSD-3-Clause" ]
6
2015-12-14T19:30:36.000Z
2020-06-29T21:16:01.000Z
from lantz import Feat, DictFeat, Action from lantz.errors import InstrumentError from lantz.messagebased import MessageBasedDriver from pint import UnitRegistry from time import sleep class CLD101XLP(MessageBasedDriver): DEFAULTS = { 'COMMON': { 'write_termination': '\n', 'read...
30.59204
106
0.595381
from lantz import Feat, DictFeat, Action from lantz.errors import InstrumentError from lantz.messagebased import MessageBasedDriver from pint import UnitRegistry from time import sleep class CLD101XLP(MessageBasedDriver): DEFAULTS = { 'COMMON': { 'write_termination': '\n', 'read...
true
true
f7345ef0369ef2031d2687b9f2fb079fc03cd7e7
2,132
py
Python
vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/c644ec62c585_nsxv3_add_nsx_dhcp_service_tables.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/c644ec62c585_nsxv3_add_nsx_dhcp_service_tables.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/c644ec62c585_nsxv3_add_nsx_dhcp_service_tables.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2016 VMware, 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 agree...
36.758621
79
0.70075
revision = 'c644ec62c585' down_revision = 'c288bb6a7252' from alembic import op import sqlalchemy as sa from vmware_nsxlib.v3 import nsx_constants nsx_service_type_enum = sa.Enum( nsx_constants.SERVICE_DHCP, name='neutron_nsx_service_bindings_service_type') def upgrade(): op.create_table( 'n...
true
true
f7345f2923e39ea9f4a7d509e635b842f0a95693
314
py
Python
items.py
haowg/scrapy_api
06930e58a363de3007fb5550f8c1da7a8effd094
[ "Apache-2.0" ]
null
null
null
items.py
haowg/scrapy_api
06930e58a363de3007fb5550f8c1da7a8effd094
[ "Apache-2.0" ]
null
null
null
items.py
haowg/scrapy_api
06930e58a363de3007fb5550f8c1da7a8effd094
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class ResumeItem(scrapy.Item): time = scrapy.Field() org_name = scrapy.Field() job_title = scrapy.Field() location = scrapy.Field() product_name = scrapy.Field() company_name = scrapy.Field() person_name = scrapy.Field() id = scrapy.Field()
20.933333
33
0.640127
import scrapy class ResumeItem(scrapy.Item): time = scrapy.Field() org_name = scrapy.Field() job_title = scrapy.Field() location = scrapy.Field() product_name = scrapy.Field() company_name = scrapy.Field() person_name = scrapy.Field() id = scrapy.Field()
true
true
f73460d20d6a0dad6b30903362fd64dcff72ef26
1,177
py
Python
django_webapp/views.py
Alexmhack/bootstrap_django
8a07c980834f3cd5e63fde19b5a989f1f2baa48f
[ "Apache-2.0" ]
null
null
null
django_webapp/views.py
Alexmhack/bootstrap_django
8a07c980834f3cd5e63fde19b5a989f1f2baa48f
[ "Apache-2.0" ]
null
null
null
django_webapp/views.py
Alexmhack/bootstrap_django
8a07c980834f3cd5e63fde19b5a989f1f2baa48f
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.template.loader import get_template from django.core.mail import EmailMessage def home_page(request): return render(request, 'bootstrap/home_page.html') def features_page(request): return render(request, 'bootstrap/features_page.html') def pricing_page(r...
24.520833
55
0.742566
from django.shortcuts import render, redirect from django.template.loader import get_template from django.core.mail import EmailMessage def home_page(request): return render(request, 'bootstrap/home_page.html') def features_page(request): return render(request, 'bootstrap/features_page.html') def pricing_page(r...
true
true
f73460e62cafe319971f36bb5ab832036fec4708
4,158
py
Python
src/twisted/trial/_dist/test/test_workertrial.py
yan12125/twisted
97e9d612cff41b5a83a6a6ddd2c37f616428cfde
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/trial/_dist/test/test_workertrial.py
yan12125/twisted
97e9d612cff41b5a83a6a6ddd2c37f616428cfde
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/trial/_dist/test/test_workertrial.py
yan12125/twisted
97e9d612cff41b5a83a6a6ddd2c37f616428cfde
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.trial._dist.workertrial}. """ import errno import sys from io import BytesIO from twisted.protocols.amp import AMP from twisted.test.proto_helpers import StringTransport from twisted.trial._dist import ( _WORKER_AMP_S...
28.479452
84
0.595719
import errno import sys from io import BytesIO from twisted.protocols.amp import AMP from twisted.test.proto_helpers import StringTransport from twisted.trial._dist import ( _WORKER_AMP_STDIN, _WORKER_AMP_STDOUT, managercommands, workercommands, workertrial, ) from twisted.trial._dist.workertrial...
true
true
f734614dbacbcea2945b58a22500b3b5d0fe1098
3,239
py
Python
installers/wix/genfiles.py
d-salodki/BitCoenWallet
e5a68e3c95b17413242a2e39bbb60661794299db
[ "Apache-2.0" ]
7
2017-12-10T23:25:26.000Z
2020-02-18T11:05:17.000Z
installers/wix/genfiles.py
d-salodki/BitCoenWallet
e5a68e3c95b17413242a2e39bbb60661794299db
[ "Apache-2.0" ]
4
2021-01-28T19:31:45.000Z
2022-03-25T18:19:52.000Z
installers/wix/genfiles.py
d-salodki/BitCoenWallet
e5a68e3c95b17413242a2e39bbb60661794299db
[ "Apache-2.0" ]
4
2018-01-28T00:05:30.000Z
2021-03-06T18:08:48.000Z
#!/usr/bin/env python import os import uuid from xml.sax.saxutils import escape scriptDir = os.path.dirname(os.path.normpath(os.path.abspath(__file__))) buildDir = os.path.join(os.path.dirname(os.path.dirname(scriptDir)), 'build') dirs = { 'ELECTRONDIR': 'BitcoenWallet-win32-x64', 'COREDIR': 'core', ...
34.457447
133
0.511269
import os import uuid from xml.sax.saxutils import escape scriptDir = os.path.dirname(os.path.normpath(os.path.abspath(__file__))) buildDir = os.path.join(os.path.dirname(os.path.dirname(scriptDir)), 'build') dirs = { 'ELECTRONDIR': 'BitcoenWallet-win32-x64', 'COREDIR': 'core', } def print2(str)...
true
true
f7346162b45a7962aacf380692b2de379af58981
3,143
py
Python
copyexcel.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
copyexcel.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
copyexcel.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
''' This script is about reading and writing excel files through python. Refer to the guidelines in @33. This builds on assignment 1 (on using click). Here's the high level spec, you have to figure out all the details and get this done: Create a script called copyexcel.py which uses openpyxl and click. It copies all d...
45.550725
130
0.715558
import click from openpyxl import * from os.path import exists from copy import copy def copy_the_content(src_filepath,dest_filepath,capitalize,preservestyles): src_wb = load_workbook(src_filepath) dest_wb = Workbook() dest_wb.remove_sheet(dest_wb.active) for sheet in src_wb: dest_curr_ws = de...
true
true
f734620a92c87bf2d9b8868aa2af756591238d37
159
py
Python
models.py
mwang87/GNPS_Batch_Validator
97a8b0c1f2a0977eec8c7eaf842e15392d865676
[ "Apache-2.0" ]
null
null
null
models.py
mwang87/GNPS_Batch_Validator
97a8b0c1f2a0977eec8c7eaf842e15392d865676
[ "Apache-2.0" ]
null
null
null
models.py
mwang87/GNPS_Batch_Validator
97a8b0c1f2a0977eec8c7eaf842e15392d865676
[ "Apache-2.0" ]
null
null
null
# models.py from peewee import * from app import db class Filename(Model): filepath = TextField(primary_key=True) class Meta: database = db
14.454545
42
0.679245
from peewee import * from app import db class Filename(Model): filepath = TextField(primary_key=True) class Meta: database = db
true
true
f73462b423a2598169b46014fc637480ebb7aabe
19,095
py
Python
example/myshop/migrations/simple/0001_initial.py
Iv/django-shop
aa52dce6e9115d3b7a913ffa6027f978260b324c
[ "BSD-3-Clause" ]
null
null
null
example/myshop/migrations/simple/0001_initial.py
Iv/django-shop
aa52dce6e9115d3b7a913ffa6027f978260b324c
[ "BSD-3-Clause" ]
null
null
null
example/myshop/migrations/simple/0001_initial.py
Iv/django-shop
aa52dce6e9115d3b7a913ffa6027f978260b324c
[ "BSD-3-Clause" ]
1
2020-01-10T01:51:07.000Z
2020-01-10T01:51:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import shop.payment.defaults import filer.fields.image import django_fsm import django.db.models.deletion import jsonfield.fields import djangocms_text_ckeditor.fields import django.utils.timezone from django.conf ...
91.802885
5,814
0.595391
from __future__ import unicode_literals from django.db import migrations, models import shop.payment.defaults import filer.fields.image import django_fsm import django.db.models.deletion import jsonfield.fields import djangocms_text_ckeditor.fields import django.utils.timezone from django.conf import settings import d...
true
true
f73463d08d01639f183f1999e62472356c36cbde
1,551
py
Python
Element/FlutterElement.py
sunnyyukaige/Automation-core
96f22346069736a2ca7eab90083a64f226f43340
[ "MIT" ]
null
null
null
Element/FlutterElement.py
sunnyyukaige/Automation-core
96f22346069736a2ca7eab90083a64f226f43340
[ "MIT" ]
null
null
null
Element/FlutterElement.py
sunnyyukaige/Automation-core
96f22346069736a2ca7eab90083a64f226f43340
[ "MIT" ]
null
null
null
from Element.FlutterFind import FlutterFind from selenium.common.exceptions import WebDriverException, NoSuchElementException from Utilitys.WaitUtils import WaitUtils class FlutterElement(FlutterFind): def __init__(self, driver): FlutterFind.__init__(self) self.driver = driver self.interva...
36.928571
81
0.648614
from Element.FlutterFind import FlutterFind from selenium.common.exceptions import WebDriverException, NoSuchElementException from Utilitys.WaitUtils import WaitUtils class FlutterElement(FlutterFind): def __init__(self, driver): FlutterFind.__init__(self) self.driver = driver self.interva...
true
true
f73465b37d26d4f56850b11cee68f7c815e9a9f3
2,970
py
Python
hknweb/candidate/admin/requirements/requirements.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
null
null
null
hknweb/candidate/admin/requirements/requirements.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
null
null
null
hknweb/candidate/admin/requirements/requirements.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
null
null
null
from django.contrib import admin from hknweb.candidate.models import ( CandidateForm, CandidateFormDoneEntry, CommitteeProject, CommitteeProjectDoneEntry, DuePayment, DuePaymentPaidEntry, RequirementBitByteActivity, RequriementEvent, RequirementHangout, RequirementMandatory, ...
30.9375
99
0.718182
from django.contrib import admin from hknweb.candidate.models import ( CandidateForm, CandidateFormDoneEntry, CommitteeProject, CommitteeProjectDoneEntry, DuePayment, DuePaymentPaidEntry, RequirementBitByteActivity, RequriementEvent, RequirementHangout, RequirementMandatory, ...
true
true
f734679649791ee4b1095d9eedf1e71818a2b695
489
py
Python
lego/apps/followers/migrations/0002_auto_20170831_1103.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/followers/migrations/0002_auto_20170831_1103.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/followers/migrations/0002_auto_20170831_1103.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-31 11:03 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("followers", "0001_initial")] operations = [ migrations.RemoveField(model_name="followcompany", n...
28.764706
75
0.705521
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("followers", "0001_initial")] operations = [ migrations.RemoveField(model_name="followcompany", name="deleted"), migrations.RemoveField(model_name="followevent", ...
true
true
f7346818a39b5a17a62b2966aaea4541f1d02cd3
55,751
py
Python
operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ '...
57.832988
905
0.711413
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'EnterpriseSearchSpecArgs', 'EnterpriseSearchSpecConfigRefArgs', 'EnterpriseSearchSpecElasticsearchRefArgs', 'EnterpriseSearchSpecHttpArgs', ...
true
true
f7346a678b201b6551646b27b58b1a43bf3c84a7
2,627
py
Python
flask_security/__init__.py
Identeco/flask-security
0b2dc59767af72f435fceac69f72c04a7cd9cc13
[ "MIT" ]
317
2020-04-30T16:29:58.000Z
2022-03-31T07:19:09.000Z
flask_security/__init__.py
Identeco/flask-security
0b2dc59767af72f435fceac69f72c04a7cd9cc13
[ "MIT" ]
216
2020-04-30T16:49:01.000Z
2022-03-31T19:02:37.000Z
flask_security/__init__.py
Identeco/flask-security
0b2dc59767af72f435fceac69f72c04a7cd9cc13
[ "MIT" ]
82
2020-04-30T16:22:36.000Z
2022-03-27T16:52:40.000Z
""" flask_security ~~~~~~~~~~~~~~ Flask-Security is a Flask extension that aims to add quick and simple security via Flask-Login, Flask-Principal, Flask-WTF, and passlib. :copyright: (c) 2012-2019 by Matt Wright. :copyright: (c) 2019-2020 by J. Christopher Wagner. :license: MIT, see LICENS...
24.100917
77
0.745337
from .changeable import admin_change_password from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user from .datastore import ( UserDatastore, SQLAlchemyUserDatastore, MongoEngineUserDatastore, PeeweeUserDatastore, PonyUserDatastore, SQLAlchemySessionUserDatastore, ) from ....
true
true
f7346a70e18759da1614021a2b5e7ca0c222edb2
6,747
py
Python
torchbenchmark/models/BERT_pytorch/bert_pytorch/dataset/vocab.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
5,013
2018-10-16T06:02:03.000Z
2022-03-31T11:36:18.000Z
torchbenchmark/models/BERT_pytorch/bert_pytorch/dataset/vocab.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
81
2018-10-15T14:28:32.000Z
2022-02-07T14:21:53.000Z
torchbenchmark/models/BERT_pytorch/bert_pytorch/dataset/vocab.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
1,129
2018-10-17T04:01:40.000Z
2022-03-31T15:41:14.000Z
import pickle import tqdm from collections import Counter class TorchVocab(object): """Defines a vocabulary object that will be used to numericalize a field. Attributes: freqs: A collections.Counter object holding the frequencies of tokens in the data used to build the Vocab. stoi:...
36.274194
93
0.601304
import pickle import tqdm from collections import Counter class TorchVocab(object): def __init__(self, counter, max_size=None, min_freq=1, specials=['<pad>', '<oov>'], vectors=None, unk_init=None, vectors_cache=None): self.freqs = counter counter = counter.copy() min_freq...
true
true
f7346b6921603b2a7215f45fff0ce7b1c912e958
486
py
Python
14_Lesson14/test_marking/test_example1.py
turovod/Otus
57433c6944bca155177b07ff361139ff30f7f692
[ "MIT" ]
null
null
null
14_Lesson14/test_marking/test_example1.py
turovod/Otus
57433c6944bca155177b07ff361139ff30f7f692
[ "MIT" ]
null
null
null
14_Lesson14/test_marking/test_example1.py
turovod/Otus
57433c6944bca155177b07ff361139ff30f7f692
[ "MIT" ]
null
null
null
import pytest @pytest.mark.webtest def test_send_http(): print('========== Hello *********************************') assert True def test_something_quick(): pass def test_another(): pass class TestClass(object): def test_method(self): pass # Run marked tests # pytest -v -m webtest ...
15.677419
63
0.598765
import pytest @pytest.mark.webtest def test_send_http(): print('========== Hello *********************************') assert True def test_something_quick(): pass def test_another(): pass class TestClass(object): def test_method(self): pass
true
true
f7346b86ad9084de9d0cfc75d3a59e51f223fb80
1,905
py
Python
dashboard/documents/models.py
yakky/channeled-dashboard
b78df31e2c46e04e3cae002329bc0d82516e9dfc
[ "BSD-3-Clause" ]
19
2018-02-16T11:36:12.000Z
2020-04-08T21:04:43.000Z
dashboard/documents/models.py
yakky/channeled-dashboard
b78df31e2c46e04e3cae002329bc0d82516e9dfc
[ "BSD-3-Clause" ]
2
2018-02-25T07:04:49.000Z
2018-05-19T13:30:16.000Z
dashboard/documents/models.py
yakky/channeled-dashboard
b78df31e2c46e04e3cae002329bc0d82516e9dfc
[ "BSD-3-Clause" ]
4
2018-04-20T12:45:13.000Z
2018-12-29T00:30:49.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from ckeditor.fields import RichTextField from django.conf import settings from django.db import models from django.db.models import ImageField from django.urls import reverse from django.utils.encoding import python_2_uni...
31.229508
119
0.707612
from __future__ import absolute_import, print_function, unicode_literals from ckeditor.fields import RichTextField from django.conf import settings from django.db import models from django.db.models import ImageField from django.urls import reverse from django.utils.encoding import python_2_unicode_compatible from dja...
true
true
f7346c299948070a8b602bfe7035fed5598063f3
450
py
Python
django_file_form/migrations/0007_auto_20210119_0104.py
kosior/django-file-form
bc9ae606f55b297254e945c856d4878e45408af0
[ "Apache-2.0" ]
133
2015-01-22T09:01:58.000Z
2022-03-24T07:24:52.000Z
django_file_form/migrations/0007_auto_20210119_0104.py
kosior/django-file-form
bc9ae606f55b297254e945c856d4878e45408af0
[ "Apache-2.0" ]
371
2015-01-14T01:34:45.000Z
2022-03-23T12:16:01.000Z
django_file_form/migrations/0007_auto_20210119_0104.py
kosior/django-file-form
bc9ae606f55b297254e945c856d4878e45408af0
[ "Apache-2.0" ]
42
2015-01-21T11:24:42.000Z
2022-03-22T12:10:01.000Z
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("django_file_form", "0006_auto_20200501_0908"), ] operations = [ migrations.RenameModel( new_name="TemporaryUploadedFile", old_name="UploadedFile", ), migratio...
23.684211
56
0.613333
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("django_file_form", "0006_auto_20200501_0908"), ] operations = [ migrations.RenameModel( new_name="TemporaryUploadedFile", old_name="UploadedFile", ), migratio...
true
true
f7346c42994a39187ca1937fec6e475095c90ecc
3,029
py
Python
src/fewie/dataset_processors/roberta.py
DFKI-NLP/fewie
a47d2a02bc51cf951fc294de43bdb7557bc574b4
[ "MIT" ]
null
null
null
src/fewie/dataset_processors/roberta.py
DFKI-NLP/fewie
a47d2a02bc51cf951fc294de43bdb7557bc574b4
[ "MIT" ]
null
null
null
src/fewie/dataset_processors/roberta.py
DFKI-NLP/fewie
a47d2a02bc51cf951fc294de43bdb7557bc574b4
[ "MIT" ]
null
null
null
import random from typing import Dict, List, Union from transformers import AutoTokenizer import datasets from fewie.dataset_processors.processor import DatasetProcessor class RobertaProcessor(DatasetProcessor): def __init__( self, tokenizer_name_or_path: str, text_column_name: str, ...
37.8625
116
0.611753
import random from typing import Dict, List, Union from transformers import AutoTokenizer import datasets from fewie.dataset_processors.processor import DatasetProcessor class RobertaProcessor(DatasetProcessor): def __init__( self, tokenizer_name_or_path: str, text_column_name: str, ...
true
true
f7346cbff5dcac90a09a02cd98fb63b2ddd48424
1,459
py
Python
examples/src/python/bolt/half_ack_bolt.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
examples/src/python/bolt/half_ack_bolt.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
1
2019-05-08T22:30:16.000Z
2019-05-08T22:30:16.000Z
examples/src/python/bolt/half_ack_bolt.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache...
34.738095
75
0.701165
from heronpy.api.bolt.bolt import Bolt class HalfAckBolt(Bolt): def initialize(self, config, context): self.total = 0 def process(self, tup): self.total += 1 if self.total % 2 == 0: self.logger.debug("Failing a tuple: %s" % str(tup)) self.fail(tup) else: self.logger.debug("Ac...
true
true
f7346e64245ed66025ffb65bc7e60868f6ab8e23
5,018
py
Python
graphene_django/debug/sql/tracking.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
4,038
2016-09-18T01:45:22.000Z
2022-03-31T01:06:57.000Z
graphene_django/debug/sql/tracking.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
1,104
2016-09-19T20:10:22.000Z
2022-03-30T17:37:46.000Z
graphene_django/debug/sql/tracking.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
791
2016-09-18T13:48:11.000Z
2022-03-29T08:32:06.000Z
# Code obtained from django-debug-toolbar sql panel tracking from __future__ import absolute_import, unicode_literals import json from threading import local from time import time from django.utils.encoding import force_str from .types import DjangoDebugSQL class SQLQueryTriggered(Exception): """Thrown when te...
29.517647
88
0.585293
from __future__ import absolute_import, unicode_literals import json from threading import local from time import time from django.utils.encoding import force_str from .types import DjangoDebugSQL class SQLQueryTriggered(Exception): class ThreadLocalState(local): def __init__(self): self.enabled = Tr...
true
true
f7346ed754373bd37ef39e959ebaa2ff7c5c5a13
16,988
py
Python
spire/mesh/controllers.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
spire/mesh/controllers.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
1
2016-09-15T16:19:27.000Z
2016-09-15T16:20:06.000Z
spire/mesh/controllers.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
import re from mesh.constants import OK, RETURNING from mesh.exceptions import GoneError, NotFoundError from mesh.standard import Controller from sqlalchemy.sql import asc, column, desc, func, literal_column, not_, select from spire.core import Configurable, Unit from spire.schema import NoResultFound __all__ = ('M...
33.050584
87
0.597598
import re from mesh.constants import OK, RETURNING from mesh.exceptions import GoneError, NotFoundError from mesh.standard import Controller from sqlalchemy.sql import asc, column, desc, func, literal_column, not_, select from spire.core import Configurable, Unit from spire.schema import NoResultFound __all__ = ('M...
true
true
f7346f85460093720e9ba594db667860b2ae00a2
5,121
py
Python
databricks_cicd/conf/conf.py
man40/databricks-cicd
f2adade3a4b815cade74b961fa77bdfad42f3ec8
[ "Apache-2.0" ]
1
2021-12-11T17:11:34.000Z
2021-12-11T17:11:34.000Z
databricks_cicd/conf/conf.py
man40/databricks-cicd
f2adade3a4b815cade74b961fa77bdfad42f3ec8
[ "Apache-2.0" ]
null
null
null
databricks_cicd/conf/conf.py
man40/databricks-cicd
f2adade3a4b815cade74b961fa77bdfad42f3ec8
[ "Apache-2.0" ]
null
null
null
# Copyright (C) databricks-cicd 2021 man40 (man40dev@gmail.com) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
43.033613
110
0.702988
import logging from os import path as op from configparser import ConfigParser from textwrap import indent _log = logging.getLogger(__name__) class ConfBase: def __repr__(self): return '\n'.join(f'{k}: {self._indent(v)}' for k, v in self.__dict__.items() if not k.startswith('_')) @staticmethod ...
true
true
f7346ffb2493e91ef38c97544db2cda7417b56a5
538
py
Python
django_runner/management/commands/runner.py
eagletmt/sentry-runner
a764d439356e601bf224235d48d88316fd2bc8e4
[ "MIT" ]
null
null
null
django_runner/management/commands/runner.py
eagletmt/sentry-runner
a764d439356e601bf224235d48d88316fd2bc8e4
[ "MIT" ]
null
null
null
django_runner/management/commands/runner.py
eagletmt/sentry-runner
a764d439356e601bf224235d48d88316fd2bc8e4
[ "MIT" ]
null
null
null
from __future__ import print_function from optparse import make_option from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = 'Run arbitrary script within Django environment' option_list = BaseCommand.option_list + ( make_option('--file', dest='file', hel...
29.888889
73
0.685874
from __future__ import print_function from optparse import make_option from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = 'Run arbitrary script within Django environment' option_list = BaseCommand.option_list + ( make_option('--file', dest='file', hel...
true
true
f73470c7ecfe1e2c2e64e9938f9d472191f701fd
2,465
py
Python
modules/utils/constants.py
eugenet12/covidresearchviewer
1e86ba385efe35b1e4d406ef516158b34726bea5
[ "MIT" ]
null
null
null
modules/utils/constants.py
eugenet12/covidresearchviewer
1e86ba385efe35b1e4d406ef516158b34726bea5
[ "MIT" ]
1
2022-02-27T09:48:05.000Z
2022-02-27T09:48:05.000Z
modules/utils/constants.py
eugenet12/covidresearchviewer
1e86ba385efe35b1e4d406ef516158b34726bea5
[ "MIT" ]
null
null
null
import os DATA_DIR = os.environ.get( "COVID_WEBAPP_DATA_DIR", "/home/ubuntu/efs-mnt/latest_new/" ) # elasticsearch index ES_COL_TO_TYPE = { "cord_uid": { "type": "keyword" }, "title":{ "type": "text", }, "abstract": { "type": "text", }, "text": { "type...
18.674242
98
0.457606
import os DATA_DIR = os.environ.get( "COVID_WEBAPP_DATA_DIR", "/home/ubuntu/efs-mnt/latest_new/" ) ES_COL_TO_TYPE = { "cord_uid": { "type": "keyword" }, "title":{ "type": "text", }, "abstract": { "type": "text", }, "text": { "type": "text" }, "...
true
true
f73471baedfbfff986fac762f9e29473bd174fd7
1,381
py
Python
DeckOfCards.py
crippe-90/DeckOfCards
fb4ec62f6f49ce70fdfa9fda705b42c4884028d4
[ "MIT" ]
null
null
null
DeckOfCards.py
crippe-90/DeckOfCards
fb4ec62f6f49ce70fdfa9fda705b42c4884028d4
[ "MIT" ]
null
null
null
DeckOfCards.py
crippe-90/DeckOfCards
fb4ec62f6f49ce70fdfa9fda705b42c4884028d4
[ "MIT" ]
null
null
null
#author: Christoffer Norell #contact: christoffernorell@yahoo.se #This is a simple simulator of a deck of cards I made for fun. #The values in the dictionaries are there for better comparison during games. import random #Using dictionaries to represent values. #The color-values was taken from bridge-order: #http://p...
27.078431
160
0.572049
import random colors = [{'Hearts': 0 },{'Diamonds': 1},{'Clubs': 2},{'Spades':3}] values = [{'Two':2},{'Three': 3},{'Four':4},{'Five':5},{'Six': 6},{'Seven': 7}, {'Eight': 8}, {'Nine': 9} , {'Ten': 10},{'Jack': 11} , {'Queen':12}, {'King':13} , {'Ace':14}] class Card(): def __init__(self,value,color): ...
true
true
f73471efadcfb128c68e6e8891fc124ff271a658
41,230
py
Python
python/ccxt/idex.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
4
2021-01-10T09:14:17.000Z
2022-02-15T19:09:52.000Z
python/ccxt/idex.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
1
2020-05-08T09:19:46.000Z
2020-09-12T14:55:58.000Z
python/ccxt/idex.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
4
2021-06-02T16:40:35.000Z
2022-03-14T04:50:31.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
40.263672
202
0.512976
from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import InvalidOrder class idex(Exchange): def descr...
true
true
f734731852fc4bff361b7a445260efff13f13871
3,019
py
Python
MagTag_Project_Selector/code.py
dastels/Adafruit_Learning_System_Guides
9c59432a546c55ac9e40085c5f816cd09096fda2
[ "MIT" ]
1
2021-01-05T02:08:27.000Z
2021-01-05T02:08:27.000Z
MagTag_Project_Selector/code.py
dastels/Adafruit_Learning_System_Guides
9c59432a546c55ac9e40085c5f816cd09096fda2
[ "MIT" ]
1
2020-10-16T15:30:22.000Z
2020-10-16T15:30:22.000Z
MagTag_Project_Selector/code.py
dastels/Adafruit_Learning_System_Guides
9c59432a546c55ac9e40085c5f816cd09096fda2
[ "MIT" ]
1
2020-10-16T15:23:04.000Z
2020-10-16T15:23:04.000Z
# Based on code written by @DavidGlaude on Twitter # https://twitter.com/DavidGlaude/status/1340365817138044933 # https://gist.github.com/dglaude/4bf8d0a13c9c8ca8b05d6c0e9176bd20 import time import alarm import displayio import board import adafruit_imageload from adafruit_display_shapes.rect import Rect from adafruit...
24.745902
72
0.595561
import time import alarm import displayio import board import adafruit_imageload from adafruit_display_shapes.rect import Rect from adafruit_magtag.magtag import Graphics from digitalio import DigitalInOut, Direction, Pull projects = [ "weather", "spacex", "covid", "showerthoughts", "tides", "...
true
true
f734735280ad987f4230935eb5071713885ad7f4
207
py
Python
src/app/beer_garden/api/http/schemas/v1/role.py
scott-taubman/beer-garden
bac825849f7791e14064942566fbec63a83e6f87
[ "MIT" ]
null
null
null
src/app/beer_garden/api/http/schemas/v1/role.py
scott-taubman/beer-garden
bac825849f7791e14064942566fbec63a83e6f87
[ "MIT" ]
null
null
null
src/app/beer_garden/api/http/schemas/v1/role.py
scott-taubman/beer-garden
bac825849f7791e14064942566fbec63a83e6f87
[ "MIT" ]
null
null
null
from brewtils.schemas import RoleSchema from marshmallow import Schema, fields class RoleListSchema(Schema): """Schema for listing multiple roles""" roles = fields.List(fields.Nested(RoleSchema))
23
50
0.768116
from brewtils.schemas import RoleSchema from marshmallow import Schema, fields class RoleListSchema(Schema): roles = fields.List(fields.Nested(RoleSchema))
true
true
f734735728c02e2f8721f9bfa11ee29045230912
9,456
py
Python
accelbyte_py_sdk/api/platform/operations/item/update_app.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/operations/item/update_app.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/operations/item/update_app.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:29.359679+08:00 # from: Justice Platform Service (3.24.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # py...
31.415282
157
0.605436
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union from .....core import Operation from .....core import HttpResponse from ...models import AppUpdate from ...models import ErrorEntity from ...models import FullAppInfo from ...models import ValidationErrorEntity class Up...
true
true
f734740036bba3f47f055d090d680ae439c77013
5,376
py
Python
atores.py
rafarios20/pythonbirds
520642c6e9f50dfe94b95255fb6690c987c6397f
[ "MIT" ]
1
2022-03-22T14:39:23.000Z
2022-03-22T14:39:23.000Z
atores.py
rafarios20/pythonbirds
520642c6e9f50dfe94b95255fb6690c987c6397f
[ "MIT" ]
null
null
null
atores.py
rafarios20/pythonbirds
520642c6e9f50dfe94b95255fb6690c987c6397f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import math DESTRUIDO = 'Destruido' ATIVO = 'Ativo' GRAVIDADE = 10 # m/s^2 class Ator: """ Classe que representa um ator. Ele representa um ponto cartesiano na tela. """ _caracter_ativo = 'A' _caracter_destruido = ' ' def __i...
31.075145
118
0.652158
from __future__ import unicode_literals import math DESTRUIDO = 'Destruido' ATIVO = 'Ativo' GRAVIDADE = 10 class Ator: _caracter_ativo = 'A' _caracter_destruido = ' ' def __init__(self, x=0, y=0): self.y = y self.x = x self.status = ATIVO def caracter(self): retur...
true
true
f734740a655264107a15bef1d806f6c58a8663e9
8,313
py
Python
lib/assimp/test/regression/gen_db.py
Extrosoph/CITS3003-project
2f0470b64eafc98864bfc14f5e7a9ad7e6fa837b
[ "MIT" ]
null
null
null
lib/assimp/test/regression/gen_db.py
Extrosoph/CITS3003-project
2f0470b64eafc98864bfc14f5e7a9ad7e6fa837b
[ "MIT" ]
null
null
null
lib/assimp/test/regression/gen_db.py
Extrosoph/CITS3003-project
2f0470b64eafc98864bfc14f5e7a9ad7e6fa837b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- Coding: UTF-8 -*- # --------------------------------------------------------------------------- # Open Asset Import Library (ASSIMP) # --------------------------------------------------------------------------- # # Copyright (c) 2006-2020, ASSIMP Development Team # # All rights re...
36.783186
104
0.563094
import sys import os import subprocess import zipfile import settings import utils usage = """gen_db [assimp_binary] [-i=...] [-e=...] [-p] [-n] The assimp_cmd (or assimp) binary to use is specified by the first command line argument and defaults to ``assimp``. To build, set ``ASSIMP_BUILD_ASSIMP...
true
true
f734747084533080ace588764d0f46e026291f6a
5,346
py
Python
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/operations/endpoint_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/operations/endpoint_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/operations/endpoint_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.308824
114
0.671156
from msrest.pipeline import ClientRawResponse from .. import models class EndpointSettingsOperations(object): models = models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer ...
true
true
f734747f196e735eb6f0bbb5e4bff9965f84a668
11,715
py
Python
mars/services/task/api/web.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
1
2022-02-24T08:39:26.000Z
2022-02-24T08:39:26.000Z
mars/services/task/api/web.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
mars/services/task/api/web.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.105263
101
0.654545
import asyncio import base64 import json from typing import Callable, List, Optional, Union from ....core import TileableGraph, Tileable from ....utils import serialize_serializable, deserialize_serializable from ...web import web_api, MarsServiceWebAPIHandler, MarsWebAPIClientMixin from ..core import TaskResult, Tas...
true
true
f73474c4af496a73b74a83ea08cf1b082fce5527
25,920
py
Python
tensorflow/python/distribute/collective_all_reduce_strategy.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
1
2020-06-21T07:20:55.000Z
2020-06-21T07:20:55.000Z
tensorflow/python/distribute/collective_all_reduce_strategy.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
1
2022-02-10T02:22:42.000Z
2022-02-10T02:22:42.000Z
tensorflow/python/distribute/collective_all_reduce_strategy.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
null
null
null
# 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...
41.73913
114
0.7125
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import weakref from tensorflow.core.protobuf import config_pb2 from tensorflow.core.protobuf import rewriter_config_pb2 from tensorflow.core.protobuf import tensorflow_server_pb2 from tensorflow.p...
true
true
f7347571cc0f50b736185a28baf83d913aa696aa
4,065
py
Python
tests/unit/clients/python/test_on_err.py
hirakjyoti08/jina
437943dd2dab87e22b0662b2081f13250918ec01
[ "Apache-2.0" ]
1
2022-03-04T01:53:51.000Z
2022-03-04T01:53:51.000Z
tests/unit/clients/python/test_on_err.py
hirakjyoti08/jina
437943dd2dab87e22b0662b2081f13250918ec01
[ "Apache-2.0" ]
1
2022-03-08T18:46:28.000Z
2022-03-08T18:47:24.000Z
tests/unit/clients/python/test_on_err.py
hirakjyoti08/jina
437943dd2dab87e22b0662b2081f13250918ec01
[ "Apache-2.0" ]
1
2022-03-17T04:50:07.000Z
2022-03-17T04:50:07.000Z
from typing import Optional import aiohttp import grpc from jina.excepts import BadClientCallback from jina import Flow, Client import numpy as np import pytest from docarray import DocumentArray from docarray.document.generators import from_ndarray def validate(x): raise NotImplementedError @pytest.mark.ski...
29.671533
253
0.652399
from typing import Optional import aiohttp import grpc from jina.excepts import BadClientCallback from jina import Flow, Client import numpy as np import pytest from docarray import DocumentArray from docarray.document.generators import from_ndarray def validate(x): raise NotImplementedError @pytest.mark.ski...
true
true
f73475ffe265e1e6f8dd75b1a5da562fa80f07ef
42,589
py
Python
testing/python3/tests/test_dcgm_diag.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
85
2021-02-03T19:58:50.000Z
2022-03-21T08:00:11.000Z
testing/python3/tests/test_dcgm_diag.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
19
2021-03-19T08:13:58.000Z
2022-03-17T02:50:41.000Z
testing/python3/tests/test_dcgm_diag.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
17
2021-02-04T06:47:30.000Z
2022-03-21T22:14:03.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
49.811696
213
0.734838
import pydcgm import dcgm_structs import dcgm_agent_internal import dcgm_agent import logger import test_utils import dcgm_fields import dcgm_internal_helpers import option_parser import DcgmDiag import dcgm_errors import threading import time import sys import os import signal import utils import json from ctypes im...
true
true
f73477b87ab81023e673fecd85d93a87674baf40
4,145
py
Python
mux_python/models/update_asset_request.py
ryan-alley/mux-python
82003fa5eb9acfa712418de52a88716e917cf000
[ "MIT" ]
null
null
null
mux_python/models/update_asset_request.py
ryan-alley/mux-python
82003fa5eb9acfa712418de52a88716e917cf000
[ "MIT" ]
null
null
null
mux_python/models/update_asset_request.py
ryan-alley/mux-python
82003fa5eb9acfa712418de52a88716e917cf000
[ "MIT" ]
null
null
null
# coding: utf-8 """ Mux API Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501 The version of the OpenAPI document: v1 Contact: devex@mux.com Gener...
31.401515
204
0.602171
import inspect import pprint import re import six from mux_python.configuration import Configuration class UpdateAssetRequest(object): openapi_types = { 'passthrough': 'str' } attribute_map = { 'passthrough': 'passthrough' } def __init__(self, passthrough=None, local_vars_c...
true
true
f734786d0e336e6a2f1b675fb9f89c68a3e86aae
7,686
py
Python
tests/conftest.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
6
2019-01-21T03:02:55.000Z
2022-01-10T00:47:08.000Z
tests/conftest.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
23
2017-04-10T14:59:57.000Z
2021-09-24T21:08:36.000Z
tests/conftest.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
2
2017-07-01T07:02:03.000Z
2019-04-22T12:49:55.000Z
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-03-24 12:22:30 # @Last modified by: Michael Talbot # @Last Modified time: 2019-08-07 12:30:00 from __future__ import print_function, division, absolute_import import glob import gzip ...
28.572491
97
0.664065
from __future__ import print_function, division, absolute_import import glob import gzip import importlib import os import pytest import yaml import contextlib import shutil import tree.tree as treemod from sdss_access import RsyncAccess, HttpAccess, CurlAccess from sdss_access.path import Path def pytest_addoption...
true
true
f7347a7336023c2124958b5d353570dbcc2ccf8a
3,370
py
Python
lotlan_scheduler/demo.py
iml130/lotlan-scheduler
b576f853706d614a918dccd9572cc2c2b666bbe4
[ "Apache-2.0" ]
null
null
null
lotlan_scheduler/demo.py
iml130/lotlan-scheduler
b576f853706d614a918dccd9572cc2c2b666bbe4
[ "Apache-2.0" ]
null
null
null
lotlan_scheduler/demo.py
iml130/lotlan-scheduler
b576f853706d614a918dccd9572cc2c2b666bbe4
[ "Apache-2.0" ]
null
null
null
""" Contains main program example for scheduler """ # standard libraries import sys import os sys.path.append(os.path.abspath("../lotlan_scheduler")) # local sources from lotlan_scheduler.scheduler import LotlanScheduler from lotlan_scheduler.api.event import Event def cb_triggered_by(mf_uuid, uuid_, event_informa...
34.387755
90
0.601187
import sys import os sys.path.append(os.path.abspath("../lotlan_scheduler")) from lotlan_scheduler.scheduler import LotlanScheduler from lotlan_scheduler.api.event import Event def cb_triggered_by(mf_uuid, uuid_, event_information): print("cb_triggered_by from mf: " + str(mf_uuid)) print("UUID: " + str(uui...
true
true
f7347b6d8e309b0c78b0fcfb2a1f79f5c9335adf
3,189
py
Python
profiles_project/settings.py
voltagebots/Django
ed1764b74c5e0599613d2f5e544566f461d9e641
[ "MIT" ]
null
null
null
profiles_project/settings.py
voltagebots/Django
ed1764b74c5e0599613d2f5e544566f461d9e641
[ "MIT" ]
null
null
null
profiles_project/settings.py
voltagebots/Django
ed1764b74c5e0599613d2f5e544566f461d9e641
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.717742
91
0.70022
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'smztt3zom_kgvvw^68qyfvvvy7bupo09f8w2@j$zewn0j&02+w' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes...
true
true
f7347c2720fbf9bb96a4e4f3907a47f52167125a
5,616
py
Python
scripts/gen-shaping-tests.py
laurmaedje/rustybuzz
8a138b1843dcb967b785510e80dc38c4d6c319cf
[ "MIT" ]
255
2020-01-13T02:09:28.000Z
2022-03-21T11:33:00.000Z
scripts/gen-shaping-tests.py
laurmaedje/rustybuzz
8a138b1843dcb967b785510e80dc38c4d6c319cf
[ "MIT" ]
44
2020-01-13T09:54:23.000Z
2022-03-14T03:50:34.000Z
scripts/gen-shaping-tests.py
laurmaedje/rustybuzz
8a138b1843dcb967b785510e80dc38c4d6c319cf
[ "MIT" ]
18
2020-02-18T14:05:41.000Z
2022-03-14T03:34:38.000Z
#!/usr/bin/env python import os import sys import subprocess from pathlib import Path # There is no sane way to test them. IGNORE_TESTS = [ 'macos.tests', ] IGNORE_TEST_CASES = [ # aots tests # in-house tests # --shaper=fallback is not supported. 'simple_002', # Not possible to implement wi...
29.714286
91
0.605591
import os import sys import subprocess from pathlib import Path IGNORE_TESTS = [ 'macos.tests', ] IGNORE_TEST_CASES = [ 'simple_002', 'arabic_fallback_shaping_001', 'collections_001', 'collections_002', 'collections_003', 'collections_006', # no `hhea` table....
true
true
f7347d0417b9471093682564a5f485ea4fc07294
2,826
py
Python
ipywidgets/widgets/widget_layout.py
minrk/ipython_widgets
a80597fd4c81dd75a2f610e376fe21a64e0df8d1
[ "BSD-3-Clause" ]
2
2019-05-15T03:10:38.000Z
2020-10-08T08:08:24.000Z
ipywidgets/widgets/widget_layout.py
minrk/ipython_widgets
a80597fd4c81dd75a2f610e376fe21a64e0df8d1
[ "BSD-3-Clause" ]
2
2015-12-29T18:03:24.000Z
2016-05-19T06:26:50.000Z
ipywidgets/widgets/widget_layout.py
minrk/ipython_widgets
a80597fd4c81dd75a2f610e376fe21a64e0df8d1
[ "BSD-3-Clause" ]
1
2020-05-14T14:32:56.000Z
2020-05-14T14:32:56.000Z
"""Contains the Layout class""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from traitlets import Unicode, Instance from .widget_core import CoreWidget class Layout(CoreWidget): """Layout specification Defines a layout that can be expressed using CSS...
42.179104
78
0.703114
from traitlets import Unicode, Instance from .widget_core import CoreWidget class Layout(CoreWidget): _model_module = Unicode('jupyter-js-widgets').tag(sync=True) _view_module = Unicode('jupyter-js-widgets').tag(sync=True) _view_name = Unicode('LayoutView').tag(sync=True) _model_name = Unicode('Lay...
true
true
f7347d6f0909c926f14b411d4b55f806cc32f60a
2,421
py
Python
config.py
daph/Game2Text
19c1fa370c55564ba8dd489e46cd567a2d688ff0
[ "Apache-2.0" ]
1
2021-08-29T06:38:13.000Z
2021-08-29T06:38:13.000Z
config.py
agloo/Game2Text
90a5529d537695dd4eff03a0e20a23b5587bef92
[ "Apache-2.0" ]
null
null
null
config.py
agloo/Game2Text
90a5529d537695dd4eff03a0e20a23b5587bef92
[ "Apache-2.0" ]
null
null
null
from configparser import ConfigParser import os import platform OCR_CONFIG = 'OCRCONFIG' TRANSLATION_CONFIG = 'TRANSLATIONCONFIG' APPERANCE_CONFIG = 'APPEARANCE' APP_CONFIG = 'APPCONFIG' ANKI_CONFIG = 'ANKICONFIG' LOG_CONFIG = 'LOGCONFIG' SCRIPT_MATCH_CONFIG = 'SCRIPTMATCHCONFIG' TEXTHOOKER_CONFIG = 'TEXTHOOKERCONFIG'...
30.2625
96
0.71995
from configparser import ConfigParser import os import platform OCR_CONFIG = 'OCRCONFIG' TRANSLATION_CONFIG = 'TRANSLATIONCONFIG' APPERANCE_CONFIG = 'APPEARANCE' APP_CONFIG = 'APPCONFIG' ANKI_CONFIG = 'ANKICONFIG' LOG_CONFIG = 'LOGCONFIG' SCRIPT_MATCH_CONFIG = 'SCRIPTMATCHCONFIG' TEXTHOOKER_CONFIG = 'TEXTHOOKERCONFIG'...
true
true
f7347dbc6fec75d527f85033b83f2d3ecc839f3b
442
py
Python
proyecto/Modificaciones.py
RandyDpoe45/proyectoMultimedial
ca20911ec6ac8cd765bb03dc36b728e97808e3b0
[ "MIT" ]
null
null
null
proyecto/Modificaciones.py
RandyDpoe45/proyectoMultimedial
ca20911ec6ac8cd765bb03dc36b728e97808e3b0
[ "MIT" ]
null
null
null
proyecto/Modificaciones.py
RandyDpoe45/proyectoMultimedial
ca20911ec6ac8cd765bb03dc36b728e97808e3b0
[ "MIT" ]
null
null
null
from cv2 import * class Modificaciones (object): def __init__(self,img,segIni,segFin,posx,posy): self.im=img self.height, self.width, self.channels = self.im.shape self.segIni=segIni self.segFin=segFin self.posy=posy self.posx=posx d...
27.625
63
0.576923
from cv2 import * class Modificaciones (object): def __init__(self,img,segIni,segFin,posx,posy): self.im=img self.height, self.width, self.channels = self.im.shape self.segIni=segIni self.segFin=segFin self.posy=posy self.posx=posx d...
true
true
f73482af1cc0d86071662c8660889511c4534099
8,586
py
Python
tencentcloud/lp/v20200224/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/lp/v20200224/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/lp/v20200224/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
33.150579
130
0.643722
import warnings from tencentcloud.common.abstract_model import AbstractModel class QueryLoginProtectionRequest(AbstractModel): def __init__(self): self.LoginIp = None self.Uid = None self.LoginTime = None self.AccountType = None self.AppIdU = None self.AssociateA...
true
true
f734831f13dffdba489d2f15e75f93d43e6b312c
2,108
py
Python
path2insight/utils.py
armell/path2insight
63577bab69794f06f5c0fbaa8e7b1c0f67d7b7cf
[ "MIT" ]
2
2018-02-14T14:22:53.000Z
2018-02-14T14:53:41.000Z
path2insight/utils.py
armell/path2insight
63577bab69794f06f5c0fbaa8e7b1c0f67d7b7cf
[ "MIT" ]
null
null
null
path2insight/utils.py
armell/path2insight
63577bab69794f06f5c0fbaa8e7b1c0f67d7b7cf
[ "MIT" ]
1
2020-04-13T09:56:18.000Z
2020-04-13T09:56:18.000Z
import sys from collections import Iterable from path2insight import WindowsFilePath, PosixFilePath PATH_OBJECT_TYPES = (WindowsFilePath, PosixFilePath) # ---------------------------------------------------- class VisibleDeprecationWarning(UserWarning): """Visible deprecation warning. Based on numpy's Vis...
22.189474
76
0.621442
import sys from collections import Iterable from path2insight import WindowsFilePath, PosixFilePath PATH_OBJECT_TYPES = (WindowsFilePath, PosixFilePath) class VisibleDeprecationWarning(UserWarning): pass def MissingDependencyError(Exception): pass def _import_jellyfish(): try: from jelly...
true
true
f734838dd63e5c9ccb5e77e1cad16fd540101498
351,709
py
Python
catboost/pytest/test.py
thundergolfer/catboost
60942dee40f1407466d0b1e486f0a1d445e6aa91
[ "Apache-2.0" ]
null
null
null
catboost/pytest/test.py
thundergolfer/catboost
60942dee40f1407466d0b1e486f0a1d445e6aa91
[ "Apache-2.0" ]
null
null
null
catboost/pytest/test.py
thundergolfer/catboost
60942dee40f1407466d0b1e486f0a1d445e6aa91
[ "Apache-2.0" ]
null
null
null
from itertools import permutations import yatest.common from yatest.common import ExecutionTimeoutError, ExecutionError import pytest import os import filecmp import numpy as np import pandas as pd import timeit import json import catboost from catboost_pytest_lib import ( apply_catboost, compare_evals_with_p...
37.475653
189
0.63598
from itertools import permutations import yatest.common from yatest.common import ExecutionTimeoutError, ExecutionError import pytest import os import filecmp import numpy as np import pandas as pd import timeit import json import catboost from catboost_pytest_lib import ( apply_catboost, compare_evals_with_p...
true
true
f73484985ce0517435ef3853beb01472fde5ca7c
3,076
py
Python
syntropy_sdk/models/pointtotag_response.py
SyntropyNet/syntropy-python-sdk
27b7756b136f83886fd2a6e342fa4d4073779ff7
[ "MIT" ]
1
2020-12-17T17:30:12.000Z
2020-12-17T17:30:12.000Z
syntropy_sdk/models/pointtotag_response.py
SyntropyNet/syntropy-python-sdk
27b7756b136f83886fd2a6e342fa4d4073779ff7
[ "MIT" ]
null
null
null
syntropy_sdk/models/pointtotag_response.py
SyntropyNet/syntropy-python-sdk
27b7756b136f83886fd2a6e342fa4d4073779ff7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Syntropy Rule service Syntropy Rule service # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class PointtotagResponse(object): """NOTE: This class is auto gene...
27.711712
85
0.548765
import pprint import re import six class PointtotagResponse(object): swagger_types = {"data": "PointtotagPointToTag"} attribute_map = {"data": "data"} def __init__(self, data=None): self._data = None self.discriminator = None if data is not None: self.data = dat...
true
true
f734850affb2692f86a822ffb78159d7900c28c8
1,758
py
Python
utils/callbacks.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
utils/callbacks.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
utils/callbacks.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
import tensorflow.keras as tfk import tensorflow as tf import tensorflow.keras.layers as layers import json import collections from datetime import datetime import os class LrStepDecay(tfk.callbacks.Callback): def __init__(self, decay_rate, decay_at): super(L...
33.169811
104
0.59727
import tensorflow.keras as tfk import tensorflow as tf import tensorflow.keras.layers as layers import json import collections from datetime import datetime import os class LrStepDecay(tfk.callbacks.Callback): def __init__(self, decay_rate, decay_at): super(L...
true
true
f7348651855a7867e68bf36cfae9cc9c668012bc
708
py
Python
modules/post-exploitation/pykek.py
BustedSec/ptf
48ecc6f17befd7fda7159f38e44bb88a7b1b3a45
[ "FTL" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
modules/post-exploitation/pykek.py
yeyintminthuhtut/ptf
53d90661b9e1c372fb6965fb22c63033103d0c13
[ "FTL" ]
3
2017-12-06T00:45:04.000Z
2017-12-06T00:49:05.000Z
modules/post-exploitation/pykek.py
yeyintminthuhtut/ptf
53d90661b9e1c372fb6965fb22c63033103d0c13
[ "FTL" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
#!/usr/bin/env python ##################################### # Installation module for PyKek ##################################### # AUTHOR OF MODULE NAME AUTHOR="David Kennedy (ReL1K)" # DESCRIPTION OF THE MODULE DESCRIPTION="This module will install/update PyKEK - Kerberos exploitation kit" # INSTALL TYPE GIT, SVN,...
23.6
79
0.683616
AUTHOR="David Kennedy (ReL1K)" DESCRIPTION="This module will install/update PyKEK - Kerberos exploitation kit" INSTALL_TYPE="GIT" REPOSITORY_LOCATION="https://github.com/bidord/pykek" INSTALL_LOCATION="pykek" DEBIAN="git,rdate,krb5-user" FEDORA="git,openrdate,krb5-libs" AFTER_COMMANDS=""
true
true
f734874472ed3a67638edda330549a063d170d6f
9,101
py
Python
mynt/processors.py
Mindiell/mynt3
340b526f143b5506e3b8457113728ff15e48523a
[ "BSD-3-Clause" ]
null
null
null
mynt/processors.py
Mindiell/mynt3
340b526f143b5506e3b8457113728ff15e48523a
[ "BSD-3-Clause" ]
null
null
null
mynt/processors.py
Mindiell/mynt3
340b526f143b5506e3b8457113728ff15e48523a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from calendar import timegm from datetime import datetime from importlib import import_module from os import path as op import re from pkg_resources import DistributionNotFound, iter_entry_points, load_entry_point from pygments import highlight from pygments.formatters import HtmlFormatter fro...
33.707407
121
0.545325
from calendar import timegm from datetime import datetime from importlib import import_module from os import path as op import re from pkg_resources import DistributionNotFound, iter_entry_points, load_entry_point from pygments import highlight from pygments.formatters import HtmlFormatter from pygments.lexers import...
true
true
f73488401ecad308310e06fd79318c6a62a25cf2
2,967
py
Python
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/casts/tests/test_cast_get.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
null
null
null
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/casts/tests/test_cast_get.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
10
2020-06-05T19:42:26.000Z
2022-03-11T23:38:35.000Z
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/casts/tests/test_cast_get.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## from __future__ i...
43.632353
77
0.531513
from __future__ import print_function from pgadmin.browser.server_groups.servers.databases.tests import \ utils as database_utils from pgadmin.utils.route import BaseTestGenerator from regression import parent_node_dict from regression.python_test_utils import test_utils as utils from . import utils as cast_utils...
true
true
f73489645d5715e5a6b3c7e65b656254dbaa3841
614
py
Python
py/next-greater-element-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/next-greater-element-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/next-greater-element-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
class Solution(object): def nextGreaterElement(self, n): """ :type n: int :rtype: int """ s = str(n) for i, n in enumerate(reversed(s[:-1]), 1): if n < s[-i]: x, j = min((x, k) for k, x in enumerate(s[-i:]) if x > n) ans = s...
27.909091
73
0.333876
class Solution(object): def nextGreaterElement(self, n): s = str(n) for i, n in enumerate(reversed(s[:-1]), 1): if n < s[-i]: x, j = min((x, k) for k, x in enumerate(s[-i:]) if x > n) ans = s[:-i - 1] ans += x l = list(s[-i:...
true
true
f7348b51ae3998a5d2ba1a4df557df2269b43936
4,602
py
Python
tests/ImpactPacket/test_TCP.py
StanHardy/impacket
769c3196124af64d7bc08d51ae4b651e61a87037
[ "Apache-1.1" ]
8
2022-03-23T13:02:37.000Z
2022-03-27T04:30:16.000Z
tests/ImpactPacket/test_TCP.py
anno5750/impacket
ed7082cd0bc0d951f6eefb0a98c4c1360fe1a8a2
[ "Apache-1.1" ]
null
null
null
tests/ImpactPacket/test_TCP.py
anno5750/impacket
ed7082cd0bc0d951f6eefb0a98c4c1360fe1a8a2
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # f...
32.871429
90
0.617992
import unittest from impacket.ImpactPacket import TCP class TestTCP(unittest.TestCase): def setUp(self): self.frame = b'\xec\xef\x00\x50\xa8\xbd\xea\x4c\x00\x00\x00\x00\xa0\x02\x16\xd0' \ b'\x64\xcb\x00\x00\x02\x04\x05\xb4\x04\x02\x08\x0a\x00\xdc\xd6\x12' \ ...
true
true
f7348b73c872e7766dc0330b5f59a67197219de5
287
py
Python
runtool/tests/perform_doctest.py
arangatang/gluon-ts-tools
26509b853ddf1039993779f6049eafd4ec434ff7
[ "Apache-2.0" ]
null
null
null
runtool/tests/perform_doctest.py
arangatang/gluon-ts-tools
26509b853ddf1039993779f6049eafd4ec434ff7
[ "Apache-2.0" ]
null
null
null
runtool/tests/perform_doctest.py
arangatang/gluon-ts-tools
26509b853ddf1039993779f6049eafd4ec434ff7
[ "Apache-2.0" ]
null
null
null
from doctest import testmod from runtool import ( datatypes, recurse_config, runtool, transformations, transformer, utils, ) for module in ( datatypes, recurse_config, runtool, transformations, transformer, utils, ): testmod(module)
13.666667
27
0.651568
from doctest import testmod from runtool import ( datatypes, recurse_config, runtool, transformations, transformer, utils, ) for module in ( datatypes, recurse_config, runtool, transformations, transformer, utils, ): testmod(module)
true
true
f7348b7b44390ac77bda8f14895ef3bb4225a196
2,553
py
Python
monai/networks/nets/__init__.py
IntroAI-termproject/MONAI
b9e0cca17241318e570021b258b181a15d567603
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/__init__.py
IntroAI-termproject/MONAI
b9e0cca17241318e570021b258b181a15d567603
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/__init__.py
IntroAI-termproject/MONAI
b9e0cca17241318e570021b258b181a15d567603
[ "Apache-2.0" ]
1
2021-11-14T06:54:44.000Z
2021-11-14T06:54:44.000Z
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
28.685393
116
0.757148
from .ahnet import AHnet, Ahnet, AHNet from .autoencoder import AutoEncoder from .basic_unet import BasicUNet, BasicUnet, Basicunet, basicunet from .classifier import Classifier, Critic, Discriminator from .densenet import ( DenseNet, Densenet, DenseNet121, Densenet121, DenseNet169, Densenet169...
true
true
f7348be2dc59bceb8e5112a0f8fb8a4054ef9388
3,914
py
Python
tests/system/action/motion_submitter/test_create.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
tests/system/action/motion_submitter/test_create.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
tests/system/action/motion_submitter/test_create.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
from tests.system.action.base import BaseActionTestCase class MotionSubmitterCreateActionTest(BaseActionTestCase): def test_create(self) -> None: self.create_model("meeting/111", {"name": "name_m123etrd"}) self.create_model("motion/357", {"title": "title_YIDYXmKj", "meeting_id": 111}) self...
36.924528
103
0.505621
from tests.system.action.base import BaseActionTestCase class MotionSubmitterCreateActionTest(BaseActionTestCase): def test_create(self) -> None: self.create_model("meeting/111", {"name": "name_m123etrd"}) self.create_model("motion/357", {"title": "title_YIDYXmKj", "meeting_id": 111}) self...
true
true
f7348e3c875c7342813afe5b8cb4f7712c3f88d3
4,700
py
Python
ci-wrappers/pythonpreview/wrapper/swagger_server/controllers/device_controller.py
gregga/iot-sdks-e2e-fx
02d0ce0823f0190ef26ccfbf3fd3ba7ccde8d6cb
[ "MIT" ]
null
null
null
ci-wrappers/pythonpreview/wrapper/swagger_server/controllers/device_controller.py
gregga/iot-sdks-e2e-fx
02d0ce0823f0190ef26ccfbf3fd3ba7ccde8d6cb
[ "MIT" ]
null
null
null
ci-wrappers/pythonpreview/wrapper/swagger_server/controllers/device_controller.py
gregga/iot-sdks-e2e-fx
02d0ce0823f0190ef26ccfbf3fd3ba7ccde8d6cb
[ "MIT" ]
null
null
null
import connexion import six from swagger_server.models.certificate import Certificate # noqa: E501 from swagger_server.models.connect_response import ConnectResponse # noqa: E501 from swagger_server.models.roundtrip_method_call_body import RoundtripMethodCallBody # noqa: E501 from swagger_server import util from d...
27.325581
471
0.720213
import connexion import six from swagger_server.models.certificate import Certificate from swagger_server.models.connect_response import ConnectResponse from swagger_server.models.roundtrip_method_call_body import RoundtripMethodCallBody from swagger_server import util from device_glue import DeviceGlue device_gl...
true
true
f7348e64372058a41b16653a7078251c30d98d27
113
py
Python
mapapp/admin.py
jmartinm/nostro-web
22c8c613b7b5930e3a8e0e9f42d5a68917bc1c96
[ "Unlicense", "MIT" ]
null
null
null
mapapp/admin.py
jmartinm/nostro-web
22c8c613b7b5930e3a8e0e9f42d5a68917bc1c96
[ "Unlicense", "MIT" ]
null
null
null
mapapp/admin.py
jmartinm/nostro-web
22c8c613b7b5930e3a8e0e9f42d5a68917bc1c96
[ "Unlicense", "MIT" ]
null
null
null
from django.contrib import admin from mapapp.models import PointOfInterest admin.site.register(PointOfInterest)
22.6
41
0.858407
from django.contrib import admin from mapapp.models import PointOfInterest admin.site.register(PointOfInterest)
true
true
f7348e730198012787fccce820babc5dd0ebbb81
15,658
py
Python
novadocker/tests/virt/docker/test_docker_client.py
praveen1664/Nova-Docker-Integration
87e578102b0a8487571be1fc5c935b2648820651
[ "Apache-1.1" ]
4
2019-05-25T10:11:10.000Z
2019-08-30T17:32:26.000Z
novadocker/tests/virt/docker/test_docker_client.py
praveen1664/Nova-Docker-Integration
87e578102b0a8487571be1fc5c935b2648820651
[ "Apache-1.1" ]
null
null
null
novadocker/tests/virt/docker/test_docker_client.py
praveen1664/Nova-Docker-Integration
87e578102b0a8487571be1fc5c935b2648820651
[ "Apache-1.1" ]
null
null
null
# Copyright (c) 2013 dotCloud, 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 requir...
34.413187
78
0.568719
import collections import mox import urllib import uuid from nova.openstack.common import jsonutils from nova import test import novadocker.virt.docker.client as docker_client class FakeResponse(object): def __init__(self, status, data='', headers=None): self.status = status self._data = data ...
true
true
f7348eebd36027072943cbaa88c43983c1e90c2d
3,666
py
Python
data/coco_pose/ref.py
CenIII/pose-ae-train
8780ba9f3d80ca3a724bbee7b815073adc3d3e6e
[ "BSD-3-Clause" ]
null
null
null
data/coco_pose/ref.py
CenIII/pose-ae-train
8780ba9f3d80ca3a724bbee7b815073adc3d3e6e
[ "BSD-3-Clause" ]
null
null
null
data/coco_pose/ref.py
CenIII/pose-ae-train
8780ba9f3d80ca3a724bbee7b815073adc3d3e6e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pickle import h5py from scipy.misc import imread import os from pycocotools.coco import COCO from pycocotools import mask data_dir = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/images' ann_path = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/annotations/person_keypoi...
32.157895
112
0.61784
import numpy as np import pickle import h5py from scipy.misc import imread import os from pycocotools.coco import COCO from pycocotools import mask data_dir = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/images' ann_path = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/annotations/person_keypoi...
true
true
f7348f533855fcbaa041326c34a9d63cb3f767f6
1,296
py
Python
setup.py
leenr/gzip-stream
5161a19b67015d819109666f53fd2152f1e7029f
[ "CC0-1.0" ]
17
2020-04-06T18:27:06.000Z
2022-01-03T21:25:36.000Z
setup.py
leenr/gzip-stream
5161a19b67015d819109666f53fd2152f1e7029f
[ "CC0-1.0" ]
4
2021-02-24T12:56:41.000Z
2021-12-08T17:00:17.000Z
setup.py
leenr/gzip-stream
5161a19b67015d819109666f53fd2152f1e7029f
[ "CC0-1.0" ]
5
2019-08-07T12:57:30.000Z
2021-12-02T11:37:53.000Z
from setuptools import setup setup( name='gzip-stream', version='1.2.0', py_modules=['gzip_stream'], provides=['gzip_stream'], description='Compress stream by GZIP on the fly.', long_description=open('README.rst').read(), keywords=['gzip', 'compression'], url='https://github.com/lee...
27.574468
74
0.56713
from setuptools import setup setup( name='gzip-stream', version='1.2.0', py_modules=['gzip_stream'], provides=['gzip_stream'], description='Compress stream by GZIP on the fly.', long_description=open('README.rst').read(), keywords=['gzip', 'compression'], url='https://github.com/lee...
true
true
f7348f8931e9d950c2b7c97398de87e48d6618ce
14,169
py
Python
nova/tests/unit/api/openstack/compute/test_flavors_extra_specs.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/api/openstack/compute/test_flavors_extra_specs.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_flavors_extra_specs.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2011 University of Southern California # 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 # # ...
40.598854
79
0.638154
import mock import webob from nova.api.openstack.compute import flavors_extraspecs \ as flavorextraspecs_v21 from nova.api.openstack.compute.legacy_v2.contrib import flavorextraspecs \ as flavorextraspecs_v2 from nova import exception from nova import objects from nova import test from nova.tests.unit...
true
true
f7348fb9f03e1d0affa87e3c6d29a87b3da4654e
866
py
Python
packages/skills/__init__.py
mattmcd/aea-examples
1c72faadf8feb9f4b8dda9f17995010c2fb3510e
[ "Apache-2.0" ]
1
2021-07-25T18:50:18.000Z
2021-07-25T18:50:18.000Z
packages/skills/__init__.py
mattmcd/aea-examples
1c72faadf8feb9f4b8dda9f17995010c2fb3510e
[ "Apache-2.0" ]
1
2020-02-21T14:28:13.000Z
2020-03-05T14:53:53.000Z
packages/skills/__init__.py
mattmcd/aea-examples
1c72faadf8feb9f4b8dda9f17995010c2fb3510e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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...
39.363636
80
0.58776
true
true
f7349006ddb929b24d671bd4b9d7c2745ad72556
17,366
py
Python
python/ccxt/bit2c.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
3
2021-06-29T16:27:19.000Z
2021-07-18T08:36:07.000Z
python/ccxt/bit2c.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
null
null
null
python/ccxt/bit2c.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
1
2022-01-11T07:39:19.000Z
2022-01-11T07:39:19.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
40.292343
138
0.488483
from ccxt.base.exchange import Exchange try: basestring except NameError: basestring = str import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import ArgumentsRequired from ccxt.base....
true
true
f7349134fd6962aa9890bab9d791308f56e2fb36
1,135
py
Python
views/users.py
dimzignas/webapi
bec3dbdfd3a26c34a4b4ef01020079918b8d8bec
[ "Apache-2.0" ]
null
null
null
views/users.py
dimzignas/webapi
bec3dbdfd3a26c34a4b4ef01020079918b8d8bec
[ "Apache-2.0" ]
3
2021-03-31T19:29:45.000Z
2021-12-13T20:31:07.000Z
views/users.py
dimzignas/webapi
bec3dbdfd3a26c34a4b4ef01020079918b8d8bec
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, request, session, render_template from models.user import requires_login user_blueprint = Blueprint('users', __name__) @user_blueprint.route('/login') def login_user(): is_logged_in = False if not session.get('email') else True return render_template("users/login.html", is_logged...
31.527778
109
0.737445
from flask import Blueprint, request, session, render_template from models.user import requires_login user_blueprint = Blueprint('users', __name__) @user_blueprint.route('/login') def login_user(): is_logged_in = False if not session.get('email') else True return render_template("users/login.html", is_logged...
true
true
f734914502141e33079acd5522ab88b4195c6a4e
2,723
py
Python
dynamicgem/test/test_dynRNN.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
dynamicgem/test/test_dynRNN.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
dynamicgem/test/test_dynRNN.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module is for testing dynRNN """ import os import matplotlib.pyplot as plt from dynamicgem.embedding.dynRNN import DynRNN from dynamicgem.graph_generation import dynamic_SBM_graph as sbm from dynamicgem.visualization import plot_dynamic_sbm_embedding from time imp...
35.828947
98
0.539111
import os import matplotlib.pyplot as plt from dynamicgem.embedding.dynRNN import DynRNN from dynamicgem.graph_generation import dynamic_SBM_graph as sbm from dynamicgem.visualization import plot_dynamic_sbm_embedding from time import time def test_dynRNN(): node_num = 100 community_num = 2 ...
true
true
f734952d147b46ad927cefd4be1d128cdb2b51af
2,737
py
Python
addons/website_event_track_quiz/controllers/event_track_quiz.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_event_track_quiz/controllers/event_track_quiz.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_event_track_quiz/controllers/event_track_quiz.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import http from odoo.addons.website_event_track.controllers.event_track import EventTrackController from odoo.http import request class WebsiteEventTrackQuiz(EventTrackController): # QUIZZES IN PAGE ...
38.549296
125
0.624772
from odoo import http from odoo.addons.website_event_track.controllers.event_track import EventTrackController from odoo.http import request class WebsiteEventTrackQuiz(EventTrackController): @http.route('/event_track/quiz/submit', type="json", auth="public", website=True) def event_track_quiz_subm...
true
true
f73495a37d6406b3857940888f4e06efccc9a7ee
1,576
py
Python
pykbart/writer.py
pybrarian/pykbart
f63318d21171bd116bd2b65dd8b792721fca237f
[ "MIT" ]
4
2018-03-01T16:04:11.000Z
2020-12-18T15:02:27.000Z
pykbart/writer.py
pybrarian/pykbart
f63318d21171bd116bd2b65dd8b792721fca237f
[ "MIT" ]
null
null
null
pykbart/writer.py
pybrarian/pykbart
f63318d21171bd116bd2b65dd8b792721fca237f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Class and context manager for writing KbartRecord class to csv file.""" # coding: utf-8 from __future__ import (absolute_import, division, print_function, unicode_literals) import contextlib import six import unicodecsv as csv # TODO: make a better way to write the ...
29.735849
80
0.641497
from __future__ import (absolute_import, division, print_function, unicode_literals) import contextlib import six import unicodecsv as csv class Writer(object): def __init__(self, file_handle, delimiter='\t'): self.file_handle = file_handle self.delimiter = delimiter ...
true
true
f73495b9d6fabeed2313bbb04c6dae3670bd398d
2,169
py
Python
fft_prototype.py
kobeeraveendran/hackfsu5
5614d832423f56913bd35d96e2472068a106b376
[ "MIT" ]
null
null
null
fft_prototype.py
kobeeraveendran/hackfsu5
5614d832423f56913bd35d96e2472068a106b376
[ "MIT" ]
null
null
null
fft_prototype.py
kobeeraveendran/hackfsu5
5614d832423f56913bd35d96e2472068a106b376
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from scipy.io import wavfile # get the api from scipy.fftpack import fft from pylab import * def f(filename): # song files are in ogg... we need it to be in wav. fs, data = wavfile.read(filename) # songs have multiple channels, but we only need one channel ...
28.92
96
0.656985
import matplotlib.pyplot as plt from scipy.io import wavfile from scipy.fftpack import fft from pylab import * def f(filename): fs, data = wavfile.read(filename) a = data.T[0] c = fft(a) d = len(c)//2 return c guitar = f("auldla...
true
true
f734970f81bbc8b2ca03df98f26a41b1af58a139
1,311
py
Python
prompty.py
tnhung2011/WinPrompty
8894588a15c5381f18e35420d6030ea6758b2a83
[ "MIT" ]
null
null
null
prompty.py
tnhung2011/WinPrompty
8894588a15c5381f18e35420d6030ea6758b2a83
[ "MIT" ]
null
null
null
prompty.py
tnhung2011/WinPrompty
8894588a15c5381f18e35420d6030ea6758b2a83
[ "MIT" ]
null
null
null
import platform from sys import exit from os import system from sys.stdin import isatty from os.path import dirname, realpath from colorama import init, Fore, Back from tkinter.messagebox import showerror if platform.system() is 'Windows': __vista = platform.release == 'Vista' __supported = platform.release >...
57
695
0.704805
import platform from sys import exit from os import system from sys.stdin import isatty from os.path import dirname, realpath from colorama import init, Fore, Back from tkinter.messagebox import showerror if platform.system() is 'Windows': __vista = platform.release == 'Vista' __supported = platform.release >...
true
true
f734988757cfc1649b03e5c17fecc7fc4eb23ada
1,631
py
Python
setup.py
team-mayes/common-python
e9173514bc19d1759ea3d85c632e0b07c8b1fff4
[ "MIT" ]
null
null
null
setup.py
team-mayes/common-python
e9173514bc19d1759ea3d85c632e0b07c8b1fff4
[ "MIT" ]
null
null
null
setup.py
team-mayes/common-python
e9173514bc19d1759ea3d85c632e0b07c8b1fff4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'scipy', 'matplotlib', 'numpy', ...
28.614035
76
0.646842
from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'scipy', 'matplotlib', 'numpy', 'six', ] setup_requirements = [ ] test_requirements = [ ] s...
true
true
f73498f87da532f12917e9b45a0ec0d62a7c9eb8
2,822
py
Python
src/googlexfr.py
rathbird/Birds_of_Prey_CNN_Classifier
13ceb78db2408709804263395175482cff6c6973
[ "MIT" ]
null
null
null
src/googlexfr.py
rathbird/Birds_of_Prey_CNN_Classifier
13ceb78db2408709804263395175482cff6c6973
[ "MIT" ]
null
null
null
src/googlexfr.py
rathbird/Birds_of_Prey_CNN_Classifier
13ceb78db2408709804263395175482cff6c6973
[ "MIT" ]
null
null
null
# import the necessary packages import numpy as np import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.models import Sequential from tensorflow.keras.layers import BatchNormalization from tensorflow.keras.layers import AveragePooling2D from tensorflow.keras.layers import MaxPooling2D...
32.068182
161
0.791637
import numpy as np import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.models import Sequential from tensorflow.keras.layers import BatchNormalization from tensorflow.keras.layers import AveragePooling2D from tensorflow.keras.layers import MaxPooling2D from tensorflow.keras.layers im...
true
true
f734999283b7c5d515772f9dd319e7240cd387ae
22,417
py
Python
noisemaker/cli.py
BumpierZulu9930/py-noisemaker
d67f03c9f42642dd7eb5b9fc0f79572dc0d3b1a9
[ "Apache-2.0" ]
null
null
null
noisemaker/cli.py
BumpierZulu9930/py-noisemaker
d67f03c9f42642dd7eb5b9fc0f79572dc0d3b1a9
[ "Apache-2.0" ]
null
null
null
noisemaker/cli.py
BumpierZulu9930/py-noisemaker
d67f03c9f42642dd7eb5b9fc0f79572dc0d3b1a9
[ "Apache-2.0" ]
null
null
null
"""Common CLI boilerplate for Noisemaker""" import click from noisemaker.constants import DistanceFunction, InterpolationType, PointDistribution, ValueDistribution, ValueMask, VoronoiDiagramType, WormBehavior import noisemaker.masks as masks # os.environ["TF_CPP_MIN_LOG_LEVEL"] = "1" # os.environ["CUDA_VISIBLE_DEVI...
30.170929
155
0.698354
import click from noisemaker.constants import DistanceFunction, InterpolationType, PointDistribution, ValueDistribution, ValueMask, VoronoiDiagramType, WormBehavior import noisemaker.masks as masks CLICK_CONTEXT_SETTINGS = {"help_option_names": ["-h", "--help"], "max_content_width": 160} ALPHA_BLENDING_HINT = "...
true
true
f73499beff1247bfebd0abc2a4dc89bbe5f9fdb4
26,521
py
Python
chia/farmer/farmer_api.py
grayfallstown/chia-rosechain
fa09caba364aa1639b2a65020b4c312ff2d5b058
[ "Apache-2.0" ]
null
null
null
chia/farmer/farmer_api.py
grayfallstown/chia-rosechain
fa09caba364aa1639b2a65020b4c312ff2d5b058
[ "Apache-2.0" ]
null
null
null
chia/farmer/farmer_api.py
grayfallstown/chia-rosechain
fa09caba364aa1639b2a65020b4c312ff2d5b058
[ "Apache-2.0" ]
null
null
null
import json import time from typing import Callable, Optional, List, Any, Dict import aiohttp from blspy import AugSchemeMPL, G2Element, PrivateKey import chia.server.ws_connection as ws from chia.consensus.pot_iterations import calculate_iterations_quality, calculate_sp_interval_iters from chia.farmer.farmer import ...
47.785586
118
0.558199
import json import time from typing import Callable, Optional, List, Any, Dict import aiohttp from blspy import AugSchemeMPL, G2Element, PrivateKey import chia.server.ws_connection as ws from chia.consensus.pot_iterations import calculate_iterations_quality, calculate_sp_interval_iters from chia.farmer.farmer import ...
true
true
f73499e3d2fd9b89f3e965e012e39e09413e4f22
10,268
py
Python
objectModel/Python/tests/utilities/projection_test_utils.py
QPC-database/CDM
ef9ffb5fe4b692c76eb03f57b222bf21ee976692
[ "CC-BY-4.0", "MIT" ]
1
2021-07-06T17:08:15.000Z
2021-07-06T17:08:15.000Z
objectModel/Python/tests/utilities/projection_test_utils.py
QPC-database/CDM
ef9ffb5fe4b692c76eb03f57b222bf21ee976692
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/tests/utilities/projection_test_utils.py
QPC-database/CDM
ef9ffb5fe4b692c76eb03f57b222bf21ee976692
[ "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import os from typing import List, Optional from cdm.enums import CdmLogCode, CdmObjectType, CdmStatusLevel from cdm.utilities import AttributeResolutionDirectiveS...
48.895238
215
0.708609
import os from typing import List, Optional from cdm.enums import CdmLogCode, CdmObjectType, CdmStatusLevel from cdm.utilities import AttributeResolutionDirectiveSet, ResolveOptions from tests.cdm.projection.attribute_context_util import AttributeContextUtil from tests.common import TestHelper shortened_directives ...
true
true
f7349ac7860f0c32e54eef76280f6a9d94e1c7a2
181
py
Python
amocrm_api_client/token_provider/core/TokensBundle.py
iqtek/amocrm_api_client
910ea42482698f5eb47d6b6e12d52ec09af77a3e
[ "MIT" ]
null
null
null
amocrm_api_client/token_provider/core/TokensBundle.py
iqtek/amocrm_api_client
910ea42482698f5eb47d6b6e12d52ec09af77a3e
[ "MIT" ]
null
null
null
amocrm_api_client/token_provider/core/TokensBundle.py
iqtek/amocrm_api_client
910ea42482698f5eb47d6b6e12d52ec09af77a3e
[ "MIT" ]
null
null
null
from dataclasses import dataclass __all__ = [ "TokensBundle", ] @dataclass(frozen=True) class TokensBundle: access_token: str refresh_token: str expires_in: int
12.928571
33
0.712707
from dataclasses import dataclass __all__ = [ "TokensBundle", ] @dataclass(frozen=True) class TokensBundle: access_token: str refresh_token: str expires_in: int
true
true
f7349cbb230ae123ae90e4772c877e8f5dc3d700
6,878
py
Python
pytition/petition/helpers.py
bbmt-bbmt/Pytition
ccfa68d517a8a8b8adb9971e1948f2ab6ece2641
[ "BSD-3-Clause" ]
64
2019-03-07T15:32:37.000Z
2022-03-13T19:05:44.000Z
pytition/petition/helpers.py
bbmt-bbmt/Pytition
ccfa68d517a8a8b8adb9971e1948f2ab6ece2641
[ "BSD-3-Clause" ]
157
2019-02-28T07:32:03.000Z
2021-09-24T07:07:09.000Z
pytition/petition/helpers.py
bbmt-bbmt/Pytition
ccfa68d517a8a8b8adb9971e1948f2ab6ece2641
[ "BSD-3-Clause" ]
33
2019-04-14T23:40:33.000Z
2022-03-25T11:11:05.000Z
import requests import lxml from lxml.html.clean import Cleaner from django.http import Http404, HttpResponseForbidden from django.conf import settings from django.urls import reverse from django.template.loader import render_to_string from django.utils.html import strip_tags from django.core.mail import get_connection...
41.185629
128
0.692207
import requests import lxml from lxml.html.clean import Cleaner from django.http import Http404, HttpResponseForbidden from django.conf import settings from django.urls import reverse from django.template.loader import render_to_string from django.utils.html import strip_tags from django.core.mail import get_connection...
true
true
f7349dc08557faf1ca4d990092a7aaa988dd1752
3,342
py
Python
naslib/search_spaces/nasbench1shot1/search_spaces/search_space_1.py
az2104nas/sztnb302alsr2bs21on
6084c82c59a4a89498a191d96c231f47df10317d
[ "Apache-2.0" ]
null
null
null
naslib/search_spaces/nasbench1shot1/search_spaces/search_space_1.py
az2104nas/sztnb302alsr2bs21on
6084c82c59a4a89498a191d96c231f47df10317d
[ "Apache-2.0" ]
4
2021-06-08T21:32:32.000Z
2022-03-12T00:29:33.000Z
naslib/search_spaces/nasbench1shot1/search_spaces/search_space_1.py
az2104nas/sztnb302alsr2bs21on
6084c82c59a4a89498a191d96c231f47df10317d
[ "Apache-2.0" ]
null
null
null
import itertools import matplotlib.pyplot as plt import numpy as np from nasbench import api from naslib.search_spaces.nasbench1shot1.search_space import SearchSpace from naslib.search_spaces.nasbench1shot1.utils import upscale_to_nasbench_format, OUTPUT_NODE, INPUT, CONV1X1, OUTPUT from naslib.search_spaces.nasbench...
42.846154
117
0.652902
import itertools import matplotlib.pyplot as plt import numpy as np from nasbench import api from naslib.search_spaces.nasbench1shot1.search_space import SearchSpace from naslib.search_spaces.nasbench1shot1.utils import upscale_to_nasbench_format, OUTPUT_NODE, INPUT, CONV1X1, OUTPUT from naslib.search_spaces.nasbench...
true
true
f7349e0eff85b16a75f6ae2e63116d3777b41f8f
40,035
py
Python
intersight/api/ntp_api.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/api/ntp_api.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/api/ntp_api.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
45.494318
1,678
0.515524
import re import sys from intersight.api_client import ApiClient, Endpoint as _Endpoint from intersight.model_utils import ( check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from intersight.model.error import Error from intersi...
true
true
f7349e1f31924a93f2969323365e9e84bd75b01f
215
py
Python
serverquest/__main__.py
paulomaateus/quest-backend
96c5cdfd1e967e0c1702dcd0ec97a1dfbe8d7ba9
[ "MIT" ]
null
null
null
serverquest/__main__.py
paulomaateus/quest-backend
96c5cdfd1e967e0c1702dcd0ec97a1dfbe8d7ba9
[ "MIT" ]
null
null
null
serverquest/__main__.py
paulomaateus/quest-backend
96c5cdfd1e967e0c1702dcd0ec97a1dfbe8d7ba9
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from . app import app from . sqlite import setup_bd url = urlparse('http://0.0.0.0:8000') host, port = url.hostname, url.port setup_bd() app.run(host=host, port=port, debug=True)
21.5
41
0.730233
from urllib.parse import urlparse from . app import app from . sqlite import setup_bd url = urlparse('http://0.0.0.0:8000') host, port = url.hostname, url.port setup_bd() app.run(host=host, port=port, debug=True)
true
true
f7349ece7e2828de32c74fa1e7bd0cd3f51274ad
2,227
py
Python
apispec/compat.py
theirix/apispec-py35-compat
5aead501eb19997f8483192b0e4e4ac0f6ad9398
[ "MIT" ]
null
null
null
apispec/compat.py
theirix/apispec-py35-compat
5aead501eb19997f8483192b0e4e4ac0f6ad9398
[ "MIT" ]
null
null
null
apispec/compat.py
theirix/apispec-py35-compat
5aead501eb19997f8483192b0e4e4ac0f6ad9398
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import itertools import functools import inspect PY2 = int(sys.version_info[0]) == 2 PY26 = PY2 and int(sys.version_info[1]) < 7 if PY2: import urlparse urlparse = urlparse text_type = unicode binary_type = str string_types = (str, unicode) unicode = unicode ...
32.275362
79
0.667265
import sys import itertools import functools import inspect PY2 = int(sys.version_info[0]) == 2 PY26 = PY2 and int(sys.version_info[1]) < 7 if PY2: import urlparse urlparse = urlparse text_type = unicode binary_type = str string_types = (str, unicode) unicode = unicode basestring = basestr...
true
true
f734a025203a7f4ca05ab44024b66da56788db5b
1,357
py
Python
algorithms/leetcode/contest/83/829.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
algorithms/leetcode/contest/83/829.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
algorithms/leetcode/contest/83/829.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ 829. 连续整数求和 给定一个正整数 N,试求有多少组连续正整数满足所有数字之和为 N? 示例 1: 输入: 5 输出: 2 解释: 5 = 5 = 2 + 3,共有两组连续整数([5],[2,3])求和后为 5。 示例 2: 输入: 9 输出: 3 解释: 9 = 9 = 4 + 5 = 2 + 3 + 4 示例 3: 输入: 15 输出: 4 解释: 15 = 15 = 8 + 7 = 4 + 5 + 6 = 1 + 2 + 3 + 4 + 5 middle_ret肯定为有...
17.177215
76
0.553427
import unittest class Solution: def consecutiveNumbersSum(self, N): ret = 1 for i in range(0, ): pass return ret class TestDemo(unittest.TestCase): def setUp(self): self.solution = Solution().consecutiveNumbersSum def test1(self)...
true
true
f734a0f335eab1452a47e6cc480befd545d92da6
1,921
py
Python
doc/source/conf.py
Sushil-Thapa/rectif.ai
b308f613402097dca9734806a8c27ba3eef6a358
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
Sushil-Thapa/rectif.ai
b308f613402097dca9734806a8c27ba3eef6a358
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
Sushil-Thapa/rectif.ai
b308f613402097dca9734806a8c27ba3eef6a358
[ "Apache-2.0" ]
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: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.701754
79
0.664758
import os import sys sys.path.insert(0, os.path.abspath('../..')) sys.setrecursionlimit(1500) project = 'Rectif.ai' copyright = '2019, Sushil Thapa' author = 'Sushil Thapa' release = '0.1' extensions = [ ] templates_path = ['_templates'] exclude_patterns = [] html_theme = 'alabaster' html_static_pat...
true
true
f734a1ebae840c7bfd5231e3e270bc9608b6839a
3,454
py
Python
mvdcim/mvdcim.py
rstms/mvdcim
52b5a6849e393eeb749e82af2f7d42a08e8607f1
[ "MIT" ]
null
null
null
mvdcim/mvdcim.py
rstms/mvdcim
52b5a6849e393eeb749e82af2f7d42a08e8607f1
[ "MIT" ]
null
null
null
mvdcim/mvdcim.py
rstms/mvdcim
52b5a6849e393eeb749e82af2f7d42a08e8607f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from arrow import Arrow from pathlib import Path from os import environ from subprocess import run from tempfile import mkdtemp from shutil import rmtree from pprint import pprint class DCIM(): def __init__(self, device=None, source=None, target=None, confirm=False, date_path=True): ...
31.981481
116
0.601332
from arrow import Arrow from pathlib import Path from os import environ from subprocess import run from tempfile import mkdtemp from shutil import rmtree from pprint import pprint class DCIM(): def __init__(self, device=None, source=None, target=None, confirm=False, date_path=True): self.device=device or...
true
true
f734a2b46083402b4cce7977cf19d6a06b6757d4
431
py
Python
src/helpers/diagnostic_helpers.py
Freudenberger/NeuralNetworks
5390cdb7b0fe99487b12a95e32f0aa5954239b99
[ "MIT" ]
null
null
null
src/helpers/diagnostic_helpers.py
Freudenberger/NeuralNetworks
5390cdb7b0fe99487b12a95e32f0aa5954239b99
[ "MIT" ]
null
null
null
src/helpers/diagnostic_helpers.py
Freudenberger/NeuralNetworks
5390cdb7b0fe99487b12a95e32f0aa5954239b99
[ "MIT" ]
null
null
null
import time import helper def time_measure(func): """ Decorator function to measure time """ def inner(*args_, **kwargs_): """ args_ contains: [team_id, ...] """ t0_ = time.time() output = func(*args_, **kwargs_) print("[{0}] Execution time of '{1}': {2}...
23.944444
120
0.554524
import time import helper def time_measure(func): def inner(*args_, **kwargs_): t0_ = time.time() output = func(*args_, **kwargs_) print("[{0}] Execution time of '{1}': {2} [s]".format(helper.get_date_time(), func.__name__, time.time() - t0_)) return output return inner
true
true
f734a3c3651d6e1ef3e606899db9702c59c70e07
13,974
py
Python
google/cloud/vision_v1p2beta1/services/image_annotator/transports/grpc.py
danielcressman/python-vision
ca56a71bda813ae6cfa386322e80a3e36852c3ef
[ "Apache-2.0" ]
null
null
null
google/cloud/vision_v1p2beta1/services/image_annotator/transports/grpc.py
danielcressman/python-vision
ca56a71bda813ae6cfa386322e80a3e36852c3ef
[ "Apache-2.0" ]
null
null
null
google/cloud/vision_v1p2beta1/services/image_annotator/transports/grpc.py
danielcressman/python-vision
ca56a71bda813ae6cfa386322e80a3e36852c3ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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...
44.503185
94
0.64527
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import grpc_helpers from google.api_core import operations_v1 from google.api_core import gapic_v1 import google.auth from google.auth import credentials as ga_credentials from google.auth.transport.grpc impor...
true
true
f734a3c8c618e126ea427c6d178a8945d777e923
2,707
py
Python
.test-infra/metrics/sync/github/queries.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
5,279
2016-12-29T04:00:44.000Z
2022-03-31T22:56:45.000Z
.test-infra/metrics/sync/github/queries.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
14,149
2016-12-28T00:43:50.000Z
2022-03-31T23:50:22.000Z
.test-infra/metrics/sync/github/queries.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
3,763
2016-12-29T04:06:10.000Z
2022-03-31T22:25:49.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
23.136752
124
0.437754
MAIN_PR_QUERY = ''' query { search(query: "type:pr repo:apache/beam updated:><TemstampSubstitueLocation> sort:updated-asc", type: ISSUE, first: 100) { issueCount pageInfo { endCursor startCursor hasNextPage hasPreviousPage } edges { cursor node { ... on Pu...
true
true
f734a6e1fdf6fe69c8627fb3e248786bf735f7b7
4,892
py
Python
tests/handlers/influxdb_test.py
slaclab/gafaelfawr
7a64b0f159003d4745531c89d5b0f7d9777f7bce
[ "MIT" ]
null
null
null
tests/handlers/influxdb_test.py
slaclab/gafaelfawr
7a64b0f159003d4745531c89d5b0f7d9777f7bce
[ "MIT" ]
null
null
null
tests/handlers/influxdb_test.py
slaclab/gafaelfawr
7a64b0f159003d4745531c89d5b0f7d9777f7bce
[ "MIT" ]
null
null
null
"""Tests for the ``/auth/tokens/influxdb`` route.""" from __future__ import annotations from pathlib import Path from unittest.mock import ANY import jwt import pytest from _pytest.logging import LogCaptureFixture from httpx import AsyncClient from gafaelfawr.config import Config from gafaelfawr.factory import Comp...
29.119048
78
0.600164
from __future__ import annotations from pathlib import Path from unittest.mock import ANY import jwt import pytest from _pytest.logging import LogCaptureFixture from httpx import AsyncClient from gafaelfawr.config import Config from gafaelfawr.factory import ComponentFactory from ..support.constants import TEST_HO...
true
true