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
6f2630104f7ea5d1ffb402ec1a6b6cdacb05229b
27,620
py
Python
examples/pytorch/translation/run_translation.py
elusenji/transformers
af14c61973effd8b8077ac61b3f24bdd4a632f25
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
examples/pytorch/translation/run_translation.py
elusenji/transformers
af14c61973effd8b8077ac61b3f24bdd4a632f25
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
examples/pytorch/translation/run_translation.py
elusenji/transformers
af14c61973effd8b8077ac61b3f24bdd4a632f25
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright The HuggingFace Team and The HuggingFace Inc. team. 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.ap...
43.427673
120
0.679906
d32db38b32c9c1c912fe1cbdd41b39ddaa026dbb
437
py
Python
src/aceinna/devices/configs/openimu_predefine.py
LukaszChl/ros_openimu
1bcf547fa42ee7c7dcc856c1d4eb5702d301b059
[ "Apache-2.0" ]
6
2021-03-18T16:18:53.000Z
2022-01-18T15:32:15.000Z
src/aceinna/devices/configs/openimu_predefine.py
LukaszChl/ros_openimu
1bcf547fa42ee7c7dcc856c1d4eb5702d301b059
[ "Apache-2.0" ]
11
2020-12-22T16:19:20.000Z
2022-02-11T11:03:25.000Z
src/aceinna/devices/configs/openimu_predefine.py
LukaszChl/ros_openimu
1bcf547fa42ee7c7dcc856c1d4eb5702d301b059
[ "Apache-2.0" ]
11
2021-04-12T03:00:28.000Z
2022-03-25T19:53:43.000Z
""" predefined params for openimu """ JSON_FILE_NAME = 'openimu.json' def get_app_names(): ''' define openimu app type ''' app_names = ['Compass', 'IMU', 'INS', 'Leveler', 'OpenIMU', 'VG', 'VG_AHRS', ...
19
74
0.434783
ae3f31435b9a0bd02f2083b9781971f40c3f7947
661
py
Python
.history/setup_20210715172136.py
gpftc/qfunction
5c3ceed0e270d343d51ee0b69d98d4fffad47b24
[ "MIT" ]
null
null
null
.history/setup_20210715172136.py
gpftc/qfunction
5c3ceed0e270d343d51ee0b69d98d4fffad47b24
[ "MIT" ]
null
null
null
.history/setup_20210715172136.py
gpftc/qfunction
5c3ceed0e270d343d51ee0b69d98d4fffad47b24
[ "MIT" ]
1
2021-07-17T05:11:34.000Z
2021-07-17T05:11:34.000Z
from setuptools import setup from setuptools import find_packages, setup with open("README.md", "r") as fh: readme = fh.read() setup(name='qfunction', version='1.0.151', url='https://github.com/gpftc/qfunction', license='MIT License', author='Reinan Br', long_description=readme, long_descr...
36.722222
78
0.720121
cfc272c90d84a77c61c57f953e289f2829d9a897
990
py
Python
villager-bot/__main__.py
quaackk/Villager-Bot
8a5aff9cfa8556e7bda1b6bf51e2bf5ab4d9d60b
[ "MIT" ]
1
2021-05-14T11:53:24.000Z
2021-05-14T11:53:24.000Z
villager-bot/__main__.py
quaackk/Villager-Bot
8a5aff9cfa8556e7bda1b6bf51e2bf5ab4d9d60b
[ "MIT" ]
null
null
null
villager-bot/__main__.py
quaackk/Villager-Bot
8a5aff9cfa8556e7bda1b6bf51e2bf5ab4d9d60b
[ "MIT" ]
1
2021-04-13T03:00:38.000Z
2021-04-13T03:00:38.000Z
import numpy import sys import os try: # add optional cython support import pyximport except ImportError as e: print(e) pyximport = None sys.path.append(os.path.abspath(os.path.dirname(__file__))) # ensure villager bot modules are accessible os.chdir(os.path.dirname(__file__)) # ensure the current work...
26.756757
105
0.719192
66a9d25f2ef5d9eab2773494036494640cfc682b
6,395
py
Python
astronat/utils/table/tests/test_core.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
1
2020-11-20T18:25:26.000Z
2020-11-20T18:25:26.000Z
astronat/utils/table/tests/test_core.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
3
2020-09-09T06:10:20.000Z
2020-09-16T05:56:10.000Z
astronat/utils/table/tests/test_core.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for `~astronat.utils.table.core`.""" # __all__ = [ # # functions # "", # # other # "", # ] ############################################################################## # IMPORTS from collections import OrderedDict import astropy.units as u import numpy as np impo...
23.254545
78
0.511806
23dc109ff8e08e2b90dff81f0544b7d8675c6228
2,658
py
Python
setup.py
vsafonkin-test-organization/python-package-template
81c4eda9cf9bb4b36603c0fd9d6ab71640d0c0a2
[ "MIT" ]
null
null
null
setup.py
vsafonkin-test-organization/python-package-template
81c4eda9cf9bb4b36603c0fd9d6ab71640d0c0a2
[ "MIT" ]
null
null
null
setup.py
vsafonkin-test-organization/python-package-template
81c4eda9cf9bb4b36603c0fd9d6ab71640d0c0a2
[ "MIT" ]
null
null
null
"""Setup for this package.""" import ast import os import typing import setuptools here = os.path.abspath(os.path.dirname(__file__)) src = os.path.join(here, "src") with open(os.path.join(here, "README.md"), encoding="utf-8") as fh: README = fh.read() with open(os.path.join(here, "LICENSE.md"), encoding="utf-8"...
32.814815
88
0.601956
2800135122f4d186207d5c996b3dedff13491d8c
630
py
Python
tests/test_adjoint_pin_cell/test_adjoint_pin_cell.py
geogunow/OpenMOC
b09e66be269703ca0a08d7a6afced1bc5984112a
[ "MIT" ]
97
2015-01-02T02:13:45.000Z
2022-03-09T14:12:45.000Z
tests/test_adjoint_pin_cell/test_adjoint_pin_cell.py
wonkyeongkim/OPENMOC
b09e66be269703ca0a08d7a6afced1bc5984112a
[ "MIT" ]
325
2015-01-07T17:43:14.000Z
2022-02-21T17:22:00.000Z
tests/test_adjoint_pin_cell/test_adjoint_pin_cell.py
wonkyeongkim/OPENMOC
b09e66be269703ca0a08d7a6afced1bc5984112a
[ "MIT" ]
73
2015-01-17T19:11:58.000Z
2022-03-24T16:31:37.000Z
#!/usr/bin/env python import os import sys sys.path.insert(0, os.pardir) sys.path.insert(0, os.path.join(os.pardir, 'openmoc')) from testing_harness import TestHarness from input_set import PinCellInput import openmoc class PinCellAdjointTestHarness(TestHarness): """An adjoint eigenvalue calculation in a pin ce...
24.230769
73
0.731746
1ce9ad38da480b76ecdb2646b61ec5d5e696052b
683
py
Python
sorting and basics/karatsuba.py
williamsmj/prakhar1989-algorithms
82e64ce9d451b33c1bce64a63276d6341a1f13b0
[ "WTFPL" ]
2,797
2015-01-01T15:52:13.000Z
2022-03-28T20:52:37.000Z
sorting and basics/karatsuba.py
williamsmj/prakhar1989-algorithms
82e64ce9d451b33c1bce64a63276d6341a1f13b0
[ "WTFPL" ]
35
2015-01-07T03:11:18.000Z
2021-06-27T09:09:55.000Z
sorting and basics/karatsuba.py
williamsmj/prakhar1989-algorithms
82e64ce9d451b33c1bce64a63276d6341a1f13b0
[ "WTFPL" ]
887
2015-01-02T06:38:19.000Z
2022-03-26T20:33:11.000Z
def karatsuba(x, y, b=10): """ returns product of x, y. Uses base b in karatsuba algorithm Gives running time of O(n^1.585) as opposed to O(n^2) of naive multiplication >>> karatsuba(1234223123412323, 1234534213423333123) 1523690672850721578619752112274729L """ if x < 1000 or y < 1000: ...
28.458333
56
0.581259
d2671f6fc333f483ff94ccffc6ffc4307a16e810
4,905
py
Python
infra/NTPAmp/httpget.py
tukeJonny/NTPAmpMitigator
91abcfb107166b411596b26678a03a037165f188
[ "MIT" ]
1
2020-06-20T04:21:15.000Z
2020-06-20T04:21:15.000Z
infra/NTPAmp/httpget.py
tukeJonny/NTPAmpMitigator
91abcfb107166b411596b26678a03a037165f188
[ "MIT" ]
null
null
null
infra/NTPAmp/httpget.py
tukeJonny/NTPAmpMitigator
91abcfb107166b411596b26678a03a037165f188
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import sys import time import argparse import logging from decimal import Decimal import requests try: from requests.exceptions import ConnectTimeout MyTimeoutException=ConnectTimeout except: from requests.exceptions import Timeout MyTimeoutException=Timeout import matplotlib mat...
33.367347
112
0.60265
a517a5752b0f1094c5875d3548bd1de9cbe0533f
4,630
py
Python
ecommerce/ecommerce/settings.py
kurniantoska/ecommerce
a30c51417dd8183517cb2feb8f0efdc8ec202421
[ "MIT" ]
null
null
null
ecommerce/ecommerce/settings.py
kurniantoska/ecommerce
a30c51417dd8183517cb2feb8f0efdc8ec202421
[ "MIT" ]
null
null
null
ecommerce/ecommerce/settings.py
kurniantoska/ecommerce
a30c51417dd8183517cb2feb8f0efdc8ec202421
[ "MIT" ]
null
null
null
""" Django settings for ecommerce project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os ...
26.763006
78
0.739741
1f37177ad163984046e2b2d1fe15c9c056b37bdb
1,944
py
Python
app/coreapp/models.py
Rolleander/blog
ddc11c94469161ad6bff1d354604effe3dad6e39
[ "MIT" ]
null
null
null
app/coreapp/models.py
Rolleander/blog
ddc11c94469161ad6bff1d354604effe3dad6e39
[ "MIT" ]
null
null
null
app/coreapp/models.py
Rolleander/blog
ddc11c94469161ad6bff1d354604effe3dad6e39
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. STATUS = ( (0, "Draft"), (1, "Publish") ) class Post(models.Model): title = models.CharField(max_length=200, unique=True) slug = models.SlugField(max_length=200, unique=True) updated_on = models.DateTimeField(auto_now=True) content = mod...
23.142857
65
0.644547
aac78958cf2be7eeb7dcf8753f111466f25f53cb
382
py
Python
dqn/memory/replay_memory.py
ilvieira/deep-q-networks
b7c1888446911ab9a94c8140599b905a77f05964
[ "Apache-2.0" ]
null
null
null
dqn/memory/replay_memory.py
ilvieira/deep-q-networks
b7c1888446911ab9a94c8140599b905a77f05964
[ "Apache-2.0" ]
null
null
null
dqn/memory/replay_memory.py
ilvieira/deep-q-networks
b7c1888446911ab9a94c8140599b905a77f05964
[ "Apache-2.0" ]
null
null
null
from abc import ABC class ReplayMemory(ABC): def __init__(self, size): # The size of a replay memory corresponds to the number of transitions it stores. self.__len = 0 self.__max_len = size def append(self, transition): self.__len += 1 self.__len = min(self.__len, self...
23.875
89
0.636126
30cab71a2780f8c28fc7ad816c57be4ab7f581d0
24,047
py
Python
src/connection-monitor-preview/azext_connection_monitor_preview/vendored_sdks/v2019_11_01/v2019_11_01/operations/_vpn_server_configurations_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/connection-monitor-preview/azext_connection_monitor_preview/vendored_sdks/v2019_11_01/v2019_11_01/operations/_vpn_server_configurations_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/connection-monitor-preview/azext_connection_monitor_preview/vendored_sdks/v2019_11_01/v2019_11_01/operations/_vpn_server_configurations_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
47.998004
190
0.681748
acd9778436358186cdcc93808d6195ea2a93ef54
8,400
py
Python
src/transformers/utils/dummy_flax_objects.py
onejiin/transformers
7dfbbd6354041eef005c35ba88b3ef5bac4d8c21
[ "Apache-2.0" ]
1
2021-05-22T06:07:37.000Z
2021-05-22T06:07:37.000Z
src/transformers/utils/dummy_flax_objects.py
vnik18/transformers
680d181ce80070f89f0ebd49bf93ca29b24cd56b
[ "Apache-2.0" ]
null
null
null
src/transformers/utils/dummy_flax_objects.py
vnik18/transformers
680d181ce80070f89f0ebd49bf93ca29b24cd56b
[ "Apache-2.0" ]
null
null
null
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_backends class FlaxPreTrainedModel: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backen...
24.561404
75
0.670595
9a8a8905c21655f75797a6fb2dc71b94458063ac
18,433
py
Python
tests/oauth2/rfc6749/endpoints/test_error_responses.py
jandd/oauthlib
67f973ff7f98bb3d892a33eda67ba1dab3bddead
[ "BSD-3-Clause" ]
1
2021-07-09T19:17:47.000Z
2021-07-09T19:17:47.000Z
tests/oauth2/rfc6749/endpoints/test_error_responses.py
jandd/oauthlib
67f973ff7f98bb3d892a33eda67ba1dab3bddead
[ "BSD-3-Clause" ]
null
null
null
tests/oauth2/rfc6749/endpoints/test_error_responses.py
jandd/oauthlib
67f973ff7f98bb3d892a33eda67ba1dab3bddead
[ "BSD-3-Clause" ]
1
2020-10-21T09:38:47.000Z
2020-10-21T09:38:47.000Z
"""Ensure the correct error responses are returned for all defined error types. """ from __future__ import absolute_import, unicode_literals import json import mock from ....unittest import TestCase from oauthlib.oauth2 import RequestValidator from oauthlib.oauth2 import WebApplicationServer, MobileApplicationServer ...
44.849148
117
0.650138
f073caec1590abb67361e46b829074feb7a5b49d
1,137
py
Python
nncf/experimental/post_training/backend.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
136
2020-06-01T14:03:31.000Z
2020-10-28T06:10:50.000Z
nncf/experimental/post_training/backend.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
133
2020-05-26T13:48:04.000Z
2020-10-28T05:25:55.000Z
nncf/experimental/post_training/backend.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
36
2020-05-28T08:18:39.000Z
2020-10-27T14:46:58.000Z
""" Copyright (c) 2022 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 writin...
31.583333
84
0.738786
5ef95991a2c70774d3298934745479a7873fe8ec
32,989
py
Python
ProgettoLube/WebInspector/venv/Lib/site-packages/skimage/draw/draw.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
2
2022-03-19T09:45:18.000Z
2022-03-19T15:26:24.000Z
ProgettoLube/WebInspector/venv/Lib/site-packages/skimage/draw/draw.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
ProgettoLube/WebInspector/venv/Lib/site-packages/skimage/draw/draw.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
import warnings import numpy as np from .._shared._geometry import polygon_clip from ._draw import (_coords_inside_image, _line, _line_aa, _polygon, _ellipse_perimeter, _circle_perimeter, _circle_perimeter_aa, _bezier_curve) def _ellipse_in_shape(shape, cen...
34.725263
81
0.525478
b39acadc1c5c7f5058f5b705089ba60b57819fdd
3,918
py
Python
sa/profiles/Linux/Debian/get_interfaces.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Linux/Debian/get_interfaces.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Linux/Debian/get_interfaces.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Linux.Debian.get_interfaces # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- """ Im...
34.368421
116
0.407606
f118ca5172c155cad201d77f627366d47d910942
1,165
py
Python
pymemory/pymemory.py
mynameisvinn/pymem
6b1f79489a0d8a3947f81ebaa6a082ec39769325
[ "MIT" ]
null
null
null
pymemory/pymemory.py
mynameisvinn/pymem
6b1f79489a0d8a3947f81ebaa6a082ec39769325
[ "MIT" ]
null
null
null
pymemory/pymemory.py
mynameisvinn/pymem
6b1f79489a0d8a3947f81ebaa6a082ec39769325
[ "MIT" ]
null
null
null
"""This module finds memory footprint of a python object.""" from sys import getsizeof from collections import Mapping, Container def deep_getsizeof(obj, ids): """Find the memory footprint of a Python object This is a recursive function that drills down a Python object graph like a dictionary holding nes...
26.477273
81
0.651502
b50db70ef51f38af19cca8fe00e186cf058cb43f
6,088
py
Python
fill3/tests/fill3_test.py
ahamilton/eris
f952c55b7d7d4e0a784a22434b2fa86f3f7a79b7
[ "Artistic-2.0" ]
null
null
null
fill3/tests/fill3_test.py
ahamilton/eris
f952c55b7d7d4e0a784a22434b2fa86f3f7a79b7
[ "Artistic-2.0" ]
null
null
null
fill3/tests/fill3_test.py
ahamilton/eris
f952c55b7d7d4e0a784a22434b2fa86f3f7a79b7
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python3.9 # -*- coding: utf-8 -*- import unittest import fill3 class WidgetTests(unittest.TestCase): TEXT_A = fill3.Text("A") TEXT_B = fill3.Text("B") def assert_string(self, appearance, expected_string): self.assertEqual(str(fill3.join("\n", appearance)), expected_string) ...
49.096774
95
0.471091
3de98f251cd39e66549f14c22400b864941b6863
1,574
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/SaveParagraphRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/SaveParagraphRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/SaveParagraphRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.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...
32.791667
66
0.752859
c918008d8288d6857fb10aa185160e28876b4358
101
py
Python
isofit/test/test_inverse.py
reginaeckert/isofit
30d9ada3915b779e2d92e7d9fd5abc49bb6f512e
[ "Apache-2.0" ]
46
2018-07-07T15:42:56.000Z
2022-02-25T22:00:58.000Z
isofit/test/test_inverse.py
reginaeckert/isofit
30d9ada3915b779e2d92e7d9fd5abc49bb6f512e
[ "Apache-2.0" ]
219
2018-07-23T16:32:45.000Z
2022-03-19T00:49:29.000Z
isofit/test/test_inverse.py
serbinsh/isofit
b6a56ba1abade7e08f14aa9264e6984a77e40a79
[ "Apache-2.0" ]
44
2018-07-09T17:38:24.000Z
2022-03-08T19:20:52.000Z
from isofit.inversion.inverse import error_code def test_error_code(): assert error_code == -1
16.833333
47
0.762376
b458968ffa626d24ea2e8aa700f2c6ec396a1543
890
py
Python
tests/test_utils/test_rutils.py
Justice-Eternal/mmrotate
c5bf348562fd84cc17906c2cf370d1a49fcd3035
[ "Apache-2.0" ]
449
2022-02-18T08:26:58.000Z
2022-03-31T11:58:32.000Z
tests/test_utils/test_rutils.py
GamblerZSY/mmrotate
6519a3654e17b707c15d4aa2c5db1257587ea4c0
[ "Apache-2.0" ]
162
2022-02-18T09:54:46.000Z
2022-03-31T15:40:46.000Z
tests/test_utils/test_rutils.py
GamblerZSY/mmrotate
6519a3654e17b707c15d4aa2c5db1257587ea4c0
[ "Apache-2.0" ]
98
2022-02-18T08:28:48.000Z
2022-03-31T08:52:11.000Z
# Copyright (c) OpenMMLab. All rights reserved. """ CommandLine: pytest tests/test_utils/test_rutils.py xdoctest tests/test_utils/test_rutils.py zero """ import torch def test_rotated_anchor_inside_flags(): """Test rotated anchor inside flags.""" from mmrotate.core.anchor import rotated_anchor_inside_...
37.083333
74
0.570787
3e3fcf11e5b88b06c54375b888693e43a6196e83
7,857
py
Python
xclim/core/options.py
Ouranosinc/dcvar
0737c66a36f8969e7a17276990bc7e76f7b410c4
[ "Apache-2.0" ]
1
2018-08-20T16:36:40.000Z
2018-08-20T16:36:40.000Z
xclim/core/options.py
Ouranosinc/dcvar
0737c66a36f8969e7a17276990bc7e76f7b410c4
[ "Apache-2.0" ]
3
2018-08-23T13:25:47.000Z
2018-08-23T15:59:45.000Z
xclim/core/options.py
Ouranosinc/hailstorm
494c850164a9f553eeeba66c6cc90fe398eb2094
[ "Apache-2.0" ]
null
null
null
# noqa: D205,D400 """ Options submodule ================= Global or contextual options for xclim, similar to xarray.set_options. """ from __future__ import annotations from inspect import signature from typing import Callable from boltons.funcutils import wraps from .locales import _valid_locales from .utils import...
34.012987
131
0.667303
b0ad562899f4b1b237699552472eda447999c770
593
py
Python
packages/pyright-internal/src/tests/samples/typedDict7.py
RobertCraigie/pyright
3ac0a57b6a5cd64afb165f7acf568a35012f93a8
[ "MIT" ]
3,934
2019-03-22T09:26:41.000Z
2019-05-06T21:03:08.000Z
packages/pyright-internal/src/tests/samples/typedDict7.py
RobertCraigie/pyright
3ac0a57b6a5cd64afb165f7acf568a35012f93a8
[ "MIT" ]
107
2019-03-24T04:09:37.000Z
2019-05-06T17:00:04.000Z
packages/pyright-internal/src/tests/samples/typedDict7.py
RobertCraigie/pyright
3ac0a57b6a5cd64afb165f7acf568a35012f93a8
[ "MIT" ]
119
2019-03-23T10:48:04.000Z
2019-05-06T08:57:56.000Z
# This sample tests synthesized get methods in TypedDict classes. from typing import TypedDict, Union UserType1 = TypedDict("UserType1", {"name": str, "age": int}, total=False) user1: UserType1 = {"name": "Bob", "age": 40} name1: str = user1.get("name", "n/a") age1: int = user1.get("age", 42) UserType2 = TypedDict(...
25.782609
74
0.649241
5d6938d5cf9a2bd33f1ba891892297e68741881b
6,161
py
Python
lib/services/vserver/ncloud_vserver/model/detach_network_interface_request.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
12
2018-11-20T04:30:49.000Z
2021-11-09T12:34:26.000Z
lib/services/vserver/ncloud_vserver/model/detach_network_interface_request.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
1
2019-01-24T15:56:15.000Z
2019-05-31T07:56:55.000Z
lib/services/vserver/ncloud_vserver/model/detach_network_interface_request.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
6
2018-06-29T03:45:50.000Z
2022-03-18T01:51:45.000Z
# coding: utf-8 """ vserver Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DetachNetworkInterfaceRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class m...
30.959799
123
0.622139
77048d15f6d9136291c6fd5fd456a18ac948cac0
828
py
Python
03_Cisco_Config_Parser_Regex/device_SSH_execution_template.py
network-evolution/python_for_network_engineers
d36c206e00e7a0bc0f8606a0f647a15f087ab2ec
[ "BSD-3-Clause" ]
21
2021-04-20T20:53:17.000Z
2022-03-25T05:43:30.000Z
03_Cisco_Config_Parser_Regex/device_SSH_execution_template.py
network-evolution/python_for_network_engineers
d36c206e00e7a0bc0f8606a0f647a15f087ab2ec
[ "BSD-3-Clause" ]
1
2021-08-02T11:59:49.000Z
2021-08-02T11:59:49.000Z
03_Cisco_Config_Parser_Regex/device_SSH_execution_template.py
network-evolution/python_for_network_engineers
d36c206e00e7a0bc0f8606a0f647a15f087ab2ec
[ "BSD-3-Clause" ]
12
2021-04-23T20:33:13.000Z
2022-03-04T20:33:49.000Z
#! /usr/local/Python_envs/Python3/bin/python3 import paramiko import time from getpass import getpass import re host = 'csr1.test.lab' username = 'admin' password = 'admin' # host = 'ios-xe-mgmt-latest.cisco.com' # username = 'developer' # password = 'C1sco12345' print(f"\n{'#' * 55}\nConnecting to the Device {host}...
25.090909
68
0.722222
0fad03779faacec5dd9e55010e3c3e3817def4ff
2,002
py
Python
dolphinscheduler-python/pydolphinscheduler/tests/testing/path.py
zcy-inc/dolphinscheduler
ebed364a455d917fbb742e7fbe75938a45f134da
[ "Apache-2.0" ]
1
2022-01-29T07:27:46.000Z
2022-01-29T07:27:46.000Z
dolphinscheduler-python/pydolphinscheduler/tests/testing/path.py
zcy-inc/dolphinscheduler
ebed364a455d917fbb742e7fbe75938a45f134da
[ "Apache-2.0" ]
null
null
null
dolphinscheduler-python/pydolphinscheduler/tests/testing/path.py
zcy-inc/dolphinscheduler
ebed364a455d917fbb742e7fbe75938a45f134da
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.4
88
0.716783
4a3714f9ac9620c5e608986ab58d2b51ed7937f9
8,225
py
Python
isi_sdk_8_2_2/isi_sdk_8_2_2/models/summary_protocol_stats_protocol_stats.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/summary_protocol_stats_protocol_stats.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/summary_protocol_stats_protocol_stats.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_2_2.models.summary...
31.39313
140
0.632705
d2a7c9bba2a140b70c4e5b566d3618585472651a
33
py
Python
src/getusername/__init__.py
xiaostar2016/PyCreateTask_Phabricator
bbde4d10798730cfd202f5d652baaee4fb988ec0
[ "Apache-2.0" ]
1
2018-06-07T08:19:32.000Z
2018-06-07T08:19:32.000Z
src/getusername/__init__.py
xiaostar2016/PyCreateTask_Phabricator
bbde4d10798730cfd202f5d652baaee4fb988ec0
[ "Apache-2.0" ]
null
null
null
src/getusername/__init__.py
xiaostar2016/PyCreateTask_Phabricator
bbde4d10798730cfd202f5d652baaee4fb988ec0
[ "Apache-2.0" ]
null
null
null
from username import GetUsername
16.5
32
0.878788
262e33d75329eb5fcea33a09fda1226b9d915686
234
py
Python
prnu/__init__.py
rlfalsgh95/prnu-python
d261e06dc6300643379c963457926b4ee2643d08
[ "MIT" ]
45
2019-01-05T09:40:43.000Z
2022-03-02T23:08:00.000Z
prnu/__init__.py
rlfalsgh95/prnu-python
d261e06dc6300643379c963457926b4ee2643d08
[ "MIT" ]
3
2019-09-23T02:41:28.000Z
2021-07-14T13:00:19.000Z
prnu/__init__.py
rlfalsgh95/prnu-python
d261e06dc6300643379c963457926b4ee2643d08
[ "MIT" ]
27
2019-03-19T17:40:33.000Z
2022-01-11T06:35:26.000Z
# -*- coding: UTF-8 -*- """ @author: Luca Bondi (luca.bondi@polimi.it) @author: Paolo Bestagini (paolo.bestagini@polimi.it) @author: Nicolò Bonettini (nicolo.bonettini@polimi.it) Politecnico di Milano 2018 """ from .functions import *
29.25
54
0.726496
253e8409f1b3a92e46f81965a88c340ecb3ebc07
10,899
py
Python
homeassistant/components/dsmr/sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/dsmr/sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
7
2016-04-09T20:56:30.000Z
2016-04-19T21:28:46.000Z
homeassistant/components/dsmr/sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Support for Dutch Smart Meter (also known as Smartmeter or P1 port).""" import asyncio from datetime import timedelta from functools import partial import logging from dsmr_parser import obis_references as obis_ref from dsmr_parser.clients.protocol import create_dsmr_reader, create_tcp_dsmr_reader import serial imp...
36.573826
88
0.658317
ae17df09d0f9532b240c5f4e0b2d2a6de0bd2e8e
3,276
py
Python
forte/data/readers/tests/conllu_ud_reader_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
forte/data/readers/tests/conllu_ud_reader_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
forte/data/readers/tests/conllu_ud_reader_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
""" Tests for conllU reader """ import os import unittest from typing import List from ft.onto.base_ontology import Sentence, Document, Dependency from forte.data.readers import ConllUDReader from forte.data.data_pack import DataPack class ConllUDReaderTest(unittest.TestCase): def setUp(self): """ ...
34.851064
79
0.635531
2422002330474f53f1d8d38c3b9ebe0c58e51cfe
625
py
Python
tests/bench/large_messages.py
lumatijev/mitogen
b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14
[ "BSD-3-Clause" ]
null
null
null
tests/bench/large_messages.py
lumatijev/mitogen
b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14
[ "BSD-3-Clause" ]
null
null
null
tests/bench/large_messages.py
lumatijev/mitogen
b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14
[ "BSD-3-Clause" ]
null
null
null
# Verify _receive_one() quadratic behaviour fixed. import subprocess import time import socket import mitogen @mitogen.main() def main(router): c = router.fork() n = 1048576 * 127 s = ' ' * n print('bytes in %.2fMiB string...' % (n/1048576.0),) t0 = time.time() for x in range(10): ...
21.551724
58
0.5104
a6f4782109a9a38fb1d6a31d23d38c40beb6ce0d
215
py
Python
Python-Source/Day1.py
rupponi/Hacker-Rank-30-Days-Of-Code
ac2208360f29f4b21d524314e9ab1cdf0aa9205a
[ "MIT" ]
1
2020-09-20T07:02:05.000Z
2020-09-20T07:02:05.000Z
Python-Source/Day1.py
rupponi/Hacker-Rank-30-Days-Of-Code
ac2208360f29f4b21d524314e9ab1cdf0aa9205a
[ "MIT" ]
null
null
null
Python-Source/Day1.py
rupponi/Hacker-Rank-30-Days-Of-Code
ac2208360f29f4b21d524314e9ab1cdf0aa9205a
[ "MIT" ]
null
null
null
# DAY 1 OF HACKERRANK 30 DAY CHALLENGE: DATA TYPES (PYTHON) i = 4 d = 4.0 s = 'HackerRank ' iIn = input() dIn = input() sIn = input() iIn = int(iIn) print(iIn+i) dIn = float(dIn) print(dIn + d) print(s + sIn)
11.315789
59
0.613953
c3f4034a5f013791fa4176714b9447b524c5b4a8
953
py
Python
example_problems/tutorial/morra/services/compute_hash/advanced/compute_hash_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
4
2021-06-27T13:27:24.000Z
2022-03-24T10:46:28.000Z
example_problems/tutorial/morra/services/compute_hash/advanced/compute_hash_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
null
null
null
example_problems/tutorial/morra/services/compute_hash/advanced/compute_hash_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
5
2021-04-01T15:21:57.000Z
2022-01-29T15:07:38.000Z
#!/usr/bin/env python3 from sys import stderr, exit, argv import string import random from multilanguage import Env, Lang, TALcolors from hash_and_cipher import hash_value # METADATA OF THIS TAL_SERVICE: args_list = [ ('hash_type',str), ('white_string',str), ('META_TTY',bool), ] ENV =Env(args_list) TAc...
28.878788
223
0.693599
c2e036aa223ff91b078cafa8adca064b3c085ad6
4,934
py
Python
ScalarWave/InitialData.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
66
2018-06-26T22:18:09.000Z
2022-02-09T21:12:33.000Z
ScalarWave/InitialData.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
14
2020-02-13T16:09:29.000Z
2021-11-12T14:59:59.000Z
ScalarWave/InitialData.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
30
2019-01-09T09:57:51.000Z
2022-03-08T18:45:08.000Z
# Generating C code for plane wave initial # data for the scalar wave equation in # ***Cartesian*** coordinates, in up to # *three* spatial dimensions # # Authors: Zachariah B. Etienne # zachetie **at** gmail **dot* com # Thiago Assumpcao # assumpcaothiago **at** gmail **dot* com # # Licen...
47.902913
119
0.628699
471016c49349b0692f89870686af10ad629e94c7
697
py
Python
assignments/04-python-bash/cat_n.py
marissalopezpier/biosys-analytics
d2b2e69e0662674155b65e91b098e8b4526c791d
[ "MIT" ]
null
null
null
assignments/04-python-bash/cat_n.py
marissalopezpier/biosys-analytics
d2b2e69e0662674155b65e91b098e8b4526c791d
[ "MIT" ]
null
null
null
assignments/04-python-bash/cat_n.py
marissalopezpier/biosys-analytics
d2b2e69e0662674155b65e91b098e8b4526c791d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : mal1 Date : 2019-01-31 Purpose: Rock the Casbah """ import os import sys # Set up main fuction def main(): args = sys.argv[1:] if len(args) == 0: print('Usage: {} FILE'.format(os.path.basename(sys.argv[0]))) exit(1) if not os.path.isfile(args[0]): ...
17.871795
69
0.552367
7d3dab17ebd7c03a1a24f87c6fa161ef74e81c10
4,493
py
Python
target/mb1035b.py
mistsys/pycs
2f9fef5592f5c1d5ee01c23d93174a53f0a8a047
[ "MIT" ]
47
2015-08-30T12:08:29.000Z
2022-02-14T01:35:48.000Z
target/mb1035b.py
mistsys/pycs
2f9fef5592f5c1d5ee01c23d93174a53f0a8a047
[ "MIT" ]
2
2017-09-05T09:35:16.000Z
2021-07-20T07:06:50.000Z
target/mb1035b.py
mistsys/pycs
2f9fef5592f5c1d5ee01c23d93174a53f0a8a047
[ "MIT" ]
11
2017-01-18T07:03:52.000Z
2021-07-01T02:39:40.000Z
# ----------------------------------------------------------------------------- """ STM32F3 Discovery Board (STM32F303xC) """ # ----------------------------------------------------------------------------- import cli import cortexm import mem import soc import flash import gpio import i2c import vendor.st.st as ven...
34.29771
88
0.526374
8ce2e1d61363e955629603961c200be20ba0cbf5
2,628
py
Python
huaweicloud-sdk-eps/huaweicloudsdkeps/v1/model/enable_action.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-eps/huaweicloudsdkeps/v1/model/enable_action.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-eps/huaweicloudsdkeps/v1/model/enable_action.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class EnableAction: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is js...
23.890909
74
0.517504
50c148455b07ef7dce7a5cd10de7212bdf469e95
4,230
py
Python
src/model/evaluate.py
ismailbbm/kaggle-moa-2020
3b6465410658abbc85f18059f25ae336a860f4fe
[ "MIT" ]
null
null
null
src/model/evaluate.py
ismailbbm/kaggle-moa-2020
3b6465410658abbc85f18059f25ae336a860f4fe
[ "MIT" ]
null
null
null
src/model/evaluate.py
ismailbbm/kaggle-moa-2020
3b6465410658abbc85f18059f25ae336a860f4fe
[ "MIT" ]
null
null
null
import numpy as np from sklearn import metrics from model.postprocessing import post_process, get_available_exclusivity_tuples from utils import write_yaml_conf def evaluate_nn_model_list(prepared_data, nn_model_list,ls_floor=1e-5,ls_ceil=1e-5,activation_threshold=0.3,floor=1e-5): results = [] for model_dict ...
50.357143
178
0.724823
b6cb22be6cf6437b9d24c29a06b8d3747c689e0e
1,324
py
Python
tests/test_psychology.py
chreekat/proselint
127bfe3c7298dfd184799aea5c2a2bb7113ec107
[ "BSD-3-Clause" ]
null
null
null
tests/test_psychology.py
chreekat/proselint
127bfe3c7298dfd184799aea5c2a2bb7113ec107
[ "BSD-3-Clause" ]
null
null
null
tests/test_psychology.py
chreekat/proselint
127bfe3c7298dfd184799aea5c2a2bb7113ec107
[ "BSD-3-Clause" ]
null
null
null
"""Tests for psychology.misc check.""" from __future__ import absolute_import from .check import Check from proselint.checks.psychology import misc as chk class TestCheck(Check): """The test class for psychology.misc.""" __test__ = True @property def this_check(self): """Bolierplate.""" ...
33.948718
75
0.64577
283ad10a9fae669a57c9b436cafed6b6b22189a0
288
py
Python
thoughtworks/hr2.py
ganesh-95/python-programs
df4ee1ec1d13ea0cd1ad511827cb0a2e59f55908
[ "MIT" ]
1
2016-07-20T04:40:48.000Z
2016-07-20T04:40:48.000Z
thoughtworks/hr2.py
ganesh-95/python-programs
df4ee1ec1d13ea0cd1ad511827cb0a2e59f55908
[ "MIT" ]
null
null
null
thoughtworks/hr2.py
ganesh-95/python-programs
df4ee1ec1d13ea0cd1ad511827cb0a2e59f55908
[ "MIT" ]
null
null
null
''' factorial with recursion here set_recursion_limit is used because in python recursion limit is upto 999 ''' import sys sys.setrecursionlimit(1050) x = input() def factorial(x): if x == 0: return 1 else: return x*factorial(x-1) print factorial(x)
14.4
46
0.65625
5f1cc1e5d91de0d7f0963b9ee4d0dcfb7d928d6b
1,051
py
Python
ex082.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
1
2021-11-23T21:41:25.000Z
2021-11-23T21:41:25.000Z
ex082.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
ex082.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
# Crie um programa que vai ler vários números e colocar em uma lista. Depois disso, crie duas listas extras que # conterão apenas os valores pares e os valores ímpares digitados, respectivamente. Ao final, mostre o conteúdo das três # listas geradas. list = [] odd = [] pair = [] while True: num = int(input('Di...
28.405405
121
0.615604
a48efe511742aff1617d8c562ec63dfa72ddba4a
11,764
py
Python
src/workflow/workflow_manager.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
2
2020-10-31T15:03:20.000Z
2021-03-22T16:29:15.000Z
src/workflow/workflow_manager.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
13
2019-12-04T23:29:42.000Z
2022-03-02T04:53:53.000Z
src/workflow/workflow_manager.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distrib...
43.409594
166
0.643999
f70f499b3938d65a8dec688ff8e18592b5f6b4c1
32,683
py
Python
python/ray/data/dataset_pipeline.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
python/ray/data/dataset_pipeline.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
51
2018-05-17T05:55:28.000Z
2020-03-18T06:49:49.000Z
python/ray/data/dataset_pipeline.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import inspect import itertools import logging import time from typing import ( Any, Callable, List, Iterator, Iterable, Generic, Union, Optional, TYPE_CHECKING, ) import ray from ray.data.context import DatasetContext from ray.data.dataset import Dataset, T, U from ray.data.impl.pi...
37.055556
88
0.572775
a93489a3410d14c1f6ce7164722822192dfc5f67
2,225
py
Python
mcsema/lib/ida7/anvill/mem.py
TheGreatRambler/NintendoSwitchGameToNative
90dee5e3b24325f781ee3adf0f3ce083c47bf13d
[ "MIT" ]
7
2021-01-22T23:17:02.000Z
2022-03-04T22:16:24.000Z
mcsema/lib/ida7/anvill/mem.py
TheGreatRambler/NintendoSwitchGameToNative
90dee5e3b24325f781ee3adf0f3ce083c47bf13d
[ "MIT" ]
null
null
null
mcsema/lib/ida7/anvill/mem.py
TheGreatRambler/NintendoSwitchGameToNative
90dee5e3b24325f781ee3adf0f3ce083c47bf13d
[ "MIT" ]
1
2021-11-19T04:37:20.000Z
2021-11-19T04:37:20.000Z
# Copyright (c) 2020 Trail of Bits, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is di...
34.230769
83
0.607191
6ce89d425d3eae97d00235b13763701c2693130d
30,334
py
Python
tests/chainermn_tests/communicator_tests/test_communicator.py
mr4msm/chainer
7942e1cd425b29868ff872a5b9031f90a9bcda53
[ "MIT" ]
1
2019-09-04T15:15:43.000Z
2019-09-04T15:15:43.000Z
tests/chainermn_tests/communicator_tests/test_communicator.py
dr4mohamed/chainer
6fa28004889b260ae13484f17dc1ac68b25d52bb
[ "MIT" ]
1
2019-10-17T09:56:18.000Z
2019-10-17T09:56:18.000Z
tests/chainermn_tests/communicator_tests/test_communicator.py
dr4mohamed/chainer
6fa28004889b260ae13484f17dc1ac68b25d52bb
[ "MIT" ]
null
null
null
import mock import mpi4py.MPI import numpy as np import pytest import unittest import chainer import chainer.cuda import chainer.initializers import chainer.links import chainer.testing import chainer.testing.attr import chainermn from chainermn.communicators import _communication_utility from chainermn.communicators....
33.629712
79
0.607437
821fac9f1f23fe87c0e9415602ebec8f4448d9d2
1,359
py
Python
venv/lib/python2.7/site-packages/httpie/utils.py
zixuzhang/flasky
5e5747c380410c4cb7efe1d294ee017611f04ef5
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/httpie/utils.py
zixuzhang/flasky
5e5747c380410c4cb7efe1d294ee017611f04ef5
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/httpie/utils.py
zixuzhang/flasky
5e5747c380410c4cb7efe1d294ee017611f04ef5
[ "MIT" ]
null
null
null
from __future__ import division import json from httpie.compat import is_py26, OrderedDict def load_json_preserve_order(s): if is_py26: return json.loads(s) return json.loads(s, object_pairs_hook=OrderedDict) def humanize_bytes(n, precision=2): # Author: Doug Latornell # Licence: MIT # ...
23.842105
69
0.578366
9595b3124fcadf602841636353912388eeea4acc
4,995
py
Python
FindExampleSongs_forTOD.py
CreanzaLab/ChippingSparrows_DailyPatterns
f5ed2247e02574bc0b10796e8cbea805058072aa
[ "MIT" ]
null
null
null
FindExampleSongs_forTOD.py
CreanzaLab/ChippingSparrows_DailyPatterns
f5ed2247e02574bc0b10796e8cbea805058072aa
[ "MIT" ]
null
null
null
FindExampleSongs_forTOD.py
CreanzaLab/ChippingSparrows_DailyPatterns
f5ed2247e02574bc0b10796e8cbea805058072aa
[ "MIT" ]
1
2019-07-24T14:13:32.000Z
2019-07-24T14:13:32.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import soundfile as sf from ifdvsonogramonly import ifdvsonogramonly import matplotlib matplotlib.rcParams['pdf.fonttype'] = 42 matplotlib.rcParams['ps.fonttype'] = 42 from matplotlib.backends.backend_pdf import PdfPages # import seaborn as...
43.060345
119
0.588589
425b7db650e096135b577930a06ee37f837bb3ed
13,255
py
Python
main/JetsonNano_test_case/INTEL/ResNet18/Proposed Algorithm/greedyResNet18Intel.py
abirhossen786/greedyhpo
5295f1322acceb5907d1e251344a069a332b7967
[ "MIT" ]
null
null
null
main/JetsonNano_test_case/INTEL/ResNet18/Proposed Algorithm/greedyResNet18Intel.py
abirhossen786/greedyhpo
5295f1322acceb5907d1e251344a069a332b7967
[ "MIT" ]
null
null
null
main/JetsonNano_test_case/INTEL/ResNet18/Proposed Algorithm/greedyResNet18Intel.py
abirhossen786/greedyhpo
5295f1322acceb5907d1e251344a069a332b7967
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split import os import pandas as pd import matplotlib.pyplot as plt import numpy as np import time from timeit import default_timer as timer from datetime import timedelta import tensorflow as tf MEMORY_LIMIT = 700 gpus = tf.config.experimental.list_physical_...
38.644315
534
0.598642
16e611d2060f9599c75a82540450f4e5dd7df851
2,187
py
Python
src/beginningMetal/02_GettingStarted/Challenge/challenge.py
pome-ta/pystaMetalStudy
530248ad8621ec951fcbaf450ebd26ac2752e540
[ "MIT" ]
1
2021-08-05T04:31:02.000Z
2021-08-05T04:31:02.000Z
src/beginningMetal/02_GettingStarted/Challenge/challenge.py
pome-ta/pystaMetalStudy
530248ad8621ec951fcbaf450ebd26ac2752e540
[ "MIT" ]
2
2021-08-14T03:33:12.000Z
2021-11-11T06:25:01.000Z
src/beginningMetal/02_GettingStarted/Challenge/challenge.py
pome-ta/pystaMetalStudy
530248ad8621ec951fcbaf450ebd26ac2752e540
[ "MIT" ]
null
null
null
import ctypes from objc_util import c, create_objc_class, ObjCClass, ObjCInstance import ui wenderlichGreen = (0.0, 0.4, 0.21, 1.0) class Renderer: def __init__(self, device): self.device = device self.commandQueue = self.device.newCommandQueue() def renderer_init(self): # todo: MTKViewDelegate fun...
31.242857
77
0.728395
5788c0e3caf968ac6417ea9045208854d00fcecc
1,914
py
Python
bench.py
gamer-1478/cpu-benchmark
8d7fea32b11311353a05c38045fe765913163f95
[ "MIT" ]
null
null
null
bench.py
gamer-1478/cpu-benchmark
8d7fea32b11311353a05c38045fe765913163f95
[ "MIT" ]
null
null
null
bench.py
gamer-1478/cpu-benchmark
8d7fea32b11311353a05c38045fe765913163f95
[ "MIT" ]
null
null
null
#imports from multiprocessing import Pool from multiprocessing import cpu_count import time import os #function for stressing the cpu def f(x): cpi = 300000000 stb = 0 while True: if cpi <= stb: break stb = stb + 1 x*x #starting the test if __name__ == '__main__': ...
28.147059
208
0.683386
1b967f3f8b41ea1ea07bbeb3283c39a105785cc2
25,918
py
Python
nuitka/codegen/Contexts.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/Contexts.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/Contexts.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
27.026069
83
0.619762
a3e2aec6a96a8863d487fc9edcd7ff07a61f32dd
1,626
py
Python
run_kr_make_tour.py
gouldingken/krpano_tool_stereo
168302b0d3f5c8aef687c835c8e867da80e00496
[ "MIT" ]
null
null
null
run_kr_make_tour.py
gouldingken/krpano_tool_stereo
168302b0d3f5c8aef687c835c8e867da80e00496
[ "MIT" ]
null
null
null
run_kr_make_tour.py
gouldingken/krpano_tool_stereo
168302b0d3f5c8aef687c835c8e867da80e00496
[ "MIT" ]
null
null
null
import subprocess import logging import os # loosely based on https://github.com/manageyp/krpano_tool/blob/master/krpano.py KRPANO_BASE_DIR = "C:\\app\\krpano-1.19-pr5" THIS_DIR = os.path.dirname(os.path.realpath(__file__)) # CONFIG = "templates\custom-vtour-normal.config" CONFIG = "templates\\vtour-norm...
29.563636
118
0.596556
9f5597d2c203d47c1b95f072348c96e8e1f964bb
10,640
py
Python
setup_configure.py
jnsebgosselin/h5py
f525d1c180f6b4bc59726faf833fd50a26d57d83
[ "BSD-3-Clause" ]
1
2020-08-29T20:40:05.000Z
2020-08-29T20:40:05.000Z
setup_configure.py
jnsebgosselin/h5py
f525d1c180f6b4bc59726faf833fd50a26d57d83
[ "BSD-3-Clause" ]
null
null
null
setup_configure.py
jnsebgosselin/h5py
f525d1c180f6b4bc59726faf833fd50a26d57d83
[ "BSD-3-Clause" ]
null
null
null
""" Implements a new custom Distutils command for handling library configuration. The "configure" command here doesn't directly affect things like config.pxi; rather, it exists to provide a set of attributes that are used by the build_ext replacement in setup_build.py. Options from the comman...
35.585284
92
0.598308
0053d5d4de31ad8cc5b44bf0c32a7ae5e592b80b
255
py
Python
parser/team17/Parser/Reportes/Nodo.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team17/Parser/Reportes/Nodo.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team17/Parser/Reportes/Nodo.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
class Nodo: def __init__(self,valor,tipo): self.id =0 self.valor=str(valor) self.tipo=str(tipo) self.hijos=[] def getValor(self): return self.valor def getTipo(self): return self.tipo def add(self, hijo): self.hijos.append(hijo)
15
31
0.67451
7dfef032ba47384edda838e5d65730d7e18b3624
1,305
py
Python
test/naive_test/naive_tuner.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
3
2021-04-19T08:26:46.000Z
2022-03-22T20:17:17.000Z
test/naive_test/naive_tuner.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
test/naive_test/naive_tuner.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
3
2020-10-23T02:53:47.000Z
2020-11-15T22:05:09.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import json import logging import os from nni.tuner import Tuner from nni.utils import extract_scalar_reward _logger = logging.getLogger('NaiveTuner') _logger.info('start') _pwd = os.path.dirname(__file__) _result = open(os.path.join(_pwd, 'tu...
29.659091
93
0.662835
c35ed35caa1e1725004f726265b894aa835df812
14,372
py
Python
catalyst/callbacks/control_flow.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2020-11-14T13:35:22.000Z
2020-11-14T13:35:22.000Z
catalyst/callbacks/control_flow.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
catalyst/callbacks/control_flow.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T02:50:38.000Z
2021-01-07T02:50:38.000Z
from typing import Callable, Mapping, Sequence, TYPE_CHECKING, Union from collections import OrderedDict from catalyst.core.callback import Callback, CallbackWrapper LOADERS = Union[str, Sequence[str], Mapping[str, Union[int, Sequence[int]]]] FILTER_FN = Callable[[str, int, str], bool] if TYPE_CHECKING: from cat...
35.574257
79
0.570763
a41767f68ee29701403c97651753263563683a71
11,880
py
Python
tests/unit/test_microanalytic_score.py
smlindauer/python-sasctl
b2b1c0712ab96b90b0ef53f4a7a57e922c2b9e6d
[ "Apache-2.0" ]
null
null
null
tests/unit/test_microanalytic_score.py
smlindauer/python-sasctl
b2b1c0712ab96b90b0ef53f4a7a57e922c2b9e6d
[ "Apache-2.0" ]
3
2019-07-12T02:09:15.000Z
2019-07-13T14:48:04.000Z
tests/unit/test_microanalytic_score.py
jlwalke2/python-sasctl
e059647e1e35684591505be3838e8dbcfcc06ca9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import pytest from six.moves import mock from sasctl.services import microanalytic_score as mas from sasctl import current_session from sasctl.core import RestO...
32.282609
121
0.380135
5acd36bb6fb5f222505dc06ee78795bc9ca63759
13,064
py
Python
drq.py
zchuning/drq
02058d37eaa845a44ef22e9ed3ce0d04e43c4f53
[ "MIT" ]
null
null
null
drq.py
zchuning/drq
02058d37eaa845a44ef22e9ed3ce0d04e43c4f53
[ "MIT" ]
null
null
null
drq.py
zchuning/drq
02058d37eaa845a44ef22e9ed3ce0d04e43c4f53
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import copy import math import utils import hydra class Encoder(nn.Module): """Convolutional encoder for image-based observations.""" def __init__(self, obs_shape, feature_dim): super().__init__() assert le...
36.49162
94
0.606093
43e089b3d0f398893410dacd5df13a64fc117031
4,371
py
Python
tests/integration/cloud/providers/profitbricks.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
tests/integration/cloud/providers/profitbricks.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
tests/integration/cloud/providers/profitbricks.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Ethan Devenport <ethand@stackpointcloud.com>` ''' # Import Python Libs from __future__ import absolute_import import os import random import string # Import Salt Testing Libs from salttesting import skipIf from salttesting.helpers import ensure_in_syspath, expensiv...
30.78169
88
0.59849
cf2868e0ef9f1d252438629db1101a0e91c33f24
594
py
Python
tests/test_client_card.py
captn3m0/razorpay
0352f2d81696984c96e51c55a81178c663be320f
[ "MIT" ]
125
2015-12-19T13:07:23.000Z
2022-03-02T18:29:43.000Z
tests/test_client_card.py
captn3m0/razorpay
0352f2d81696984c96e51c55a81178c663be320f
[ "MIT" ]
139
2015-12-17T10:00:36.000Z
2022-03-27T14:26:42.000Z
tests/test_client_card.py
captn3m0/razorpay
0352f2d81696984c96e51c55a81178c663be320f
[ "MIT" ]
70
2016-05-16T06:47:45.000Z
2022-03-29T10:40:29.000Z
import responses import json from .helpers import mock_file, ClientTestCase class TestClientRefund(ClientTestCase): def setUp(self): super(TestClientRefund, self).setUp() self.base_url = '{}/cards'.format(self.base_url) @responses.activate def test_card_fetch(self): result = moc...
29.7
78
0.671717
2c5eba8b43c8e6a08b9f6e35a8dda1dceb0dd493
2,062
py
Python
.ci_scripts/generate_cfep_index.py
ngam/conda-forge.github.io
d35c889184b792c64b329abaef900a02c5763a87
[ "BSD-3-Clause" ]
94
2016-03-18T03:23:34.000Z
2022-03-31T15:51:43.000Z
.ci_scripts/generate_cfep_index.py
kaydoh/conda-forge.github.io
39f39b43846ce3b8707d84344ec159e1118019e1
[ "BSD-3-Clause" ]
1,321
2015-07-23T09:27:09.000Z
2022-03-31T22:41:33.000Z
.ci_scripts/generate_cfep_index.py
kaydoh/conda-forge.github.io
39f39b43846ce3b8707d84344ec159e1118019e1
[ "BSD-3-Clause" ]
249
2015-08-03T21:56:09.000Z
2022-03-31T09:13:05.000Z
import re import requests from dataclasses import dataclass from pathlib import Path REPO_CONTENTS = "https://api.github.com/repos/conda-forge/cfep/contents/" TITLE_PATTERN = "<td>\s*Title\s*</td><td>\s*(.*)\s*</td>" STATUS_PATTERN = "<td>\s*Status\s*</td><td>\s*(.*)\s*</td>" REPO_DIR = Path(__file__).parents[1].absol...
30.776119
92
0.601843
13092a97a26cf3ccdfeb31f8377ee354174ac3fb
3,856
py
Python
ai4water/tf_attributes.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
17
2021-05-21T13:01:52.000Z
2022-03-19T15:17:10.000Z
ai4water/tf_attributes.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
3
2021-10-31T22:40:28.000Z
2021-11-08T02:28:35.000Z
ai4water/tf_attributes.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
7
2021-08-06T07:27:50.000Z
2022-01-26T00:38:32.000Z
__all__ = ["ACTIVATION_LAYERS", "ACTIVATION_FNS", "LOSSES", "LAYERS", "OPTIMIZERS", "tcn"] # it is supposed that tf is available from .backend import get_attributes try: import tensorflow as tf except ModuleNotFoundError: tf = None try: import tcn except ModuleNotFoundError: tcn = None LOSSES = {}...
37.076923
97
0.696836
5a918f06eeec25962efa87f493af8309e478ddb9
1,006
py
Python
flaskcrm/users/utils.py
Sergey-Rogalskiy/flask_Corey-Schafer_study
926ae4ab324e8b328d0bf80a39d7777d36889503
[ "Unlicense" ]
null
null
null
flaskcrm/users/utils.py
Sergey-Rogalskiy/flask_Corey-Schafer_study
926ae4ab324e8b328d0bf80a39d7777d36889503
[ "Unlicense" ]
1
2021-06-23T22:11:49.000Z
2021-06-23T22:11:49.000Z
flaskcrm/users/utils.py
Sergey-Rogalskiy/flask_Corey-Schafer_study
926ae4ab324e8b328d0bf80a39d7777d36889503
[ "Unlicense" ]
null
null
null
import os import secrets from PIL import Image from flask import url_for, current_app from flask_mail import Message from flaskcrm import mail def save_picture(form_picture): random_hex = secrets.token_hex(8) _, f_ext = os.path.splitext(form_picture.filename) picture_fn = random_hex + f_ext picture_pa...
28.742857
91
0.710736
2a67de0a5298d8d75f4e642c071de0412a30310d
500
py
Python
setup.py
michaelschade/stripe_growl
aeb1eaf4ba1cc1f464a410523f93373b226230e7
[ "MIT" ]
null
null
null
setup.py
michaelschade/stripe_growl
aeb1eaf4ba1cc1f464a410523f93373b226230e7
[ "MIT" ]
null
null
null
setup.py
michaelschade/stripe_growl
aeb1eaf4ba1cc1f464a410523f93373b226230e7
[ "MIT" ]
null
null
null
from setuptools import setup from sys import version_info requires = ['gntp', 'stripe'] if version_info < (2, 7): required.append('argparse') setup( name = 'stripe_growl', version = '0.2.0', author = 'Michael Schade', author_email = 'michael@mschade.me', ...
27.777778
77
0.604
63c330c2b1d142a05aea66e7e46f12444c4eae89
37
py
Python
lxtree/__init__.py
salpreh/lxtree
7033a76a10b6f5aa4f71575b42c5d75757347be7
[ "MIT" ]
null
null
null
lxtree/__init__.py
salpreh/lxtree
7033a76a10b6f5aa4f71575b42c5d75757347be7
[ "MIT" ]
3
2020-03-31T02:37:52.000Z
2021-06-01T23:43:33.000Z
lxtree/__init__.py
salpreh/lxtree
7033a76a10b6f5aa4f71575b42c5d75757347be7
[ "MIT" ]
null
null
null
from lxtree.TreeNode import TreeNode
18.5
36
0.864865
dd858c8c9b7f1b449fd5b1d55aae070983b5f405
2,773
py
Python
ufora/distributed/SharedState/Connections/TcpChannelFactory.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/distributed/SharedState/Connections/TcpChannelFactory.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/distributed/SharedState/Connections/TcpChannelFactory.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora 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 i...
35.101266
96
0.73242
9f31322a49ee75a965993a1401231ae47b900bb1
709
py
Python
internship6_env/bin/rst2html.py
Zamy97/internship_6
34175f8f4b938f6a23e79968d70a0f0a02ecfa65
[ "MIT" ]
null
null
null
internship6_env/bin/rst2html.py
Zamy97/internship_6
34175f8f4b938f6a23e79968d70a0f0a02ecfa65
[ "MIT" ]
null
null
null
internship6_env/bin/rst2html.py
Zamy97/internship_6
34175f8f4b938f6a23e79968d70a0f0a02ecfa65
[ "MIT" ]
null
null
null
#!/Users/zamy/Desktop/Python_Projects/excl_intrnship_projects/excl_internship_0/internship_6/internship_6/internship6_env/bin/python3 # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front e...
29.541667
133
0.764457
0e74e9003f69b3469e31a9d84b6ac881b0472c1a
180
py
Python
widgets/bar/lv_example_bar_1.py
shownb/lv_mpy_examples_v8
ae09b2d591ed182f2746274269dade7e6b93a6fe
[ "MIT" ]
3
2021-04-30T10:13:38.000Z
2021-12-06T05:51:09.000Z
widgets/bar/lv_example_bar_1.py
shownb/lv_mpy_examples_v8
ae09b2d591ed182f2746274269dade7e6b93a6fe
[ "MIT" ]
null
null
null
widgets/bar/lv_example_bar_1.py
shownb/lv_mpy_examples_v8
ae09b2d591ed182f2746274269dade7e6b93a6fe
[ "MIT" ]
2
2021-06-01T15:35:40.000Z
2021-11-29T21:21:04.000Z
#!/opt/bin/lv_micropython -i import time import lvgl as lv import display_driver bar1 = lv.bar(lv.scr_act()) bar1.set_size(200, 20) bar1.center() bar1.set_value(70, lv.ANIM.OFF)
16.363636
31
0.744444
ed7549cc012856befba51b1899408f56f108ec35
6,771
py
Python
bindings/python/ensmallen_graph/datasets/string/shewanellamarina.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/shewanellamarina.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/shewanellamarina.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Shewanella marina. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-0...
35.450262
223
0.707281
b6e99d0b17c9bfbfa5ff29f43f232290c8dbae9d
2,051
py
Python
new-integration-tests/src/test/resources/python-scripts/create-jdbc-resource.py
tanmaygarg-oracle/weblogic-kubernetes-operator
2920cf3d9ba5c63ef1af6d9e4a574995286f524e
[ "UPL-1.0", "MIT" ]
null
null
null
new-integration-tests/src/test/resources/python-scripts/create-jdbc-resource.py
tanmaygarg-oracle/weblogic-kubernetes-operator
2920cf3d9ba5c63ef1af6d9e4a574995286f524e
[ "UPL-1.0", "MIT" ]
null
null
null
new-integration-tests/src/test/resources/python-scripts/create-jdbc-resource.py
tanmaygarg-oracle/weblogic-kubernetes-operator
2920cf3d9ba5c63ef1af6d9e4a574995286f524e
[ "UPL-1.0", "MIT" ]
null
null
null
# Copyright (c) 2020, Oracle Corporation and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. def createDataSource(dsName, dsURL, dsDriver, dsUser, dsPassword, dsTarget): cd('/') cmo.createJDBCSystemResource(dsName) cd('/JDBCSyste...
40.215686
131
0.702584
f418d1cc17ff05ac42ecf6d9fab5972f3ff6165f
3,731
py
Python
edit_landscape.py
web3land/web3-landscape
c2eaacade229efe192167b3f87faa25eab6c7679
[ "Apache-2.0" ]
null
null
null
edit_landscape.py
web3land/web3-landscape
c2eaacade229efe192167b3f87faa25eab6c7679
[ "Apache-2.0" ]
null
null
null
edit_landscape.py
web3land/web3-landscape
c2eaacade229efe192167b3f87faa25eab6c7679
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import argparse import os import shutil from typing import Dict import ruamel.yaml import requests from bs4 import BeautifulSoup from enum import Enum LANDSCAPE_FILE = 'landscape.yml' def prepate_item(name, project_url, repo_url, logo_path): item = dict([('item', None), ('name', name), ('homep...
32.163793
142
0.644063
0ea0a20789fd516257703b9459a451b1d5fe5464
18,022
py
Python
sympy/printing/pretty/stringpict.py
shipci/sympy
4b59927bed992b980c9b3faac01becb36feef26b
[ "BSD-3-Clause" ]
1
2015-01-14T22:55:45.000Z
2015-01-14T22:55:45.000Z
sympy/printing/pretty/stringpict.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
null
null
null
sympy/printing/pretty/stringpict.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
null
null
null
"""Prettyprinter by Jurjen Bos. (I hate spammers: mail me at pietjepuk314 at the reverse of ku.oc.oohay). All objects have a method that create a "stringPict", that can be used in the str method for pretty printing. Updates by Jason Gedge (email <my last name> at cs mun ca) - terminal_string() method - minor f...
35.062257
104
0.552824
9c6cfc4c24d464a9154181784791a1f6901de896
2,911
py
Python
Spell-Checker-Project/code.py
SaimaS786/ga-learner-dsmp-repo
905dbe0ed110016a951656c5dad0884519185950
[ "MIT" ]
null
null
null
Spell-Checker-Project/code.py
SaimaS786/ga-learner-dsmp-repo
905dbe0ed110016a951656c5dad0884519185950
[ "MIT" ]
null
null
null
Spell-Checker-Project/code.py
SaimaS786/ga-learner-dsmp-repo
905dbe0ed110016a951656c5dad0884519185950
[ "MIT" ]
null
null
null
# -------------- # import packages import re from collections import Counter import numpy as np def edit(word): #All edits that are one edit away from `word`. letters = 'abcdefghijklmnopqrstuvwxyz' splits = [(word[:i], word[i:]) for i in range(len(word) + 1)] deletes = [L + ...
25.991071
95
0.608382
c0880a5ed2240f13a4f1e1340f51ff382e02a01a
1,163
py
Python
src/sweetrpg_COMPONENT_web/application/constants.py
sweetrpg/web-template
975e65bbdb848be4108f35a1039b6583850b792c
[ "MIT" ]
null
null
null
src/sweetrpg_COMPONENT_web/application/constants.py
sweetrpg/web-template
975e65bbdb848be4108f35a1039b6583850b792c
[ "MIT" ]
1
2022-03-30T20:21:59.000Z
2022-03-30T20:21:59.000Z
src/sweetrpg_COMPONENT_web/application/constants.py
sweetrpg/web-template
975e65bbdb848be4108f35a1039b6583850b792c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <dm@sweetrpg.com>" """constants.py Constants for keys and environment variable names """ AUTH0_CLIENT_ID = "AUTH0_CLIENT_ID" AUTH0_CLIENT_SECRET = "AUTH0_CLIENT_SECRET" AUTH0_CALLBACK_URL = "AUTH0_CALLBACK_URL" AUTH0_DOMAIN = "AUTH0_DOMAIN" AUTH0_AUDIENCE = "AUTH0_...
25.282609
49
0.784179
eaa9babd0c9e9310d5454974ceb4a15c96278c52
760
py
Python
Pyto Mac/PyObjC/DictionaryServices/__init__.py
cclauss/Pyto
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
[ "MIT" ]
4
2019-03-11T18:05:49.000Z
2021-05-22T21:09:09.000Z
Pyto Mac/PyObjC/DictionaryServices/__init__.py
cclauss/Pyto
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
[ "MIT" ]
null
null
null
Pyto Mac/PyObjC/DictionaryServices/__init__.py
cclauss/Pyto
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
[ "MIT" ]
1
2019-03-18T18:53:36.000Z
2019-03-18T18:53:36.000Z
''' Python mapping for the DictionaryServices framework. This module does not contain docstrings for the wrapped code, check Apple's documentation for details on how to use these functions and classes. ''' import sys import objc import CoreServices import warnings warnings.warn("pyobjc-framework-DictionaryServices is...
33.043478
121
0.739474
ab399811572a3b9f1ac3fdaf744338762490acd7
2,383
py
Python
sdk/python/pulumi_azure_native/labservices/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/labservices/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/labservices/__init__.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! *** # Export this package's modules as members: from ._enums import * from .environment import * from .environment_setting import * from .gallery_image imp...
35.567164
92
0.703315
8f9a61a0ccfb905f0b716d6925b57c15eb3d7f87
1,489
py
Python
setup.py
minireference/fabfiles
dcb2d9c44ee2dd0bce18ca49bf602cf8e853febb
[ "MIT" ]
null
null
null
setup.py
minireference/fabfiles
dcb2d9c44ee2dd0bce18ca49bf602cf8e853febb
[ "MIT" ]
null
null
null
setup.py
minireference/fabfiles
dcb2d9c44ee2dd0bce18ca49bf602cf8e853febb
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.md') as readme_file: readme = readme_file.read() with open('HISTORY.md') as history_file: history = history_file.read() requirements = [ 'fab-classic', 'pyyaml', 'dnspython', 'Jinja2'...
27.574074
112
0.646071
32d09c6424d81ffad673296cd465c09eb646bbdd
13,212
py
Python
lizard_auth_server/admin.py
lisannewapstra/lizard-auth-server
3824edfaedd01caff5eb84bbcb9557ccfec2371a
[ "MIT", "BSD-3-Clause" ]
1
2019-02-21T02:12:04.000Z
2019-02-21T02:12:04.000Z
lizard_auth_server/admin.py
lisannewapstra/lizard-auth-server
3824edfaedd01caff5eb84bbcb9557ccfec2371a
[ "MIT", "BSD-3-Clause" ]
88
2015-04-23T15:37:17.000Z
2021-02-18T15:28:32.000Z
lizard_auth_server/admin.py
lisannewapstra/lizard-auth-server
3824edfaedd01caff5eb84bbcb9557ccfec2371a
[ "MIT", "BSD-3-Clause" ]
2
2018-04-24T08:48:35.000Z
2021-02-17T10:18:26.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from django.contrib import messages from django.db.models import Count from django.urls import reverse from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy from lizard_...
33.618321
92
0.631774
953a68e5441a9a170ab75aacfde27d6d37eff629
56,995
py
Python
dataTypes.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
3
2020-06-22T15:02:23.000Z
2021-05-05T14:03:25.000Z
dataTypes.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
null
null
null
dataTypes.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
11
2020-05-01T09:03:14.000Z
2022-02-09T14:17:41.000Z
# dataTypes.py # dataType objects for DORA. # imports. import random, math, pdb from dataclasses import dataclass # set parameters. # Token units # noinspection PyPep8Naming class TokenUnit(object): def __init__(self, my_name, my_set, analog, inferred_now, myanalog): self.name = my_name self.set =...
46.412866
338
0.62416
04d499b39d51580dad991435a1ccfe2b74a9e819
5,037
py
Python
mini_projet.py
Salah-Zkara/Election-Mini-Projet
98ccf379ac0b539441cd2d71da58414936036581
[ "MIT" ]
1
2020-09-21T03:53:15.000Z
2020-09-21T03:53:15.000Z
mini_projet.py
Salah-Zkara/Election-Mini-Projet
98ccf379ac0b539441cd2d71da58414936036581
[ "MIT" ]
1
2021-09-08T02:20:23.000Z
2021-09-08T02:20:23.000Z
mini_projet.py
Salah-Zkara/Election-Mini-Projet
98ccf379ac0b539441cd2d71da58414936036581
[ "MIT" ]
1
2020-08-16T21:35:08.000Z
2020-08-16T21:35:08.000Z
import random from hashlib import md5 from getpass import getpass import pickle import subprocess as sp def randomPass(): def randomString(): letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' return ''.join(random.choice(letters) for i in range(4)) def randomNum(): return ''.join(str(random.randint(0,9)) for i...
24.100478
131
0.580901
b3cb8cf94fa6a37c8ecbd18b8196b87ec953befa
15,037
py
Python
tools/clusterfuzz/v8_foozzie.py
nizox/v8
f66447ba9d7e8c901f40552c5409a3b9457e8be3
[ "BSD-3-Clause" ]
null
null
null
tools/clusterfuzz/v8_foozzie.py
nizox/v8
f66447ba9d7e8c901f40552c5409a3b9457e8be3
[ "BSD-3-Clause" ]
null
null
null
tools/clusterfuzz/v8_foozzie.py
nizox/v8
f66447ba9d7e8c901f40552c5409a3b9457e8be3
[ "BSD-3-Clause" ]
1
2021-11-29T06:33:30.000Z
2021-11-29T06:33:30.000Z
#!/usr/bin/env python # Copyright 2016 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ V8 correctness fuzzer launcher script. """ # for py2/py3 compatibility from __future__ import print_function import argparse im...
31.004124
79
0.709384
85215d9ca47837aad338b6d577b3e744a2db7e1a
969
py
Python
isi_sdk_9_0_0/test/test_node_status_batterystatus.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/test/test_node_status_batterystatus.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/test/test_node_status_batterystatus.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_9_0_0 from ...
23.634146
104
0.72549
df3f84f37f9b45e3721e0e6727bfc4026dd8e406
966
py
Python
lintcode/841.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:49.000Z
2021-01-08T06:57:49.000Z
lintcode/841.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
null
null
null
lintcode/841.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:52.000Z
2021-01-08T06:57:52.000Z
""" the problem will be to find the longest substring in S that's in A. then replace with B idea 1: say A is of length k sort(A) by reverse length O(klogk) check if A exist in S (each takes O(n)) then replace it roughly O(1) each so total O(klogk) + O(n)*k """ class Solution: """ @param a: The A array @pa...
24.769231
67
0.52381
fbf0aa6d596300e5c2de7220de9d116ff434562e
129
py
Python
aoj/v100/10019.py
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
aoj/v100/10019.py
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
19
2016-05-04T02:46:31.000Z
2021-11-27T06:18:33.000Z
aoj/v100/10019.py
Johniel/contests
b692eff913c20e2c1eb4ff0ce3cd4c57900594e0
[ "Unlicense" ]
null
null
null
import sys while True: s = input() if s == "0": break n = 0 for c in s: n += int(c) print(n)
12.9
19
0.410853
62da3bac8dcebf0fe2b781430083fb30c65d2aa9
784
py
Python
massweb/vuln_checks/trav.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
massweb/vuln_checks/trav.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
massweb/vuln_checks/trav.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
""" Directory Traversal Checker """ from massweb.vuln_checks.match import match_strings from massweb.vuln_checks.check import Check class TravCheck(Check): """ Directory Traversal Checker: Checks for evidence of successful directory traversal in result from fuzzers.""" #FIXME: Add brief description o...
35.636364
78
0.6875
48c4f547354dece04ee2c262aa18f3b621e16f37
3,709
py
Python
Sobel Filter, Edge Detector and Corner Detector/Code/part4.py
cansuynk/ComputerVision
441e8621528ddae9d213d1633e4317d1ffb6abfa
[ "MIT" ]
null
null
null
Sobel Filter, Edge Detector and Corner Detector/Code/part4.py
cansuynk/ComputerVision
441e8621528ddae9d213d1633e4317d1ffb6abfa
[ "MIT" ]
null
null
null
Sobel Filter, Edge Detector and Corner Detector/Code/part4.py
cansuynk/ComputerVision
441e8621528ddae9d213d1633e4317d1ffb6abfa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 28 00:03:19 2019 @author: yanik """ ### merkezi pathe göre almaya çalış ### sağ olayını düzelt ### imagedeki köşeleri ekle import cv2 import pyautogui import time import numpy as np from part2 import canny_edge_detector from part3 import min_eigenval...
33.414414
191
0.583715
4a68ef51a934a3a65a722f0ce5c6d62e50f23c1e
6,565
py
Python
app/api/views/parser.py
by46/coffee
f12e1e95f12da7e322a432a6386a1147c5549c3b
[ "MIT" ]
null
null
null
app/api/views/parser.py
by46/coffee
f12e1e95f12da7e322a432a6386a1147c5549c3b
[ "MIT" ]
null
null
null
app/api/views/parser.py
by46/coffee
f12e1e95f12da7e322a432a6386a1147c5549c3b
[ "MIT" ]
null
null
null
# -:- coding:utf8 -:- """ Customer Parser """ import functools import inspect from datetime import datetime from decimal import Decimal import flask_restful.fields from flask_kits.restful import post_parameter from flask_restful import abort from flask_restful.reqparse import Argument from flask_restful.r...
27.128099
104
0.601523
5de1f2ef9cbcaf439c1d5d88a508a969e51e875b
20,320
py
Python
webbpsf/tests/test_nircam.py
kian1377/webbpsf
a3b94f60f12e89f6225dac5076a04c302a4ff58d
[ "BSD-3-Clause" ]
52
2018-09-06T16:17:22.000Z
2022-03-30T20:02:25.000Z
webbpsf/tests/test_nircam.py
kian1377/webbpsf
a3b94f60f12e89f6225dac5076a04c302a4ff58d
[ "BSD-3-Clause" ]
518
2018-08-28T15:00:08.000Z
2022-03-31T14:53:19.000Z
webbpsf/tests/test_nircam.py
kian1377/webbpsf
a3b94f60f12e89f6225dac5076a04c302a4ff58d
[ "BSD-3-Clause" ]
32
2018-07-18T21:35:33.000Z
2022-02-15T14:24:55.000Z
import sys, os import numpy as np import matplotlib.pyplot as plt import astropy.io.fits as fits import logging _log = logging.getLogger('test_webbpsf') _log.addHandler(logging.NullHandler()) from .. import webbpsf_core import poppy from .test_errorhandling import _exception_message_starts_with import pytest #----...
38.927203
188
0.666043
9eb37f5a7134c36892e29ceadaec5baed3ebf15d
324
py
Python
setup.py
mhernan88/MoreKerasCallbacks
eec2dafa71bc3060db5b2070fce9b6e027e38a3a
[ "MIT" ]
null
null
null
setup.py
mhernan88/MoreKerasCallbacks
eec2dafa71bc3060db5b2070fce9b6e027e38a3a
[ "MIT" ]
null
null
null
setup.py
mhernan88/MoreKerasCallbacks
eec2dafa71bc3060db5b2070fce9b6e027e38a3a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='more_keras_callbacks', version='0.1', packages=['callbacks'], url='https://github.com/mhernan88/more_keras_callbacks', license='MIT', author='Michael Hernandez', author_email='', description='Additional callbacks for the Keras deep learning API....
24.923077
71
0.697531
027b83dacd0bdd4d977673258c5d0817759b9548
158,796
py
Python
modules/s3/s3validators.py
nck0405/ChennaiEden
a2381e1b557927fe211ca6329ba64f85dd743fd1
[ "MIT" ]
null
null
null
modules/s3/s3validators.py
nck0405/ChennaiEden
a2381e1b557927fe211ca6329ba64f85dd743fd1
[ "MIT" ]
null
null
null
modules/s3/s3validators.py
nck0405/ChennaiEden
a2381e1b557927fe211ca6329ba64f85dd743fd1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Custom Validators @requires: U{B{I{gluon}} <http://web2py.com>} @copyright: (c) 2010-2015 Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
39.237954
138
0.436126
87a9fcf01cb10f52fbc400bac94b22963ef1d513
720
py
Python
code/plot_inflammation.py
SABS-R3/software-engineering-projects
2381d5a722c0a10ef7b922d54a73e1e1ae91b64d
[ "CC-BY-4.0" ]
1
2020-06-02T09:40:42.000Z
2020-06-02T09:40:42.000Z
code/plot_inflammation.py
SABS-R3/software-engineering-projects
2381d5a722c0a10ef7b922d54a73e1e1ae91b64d
[ "CC-BY-4.0" ]
7
2020-10-07T10:33:13.000Z
2020-10-11T21:25:03.000Z
code/plot_inflammation.py
SABS-R3/software-engineering-projects
2381d5a722c0a10ef7b922d54a73e1e1ae91b64d
[ "CC-BY-4.0" ]
1
2020-10-10T20:27:28.000Z
2020-10-10T20:27:28.000Z
import glob import numpy import matplotlib.pyplot def generate_graph(data): fig = matplotlib.pyplot.figure(figsize=(10.0, 3.0)) avg_axes = fig.add_subplot(1, 3, 1) max_axes = fig.add_subplot(1, 3, 2) min_axes = fig.add_subplot(1, 3, 3) avg_axes.set_ylabel('average') avg_axes.plot(numpy.mean(d...
22.5
58
0.672222
24d7a11ce6acc496c50f7b7be4e151c6af0a889b
3,808
py
Python
setup.py
ChenYangRu/AirtestPrefDogToPIP
ed7f25ecac0964dde7d03fb050a9b27fbca8898e
[ "MIT" ]
null
null
null
setup.py
ChenYangRu/AirtestPrefDogToPIP
ed7f25ecac0964dde7d03fb050a9b27fbca8898e
[ "MIT" ]
null
null
null
setup.py
ChenYangRu/AirtestPrefDogToPIP
ed7f25ecac0964dde7d03fb050a9b27fbca8898e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pipenv install twine --dev import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'AirtestWithPrefDog' DESCRIPTION ...
28.848485
87
0.64312
6911ea3b8a3a338e703be3a3b5b27363299d860b
17,239
py
Python
metrics_library/rosstat_utils.py
goo-goo-goo-joob/CreditRisks
c874941f3787a0c73063883a019a61672e7bef2f
[ "Apache-2.0" ]
1
2020-09-19T12:32:45.000Z
2020-09-19T12:32:45.000Z
metrics_library/rosstat_utils.py
goo-goo-goo-joob/CreditRisks
c874941f3787a0c73063883a019a61672e7bef2f
[ "Apache-2.0" ]
null
null
null
metrics_library/rosstat_utils.py
goo-goo-goo-joob/CreditRisks
c874941f3787a0c73063883a019a61672e7bef2f
[ "Apache-2.0" ]
null
null
null
import numpy as np import seaborn as sns import matplotlib.pyplot as plt COLUMNS_NAME = ['name', 'okpo', 'okopf', 'okfs', 'okved', 'inn', 'measure', 'type', ] COLUMNS_VALUE = ['11103', '11104', '11203', '11204', '11303', '11304', '11403', '11404', '11503', '11504', '11603', '11604', '11703', '11704', '11803', '11804',...
193.696629
258
0.673531
0dbe361379510f8d81f67097bacd126fb1b9f89a
23,500
py
Python
gpf/tools/workspace.py
GeoSander/gpf
266a3796cb568528e9e9f67002ad6a9787d11290
[ "Apache-2.0" ]
1
2020-05-08T08:47:00.000Z
2020-05-08T08:47:00.000Z
gpf/tools/workspace.py
GeoSander/gpf
266a3796cb568528e9e9f67002ad6a9787d11290
[ "Apache-2.0" ]
null
null
null
gpf/tools/workspace.py
GeoSander/gpf
266a3796cb568528e9e9f67002ad6a9787d11290
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Geocom Informatik AG / VertiGIS # 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...
44.676806
120
0.639106
d634f6aa50a7caac12b643345434f17f19863356
9,593
py
Python
experiments/IMGEP-HOLMES (TLP)/repetition_000000/experiment_config.py
flowersteam/holmes
e38fb8417ec56cfde8142eddd0f751e319e35d8c
[ "MIT" ]
6
2020-12-19T00:16:16.000Z
2022-01-28T14:59:21.000Z
experiments/IMGEP-HOLMES (TLP)/repetition_000000/experiment_config.py
Evolutionary-Intelligence/holmes
e38fb8417ec56cfde8142eddd0f751e319e35d8c
[ "MIT" ]
null
null
null
experiments/IMGEP-HOLMES (TLP)/repetition_000000/experiment_config.py
Evolutionary-Intelligence/holmes
e38fb8417ec56cfde8142eddd0f751e319e35d8c
[ "MIT" ]
1
2021-05-24T14:58:26.000Z
2021-05-24T14:58:26.000Z
import autodisc as ad import goalrepresent as gr def get_system_config(): system_config = ad.systems.Lenia.default_config() system_config.version = "pytorch_fft" system_config.use_gpu = True return system_config def get_system_parameters(): system_parameters = ad.systems.Lenia.default_system_param...
46.795122
324
0.718232
42c31fb8735e881bc115fe9b177b7c0000bba453
1,926
py
Python
seval/global_env.py
graymalkin/seval
8b0fc14202933b36d0b441327f51858ef97ee90a
[ "MIT" ]
null
null
null
seval/global_env.py
graymalkin/seval
8b0fc14202933b36d0b441327f51858ef97ee90a
[ "MIT" ]
null
null
null
seval/global_env.py
graymalkin/seval
8b0fc14202933b36d0b441327f51858ef97ee90a
[ "MIT" ]
null
null
null
import datetime import itertools import json import math import random import re import unicodedata from base64 import b64encode, b64decode from collections import Counter, namedtuple globalenv = { "itertools" : itertools, "abs" : abs, "all" : all, "any" : any, "ascii" : ...
25.68
90
0.456906
d05bf668a21c2c0a03c2f9ca1fd3e09bb5a0024b
16,015
py
Python
rl/rl.py
souocare/bot-portuguese-publictransports
e38cc10b56ffe381bae53ad92183c19101ae8228
[ "MIT" ]
1
2020-04-23T09:52:09.000Z
2020-04-23T09:52:09.000Z
rl/rl.py
souocare/bot-portuguese-publictransports
e38cc10b56ffe381bae53ad92183c19101ae8228
[ "MIT" ]
null
null
null
rl/rl.py
souocare/bot-portuguese-publictransports
e38cc10b56ffe381bae53ad92183c19101ae8228
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import datetime import telepot, requests, time import telepot.namedtuple from telepot.loop import MessageLoop from telepot.namedtuple import InlineKeyboardMarkup, InlineKeyboardButton import urllib.request import pandas as pd from fake_useragent imp...
58.025362
141
0.404246