hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2ef099b7d6e831b385c2845cd2cb38e3c7621ba8
416
py
Python
piece.py
antoniobarba/victor
517a2032a129630156ba6d896e38e876559c1de1
[ "MIT" ]
null
null
null
piece.py
antoniobarba/victor
517a2032a129630156ba6d896e38e876559c1de1
[ "MIT" ]
null
null
null
piece.py
antoniobarba/victor
517a2032a129630156ba6d896e38e876559c1de1
[ "MIT" ]
null
null
null
class Piece: def __init__(self, x=0, y=0, is_white=True, is_king=False): self.x = x self.y = y self.is_white = is_white self.is_king = is_king def base_value(self): raise Exception("Not Implemented Here") def moves(self, node): raise Exception("Not Implement...
26
63
0.600962
0432331cc2762d70e2a455ad1826afdbd000627b
27,085
py
Python
fsspec/asyn.py
e-roux/filesystem_spec
b68be6c57f54a71c6ffc89e669c410da353ebc1f
[ "BSD-3-Clause" ]
null
null
null
fsspec/asyn.py
e-roux/filesystem_spec
b68be6c57f54a71c6ffc89e669c410da353ebc1f
[ "BSD-3-Clause" ]
null
null
null
fsspec/asyn.py
e-roux/filesystem_spec
b68be6c57f54a71c6ffc89e669c410da353ebc1f
[ "BSD-3-Clause" ]
null
null
null
import asyncio import asyncio.events import functools import inspect import os import re import sys import threading from contextlib import contextmanager from glob import has_magic from .callbacks import _DEFAULT_CALLBACK from .exceptions import FSTimeoutError from .spec import AbstractFileSystem from .utils import P...
33.314883
88
0.582426
57a0d2cc7713d53298175f4cb74642f6f15ce57c
3,540
gyp
Python
ui/surface/surface.gyp
SlimKatLegacy/android_external_chromium_org
ee480ef5039d7c561fc66ccf52169ead186f1bea
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:51:34.000Z
2018-02-15T03:11:54.000Z
ui/surface/surface.gyp
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-12-13T19:44:12.000Z
2021-12-13T19:44:12.000Z
ui/surface/surface.gyp
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:52:03.000Z
2022-02-13T17:58:45.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'target_defaults': { 'conditions': [ ['use_x11 == 1', { 'include_dirs': [ ...
30
100
0.5
bcda012cab8e678a13169f43d4ea7d44b36a7f91
8,361
py
Python
xpulumi/s3_object_waiter.py
sammck/xpulumi
1e25229cc5de113c6d4655ba81e391c29014aa5f
[ "MIT" ]
null
null
null
xpulumi/s3_object_waiter.py
sammck/xpulumi
1e25229cc5de113c6d4655ba81e391c29014aa5f
[ "MIT" ]
null
null
null
xpulumi/s3_object_waiter.py
sammck/xpulumi
1e25229cc5de113c6d4655ba81e391c29014aa5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2022 Samuel J. McKelvie # # MIT License - See LICENSE file accompanying this package. # """Functions to wait for S3 objects""" from typing import Optional, Tuple import boto3.session import botocore.client import botocore.errorfactory import time import asyncio import concurr...
39.253521
116
0.688554
51aa592420590a9ce5b0fbef7ab0b7af9eb1d3eb
971
py
Python
src/SQLConn.py
dsh011/Pathfinder
45262ba425e8c1021e5325dd09298c6defaa2f5a
[ "MIT" ]
1
2019-12-28T20:55:56.000Z
2019-12-28T20:55:56.000Z
src/SQLConn.py
dsh011/Pathfinder
45262ba425e8c1021e5325dd09298c6defaa2f5a
[ "MIT" ]
null
null
null
src/SQLConn.py
dsh011/Pathfinder
45262ba425e8c1021e5325dd09298c6defaa2f5a
[ "MIT" ]
null
null
null
import sqlite3 import wx def createDefTable(c): sql_create_default_table = """CREATE TABLE IF NOT EXISTS exifdata ( id integer PRIMARY KEY, name text NOT NULL,date_time text, Address text, zip_id integer, date_unixtimestamp REAL, Latitude REAL,Longitude REAL, SHA1 varchar(255) UNIQUE, FOREIGN KEY(zip_id) REFERENCES...
46.238095
225
0.749743
4dcc85724d72567a7abf957fbf11251e6b0c0683
6,557
py
Python
PresRankings.py
lkpetrich/VotingAlgorithms
09a3171b083151e68ec68e1baa85cfc181f26ee0
[ "MIT" ]
2
2019-10-07T15:18:24.000Z
2020-08-27T02:46:35.000Z
PresRankings.py
lkpetrich/VotingAlgorithms
09a3171b083151e68ec68e1baa85cfc181f26ee0
[ "MIT" ]
null
null
null
PresRankings.py
lkpetrich/VotingAlgorithms
09a3171b083151e68ec68e1baa85cfc181f26ee0
[ "MIT" ]
1
2020-10-14T12:10:14.000Z
2020-10-14T12:10:14.000Z
#!python3 # # From # http://en.wikipedia.org/wiki/Historical_rankings_of_Presidents_of_the_United_States # Historical rankings of Presidents of the United States - Wikipedia, the free encyclopedia # # PrefVote.py would have to be modified to make unchosen candidates neutral # instead of lower in preference than the res...
38.122093
118
0.650602
4a217a2821f0feb41f37c2c7394c91ae3496d8b6
8,583
py
Python
cogs/server-management2/role.py
yaakiyu/rt-bot
f68bca95c516e08c31ecc846524dcea4c8ba1503
[ "BSD-4-Clause" ]
null
null
null
cogs/server-management2/role.py
yaakiyu/rt-bot
f68bca95c516e08c31ecc846524dcea4c8ba1503
[ "BSD-4-Clause" ]
null
null
null
cogs/server-management2/role.py
yaakiyu/rt-bot
f68bca95c516e08c31ecc846524dcea4c8ba1503
[ "BSD-4-Clause" ]
null
null
null
# RT - Role Panel from __future__ import annotations from discord.ext import commands import discord from core import Cog, RT, t from rtlib.common.json import loads from rtutil.utils import ( artificially_send, adjust_min_max, replace_nl, is_json, fetch_webhook, edit_reference ) from rtutil.content_data im...
39.552995
137
0.606664
11779b16636cfbac901e1e1d9b728ed249b02d4e
657
py
Python
tests/test_sieve.py
pet1330/flask-sieve
64537398b29653cc8fe948a4a4df16d5b61eca80
[ "BSD-2-Clause" ]
null
null
null
tests/test_sieve.py
pet1330/flask-sieve
64537398b29653cc8fe948a4a4df16d5b61eca80
[ "BSD-2-Clause" ]
null
null
null
tests/test_sieve.py
pet1330/flask-sieve
64537398b29653cc8fe948a4a4df16d5b61eca80
[ "BSD-2-Clause" ]
null
null
null
import unittest from flask import Flask from flask_sieve import Sieve from flask_sieve.exceptions import ValidationException class TestSieve(unittest.TestCase): def test_registers_error_handler(self): app = Flask(__name__) Sieve(app) self.assertIn(ValidationException, app.error_handler_s...
29.863636
87
0.681887
8898d0924fc1b1aa80fa01f5aba4b8a56350d6d1
2,279
py
Python
docs/conf.py
kuzentio/fleetassignment
bc7b8d2ebc74c411bf49985af428a502eb249f6a
[ "MIT" ]
null
null
null
docs/conf.py
kuzentio/fleetassignment
bc7b8d2ebc74c411bf49985af428a502eb249f6a
[ "MIT" ]
null
null
null
docs/conf.py
kuzentio/fleetassignment
bc7b8d2ebc74c411bf49985af428a502eb249f6a
[ "MIT" ]
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...
36.174603
79
0.667837
994891b8d474f9c224232027c12bb3be5831c7af
12,037
py
Python
halotools_ia/correlation_functions/ed_3d_one_two_halo_decomp.py
nvanalfen/halotools_ia
22ecc3cc9dd8c7688df67e36466c592ec5043ea8
[ "BSD-3-Clause" ]
null
null
null
halotools_ia/correlation_functions/ed_3d_one_two_halo_decomp.py
nvanalfen/halotools_ia
22ecc3cc9dd8c7688df67e36466c592ec5043ea8
[ "BSD-3-Clause" ]
null
null
null
halotools_ia/correlation_functions/ed_3d_one_two_halo_decomp.py
nvanalfen/halotools_ia
22ecc3cc9dd8c7688df67e36466c592ec5043ea8
[ "BSD-3-Clause" ]
2
2021-07-13T17:51:55.000Z
2021-07-27T19:18:45.000Z
r""" Module containing the `~halotools.mock_observables.alignments.ed_3d_one_two_halo_decomp` function used to calculate the 1-halo and 2-halo contributions to the ellipticity-direction (ED) correlation functon. """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np ...
44.747212
122
0.668356
03c12bd8cf64893548f3c2441e97dbf430c4e1b8
8,712
py
Python
dask/array/tests/test_dispatch.py
galipremsagar/dask
134182e05009dbb20bd8e59ccf8bf771e5d4399a
[ "BSD-3-Clause" ]
null
null
null
dask/array/tests/test_dispatch.py
galipremsagar/dask
134182e05009dbb20bd8e59ccf8bf771e5d4399a
[ "BSD-3-Clause" ]
null
null
null
dask/array/tests/test_dispatch.py
galipremsagar/dask
134182e05009dbb20bd8e59ccf8bf771e5d4399a
[ "BSD-3-Clause" ]
null
null
null
import operator import numpy as np import pytest import dask.array as da from dask.array import Array from dask.array.chunk_types import is_valid_array_chunk, is_valid_chunk_type from dask.array.utils import assert_eq def wrap(func_name): """ Wrap a function. """ def wrapped(self, *a, **kw): ...
30.355401
90
0.628558
0c7ff0e897cf52b679eb3cfb637f5c362b53d30d
1,096
py
Python
qiskit/transpiler/passes/unroll_3q_or_more.py
mcgarc/qiskit-terra
efe09ce7f7fc9074622deef087773090e07a8c75
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passes/unroll_3q_or_more.py
mcgarc/qiskit-terra
efe09ce7f7fc9074622deef087773090e07a8c75
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passes/unroll_3q_or_more.py
mcgarc/qiskit-terra
efe09ce7f7fc9074622deef087773090e07a8c75
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Pass for decomposing 3q (or more) gates into 2q or 1q gates.""" from qiskit.transpiler._basepasses import TransformationP...
31.314286
86
0.67427
bf3c98941529da8fbe256d772ede787e240e0556
32,279
py
Python
src/_pytest/capture.py
drsantos20/pytest
703e89134c2b0c21225014e3a89c17ab062c0ab9
[ "MIT" ]
1
2019-01-03T05:34:12.000Z
2019-01-03T05:34:12.000Z
src/_pytest/capture.py
drsantos20/pytest
703e89134c2b0c21225014e3a89c17ab062c0ab9
[ "MIT" ]
null
null
null
src/_pytest/capture.py
drsantos20/pytest
703e89134c2b0c21225014e3a89c17ab062c0ab9
[ "MIT" ]
null
null
null
"""Per-test stdout/stderr capturing mechanism.""" import contextlib import functools import io import os import sys from io import UnsupportedOperation from tempfile import TemporaryFile from typing import Any from typing import AnyStr from typing import Generator from typing import Generic from typing import Iterator ...
33.380558
99
0.628675
5a69d897876b2160febc395d5e97d4643bb2f043
2,887
py
Python
Codes/Python32/Lib/tkinter/_fix.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
Codes/Python32/Lib/tkinter/_fix.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
Codes/Python32/Lib/tkinter/_fix.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
import sys, os # Delay import _tkinter until we have set TCL_LIBRARY, # so that Tcl_FindExecutable has a chance to locate its # encoding directory. # Unfortunately, we cannot know the TCL_LIBRARY directory # if we don't know the tcl version, which we cannot find out # without import Tcl. Fortunately, Tcl will itself ...
36.544304
69
0.58469
d2a0a4da9b275aea2906f2f97c48a353fdbe01bc
42,138
py
Python
packages/grid/ansible/mitogen/mitogen/service.py
callezenwaka/PySyft
2545c302441cfe727ec095c4f9aa136bff02be32
[ "Apache-1.1" ]
1
2021-09-14T10:56:43.000Z
2021-09-14T10:56:43.000Z
packages/grid/ansible/mitogen/mitogen/service.py
callezenwaka/PySyft
2545c302441cfe727ec095c4f9aa136bff02be32
[ "Apache-1.1" ]
2
2021-04-02T10:12:44.000Z
2021-04-02T10:12:50.000Z
packages/grid/ansible/mitogen/mitogen/service.py
callezenwaka/PySyft
2545c302441cfe727ec095c4f9aa136bff02be32
[ "Apache-1.1" ]
1
2021-08-19T12:23:01.000Z
2021-08-19T12:23:01.000Z
# Copyright 2019, David Wilson # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2....
33.845783
107
0.59177
98ccd3832a3187726b0b44866fa6769c260a7162
663
py
Python
tests/test_versions.py
SkinnerBox/sqlalchemy-continuum-tests
8c09098b9a02024ed361db53277d956cb29016d8
[ "BSD-3-Clause" ]
null
null
null
tests/test_versions.py
SkinnerBox/sqlalchemy-continuum-tests
8c09098b9a02024ed361db53277d956cb29016d8
[ "BSD-3-Clause" ]
null
null
null
tests/test_versions.py
SkinnerBox/sqlalchemy-continuum-tests
8c09098b9a02024ed361db53277d956cb29016d8
[ "BSD-3-Clause" ]
null
null
null
from tests import TestCase class TestVersions(TestCase): def test_versions_ordered_by_audit_id(self): names = [ u'Some article', u'Update 1 article', u'Update 2 article', u'Update 3 article', ] article = self.Article(name=names[0]) s...
26.52
55
0.573152
9c6ac271299d2f719f999bf3b3d0a6874b0b7227
696
py
Python
test.py
SeongSuKim95/Re-ID-baseline
b145bba712492f7a93cd3771e007fa694b1c44b6
[ "MIT" ]
202
2019-06-12T11:46:51.000Z
2022-02-02T15:15:36.000Z
test.py
SeongSuKim95/Re-ID-baseline
b145bba712492f7a93cd3771e007fa694b1c44b6
[ "MIT" ]
31
2019-06-13T02:03:22.000Z
2021-12-30T03:55:46.000Z
test.py
SeongSuKim95/Re-ID-baseline
b145bba712492f7a93cd3771e007fa694b1c44b6
[ "MIT" ]
71
2019-06-17T01:10:08.000Z
2022-03-03T06:51:48.000Z
import os from torch.backends import cudnn from config import Config from datasets import make_dataloader from model import make_model from processor import do_inference from utils.logger import setup_logger if __name__ == "__main__": cfg = Config() log_dir = cfg.LOG_DIR logger = setup_logger('{}.test'.f...
26.769231
75
0.704023
7605d79840cf826f0cb7ecab0804f0926bb79622
595
py
Python
twilio/rest/resources/transcriptions.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/transcriptions.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/transcriptions.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
13
2017-08-19T16:46:08.000Z
2018-11-05T23:11:34.000Z
from . import InstanceResource, ListResource class Transcription(InstanceResource): def delete(self): """ Delete this transcription """ return self.parent.delete(self.name) class Transcriptions(ListResource): name = "Transcriptions" instance = Transcription def lis...
20.517241
57
0.613445
3adea4838a2babfa0556f93c54ff044d5c87fff8
29,181
py
Python
sdk/CustomWebSearch/custom_search_client/models/_models_py3.py
WMRamadan/bing-search-sdk-for-python
276d9cd6963c939081b3dec91bdd9aded42b3b35
[ "MIT" ]
12
2021-03-11T20:24:12.000Z
2022-02-10T22:55:03.000Z
sdk/CustomWebSearch/custom_search_client/models/_models_py3.py
WMRamadan/bing-search-sdk-for-python
276d9cd6963c939081b3dec91bdd9aded42b3b35
[ "MIT" ]
null
null
null
sdk/CustomWebSearch/custom_search_client/models/_models_py3.py
WMRamadan/bing-search-sdk-for-python
276d9cd6963c939081b3dec91bdd9aded42b3b35
[ "MIT" ]
10
2021-03-09T17:02:48.000Z
2022-02-12T18:40:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------...
35.630037
124
0.622665
5129d49d9a9c74b936707f646d79f41519786c04
417
py
Python
datumaro/plugins/coco_format/format.py
detecttechnologies/datumaro
a00a4ec6807787d341c71f75f5e337c3cb7be119
[ "MIT" ]
1
2021-09-26T23:03:00.000Z
2021-09-26T23:03:00.000Z
datumaro/plugins/coco_format/format.py
detecttechnologies/datumaro
a00a4ec6807787d341c71f75f5e337c3cb7be119
[ "MIT" ]
null
null
null
datumaro/plugins/coco_format/format.py
detecttechnologies/datumaro
a00a4ec6807787d341c71f75f5e337c3cb7be119
[ "MIT" ]
1
2021-11-09T14:50:57.000Z
2021-11-09T14:50:57.000Z
# Copyright (C) 2019-2020 Intel Corporation # # SPDX-License-Identifier: MIT from enum import Enum CocoTask = Enum('CocoTask', [ 'instances', 'person_keypoints', 'captions', 'labels', # extension, does not exist in the original COCO format 'image_info', # 'panoptic', # 'stuff', ]) class...
17.375
69
0.645084
ae599068af851224e97729716097527a6dedcb0e
2,214
py
Python
src/petronia/defimpl/platform/windows/state/display.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
19
2017-06-21T10:28:24.000Z
2021-12-31T11:49:28.000Z
src/petronia/defimpl/platform/windows/state/display.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
10
2016-11-11T18:57:57.000Z
2021-02-01T15:33:43.000Z
src/petronia/defimpl/platform/windows/state/display.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
3
2017-09-17T03:29:35.000Z
2019-06-03T10:43:08.000Z
""" Sets up the state for the monitors, and listens for changes to the display settings, to update the state on the fly. """ from typing import List, Tuple from .....aid.std import ( EventBus, ListenerSet, ) from .....core.platform.api.screen import ( set_screen_state, VirtualScreenArea, ) from .....c...
29.52
107
0.715899
9cbfc2cbf18b430d0565918e1fe9809835bce117
1,484
py
Python
daemon/examples/stopsession.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
null
null
null
daemon/examples/stopsession.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
null
null
null
daemon/examples/stopsession.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # (c)2010-2012 the Boeing Company # author: Jeff Ahrenholz <jeffrey.m.ahrenholz@boeing.com> # # List and stop CORE sessions from the command line. # import optparse import socket from core.api import coreapi from core.enumerations import MessageFlags, SessionTlvs, CORE_API_PORT def main(): ...
29.68
74
0.669137
164dab7e3a67030e2d32d17a07f379619b68cc81
3,768
py
Python
tcp_standalone.py
billzhonggz/IoT-TCP-Server
eb9205d46c6e18dd1e376a50cecae49aa4f6039f
[ "MIT" ]
1
2020-12-08T08:37:44.000Z
2020-12-08T08:37:44.000Z
tcp_standalone.py
billzhonggz/IoT-TCP-Server
eb9205d46c6e18dd1e376a50cecae49aa4f6039f
[ "MIT" ]
null
null
null
tcp_standalone.py
billzhonggz/IoT-TCP-Server
eb9205d46c6e18dd1e376a50cecae49aa4f6039f
[ "MIT" ]
null
null
null
import SetupDjangoORM from datetime import datetime from pytz import UTC from ConvertCoordination import transform from tcp.models import * from tornado.ioloop import IOLoop from tornado.tcpserver import TCPServer from tornado.iostream import StreamClosedError from tornado import gen class IotTcpServer(TCPServer): ...
28.984615
104
0.624735
f41a537e958f444a2c2cf2d5653f3871767c1b9f
10,657
py
Python
conans/client/rest/rest_client_common.py
santhonisz/conan
cab355ba1933b81967560596357415f06d2cb85c
[ "MIT" ]
1
2019-01-09T14:14:58.000Z
2019-01-09T14:14:58.000Z
conans/client/rest/rest_client_common.py
Minimonium/conan
cab355ba1933b81967560596357415f06d2cb85c
[ "MIT" ]
null
null
null
conans/client/rest/rest_client_common.py
Minimonium/conan
cab355ba1933b81967560596357415f06d2cb85c
[ "MIT" ]
null
null
null
import json from requests.auth import AuthBase, HTTPBasicAuth from conans.client.rest import response_to_str from conans.errors import (EXCEPTION_CODE_MAPPING, ConanException, AuthenticationException, RecipeNotFoundException, PackageNotFoundException) from conans....
43.145749
101
0.631041
b24a8e532adb8c2d6bc96809e7366769fb4c9dc9
2,012
py
Python
docs/includes/generate.py
Marviel/cerberus
6ac4ad84a7e3c5ba14461d615e69473bd4c864d3
[ "ISC" ]
null
null
null
docs/includes/generate.py
Marviel/cerberus
6ac4ad84a7e3c5ba14461d615e69473bd4c864d3
[ "ISC" ]
null
null
null
docs/includes/generate.py
Marviel/cerberus
6ac4ad84a7e3c5ba14461d615e69473bd4c864d3
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 import importlib from operator import attrgetter from pathlib import Path from pprint import pformat from textwrap import indent from types import SimpleNamespace INCLUDES_DIR = Path(__file__).parent.resolve() CERBERUS_DIR = INCLUDES_DIR.parent.parent / 'cerberus' def load_module_members(nam...
27.561644
86
0.677932
c59c83b898e5c77b6448b3f40e55e4570fa80e92
3,375
py
Python
sdks/python/apache_beam/examples/windowed_wordcount.py
kjmrknsn/beam
6a6adc8433deff10a5594bbf77cc9148ce0a951a
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/examples/windowed_wordcount.py
kjmrknsn/beam
6a6adc8433deff10a5594bbf77cc9148ce0a951a
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/examples/windowed_wordcount.py
kjmrknsn/beam
6a6adc8433deff10a5594bbf77cc9148ce0a951a
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.415842
79
0.682667
43b2ae6dd151d3910414ff214652f0654069b721
2,727
py
Python
capstoneRepo/Demo_version/config.py
yekaylee/capstone
4d568a85dc0a81da5a0d5e9643a583b9baa972cb
[ "BSD-3-Clause" ]
null
null
null
capstoneRepo/Demo_version/config.py
yekaylee/capstone
4d568a85dc0a81da5a0d5e9643a583b9baa972cb
[ "BSD-3-Clause" ]
null
null
null
capstoneRepo/Demo_version/config.py
yekaylee/capstone
4d568a85dc0a81da5a0d5e9643a583b9baa972cb
[ "BSD-3-Clause" ]
2
2016-03-08T03:41:32.000Z
2018-02-23T03:03:28.000Z
# Raspberry Pi Face Recognition Treasure Box Configuration # Copyright 2013 Tony DiCola # Edit the values below to configure the training and usage of the # face recognition box. # Pi GPIO port which is connected to the lock servo signal line. LOCK_SERVO_PIN = 18 # Pulse width value (in microseconds) for the servo a...
39.521739
79
0.76861
ea50ec5bd2f979b429e25875baba4ff2cf230720
384
py
Python
lightnet/engine/__init__.py
WildMeOrg/wbia-deprecate-tpl-lightnet
b910aaa88f31d0bb4ca220229852a7f58f4ca905
[ "MIT" ]
null
null
null
lightnet/engine/__init__.py
WildMeOrg/wbia-deprecate-tpl-lightnet
b910aaa88f31d0bb4ca220229852a7f58f4ca905
[ "MIT" ]
null
null
null
lightnet/engine/__init__.py
WildMeOrg/wbia-deprecate-tpl-lightnet
b910aaa88f31d0bb4ca220229852a7f58f4ca905
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Lightnet Engine Module |br| This module contains classes and functions to manage the training of your networks. It has an engine, capable of orchestrating your training and test cycles, and also contains function to easily visualise data with visdom_. """ from ._engine import * from ._para...
29.538462
139
0.757813
f337abef359102c3c0cb17f434a5094b79e77daf
7,423
py
Python
demo/graph_tutorial/tutorial/views.py
dschien/msgraph-django-app
e88453234d3a5b4c7e9f4f80d0b1d995f0ba8ed0
[ "MIT" ]
null
null
null
demo/graph_tutorial/tutorial/views.py
dschien/msgraph-django-app
e88453234d3a5b4c7e9f4f80d0b1d995f0ba8ed0
[ "MIT" ]
null
null
null
demo/graph_tutorial/tutorial/views.py
dschien/msgraph-django-app
e88453234d3a5b4c7e9f4f80d0b1d995f0ba8ed0
[ "MIT" ]
null
null
null
import openpyxl from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from datetime import datetime, timedelta from dateutil import tz, parser from tutorial.auth_helper import get_sign_in_flow, get_token_from_code, store_user, remove_user_and_toke...
30.052632
116
0.612556
7270b5b3bdd03c94034e70583557966cd8d9f677
3,654
py
Python
cogs/warns.py
rishabghai03/multipurposebot
f73f58bf8e3f8e23cce9bbc08ade0cc3afd2e809
[ "MIT" ]
null
null
null
cogs/warns.py
rishabghai03/multipurposebot
f73f58bf8e3f8e23cce9bbc08ade0cc3afd2e809
[ "MIT" ]
null
null
null
cogs/warns.py
rishabghai03/multipurposebot
f73f58bf8e3f8e23cce9bbc08ade0cc3afd2e809
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from cogs import utils from cogs.utils.util import Pag class Warns(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() @commands.guild_only() @commands.has_role(566132980687568896) async def warn(self, ctx, mem...
35.823529
103
0.572523
35f4c418f12c7ebc9e05b5ee9faf473b3f627c70
6,146
py
Python
scripts/external_libs/pyzmq-14.5.0/python3/ucs4/64bit/zmq/eventloop/ioloop.py
alialnu/trex-core
ae4ab05a6215fd0a859adde40dac6afa8bf0f950
[ "Apache-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
scripts/external_libs/pyzmq-14.5.0/python3/ucs4/64bit/zmq/eventloop/ioloop.py
alialnu/trex-core
ae4ab05a6215fd0a859adde40dac6afa8bf0f950
[ "Apache-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
scripts/external_libs/pyzmq-14.5.0/python3/ucs4/64bit/zmq/eventloop/ioloop.py
alialnu/trex-core
ae4ab05a6215fd0a859adde40dac6afa8bf0f950
[ "Apache-2.0" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
# coding: utf-8 """tornado IOLoop API with zmq compatibility If you have tornado ≥ 3.0, this is a subclass of tornado's IOLoop, otherwise we ship a minimal subset of tornado in zmq.eventloop.minitornado. The minimal shipped version of tornado's IOLoop does not include support for concurrent futures - this will only b...
31.680412
91
0.653108
26962b16d8d50d2e17ed037de90abdbaea79ce50
3,341
py
Python
cy_recruitment/settings.py
prcups/CY-Recruitment
ced8f67eb66bb46a1e88b0b8f691beb11e75d7fc
[ "MulanPSL-1.0" ]
null
null
null
cy_recruitment/settings.py
prcups/CY-Recruitment
ced8f67eb66bb46a1e88b0b8f691beb11e75d7fc
[ "MulanPSL-1.0" ]
null
null
null
cy_recruitment/settings.py
prcups/CY-Recruitment
ced8f67eb66bb46a1e88b0b8f691beb11e75d7fc
[ "MulanPSL-1.0" ]
null
null
null
""" Django settings for cy_recruitment project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pa...
25.503817
91
0.690512
62626de9f6157a0e522b04a231519c6fa17475bf
8,095
py
Python
classes.py
jagmac/race-strategy-simulation
98f5e1e964078ea69830ff2db94cf2c96ebf02ee
[ "MIT" ]
null
null
null
classes.py
jagmac/race-strategy-simulation
98f5e1e964078ea69830ff2db94cf2c96ebf02ee
[ "MIT" ]
null
null
null
classes.py
jagmac/race-strategy-simulation
98f5e1e964078ea69830ff2db94cf2c96ebf02ee
[ "MIT" ]
null
null
null
from random import gauss class Time: def __init__(self, hours=0, minutes=0, seconds=0.0, milliseconds=0): self.mil_time = int(((((hours * 60) + minutes) * 60) + seconds) * 1000 + milliseconds) def __str__(self): if self.mil_time >= 0: hour = self.mil_time // (60 * 60 * 1000) ...
35.977778
134
0.645337
e664a105a422a8321a495bbc5fc777ecb486c53a
263
py
Python
api/instance/config.py
magnusoy/Sparkie
428b716a50cd0c274670971ee007e82571a04a80
[ "MIT" ]
15
2020-03-07T12:25:50.000Z
2021-11-27T03:13:47.000Z
api/instance/config.py
magnusoy/Sparkie
428b716a50cd0c274670971ee007e82571a04a80
[ "MIT" ]
null
null
null
api/instance/config.py
magnusoy/Sparkie
428b716a50cd0c274670971ee007e82571a04a80
[ "MIT" ]
9
2020-04-08T04:37:34.000Z
2021-11-27T03:13:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.dirname(__file__)) SECRET_KEY = '-%entuw(c0yrm_tb02aft7z17!v^9ktgrfvzp%4@ut0tw*t(@f' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + \ os.path.join(basedir, 'crud.sqlite')
23.909091
65
0.688213
0a546f95ea68b9b9c5d4301bb22e182ccb1ebf34
1,036
py
Python
examples/02-plot/clear.py
sampotter/pyvista
491f9b103db907f3ba42fdc34135512ecc92727b
[ "MIT" ]
1,107
2019-05-13T06:40:26.000Z
2022-03-31T22:16:32.000Z
examples/02-plot/clear.py
sampotter/pyvista
491f9b103db907f3ba42fdc34135512ecc92727b
[ "MIT" ]
1,709
2019-05-13T05:52:42.000Z
2022-03-31T18:16:53.000Z
examples/02-plot/clear.py
sampotter/pyvista
491f9b103db907f3ba42fdc34135512ecc92727b
[ "MIT" ]
225
2019-05-16T04:24:20.000Z
2022-03-31T18:14:02.000Z
""" Clearing a Mesh or the Entire Plot ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This example demonstrates how to remove elements from a scene. """ # sphinx_gallery_thumbnail_number = 3 import pyvista as pv ############################################################################### plotter = pv.Plotter() actor = plot...
26.564103
79
0.542471
7bbfbd0a7d03025d9675b3fd60d5fe40c417f91e
7,302
py
Python
os_vm_expire/api/controllers/__init__.py
mboudet/os-vm-expire
71469608d15d84c2266f69b8c662b0bd5cdba54e
[ "Apache-2.0" ]
5
2017-12-11T21:16:48.000Z
2021-12-01T14:21:24.000Z
os_vm_expire/api/controllers/__init__.py
mboudet/os-vm-expire
71469608d15d84c2266f69b8c662b0bd5cdba54e
[ "Apache-2.0" ]
10
2017-12-06T21:30:22.000Z
2021-12-16T16:43:02.000Z
os_vm_expire/api/controllers/__init__.py
mboudet/os-vm-expire
71469608d15d84c2266f69b8c662b0bd5cdba54e
[ "Apache-2.0" ]
2
2020-12-12T05:08:17.000Z
2021-12-01T14:21:42.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed u...
35.619512
79
0.649959
9cd64c83890a4660061cdd1a1d96f18ca91c5e80
15,316
py
Python
bondspider/other_packages/gerapy_pyppeteer/downloadermiddlewares.py
champion-yang/spider_chinabond
ba4140f67625ea16b460c2c689c8470354db4c9e
[ "Apache-2.0" ]
3
2020-11-24T13:10:45.000Z
2021-05-14T01:59:15.000Z
bondspider/other_packages/gerapy_pyppeteer/downloadermiddlewares.py
champion-yang/spider_chinabond
ba4140f67625ea16b460c2c689c8470354db4c9e
[ "Apache-2.0" ]
null
null
null
bondspider/other_packages/gerapy_pyppeteer/downloadermiddlewares.py
champion-yang/spider_chinabond
ba4140f67625ea16b460c2c689c8470354db4c9e
[ "Apache-2.0" ]
null
null
null
import sys import asyncio from io import BytesIO from pyppeteer.errors import PageError, TimeoutError from scrapy.http import HtmlResponse import twisted.internet from scrapy.utils.python import global_object_name from twisted.internet.asyncioreactor import AsyncioSelectorReactor from twisted.internet.defer import Defe...
41.394595
112
0.617916
e6a4c9b80aaf5c97dbd3fbb6778216bdd3996709
369
py
Python
Lesson 02 - Arrays/CyclicRotation_2.py
kourouklides/codility-python
0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e
[ "Apache-2.0" ]
11
2018-06-05T03:04:22.000Z
2022-02-03T05:01:07.000Z
Lesson 02 - Arrays/CyclicRotation_2.py
kourouklides/codility-python
0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e
[ "Apache-2.0" ]
null
null
null
Lesson 02 - Arrays/CyclicRotation_2.py
kourouklides/codility-python
0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e
[ "Apache-2.0" ]
6
2020-04-23T07:18:22.000Z
2021-12-05T05:23:26.000Z
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A, K): # write your code in Python 3.6 N = len(A) if ((N==0) or (K==0) or (K==N)): return A if (K > N): i = K % N else: i = K A1 = A[N-i:N] A2 =...
16.043478
54
0.439024
0590016ff3472a7cfefcb722713313b77cd00dcc
363
py
Python
test_code.py
pome-ta/pysta-perlinNoise
95ce2ec8c4239f8e4720b97858972e3f5d03e1de
[ "MIT" ]
null
null
null
test_code.py
pome-ta/pysta-perlinNoise
95ce2ec8c4239f8e4720b97858972e3f5d03e1de
[ "MIT" ]
null
null
null
test_code.py
pome-ta/pysta-perlinNoise
95ce2ec8c4239f8e4720b97858972e3f5d03e1de
[ "MIT" ]
null
null
null
from pathlib import Path from pprint import pprint dump_data = Path('./seed.txt') dump_list = [] with dump_data.open() as f: dump_strs = f.read().split() _xyz = [] for _ in dump_strs: _xyz.append(float(_)) if len(_xyz) == 3: dump_list.append(_xyz) _xyz = [] for i in dump_list: prin...
15.125
30
0.61157
cec63f42818024deef0a12b2b93538d1776f98ac
560
py
Python
marketing/migrations/0001_initial.py
mhfd28/blog13
7a3c9b45ed7eb5c30bd846885bfd3f9f90727bcf
[ "MIT" ]
null
null
null
marketing/migrations/0001_initial.py
mhfd28/blog13
7a3c9b45ed7eb5c30bd846885bfd3f9f90727bcf
[ "MIT" ]
10
2020-02-12T00:11:55.000Z
2022-03-11T23:45:54.000Z
marketing/migrations/0001_initial.py
mhfd28/blog13
7a3c9b45ed7eb5c30bd846885bfd3f9f90727bcf
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2019-03-06 10:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Signup', fields=[ ('id', models.AutoField(a...
24.347826
114
0.580357
f0f29509fd1d50d493d3f60e54f68423947fd1aa
3,845
py
Python
sickbeard/lib/imdb/parser/http/topBottomParser.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
5
2018-07-30T23:25:39.000Z
2020-07-06T19:53:46.000Z
sickbeard/lib/imdb/parser/http/topBottomParser.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
1
2015-04-21T22:05:02.000Z
2015-04-22T22:27:15.000Z
sickbeard/lib/imdb/parser/http/topBottomParser.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
2
2015-09-29T16:31:43.000Z
2020-07-26T03:41:10.000Z
""" parser.http.topBottomParser module (imdb package). This module provides the classes (and the instances), used to parse the lists of top 250 and bottom 100 movies. E.g.: http://akas.imdb.com/chart/top http://akas.imdb.com/chart/bottom Copyright 2009 Davide Alberani <da@erlug.linux.it> This program is free...
35.934579
78
0.586736
47731a0cdf9e98096169f2ebcbd70adfe6bd51a8
213
py
Python
src/nitpick/__init__.py
fossabot/nitpick
31b1de49bd9d3acc8e23cb3515353fb5039c4b7b
[ "MIT" ]
null
null
null
src/nitpick/__init__.py
fossabot/nitpick
31b1de49bd9d3acc8e23cb3515353fb5039c4b7b
[ "MIT" ]
1
2021-03-30T09:40:53.000Z
2021-03-30T10:08:40.000Z
src/nitpick/__init__.py
jaysonsantos/nitpick
34d24993fed4de40c029d676a434761c19029860
[ "MIT" ]
null
null
null
"""Main module.""" from loguru import logger from nitpick.constants import PROJECT_NAME from nitpick.core import Nitpick # noqa: F401 __all__ = ("Nitpick",) __version__ = "0.26.0" logger.disable(PROJECT_NAME)
19.363636
46
0.751174
a517042654a5ee9530fc32a32070e06f380a89f1
27
py
Python
geoddb/__init__.py
khatiba/geoddb
08f7f53d193ff1635784377fa830fff925109ee9
[ "MIT" ]
null
null
null
geoddb/__init__.py
khatiba/geoddb
08f7f53d193ff1635784377fa830fff925109ee9
[ "MIT" ]
null
null
null
geoddb/__init__.py
khatiba/geoddb
08f7f53d193ff1635784377fa830fff925109ee9
[ "MIT" ]
null
null
null
from .geoddb import GeoDDB
13.5
26
0.814815
57421659881c1c58ce8440a93f6f210e357bad4d
1,577
py
Python
python_server/server.py
ulopeznovoa/brazil-wireless-counter
8f6743ba4e74d012c7384c9fc98002c9788042b4
[ "MIT" ]
2
2019-11-01T08:45:35.000Z
2020-10-25T10:34:05.000Z
python_server/server.py
ulopeznovoa/brazil-wireless-counter
8f6743ba4e74d012c7384c9fc98002c9788042b4
[ "MIT" ]
null
null
null
python_server/server.py
ulopeznovoa/brazil-wireless-counter
8f6743ba4e74d012c7384c9fc98002c9788042b4
[ "MIT" ]
1
2020-10-25T10:34:07.000Z
2020-10-25T10:34:07.000Z
from flask import Flask, request from flask import render_template, send_from_directory from flask_restful import Resource, Api, reqparse from json import dumps import os app = Flask(__name__, static_url_path='') api = Api(app) configfile = "../counter.conf" sendbuffer = "../send.dat" receivebuffer = "../receive.dat"...
22.855072
71
0.646164
f0e107e9c624af77d4be32406b24337a6c5c4867
238
py
Python
ex7-4.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ex7-4.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ex7-4.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
prompt = "Please input a ingredient: " prompt += "\n(Enter 'quit' when you are finished)" while True: ingredients = input(prompt) if ingredients == 'quit': break else: print(f"We will add this {ingredients}.")
26.444444
50
0.62605
3f7dc98d960d3b57aafde3f5cef7f1e6f778e3b0
1,607
py
Python
test_feishu_20210822/ui_test/case/test_calendar.py
ti132520/pytest-vlog
c6688ed2b1c5e10b91057a22e672dffc1cd54d53
[ "CC0-1.0" ]
null
null
null
test_feishu_20210822/ui_test/case/test_calendar.py
ti132520/pytest-vlog
c6688ed2b1c5e10b91057a22e672dffc1cd54d53
[ "CC0-1.0" ]
null
null
null
test_feishu_20210822/ui_test/case/test_calendar.py
ti132520/pytest-vlog
c6688ed2b1c5e10b91057a22e672dffc1cd54d53
[ "CC0-1.0" ]
2
2021-04-12T14:40:22.000Z
2021-08-28T08:47:27.000Z
import random import time import pytest from faker import Faker from ui_test.page.main_page import MainPage faker = Faker(locale='zh-CN') class TestCalendarWeb: web = None def setup_class(self): self.web = MainPage() def teardown_class(self): self.web.quit() @pytest.mark.parametri...
34.191489
86
0.619788
b4b5789a1c1b4c6dce52d9671dc0cabcc821fbcb
516
py
Python
platform/radio/efr32_multiphy_configurator/host_py_rm_studio_internal/full/efr32xg31/factory.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
platform/radio/efr32_multiphy_configurator/host_py_rm_studio_internal/full/efr32xg31/factory.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/host_py_rm_studio_internal/full/efr32xg31/factory.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
import os from host_py_rm_studio_internal import rm_dynamic_import _PKG_PATH = os.path.dirname(os.path.realpath(__file__)) class RM_EFR32XG31_Info(object): short_name = 'efr32xg31' val_die_name = 'EFR32XG31XFULL' arm_core_revs = [] rtl_revs = ['A0'] di_revs = [] pte_revs = [] pkg_path = ...
20.64
60
0.717054
3b9caf7f782c735f4194bc70c6c052dc45a5715a
386
py
Python
PINp/2014/Platonova Olga/task_1_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Platonova Olga/task_1_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Platonova Olga/task_1_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 21. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Михаил Николаевич Румянцев. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Platonova O. A. # 29.05.2016 print("Михаил Николаевич Румянцев более изве...
48.25
218
0.800518
2838c9f7964e46747415cae8fb7dfbcc276d2a24
5,621
py
Python
idb/cli/__init__.py
zpao/idb
320e3c689dc0b2f3b6cfd57b29565b30a253c8f0
[ "MIT" ]
null
null
null
idb/cli/__init__.py
zpao/idb
320e3c689dc0b2f3b6cfd57b29565b30a253c8f0
[ "MIT" ]
null
null
null
idb/cli/__init__.py
zpao/idb
320e3c689dc0b2f3b6cfd57b29565b30a253c8f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import os from abc import ABCMeta, abstractmethod from argparse import ArgumentParser, Namespace from ty...
33.861446
111
0.649529
bad60e5d48bc2f668ec906d77ddd97393cbb02a4
7,306
py
Python
examples/pop_art.py
akssri/rlax
dce52b43c57be7b56d7632b39c0446164526a668
[ "Apache-2.0" ]
803
2020-02-20T11:05:35.000Z
2022-03-28T19:35:39.000Z
examples/pop_art.py
akssri/rlax
dce52b43c57be7b56d7632b39c0446164526a668
[ "Apache-2.0" ]
27
2020-02-20T12:12:36.000Z
2022-03-29T12:53:15.000Z
examples/pop_art.py
akssri/rlax
dce52b43c57be7b56d7632b39c0446164526a668
[ "Apache-2.0" ]
65
2020-02-20T11:37:23.000Z
2022-03-27T15:23:04.000Z
# Copyright 2019 DeepMind Technologies Limited. 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 ...
38.656085
80
0.732001
ba251591f8ce8d268832682a1b09f36bb895a977
3,999
py
Python
SecretColors/helpers/decorators.py
ri0t/SecretColors
a6971e22e9f8070c41ecd62c4a5c50386ce26321
[ "MIT" ]
32
2019-06-03T08:45:33.000Z
2022-02-03T15:06:59.000Z
SecretColors/helpers/decorators.py
ri0t/SecretColors
a6971e22e9f8070c41ecd62c4a5c50386ce26321
[ "MIT" ]
7
2019-11-19T08:39:06.000Z
2022-03-29T14:04:47.000Z
SecretColors/helpers/decorators.py
ri0t/SecretColors
a6971e22e9f8070c41ecd62c4a5c50386ce26321
[ "MIT" ]
5
2019-06-04T09:18:14.000Z
2022-03-15T05:30:14.000Z
# Copyright (c) SecretBiology 2019. # # Library Name: SecretColors # Author: Rohit Suratekar # Website: https://github.com/secretBiology/SecretColors # # Decorator functions will go here import functools import warnings def deprecated(message: str = None): """ Simple decorator to put deprecation warnin...
31.738095
79
0.637159
fb5f59e76424d7b854c5bae165881dedb2c0a38b
7,423
py
Python
wbia/gui/models_and_views.py
dylanirion/wildbook-ia
3b7c30a6e123d87999950bfbb5035c4d9c1a6f5d
[ "Apache-2.0" ]
6
2020-06-21T11:45:08.000Z
2020-11-18T16:43:15.000Z
wbia/gui/models_and_views.py
dylanirion/wildbook-ia
3b7c30a6e123d87999950bfbb5035c4d9c1a6f5d
[ "Apache-2.0" ]
58
2020-06-05T19:02:48.000Z
2021-01-14T15:27:33.000Z
wbia/gui/models_and_views.py
dylanirion/wildbook-ia
3b7c30a6e123d87999950bfbb5035c4d9c1a6f5d
[ "Apache-2.0" ]
3
2020-08-05T17:46:08.000Z
2020-11-11T05:27:01.000Z
# -*- coding: utf-8 -*- """ This provides concrete classes which inherit from abstract api_item_models/api_table_models/api_tree_models in guitool. """ import logging import utool as ut from wbia.guitool import ( APIItemModel, APITableView, APITreeView, APIItemWidget, StripeProxyModel, ChangeLay...
33.740909
86
0.635996
3ed467f90d3459cf783ca03e4266c07980a8f9c3
395
py
Python
m_awwward/wsgi.py
Carolwanzuu/The_Awwward
37e4a49bd15e5db320d1940aac346fd1bb939113
[ "MIT" ]
null
null
null
m_awwward/wsgi.py
Carolwanzuu/The_Awwward
37e4a49bd15e5db320d1940aac346fd1bb939113
[ "MIT" ]
null
null
null
m_awwward/wsgi.py
Carolwanzuu/The_Awwward
37e4a49bd15e5db320d1940aac346fd1bb939113
[ "MIT" ]
null
null
null
""" WSGI config for m_awwward project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
a9a7c5e87d3c7988fe37cae0132f6d476f85c158
579
py
Python
geospace/_const.py
xiejx5/GeoSpace
935ebb0593e367c008cc3cc42b2e20ed921b95b1
[ "MIT" ]
1
2021-02-04T08:48:29.000Z
2021-02-04T08:48:29.000Z
geospace/_const.py
xiejx5/geospace
935ebb0593e367c008cc3cc42b2e20ed921b95b1
[ "MIT" ]
null
null
null
geospace/_const.py
xiejx5/geospace
935ebb0593e367c008cc3cc42b2e20ed921b95b1
[ "MIT" ]
2
2020-07-05T15:56:48.000Z
2020-08-05T04:33:52.000Z
from osgeo import gdal # gdal config CREATION = ['TILED=YES', 'COMPRESS=DEFLATE', 'ZLEVEL=3', 'PREDICTOR=1', 'BIGTIFF=YES'] # mapping between gdal type and ogr field type TYPE_MAP = {'uint8': gdal.GDT_Byte, 'int8': gdal.GDT_Byte, 'uint16': gdal.GDT_UInt16, 'int16': gdal...
32.166667
53
0.580311
c9d0d75659ac19741d6be18ae867574167e4f8a0
852
py
Python
setup.py
clivewalkden/nginx-log-bandwidth
e18d09f5a2a76c62b64b882be20165cdbef8eca8
[ "MIT" ]
null
null
null
setup.py
clivewalkden/nginx-log-bandwidth
e18d09f5a2a76c62b64b882be20165cdbef8eca8
[ "MIT" ]
null
null
null
setup.py
clivewalkden/nginx-log-bandwidth
e18d09f5a2a76c62b64b882be20165cdbef8eca8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='Nginx ScanLog', version='0.1', author='Clive Walkden', author_email='pypi.clive@mailsanitizr.com', long_description=long_description, long_description_content_type="text...
26.625
62
0.640845
160605ce6f7d0ead10a948000858169c58016a3a
599
py
Python
slt/migrations/0008_auto_20181109_1005.py
Jamesoc23/slt-website
67ba28caabb0fe03991931fa95f7adf52e8336b6
[ "MIT" ]
null
null
null
slt/migrations/0008_auto_20181109_1005.py
Jamesoc23/slt-website
67ba28caabb0fe03991931fa95f7adf52e8336b6
[ "MIT" ]
null
null
null
slt/migrations/0008_auto_20181109_1005.py
Jamesoc23/slt-website
67ba28caabb0fe03991931fa95f7adf52e8336b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-11-09 10:05 import django.core.files.storage from django.db import migrations, models import slt.models class Migration(migrations.Migration): dependencies = [ ('slt', '0007_auto_20181108_1540'), ] operations = [ migrations.AlterField( mod...
28.52381
216
0.669449
27883caa089d3bb5145f0d3944fae1099a175c1e
17,145
py
Python
src/data/musdb_wrapper.py
ws-choi/AMSS-Net
9e906f64365526dbb184340ac9565ac8bc32f830
[ "MIT" ]
4
2021-07-16T04:11:50.000Z
2022-02-09T13:51:26.000Z
src/data/musdb_wrapper.py
ws-choi/AMSS-Net
9e906f64365526dbb184340ac9565ac8bc32f830
[ "MIT" ]
null
null
null
src/data/musdb_wrapper.py
ws-choi/AMSS-Net
9e906f64365526dbb184340ac9565ac8bc32f830
[ "MIT" ]
1
2022-01-11T07:20:30.000Z
2022-01-11T07:20:30.000Z
import random from abc import ABCMeta from pathlib import Path import musdb import numpy as np import soundfile import torch from torch.utils.data import Dataset from src.amss.amss_desc.abstract import Selective_Audio_Editing from src.amss.framework import Selective_Audio_Manipulation from src.utils.fourier import ge...
37.516411
115
0.654593
6294653c1554227d6f1b848668ed158e5bc831c1
10,282
py
Python
application/common/database.py
cmb87/FluidMechanics
fc31a4c535c8388002a38352e2c448189017643f
[ "MIT" ]
null
null
null
application/common/database.py
cmb87/FluidMechanics
fc31a4c535c8388002a38352e2c448189017643f
[ "MIT" ]
4
2021-06-08T20:54:10.000Z
2022-03-12T00:14:52.000Z
application/common/database.py
cmb87/FluidMechanics
fc31a4c535c8388002a38352e2c448189017643f
[ "MIT" ]
null
null
null
import sqlite3 as lite import sys import os import logging class Database(object): PATH2DB = "myDatabase.db" @staticmethod def _checkIfTableExists(tablename): """Check whether a table exists or not Args: tablename (TYPE): Table name Returns: TYPE: Descrip...
32.84984
140
0.51206
3d45da38ab251f110c99cf2cb8845ce7723ad017
2,846
py
Python
tests/app/test_frontend_proxy.py
phiberoptick/synapse
c1ddbbde4fb948cf740d4c59869157943d3711c6
[ "Apache-2.0" ]
null
null
null
tests/app/test_frontend_proxy.py
phiberoptick/synapse
c1ddbbde4fb948cf740d4c59869157943d3711c6
[ "Apache-2.0" ]
null
null
null
tests/app/test_frontend_proxy.py
phiberoptick/synapse
c1ddbbde4fb948cf740d4c59869157943d3711c6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 New Vector 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 agreed to in writin...
33.880952
78
0.660576
db4caebdfc0e83800c38e65a158e63b0bb39ff18
3,284
py
Python
Scrapy/settings.py
ShamkhalHajiyev/WebScrapingProject
adf0c360ab153813a29e8285a263f332cca3baff
[ "MIT" ]
null
null
null
Scrapy/settings.py
ShamkhalHajiyev/WebScrapingProject
adf0c360ab153813a29e8285a263f332cca3baff
[ "MIT" ]
null
null
null
Scrapy/settings.py
ShamkhalHajiyev/WebScrapingProject
adf0c360ab153813a29e8285a263f332cca3baff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for hajiyevshamkhal project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/la...
35.695652
120
0.778319
ab1adb33bf9f6a75436bb28dd8861563b1c848ff
32,800
py
Python
sdk/python/pulumi_azure/sql/_inputs.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/sql/_inputs.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/sql/_inputs.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
45.116919
259
0.682317
e2aa571410cde869c5bbff1ba94cbaaa8aec87ec
651
py
Python
Semana-IoT-AIG/Adafruit_Python_ADS1x15/examples/sensors.py
tec-csf/reto-iot-en-supermercado-2019-las-ardillas-intergalacticas
24b23ba508cb6372d826d8bd923ea7d9fddcc9d8
[ "MIT" ]
1
2020-10-10T04:28:12.000Z
2020-10-10T04:28:12.000Z
Semana-IoT-AIG/Adafruit_Python_ADS1x15/examples/sensors.py
tec-csf/reto-iot-en-supermercado-2019-las-ardillas-intergalacticas
24b23ba508cb6372d826d8bd923ea7d9fddcc9d8
[ "MIT" ]
null
null
null
Semana-IoT-AIG/Adafruit_Python_ADS1x15/examples/sensors.py
tec-csf/reto-iot-en-supermercado-2019-las-ardillas-intergalacticas
24b23ba508cb6372d826d8bd923ea7d9fddcc9d8
[ "MIT" ]
null
null
null
import time import Adafruit_ADS1x15 adc = Adafruit_ADS1x15.ADS1015() GAIN = 1 adc.start_adc(0, gain=GAIN) print('Reading ADS1x15 values, press Ctrl-C to quit...') print('| {0:>6} | {1:>6} | {2:>6} | {3:>6} |'.format(*range(4))) print('-' * 37) start = time.time() values = [0]*4 while True: if (time.time() - ...
21.7
88
0.574501
b27f5be4f8656d7806dcc983657065388c05c02c
10,012
py
Python
hwilib/devices/coldcard.py
TheCharlatan/HWI
4c13daed3b62635320e2411c1dd6a8ee307012e5
[ "MIT" ]
1
2020-11-27T06:38:40.000Z
2020-11-27T06:38:40.000Z
hwilib/devices/coldcard.py
TheCharlatan/HWI
4c13daed3b62635320e2411c1dd6a8ee307012e5
[ "MIT" ]
null
null
null
hwilib/devices/coldcard.py
TheCharlatan/HWI
4c13daed3b62635320e2411c1dd6a8ee307012e5
[ "MIT" ]
1
2020-07-17T18:49:34.000Z
2020-07-17T18:49:34.000Z
# Coldcard interaction script from binascii import b2a_hex from ..hwwclient import HardwareWalletClient from ..errors import ActionCanceledError, BadArgumentError, DeviceBusyError, DeviceFailureError, UnavailableActionError, common_err_msgs, handle_errors from .ckcc.client import ColdcardDevice, COINKITE_VID, CKCC_PID...
36.407273
152
0.620356
57750c84cdac136a142736a39073982b0336b3dd
4,867
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_network_interface_load_balancers_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_network_interface_load_balancers_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_network_interface_load_balancers_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
43.070796
180
0.648654
0b193510d46a127389e5a985c128a3b7d15ad882
32,329
py
Python
scvi/model/_multivi.py
marianogabitto/scvi-tools-1
3bbdb41956f73f24156604c9b17ba034c9e0c19b
[ "BSD-3-Clause" ]
null
null
null
scvi/model/_multivi.py
marianogabitto/scvi-tools-1
3bbdb41956f73f24156604c9b17ba034c9e0c19b
[ "BSD-3-Clause" ]
null
null
null
scvi/model/_multivi.py
marianogabitto/scvi-tools-1
3bbdb41956f73f24156604c9b17ba034c9e0c19b
[ "BSD-3-Clause" ]
null
null
null
import logging from functools import partial from typing import Dict, Iterable, List, Optional, Sequence, Union import numpy as np import pandas as pd import torch from anndata import AnnData from scipy.sparse import csr_matrix, vstack from torch.distributions import Normal from scvi import _CONSTANTS from scvi._comp...
37.635623
132
0.601936
00b59bc6c62e60a05140baea148ce485243df4fb
320
py
Python
platypush/plugins/switch/__init__.py
shineit/platypush
a67b301cd66235b41bff6bfb3de56b903bf9551d
[ "MIT" ]
1
2020-12-08T06:26:31.000Z
2020-12-08T06:26:31.000Z
platypush/plugins/switch/__init__.py
shineit/platypush
a67b301cd66235b41bff6bfb3de56b903bf9551d
[ "MIT" ]
null
null
null
platypush/plugins/switch/__init__.py
shineit/platypush
a67b301cd66235b41bff6bfb3de56b903bf9551d
[ "MIT" ]
null
null
null
from .. import Plugin class SwitchPlugin(Plugin): def on(self, args): raise NotImplementedError() def off(self, args): raise NotImplementedError() def toggle(self, args): raise NotImplementedError() def status(self): raise NotImplementedError() # vim:sw=4:ts=4:et:
16.842105
35
0.634375
06409524c5054ff0eb3742a4a005d8e685451e20
3,974
py
Python
lib/python/nullroute/ldap/client_libldap.py
grawity/code
650524d49849732f07b4103feaa2b14f6fe3ac1b
[ "MIT" ]
89
2015-01-10T22:01:40.000Z
2022-03-20T10:24:12.000Z
lib/python/nullroute/ldap/client_libldap.py
grawity/code
650524d49849732f07b4103feaa2b14f6fe3ac1b
[ "MIT" ]
2
2020-04-10T15:44:22.000Z
2020-06-21T17:48:03.000Z
lib/python/nullroute/ldap/client_libldap.py
grawity/code
fe5a35824a18e8ab38e808134297e6e8551aa270
[ "MIT" ]
19
2015-01-09T18:06:35.000Z
2021-10-30T12:29:53.000Z
import ldap from ldap.cidict import cidict as CaseInsensitiveDict import ldap.controls.readentry import ldap.filter from nullroute.core import Core import time OID_LDAP_CONTROL_POSTREAD = "1.3.6.1.1.13.2" OID_LDAP_FEATURE_MODIFY_INCREMENT = "1.3.6.1.1.14" def _decode_dict_values(d): return {k: [v.decode() for v i...
36.796296
88
0.581278
5a09c31bfecabdb4e1f9c48bae50c5a0c261b45e
1,031
py
Python
partycipe/forms.py
spexxsoldier51/PartyCipe
5b8038db408fca1e1d568d6520daaf04889ccef0
[ "CC0-1.0" ]
null
null
null
partycipe/forms.py
spexxsoldier51/PartyCipe
5b8038db408fca1e1d568d6520daaf04889ccef0
[ "CC0-1.0" ]
null
null
null
partycipe/forms.py
spexxsoldier51/PartyCipe
5b8038db408fca1e1d568d6520daaf04889ccef0
[ "CC0-1.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import ModelForm from partycipe.models import party class UserCreationForm(UserCreationForm): email = forms.EmailField(required=True, label='Email') class ...
29.457143
76
0.581959
9a544ff7a114fd313d170b40b7f94ba3942d05a5
1,522
py
Python
zeeguu_core_test/rules/source_rule.py
simonchristensen1/Zeeguu-Core
76f0e4a73676e00e6023ccbb2017210982670da2
[ "MIT" ]
null
null
null
zeeguu_core_test/rules/source_rule.py
simonchristensen1/Zeeguu-Core
76f0e4a73676e00e6023ccbb2017210982670da2
[ "MIT" ]
null
null
null
zeeguu_core_test/rules/source_rule.py
simonchristensen1/Zeeguu-Core
76f0e4a73676e00e6023ccbb2017210982670da2
[ "MIT" ]
null
null
null
import random from sqlalchemy.orm.exc import NoResultFound import zeeguu_core from zeeguu_core_test.rules.base_rule import BaseRule from zeeguu_core.model.exercise_source import ExerciseSource class SourceRule(BaseRule): """A Testing Rule class for ExerciseSources Has all supported sources as properties. S...
24.95082
93
0.676084
1c40084536a1e2b5687248de68f5c8bf4fea9c84
1,863
py
Python
src/ripe_rainbow/domain/wrappers.py
ripe-tech/ripe-rainbow
12b430d15102ed6a731d239db00d32dae87384df
[ "Apache-2.0" ]
2
2019-06-11T09:19:48.000Z
2020-06-30T09:30:29.000Z
src/ripe_rainbow/domain/wrappers.py
ripe-tech/ripe-rainbow
12b430d15102ed6a731d239db00d32dae87384df
[ "Apache-2.0" ]
43
2019-06-06T10:06:46.000Z
2022-02-02T10:47:53.000Z
src/ripe_rainbow/domain/wrappers.py
ripe-tech/ripe-rainbow
12b430d15102ed6a731d239db00d32dae87384df
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from . import base from . import logic BASE_TUPLES = ( ("logic", base.LogicPart), ("interactions", base.InteractionsPart), ("waits", base.WaitsPart) ) COPPER_TUPLES = ( ("provision", logic.ProvisionPart), ("id", logic.RipeIdPart), ("cor...
23.582278
45
0.613527
673d7d1911c1c66a82a9a880467659df2d137205
1,858
py
Python
beatx/store/memcached.py
CyrusTheVirusG/celery-beatx
961ea826f763f2d7d23b8a65584b08db65e99535
[ "MIT" ]
null
null
null
beatx/store/memcached.py
CyrusTheVirusG/celery-beatx
961ea826f763f2d7d23b8a65584b08db65e99535
[ "MIT" ]
null
null
null
beatx/store/memcached.py
CyrusTheVirusG/celery-beatx
961ea826f763f2d7d23b8a65584b08db65e99535
[ "MIT" ]
null
null
null
try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from beatx import serializer class BaseStore: SCHEDULE_KEY = 'celery:schedule' LOCK_KEY = 'celery:beat-lock' def __init__(self, store): self.client = self.get_client_from_url(store) self.lock ...
24.447368
76
0.63563
0932f8ab6ebf5eb915f7021fc3609f04d686ecba
26,349
py
Python
plugins/modules/oci_mysql_configuration_facts.py
rishimahajan/oci-ansible-collection
3a0cfd55347466fcd8ab257d3d7c41d58f5469ab
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_mysql_configuration_facts.py
rishimahajan/oci-ansible-collection
3a0cfd55347466fcd8ab257d3d7c41d58f5469ab
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_mysql_configuration_facts.py
rishimahajan/oci-ansible-collection
3a0cfd55347466fcd8ab257d3d7c41d58f5469ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
39.38565
159
0.521272
486b32139417906e2228b0ff3ddb71dec7aa1430
28,338
py
Python
test/falco_test.py
dnwe/falco
b33fb6052a3d4e3b511241911367357a4259a7cf
[ "Apache-2.0" ]
3,813
2018-10-05T01:12:56.000Z
2022-03-31T18:08:48.000Z
test/falco_test.py
dnwe/falco
b33fb6052a3d4e3b511241911367357a4259a7cf
[ "Apache-2.0" ]
1,501
2018-10-05T00:34:56.000Z
2022-03-31T07:42:59.000Z
test/falco_test.py
dnwe/falco
b33fb6052a3d4e3b511241911367357a4259a7cf
[ "Apache-2.0" ]
629
2018-10-04T23:52:12.000Z
2022-03-30T14:33:10.000Z
#!/usr/bin/env python # # Copyright (C) 2019 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
40.482857
145
0.56493
44c9fce1f33756e15d069c0836bdd9c93890a09f
912
py
Python
examples/demo/shell/lines.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
examples/demo/shell/lines.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
null
null
null
examples/demo/shell/lines.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
"""This example displays some line plots in different colors and styles using the chaco.shell subpackage. The functions in the chaco.shell package allow us to quickly generate plots with some basic interactivity without using the object-oriented core of Chaco. """ from numpy import linspace, pi, sin, cos from chaco.s...
30.4
78
0.747807
32e97f8552bf38fe57789ee7cf77ad553ce12d04
1,315
py
Python
main.py
peaceknight05/sstmon
49163f1141ac4862908c3488a5c997021b2bf6dd
[ "MIT" ]
null
null
null
main.py
peaceknight05/sstmon
49163f1141ac4862908c3488a5c997021b2bf6dd
[ "MIT" ]
1
2018-07-29T04:17:14.000Z
2018-07-29T04:17:14.000Z
main.py
peaceknight05/sstmon
49163f1141ac4862908c3488a5c997021b2bf6dd
[ "MIT" ]
1
2018-07-29T11:36:53.000Z
2018-07-29T11:36:53.000Z
import ai import moveTypes import player import effect import random score = 0 trainerHealthReset = 100 #shorthands p = player.Player a = ai.Ai e = effect.Effect #intro print("Made By FOA Inc.") print("Welcome to the world of SSTmon! I'm Professor Oak.") nPlayer = str(input("What is your name?")) print("All right " +...
27.395833
76
0.614449
47bced8aa1b6c30f4338b6b775e5da9112c59d24
2,086
py
Python
00-renpythm-utils/generate_beatmap.py
cimo95/renpy-rhythm
80d2579217412691fa45f96676efd8b9533feeec
[ "MIT" ]
39
2021-05-06T14:55:02.000Z
2022-03-31T06:13:55.000Z
00-renpythm-utils/generate_beatmap.py
cimo95/renpy-rhythm
80d2579217412691fa45f96676efd8b9533feeec
[ "MIT" ]
6
2021-05-18T16:18:22.000Z
2021-12-07T04:49:13.000Z
00-renpythm-utils/generate_beatmap.py
cimo95/renpy-rhythm
80d2579217412691fa45f96676efd8b9533feeec
[ "MIT" ]
8
2021-03-04T19:49:11.000Z
2022-02-11T03:29:17.000Z
import os import sys # python-packages directory import_dir = os.path.abspath('python-packages') sys.path.append(import_dir) from aubio import source, onset # https://aubio.org/doc/latest/onset_2test-onset_8c-example.html # https://github.com/aubio/aubio/blob/master/python/demos/demo_onset.py # https://aubio.org/man...
34.766667
168
0.64094
c843c094bf368278d3c84f8507bef4dfbb952293
6,385
py
Python
CCNP TSHOOT POD/Tshoot_Pod.py
abhijitbakale/DC_Automation
6f7b135a715fb28854d8cca64d912c810738ae76
[ "Apache-2.0" ]
null
null
null
CCNP TSHOOT POD/Tshoot_Pod.py
abhijitbakale/DC_Automation
6f7b135a715fb28854d8cca64d912c810738ae76
[ "Apache-2.0" ]
null
null
null
CCNP TSHOOT POD/Tshoot_Pod.py
abhijitbakale/DC_Automation
6f7b135a715fb28854d8cca64d912c810738ae76
[ "Apache-2.0" ]
null
null
null
from netmiko import ConnectHandler import pod_info tshoot_pod = [pod_info.Tshoot_R1, pod_info.Tshoot_R2, pod_info.Tshoot_R3, pod_info.Tshoot_R4, pod_info.Tshoot_FR_SW, pod_info.Tshoot_ISP, pod_info.Tshoot_DSW1,pod_info.Tshoot_DSW2,pod_info.Tshoot_ASW1,pod_info.Tshoot_ASW2] for devices in tshoot_pod: ...
46.268116
104
0.654503
a504c6651ff00c24c22dcf753496267441888888
5,539
py
Python
docs/conf.py
Andrew-AbiMansour/cookiecutter-mmic
a9c3ddb4f1b7fbe1d3aa1cb49751feddcc5bddf0
[ "MIT" ]
null
null
null
docs/conf.py
Andrew-AbiMansour/cookiecutter-mmic
a9c3ddb4f1b7fbe1d3aa1cb49751feddcc5bddf0
[ "MIT" ]
null
null
null
docs/conf.py
Andrew-AbiMansour/cookiecutter-mmic
a9c3ddb4f1b7fbe1d3aa1cb49751feddcc5bddf0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
32.391813
116
0.65427
abc96d5af0fff68c175fb3a80adab6c3477d48a2
881
py
Python
atom/nucleus/python/test/test_page_goal_track.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_goal_track.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_goal_track.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
21.487805
82
0.701476
01691ac0678970af8a3e27a4de670ab9d72605ae
428
py
Python
pyleecan/Methods/Mesh/FPGNSeg/get_gauss_points.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
pyleecan/Methods/Mesh/FPGNSeg/get_gauss_points.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Mesh/FPGNSeg/get_gauss_points.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np def get_gauss_points(self): """ Return the gauss points and weights for Segments """ nb_gauss_points = self.nb_gauss_point gauss_pts = np.zeros([nb_gauss_points, 2], dtype=float) gauss_pts[:, 0] = np.polynomial.legendre.leggauss(nb_gauss_points)[0] we...
25.176471
73
0.714953
aefb77b941e7554d75d0d3500dc2643279c373c3
1,005
py
Python
lambdata/example_module.py
hmead15/lambdata
db8e7a65cd5e98f16c316379deb9f8dae568e1d4
[ "MIT" ]
null
null
null
lambdata/example_module.py
hmead15/lambdata
db8e7a65cd5e98f16c316379deb9f8dae568e1d4
[ "MIT" ]
null
null
null
lambdata/example_module.py
hmead15/lambdata
db8e7a65cd5e98f16c316379deb9f8dae568e1d4
[ "MIT" ]
null
null
null
"""Lambdata - a collection of Data Science helper functions""" # accessing libraries through pipenv import pandas as pd import numpy as np from sklearn.model_selection import train_test_split FAVORITE_NUMBERS = [2.71, 101, 55, 12, 3.14] # Implement your helper functions def split(df, target): split_df = df.copy...
23.928571
62
0.61194
2c1d949c25d3f03eecf377eae2f7f0d3ffd84788
7,998
py
Python
jpype/_jcollection.py
rbprogrammer/jpype
ca0ba0c977861fecb55e0940aaf71222f1759388
[ "Apache-2.0" ]
null
null
null
jpype/_jcollection.py
rbprogrammer/jpype
ca0ba0c977861fecb55e0940aaf71222f1759388
[ "Apache-2.0" ]
null
null
null
jpype/_jcollection.py
rbprogrammer/jpype
ca0ba0c977861fecb55e0940aaf71222f1759388
[ "Apache-2.0" ]
null
null
null
#***************************************************************************** # Copyright 2004-2008 Steve Menard # # 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....
27.867596
78
0.584896
1c38b64d2e426a225f775a07e698d2709589746f
1,362
py
Python
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
# Copyright 2o18 Premise Data # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.674419
74
0.762849
4892a8d5d6b1bffd5c1ba5c9f830334895e1727d
1,714
py
Python
video.py
thelukasssheee/CarND-Behavioral-Cloning-P3
837dd239ed27ecc697f32ee54237acca34509a5c
[ "MIT" ]
null
null
null
video.py
thelukasssheee/CarND-Behavioral-Cloning-P3
837dd239ed27ecc697f32ee54237acca34509a5c
[ "MIT" ]
null
null
null
video.py
thelukasssheee/CarND-Behavioral-Cloning-P3
837dd239ed27ecc697f32ee54237acca34509a5c
[ "MIT" ]
null
null
null
import moviepy.editor as mpy import argparse import os IMAGE_EXT = ['jpeg', 'png', 'jpg'] def main(): parser = argparse.ArgumentParser(description='Create driving video.') parser.add_argument( 'image_folder', type=str, default='', help='Path to image folder. The video will be...
33.607843
118
0.666278
fdd345f3284c33aea2dd541a46e0bf3aa78c3ff4
432
py
Python
packages/python/plotly/plotly/validators/box/_meta.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/box/_meta.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/box/_meta.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class MetaValidator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="meta", parent_name="box", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, array_ok=kwarg...
33.230769
72
0.648148
26292a9fc500b6426b023233e50af8fdbd69a314
638
py
Python
dashboard/migrations/0033_auto_20211029_2320.py
TheRK420/roommate
89b9146cc57e45e32dcc308f859e5f06190159da
[ "Apache-2.0" ]
1
2021-11-12T13:45:35.000Z
2021-11-12T13:45:35.000Z
dashboard/migrations/0033_auto_20211029_2320.py
TheRK420/roommate
89b9146cc57e45e32dcc308f859e5f06190159da
[ "Apache-2.0" ]
null
null
null
dashboard/migrations/0033_auto_20211029_2320.py
TheRK420/roommate
89b9146cc57e45e32dcc308f859e5f06190159da
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2021-10-29 17:50 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0032_auto_20211029_2051'), ] operations = [ migrations.AddField( model_name='payment_link', ...
25.52
100
0.605016
f3682daf42504bbfdff0b6573a999a1d3f9a63bf
11,441
py
Python
qa/rpc-tests/test_framework/bunode.py
dgenr8/BitcoinUnlimited
2ac746cd61db09b3c1c735eead11e59977e70190
[ "MIT" ]
7
2018-02-02T18:09:24.000Z
2021-11-08T09:42:15.000Z
qa/rpc-tests/test_framework/bunode.py
dgenr8/BitcoinUnlimited
2ac746cd61db09b3c1c735eead11e59977e70190
[ "MIT" ]
3
2019-01-17T03:44:03.000Z
2019-09-06T14:12:43.000Z
qa/rpc-tests/test_framework/bunode.py
dgenr8/BitcoinUnlimited
2ac746cd61db09b3c1c735eead11e59977e70190
[ "MIT" ]
1
2021-11-03T17:25:27.000Z
2021-11-03T17:25:27.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Unlimited developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from...
34.460843
102
0.608688
42597db56b9d0235a656074cb340c7954dc499c7
3,229
py
Python
smt/tests/test_extrap.py
meliani09/smt
af729143be09b012257bf81dcd3e2c8c40f65c96
[ "BSD-3-Clause" ]
1
2020-07-01T09:54:46.000Z
2020-07-01T09:54:46.000Z
smt/tests/test_extrap.py
yuhaibo2017/smt
ab3bda1e38ca3a785dfc0ed692f1437bf7e78bd3
[ "BSD-3-Clause" ]
null
null
null
smt/tests/test_extrap.py
yuhaibo2017/smt
ab3bda1e38ca3a785dfc0ed692f1437bf7e78bd3
[ "BSD-3-Clause" ]
1
2018-11-20T09:01:59.000Z
2018-11-20T09:01:59.000Z
''' Author: Dr. John T. Hwang <hwangjt@umich.edu> This package is distributed under New BSD license. ''' from __future__ import print_function, division import numpy as np import unittest import inspect from six import iteritems from collections import OrderedDict from smt.problems import Sphere, TensorProduct from...
28.575221
88
0.64664
c5d6d5cbfc5fb12d6c7eaf9a9a45d60a0c26c318
18,707
py
Python
__main__.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
null
null
null
__main__.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
6
2021-07-09T16:56:28.000Z
2022-03-12T00:58:06.000Z
__main__.py
deepspaceghost/demeter.py
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
1
2021-06-01T23:49:44.000Z
2021-06-01T23:49:44.000Z
import asyncio import commis import datetime import discord import logging import os import randfacts import random import requests from discord.ext import commands from geopy.geocoders import Nominatim handler = logging.FileHandler( encoding="utf-8", filename="discord_err.log", mode="w" ...
28.824345
113
0.560966
36e3c18cecefe3cf73c04a9a0f90369f9bfd1801
870
py
Python
src/echonn/ml/time_series_forecaster.py
larkwt96/honors-thesis
7e3a52c285c1fdaf4ae9659497154ba04e522f48
[ "MIT" ]
null
null
null
src/echonn/ml/time_series_forecaster.py
larkwt96/honors-thesis
7e3a52c285c1fdaf4ae9659497154ba04e522f48
[ "MIT" ]
null
null
null
src/echonn/ml/time_series_forecaster.py
larkwt96/honors-thesis
7e3a52c285c1fdaf4ae9659497154ba04e522f48
[ "MIT" ]
null
null
null
from abc import ABC import numpy as np class TimeSeriesForecaster(ABC): """ When it comes to data, here are the naming conventions and formats: t = the array of time points (shape: time) u = the matrix of inputs (shape: time x dimension) d = the target values (shape: time x dimension) y = the ...
24.166667
71
0.595402
77121f908710dabed9673a0039b9f4278179f0af
2,212
py
Python
cli/polyaxon/logger.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/logger.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/logger.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2019 Polyaxon, 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 o...
28.727273
88
0.686709
6be5b6b8edd3744d0fac6afc426e54e69fa5d7ac
2,563
py
Python
services/movies_auth/src/utils/permissions.py
svvladimir-ru/ugc_sprint_1
7ae4f9094f34981057f6c80d38bd96df6c96d2db
[ "MIT" ]
null
null
null
services/movies_auth/src/utils/permissions.py
svvladimir-ru/ugc_sprint_1
7ae4f9094f34981057f6c80d38bd96df6c96d2db
[ "MIT" ]
null
null
null
services/movies_auth/src/utils/permissions.py
svvladimir-ru/ugc_sprint_1
7ae4f9094f34981057f6c80d38bd96df6c96d2db
[ "MIT" ]
1
2021-09-30T09:49:40.000Z
2021-09-30T09:49:40.000Z
from functools import wraps from typing import Union, Optional from flask import abort from flask_jwt_extended import get_jwt_identity from models.users import User def permissions_required(*permissions: str, condition: Optional[dict] = None): """ A decorator to check user permissions for endpoint. If ...
35.109589
110
0.677721
c903d281c0186160d06bba8087dc5eb29b750643
7,464
py
Python
lib/filesystemhandlerextend.py
kdlucas/pyrering
349e20231f1a573e94591ee4fc926617a8828640
[ "Apache-2.0" ]
1
2016-09-07T05:01:06.000Z
2016-09-07T05:01:06.000Z
lib/filesystemhandlerextend.py
kdlucas/pyrering
349e20231f1a573e94591ee4fc926617a8828640
[ "Apache-2.0" ]
null
null
null
lib/filesystemhandlerextend.py
kdlucas/pyrering
349e20231f1a573e94591ee4fc926617a8828640
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2008 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
34.082192
79
0.674571
a984bde19740c4d8f372df0c850ca31e3ad885d5
3,783
py
Python
prediction_tasks/train_prediction.py
yangzhao-666/Transfer-Learning-and-Curriculum-Learning-in-Sokoban
6e50eec7603d05781fd1653589e606085920f99c
[ "MIT" ]
null
null
null
prediction_tasks/train_prediction.py
yangzhao-666/Transfer-Learning-and-Curriculum-Learning-in-Sokoban
6e50eec7603d05781fd1653589e606085920f99c
[ "MIT" ]
null
null
null
prediction_tasks/train_prediction.py
yangzhao-666/Transfer-Learning-and-Curriculum-Learning-in-Sokoban
6e50eec7603d05781fd1653589e606085920f99c
[ "MIT" ]
null
null
null
import os import torch import torch.nn as nn import torch.optim as optim import numpy as np from classifier import Classifier from data_utils import sampler import matplotlib.pyplot as plt def train(num_epoch, num_iter, batch_size, data_sampler, clf, criterion, optimizer, i_run): accs = [] for epoch in ra...
34.081081
122
0.562517
e88d482e054fa96a70bf5b59768adcc5149f4389
20,118
py
Python
test/functional/test_framework/util.py
Mantle-One/mantlecoin
61342ad672819d412b17ec110aca89a9d0205dcc
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
Mantle-One/mantlecoin
61342ad672819d412b17ec110aca89a9d0205dcc
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
Mantle-One/mantlecoin
61342ad672819d412b17ec110aca89a9d0205dcc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Mantle Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import unhexlify...
35.294737
112
0.639576
3cfbf797c6a949d832e3f401d0bf500bbf676c2b
10,306
py
Python
descarteslabs/scenes/collection.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
null
null
null
descarteslabs/scenes/collection.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
null
null
null
descarteslabs/scenes/collection.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Descartes Labs. # # 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 ...
32.821656
119
0.572288
5fc596d0a9b428d1329659116db6f461f61c61c5
4,115
py
Python
ask-sdk-model/ask_sdk_model/services/lwa/access_token_response.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
90
2018-09-19T21:56:42.000Z
2022-03-30T11:25:21.000Z
ask-sdk-model/ask_sdk_model/services/lwa/access_token_response.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
11
2018-09-23T12:16:48.000Z
2021-06-10T19:49:45.000Z
ask-sdk-model/ask_sdk_model/services/lwa/access_token_response.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
28
2018-09-19T22:30:38.000Z
2022-02-22T22:57:07.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights # Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or i...
31.653846
84
0.586634
310835c368f9c96fcd857c35b9e2d5eba188ad47
245,535
py
Python
python/caffe/proto/caffe_pb2.py
freelist/caffe-fast-rcnn-myfork
943eb264c3d8b099656b36dba49ad2ee6ab34589
[ "BSD-2-Clause" ]
null
null
null
python/caffe/proto/caffe_pb2.py
freelist/caffe-fast-rcnn-myfork
943eb264c3d8b099656b36dba49ad2ee6ab34589
[ "BSD-2-Clause" ]
null
null
null
python/caffe/proto/caffe_pb2.py
freelist/caffe-fast-rcnn-myfork
943eb264c3d8b099656b36dba49ad2ee6ab34589
[ "BSD-2-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: caffe.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mes...
43.106566
28,290
0.736726
77ef61f09ace3dd595d73d77a494bebcb0ff0e00
3,341
py
Python
sdk/python/pulumi_azure/storage/zip_blob.py
stack72/pulumi-azure
18245b4e74abbd3f768f9eda67adb1df609ff32e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/storage/zip_blob.py
stack72/pulumi-azure
18245b4e74abbd3f768f9eda67adb1df609ff32e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/storage/zip_blob.py
stack72/pulumi-azure
18245b4e74abbd3f768f9eda67adb1df609ff32e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class ZipBlob(pulumi.CustomResource):...
37.539326
281
0.685723
59e337cea64c889dc481fe6b016a5d19c2b09529
9,099
py
Python
remotestate/main/aws_table.py
LINKIT-Group/remotestate
87863d68c37acac71a508d8b67b7caa16dcab9bf
[ "MIT" ]
null
null
null
remotestate/main/aws_table.py
LINKIT-Group/remotestate
87863d68c37acac71a508d8b67b7caa16dcab9bf
[ "MIT" ]
null
null
null
remotestate/main/aws_table.py
LINKIT-Group/remotestate
87863d68c37acac71a508d8b67b7caa16dcab9bf
[ "MIT" ]
null
null
null
""" Copyright (c) 2019 LINKIT, The Netherlands. All Rights Reserved. Author(s): Anthony Potappel This software may be modified and distributed under the terms of the MIT license. See the LICENSE file for details. """ import sys import re import time # pylint: disable=E0401 import boto3 # pylint: disable=E0402 from ....
40.620536
92
0.612375