hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
04d4c6a6adaa5b0b5caf062aa6670d9b1d632568
15,525
py
Python
tests/field_deconstruction/tests.py
brylie/django
f12b68af71efa0b061710c83364f231734d07e55
[ "BSD-3-Clause" ]
1
2019-03-26T02:49:39.000Z
2019-03-26T02:49:39.000Z
tests/field_deconstruction/tests.py
radiosilence/django
901353d87538d51b7ae97623f28569df179e05b6
[ "BSD-3-Clause" ]
null
null
null
tests/field_deconstruction/tests.py
radiosilence/django
901353d87538d51b7ae97623f28569df179e05b6
[ "BSD-3-Clause" ]
null
null
null
import warnings from django.db import models from django.test import TestCase, override_settings from django.utils import six class FieldDeconstructionTests(TestCase): """ Tests the deconstruct() method on all core fields. """ def test_name(self): """ Tests the outputting of the corr...
45.130814
112
0.648631
3740b3c0c6f6a1546405b0f3aa6ea7dbef463117
9,460
py
Python
saleor/graphql/order/schema.py
Vultik/saleor
dc8548f7ad49cc26950dbfa0fd81f02617350240
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/order/schema.py
Vultik/saleor
dc8548f7ad49cc26950dbfa0fd81f02617350240
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/order/schema.py
Vultik/saleor
dc8548f7ad49cc26950dbfa0fd81f02617350240
[ "CC-BY-4.0" ]
null
null
null
from typing import List, Optional import graphene from graphql import GraphQLError from ...core.permissions import OrderPermissions from ..core.connection import create_connection_slice, filter_connection_queryset from ..core.descriptions import DEPRECATED_IN_3X_FIELD from ..core.enums import ReportingPeriod from ..c...
41.858407
88
0.737632
c07a9a906d0cd1c2fedccfa17afe5f55b08d1426
1,729
py
Python
src/util/boost_pad_tracker.py
kennytrytek/RLBotPythonExample
40ab147dbc62da012f3618a34cd8f58b646a349d
[ "MIT" ]
null
null
null
src/util/boost_pad_tracker.py
kennytrytek/RLBotPythonExample
40ab147dbc62da012f3618a34cd8f58b646a349d
[ "MIT" ]
null
null
null
src/util/boost_pad_tracker.py
kennytrytek/RLBotPythonExample
40ab147dbc62da012f3618a34cd8f58b646a349d
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from rlbot.utils.structures.game_data_struct import GameTickPacket, FieldInfoPacket from util.vec import Vec3 @dataclass class BoostPad: location: Vec3 is_full_boost: bool is_active: bool # Active means it's available to be picked up timer: ...
40.209302
120
0.713707
78980457f42ad54eb2423739f1657db45baffde4
196
py
Python
rules_dict.py
CrEaTiiOn187/tg-management-bot
554dbdd2134c14466baff3f3d448ac66f54ced03
[ "MIT" ]
3
2021-10-21T18:16:37.000Z
2022-03-10T18:24:55.000Z
rules_dict.py
NoodleSoup/tg-management-bot
554dbdd2134c14466baff3f3d448ac66f54ced03
[ "MIT" ]
null
null
null
rules_dict.py
NoodleSoup/tg-management-bot
554dbdd2134c14466baff3f3d448ac66f54ced03
[ "MIT" ]
1
2020-07-15T07:43:55.000Z
2020-07-15T07:43:55.000Z
def load(): from pickle import load rules_dict = {} rules_db = open('rules.db', 'rb') try: rules_dict = load(rules_db) return rules_dict except: return {} rules_dict = load()
17.818182
35
0.637755
19d8a442219855054e82777ba7d9c06d45591b9c
5,713
py
Python
docs/conf.py
CurtLH/phonefinder
22b5d4cfbe8aded82e60b1a1c07974f6366363f3
[ "Apache-2.0" ]
2
2020-07-08T19:12:00.000Z
2020-08-06T03:21:01.000Z
docs/conf.py
CurtLH/phonefinder
22b5d4cfbe8aded82e60b1a1c07974f6366363f3
[ "Apache-2.0" ]
13
2020-01-04T05:54:31.000Z
2020-06-12T02:28:56.000Z
docs/conf.py
CurtLH/phonefinder
22b5d4cfbe8aded82e60b1a1c07974f6366363f3
[ "Apache-2.0" ]
null
null
null
{%- import '.github/ght/macros/selected.j2' as selected -%} #!/usr/bin/env python # # {{ cookiecutter.project_repo }} documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not...
30.068421
88
0.664099
ecb29ff6117ed9ef2c94d3a35f287e2935a5c5a8
1,775
py
Python
TestMultiplicationVisual.py
mgualti/MentalMath
be2e2ec2380b8298765962d869573c65d3d7b761
[ "MIT" ]
null
null
null
TestMultiplicationVisual.py
mgualti/MentalMath
be2e2ec2380b8298765962d869573c65d3d7b761
[ "MIT" ]
null
null
null
TestMultiplicationVisual.py
mgualti/MentalMath
be2e2ec2380b8298765962d869573c65d3d7b761
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Test a human's ability to do mental multiplication when the question is visible.''' # python import sys from time import sleep from random import random # pyttsx import pyttsx def main(nQuestions, nDigitsTop, nDigitsBottom, delay): '''Entrypoint to the program.''' # PARAMETERS ==========...
29.098361
100
0.549296
f4d20f14043e741ec79eeacda6a31836b01fe439
1,287
py
Python
apps/accounts/urls.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
apps/accounts/urls.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
apps/accounts/urls.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
from django.urls import path from django.conf.urls import url from django.contrib.auth import views as auth_views from apps.accounts.views import AdminRegistrationView from apps.accounts.views import AdminActivationView urlpatterns = [] urlpatterns = [ path( "password_reset/", auth_views.Password...
26.8125
80
0.643357
27f994f09865de8a181ff91d104d10af6f24fb87
39,812
py
Python
axelrod/tests/unit/test_tournament.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_tournament.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_tournament.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
"""Tests for the main tournament class.""" import csv import filecmp import io import logging import os import pickle import unittest import warnings from multiprocessing import Queue, cpu_count from unittest.mock import MagicMock, patch import axelrod import numpy as np import pandas as pd from axelrod.tests.propert...
36.897127
88
0.647167
7ef56c5523ddf81598edf1f001dd1f28e3dab071
3,076
py
Python
fontais/table.py
wallarelvo/fontais
7baf8af531967f72820e8ccab8e162d40bd7f951
[ "Apache-2.0" ]
1
2015-07-09T16:51:16.000Z
2015-07-09T16:51:16.000Z
fontais/table.py
wallarelvo/fontais
7baf8af531967f72820e8ccab8e162d40bd7f951
[ "Apache-2.0" ]
null
null
null
fontais/table.py
wallarelvo/fontais
7baf8af531967f72820e8ccab8e162d40bd7f951
[ "Apache-2.0" ]
null
null
null
import csv import numpy as np class Table(object): """ A generic table structure that works as an in memory database where every column is used as an index """ def __init__(self, headers): self.data = dict() self.rows = list() self.headers = map(lambda val: val.strip(), h...
27.963636
75
0.542263
d49e38928384b7729f790d609d889bf407f126fd
442
py
Python
labs/stacktrain/setup.py
finishertech/openstack-training-labs
50332026a2f00aaba3788decd7b3e0c5e8b231a7
[ "Apache-2.0" ]
73
2015-10-18T02:57:15.000Z
2021-06-04T08:28:09.000Z
labs/stacktrain/setup.py
finishertech/openstack-training-labs
50332026a2f00aaba3788decd7b3e0c5e8b231a7
[ "Apache-2.0" ]
1
2016-05-26T12:32:45.000Z
2016-05-26T12:32:45.000Z
labs/stacktrain/setup.py
finishertech/openstack-training-labs
50332026a2f00aaba3788decd7b3e0c5e8b231a7
[ "Apache-2.0" ]
46
2015-11-15T14:31:27.000Z
2021-03-25T10:59:25.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'My Project', 'author': 'Roger Luethi', 'url': 'URL to get it at.', 'download_url': 'Where to download it.', 'author_email': 'rl@patchworkscience.org', 'version': '0.1', ...
22.1
46
0.608597
df55beadbe02c86ad8c1a1874abbeb56154323a9
1,358
py
Python
examples/plotting/action_plotting.py
ndangtt/LeadingOnesDAC
953747d8702f179851d7973c65779a1f830e03a1
[ "Apache-2.0" ]
11
2020-11-09T10:50:31.000Z
2022-02-19T09:23:44.000Z
examples/plotting/action_plotting.py
ndangtt/LeadingOnesDAC
953747d8702f179851d7973c65779a1f830e03a1
[ "Apache-2.0" ]
95
2020-11-18T09:37:30.000Z
2022-02-17T10:05:33.000Z
examples/plotting/action_plotting.py
ndangtt/LeadingOnesDAC
953747d8702f179851d7973c65779a1f830e03a1
[ "Apache-2.0" ]
11
2020-11-15T15:24:27.000Z
2022-03-14T14:51:43.000Z
from pathlib import Path from dacbench.logger import load_logs, log2dataframe from dacbench.plotting import plot_action import matplotlib.pyplot as plt def plot_scalar_action(): """ Plot Sigmoid actions over time by action component and by mean action component in intervals """ file = Path("./data/si...
28.893617
96
0.717231
73386d0f7026f8ec8785c57b0917773d28d80e8d
7,757
py
Python
slim/prune/eval.py
linglanfeng/PaddleDetection
487e6e60b2cfe0b411bba64622ca7f8fe467f3d2
[ "Apache-2.0" ]
13
2020-09-09T12:23:36.000Z
2022-03-16T09:42:07.000Z
slim/prune/eval.py
rqjtsq/PaddleDetection
b457850659c43fbd4a26c4fc4b70a3709b9952d4
[ "Apache-2.0" ]
null
null
null
slim/prune/eval.py
rqjtsq/PaddleDetection
b457850659c43fbd4a26c4fc4b70a3709b9952d4
[ "Apache-2.0" ]
5
2020-09-14T07:35:39.000Z
2021-12-22T02:03:31.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.873362
95
0.655537
addfa18e243fce8885d6e8087431c4827639d524
1,728
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/logger_update_contract.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/logger_update_contract.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/logger_update_contract.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "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 ...
40.186047
78
0.62963
5352a02b80e5a25b747278e4a431bce20e3094eb
1,973
py
Python
setup.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
null
null
null
setup.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
null
null
null
setup.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys from distutils.core import setup install_requires = ['six'] extras_requires = { 'web': ['webob'], 'fcgi': ['flup6'], 'sqla': ['sqlalchemy'], 'memcached': ['python-memcached'], 'cleanhtml': ['lxml'], 'renderhtml': ['jinja2'], 'images': ['pillow'], } tests...
27.402778
83
0.582869
20909c5a26c3e7b77395e01c788a9d05bb8b08b8
392
py
Python
day5/day5.py
alexmotoc/AoC17
c496b1da3a5863b370e677b87b6f14c65863227c
[ "MIT" ]
null
null
null
day5/day5.py
alexmotoc/AoC17
c496b1da3a5863b370e677b87b6f14c65863227c
[ "MIT" ]
null
null
null
day5/day5.py
alexmotoc/AoC17
c496b1da3a5863b370e677b87b6f14c65863227c
[ "MIT" ]
null
null
null
import numpy as np input = np.loadtxt('day5_input.txt', dtype='i', delimiter='\n') current_index = 0 steps = 0 while current_index >= 0 and current_index < len(input): previous_index = current_index current_index += input[current_index] if input[previous_index] >= 3: input[previous_index] -= 1 ...
21.777778
63
0.665816
f7047db12c36770b75c15cf10d8ae3d6e3572d9e
1,130
py
Python
automatia/main.py
ShadowJonathan/automatia.py
555d473c11372b2eec14bcd7508b4593be4fba7f
[ "MIT" ]
1
2018-01-01T21:41:46.000Z
2018-01-01T21:41:46.000Z
automatia/main.py
ShadowJonathan/automatia.py
555d473c11372b2eec14bcd7508b4593be4fba7f
[ "MIT" ]
null
null
null
automatia/main.py
ShadowJonathan/automatia.py
555d473c11372b2eec14bcd7508b4593be4fba7f
[ "MIT" ]
null
null
null
from __future__ import print_function import sys CLI = False DEBUG = False AUTO = False def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def setdebug(state): global DEBUG DEBUG = state Debug("Python:") for p in sys.version.split("\n"): Debug(p) def setauto(state)...
14.868421
63
0.576991
f3eedcdfe5af58df24078cf851ebf7f2a9831040
4,062
py
Python
examples/cqc/python/hello_noLib/aliceTest.py
bvdvecht/SimulaQron
d190ebf5c4683db5b940efa55420bbef5eecf17a
[ "BSD-3-Clause" ]
null
null
null
examples/cqc/python/hello_noLib/aliceTest.py
bvdvecht/SimulaQron
d190ebf5c4683db5b940efa55420bbef5eecf17a
[ "BSD-3-Clause" ]
null
null
null
examples/cqc/python/hello_noLib/aliceTest.py
bvdvecht/SimulaQron
d190ebf5c4683db5b940efa55420bbef5eecf17a
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2017, Stephanie Wehner and Axel Dahlberg # 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 lis...
36.267857
101
0.657558
75a7e11f4f6e0dcc5288661aaa8cbfea928c7941
3,013
py
Python
src/compas_view2/objects/textobject.py
BlockResearchGroup/compas_view2
75ec0640d5c1c23c2d6e52b3403fd44a30967c6f
[ "MIT" ]
null
null
null
src/compas_view2/objects/textobject.py
BlockResearchGroup/compas_view2
75ec0640d5c1c23c2d6e52b3403fd44a30967c6f
[ "MIT" ]
null
null
null
src/compas_view2/objects/textobject.py
BlockResearchGroup/compas_view2
75ec0640d5c1c23c2d6e52b3403fd44a30967c6f
[ "MIT" ]
null
null
null
from .object import Object from compas_view2 import HOME from OpenGL import GL from ..buffers import make_index_buffer, make_vertex_buffer import freetype as ft import numpy as np import os class TextObject(Object): """Object for displaying text sprites.""" def __init__(self, data, name=None, color=None, h...
37.197531
139
0.645204
fc9f2ab4e668712c44d5a107c1cfd4386f8d3b58
6,518
py
Python
tools/linter/clang_tidy/__main__.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
5
2021-08-17T17:44:20.000Z
2021-08-21T05:03:42.000Z
tools/linter/clang_tidy/__main__.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
1
2021-09-03T09:35:27.000Z
2021-09-03T09:35:27.000Z
tools/linter/clang_tidy/__main__.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
null
null
null
import argparse import pathlib import os import shutil import subprocess import re import sys from typing import List from tools.linter.clang_tidy.run import run from tools.linter.clang_tidy.generate_build_files import generate_build_files from tools.linter.install.clang_tidy import INSTALLATION_PATH def clang_sear...
33.255102
102
0.619822
9d3b94558c8815d5910a35cc2c5a4e837a35d7ea
7,325
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/models/__init__.py
LeComptoirDesPharmacies/openapi-generator
a4325ec5205b68298fcc66b9e85927aa64d840ff
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/models/__init__.py
LeComptoirDesPharmacies/openapi-generator
a4325ec5205b68298fcc66b9e85927aa64d840ff
[ "Apache-2.0" ]
1
2022-03-31T10:08:39.000Z
2022-03-31T10:08:39.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/models/__init__.py
LeComptoirDesPharmacies/openapi-generator
a4325ec5205b68298fcc66b9e85927aa64d840ff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from petstore_api.model.pet import Pet # or import this packa...
57.677165
123
0.894608
149265cf92bc9f9ed3248205d608faf6611b538b
865
py
Python
bridgedb/_langs.py
jugheadjones10/bridgedb
94d6bca4b22458c156898785d8f6ccedf562d884
[ "BSD-3-Clause-Clear" ]
1
2016-09-21T12:55:21.000Z
2016-09-21T12:55:21.000Z
bridgedb/_langs.py
jugheadjones10/bridgedb
94d6bca4b22458c156898785d8f6ccedf562d884
[ "BSD-3-Clause-Clear" ]
null
null
null
bridgedb/_langs.py
jugheadjones10/bridgedb
94d6bca4b22458c156898785d8f6ccedf562d884
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of BridgeDB, a Tor bridge distribution system. # # :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org> # please also see AUTHORS file # :copyright: (c) 2007-2013, The Tor Project, Inc. # (c) 2007-2013, all entities within the AUTHORS file...
34.6
76
0.708671
6b00ca5491880879563b709dc07d1ac93996a91e
5,412
py
Python
handlers/checkers/type.py
n0s0r0g/perfect_OSM
d07fef525865a337d8d9bd3e8168cf6b411a182b
[ "MIT" ]
4
2016-04-03T21:12:57.000Z
2016-05-04T09:14:43.000Z
handlers/checkers/type.py
n0s0r0g/perfect_OSM
d07fef525865a337d8d9bd3e8168cf6b411a182b
[ "MIT" ]
null
null
null
handlers/checkers/type.py
n0s0r0g/perfect_OSM
d07fef525865a337d8d9bd3e8168cf6b411a182b
[ "MIT" ]
null
null
null
from handlers.simplehandler import SimpleHandler POINT = 'p' LINE = 'l' AREA = 'a' RELATION = 'r' _BAD_TYPE = { 'title': 'Некорректный тип элемента', 'help_text': 'Для данного тега, либо пары тег=значение в Wiki указаны другие типы данных (точка, линия, ' 'полигон/мультиполигон/отношение).', ...
30.576271
111
0.529379
c09dab34be1e9280cbdda16b5f871b896d82f986
24,192
py
Python
tests/python/relay/test_json_runtime.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
tests/python/relay/test_json_runtime.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
null
null
null
tests/python/relay/test_json_runtime.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
5
2018-03-27T01:02:13.000Z
2020-12-29T00:32:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.893175
97
0.613426
a2cb04ea50ab0363f3d617b3c6bdd890d606000e
9,395
py
Python
homeworks/hw5/task1_tkinter.py
ermekaitygulov/made-robotics
aefaa96627bf2d871fb925acfaab43b3deb8ee57
[ "Apache-2.0" ]
null
null
null
homeworks/hw5/task1_tkinter.py
ermekaitygulov/made-robotics
aefaa96627bf2d871fb925acfaab43b3deb8ee57
[ "Apache-2.0" ]
null
null
null
homeworks/hw5/task1_tkinter.py
ermekaitygulov/made-robotics
aefaa96627bf2d871fb925acfaab43b3deb8ee57
[ "Apache-2.0" ]
null
null
null
from tkinter import * import math '''=================Yours Methods=================''' class Window(): def __init__(self): self.root = Tk() self.root.title("") self.width = self.root.winfo_screenwidth() self.height = self.root.winfo_screenheight() self.root.geometry(...
31.847458
96
0.530601
712ffe2d631c14d7c778aafa23826e8fad2b861c
6,432
py
Python
sdk/python/pulumi_azure_native/network/v20190401/get_route_filter.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190401/get_route_filter.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190401/get_route_filter.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
34.395722
167
0.634173
70efe49062ab8ebed09feac4534efedad7464f61
6,978
py
Python
core/tests/performance_tests/base.py
anubhavsinha98/oppia
9a64ea2e91d2f471ce22bd39da77b43dccd5b51f
[ "Apache-2.0" ]
1
2019-08-31T17:06:41.000Z
2019-08-31T17:06:41.000Z
core/tests/performance_tests/base.py
anubhavsinha98/oppia
9a64ea2e91d2f471ce22bd39da77b43dccd5b51f
[ "Apache-2.0" ]
null
null
null
core/tests/performance_tests/base.py
anubhavsinha98/oppia
9a64ea2e91d2f471ce22bd39da77b43dccd5b51f
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.920635
80
0.685153
d8c43c16e15978aa8f6eb49d204f2449b6e988bd
3,160
py
Python
lectures/scrape/lecture-scraper/tutorialscraper/settings.py
JiyuanLyu/PIC16B
1cb5c8aea797bc1f88ec5759e7f110d2ba5d2b5b
[ "MIT" ]
null
null
null
lectures/scrape/lecture-scraper/tutorialscraper/settings.py
JiyuanLyu/PIC16B
1cb5c8aea797bc1f88ec5759e7f110d2ba5d2b5b
[ "MIT" ]
null
null
null
lectures/scrape/lecture-scraper/tutorialscraper/settings.py
JiyuanLyu/PIC16B
1cb5c8aea797bc1f88ec5759e7f110d2ba5d2b5b
[ "MIT" ]
null
null
null
# Scrapy settings for tutorialscraper 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/latest/topics/downloader-mi...
35.505618
103
0.782278
e0e6a90368397b4f87823b7d3df88414e47a4b81
1,015
py
Python
env/Lib/site-packages/plotly/validators/histogram2d/_xcalendar.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/Lib/site-packages/plotly/validators/histogram2d/_xcalendar.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/Lib/site-packages/plotly/validators/histogram2d/_xcalendar.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="xcalendar", parent_name="histogram2d", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
30.757576
85
0.407882
880c5b1df4ad4eec02aa8f8b4f27903fe449784c
38,213
py
Python
pacman-contest/capture.py
ctdempsey/pacman-ctf-comp-site
63a2bbef5008df619b0f5ead7eceecb880169c8e
[ "Unlicense" ]
null
null
null
pacman-contest/capture.py
ctdempsey/pacman-ctf-comp-site
63a2bbef5008df619b0f5ead7eceecb880169c8e
[ "Unlicense" ]
null
null
null
pacman-contest/capture.py
ctdempsey/pacman-ctf-comp-site
63a2bbef5008df619b0f5ead7eceecb880169c8e
[ "Unlicense" ]
null
null
null
# capture.py # ---------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # #...
36.05
181
0.652265
05798676d295906b89227eaaf7854196efa2289a
5,030
py
Python
tests/fugue/execution/test_factory.py
gityow/fugue
e975625b33766d8b9dc64c6954871569b59367ec
[ "Apache-2.0" ]
null
null
null
tests/fugue/execution/test_factory.py
gityow/fugue
e975625b33766d8b9dc64c6954871569b59367ec
[ "Apache-2.0" ]
null
null
null
tests/fugue/execution/test_factory.py
gityow/fugue
e975625b33766d8b9dc64c6954871569b59367ec
[ "Apache-2.0" ]
null
null
null
from typing import Any from fugue import ( NativeExecutionEngine, SqliteEngine, make_execution_engine, make_sql_engine, register_default_execution_engine, register_default_sql_engine, register_execution_engine, register_sql_engine, ) from fugue.execution.factory import _ExecutionEngineF...
33.758389
89
0.699404
e92bf4474b60b454994992a6728516f13d054525
28,488
py
Python
fhirclient/models/composition.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/composition.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
fhirclient/models/composition.py
mdx-dev/client-py
f6c16c9bd386c5b05d69753b89c6519d568814ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Composition) on 2019-01-22. # 2019, SMART Health IT. from . import domainresource class Composition(domainresource.DomainResource): """ A s e t o f r ...
11.408891
108
0.295352
9925fd51561ae5bcbbc477003f9b6759e32c8908
1,320
py
Python
pandas/tests/extension/test_external_block.py
flaboss/pandas
a62102932fd73da0604aba0199cd234317652c15
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-12T21:15:09.000Z
2020-04-12T21:15:09.000Z
pandas/tests/extension/test_external_block.py
flaboss/pandas
a62102932fd73da0604aba0199cd234317652c15
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2020-03-09T13:15:03.000Z
2020-03-20T10:07:10.000Z
pandas/tests/extension/test_external_block.py
flaboss/pandas
a62102932fd73da0604aba0199cd234317652c15
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest import pandas as pd from pandas.core.internals import BlockManager from pandas.core.internals.blocks import ExtensionBlock class CustomBlock(ExtensionBlock): _holder = np.ndarray _can_hold_na = False def concat_same_type(self, to_concat, placement=None): """ ...
28.695652
75
0.67803
f06756553fb502480d963ecdeca5e6cd8066b8c9
9,552
py
Python
models/resnet.py
YBZh/Label-Propagation-with-Augmented-Anchors
83c6d0ecaa1c7f79a7dfbbd9fe0cd367c695ead8
[ "MIT" ]
18
2020-07-18T15:34:19.000Z
2021-06-07T01:32:52.000Z
models/resnet.py
Gorilla-Lab-SCUT/Label-Propagation-with-Augmented-Anchors
83c6d0ecaa1c7f79a7dfbbd9fe0cd367c695ead8
[ "MIT" ]
null
null
null
models/resnet.py
Gorilla-Lab-SCUT/Label-Propagation-with-Augmented-Anchors
83c6d0ecaa1c7f79a7dfbbd9fe0cd367c695ead8
[ "MIT" ]
4
2020-10-05T08:00:32.000Z
2021-03-26T19:29:58.000Z
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch import ipdb from torch.autograd import Function __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.p...
32.937931
100
0.618405
716c4af65d715fc5c19592f7185ae3f2a3b3c92d
17,805
py
Python
pyVmomi/_typeinfo_ciscm.py
xweichu/pyvmomi
77aedef02974a63517a079c482e49fd9890c09a4
[ "Apache-2.0" ]
null
null
null
pyVmomi/_typeinfo_ciscm.py
xweichu/pyvmomi
77aedef02974a63517a079c482e49fd9890c09a4
[ "Apache-2.0" ]
null
null
null
pyVmomi/_typeinfo_ciscm.py
xweichu/pyvmomi
77aedef02974a63517a079c482e49fd9890c09a4
[ "Apache-2.0" ]
null
null
null
# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT ******* from .VmomiSupport import CreateDataType, CreateManagedType from .VmomiSupport import CreateEnumType from .VmomiSupport import AddVersion, AddVersionParent from .VmomiSupport import AddBreakingChangesInfo from .VmomiSupport import F_LINK, F_LINKABLE from .Vm...
287.177419
2,897
0.724235
b31b26b28960e52231166d593a866902d4a66f31
454
py
Python
Source Code/Python API/run_livetop.py
D-TACQ/acq400_lv
684e06a294ceb865511a7568e5038b209bdc3374
[ "MIT" ]
null
null
null
Source Code/Python API/run_livetop.py
D-TACQ/acq400_lv
684e06a294ceb865511a7568e5038b209bdc3374
[ "MIT" ]
2
2018-04-23T16:37:19.000Z
2018-07-11T10:51:19.000Z
Source Code/Python API/run_livetop.py
D-TACQ/acq400_lv
684e06a294ceb865511a7568e5038b209bdc3374
[ "MIT" ]
3
2018-04-20T11:53:29.000Z
2018-04-25T15:25:55.000Z
#!/usr/bin/env python # run a livetop process import acq400_hapi import argparse def run_shot(args): uut = acq400_hapi.Acq400(args.uuts[0]) acq400_hapi.cleanup.init() uut.run_livetop() def run_main(): parser = argparse.ArgumentParser(description='acq1001 livetop demo') parser.add_argument('uut...
20.636364
72
0.696035
3218d9354259e0276f74fe13f06daafdb8bdcdd1
3,625
py
Python
public/client.py
danilo-p/redes-tp-1
c8516b500b14d1cd74a043dde06de160f172eac5
[ "MIT" ]
null
null
null
public/client.py
danilo-p/redes-tp-1
c8516b500b14d1cd74a043dde06de160f172eac5
[ "MIT" ]
5
2021-01-11T23:22:15.000Z
2021-01-16T02:29:47.000Z
public/client.py
danilo-p/redes-tp-1
c8516b500b14d1cd74a043dde06de160f172eac5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import resource import logging import re import time import select import socket import sys BUFSZ = 4096 def create_parser(): desc = """Client controller for testing""" parser = argparse.ArgumentParser(description=desc) parser.add_argument( "--script", ...
31.521739
88
0.575172
2db19f81e4e98d5897729af128056bcac6c6986d
8,125
py
Python
engine.py
Masrik-Dahir/Rampantry
51df90c041e5dad644df54872d85528ab8553672
[ "MIT" ]
null
null
null
engine.py
Masrik-Dahir/Rampantry
51df90c041e5dad644df54872d85528ab8553672
[ "MIT" ]
null
null
null
engine.py
Masrik-Dahir/Rampantry
51df90c041e5dad644df54872d85528ab8553672
[ "MIT" ]
null
null
null
from labpack.storage.google.drive import driveClient import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library from time import sleep # Import the sleep function from the time module import os import time import datetime import urllib2 def generate(): GPIO.setwarnings(False) # Ignore warning for now GPIO....
38.14554
119
0.604554
1dfac409d745a364c0f38d9b31798df2ae33e419
9,528
py
Python
autogl/module/_feature/generators/graphlet.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
824
2020-11-30T14:38:07.000Z
2022-03-19T10:14:04.000Z
autogl/module/_feature/generators/graphlet.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
38
2020-12-21T12:32:57.000Z
2022-01-31T02:32:05.000Z
autogl/module/_feature/generators/graphlet.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
85
2020-12-21T05:16:09.000Z
2022-03-28T08:44:22.000Z
import numpy as np import copy from .base import BaseGenerator from tqdm import tqdm from ....utils import get_logger from .. import register_feature LOGGER = get_logger("Feature") class Graphlet: def __init__(self, data, sample_error=0.1, sample_confidence=0.1): self._data = data self._init() ...
32.189189
130
0.436608
8d96f361e8c840b06c4c33313a21659b29467db9
524
py
Python
AtCoder Beginner Contest 190/B - Magic 3.py
codedreamer-dg/AtCoder
6a4a9a2bc558bb0b21505877e00858d0c7981701
[ "MIT" ]
null
null
null
AtCoder Beginner Contest 190/B - Magic 3.py
codedreamer-dg/AtCoder
6a4a9a2bc558bb0b21505877e00858d0c7981701
[ "MIT" ]
null
null
null
AtCoder Beginner Contest 190/B - Magic 3.py
codedreamer-dg/AtCoder
6a4a9a2bc558bb0b21505877e00858d0c7981701
[ "MIT" ]
null
null
null
import sys from collections import defaultdict as dd from math import * from bisect import * #sys.setrecursionlimit(10 ** 8) def sinp(): return input() def inp(): return int(input()) def minp(): return map(int, input().split()) def linp(): return list(minp()) def strl(): return list(input()) def pr(...
17.466667
41
0.59542
06ab59e774ccd186901e357fa564488cf9ccdab8
5,819
py
Python
salt/states/libcloud_dns.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
salt/states/libcloud_dns.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
null
null
null
salt/states/libcloud_dns.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' Manage DNS records and zones using libcloud :codeauthor: Anthony Shaw <anthonyshaw@apache.org> .. versionadded:: 2016.11.0 Create and delete DNS records or zones through Libcloud. Libcloud's DNS system supports over 20 DNS providers including Amazon, Google, GoDaddy, Softlayer This m...
29.538071
99
0.614023
e8911eabb7dc5cfa5ad87d007dead6f0647e02c5
410
py
Python
app/models/especialidade.py
RaimundoLima/Zivot
d11e22cccaa1e25bb11244c1178cfd374e386a79
[ "Apache-2.0", "bzip2-1.0.6" ]
null
null
null
app/models/especialidade.py
RaimundoLima/Zivot
d11e22cccaa1e25bb11244c1178cfd374e386a79
[ "Apache-2.0", "bzip2-1.0.6" ]
null
null
null
app/models/especialidade.py
RaimundoLima/Zivot
d11e22cccaa1e25bb11244c1178cfd374e386a79
[ "Apache-2.0", "bzip2-1.0.6" ]
null
null
null
from .base import Base from sqlalchemy import DateTime,Time,ForeignKey,Column, Integer, Numeric, Binary, String,VARCHAR,Float from sqlalchemy.orm import relationship class Especialidade(Base): nome = Column(VARCHAR(100), nullable=False) medicos=relationship('Medico',backref='especialidade',lazy=True) #usua...
45.555556
102
0.802439
62b09ec68bae8eb0b84fd38560d028d838a27f5d
1,730
py
Python
starlette/middleware/authentication.py
carlodri/starlette
2505df422532b1e76daaf03bfd0b9dfd380cfa94
[ "BSD-3-Clause" ]
null
null
null
starlette/middleware/authentication.py
carlodri/starlette
2505df422532b1e76daaf03bfd0b9dfd380cfa94
[ "BSD-3-Clause" ]
null
null
null
starlette/middleware/authentication.py
carlodri/starlette
2505df422532b1e76daaf03bfd0b9dfd380cfa94
[ "BSD-3-Clause" ]
null
null
null
import functools import typing from starlette.authentication import ( AuthCredentials, AuthenticationBackend, AuthenticationError, UnauthenticatedUser, ) from starlette.requests import Request from starlette.responses import PlainTextResponse, Response from starlette.types import ASGIApp, ASGIInstance,...
33.921569
83
0.667052
1a9242f95cda17318e7e92ae7598f0ca613ba18d
2,253
py
Python
tests/test_skillsearch.py
allenai/alexafsm
0c2e8842ddbb4a34ac64a5139e7febee3b28889a
[ "Apache-2.0" ]
108
2017-05-11T22:33:39.000Z
2022-03-04T03:04:51.000Z
tests/test_skillsearch.py
allenai/alexafsm
0c2e8842ddbb4a34ac64a5139e7febee3b28889a
[ "Apache-2.0" ]
null
null
null
tests/test_skillsearch.py
allenai/alexafsm
0c2e8842ddbb4a34ac64a5139e7febee3b28889a
[ "Apache-2.0" ]
17
2017-05-12T23:26:38.000Z
2020-04-20T19:39:54.000Z
import pytest import json from tests.skillsearch.policy import Policy from alexafsm.utils import validate, events_states_transitions, unused_events_states_transitions from alexafsm.test_helpers import get_requests_responses from tests.skillsearch.skill_settings import SkillSettings def test_validate_policy(): po...
42.509434
96
0.725255
7a1ba992b6ed0aeef26f0f10860be90d9bf8de73
278
py
Python
vet_website/www/main/inventory/products/form.py
rezazrna/vet_website
26e731cb10c31d69292f33659c49c3cfa5646c39
[ "MIT" ]
null
null
null
vet_website/www/main/inventory/products/form.py
rezazrna/vet_website
26e731cb10c31d69292f33659c49c3cfa5646c39
[ "MIT" ]
null
null
null
vet_website/www/main/inventory/products/form.py
rezazrna/vet_website
26e731cb10c31d69292f33659c49c3cfa5646c39
[ "MIT" ]
null
null
null
import frappe def get_context(context): context.no_cache = True context.alt_page_title = "Product Baru" if frappe.session.user == 'Guest': frappe.local.flags.redirect_location = frappe.utils.get_url('/login') raise frappe.Redirect return context
30.888889
77
0.705036
a566e7cc9e3f131f5e5ac70f4181ed7b217936a5
724
py
Python
sdk/python/pulumi_azure_nextgen/servicebus/v20140901/__init__.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/servicebus/v20140901/__init__.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/servicebus/v20140901/__init__.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .get_namespace import * from .get_namespace_authorization_rule import * from .get_queue import * from ...
32.909091
80
0.780387
61befb73f4573651252d6f7ff27d43a0f1e216bd
1,412
py
Python
main.py
Mdotta/playlist-genre-graph
88a46afae8c99cc476550c407b6e30e33b8c34be
[ "MIT" ]
null
null
null
main.py
Mdotta/playlist-genre-graph
88a46afae8c99cc476550c407b6e30e33b8c34be
[ "MIT" ]
null
null
null
main.py
Mdotta/playlist-genre-graph
88a46afae8c99cc476550c407b6e30e33b8c34be
[ "MIT" ]
null
null
null
from collections import Counter import os from dotenv import load_dotenv import spotipy from spotipy import client from spotipy.oauth2 import SpotifyOAuth load_dotenv() CLIENT_ID = os.getenv('CLIENT_ID') CLIENT_SECRET = os.getenv('CLIENT_SECRET') REDIRECT_URI = os.getenv('REDIRECT_URI') SCOPE = os.getenv('SCOPE') P...
34.439024
137
0.692635
b7f02412cca47642900dca1a92bb66e76e8f5b1f
6,410
py
Python
src/retrieval_core/models/encoder/backbones/vgg.py
RImbriaco/OML
4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b
[ "MIT" ]
2
2021-09-08T12:33:05.000Z
2021-09-14T09:40:43.000Z
src/retrieval_core/models/encoder/backbones/vgg.py
RImbriaco/OML
4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b
[ "MIT" ]
null
null
null
src/retrieval_core/models/encoder/backbones/vgg.py
RImbriaco/OML
4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b
[ "MIT" ]
1
2021-09-08T12:35:10.000Z
2021-09-08T12:35:10.000Z
import torch.nn as nn from torch.hub import load_state_dict_from_url __all__ = [ 'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn', 'vgg19_bn', 'vgg19', ] model_urls = { 'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth', 'vgg13': 'https://download.pytorch.org/model...
36.420455
113
0.614041
1dd1e6885a72ce0c4ff106568c6b393e52c869ed
27,619
py
Python
seqapp/tabs/main_page.py
tlallema/essai
180230b2f847e09559b7bc8a32205b6ed9208415
[ "MIT" ]
null
null
null
seqapp/tabs/main_page.py
tlallema/essai
180230b2f847e09559b7bc8a32205b6ed9208415
[ "MIT" ]
null
null
null
seqapp/tabs/main_page.py
tlallema/essai
180230b2f847e09559b7bc8a32205b6ed9208415
[ "MIT" ]
1
2021-11-12T04:02:22.000Z
2021-11-12T04:02:22.000Z
"""MAIN APP PAGE Contains the principle tab of the application UI - where the user uploads input files, launches analyses, and interprets &/or downloads pipeline output QC results. This is the first tab of the single-page UI (and therefore the default presentation immediately upon loading the app), and the only one a u...
36.150524
162
0.381694
7ff648ee09a0afb4b86bc1fe1c44604e90bd16ed
6,783
py
Python
plugin.video.plexodusplayer/resources/lib/meta/play/players.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
1
2020-03-03T10:01:21.000Z
2020-03-03T10:01:21.000Z
plugin.video.plexodusplayer/resources/lib/meta/play/players.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
plugin.video.plexodusplayer/resources/lib/meta/play/players.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
import re import json from xbmcswift2 import xbmc, xbmcgui, xbmcvfs from meta import plugin from meta.gui import dialogs from meta.utils.text import to_unicode from settings import SETTING_AUTOPATCH, SETTING_AUTOPATCHES from language import get_string as _ EXTENSION = ".boneplayer.json" HTML_TAGS_REGEX = re.compile(r'...
49.875
669
0.58396
aba9409ccc6a2089f70481ca6d8f766e131d1e3d
27,496
py
Python
HaiQuan/Api/Cloud/Registry/Registry.py
haiquan5396/K59_training
bc6a029aae54b28a8060e7c66747b40b5398d750
[ "MIT" ]
null
null
null
HaiQuan/Api/Cloud/Registry/Registry.py
haiquan5396/K59_training
bc6a029aae54b28a8060e7c66747b40b5398d750
[ "MIT" ]
8
2017-04-08T07:44:50.000Z
2017-09-05T12:26:19.000Z
HaiQuan/Api/Cloud/Registry/Registry.py
haiquan5396/K59_training
bc6a029aae54b28a8060e7c66747b40b5398d750
[ "MIT" ]
8
2017-04-04T15:52:29.000Z
2018-05-13T07:45:38.000Z
import json import uuid import time import threading from mysql.connector.pooling import MySQLConnectionPool from kombu import Producer, Connection, Consumer, exceptions, Exchange, Queue from kombu.utils.compat import nested import sys class Registry(): def __init__(self, broker_cloud, mode, db_config, time_inact...
46.445946
136
0.55899
cbe424ea2a15ea1bc4e5a6bd0bce63a54c68f21c
979
py
Python
RecoParticleFlow/PFProducer/python/particleFlow_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
RecoParticleFlow/PFProducer/python/particleFlow_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
RecoParticleFlow/PFProducer/python/particleFlow_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms #Geometry # include used for track reconstruction # note that tracking is redone since we need updated hits and they # are not stored in the event! from RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff import * from RecoParticleFlow.PFProducer.particleFlow_cfi import * f...
48.95
98
0.808989
c4e534a30db846b91d2d6543c5a23f431cbd0087
998
py
Python
src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/odata_error_detail.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/odata_error_detail.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/odata_error_detail.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
7
2021-02-11T19:48:57.000Z
2021-12-17T08:00:15.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
30.242424
76
0.528056
cb5dfff2a2c8889458782acda7bd1ed4c2702600
179
py
Python
main.py
wangweijia/Chess
6de1350b5a8f498005dcc914a2c27e4588a768b0
[ "Apache-2.0" ]
null
null
null
main.py
wangweijia/Chess
6de1350b5a8f498005dcc914a2c27e4588a768b0
[ "Apache-2.0" ]
null
null
null
main.py
wangweijia/Chess
6de1350b5a8f498005dcc914a2c27e4588a768b0
[ "Apache-2.0" ]
null
null
null
from Checkerboard import * def main(): checkerboard = Checkerboard() res = checkerboard.getNextPlayer() print('--------,', res) if __name__ == '__main__': main()
16.272727
38
0.620112
e6320645763b44b78c386908ee05c96ec575bf1e
266
py
Python
scripts/patch.py
TekBoundary/libnode
2064932a579ff38826f100b08588c583dc2e70b3
[ "MIT" ]
null
null
null
scripts/patch.py
TekBoundary/libnode
2064932a579ff38826f100b08588c583dc2e70b3
[ "MIT" ]
null
null
null
scripts/patch.py
TekBoundary/libnode
2064932a579ff38826f100b08588c583dc2e70b3
[ "MIT" ]
null
null
null
assert __name__ == "__main__" import subprocess import os import shutil from . import config os.chdir('node-{}'.format(config.nodeVersion)) subprocess.check_call(['patch', '-p1', '-i', '../uv.patch']) shutil.copyfile('deps/uv/include/uv.h', 'include/node/uv.h')
20.461538
60
0.703008
ed1bd2050a1ef46ed289a652202df3d938302b94
2,854
py
Python
nova/api/openstack/compute/admin_password.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/api/openstack/compute/admin_password.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/api/openstack/compute/admin_password.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.589744
79
0.715137
9751270bfc91a8b9149afc18b79e55b4ad5fd98c
14,139
py
Python
tests/test_data_object/test_data_object.py
do-py-together/do-py
c55b5efd01dc3afd9979f74bce3a40e00e204236
[ "MIT" ]
7
2020-07-07T02:53:44.000Z
2022-03-28T00:56:36.000Z
tests/test_data_object/test_data_object.py
do-py-together/do-py
c55b5efd01dc3afd9979f74bce3a40e00e204236
[ "MIT" ]
31
2020-03-24T17:55:05.000Z
2022-03-31T04:27:14.000Z
tests/test_data_object/test_data_object.py
do-py-together/do-py
c55b5efd01dc3afd9979f74bce3a40e00e204236
[ "MIT" ]
null
null
null
""" Test resource base model. :date_created: 2018-09-25 """ import json from builtins import object import pytest from do_py import DataObject from do_py.common import R from do_py.exceptions import DataObjectError, RestrictionError from ..data import A, MyTestException, data, keys, short_data def our_hasattr(inst...
30.938731
118
0.505198
856727eb61c62f1f078b98f142e2ab60287d37f9
835
py
Python
06_matrix/diffusion_2d/diffusion_numpy_memory.py
siddheshmhatre/high_performance_python
4c308dddb400fcd4c4ab7c4d59dc56eb5dd58d1d
[ "RSA-MD" ]
698
2015-01-06T14:10:26.000Z
2022-03-29T03:05:09.000Z
06_matrix/diffusion_2d/diffusion_numpy_memory.py
siddheshmhatre/high_performance_python
4c308dddb400fcd4c4ab7c4d59dc56eb5dd58d1d
[ "RSA-MD" ]
6
2015-01-12T18:03:24.000Z
2021-06-02T13:05:20.000Z
06_matrix/diffusion_2d/diffusion_numpy_memory.py
siddheshmhatre/high_performance_python
4c308dddb400fcd4c4ab7c4d59dc56eb5dd58d1d
[ "RSA-MD" ]
260
2015-01-16T13:58:57.000Z
2022-03-28T16:49:34.000Z
#!/usr/bin/env python2.7 import numpy as np import time grid_shape = (512, 512) def laplacian(grid, out): np.copyto(out, grid) out *= -4 out += np.roll(grid, +1, 0) out += np.roll(grid, -1, 0) out += np.roll(grid, +1, 1) out += np.roll(grid, -1, 1) def evolve(grid, dt, out, D=1): lapla...
20.875
60
0.609581
f9a08ba4c9b146534fbd27361fdc2fc2a68f87d9
3,926
py
Python
python/paddle/fluid/tests/unittests/mlu/test_lookup_table_v2_op_mlu.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/mlu/test_lookup_table_v2_op_mlu.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/mlu/test_lookup_table_v2_op_mlu.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
27.454545
79
0.643658
e04305da5f4e723f39a937d59a8826d19561a519
1,807
py
Python
solum/conductor/api.py
openstack/solum
0a744883ca00a0ee80e1b6840ac42a78fc397450
[ "Apache-2.0" ]
39
2015-09-26T01:30:52.000Z
2021-05-20T23:37:43.000Z
solum/conductor/api.py
openstack/solum
0a744883ca00a0ee80e1b6840ac42a78fc397450
[ "Apache-2.0" ]
null
null
null
solum/conductor/api.py
openstack/solum
0a744883ca00a0ee80e1b6840ac42a78fc397450
[ "Apache-2.0" ]
30
2015-10-25T18:06:39.000Z
2020-01-14T12:14:06.000Z
# Copyright 2014 - Rackspace Hosting # # 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...
41.068182
79
0.670172
a2d4e25a2b3990c9908cf4656117e451bfe7ec0d
879
py
Python
serverless-python-dynamodb/aliases/create.py
ilya40umov/aws-basics
925bdcce3b4d248929b8dd5536db163a83e42286
[ "Apache-2.0" ]
null
null
null
serverless-python-dynamodb/aliases/create.py
ilya40umov/aws-basics
925bdcce3b4d248929b8dd5536db163a83e42286
[ "Apache-2.0" ]
null
null
null
serverless-python-dynamodb/aliases/create.py
ilya40umov/aws-basics
925bdcce3b4d248929b8dd5536db163a83e42286
[ "Apache-2.0" ]
null
null
null
import json import logging import os import time import boto3 localstack_hostname = os.environ['LOCALSTACK_HOSTNAME'] if localstack_hostname: dynamodb = boto3.resource('dynamodb', endpoint_url=f"http://{localstack_hostname}:4566") else: dynamodb = boto3.resource('dynamodb') def create(event, context): ...
20.928571
92
0.632537
da9590c9acf273f792aaacd3e0bcbd83a365c997
10,056
py
Python
plugins/Factoids/test.py
MicrohexHQ/supybot_fixes
f14e51f0379eee641c8b9c80a9259628f509f832
[ "BSD-3-Clause" ]
5
2016-06-26T01:25:21.000Z
2021-10-31T06:10:01.000Z
plugins/Factoids/test.py
MicrohexHQ/supybot_fixes
f14e51f0379eee641c8b9c80a9259628f509f832
[ "BSD-3-Clause" ]
1
2015-02-16T16:56:10.000Z
2015-02-16T16:56:10.000Z
plugins/Factoids/test.py
MicrohexHQ/supybot_fixes
f14e51f0379eee641c8b9c80a9259628f509f832
[ "BSD-3-Clause" ]
5
2015-08-23T22:59:26.000Z
2021-10-31T06:10:18.000Z
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2010, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyri...
46.555556
86
0.652546
ec82b640fba8271491eaef8e9b992580bd2baba2
595
py
Python
tradester/feeds/static/futures.py
wrieg123/tradester
440210940f80e94fde4d43841c729f63b05f597d
[ "MIT" ]
5
2020-11-11T14:54:59.000Z
2020-11-13T04:00:25.000Z
tradester/feeds/static/futures.py
wrieg123/tradester
440210940f80e94fde4d43841c729f63b05f597d
[ "MIT" ]
null
null
null
tradester/feeds/static/futures.py
wrieg123/tradester
440210940f80e94fde4d43841c729f63b05f597d
[ "MIT" ]
null
null
null
from .feed import MetaFeed, TSFeed __all__ = ['FuturesMeta', 'FuturesTS'] class FuturesMeta(MetaFeed): def __init__(self, identifiers, credentials = None): super().__init__(identifiers, "*", "futures", "contract", credentials) class FuturesTS(TSFeed): def __init__(self, identifi...
42.5
170
0.678992
df8fadcd24376e5fe34151339433b1f02d885bf6
2,859
py
Python
tools/keystone_version.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
tools/keystone_version.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
tools/keystone_version.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.000Z
# Copyright (c) 2017 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
31.417582
79
0.601959
05c35aba0e2b6d69ad3e61c49f2a757f4f07e120
4,204
py
Python
tests/test_modules/thread_aware_modules.py
jleaniz/dftimewolf
9f4f2f3914f713e237974ce7efcb169885e5a4e6
[ "Apache-2.0" ]
null
null
null
tests/test_modules/thread_aware_modules.py
jleaniz/dftimewolf
9f4f2f3914f713e237974ce7efcb169885e5a4e6
[ "Apache-2.0" ]
null
null
null
tests/test_modules/thread_aware_modules.py
jleaniz/dftimewolf
9f4f2f3914f713e237974ce7efcb169885e5a4e6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Contains dummy modules used in thread aware tests.""" from typing import Dict, Any import threading import time from dftimewolf.lib import module from dftimewolf.lib.containers import interface from dftimewolf.lib.containers import containers class TestContainer(interface.AttributeContain...
29.605634
80
0.714795
e90f256b42e51a28b45ee0cc2485f5f69a84af23
1,240
py
Python
setup.py
m4rk3r/django-filebrowser
cecf6560e6e343849b699dd04e189e5ccee45ad6
[ "BSD-3-Clause" ]
1
2019-12-22T23:44:22.000Z
2019-12-22T23:44:22.000Z
setup.py
m4rk3r/django-filebrowser
cecf6560e6e343849b699dd04e189e5ccee45ad6
[ "BSD-3-Clause" ]
null
null
null
setup.py
m4rk3r/django-filebrowser
cecf6560e6e343849b699dd04e189e5ccee45ad6
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-filebrowser', version='3.12.1', description='Media-Management with Grappelli', long_description=read('README.rst'), url='http://django...
30.243902
70
0.625
c65c17e23aea751f3da0717d25da21d1edb1aeb0
2,782
py
Python
backend/pyrogram/raw/types/input_file_location.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/types/input_file_location.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/types/input_file_location.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.977011
118
0.634436
a2c7594cb1f816be4ec63ec502c7f91db319c15b
1,392
py
Python
web/admintools/views.py
tellg/arxcode
f04340f9466c31f59bc13b8e1afd4f5734da4848
[ "MIT" ]
null
null
null
web/admintools/views.py
tellg/arxcode
f04340f9466c31f59bc13b8e1afd4f5734da4848
[ "MIT" ]
null
null
null
web/admintools/views.py
tellg/arxcode
f04340f9466c31f59bc13b8e1afd4f5734da4848
[ "MIT" ]
null
null
null
from django.db.models import Q from django.http import Http404 from django.shortcuts import render from web.character.models import Revelation, Clue from world.dominion.models import PlotAction def admin_search(request): if not request.user.is_staff: raise Http404 search_term = request.GET.get("sear...
38.666667
115
0.66092
2c1c978d9e338557883a90717c5bb33760bf1446
4,135
py
Python
scripts/plot_zcta_nys.py
iQoo/NYState-COVID-19-Tracker
2c39c182e3420768bc60902d220d6b257eb7b73f
[ "MIT" ]
16
2020-04-01T16:22:32.000Z
2020-08-10T20:14:19.000Z
scripts/plot_zcta_nys.py
iQoo/NYState-COVID-19-Tracker
2c39c182e3420768bc60902d220d6b257eb7b73f
[ "MIT" ]
11
2020-04-02T14:21:22.000Z
2022-03-12T00:28:20.000Z
scripts/plot_zcta_nys.py
iQoo/NYState-COVID-19-Tracker
2c39c182e3420768bc60902d220d6b257eb7b73f
[ "MIT" ]
8
2020-04-02T14:10:31.000Z
2020-10-24T05:06:24.000Z
import numpy from matplotlib import pyplot as plt import csv from collections import OrderedDict import arrow from datetime import timedelta from matplotlib import lines import matplotlib.patheffects as PathEffects if __name__ == "__main__": with open("data/NYS-county-testing-records.csv") as fp: reader ...
39.380952
123
0.576542
c427ff930a2e1ff1a1e5bb253811baaf8df55f45
22,556
py
Python
papers/ReTraCk/retriever/entitylinking/train_ner.py
microsoft/KC
928c74073246ef932f6b80f6fe353117a6cacb55
[ "MIT" ]
29
2021-07-27T05:48:53.000Z
2022-03-30T00:05:41.000Z
papers/ReTraCk/retriever/entitylinking/train_ner.py
microsoft/KC
928c74073246ef932f6b80f6fe353117a6cacb55
[ "MIT" ]
5
2021-07-29T08:00:26.000Z
2022-03-24T02:35:15.000Z
papers/ReTraCk/retriever/entitylinking/train_ner.py
microsoft/KC
928c74073246ef932f6b80f6fe353117a6cacb55
[ "MIT" ]
7
2021-07-29T07:53:52.000Z
2022-02-21T08:10:26.000Z
""" This script is adopted from https://github.com/kamalkraj/BERT-NER """ from __future__ import absolute_import, division, print_function import argparse import csv import json import logging import os import random import sys import numpy as np import torch import torch.nn.functional as F from pytorch_transformers...
46.603306
173
0.603919
20e97d30c750e0fa9b50035d7b82868c86b2a9b1
15,401
py
Python
framework/utils/android.py
maxim-filkov/mobile-test-helper
46dcb27b0ee25153b697d19c17801cee35e136ce
[ "Apache-2.0" ]
1
2018-12-14T02:13:14.000Z
2018-12-14T02:13:14.000Z
framework/utils/android.py
maxim-filkov/mobile-test-helper
46dcb27b0ee25153b697d19c17801cee35e136ce
[ "Apache-2.0" ]
null
null
null
framework/utils/android.py
maxim-filkov/mobile-test-helper
46dcb27b0ee25153b697d19c17801cee35e136ce
[ "Apache-2.0" ]
1
2018-12-14T02:13:21.000Z
2018-12-14T02:13:21.000Z
""" This module contains a list of utilities related to Android. """ import framework.utils.console as console import logging import string import glob import time import os import re log = logging.getLogger("mth.utils") def take_screenshot(device, target_dir, screenshot_name): """ Takes screenshot from att...
34.377232
120
0.673917
dc6a55f6fce4a58218e00f648d0f8921dcfd30f3
448
py
Python
trading_bot/exchanges/__init__.py
ArthurBernard/Strategy_Manager
a6c80fe1a51a300e8a612fb69e0e17d0ae06f455
[ "MIT" ]
6
2020-02-24T02:19:30.000Z
2021-12-19T03:03:11.000Z
trading_bot/exchanges/__init__.py
ArthurBernard/Strategy_Manager
a6c80fe1a51a300e8a612fb69e0e17d0ae06f455
[ "MIT" ]
1
2020-06-17T03:29:14.000Z
2020-06-17T04:45:34.000Z
trading_bot/exchanges/__init__.py
ArthurBernard/Trading_Bot
a6c80fe1a51a300e8a612fb69e0e17d0ae06f455
[ "MIT" ]
1
2019-01-02T16:00:07.000Z
2019-01-02T16:00:07.000Z
#!/usr/bin/env python3 # coding: utf-8 # @Author: ArthurBernard # @Email: arthur.bernard.92@gmail.com # @Date: 2020-02-25 11:57:04 # @Last modified by: ArthurBernard # @Last modified time: 2020-02-25 12:15:30 """ Module containing objects to connect to exchange client API. """ # Built-in packages # Third party packa...
21.333333
68
0.729911
45d92256480477a3ad00d51a67548d10f6500b74
1,338
py
Python
eden/converter/fasta.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
eden/converter/fasta.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
eden/converter/fasta.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
import networkx as nx from eden.modifier.fasta import fasta_to_fasta from eden.util import is_iterable def seq_to_networkx(header, seq, **options): """Convert sequence tuples to networkx graphs.""" graph = nx.Graph() graph.graph['id'] = header for id, character in enumerate(seq): graph.add_no...
29.733333
81
0.630792
da20b355536b1fc56b2f004fba0144127b94c1e1
32,686
py
Python
moto/sns/models.py
sindrig/moto
6b531796c1b4885193c6b3ae3b3128fc4f8e5370
[ "Apache-2.0" ]
null
null
null
moto/sns/models.py
sindrig/moto
6b531796c1b4885193c6b3ae3b3128fc4f8e5370
[ "Apache-2.0" ]
null
null
null
moto/sns/models.py
sindrig/moto
6b531796c1b4885193c6b3ae3b3128fc4f8e5370
[ "Apache-2.0" ]
null
null
null
import datetime import uuid import json import requests import re from collections import OrderedDict from moto.core import BaseBackend, BaseModel, CloudFormationModel from moto.core.utils import ( iso_8601_datetime_with_milliseconds, camelcase_to_underscores, BackendDict, ) from moto.sqs import sqs_backe...
37.270239
205
0.585113
51e695db2f33948021e0817474418643ec72c63a
1,224
py
Python
skywinder/utils/configuration.py
PolarMesosphericClouds/SkyWinder
ee136cffca167905ebcd3edf88e2c7456b56a51a
[ "BSD-3-Clause" ]
null
null
null
skywinder/utils/configuration.py
PolarMesosphericClouds/SkyWinder
ee136cffca167905ebcd3edf88e2c7456b56a51a
[ "BSD-3-Clause" ]
null
null
null
skywinder/utils/configuration.py
PolarMesosphericClouds/SkyWinder
ee136cffca167905ebcd3edf88e2c7456b56a51a
[ "BSD-3-Clause" ]
null
null
null
import os from traitlets import (Bool, Int, List, Unicode) from traitlets.config import Configurable from skywinder import root_dir default_config_dir = os.path.abspath(os.path.join(root_dir, '../config/balloon')) default_ground_config_dir = os.path.abspath(os.path.join(root_dir, '../config/ground')) camera_data_dir ...
43.714286
115
0.749183
e43813e2b31379445f69203e866af88cc3e0b93d
330
py
Python
cma-es/batchcompute_python_sdk/src/batchcompute/core/__init__.py
luzhijun/-
c9a7f39fd033a3ba3c57acbbd309c05ac17e6bef
[ "Apache-2.0" ]
17
2016-11-18T03:15:14.000Z
2022-01-09T07:50:56.000Z
cma-es/batchcompute_python_sdk/src/batchcompute/core/__init__.py
luzhijun/-
c9a7f39fd033a3ba3c57acbbd309c05ac17e6bef
[ "Apache-2.0" ]
null
null
null
cma-es/batchcompute_python_sdk/src/batchcompute/core/__init__.py
luzhijun/-
c9a7f39fd033a3ba3c57acbbd309c05ac17e6bef
[ "Apache-2.0" ]
7
2016-11-20T10:20:57.000Z
2021-04-20T05:29:57.000Z
''' Core functions, classes for batch compute service. Including a simple api implementation of batch compute service, core exceptions for batch compute. ''' __all__ = [ "Api", "Clienterror", "FieldError", "ValidationError", ] from .api import Api from .exceptions import ( ClientError, FieldError, Validatio...
19.411765
68
0.736364
2022e679a5f7992a82d2c1a5e7e7c98bbc1a5cab
2,783
py
Python
toolchain/riscv/Linux/riscv64-unknown-elf/lib/rv64imfdc/lp64d/compact/libstdc++.a-gdb.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
null
null
null
toolchain/riscv/Linux/riscv64-unknown-elf/lib/rv64imfdc/lp64d/compact/libstdc++.a-gdb.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
null
null
null
toolchain/riscv/Linux/riscv64-unknown-elf/lib/rv64imfdc/lp64d/compact/libstdc++.a-gdb.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
null
null
null
# -*- python -*- # Copyright (C) 2009-2020 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later versio...
44.887097
244
0.736974
93105606dc10c89847bee26b8cd19b41e008b324
2,680
py
Python
tests/bugs/core_4917_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_4917_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_4917_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_4917 # title: ALTER DOMAIN ... TO <new_name> allows to specify <new_name> matching to 'RDB$[[:DIGIT:]]*' # decription: # tracker_id: CORE-4917 # min_versions: ['2.5.5'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_...
27.628866
106
0.663433
a121ba3a89edb0ea4b60c487b2e5843d38add5df
1,680
py
Python
mars/serialization/ray.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/serialization/ray.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/serialization/ray.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.698113
74
0.743452
61091c67609c844f4b7f013920d5795be17cab81
2,381
py
Python
paleo/layers/base.py
JamieC1998/paleo
984bbf5d2942f28b8599db4374c0ad788efe0f6e
[ "Apache-2.0" ]
78
2016-12-08T09:08:56.000Z
2022-03-17T22:49:11.000Z
paleo/layers/base.py
JamieC1998/paleo
984bbf5d2942f28b8599db4374c0ad788efe0f6e
[ "Apache-2.0" ]
9
2017-02-28T02:09:21.000Z
2019-04-24T15:07:29.000Z
paleo/layers/base.py
JamieC1998/paleo
984bbf5d2942f28b8599db4374c0ad788efe0f6e
[ "Apache-2.0" ]
34
2016-12-14T14:40:06.000Z
2021-11-23T17:48:30.000Z
"""The base class of estimator.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from abc import abstractmethod, abstractproperty class BaseLayer(object): """Base class for estimator. """ def __init__(self, name, layertype): self._name ...
25.602151
76
0.625367
d9f1d947c6b92eee87f2c61db66a64e64109140e
405
py
Python
uniondrug_blog/asgi.py
Tareya/my_blog
e02906e7a2479494ef0612d3aecfc798beec7477
[ "Apache-2.0" ]
null
null
null
uniondrug_blog/asgi.py
Tareya/my_blog
e02906e7a2479494ef0612d3aecfc798beec7477
[ "Apache-2.0" ]
null
null
null
uniondrug_blog/asgi.py
Tareya/my_blog
e02906e7a2479494ef0612d3aecfc798beec7477
[ "Apache-2.0" ]
null
null
null
""" ASGI config for uniondrug_blog project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
23.823529
78
0.792593
5d9896233333620fa309980c8b5d102c2c980433
2,624
py
Python
Scripts/core/shared_commands/help_command.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/core/shared_commands/help_command.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/core/shared_commands/help_command.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Core\shared_commands\help_command.py # Compiled at: 2012-11-07 22:39:51 # Size of source mod 2**32: 2574 by...
36.957746
107
0.557927
a0a8a6c6bb6fe54cbc6ee696a51457f3d7fd2269
24,516
py
Python
fisherman.py
redbouk/FisherMan
83f9786368e51f6499c8e4552c3b4697b85f4013
[ "BSD-3-Clause" ]
1
2021-09-04T20:13:21.000Z
2021-09-04T20:13:21.000Z
fisherman.py
redbouk/FisherMan
83f9786368e51f6499c8e4552c3b4697b85f4013
[ "BSD-3-Clause" ]
null
null
null
fisherman.py
redbouk/FisherMan
83f9786368e51f6499c8e4552c3b4697b85f4013
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 import datetime import sys import json from argparse import ArgumentParser from base64 import b64decode from os import walk, remove, getcwd from pathlib import Path from re import findall from time import sleep from typing import Callable from zipfile import ZipFile, ZIP_DEFLATED import colora...
38.729858
120
0.568894
c2a0ae29acc7c9680ca718b2f869eaf4170a4cf8
39,859
py
Python
research/struct2depth/model.py
gauss-surgical/models
625acf8c404feb9e1248e3ea93e16556a1d861fa
[ "Apache-2.0" ]
null
null
null
research/struct2depth/model.py
gauss-surgical/models
625acf8c404feb9e1248e3ea93e16556a1d861fa
[ "Apache-2.0" ]
null
null
null
research/struct2depth/model.py
gauss-surgical/models
625acf8c404feb9e1248e3ea93e16556a1d861fa
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
47.003538
80
0.591761
f934ce3627cf6c1c899480b6dff76dad85d6ca7e
12,465
py
Python
GMATE/plugins/project_manager/projecttreeview.py
lexrupy/gmate-editor
7036d58a083ad6c05c1eb4cf7cb92405b369adb7
[ "MIT" ]
1
2016-05-09T11:48:44.000Z
2016-05-09T11:48:44.000Z
GMATE/plugins/project_manager/projecttreeview.py
lexrupy/gmate-editor
7036d58a083ad6c05c1eb4cf7cb92405b369adb7
[ "MIT" ]
null
null
null
GMATE/plugins/project_manager/projecttreeview.py
lexrupy/gmate-editor
7036d58a083ad6c05c1eb4cf7cb92405b369adb7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # GMate - Plugin Based Programmer's Text Editor # Copyright © 2008-2009 Alexandre da Silva # # This file is part of Gmate. # # See LICENTE.TXT for licence information """A widget used to display the file/folder structure of projects.""" import re import gtk import gnomevfs from GMATE import ...
35.411932
79
0.616286
75bdefb71931a4b4d0200c650da4a7f4f7feb43c
1,214
py
Python
0x08-python-more_classes/2-rectangle.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x08-python-more_classes/2-rectangle.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x08-python-more_classes/2-rectangle.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """Create class""" class Rectangle(): """Rectangle class""" def __init__(self, width=0, height=0): self.height = height self.width = width @property def height(self): """height""" return self.__height @property def width(self): """wi...
25.291667
56
0.560132
4aaf5fb0c4b7990ce6e557f45d39916608f066b0
26,671
py
Python
shadowsocks/asyncdns.py
xzchsia/shadowsocks-analysis
9d8e3e2d3b3e2b41cee51bed99231803e9b13539
[ "MIT" ]
42
2016-09-21T09:48:48.000Z
2022-02-10T14:57:35.000Z
shadowsocks/asyncdns.py
xzchsia/shadowsocks-analysis
9d8e3e2d3b3e2b41cee51bed99231803e9b13539
[ "MIT" ]
null
null
null
shadowsocks/asyncdns.py
xzchsia/shadowsocks-analysis
9d8e3e2d3b3e2b41cee51bed99231803e9b13539
[ "MIT" ]
23
2016-11-26T09:38:20.000Z
2021-08-22T03:55:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' dns处理 对dns协议并不熟悉,建议马上youtube查看 文档rfc1035: http://www.ccs.neu.edu/home/amislove/teaching/cs4700/fall09/handouts/project1-primer.pdf ''' from __future__ import absolute_import, division, print_function, \ with_statement import time import os import socket import str...
38.935766
155
0.479697
50e1c1382b0b12649a085ffcc7adb0311b269511
5,858
py
Python
src/smartexplorer.py
chrishasl/SmartNodeMonitorBot
62a76a6d92ec62cee4b1d95b1e4a71ada1a3ec53
[ "MIT" ]
null
null
null
src/smartexplorer.py
chrishasl/SmartNodeMonitorBot
62a76a6d92ec62cee4b1d95b1e4a71ada1a3ec53
[ "MIT" ]
null
null
null
src/smartexplorer.py
chrishasl/SmartNodeMonitorBot
62a76a6d92ec62cee4b1d95b1e4a71ada1a3ec53
[ "MIT" ]
null
null
null
## # Part of `SmartNodeMonitorBot` # # Copyright 2018 dustinface # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
30.670157
114
0.608569
70fe581de4ea704b057b8cdbe2c6196bc21ac832
7,765
py
Python
status/views.py
riptano/statuspage
eb5b3c983f2e23b9ec2e1f30c8cfe5cc624699d4
[ "BSD-3-Clause" ]
null
null
null
status/views.py
riptano/statuspage
eb5b3c983f2e23b9ec2e1f30c8cfe5cc624699d4
[ "BSD-3-Clause" ]
null
null
null
status/views.py
riptano/statuspage
eb5b3c983f2e23b9ec2e1f30c8cfe5cc624699d4
[ "BSD-3-Clause" ]
null
null
null
from datetime import date, timedelta from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render from django.template import RequestContext, Templa...
35.135747
115
0.642112
815e66bd8eeab23eafc68007780b8c2c8d223e8a
64,066
py
Python
Lib/site-packages/rest_framework/serializers.py
funydukenus/mousemanagement
0c755fb624f6e0d95c594d5041261bacfc0225fd
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/rest_framework/serializers.py
funydukenus/mousemanagement
0c755fb624f6e0d95c594d5041261bacfc0225fd
[ "bzip2-1.0.6" ]
10
2020-06-05T23:30:34.000Z
2021-09-22T18:56:54.000Z
Lib/site-packages/rest_framework/serializers.py
funydukenus/mousemanagement
0c755fb624f6e0d95c594d5041261bacfc0225fd
[ "bzip2-1.0.6" ]
null
null
null
""" Serializers and ModelSerializers are similar to Forms and ModelForms. Unlike forms, they are not constrained to dealing with HTML output, and form encoded input. Serialization in REST framework is a two-phase process: 1. Serializers marshal between complex types like model instances, and python primitives. 2. The...
39.136225
124
0.625855
90e7b1463476525f90667af30b5ade2ffc40ad1f
1,904
py
Python
setup.py
mikkokotila/padma
f0b6012f1808e2a2e0f769ddbe5cc2e19dae017c
[ "MIT" ]
null
null
null
setup.py
mikkokotila/padma
f0b6012f1808e2a2e0f769ddbe5cc2e19dae017c
[ "MIT" ]
8
2020-07-18T08:49:21.000Z
2020-07-30T18:11:51.000Z
setup.py
mikkokotila/padma
f0b6012f1808e2a2e0f769ddbe5cc2e19dae017c
[ "MIT" ]
null
null
null
#! /usr/bin/env python # # Copyright (C) 2021 Mikko Kotila DESCRIPTION = "Padma is a next-generation Tibetan translation and learning tool." LONG_DESCRIPTION = """\ """ DISTNAME = 'Padma-Backend' MAINTAINER = 'Mikko Kotila' MAINTAINER_EMAIL = 'mailme@mikkokotila.com' URL = 'http://padma.io' LICENSE = 'MIT' DOWNLOAD_U...
32.827586
85
0.560399
d01c9d87444393d71ea1a2bbf541ec54c1b1a1a2
10,946
py
Python
haiku/_src/recurrent.py
qsays/dm-haiku
5f4a4011d666f6bdb8266797c26cc7daa1684bb4
[ "Apache-2.0" ]
7
2020-03-01T11:47:50.000Z
2020-07-30T08:35:23.000Z
haiku/_src/recurrent.py
marload/dm-haiku
8190b42cc6d9e7fae21c7d738bd3d719c144ab8a
[ "Apache-2.0" ]
null
null
null
haiku/_src/recurrent.py
marload/dm-haiku
8190b42cc6d9e7fae21c7d738bd3d719c144ab8a
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # 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 # # ...
33.069486
80
0.664809
c457e5ec692efae002828a400c3493fbb5798017
16,669
py
Python
examples/scanvi/scanvi.py
sjfleming/pyro
c8dc40a75cc4ff1f43c6ff9178d91c08155d7973
[ "Apache-2.0" ]
2,827
2019-02-04T23:09:52.000Z
2022-03-31T10:50:29.000Z
examples/scanvi/scanvi.py
liyunlong10/pyro
eadca9c9ed9654573037acdf4f48b34ea40037fe
[ "Apache-2.0" ]
965
2019-02-05T09:33:27.000Z
2022-03-25T13:09:52.000Z
examples/scanvi/scanvi.py
liyunlong10/pyro
eadca9c9ed9654573037acdf4f48b34ea40037fe
[ "Apache-2.0" ]
488
2019-02-08T21:42:49.000Z
2022-03-31T12:33:21.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 """ We use a semi-supervised deep generative model of transcriptomics data to propagate labels from a small set of labeled cells to a larger set of unlabeled cells. In particular we use a dataset of peripheral blood mononuclear cells (...
38.057078
112
0.632311
c9d4fced83f0f589477d21b756615a0e169894b7
3,390
py
Python
application.py
nasiratt92/techdegree-project-2
ef22fa1b22748abbebbcefb8502f4c9889d7185c
[ "MIT" ]
1
2020-07-05T00:45:29.000Z
2020-07-05T00:45:29.000Z
application.py
nasiratt92/techdegree-project-2
ef22fa1b22748abbebbcefb8502f4c9889d7185c
[ "MIT" ]
null
null
null
application.py
nasiratt92/techdegree-project-2
ef22fa1b22748abbebbcefb8502f4c9889d7185c
[ "MIT" ]
null
null
null
import constants from copy import deepcopy PLAYERS = deepcopy(constants.PLAYERS) TEAMS = deepcopy(constants.TEAMS) allocated_teams = [] allocated_players = [] players_string = [] user_input = 0 def clean_data(collection): '''This is function that will take a collection and it will clean up the heights key w...
28.25
96
0.606195
9bf0ef86422ee6571c3b72a05145a0485868ec27
465
py
Python
jogo_da_velha/venv/Scripts/easy_install-3.8-script.py
MateusProvensi/jogo-velha
0809064a1d0c41f764ac960fd06e1ad2429c861a
[ "MIT" ]
null
null
null
jogo_da_velha/venv/Scripts/easy_install-3.8-script.py
MateusProvensi/jogo-velha
0809064a1d0c41f764ac960fd06e1ad2429c861a
[ "MIT" ]
null
null
null
jogo_da_velha/venv/Scripts/easy_install-3.8-script.py
MateusProvensi/jogo-velha
0809064a1d0c41f764ac960fd06e1ad2429c861a
[ "MIT" ]
null
null
null
#!C:\Users\Mateus\PycharmProjects\jogo_da_velha\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-scri...
35.769231
87
0.698925
894173c61414131c3424874962b47f8212dbda79
9,701
py
Python
venv/lib/python3.6/site-packages/Cryptodome/SelfTest/Protocol/test_SecretSharing.py
S-JingTao/ROS_Air_ground_simulation_model
393aa2c881dd6d0fe5efdb94409800c2d161832a
[ "MIT" ]
4
2021-07-12T16:37:36.000Z
2021-08-06T09:42:37.000Z
venv/lib/python3.6/site-packages/Cryptodome/SelfTest/Protocol/test_SecretSharing.py
S-JingTao/ROS_Air_ground_simulation_model
393aa2c881dd6d0fe5efdb94409800c2d161832a
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/Cryptodome/SelfTest/Protocol/test_SecretSharing.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
2
2021-03-16T12:41:29.000Z
2021-03-16T14:50:08.000Z
# # SelfTest/Protocol/test_secret_sharing.py: Self-test for secret sharing protocols # # =================================================================== # # Copyright (c) 2014, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modificati...
36.197761
83
0.61406
dea1b780252cf37fcdec6e119383bbbdc1fcb072
12,621
py
Python
prompt_toolkit2/styles/style.py
dgilman/python-prompt-toolkit
c4ff7317c995b4b032f07ba2b180c89f1de4a169
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit2/styles/style.py
dgilman/python-prompt-toolkit
c4ff7317c995b4b032f07ba2b180c89f1de4a169
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit2/styles/style.py
dgilman/python-prompt-toolkit
c4ff7317c995b4b032f07ba2b180c89f1de4a169
[ "BSD-3-Clause" ]
null
null
null
""" Tool for creating styles from a dictionary. """ from __future__ import absolute_import, unicode_literals import itertools import re import sys from prompt_toolkit2.cache import SimpleCache from .base import ( ANSI_COLOR_NAMES, ANSI_COLOR_NAMES_ALIASES, DEFAULT_ATTRS, Attrs, BaseStyle, ) from ...
33.039267
83
0.615799
0a63804bcd7f9ea2b19196355d8adccbed36df95
1,969
py
Python
test-driven-development-teste-design-mundo-real/cap6_Lucas.py
magsilva/software-testing-benchmark
9ca5c14cfcfa3f2fef67d27d80efc8900c7bedfd
[ "MIT" ]
null
null
null
test-driven-development-teste-design-mundo-real/cap6_Lucas.py
magsilva/software-testing-benchmark
9ca5c14cfcfa3f2fef67d27d80efc8900c7bedfd
[ "MIT" ]
null
null
null
test-driven-development-teste-design-mundo-real/cap6_Lucas.py
magsilva/software-testing-benchmark
9ca5c14cfcfa3f2fef67d27d80efc8900c7bedfd
[ "MIT" ]
null
null
null
import unittest class Calculadora: def __init__(self): self.lista = [] def adicionarNumeros(self, numeros): for item in numeros: self.lista.append(item) def calculoSoma(self): # Resultado vem por 0, pois caso nao haja nenhum item, este sera o retorno ...
34.54386
86
0.639411
107cbc48ff6f1c91a79e4bab780f934c86a479f8
720
py
Python
Service_Mockup/instance/settings.py
TamSzaGot/mydata-sdk
9c8afb75077f0b993819aa534b904501a8112f76
[ "MIT" ]
4
2018-04-21T00:46:40.000Z
2019-12-03T13:52:03.000Z
Service_Mockup/instance/settings.py
TamSzaGot/mydata-sdk
9c8afb75077f0b993819aa534b904501a8112f76
[ "MIT" ]
1
2019-01-09T10:45:23.000Z
2019-01-09T10:45:23.000Z
Service_Mockup/instance/settings.py
TamSzaGot/mydata-sdk
9c8afb75077f0b993819aa534b904501a8112f76
[ "MIT" ]
4
2018-04-21T01:12:12.000Z
2020-09-24T06:19:29.000Z
# -*- coding: utf-8 -*- timeout = 8 KEYSIZE = 512 SERVICE_MGMNT_URL = "http://localhost:7000" DATABASE_PATH = "./db_Mockup.sqlite" # Name of host to connect to. Default: use the local host via a UNIX socket (where applicable) MYSQL_HOST = 'localhost' # User to authenticate as. Default: current effective us...
12.631579
94
0.709722
0e8a820550ecbe48992ea647691a78c82ee2150a
1,408
py
Python
accounts/views.py
bnorbert/debussy
ccfeceeead555c5d33424ff3614404f48eeabc00
[ "MIT" ]
1
2020-07-18T10:46:25.000Z
2020-07-18T10:46:25.000Z
accounts/views.py
bnorbert/debussy
ccfeceeead555c5d33424ff3614404f48eeabc00
[ "MIT" ]
14
2021-03-10T22:13:36.000Z
2022-03-12T00:34:53.000Z
accounts/views.py
bnorbert/debussy
ccfeceeead555c5d33424ff3614404f48eeabc00
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import generics, permissions from rest_framework.response import Response from knox.models import AuthToken from .serializers import UserSerializer, RegisterSerializer, LoginSerializer # Register View class RegisterView(generics.GenericAPIView): serializer_...
30.608696
85
0.710938
f40730af342997177a928bd22cfb7259b8298539
19,879
py
Python
dbus-mongo-extractor/tests/test_filter_fields.py
JunZCn/DBus
4594da36f9838bcaba0c05a08fe4524052e2553e
[ "Apache-2.0" ]
1,232
2017-09-04T11:23:08.000Z
2022-03-25T07:01:07.000Z
dbus-mongo-extractor/tests/test_filter_fields.py
JunZCn/DBus
4594da36f9838bcaba0c05a08fe4524052e2553e
[ "Apache-2.0" ]
72
2017-10-11T04:43:17.000Z
2022-03-01T04:48:22.000Z
dbus-mongo-extractor/tests/test_filter_fields.py
JunZCn/DBus
4594da36f9838bcaba0c05a08fe4524052e2553e
[ "Apache-2.0" ]
551
2017-09-05T06:55:14.000Z
2022-03-19T07:24:56.000Z
# Copyright 2016 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
38.826172
78
0.506615