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
d3e8418d06138c6c7d035a29acbb7346c90cffce
414
py
Python
aliexpress/api/rest/CainiaoGlobalSolutionInquiry.py
bayborodin/aliexpress-sdk
89935adf46412d8d054fa80a19153971279c4106
[ "MIT" ]
3
2021-03-10T16:46:43.000Z
2022-03-29T15:28:50.000Z
aliexpress/api/rest/CainiaoGlobalSolutionInquiry.py
bayborodin/aliexpress-sdk
89935adf46412d8d054fa80a19153971279c4106
[ "MIT" ]
null
null
null
aliexpress/api/rest/CainiaoGlobalSolutionInquiry.py
bayborodin/aliexpress-sdk
89935adf46412d8d054fa80a19153971279c4106
[ "MIT" ]
2
2021-10-30T17:09:34.000Z
2021-11-25T11:50:52.000Z
from aliexpress.api.base import RestApi class CainiaoGlobalSolutionInquiryRequest(RestApi): def __init__(self, domain="gw.api.taobao.com", port=80): RestApi.__init__(self, domain, port) self.locale = None self.package_params = None self.seller_info_param = None self.trade_o...
29.571429
60
0.695652
336ad1fb2a90f41a22cffabd9726a6f360131682
6,012
py
Python
admin/admin_daemon.py
hku-systems/hams
3a5720657252c650c9a6c5d9b674f7ea6153e557
[ "Apache-2.0" ]
6
2020-08-19T11:46:23.000Z
2021-12-24T07:34:15.000Z
admin/admin_daemon.py
hku-systems/hams
3a5720657252c650c9a6c5d9b674f7ea6153e557
[ "Apache-2.0" ]
1
2021-03-25T23:40:15.000Z
2021-03-25T23:40:15.000Z
admin/admin_daemon.py
hku-systems/hams
3a5720657252c650c9a6c5d9b674f7ea6153e557
[ "Apache-2.0" ]
2
2020-10-31T16:48:39.000Z
2021-03-07T09:14:25.000Z
import base64 import os import time from concurrent import futures from threading import Thread,Lock from google.protobuf.timestamp_pb2 import Timestamp import grpc from hams_admin import (HamsConnection, DockerContainerManager, graph_parser, redis_client) from hams_admin.deployers import ...
37.111111
202
0.637558
0ff1bff8f2ab650e4c4f69dfeeac0acc118d2c65
6,014
py
Python
inference.py
kyungwon-dev/model-optimization
65a2dc24f2ad4c0af031562f89bf9743234fc544
[ "MIT" ]
null
null
null
inference.py
kyungwon-dev/model-optimization
65a2dc24f2ad4c0af031562f89bf9743234fc544
[ "MIT" ]
null
null
null
inference.py
kyungwon-dev/model-optimization
65a2dc24f2ad4c0af031562f89bf9743234fc544
[ "MIT" ]
null
null
null
"""Example code for submit. - Author: Junghoon Kim, Jongkuk Lim - Contact: placidus36@gmail.com, lim.jeikei@gmail.com """ import argparse import json import os import time from datetime import datetime import torch from torch.utils.data import DataLoader from torchvision.datasets import ImageFolder from torchvision.t...
32.333333
173
0.654307
2f4a2822d4805087816e500f77467fc588016a2b
1,736
py
Python
objects_DOMINE/PFAM.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
1
2019-03-11T12:59:37.000Z
2019-03-11T12:59:37.000Z
objects_DOMINE/PFAM.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
21
2018-10-17T14:52:30.000Z
2019-06-03T12:43:58.000Z
objects_DOMINE/PFAM.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
6
2019-02-28T07:40:14.000Z
2019-09-23T13:31:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 10 14:49:43 2018 @author: Diogo """ from SQL_obj_DOMINE.PFAM_SQL import _PFAM_sql class PFAM_ddi(object): """ This class treat the PFAM object has it exists in PFAM table database DOMINE By default, all FK are in the lasts positions in the parameters declar...
27.125
81
0.604839
8be8833651d3cd2df08fa0edaaf5397924ac9ef7
387
py
Python
Python version/languages/pddl/pddl_input_program.py
DomenicoIngrati/EmbASP
05000e0e65e7c84609f45e76dd32f7abaa0c5fbe
[ "MIT" ]
null
null
null
Python version/languages/pddl/pddl_input_program.py
DomenicoIngrati/EmbASP
05000e0e65e7c84609f45e76dd32f7abaa0c5fbe
[ "MIT" ]
null
null
null
Python version/languages/pddl/pddl_input_program.py
DomenicoIngrati/EmbASP
05000e0e65e7c84609f45e76dd32f7abaa0c5fbe
[ "MIT" ]
null
null
null
from base.input_program import InputProgram class PDDLInputProgram(InputProgram): """A generic PDDL program.""" def __init__(self, progType): super(PDDLInputProgram, self).__init__() self.__programs_type = progType # Where type of program are stored def get_programs_type(self): ...
27.642857
75
0.697674
a302cffbd1d31dc31a4a58196d43ed6932bf60d6
18,308
py
Python
nipyapi/nifi/models/controller_status_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/nifi/models/controller_status_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/nifi/models/controller_status_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ NiFi Rest API The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
33.531136
478
0.655615
9866bdd039da49d9aecf7bcc5eea2f3c77aad3e9
26,676
py
Python
quarkchain/cluster/tests/test_cluster.py
tim-yoshi/pyquarkchain
1847542c166a180b5ffc3c6e917751be85fa15a6
[ "MIT" ]
3
2019-03-14T17:08:07.000Z
2019-10-02T11:13:53.000Z
quarkchain/cluster/tests/test_cluster.py
tim-yoshi/pyquarkchain
1847542c166a180b5ffc3c6e917751be85fa15a6
[ "MIT" ]
null
null
null
quarkchain/cluster/tests/test_cluster.py
tim-yoshi/pyquarkchain
1847542c166a180b5ffc3c6e917751be85fa15a6
[ "MIT" ]
1
2019-05-04T22:57:29.000Z
2019-05-04T22:57:29.000Z
import unittest from quarkchain.genesis import GenesisManager from quarkchain.cluster.tests.test_utils import ( create_transfer_transaction, ClusterContext, ) from quarkchain.core import Address, Branch, Identity, TokenBalanceMap from quarkchain.evm import opcodes from quarkchain.utils import call_async, assert...
41.877551
95
0.587494
038319c71ac137b03d1c090207d37505d3559e2d
5,611
py
Python
components/dash-table/tests/selenium/test_markdown.py
emilhe/dash
c313d1b1c5aba054073b4925122accef5642ce5d
[ "MIT" ]
17,143
2015-07-14T17:19:05.000Z
2022-03-31T10:03:39.000Z
components/dash-table/tests/selenium/test_markdown.py
sthagen/dash
b3918ff798a51462687ff36e9e56c079c9f463cb
[ "MIT" ]
1,630
2015-11-17T22:15:41.000Z
2022-03-31T09:15:07.000Z
components/dash-table/tests/selenium/test_markdown.py
sthagen/dash
b3918ff798a51462687ff36e9e56c079c9f463cb
[ "MIT" ]
1,970
2015-07-12T07:05:14.000Z
2022-03-30T19:58:09.000Z
import dash from dash.testing import wait from utils import get_props, generate_markdown_mock_data from dash.dash_table import DataTable import pytest def get_app(props=dict(), data_fn=generate_markdown_mock_data, assets_folder=None): app = ( dash.Dash(__name__) if assets_folder is None ...
24.718062
83
0.602032
18e861d37e21e819bc9fae1c260ab097bb77e00d
32,602
py
Python
tests/test_cli_main.py
cgomesu/streamlink
dd63e63c81f0fe3b7acf79ab094ec393b516b981
[ "BSD-2-Clause" ]
4
2017-04-30T11:08:08.000Z
2022-01-31T04:26:05.000Z
tests/test_cli_main.py
cgomesu/streamlink
dd63e63c81f0fe3b7acf79ab094ec393b516b981
[ "BSD-2-Clause" ]
null
null
null
tests/test_cli_main.py
cgomesu/streamlink
dd63e63c81f0fe3b7acf79ab094ec393b516b981
[ "BSD-2-Clause" ]
3
2021-10-10T12:30:16.000Z
2022-03-03T12:51:38.000Z
import datetime import os import sys import unittest from pathlib import Path, PosixPath, WindowsPath from textwrap import dedent from unittest.mock import Mock, call, patch import freezegun import streamlink_cli.main import tests.resources from streamlink.session import Streamlink from streamlink.stream.stream impor...
39.807082
126
0.620913
53d680752f6a5cb84d5a1f1a7365d8dea81c4947
2,212
py
Python
pyEX/tests/test_alternative.py
briangu/pyEX
2eacc322932f4b686817b3d162cb1e4f399fd696
[ "Apache-2.0" ]
null
null
null
pyEX/tests/test_alternative.py
briangu/pyEX
2eacc322932f4b686817b3d162cb1e4f399fd696
[ "Apache-2.0" ]
null
null
null
pyEX/tests/test_alternative.py
briangu/pyEX
2eacc322932f4b686817b3d162cb1e4f399fd696
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # # Copyright (c) 2020, the pyEX authors. # # This file is part of the jupyterlab_templates library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # # for Coverage import time ...
31.15493
87
0.607143
0503261b0a9299bf73042392cf49dce0d2c9b5aa
2,865
py
Python
tests/test_double_headers.py
papapumpnz/slowapi-1
8cf5292c8d32e835bcde3998e8f3b23763709974
[ "MIT" ]
null
null
null
tests/test_double_headers.py
papapumpnz/slowapi-1
8cf5292c8d32e835bcde3998e8f3b23763709974
[ "MIT" ]
null
null
null
tests/test_double_headers.py
papapumpnz/slowapi-1
8cf5292c8d32e835bcde3998e8f3b23763709974
[ "MIT" ]
null
null
null
import hiro # type: ignore import pytest # type: ignore from starlette.requests import Request from starlette.responses import PlainTextResponse, Response from starlette.testclient import TestClient from slowapi.util import get_ipaddr from tests import TestSlowapi def get_user_rate_limit() -> str: return "1/10...
32.191011
95
0.644677
ce06e89d4886a3547dd3ba54eace2fc3d02e8598
8,387
py
Python
example/ssd/symbol/symbol_vgg16_reduced.py
Abusnina/mxnet
7f8d94a24bf64fe0f24712a7952a09725c2df9bd
[ "Apache-2.0" ]
6
2017-06-09T02:32:10.000Z
2020-03-18T03:17:00.000Z
example/ssd/symbol/symbol_vgg16_reduced.py
dmmiller612/mxnet
3f410c23cb02df64625d7c8f9f299b580236f6a5
[ "Apache-2.0" ]
null
null
null
example/ssd/symbol/symbol_vgg16_reduced.py
dmmiller612/mxnet
3f410c23cb02df64625d7c8f9f299b580236f6a5
[ "Apache-2.0" ]
6
2017-06-27T06:52:40.000Z
2019-11-04T14:34:25.000Z
import mxnet as mx from common import conv_act_layer from common import multibox_layer def get_symbol_train(num_classes=20): """ Single-shot multi-box detection with VGG 16 layers ConvNet This is a modified version, with fc6/fc7 layers replaced by conv layers And the network is slightly smaller than or...
47.384181
89
0.650888
c6bda0d2036532c262bb3f4057718ae41c059d26
2,121
py
Python
cosmosis/datablock/generate_sections.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-09-15T10:10:26.000Z
2021-09-15T10:10:26.000Z
cosmosis/datablock/generate_sections.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
null
null
null
cosmosis/datablock/generate_sections.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
from __future__ import print_function import sys fortran_template = """ ! This module is auto-generated from the file cosmosis/datablock/section_names.txt. ! Edit that and then re-make to add your own pre-defined section names. module cosmosis_section_names implicit none {0} end module """ c_template = """ /...
29.054795
114
0.72843
77e5e28957587a8bf66ee5405bac96d7321ab040
4,576
py
Python
Lib/test/test_dictcomps.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
Lib/test/test_dictcomps.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
Lib/test/test_dictcomps.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import unittest # For scope testing. g = "Global variable" class DictComprehensionTest(unittest.TestCase): def test_basics(self): expected = {0: 10, 1: 11, 2: 12, 3: 13, 4: 14, 5: 15, 6: 16, 7: 17, 8: 18, 9: 19} actual = {k: k + 10 for k in range(10)} self.assertEqual...
38.779661
79
0.476399
aa587db0b8353d794b61c2fa0cdf9cffbf74bfdb
752
py
Python
wesay/sikuli/examples/test_and_log/yattag_templates/thing_yattag.py
rrmhearts/sikuli
63151fe306a0a86d24b5f4c1845ccbeee5c53939
[ "MIT" ]
null
null
null
wesay/sikuli/examples/test_and_log/yattag_templates/thing_yattag.py
rrmhearts/sikuli
63151fe306a0a86d24b5f4c1845ccbeee5c53939
[ "MIT" ]
null
null
null
wesay/sikuli/examples/test_and_log/yattag_templates/thing_yattag.py
rrmhearts/sikuli
63151fe306a0a86d24b5f4c1845ccbeee5c53939
[ "MIT" ]
null
null
null
from __future__ import with_statement from sikuli import * from yattag import Doc import type0, type1, type2 def template(failed_test_data): doc, tag, text = Doc().tagtext() doc.asis('<!DOCTYPE html>') with tag("html", lang="en_us"): with tag("head"): with tag("title"): ...
28.923077
55
0.484043
9df43967d48e51ba913c7247f9c1fc084de44efb
38,866
py
Python
src/sage/combinat/ribbon_tableau.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1
2021-10-18T01:24:04.000Z
2021-10-18T01:24:04.000Z
src/sage/combinat/ribbon_tableau.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/ribbon_tableau.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
null
null
null
r""" Ribbon Tableaux """ # **************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WITHOU...
33.390034
446
0.501672
27b983f76e1294454190dabf6b6b56f3ee82a7fa
4,529
py
Python
services/other/crud.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
services/other/crud.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
services/other/crud.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
import typing import sqlalchemy from pydantic import BaseModel from sqlalchemy.ext.asyncio import AsyncSession from db import Base ModelType = typing.TypeVar('ModelType', bound=Base) CreateSchemaType = typing.TypeVar('CreateSchemaType', bound=BaseModel) UpdateSchemaType = typing.TypeVar('UpdateSchemaType', bound=Bas...
32.120567
116
0.544712
b59dae82e9731ed6b3fc1e91e4e82b343ee97f80
6,454
py
Python
Snow-Cooling/Libraries/HT_internal_convection.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
7
2017-06-02T20:31:22.000Z
2021-04-05T13:52:33.000Z
Snow-Cooling/Libraries/HT_internal_convection.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
null
null
null
Snow-Cooling/Libraries/HT_internal_convection.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
9
2019-01-24T17:43:41.000Z
2021-07-25T18:08:34.000Z
""" Object name: PipeFlow """ import numpy as np import scipy import scipy.optimize class PipeFlow(object): """ Determination of Nu, pressure drop, mean temperature for internal convection import HT_internal_convection.py as intconv pipe =intconv.PipeFlow(D, Re=0.0, Um = 0.0, mdot = 0.0, ...
36.055866
113
0.520762
906d802a8f0c062e57dbcd65e88b4fa7e0087bf0
1,913
py
Python
lib/test/BindingsTest/test_common_types.py
alrikai/deitytd
0e7b504e6ce46df3de9a920650c5bd44324308cf
[ "MIT" ]
1
2019-04-12T18:37:26.000Z
2019-04-12T18:37:26.000Z
lib/test/BindingsTest/test_common_types.py
alrikai/deitytd
0e7b504e6ce46df3de9a920650c5bd44324308cf
[ "MIT" ]
null
null
null
lib/test/BindingsTest/test_common_types.py
alrikai/deitytd
0e7b504e6ce46df3de9a920650c5bd44324308cf
[ "MIT" ]
null
null
null
import pyDeityTD as deitytd import pytest def test_range_init(): default_range = deitytd.range() assert default_range.low == 0 assert default_range.high == 0 custom_range = deitytd.range(-1, 10) assert custom_range.low == -1 assert custom_range.high == 10 custom_range = deitytd.range(0....
25.171053
51
0.673288
f3962c0bd056d34fe1500c2aacb30dbd8664d5a7
6,271
py
Python
k2/python/tests/intersect_dense_pruned_test.py
open-speech/sequeender
7a64e1a7d8a4b05b0b82e17c542f9f7f943a41e0
[ "MIT" ]
5
2020-11-19T15:49:55.000Z
2021-06-10T23:51:52.000Z
k2/python/tests/intersect_dense_pruned_test.py
open-speech/sequeender
7a64e1a7d8a4b05b0b82e17c542f9f7f943a41e0
[ "MIT" ]
null
null
null
k2/python/tests/intersect_dense_pruned_test.py
open-speech/sequeender
7a64e1a7d8a4b05b0b82e17c542f9f7f943a41e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R intersect_dense_pruned_test_py import unittest import k2 import torch class TestIntersectDensePrun...
36.888235
76
0.495296
4fd0a41802241b2d3a65a3fccdec88f8f792cfae
4,799
py
Python
blocks/bool.py
antonhoess/crazy_matrix
fbd2a7a59c21b4ab43dc6a5ded38da19ee1280cd
[ "BSD-3-Clause" ]
1
2021-02-04T20:39:25.000Z
2021-02-04T20:39:25.000Z
blocks/bool.py
antonhoess/crazy_matrix
fbd2a7a59c21b4ab43dc6a5ded38da19ee1280cd
[ "BSD-3-Clause" ]
null
null
null
blocks/bool.py
antonhoess/crazy_matrix
fbd2a7a59c21b4ab43dc6a5ded38da19ee1280cd
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional, Sequence from base.block import BlockFixed, Block, IBlock __author__ = "Anton Höß" __copyright__ = "Copyright 2021" class AndN(Block): def __init__(self, prev_blocks: Sequence[IBlock] = None, name: Optional[str] = None): Block.__init__(self, None, 1, name=name) if ...
27.267045
126
0.546572
86cbadd36c6c83daa7b6064505b5d2e1763fecde
1,701
py
Python
generator/contact.py
Aks1389/python_training
8c1561e4f0da62cb3fca3b5307c4bfecc8e4dda2
[ "Apache-2.0" ]
null
null
null
generator/contact.py
Aks1389/python_training
8c1561e4f0da62cb3fca3b5307c4bfecc8e4dda2
[ "Apache-2.0" ]
null
null
null
generator/contact.py
Aks1389/python_training
8c1561e4f0da62cb3fca3b5307c4bfecc8e4dda2
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import os.path import jsonpickle import getopt import sys import random import string import datetime import re try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 3 f = "da...
30.927273
110
0.656085
7716c24e58a30826594968bda0f72a20046cb117
5,250
py
Python
utils.py
Sooraj-s-98/Simulated-Self-Driving-Car
d102372a6cc0ef375a6ff9fffb9c5f7e8e6a5b90
[ "MIT" ]
7
2017-09-22T01:53:51.000Z
2019-01-20T04:45:05.000Z
utils.py
Sooraj-s-98/Simulated-Self-Driving-Car
d102372a6cc0ef375a6ff9fffb9c5f7e8e6a5b90
[ "MIT" ]
1
2018-04-10T05:49:53.000Z
2018-04-14T05:02:41.000Z
utils.py
Sooraj-s-98/Simulated-Self-Driving-Car
d102372a6cc0ef375a6ff9fffb9c5f7e8e6a5b90
[ "MIT" ]
6
2019-06-28T05:10:39.000Z
2021-11-24T11:04:32.000Z
import cv2, os import numpy as np import matplotlib.image as mpimg IMAGE_HEIGHT, IMAGE_WIDTH, IMAGE_CHANNELS = 66, 200, 3 INPUT_SHAPE = (IMAGE_HEIGHT, IMAGE_WIDTH, IMAGE_CHANNELS) def load_image(data_dir, image_file): """ Load RGB images from a file """ return mpimg.imread(os.path.join(data_dir, imag...
33.018868
95
0.647429
d9929ced832f73ee33cb4cf65707a8e64b060fef
2,812
py
Python
src/year2021/day15a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
src/year2021/day15a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
src/year2021/day15a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
"""2021 - Day 15 Part 1: Chiton.""" from __future__ import annotations from typing import Iterator from typing import NamedTuple SHIFTS = { (0, -1), (+1, 0), (0, +1), (-1, 0), } class RiskMap: def __init__(self, data: list[list[int]]): self.data = data @classmethod def from_task...
25.563636
70
0.558321
5706d09702129703023b669ed0d6e0807a0b6ff6
9,835
py
Python
protocol-generator/bin/gen_protocol_ext.py
maxwell-dev/maxwell-protocol-rust
780d400757720cec46a6995b4d5cf10cc6b76de0
[ "Apache-2.0" ]
null
null
null
protocol-generator/bin/gen_protocol_ext.py
maxwell-dev/maxwell-protocol-rust
780d400757720cec46a6995b4d5cf10cc6b76de0
[ "Apache-2.0" ]
null
null
null
protocol-generator/bin/gen_protocol_ext.py
maxwell-dev/maxwell-protocol-rust
780d400757720cec46a6995b4d5cf10cc6b76de0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import re from os.path import basename def parse(): parser = argparse.ArgumentParser( description="The gernerator for maxwell protocol in rust." ) parser.add_argument("--proto_file", required=True, type=argparse.FileType("r")) par...
38.720472
132
0.592679
adb0897a441f88e4518a56a143924d2f139526c8
5,849
py
Python
rgb_text2.py
slzatz/esp8266
687a0ff1cf2326f7c911e90026811036575932d1
[ "MIT" ]
2
2017-05-25T23:15:22.000Z
2019-09-29T02:13:13.000Z
rgb_text2.py
slzatz/esp8266
687a0ff1cf2326f7c911e90026811036575932d1
[ "MIT" ]
null
null
null
rgb_text2.py
slzatz/esp8266
687a0ff1cf2326f7c911e90026811036575932d1
[ "MIT" ]
2
2019-09-29T02:13:14.000Z
2019-11-06T07:49:21.000Z
''' This script is used in conjunction with ili9341_text2.py and font2.py to utilize larger fonts on the Adafruit TFT FeatherWing - 2.4" 320x240 Touchscreen. This script is imported by ili9341_text2.py -- both that script and this one are being frozen into the Micropython firmware by being placed in the micropython/es...
33.422857
89
0.574286
c44c816d93a99869a51752088824f12bb2b8857d
19,207
py
Python
buildscripts/hang_analyzer.py
EdwardPrentice/wrongo
1e7c9136f5fab7040b5bd5df51b4946876625c88
[ "Apache-2.0" ]
2
2021-08-19T12:41:45.000Z
2021-08-19T12:48:10.000Z
buildscripts/hang_analyzer.py
EdwardPrentice/wrongo
1e7c9136f5fab7040b5bd5df51b4946876625c88
[ "Apache-2.0" ]
null
null
null
buildscripts/hang_analyzer.py
EdwardPrentice/wrongo
1e7c9136f5fab7040b5bd5df51b4946876625c88
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Hang Analyzer A prototype hang analyzer for Evergreen integration to help investigate test timeouts 1. Script supports taking dumps, and/or dumping a summary of useful information about a process 2. Script will iterate through a list of interesting processes, and run the tools from step ...
33.99469
157
0.614568
c0c669d109a5dcdeff2a354b0027abc710898a0a
2,716
py
Python
hackerearth/Algorithms/Where is Checkerboard/test.py
HBinhCT/Q-project
a9876c09b0bab096ef0c772edfa05427ae091e03
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Where is Checkerboard/test.py
HBinhCT/Q-project
a9876c09b0bab096ef0c772edfa05427ae091e03
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Where is Checkerboard/test.py
HBinhCT/Q-project
a9876c09b0bab096ef0c772edfa05427ae091e03
[ "MIT" ]
null
null
null
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch class TestQ(unittest.TestCase): @patch('builtins.input', side_effect=[ '42 42', '__________________________________________', '__________________________________________', '____________...
43.806452
53
0.571429
db54390e6f992ce8ac6c02b0c5d6e04d50097a89
1,375
py
Python
chatterbot/ext/telegram_chatterbot/chatterbot.py
19-1-skku-oss/2019-1-OSS-L3
46234df5431661a4c664f420e2f99ceccc4b39f7
[ "BSD-3-Clause" ]
2
2019-04-16T10:15:39.000Z
2019-04-16T10:18:41.000Z
chatterbot/ext/telegram_chatterbot/chatterbot.py
19-1-skku-oss/2019-1-OSS-L3
46234df5431661a4c664f420e2f99ceccc4b39f7
[ "BSD-3-Clause" ]
22
2019-05-28T07:13:25.000Z
2019-06-11T07:16:51.000Z
chatterbot/ext/telegram_chatterbot/chatterbot.py
19-1-skku-oss/2019-1-OSS-L3
46234df5431661a4c664f420e2f99ceccc4b39f7
[ "BSD-3-Clause" ]
12
2019-05-29T11:20:15.000Z
2022-02-08T06:30:26.000Z
from chatterbot import ChatBot as ChatterBot from chatterbot.conversation import Statement class ChatBot: def __init__(self, name='', chatbot=None): self.name = name self.chatbot = self.default_bot(name) if chatbot is None else chatbot def get_name(self): return self.name def lea...
31.25
78
0.554909
5284c5b2a8bbec081d164a97cca212e28cf62db1
7,783
py
Python
tests/test_file.py
ActivisionGameScience/assertpy
c0989de171bcf3e21dbad9415ff9d3b8f5fe78fc
[ "BSD-3-Clause" ]
246
2015-01-14T01:40:03.000Z
2021-08-03T02:50:50.000Z
tests/test_file.py
ActivisionGameScience/assertpy
c0989de171bcf3e21dbad9415ff9d3b8f5fe78fc
[ "BSD-3-Clause" ]
98
2015-01-01T14:28:55.000Z
2019-11-14T21:36:18.000Z
tests/test_file.py
ActivisionGameScience/assertpy
c0989de171bcf3e21dbad9415ff9d3b8f5fe78fc
[ "BSD-3-Clause" ]
54
2015-01-14T01:42:10.000Z
2019-11-18T10:04:42.000Z
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # 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 ...
39.912821
112
0.667223
a64355f8b84e97edd01e6595ac570ac17f27cdf5
28,194
py
Python
Utils/plot.py
kostyanoob/Power
df71c086e81966653674f74dc4eeb562e8eeadc0
[ "MIT" ]
8
2021-02-15T07:34:31.000Z
2022-02-27T17:30:46.000Z
Utils/plot.py
kostyanoob/Power
df71c086e81966653674f74dc4eeb562e8eeadc0
[ "MIT" ]
4
2021-05-27T10:32:38.000Z
2022-02-10T03:46:07.000Z
Utils/plot.py
kostyanoob/Power
df71c086e81966653674f74dc4eeb562e8eeadc0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib import matplotlib.patches as mpatches from matplotlib.text import TextPath matplotlib.use('Agg') import matplotlib.pylab as pylab import matplotlib.font_manager import sys import os from matplotlib import colors as mcolors from scipy.signal import savgol_filter import logging mpl_lo...
45.843902
229
0.648791
f45392bcbe7d284a44770cd9a3b556cf0ba1478e
2,432
py
Python
src/pandemy/_datetime.py
antonlydell/Pandemy
e64e836ca35dff926ee6abf93cc2cd9aa2feb798
[ "MIT" ]
null
null
null
src/pandemy/_datetime.py
antonlydell/Pandemy
e64e836ca35dff926ee6abf93cc2cd9aa2feb798
[ "MIT" ]
1
2022-02-12T21:21:00.000Z
2022-02-12T21:21:00.000Z
src/pandemy/_datetime.py
antonlydell/Pandemy
e64e836ca35dff926ee6abf93cc2cd9aa2feb798
[ "MIT" ]
null
null
null
"""Internal module that contains functions to handle datetime related operations.""" # =============================================================== # Imports # =============================================================== # Standard Library import logging from typing import Optional # Third Party import pandas ...
32.426667
96
0.536595
a54155ee4e32b18110e93ceb3a5064cd71e1fec0
2,489
py
Python
qa/rpc-tests/mempool_spendcoinbase.py
Patrick-W-McMahon/MagMellDollar
cb5a139e3a1d8f3196d7f1d25321d9839b51295b
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_spendcoinbase.py
Patrick-W-McMahon/MagMellDollar
cb5a139e3a1d8f3196d7f1d25321d9839b51295b
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_spendcoinbase.py
Patrick-W-McMahon/MagMellDollar
cb5a139e3a1d8f3196d7f1d25321d9839b51295b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Magmelldollar Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test spending coinbase transactions. # The coinbase transaction in block N can appear in block ...
38.890625
104
0.691844
04635d24125f9acefb530cb90b2fa6c94a4f5691
2,087
py
Python
migrations_azure/versions/65c5753b57e0_cm_354_add_signup_table.py
ThembiNsele/ClimateMind-Backend
0e418000b2a0141a1e4a7c11dbe3564082a3f4bb
[ "MIT" ]
6
2020-08-20T10:49:59.000Z
2022-01-24T16:49:46.000Z
migrations_azure/versions/65c5753b57e0_cm_354_add_signup_table.py
ThembiNsele/ClimateMind-Backend
0e418000b2a0141a1e4a7c11dbe3564082a3f4bb
[ "MIT" ]
95
2020-07-24T22:32:34.000Z
2022-03-05T15:01:16.000Z
migrations_azure/versions/65c5753b57e0_cm_354_add_signup_table.py
ThembiNsele/ClimateMind-Backend
0e418000b2a0141a1e4a7c11dbe3564082a3f4bb
[ "MIT" ]
5
2020-07-30T17:29:09.000Z
2021-01-10T19:46:15.000Z
"""CM-354 add signup table Revision ID: 65c5753b57e0 Revises: 153174730e99 Create Date: 2021-01-10 16:40:00.200713 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mssql # revision identifiers, used by Alembic. revision = "65c5753b57e0" down_revision = "153174730e99" branch_labels =...
28.589041
82
0.599904
d1cb7af9c77ba40280e3a6e45c2798486d92edd9
798
py
Python
data/contacts.py
anatoly-zubov/python_training
1bb99584c8d947f2c676ed55487863055c4db14b
[ "Apache-2.0" ]
null
null
null
data/contacts.py
anatoly-zubov/python_training
1bb99584c8d947f2c676ed55487863055c4db14b
[ "Apache-2.0" ]
null
null
null
data/contacts.py
anatoly-zubov/python_training
1bb99584c8d947f2c676ed55487863055c4db14b
[ "Apache-2.0" ]
null
null
null
import random import string from model.group_contact import Group_contact testdata = [ Group_contact(firstname="firstname1", lastname="lastname1", mobile="11111111", email="email1"), Group_contact(firstname="firstname2", lastname="lastname2", mobile="22222222", email="email2") ] """ def random_string(prefix,m...
39.9
99
0.703008
e632eccffbd74a38d7c62d632516014e2e33b397
5,929
py
Python
experiments/Set-005/X-002/generate-userdata.py
danielfdickinson/ivc-in-the-wtg-experiments
1f08ff5a5a09380f2b228f661553b6db35c20b5b
[ "MIT" ]
null
null
null
experiments/Set-005/X-002/generate-userdata.py
danielfdickinson/ivc-in-the-wtg-experiments
1f08ff5a5a09380f2b228f661553b6db35c20b5b
[ "MIT" ]
null
null
null
experiments/Set-005/X-002/generate-userdata.py
danielfdickinson/ivc-in-the-wtg-experiments
1f08ff5a5a09380f2b228f661553b6db35c20b5b
[ "MIT" ]
null
null
null
import base64 import gzip import os import sys import configparser from jinja2 import Environment, FileSystemLoader, select_autoescape, StrictUndefined from jinja2.exceptions import UndefinedError def read_config( defaults={ "delete_if_exists": "no", "remember_password": "yes", "userdata"...
38.251613
118
0.578006
dd26206d53ca057d9016d3d4d82265f04b72cf37
5,645
py
Python
SBaaS_thermodynamics/stage03_quantification_dG_p_postgresql_models.py
dmccloskey/SBaaS_thermodynamics
0eeed0191f952ea0226ab8bbc234a30638fb2f9f
[ "MIT" ]
null
null
null
SBaaS_thermodynamics/stage03_quantification_dG_p_postgresql_models.py
dmccloskey/SBaaS_thermodynamics
0eeed0191f952ea0226ab8bbc234a30638fb2f9f
[ "MIT" ]
null
null
null
SBaaS_thermodynamics/stage03_quantification_dG_p_postgresql_models.py
dmccloskey/SBaaS_thermodynamics
0eeed0191f952ea0226ab8bbc234a30638fb2f9f
[ "MIT" ]
null
null
null
#SBaaS base from SBaaS_base.postgresql_orm_base import * class data_stage03_quantification_dG_p(Base): __tablename__ = 'data_stage03_quantification_dG_p' id = Column(Integer, Sequence('data_stage03_quantification_dG_p_id_seq'), primary_key=True) experiment_id = Column(String(50)) model_id = Column(Strin...
40.321429
109
0.638264
35846e80984f6abefee6390e1138ada02a93f181
790
py
Python
parser/utils.py
qmzrjf/parser_Work
d3825401dc79ec37809dcd2391c417aeb538a792
[ "MIT" ]
null
null
null
parser/utils.py
qmzrjf/parser_Work
d3825401dc79ec37809dcd2391c417aeb538a792
[ "MIT" ]
null
null
null
parser/utils.py
qmzrjf/parser_Work
d3825401dc79ec37809dcd2391c417aeb538a792
[ "MIT" ]
null
null
null
import random from time import sleep import json import sqlite3 from config import config def write_json(dict_js): try: data = json.load(open(config.JSON_PATH)) except: data = [] data.append(dict_js) with open(config.JSON_PATH, 'w') as f: json.dump(data, f, indent=2, ensure...
18.809524
85
0.618987
1eb37c01b1c2de1e0177807ea60ebaa116390907
2,265
py
Python
tests/formats/mysql/file_reader/parsers/test_index_unique.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
10
2018-04-09T08:39:42.000Z
2022-03-14T15:36:05.000Z
tests/formats/mysql/file_reader/parsers/test_index_unique.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
14
2018-05-02T11:14:08.000Z
2022-01-15T18:48:54.000Z
tests/formats/mysql/file_reader/parsers/test_index_unique.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
5
2018-07-18T02:20:48.000Z
2022-02-19T09:32:07.000Z
import unittest from mygrations.formats.mysql.file_reader.parsers.index_unique import index_unique class test_index_unique(unittest.TestCase): def test_simple(self): # parse a typical UNIQUE KEY parser = index_unique() returned = parser.parse('UNIQUE KEY `users_email` (`email`),') ...
35.390625
98
0.653863
2c460bddd3a4e4ed6cbb6d4ec6e2eb7b40b56012
603
py
Python
survey/actions.py
TheWITProject/MentorApp
2f08b87a7cde6d180e16d6f37d0b8019b8361638
[ "MIT" ]
null
null
null
survey/actions.py
TheWITProject/MentorApp
2f08b87a7cde6d180e16d6f37d0b8019b8361638
[ "MIT" ]
65
2020-02-04T22:31:07.000Z
2022-01-13T02:39:19.000Z
survey/actions.py
TheWITProject/MentorApp
2f08b87a7cde6d180e16d6f37d0b8019b8361638
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils.translation import gettext_lazy as _ from django.utils.translation import ungettext def make_published(modeladmin, request, queryset): """ Mark the given survey as published """ count = queryset.update(is_published=True) message = ungettext( "%(co...
28.714286
74
0.701493
028e28a3cd348f7b0b9ed8f2665b62d01387af9b
604
py
Python
sleekxmpp/features/feature_mechanisms/stanza/success.py
calendar42/SleekXMPP--XEP-0080-
d7bd5fd29f26a5d7de872a49ff63a353b8043e49
[ "BSD-3-Clause" ]
1
2016-10-24T05:30:25.000Z
2016-10-24T05:30:25.000Z
sleekxmpp/features/feature_mechanisms/stanza/success.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/features/feature_mechanisms/stanza/success.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.stanza import StreamFeatures from sleekxmpp.xmlstream import ElementBase, StanzaBase, ET from sleekxmpp.xmlstream import register...
22.37037
59
0.688742
e207637a16fd1a3716b50d824d41d07d85a27111
3,684
py
Python
tests/core/image/test_get_dominant_colors.py
nekto-nekto/imgfind
2e0c3853c564f58e514dd4b30c2fed951ec8fde0
[ "WTFPL" ]
1
2020-09-29T11:50:11.000Z
2020-09-29T11:50:11.000Z
tests/core/image/test_get_dominant_colors.py
nekto-nekto/imgfind
2e0c3853c564f58e514dd4b30c2fed951ec8fde0
[ "WTFPL" ]
null
null
null
tests/core/image/test_get_dominant_colors.py
nekto-nekto/imgfind
2e0c3853c564f58e514dd4b30c2fed951ec8fde0
[ "WTFPL" ]
1
2020-10-02T19:53:24.000Z
2020-10-02T19:53:24.000Z
# coding=utf-8 import numpy as np import pytest from imgfind.core.image import get_dominant_colors from tests.conftest import asset @pytest.mark.parametrize( "asset_name,n_dominants,downscale_to,exp_palette,exp_freqs,exp_shape", ( pytest.param( "sample_1280×853.jpeg", 2, ...
26.12766
100
0.446254
b2c1f8434ca3e7bfa2c52e4c8ceb4fd990f8ca67
1,150
py
Python
tests/CSIRO_depth_validation.py
BillMills/AutoQC
cb56fa5bb2115170ec204edd84e2d69ce84be820
[ "MIT" ]
17
2015-01-31T00:35:58.000Z
2020-10-26T19:01:46.000Z
tests/CSIRO_depth_validation.py
castelao/AutoQC
eb85422c1a6a5ff965a1ef96b3cb29240a66b506
[ "MIT" ]
163
2015-01-21T03:44:42.000Z
2022-01-09T22:03:12.000Z
tests/CSIRO_depth_validation.py
BillMills/AutoQC
cb56fa5bb2115170ec204edd84e2d69ce84be820
[ "MIT" ]
11
2015-06-04T14:32:22.000Z
2021-04-11T05:18:09.000Z
import qctests.CSIRO_depth import util.testingProfile import numpy ##### CSIRO_depth_test --------------------------------------------------- def test_CSIRO_depth(): ''' Spot-check the nominal behavior of the CSIRO depth test. ''' # too shallow for an xbt p = util.testingProfile.fakeProfile([0,0,...
34.848485
87
0.638261
63470e586d35a199bd6645f66c262e5d4de26a7d
673
py
Python
src/state/DayState.py
fuqinshen/Python--
aaa5230354258e1bba761e483c8b9fb6be00402a
[ "MIT" ]
31
2018-10-19T15:28:36.000Z
2022-02-14T03:01:25.000Z
src/state/DayState.py
fuqinshen/Python--
aaa5230354258e1bba761e483c8b9fb6be00402a
[ "MIT" ]
null
null
null
src/state/DayState.py
fuqinshen/Python--
aaa5230354258e1bba761e483c8b9fb6be00402a
[ "MIT" ]
10
2019-01-10T04:02:12.000Z
2021-11-17T01:52:15.000Z
from state.State import State class DayState(State): def __new__(cls, *args, **kwargs): if not hasattr(cls, '_instance'): cls._instance = super(DayState, cls).__new__(cls) return cls._instance def doClouck(self, context, hour): from state.NightState import NightState ...
25.884615
61
0.619614
d3d0020405abb1d725826db2bd651127dfd6f65e
2,741
py
Python
Jogo Pontos.py
marcusviniciusteixeira/PythonGames
bab6b5433a61b30f5096a06de37d2e16f5f75fc2
[ "MIT" ]
1
2021-11-24T00:00:51.000Z
2021-11-24T00:00:51.000Z
Jogo Pontos.py
marcusviniciusteixeira/PythonGames
bab6b5433a61b30f5096a06de37d2e16f5f75fc2
[ "MIT" ]
null
null
null
Jogo Pontos.py
marcusviniciusteixeira/PythonGames
bab6b5433a61b30f5096a06de37d2e16f5f75fc2
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from sys import exit from random import randint pygame.init() largura = 1000 altura = 800 x = largura/2 y = altura/2 w = largura/3 z = altura/2 Xcircle = randint(40, 600)#TAMANHO TELA Ycircle = randint(50, 400) tela = pygame.display.set_mode((largura, altura)) pygame.displ...
23.62931
73
0.545421
84c222ec86ed0d5265aba617b7458e5dc5e6b9df
992
py
Python
dice_roller/views.py
czambuk/dnd
a1aaa76c2e5108b6a55fe53a5974f6f584208736
[ "MIT" ]
null
null
null
dice_roller/views.py
czambuk/dnd
a1aaa76c2e5108b6a55fe53a5974f6f584208736
[ "MIT" ]
5
2021-03-19T03:49:43.000Z
2021-09-22T19:04:33.000Z
dice_roller/views.py
czambuk/dnd
a1aaa76c2e5108b6a55fe53a5974f6f584208736
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views import View from .forms import DiceRollForm from dice_roll import throw_decode, roll class DiceRollView(View): def get(self, request): form = DiceRollForm() return render(request, "dice_roller/dice_roller.html", ...
34.206897
107
0.506048
e7678bd580ca5da906658549b1ed6e53d8da96e3
4,631
py
Python
qa/rpc-tests/signrawtransactions.py
cruzezy/bitcoin
7767d558c5047e9f11e2e5eb9bf3f885a03adb08
[ "Apache-2.0", "MIT" ]
null
null
null
qa/rpc-tests/signrawtransactions.py
cruzezy/bitcoin
7767d558c5047e9f11e2e5eb9bf3f885a03adb08
[ "Apache-2.0", "MIT" ]
null
null
null
qa/rpc-tests/signrawtransactions.py
cruzezy/bitcoin
7767d558c5047e9f11e2e5eb9bf3f885a03adb08
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import NetgoldTestFramework from test_framework.util import * class SignR...
42.1
120
0.677607
9ad85b379359b66bb0b7dc5c67583f1036378b64
2,942
py
Python
tests/syngenta_digital_alc/s3/test_event_client.py
syngenta-digital/package-python-alc
74c712d8a94078b922aca22e319a0cb4b035228b
[ "Apache-2.0" ]
null
null
null
tests/syngenta_digital_alc/s3/test_event_client.py
syngenta-digital/package-python-alc
74c712d8a94078b922aca22e319a0cb4b035228b
[ "Apache-2.0" ]
10
2021-10-19T23:08:46.000Z
2022-01-12T23:17:19.000Z
tests/syngenta_digital_alc/s3/test_event_client.py
syngenta-digital/package-python-alc
74c712d8a94078b922aca22e319a0cb4b035228b
[ "Apache-2.0" ]
null
null
null
import unittest from syngenta_digital_alc.s3.event_client import EventClient from syngenta_digital_alc.s3.record_client import RecordClient from tests.syngenta_digital_alc.s3 import mock_data class S3EventClientTest(unittest.TestCase): def test_s3_record_parses(self): framework = EventClient(mock_data.g...
38.710526
112
0.516315
465ae67a47287fbaf39de316ca58cf94f2ec4c9e
1,899
py
Python
neo/VM/RandomAccessStack.py
nickfujita/neo-python
42e0bb41866d0b2c7aa3ee460a8f8ce3ae2f1f22
[ "MIT" ]
1
2021-06-19T04:06:56.000Z
2021-06-19T04:06:56.000Z
neo/VM/RandomAccessStack.py
nickfujita/neo-python
42e0bb41866d0b2c7aa3ee460a8f8ce3ae2f1f22
[ "MIT" ]
1
2018-09-26T17:50:24.000Z
2018-09-26T18:38:42.000Z
neo/VM/RandomAccessStack.py
nickfujita/neo-python
42e0bb41866d0b2c7aa3ee460a8f8ce3ae2f1f22
[ "MIT" ]
null
null
null
from neo.VM.InteropService import StackItem class RandomAccessStack: _list = [] _size = 0 # cache the size for performance _name = 'Stack' def __init__(self, name='Stack'): self._list = [] self._size = 0 self._name = name @property def Count(self): return s...
23.444444
81
0.57188
338d3584e9ac3a4a3b5e0b2aa75508228320ff5e
15
py
Python
config.py
raym0ndev/Passwordgen
e29471edf3df14f1c1b7931aa62a2ead2f7f340a
[ "Unlicense" ]
null
null
null
config.py
raym0ndev/Passwordgen
e29471edf3df14f1c1b7931aa62a2ead2f7f340a
[ "Unlicense" ]
null
null
null
config.py
raym0ndev/Passwordgen
e29471edf3df14f1c1b7931aa62a2ead2f7f340a
[ "Unlicense" ]
null
null
null
key = '*4['
5
12
0.266667
64d485440d391b1c4e56d9f2911f5fee4ebbe3bf
4,330
py
Python
userDB.py
sven-oly/LanguageTools
8c1e0bbae274232064e9796aa401c906797af452
[ "Apache-2.0" ]
3
2021-02-02T12:11:27.000Z
2021-12-28T03:58:05.000Z
userDB.py
sven-oly/LanguageTools
8c1e0bbae274232064e9796aa401c906797af452
[ "Apache-2.0" ]
7
2020-12-11T00:44:52.000Z
2022-03-01T18:00:00.000Z
userDB.py
sven-oly/LanguageTools
8c1e0bbae274232064e9796aa401c906797af452
[ "Apache-2.0" ]
3
2019-06-08T17:46:47.000Z
2021-09-16T02:03:56.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # import main import json import logging import os import urllib import webapp2 from google.appengine.api import users from google.appengine.ext.webapp import template from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers f...
29.862069
112
0.658661
b05f3e81a12d74c722b970c93b0b3b9dddfffe82
103,661
py
Python
code_for_batchgradient_descent/venv/Lib/site-packages/matplotlib/widgets.py
Sibasish-Padhy/Algo-ScriptML
c0d80a2968ffac2c8d8e3f891144dd91da353f5a
[ "MIT" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
code_for_batchgradient_descent/venv/Lib/site-packages/matplotlib/widgets.py
Sibasish-Padhy/Algo-ScriptML
c0d80a2968ffac2c8d8e3f891144dd91da353f5a
[ "MIT" ]
14
2021-03-26T20:54:22.000Z
2021-04-06T17:18:53.000Z
code_for_batchgradient_descent/venv/Lib/site-packages/matplotlib/widgets.py
Sibasish-Padhy/Algo-ScriptML
c0d80a2968ffac2c8d8e3f891144dd91da353f5a
[ "MIT" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
""" GUI neutral widgets =================== Widgets that are designed to work for any of the GUI backends. All of these widgets require you to predefine a `matplotlib.axes.Axes` instance and pass that as the first parameter. Matplotlib doesn't try to be too smart with respect to layout -- you will have to figure out ...
34.611352
79
0.572549
37fc3a04d2f4cb44469f9b2fbbc53b473a5ec26e
2,927
py
Python
scons-local/scons-local-2.3.6/SCons/Tool/pdflatex.py
rdadolf/msms
ef1dcf345234a8241f12b7952801bde9d7b406b8
[ "BSD-3-Clause" ]
null
null
null
scons-local/scons-local-2.3.6/SCons/Tool/pdflatex.py
rdadolf/msms
ef1dcf345234a8241f12b7952801bde9d7b406b8
[ "BSD-3-Clause" ]
null
null
null
scons-local/scons-local-2.3.6/SCons/Tool/pdflatex.py
rdadolf/msms
ef1dcf345234a8241f12b7952801bde9d7b406b8
[ "BSD-3-Clause" ]
null
null
null
"""SCons.Tool.pdflatex Tool-specific initialization for pdflatex. Generates .pdf files from .latex or .ltx files There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2015 The SCons Founda...
34.435294
107
0.748206
fcff98a0b2c2533f7e12bea2f9b0e779ea278c79
1,936
py
Python
queueos/broker/Environment.py
ecmwf/queueos
aa6b4f2e683194c2b2955b47337120d594e374db
[ "Apache-2.0" ]
null
null
null
queueos/broker/Environment.py
ecmwf/queueos
aa6b4f2e683194c2b2955b47337120d594e374db
[ "Apache-2.0" ]
null
null
null
queueos/broker/Environment.py
ecmwf/queueos
aa6b4f2e683194c2b2955b47337120d594e374db
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2021 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
26.520548
78
0.649793
beaf67ac204f8f565fa8d83f46436709e4ea063b
947
py
Python
SDKs/Aspose.Imaging-Cloud-SDK-for-Python/asposeimagingcloud/models/PsdProperties.py
naeem244/Aspose.Imaging-for-Cloud
20585a2163f34624d7a46641092444747360f3e3
[ "MIT" ]
null
null
null
SDKs/Aspose.Imaging-Cloud-SDK-for-Python/asposeimagingcloud/models/PsdProperties.py
naeem244/Aspose.Imaging-for-Cloud
20585a2163f34624d7a46641092444747360f3e3
[ "MIT" ]
null
null
null
SDKs/Aspose.Imaging-Cloud-SDK-for-Python/asposeimagingcloud/models/PsdProperties.py
naeem244/Aspose.Imaging-for-Cloud
20585a2163f34624d7a46641092444747360f3e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python class PsdProperties(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.""" def __init__(self): """ Attributes: swaggerTypes (dict): The key is attribute name and the value is attribute type. ...
31.566667
141
0.588173
116753dbb1c6059a34d583810f80fada81e222f1
908
py
Python
classgrade/gradapp/migrations/0024_auto_20161109_0854.py
classgrade/classgrade
144dcfc9579e6858ff4aa79835c76b9611ed73b2
[ "MIT" ]
5
2016-11-15T17:46:27.000Z
2022-01-10T08:06:17.000Z
classgrade/gradapp/migrations/0024_auto_20161109_0854.py
classgrade/classgrade
144dcfc9579e6858ff4aa79835c76b9611ed73b2
[ "MIT" ]
21
2016-11-07T14:58:22.000Z
2021-02-02T21:41:12.000Z
classgrade/gradapp/migrations/0024_auto_20161109_0854.py
classgrade/classgrade
144dcfc9579e6858ff4aa79835c76b9611ed73b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-11-09 08:54 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
29.290323
80
0.609031
c7e520d169b8a598c94f1160000251515b087f1c
4,137
py
Python
packages/core/minos-microservice-networks/tests/test_networks/test_decorators/test_collectors.py
bhardwajRahul/minos-python
bad7a280ad92680abdeab01d1214688279cf6316
[ "MIT" ]
null
null
null
packages/core/minos-microservice-networks/tests/test_networks/test_decorators/test_collectors.py
bhardwajRahul/minos-python
bad7a280ad92680abdeab01d1214688279cf6316
[ "MIT" ]
null
null
null
packages/core/minos-microservice-networks/tests/test_networks/test_decorators/test_collectors.py
bhardwajRahul/minos-python
bad7a280ad92680abdeab01d1214688279cf6316
[ "MIT" ]
null
null
null
import unittest from minos.common import ( classname, ) from minos.networks import ( BrokerCommandEnrouteDecorator, BrokerEventEnrouteDecorator, BrokerQueryEnrouteDecorator, EnrouteCollector, PeriodicEventEnrouteDecorator, RestCommandEnrouteDecorator, RestQueryEnrouteDecorator, ) from t...
34.190083
117
0.659657
c53d68c3be4ece4d51008e001e3a84d227ee3e2c
454
py
Python
app/common/cli_tools/db_operation.py
MU-Software/bca_backend
282db3908ee0b2c95c5e6bd6d6458077e941f343
[ "MIT" ]
6
2021-08-20T01:35:01.000Z
2021-12-22T18:23:17.000Z
app/common/cli_tools/db_operation.py
MU-Software/bca_backend
282db3908ee0b2c95c5e6bd6d6458077e941f343
[ "MIT" ]
null
null
null
app/common/cli_tools/db_operation.py
MU-Software/bca_backend
282db3908ee0b2c95c5e6bd6d6458077e941f343
[ "MIT" ]
null
null
null
import click import flask import flask.cli import app.database @click.command('drop-db') @flask.cli.with_appcontext def drop_db(): try: if flask.current_app.config.get('RESTAPI_VERSION', 'prod') != 'dev': print('Cannot drop DB: RESTAPI_VERSION is not \'dev\'') return app....
22.7
76
0.64978
798879e50453c4f0865df6189bd23f070a296a0c
255
py
Python
PyPrograms/tkinter/box/box.py
JymPatel/Python
6c643339ce12d26071336c87a88e94550cb13ea8
[ "MIT" ]
null
null
null
PyPrograms/tkinter/box/box.py
JymPatel/Python
6c643339ce12d26071336c87a88e94550cb13ea8
[ "MIT" ]
null
null
null
PyPrograms/tkinter/box/box.py
JymPatel/Python
6c643339ce12d26071336c87a88e94550cb13ea8
[ "MIT" ]
null
null
null
# This program uses the GPL V3 Licence. Read LICENCE to see it. # By @bupboi1337 # Editors can put thier names down here: # import tkinter # Import Tkinter, the library used to make a GUI. tk = tkinter.Tk() tk.mainloop() # Initalize a GUI Window
31.875
65
0.709804
8e1aaabb90e682b144b34afa8b1d42cde52899f2
2,668
py
Python
tendermint/utils.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
24
2017-08-18T20:36:27.000Z
2020-03-27T08:55:39.000Z
tendermint/utils.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
6
2017-10-14T05:50:34.000Z
2019-06-03T08:39:49.000Z
tendermint/utils.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
5
2018-01-09T11:07:06.000Z
2019-06-02T14:34:34.000Z
import os import os.path from pathlib import Path import collections from math import ceil from sha3 import keccak_256 from rlp.utils import decode_hex, encode_hex def home_dir(*paths): """ Create a path to dirs/file in OS home dir Ex: home_dir('temp', 'ex.txt') is: ~/temp/ex.txt """ home = st...
24.934579
176
0.657421
bedd1ea3528d1d139acf9ebd2d00bf77bd600c1b
5,488
py
Python
dkb2homebank.py
stefreschke/dkb2homebank
8446837d558bbbcd84fa38629ef91ac944b5bf40
[ "MIT" ]
1
2020-11-30T10:36:16.000Z
2020-11-30T10:36:16.000Z
dkb2homebank.py
stefreschke/dkb2homebank
8446837d558bbbcd84fa38629ef91ac944b5bf40
[ "MIT" ]
null
null
null
dkb2homebank.py
stefreschke/dkb2homebank
8446837d558bbbcd84fa38629ef91ac944b5bf40
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse import csv from datetime import datetime class DKB(csv.Dialect): delimiter = ';' quotechar = '"' doublequote = True skipinitialspace = False lineterminator = '\r\n' quoting = csv.QUOTE_MINIMAL csv.register_dialect("dkb", DKB) dkb_field_names = ["buch...
33.876543
120
0.550656
bf6efabc69e80936539d2346388c51cd3909920d
753
py
Python
nbextensions/magics/__init__.py
agilestacks/kubeflow-extensions
92b7575c21af00dcb2a42c001c802ebed8d128dd
[ "Apache-2.0" ]
10
2019-12-27T08:51:44.000Z
2020-12-07T01:33:13.000Z
nbextensions/magics/__init__.py
agilestacks/kubeflow-extensions
92b7575c21af00dcb2a42c001c802ebed8d128dd
[ "Apache-2.0" ]
1
2019-12-23T08:24:00.000Z
2019-12-23T12:36:40.000Z
nbextensions/magics/__init__.py
agilestacks/kubeflow-extensions
92b7575c21af00dcb2a42c001c802ebed8d128dd
[ "Apache-2.0" ]
4
2019-09-12T03:23:17.000Z
2020-10-23T09:37:32.000Z
from .templates import TemplateMagics from .argo import ArgoMagics from .nbvars import load_nbvars, NBVarsMagics _loaded = False def load_ipython_extension(ipython, **kwargs): global _loaded if not _loaded: ipython.register_magics(TemplateMagics(ipython, **kwargs)) ipython.register_magics(ArgoM...
34.227273
74
0.714475
4daab5333861b95a11894f01194825743c90da5b
276
py
Python
#3 Mundo/#17/78.py
Henrique-Navarro/phyton
26d66847afa2b15c254677a36eb22f7558816b59
[ "MIT" ]
null
null
null
#3 Mundo/#17/78.py
Henrique-Navarro/phyton
26d66847afa2b15c254677a36eb22f7558816b59
[ "MIT" ]
null
null
null
#3 Mundo/#17/78.py
Henrique-Navarro/phyton
26d66847afa2b15c254677a36eb22f7558816b59
[ "MIT" ]
null
null
null
lista= list() for c in range(0,5): lista.append(int(input('Digite um valor: '))) print(f'Maior: \033[32m{max(lista)}\033[m na posição: \033[34m{lista.index(max(lista))}\033[m') print(f'Menor: \033[32m{min(lista)}\033[m na posição: \033[34m{lista.index(min(lista))}\033[m')
55.2
95
0.673913
edbea3fd550f416c0e3b07301c447f785492598c
2,047
py
Python
explorer/forms.py
drummonds/django-sql-explorer
0c2c642008fa04a309edfa07011d2238e57d4e64
[ "MIT" ]
null
null
null
explorer/forms.py
drummonds/django-sql-explorer
0c2c642008fa04a309edfa07011d2238e57d4e64
[ "MIT" ]
null
null
null
explorer/forms.py
drummonds/django-sql-explorer
0c2c642008fa04a309edfa07011d2238e57d4e64
[ "MIT" ]
1
2018-04-19T20:52:23.000Z
2018-04-19T20:52:23.000Z
from django.db import DatabaseError from django.forms import ModelForm, Field, ValidationError, BooleanField, CharField from django.forms.widgets import CheckboxInput, Select from explorer import app_settings from explorer.models import Query, MSG_FAILED_BLACKLIST class SqlField(Field): def validate(self, value...
31.984375
104
0.676111
ed6180477adc1ac799e6a1f117e19b0833547171
13,887
py
Python
utils/box_utils.py
GuoQuanhao/RetinaFace-Paddle
5f61a952109969a921e0486d6f565036e6c1fe8c
[ "MIT" ]
2
2021-09-30T11:50:38.000Z
2021-10-11T06:45:14.000Z
utils/box_utils.py
GuoQuanhao/RetinaFace-Paddle
5f61a952109969a921e0486d6f565036e6c1fe8c
[ "MIT" ]
null
null
null
utils/box_utils.py
GuoQuanhao/RetinaFace-Paddle
5f61a952109969a921e0486d6f565036e6c1fe8c
[ "MIT" ]
null
null
null
import paddle import numpy as np def index_fill(input, index, update): ''' achieve Tensor.index_fill method only for this repo, it's not common use ''' for i in range(len(index)): input[index[i]] = update return input def point_form(boxes): """ Convert prior_boxes to (xmin, ...
40.369186
122
0.611795
b290f8626e523d33fb5888c4e17758d914080367
4,672
py
Python
scripts/run_parallel.py
michaelhabeck/isdhic
35ccec0621c815c77e683bcce7d26e1e6c82b53b
[ "MIT" ]
3
2017-01-12T12:02:17.000Z
2020-12-28T07:15:16.000Z
scripts/run_parallel.py
michaelhabeck/isdhic
35ccec0621c815c77e683bcce7d26e1e6c82b53b
[ "MIT" ]
5
2018-06-23T21:48:31.000Z
2019-08-09T17:45:18.000Z
scripts/run_parallel.py
michaelhabeck/isdhic
35ccec0621c815c77e683bcce7d26e1e6c82b53b
[ "MIT" ]
2
2017-01-07T22:42:17.000Z
2019-07-25T07:11:54.000Z
""" Run parallel replica simulation using multiprocessing """ import isdhic import numpy as np import multiprocessing as mp from copy import deepcopy from isdhic import utils from isdhic.rex import ReplicaState from run_rex import Replica def create_posterior(resolution = 500): filename = './chrX_cell1_{...
24.460733
97
0.624572
aee9aa1bc144304e4a8b72da848db37b77bc92e3
3,358
py
Python
serial/src/serial_test2.py
Choi-Laboratory/SOBIT-Bringup
89a921ac5922b2963155d80739013c7ef4c67abf
[ "Apache-2.0" ]
null
null
null
serial/src/serial_test2.py
Choi-Laboratory/SOBIT-Bringup
89a921ac5922b2963155d80739013c7ef4c67abf
[ "Apache-2.0" ]
null
null
null
serial/src/serial_test2.py
Choi-Laboratory/SOBIT-Bringup
89a921ac5922b2963155d80739013c7ef4c67abf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # cording : UTF-8 import serial import rospy from sensor_msgs.msg import * ser=serial.Serial( port = '/dev/vsrc', baudrate = 115200, parity = serial.PARITY_NONE, bytesize = serial.EIGHTBITS, stopbits = serial.STOPBITS_ONE, timeout = None, xonxoff = 0, rtscts = 0, ...
31.679245
427
0.678082
60575ab696619be0500e50ca788e7fa0ffca024f
1,875
py
Python
planet/ForTesting6.py
createamind/000planet_A
1fda74b693f85d59ae03192b9365de118efd2a17
[ "Apache-2.0" ]
5
2019-03-29T10:13:30.000Z
2021-05-02T10:26:15.000Z
planet/ForTesting6.py
createamind/000planet_A
1fda74b693f85d59ae03192b9365de118efd2a17
[ "Apache-2.0" ]
5
2020-01-28T22:10:24.000Z
2022-02-09T23:30:15.000Z
planet/ForTesting6.py
createamind/000planet_A
1fda74b693f85d59ae03192b9365de118efd2a17
[ "Apache-2.0" ]
4
2019-03-15T16:25:51.000Z
2019-05-09T05:31:39.000Z
import tensorflow as tf import numpy as np import tensorflow.contrib.eager as tfe tfe.enable_eager_execution() dataset1 = tf.data.Dataset.from_tensor_slices(np.array([1.0, 2.0, 3.0, 4.0, 5.0])) # <TensorSliceDataset shapes: (), types: tf.float64> dataset2 = tf.data.Dataset.from_tensor_slices( (np.array([1.0, 2....
26.041667
136
0.618133
c2f8faae777f70c2ba9473804bfb2f0cf8c5380c
7,543
py
Python
nikola/plugins/command/serve.py
bnmnetp/nikola
79e2878de421c99f1835a853d690a8a5a35c3481
[ "MIT" ]
null
null
null
nikola/plugins/command/serve.py
bnmnetp/nikola
79e2878de421c99f1835a853d690a8a5a35c3481
[ "MIT" ]
null
null
null
nikola/plugins/command/serve.py
bnmnetp/nikola
79e2878de421c99f1835a853d690a8a5a35c3481
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2015 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights t...
37.341584
96
0.57855
1a10f6612434deae9a193aa883c46a729776ab87
565
py
Python
setup.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
setup.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
46
2019-02-22T16:46:02.000Z
2020-03-08T20:26:37.000Z
setup.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="eight-bit-computer", version="0.0.2", author="Andy Palmer", author_email="contactninezerozeronine@gmail.com", description="Tools to build a physical eight bit computer.", url="https://github.com/ninezerozeronine/eight-bit-computer", p...
29.736842
65
0.660177
28520c11c6f7c23685d5e05c10a40726a767c49a
6,040
py
Python
packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py
pragyagarg642/plotly.py
141aa6dcb3f838b2102db6ecc9ae1bdb70daf20b
[ "MIT" ]
2
2020-04-11T19:28:30.000Z
2020-05-04T03:16:20.000Z
packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py
pragyagarg642/plotly.py
141aa6dcb3f838b2102db6ecc9ae1bdb70daf20b
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py
pragyagarg642/plotly.py
141aa6dcb3f838b2102db6ecc9ae1bdb70daf20b
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="namelengthsrc", parent_name="choropleth.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, ...
32.473118
88
0.604636
d74507bfe9215f4156bd4d18d088455d2328115e
4,502
py
Python
hypnopyze/sequencer.py
garstka/hypnopyze
eae751f42c168a5b57dbbb72745ed1c2eaa6556b
[ "MIT" ]
5
2017-05-30T20:40:53.000Z
2021-10-06T17:10:00.000Z
hypnopyze/sequencer.py
garstka/hypnopyze
eae751f42c168a5b57dbbb72745ed1c2eaa6556b
[ "MIT" ]
null
null
null
hypnopyze/sequencer.py
garstka/hypnopyze
eae751f42c168a5b57dbbb72745ed1c2eaa6556b
[ "MIT" ]
3
2017-08-30T19:47:27.000Z
2021-11-29T12:00:29.000Z
from math import ceil from hypnopyze.patterns.pattern import * from hypnopyze.styles.manager import StyleManager # For creating sequences of notes. class Sequencer: # - beats_per_bar - how many beats in a bar (maximum pattern resolution) # - time_step - each beat will take time_step MIDI beats # - pertur...
31.048276
79
0.574856
5f0b731be9ab8240652f9e00192a3456f1ae63ab
8,122
py
Python
nc/loops/loops.py
migalkin/NodePiece
a2189801657d41797a3db99c38f071a6468be2c5
[ "MIT" ]
84
2021-06-24T14:42:01.000Z
2022-03-29T06:28:43.000Z
nc/loops/loops.py
migalkin/NodePiece
a2189801657d41797a3db99c38f071a6468be2c5
[ "MIT" ]
3
2021-07-02T05:11:28.000Z
2022-02-07T06:19:56.000Z
nc/loops/loops.py
migalkin/NodePiece
a2189801657d41797a3db99c38f071a6468be2c5
[ "MIT" ]
8
2021-06-24T22:43:24.000Z
2022-03-28T03:42:07.000Z
import wandb import torch import numpy as np from tqdm.autonotebook import tqdm from typing import Callable, Dict, Union from loops.sampler import NodeClSampler from utils.utils_mytorch import * from torch_geometric.data import Data def training_loop_pyg_nc(epochs: int, opt: torch.optim, ...
43.666667
113
0.466264
c94d11588751c930be682982c686e36e220cd99a
1,508
py
Python
tests/components/zwave_js/common.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
1
2021-04-28T09:51:08.000Z
2021-04-28T09:51:08.000Z
tests/components/zwave_js/common.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
tests/components/zwave_js/common.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Provide common test tools for Z-Wave JS.""" AIR_TEMPERATURE_SENSOR = "sensor.multisensor_6_air_temperature" HUMIDITY_SENSOR = "sensor.multisensor_6_humidity" ENERGY_SENSOR = "sensor.smart_plug_with_two_usb_ports_value_electric_consumed_2" POWER_SENSOR = "sensor.smart_plug_with_two_usb_ports_value_electric_consumed" ...
53.857143
86
0.8813
a0507a8c611e70f77ab5aa920ec357527cdeb198
221
py
Python
examples/dictknife/library/src/deepequal02.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
13
2018-11-23T15:55:18.000Z
2021-11-24T02:42:44.000Z
examples/dictknife/library/src/deepequal02.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
105
2017-01-09T02:05:48.000Z
2021-07-26T03:39:22.000Z
examples/dictknife/library/src/deepequal02.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
4
2017-07-19T12:34:47.000Z
2019-06-20T10:32:13.000Z
from dictknife import deepequal d0 = [[[1, 2, 3], [1]], [[1, 2], [2, 3], [3, 4]]] d1 = [[[1], [1, 2, 3]], [[1, 2], [3, 4], [2, 3]]] print("=") print(d0 == d1) print("deepequal") print(deepequal(d0, d1, normalize=True))
22.1
49
0.502262
1d87344fd5f04b7fc73f92f14ea6dddbbb2cf486
94
py
Python
other/sumitb2019_b.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
other/sumitb2019_b.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
other/sumitb2019_b.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
n = int(input()) x = int((n+1)/1.08) if int(x*1.08) == n: print(x) else: print(':(')
11.75
20
0.457447
c57e796555b3e34042969c7b07134fdfad9fd5b1
14,416
py
Python
nltk/test/unit/lm/test_models.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
null
null
null
nltk/test/unit/lm/test_models.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
null
null
null
nltk/test/unit/lm/test_models.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
1
2019-10-18T08:58:45.000Z
2019-10-18T08:58:45.000Z
# -*- coding: utf-8 -*- # Natural Language Toolkit: Language Model Unit Tests # # Copyright (C) 2001-2018 NLTK Project # Author: Ilia Kurenkov <ilia.kurenkov@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from __future__ import division import math import sys import unittest from six...
32.32287
89
0.521435
ae51d62dc4e3f156719b55fca4d0c4ec9583397a
848
py
Python
django/bitcoin_monitor/pydevd.py
chanhosuh/bitcoin-monitor
acecfcf020cf2debfdf3a2e8c446007d7412d8e1
[ "MIT" ]
1
2020-01-01T15:54:45.000Z
2020-01-01T15:54:45.000Z
django/bitcoin_monitor/pydevd.py
chanhosuh/bitcoin-monitor
acecfcf020cf2debfdf3a2e8c446007d7412d8e1
[ "MIT" ]
13
2019-02-28T03:24:54.000Z
2021-09-22T17:50:00.000Z
django/bitcoin_monitor/pydevd.py
chanhosuh/bitcoin-monitor
acecfcf020cf2debfdf3a2e8c446007d7412d8e1
[ "MIT" ]
null
null
null
import pydevd def set_trace(): """ To use Eclipse's Pydev debugging in the Django docker container: 1. in the docker container: pip install pydevd or add it to container's requirements. 2. set this in environment-dev-local.env: PYTHONBREAKPOINT=bitcoin_monitor.pydevd.set_t...
25.69697
57
0.696934
2ce0cc7a53e74581c87ae0633b90979bbb3d348f
1,492
py
Python
datasets/mk_subimgnet_val.py
RowanAI/BayesianDefense
c4c0be9b258f40130b40d6a6e009c459666f2722
[ "MIT" ]
63
2018-10-21T09:52:45.000Z
2022-03-11T02:04:17.000Z
datasets/mk_subimgnet_val.py
RowanAI/BayesianDefense
c4c0be9b258f40130b40d6a6e009c459666f2722
[ "MIT" ]
10
2018-11-21T13:44:15.000Z
2022-03-01T13:24:52.000Z
datasets/mk_subimgnet_val.py
RowanAI/BayesianDefense
c4c0be9b258f40130b40d6a6e009c459666f2722
[ "MIT" ]
16
2018-12-25T06:52:21.000Z
2021-08-08T05:04:07.000Z
import shutil, os import glob from shutil import copyfile import pdb def read_f(): id_classes = {} for l in open('./dirname_to_label.txt', 'r'): name, id = l.split(' ') id = int(id) id_classes[id] = name return id_classes if __name__ == "__main__": #source_dir = '/mnt/lustre/wu...
27.127273
89
0.628016
ca5105f562396eb5970d49e3eee2f8c4b5247c6f
4,217
py
Python
test/test_edf.py
johnnycakes79/pyops
9eeda939e3f0d65a5dd220b3e439c8d2ba880d98
[ "BSD-3-Clause" ]
2
2016-03-23T14:35:16.000Z
2016-05-17T04:56:28.000Z
test/test_edf.py
johnnycakes79/pyops
9eeda939e3f0d65a5dd220b3e439c8d2ba880d98
[ "BSD-3-Clause" ]
null
null
null
test/test_edf.py
johnnycakes79/pyops
9eeda939e3f0d65a5dd220b3e439c8d2ba880d98
[ "BSD-3-Clause" ]
null
null
null
from pyops import EDF import os def test_add_none_to_empty_fields(): edf_test = EDF() test_dict = {'a': ['a'], 'b': [1, 3], 'c': [1]} output = edf_test._add_none_to_empty_fields(test_dict) assert output == {'a': ['a', None], 'b': [1, 3], 'c': [1, None]} test_dict = {'a': [], 'b': [], 'c': []} ...
32.689922
79
0.624378
b2d48d2e0312f14d5a1e321e3db31e8fe69a859f
681
py
Python
src/1616_split_two_strings_to_make_palindrome.py
hariharanragothaman/leetcode-solutions
44e759f80d3c9df382fdf8d694d6378881e3649d
[ "Apache-2.0" ]
2
2021-04-21T07:59:42.000Z
2021-06-17T17:14:26.000Z
src/1616_split_two_strings_to_make_palindrome.py
hariharanragothaman/pyrevise-leetcode
44e759f80d3c9df382fdf8d694d6378881e3649d
[ "Apache-2.0" ]
null
null
null
src/1616_split_two_strings_to_make_palindrome.py
hariharanragothaman/pyrevise-leetcode
44e759f80d3c9df382fdf8d694d6378881e3649d
[ "Apache-2.0" ]
null
null
null
class Solution: def checkPalindromeFormation(self, a: str, b: str) -> bool: """ As long as a prefix == rev(bsuffix) keep forming the split do this (a, b) and (b, a) if any of them are palindromes, then it's true """ i = 0 j = len(a) - 1 while i < j an...
26.192308
66
0.400881
f79b568345f11b3af3b82d3b719d52d13aa69775
1,778
py
Python
sktime/classification/all/__init__.py
alwinw/sktime
a6f17bd586df6bbc8e6c783f08eda4c30d2353f9
[ "BSD-3-Clause" ]
1
2020-11-05T18:47:32.000Z
2020-11-05T18:47:32.000Z
sktime/classification/all/__init__.py
alwinw/sktime
a6f17bd586df6bbc8e6c783f08eda4c30d2353f9
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/all/__init__.py
alwinw/sktime
a6f17bd586df6bbc8e6c783f08eda4c30d2353f9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- __author__ = ["Markus Löning"] __all__ = [ "ShapeletTransformClassifier", "MrSEQLClassifier", "BOSSEnsemble", "BOSSIndividual", "KNeighborsTimeSeriesClassifier", "TemporalDictionaryEnsemble", "ProximityStump", "ProximityTree", "Proxi...
36.285714
79
0.823397
b0721b36819da2a0f9db56ef58b00a3a9ce43b9e
4,838
py
Python
plyer/platforms/macosx/wifi.py
seanodonnell/plyer
9b9c523cbef3e7ad04e231bbabad36652d88b45e
[ "MIT" ]
null
null
null
plyer/platforms/macosx/wifi.py
seanodonnell/plyer
9b9c523cbef3e7ad04e231bbabad36652d88b45e
[ "MIT" ]
null
null
null
plyer/platforms/macosx/wifi.py
seanodonnell/plyer
9b9c523cbef3e7ad04e231bbabad36652d88b45e
[ "MIT" ]
null
null
null
from plyer.facades import Wifi from pyobjus.dylib_manager import load_framework, INCLUDE from pyobjus import autoclass load_framework(INCLUDE.Foundation) load_framework(INCLUDE.CoreWLAN) CWInterface = autoclass('CWInterface') CWNetwork = autoclass('CWNetwork') CWWiFiClient = autoclass('CWWiFiClient') NSArray = autocla...
36.651515
77
0.621331
2e615eb0f76f8a6c9d7be7348534790d04b892c1
1,552
py
Python
stream/readPubsubMessage/readPubsub.py
sanjeevkanabargi/python
25f43cf20f92104951d5d1d3b2af535450085e72
[ "Apache-2.0" ]
null
null
null
stream/readPubsubMessage/readPubsub.py
sanjeevkanabargi/python
25f43cf20f92104951d5d1d3b2af535450085e72
[ "Apache-2.0" ]
null
null
null
stream/readPubsubMessage/readPubsub.py
sanjeevkanabargi/python
25f43cf20f92104951d5d1d3b2af535450085e72
[ "Apache-2.0" ]
null
null
null
import argparse import os """Receives messages from a pull subscription.""" import datetime, time from google.cloud import pubsub_v1 parser = argparse.ArgumentParser() parser.add_argument('-p','--projectID', help="Project ID fo Gcloud <ba-qe-da7e1252>", default='ba-qe-da7e1252') parser.add_argument('-s','--subscrib...
35.272727
156
0.749356
4abec4a4d0566be889c15134e35e5d63796c0581
207
py
Python
strategy.py
nitishsahni/TexasHoldem
4b5e9da0113a871141339fe8e731b5110c5cb9a3
[ "MIT" ]
null
null
null
strategy.py
nitishsahni/TexasHoldem
4b5e9da0113a871141339fe8e731b5110c5cb9a3
[ "MIT" ]
null
null
null
strategy.py
nitishsahni/TexasHoldem
4b5e9da0113a871141339fe8e731b5110c5cb9a3
[ "MIT" ]
null
null
null
class Strategy: """Template strategy""" def __init__(self): pass def think(self, player): pass class AlwaysFold(Strategy): def think(self, player): return "fold"
13.8
28
0.584541
bed66f337ab42f9fa828496032524d4f3c58e8b7
846
py
Python
telegram_ecommerce/tamplates/messages.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
10
2020-11-20T20:55:52.000Z
2022-02-10T20:25:45.000Z
telegram_ecommerce/tamplates/messages.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
1
2022-02-16T10:28:18.000Z
2022-02-16T10:35:31.000Z
telegram_ecommerce/tamplates/messages.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
8
2021-05-01T01:13:09.000Z
2022-03-13T14:00:01.000Z
from ..language import get_text from .buttons import ( boolean_question, rating_tamplate) def reply(update, context, text): update.message.reply_text(text) def ask_a_boolean_question( update, context, pattern_identifier="", question=None): if question: text = question e...
26.4375
76
0.719858
42fa558a76bc8cfaf430a7208f4889ce5e8cf993
605
py
Python
tests/amp/test_amp.py
lrodrin/transceivers
62b8e44c0a459615a0464a9567e28e195c4dabf1
[ "MIT" ]
null
null
null
tests/amp/test_amp.py
lrodrin/transceivers
62b8e44c0a459615a0464a9567e28e195c4dabf1
[ "MIT" ]
null
null
null
tests/amp/test_amp.py
lrodrin/transceivers
62b8e44c0a459615a0464a9567e28e195c4dabf1
[ "MIT" ]
null
null
null
import logging import time from os import sys, path sys.path.append(path.dirname(path.dirname(path.dirname(path.abspath(__file__))))) logging.basicConfig(level=logging.DEBUG) from lib.amp.amp import Amplifier if __name__ == '__main__': ip_oa1 = '10.1.1.16' ip_oa2 = '10.1.1.15' addr = '3' mode_oa1 = ...
26.304348
81
0.67438
29faa414806d22c84693b30631ad1bafe140c642
4,775
py
Python
tests/test_qoo.py
cvoege/qoo
3a94ce1c59a50218a0981b44c298192706bf18f1
[ "MIT" ]
2
2019-07-22T18:22:38.000Z
2019-10-03T23:35:42.000Z
tests/test_qoo.py
cvoege/qoo
3a94ce1c59a50218a0981b44c298192706bf18f1
[ "MIT" ]
2
2019-10-25T13:04:20.000Z
2021-04-30T20:55:08.000Z
tests/test_qoo.py
cvoege/qoo
3a94ce1c59a50218a0981b44c298192706bf18f1
[ "MIT" ]
1
2019-10-25T01:21:06.000Z
2019-10-25T01:21:06.000Z
""" @author jacobi petrucciani @desc pytest the qoo functionality """ import json import os import pytest import qoo import sys import time from moto import mock_sqs def dbg(text) -> None: """debug printer for tests""" if isinstance(text, dict): text = json.dumps(text, sort_keys=True, indent=2) ca...
28.592814
83
0.584084
0efb633804bc912338e9473807697d8d44af2769
1,996
py
Python
samsung/13460.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
samsung/13460.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
samsung/13460.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
import collections from sys import stdin n, m = map(int, stdin.readline().split()) graph = [list(stdin.readline()) for _ in range(n)] red = [0, 0] blue = [0, 0] # red 저장 # blue 저장 # red와 blue 좌료를 획득 후, 그 자리를 이동할 수 있는 . 으로 변경 for i in range (n): for j in range(m): if graph[i][j] == 'R': gr...
23.209302
86
0.422846
f6a7bf1524d5dd4165862a54664f3b669f63f4a8
623
py
Python
config.py
EDL-Group/klabotermann
7ced510348b4ee2c2e5bfb5186d7f6b387f8843c
[ "MIT" ]
null
null
null
config.py
EDL-Group/klabotermann
7ced510348b4ee2c2e5bfb5186d7f6b387f8843c
[ "MIT" ]
null
null
null
config.py
EDL-Group/klabotermann
7ced510348b4ee2c2e5bfb5186d7f6b387f8843c
[ "MIT" ]
1
2020-11-12T15:21:58.000Z
2020-11-12T15:21:58.000Z
# -*- Mode: Python; tab-width: 8; python-indent-offset: 4 -*- # This Source Code Form is subject to the terms of the MIT License. # If a copy of the ML was not distributed with this # file, You can obtain one at https://opensource.org/licenses/MIT # author: JackRed <jackred@tuta.io> import os class DefaultConfig: ...
24.92
67
0.654896
ca9532ac6a2d35da14075131c54e98d6b2815c26
2,578
py
Python
DoubleCommandFactory.py
invveritas/PYIEC60870-104
68fd8481f55e907209560f9797d7e068f2598284
[ "MIT" ]
5
2016-05-25T08:27:01.000Z
2019-05-08T19:20:15.000Z
DoubleCommandFactory.py
invveritas/PYIEC60870-104
68fd8481f55e907209560f9797d7e068f2598284
[ "MIT" ]
null
null
null
DoubleCommandFactory.py
invveritas/PYIEC60870-104
68fd8481f55e907209560f9797d7e068f2598284
[ "MIT" ]
13
2016-11-13T15:39:30.000Z
2022-01-23T07:25:43.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jun 08 10:41:44 2015 clsIECDoubleCommandFactory Class that creates double command telegrams (only On/Off) @author: Martin Baldinger / martin.baldinger@gmail.com """ from CommandFactory import CommandFactory from myfunctions import int_to_hex_bytes class CDou...
34.837838
92
0.607448
6ad772eeb48e3179bfcec3aaf20e4c2036c3a5d5
36,495
py
Python
protocol.py
Cloud-Lakitu/versacoin-opennodes
21745217c47e397ecb58a4a020c9111c71c267ee
[ "MIT" ]
14
2019-03-05T15:02:30.000Z
2022-01-06T09:33:18.000Z
protocol.py
Cloud-Lakitu/versacoin-opennodes
21745217c47e397ecb58a4a020c9111c71c267ee
[ "MIT" ]
2
2020-05-19T14:25:03.000Z
2021-04-21T17:31:24.000Z
protocol.py
Cloud-Lakitu/versacoin-opennodes
21745217c47e397ecb58a4a020c9111c71c267ee
[ "MIT" ]
12
2019-03-05T15:02:33.000Z
2022-01-07T02:10:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # protocol.py - Bitcoin protocol access for Bitnodes. # # Copyright (c) Addy Yeow Chin Heng <ayeowch@gmail.com> # # Modified by open-nodes project for python3 compatibility # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software...
35.674487
118
0.524921
867e504eac500a6a052b99fa2e425a3b41728698
3,039
py
Python
model-optimizer/extensions/front/onnx/upsample_ext.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2019-07-08T09:03:03.000Z
2020-09-09T10:34:17.000Z
model-optimizer/extensions/front/onnx/upsample_ext.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
6
2022-01-11T18:56:22.000Z
2022-02-21T13:20:20.000Z
model-optimizer/extensions/front/onnx/upsample_ext.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2021-02-05T17:11:17.000Z
2021-04-19T08:33:31.000Z
""" Copyright (c) 2018 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...
36.178571
131
0.622902
84bcef798ef2bd2ed1401b12e5744cdfd1494f0b
841
py
Python
src/spaceone/notification/manager/repository_manager.py
xellos00/notification
e091c1eaeaf54d2669ac204c027aacddabad382a
[ "Apache-2.0" ]
null
null
null
src/spaceone/notification/manager/repository_manager.py
xellos00/notification
e091c1eaeaf54d2669ac204c027aacddabad382a
[ "Apache-2.0" ]
null
null
null
src/spaceone/notification/manager/repository_manager.py
xellos00/notification
e091c1eaeaf54d2669ac204c027aacddabad382a
[ "Apache-2.0" ]
null
null
null
import logging from spaceone.core.manager import BaseManager from spaceone.notification.error import * from spaceone.notification.connector.repository_connector import RepositoryConnector _LOGGER = logging.getLogger(__name__) class RepositoryManager(BaseManager): def __init__(self, *args, **kwargs): su...
35.041667
100
0.769322
c35d40d4eb7d7deb6a32f5a4ab03111a563f3234
3,513
py
Python
gmond/python_modules/example/example.py
clouTrix/monitor-core
70cf26243fcf7159bbeb6a5471841392c417de0a
[ "BSD-3-Clause" ]
346
2015-01-06T14:19:48.000Z
2022-03-27T07:15:09.000Z
gmond/python_modules/example/example.py
clouTrix/monitor-core
70cf26243fcf7159bbeb6a5471841392c417de0a
[ "BSD-3-Clause" ]
98
2015-01-14T18:17:53.000Z
2022-03-20T00:22:46.000Z
gmond/python_modules/example/example.py
clouTrix/monitor-core
70cf26243fcf7159bbeb6a5471841392c417de0a
[ "BSD-3-Clause" ]
157
2015-01-20T16:26:30.000Z
2022-03-10T06:02:09.000Z
#/****************************************************************************** #* Portions Copyright (C) 2007 Novell, Inc. All rights reserved. #* #* Redistribution and use in source and binary forms, with or without #* modification, are permitted provided that the following conditions are met: #* #* - Redistributio...
34.782178
80
0.652434
bb6a811dd615d543eb6ce85900959d726c2319e8
10,362
py
Python
tests/sentry/incidents/endpoints/test_organization_alert_rule_index.py
vaniot-s/sentry
5c1accadebfaf8baf6863251c05b38ea979ee1c7
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/incidents/endpoints/test_organization_alert_rule_index.py
vaniot-s/sentry
5c1accadebfaf8baf6863251c05b38ea979ee1c7
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/incidents/endpoints/test_organization_alert_rule_index.py
vaniot-s/sentry
5c1accadebfaf8baf6863251c05b38ea979ee1c7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from exam import fixture from freezegun import freeze_time from sentry.api.serializers import serialize from sentry.incidents.logic import create_alert_rule from sentry.incidents.models import AlertRule from sentry.testutils import APITestCase class AlertRuleListEndpointTest(A...
35.125424
99
0.517275
65b98ecfbbd86a122b35b106da1b4a97c5f3630f
8,138
py
Python
ros/src/tl_detector/tl_detector.py
JoaoGranja/CarND-Capstone
839e0d1f9ee5e470f6645feda5b14a0796fbe062
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
JoaoGranja/CarND-Capstone
839e0d1f9ee5e470f6645feda5b14a0796fbe062
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
JoaoGranja/CarND-Capstone
839e0d1f9ee5e470f6645feda5b14a0796fbe062
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
39.125
131
0.638363
24291d1d24d61becd354aae0d9c6d1d4783c447e
6,135
py
Python
Assignment3/q2.py
zilunzhang/Introduction-to-Image-Understanding
6504323ee97e7dff8ebdb98cc4d9e79b3c5092f9
[ "Apache-2.0" ]
null
null
null
Assignment3/q2.py
zilunzhang/Introduction-to-Image-Understanding
6504323ee97e7dff8ebdb98cc4d9e79b3c5092f9
[ "Apache-2.0" ]
null
null
null
Assignment3/q2.py
zilunzhang/Introduction-to-Image-Understanding
6504323ee97e7dff8ebdb98cc4d9e79b3c5092f9
[ "Apache-2.0" ]
null
null
null
from PIL import Image from Homography import * import scipy.spatial.distance as sp import os from sympy.utilities.iterables import multiset_permutations color_target = cv2.imread("findBook.jpg") RGB_color_target = cv2.cvtColor(color_target, cv2.COLOR_BGR2RGB) row, col, height = RGB_color_target.shape print(RGB_color_t...
38.829114
133
0.671231
2ded8183dc04d48607c6fa07deb40df7841f9d45
3,851
py
Python
src/commercetools/platform/client/orders/by_project_key_orders_by_id_request_builder.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
15
2018-11-02T14:35:52.000Z
2022-03-16T07:51:44.000Z
src/commercetools/platform/client/orders/by_project_key_orders_by_id_request_builder.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
84
2018-11-02T12:50:32.000Z
2022-03-22T01:25:54.000Z
src/commercetools/platform/client/orders/by_project_key_orders_by_id_request_builder.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
13
2019-01-03T09:16:50.000Z
2022-02-15T18:37:19.000Z
# This file is automatically generated by the rmf-codegen project. # # The Python code generator is maintained by Lab Digital. If you want to # contribute to this project then please do not edit this file directly # but send a pull request to the Lab Digital fork of rmf-codegen at # https://github.com/labd/rmf-codegen ...
35.657407
87
0.602701
60859b9e6f8245ccabca6fcdaf4ab3fc130042a5
624
py
Python
brablog/posts/models.py
BruhMano/BraBlog
bf1173d281893fe65fd96e5e5f07bdc4d65095b1
[ "BSD-3-Clause" ]
null
null
null
brablog/posts/models.py
BruhMano/BraBlog
bf1173d281893fe65fd96e5e5f07bdc4d65095b1
[ "BSD-3-Clause" ]
null
null
null
brablog/posts/models.py
BruhMano/BraBlog
bf1173d281893fe65fd96e5e5f07bdc4d65095b1
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from groups.models import Group User = get_user_model() group = Group() class Post(models.Model): title = models.TextField(max_length=150) text = models.TextField() pub_date = models.DateField("date published", auto_now_add=True) ...
36.705882
84
0.741987