hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0671defc3ce000eb89e98a0c75b3956348db13fe
351
py
Python
easy/Palindrome Number/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
8
2021-08-21T19:10:04.000Z
2022-03-11T14:30:02.000Z
easy/Palindrome Number/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
null
null
null
easy/Palindrome Number/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
1
2021-08-24T06:29:02.000Z
2021-08-24T06:29:02.000Z
# Time complexity: O(log10(x)) # Approach: Reverse the number and check if it is same as original number. class Solution: def isPalindrome(self, x: int) -> bool: if x < 0 or x == -2**31: return False dup, ans = x, 0 while dup!=0: ans = ans*10 + dup%10 dup...
29.25
74
0.527066
b06d49e3afeaebd93dd71e01256b6424b019edf0
28,587
py
Python
tests/graph/test_edges.py
enavarro51/retworkx
71e34d111623d1de2e4870a8227eddacfb3ade4c
[ "Apache-2.0" ]
null
null
null
tests/graph/test_edges.py
enavarro51/retworkx
71e34d111623d1de2e4870a8227eddacfb3ade4c
[ "Apache-2.0" ]
null
null
null
tests/graph/test_edges.py
enavarro51/retworkx
71e34d111623d1de2e4870a8227eddacfb3ade4c
[ "Apache-2.0" ]
1
2022-03-24T05:00:30.000Z
2022-03-24T05:00:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
36.003778
95
0.593382
ce53d7bae6711e12a2f19d37bbf8a44d5352f351
2,307
py
Python
apps/help/get_sensego_class.py
Chise1/my_audit_monitor
e302c339be4083cc03349096142bcff85b6947e5
[ "BSD-3-Clause" ]
null
null
null
apps/help/get_sensego_class.py
Chise1/my_audit_monitor
e302c339be4083cc03349096142bcff85b6947e5
[ "BSD-3-Clause" ]
null
null
null
apps/help/get_sensego_class.py
Chise1/my_audit_monitor
e302c339be4083cc03349096142bcff85b6947e5
[ "BSD-3-Clause" ]
null
null
null
import base64 import hashlib import hmac import time import uuid class Nonce(): def __init__(self, ak, sk, group_id, face_image): self.face_image = base64.b64encode(face_image).decode() self.id_image = None self.ak = ak self.sk = sk self.group_id = group_id self.sig...
26.825581
88
0.516255
f32a0ca2966e28e56553b6f91dc80a957d284fd4
3,083
py
Python
src/express-route-cross-connection/azext_expressroutecrossconnection/vendored_sdks/v2018_04_01/models/route_filter_rule.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/express-route-cross-connection/azext_expressroutecrossconnection/vendored_sdks/v2018_04_01/models/route_filter_rule.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/express-route-cross-connection/azext_expressroutecrossconnection/vendored_sdks/v2018_04_01/models/route_filter_rule.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 ...
40.565789
91
0.622121
ce67665764b54abbd799fd63129019bd8bb4908b
3,626
py
Python
python/cugraph/cores/k_core.py
mike-wendt/cugraph
1f0f14eba2e6253423b1a58ca38989261308df6c
[ "Apache-2.0" ]
null
null
null
python/cugraph/cores/k_core.py
mike-wendt/cugraph
1f0f14eba2e6253423b1a58ca38989261308df6c
[ "Apache-2.0" ]
1
2020-12-01T17:34:57.000Z
2020-12-01T17:34:57.000Z
python/cugraph/cores/k_core.py
mike-wendt/cugraph
1f0f14eba2e6253423b1a58ca38989261308df6c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019-2020, NVIDIA 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...
35.203883
79
0.666575
f8912addb31be75998362bb95e8c2731a63e31c3
1,926
py
Python
pylib/laserviz.py
jheidel/ece4760-lab5
c1ab262e40c22ee77e54067fe6dbfa2b7ee78c89
[ "MIT" ]
4
2016-02-05T08:04:17.000Z
2021-08-30T15:44:46.000Z
pylib/laserviz.py
jheidel/ece4760-lab5
c1ab262e40c22ee77e54067fe6dbfa2b7ee78c89
[ "MIT" ]
null
null
null
pylib/laserviz.py
jheidel/ece4760-lab5
c1ab262e40c22ee77e54067fe6dbfa2b7ee78c89
[ "MIT" ]
4
2016-02-05T08:04:18.000Z
2019-06-04T15:48:49.000Z
from gi.repository import Gtk, Gdk, Pango, PangoCairo from threading import Thread, Event from time import sleep import cairo import math class LaserViz(Gtk.DrawingArea): def __init__(self, parent): Gtk.DrawingArea.__init__(self) self.connect('draw', self._do_expose) self.parent = parent ...
31.064516
74
0.529595
ecdfde9045f2b897fb953935b704136289a7b9be
4,564
py
Python
tests/django/test_oauth2/models.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
1
2019-10-26T20:23:28.000Z
2019-10-26T20:23:28.000Z
tests/django/test_oauth2/models.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
null
null
null
tests/django/test_oauth2/models.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
2
2021-05-24T20:34:12.000Z
2022-03-26T07:46:17.000Z
import time from django.db.models import ( Model, CharField, TextField, BooleanField, IntegerField, ) from django.db.models import ForeignKey, CASCADE from django.contrib.auth.models import User from authlib.common.security import generate_token from authlib.oauth2.rfc6749 import ( ClientMixin, ...
29.830065
80
0.696976
219b112a687f116ba68a4bc87ce79038eb0d3f88
1,855
py
Python
userbot/__main__.py
Rewtio/Mikoo-Userbot
418f0017241fa65bdf7f99c84381317cb4dbeb55
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2022-03-03T01:31:48.000Z
2022-03-26T00:15:41.000Z
userbot/__main__.py
Rewtio/Mikoo-Userbot
418f0017241fa65bdf7f99c84381317cb4dbeb55
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:54:27.000Z
2022-03-17T09:17:12.000Z
userbot/__main__.py
Rewtio/Mikoo-Userbot
418f0017241fa65bdf7f99c84381317cb4dbeb55
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:41:38.000Z
2022-03-16T02:41:38.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # Copyright (C) 2021 TeamUltroid for autobot # Recode by @divarvian # FROM Mikoo-Userbot <https://github.com/divarvian/...
30.409836
82
0.745553
cceb75df205cbc3b20c39f8de66d872539db1aa8
1,487
py
Python
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0012_http_basicauth.py
luckydonald/dockbeat
806a70b38d4220a21b1de029443da25f77749c90
[ "Apache-2.0" ]
201
2016-09-14T10:35:16.000Z
2022-02-26T12:03:03.000Z
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0012_http_basicauth.py
luckydonald/dockbeat
806a70b38d4220a21b1de029443da25f77749c90
[ "Apache-2.0" ]
107
2015-09-30T12:30:49.000Z
2016-09-05T11:36:41.000Z
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0012_http_basicauth.py
luckydonald/dockbeat
806a70b38d4220a21b1de029443da25f77749c90
[ "Apache-2.0" ]
69
2016-09-20T20:42:02.000Z
2021-12-06T02:21:57.000Z
from pbtests.packetbeat import TestCase import re """ Tests for removing base64-encoded authentication information """ class Test(TestCase): def test_http_auth_headers(self): self.render_config_template( dns_ports=[], # disable dns because the pcap # cont...
33.795455
69
0.553463
d78a536e95c645a2bf4285b45d4eb9a63eed873d
2,025
py
Python
tests/components/vera/common.py
tuxbox/home-assistant
df74272ba6311d527fd07198929c80a45d9fed15
[ "Apache-2.0" ]
null
null
null
tests/components/vera/common.py
tuxbox/home-assistant
df74272ba6311d527fd07198929c80a45d9fed15
[ "Apache-2.0" ]
null
null
null
tests/components/vera/common.py
tuxbox/home-assistant
df74272ba6311d527fd07198929c80a45d9fed15
[ "Apache-2.0" ]
null
null
null
"""Common code for tests.""" from typing import Callable, NamedTuple, Tuple from mock import MagicMock from pyvera import VeraController, VeraDevice, VeraScene from homeassistant.components.vera import CONF_CONTROLLER, DOMAIN from homeassistant.core import HomeAssistant from homeassistant.setup import async_setup_co...
32.66129
78
0.688395
c290f624a4d0815e1b6a5fccf9e8ae8233c260e0
5,445
py
Python
paperPlots.py
andersdot/LyA-InvertPhase
142a3c8e11be04c82d1cf61020e8fd54536ecc18
[ "MIT" ]
null
null
null
paperPlots.py
andersdot/LyA-InvertPhase
142a3c8e11be04c82d1cf61020e8fd54536ecc18
[ "MIT" ]
null
null
null
paperPlots.py
andersdot/LyA-InvertPhase
142a3c8e11be04c82d1cf61020e8fd54536ecc18
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl #mpl.use('pdf') import matplotlib.pyplot as plt import matplotlib.patches as mpatches from astropy.io import ascii from scipy.interpolate import interp1d def lnMeanFlux(z): return np.log(0.8)*((1. + z)/3.25)**3.2 def rms(x): np.sqrt(np.sum(x**2.)/len(x)) def plotAl...
31.293103
140
0.627548
7062016ce5fb75662b8af569c072e966f8932336
2,379
py
Python
DoublyLinkedBase.py
ivaste/Algorithms
04580d7990af5cc91977b96b987871ccfd89cfaf
[ "MIT" ]
null
null
null
DoublyLinkedBase.py
ivaste/Algorithms
04580d7990af5cc91977b96b987871ccfd89cfaf
[ "MIT" ]
null
null
null
DoublyLinkedBase.py
ivaste/Algorithms
04580d7990af5cc91977b96b987871ccfd89cfaf
[ "MIT" ]
null
null
null
# Exception when attempting to access an element from an empty container. class Empty(Exception): pass class _DoublyLinkedBase: """A base class providing a doubly linked list representation.""" #-------------------------- nested _Node class -------------------------- # nested _Node class class _Node: "...
39.65
82
0.556536
cb677faf181202fa11c2772a84a0af6b5489be72
509
py
Python
src/main/resources/ee/ut/similaritydetector/python/SyntaxHighlighter.py
stargateprovider/source-code-similarity-detector
a24310bbe506d0bac240483ffbcfc0cc1bd33867
[ "MIT" ]
1
2021-11-10T22:55:37.000Z
2021-11-10T22:55:37.000Z
src/main/resources/ee/ut/similaritydetector/python/SyntaxHighlighter.py
stargateprovider/source-code-similarity-detector
a24310bbe506d0bac240483ffbcfc0cc1bd33867
[ "MIT" ]
null
null
null
src/main/resources/ee/ut/similaritydetector/python/SyntaxHighlighter.py
stargateprovider/source-code-similarity-detector
a24310bbe506d0bac240483ffbcfc0cc1bd33867
[ "MIT" ]
1
2021-09-17T08:13:09.000Z
2021-09-17T08:13:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from pygments import highlight from pygments.formatters.html import HtmlFormatter from pygments.lexers.python import PythonLexer with open(source_code_filepath, 'rb') as source_code_file: source_code = source_code_file.read() lexer = PythonLexer(encoding='utf-8') html_fo...
33.933333
88
0.772102
4d195c36aed24602945acccd3be4a7c4509bd3ad
865
py
Python
predict/bin/model.py
antkak/deeparg-keras
0f3b640249d22a0c5aea7e8ad9c9af0b667d2176
[ "MIT" ]
null
null
null
predict/bin/model.py
antkak/deeparg-keras
0f3b640249d22a0c5aea7e8ad9c9af0b667d2176
[ "MIT" ]
null
null
null
predict/bin/model.py
antkak/deeparg-keras
0f3b640249d22a0c5aea7e8ad9c9af0b667d2176
[ "MIT" ]
null
null
null
from lasagne import layers import lasagne def model(input_size, output_size): # input size: x_train.shape[1] # output size: len(set(Y) return [ (layers.InputLayer, {'shape':(None, input_size)}), (layers.DenseLayer, {'num_units':2000}), (layers...
28.833333
81
0.460116
5e96b3afa89dd2df46a5d570209378c30b6b488d
19,336
py
Python
ansys-grantami-bomanalytics-openapi/src/ansys/grantami/bomanalytics_openapi/api/impacted_substances_api.py
pyansys/grantami-bomanalytics-openapi
2879348388d6d7bbdd3b5082c5b7759b4ed28ab7
[ "MIT" ]
null
null
null
ansys-grantami-bomanalytics-openapi/src/ansys/grantami/bomanalytics_openapi/api/impacted_substances_api.py
pyansys/grantami-bomanalytics-openapi
2879348388d6d7bbdd3b5082c5b7759b4ed28ab7
[ "MIT" ]
2
2022-02-18T15:56:36.000Z
2022-02-24T11:44:59.000Z
ansys-grantami-bomanalytics-openapi/src/ansys/grantami/bomanalytics_openapi/api/impacted_substances_api.py
pyansys/grantami-bomanalytics-openapi
2879348388d6d7bbdd3b5082c5b7759b4ed28ab7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Granta.BomAnalyticsServices No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: V1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import re # noqa: F401 from . import...
56.373178
897
0.694197
7c442eb13fea04fd0fd573669a1653d110b4d8d6
8,122
py
Python
src/oci/core/models/create_boot_volume_backup_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/core/models/create_boot_volume_backup_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/core/models/create_boot_volume_backup_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.709402
245
0.658459
ec7a3ffc6f2980abf4a59f37026279654eb0197a
1,533
py
Python
calvin/actorstore/systemactors/io/LogWarning.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvin/actorstore/systemactors/io/LogWarning.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvin/actorstore/systemactors/io/LogWarning.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
112
2015-06-06T19:16:54.000Z
2020-10-19T01:27:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Ericsson AB # # 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 ...
29.480769
78
0.649706
543d00868b701549f616e258d78953402d7d63e4
552
py
Python
demo/main/urls.py
9dev/django-fb-rank
2edaf50b6e43231806c3adb9e7ae2a97ddff4006
[ "MIT" ]
2
2016-02-03T11:05:57.000Z
2020-09-29T22:41:29.000Z
demo/main/urls.py
9dev/django-fb-rank
2edaf50b6e43231806c3adb9e7ae2a97ddff4006
[ "MIT" ]
null
null
null
demo/main/urls.py
9dev/django-fb-rank
2edaf50b6e43231806c3adb9e7ae2a97ddff4006
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.views.decorators.cache import cache_page from main import views CACHE_TIME = 60 urlpatterns = [ url( r'^top$', cache_page(CACHE_TIME)(views.TopItemListView.as_view()), name='top_item_list' ), url( r'^trending$', cache_...
20.444444
69
0.619565
9d8fcb1399aa5ecdf05ac05b418b817152137b15
2,813
py
Python
tests/providers/microsoft/azure/operators/test_file_to_wasb.py
wileeam/airflow
f46be8152a4d89c57db4ca46f5b3339e4876b723
[ "Apache-2.0" ]
8
2017-04-20T16:15:44.000Z
2020-10-11T13:44:10.000Z
tests/providers/microsoft/azure/operators/test_file_to_wasb.py
devlocalca/airflow
58c3542ed25061320ce61dbe0adf451a44c738dd
[ "Apache-2.0" ]
219
2017-03-15T18:40:16.000Z
2022-02-28T22:52:43.000Z
tests/providers/microsoft/azure/operators/test_file_to_wasb.py
devlocalca/airflow
58c3542ed25061320ce61dbe0adf451a44c738dd
[ "Apache-2.0" ]
3
2016-07-14T21:51:10.000Z
2020-10-12T13:26:36.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...
32.709302
87
0.653395
e1df91205a6f1731d71728a6b49de96d44fe75f3
1,121
py
Python
brawlbracket/routes/login.py
TheLastBanana/BrawlBracket
1cad26b6499352b1b282388f4f76bfb4b2b6b4fe
[ "BSD-3-Clause" ]
null
null
null
brawlbracket/routes/login.py
TheLastBanana/BrawlBracket
1cad26b6499352b1b282388f4f76bfb4b2b6b4fe
[ "BSD-3-Clause" ]
null
null
null
brawlbracket/routes/login.py
TheLastBanana/BrawlBracket
1cad26b6499352b1b282388f4f76bfb4b2b6b4fe
[ "BSD-3-Clause" ]
null
null
null
import re from flask import session from flask import redirect from flask import url_for from flask import g from brawlbracket.app import app from brawlbracket.app import oid from brawlbracket import usermanager as um print('Registering login routes...') _steam_id_re = re.compile('steamcommunity.com/openid/id/(.*?)...
23.851064
64
0.658341
34904a224e3b611ade0ef3636caf3759f6e980b4
34,421
py
Python
gamestonk_terminal/stocks/comparison_analysis/ca_controller.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/stocks/comparison_analysis/ca_controller.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/stocks/comparison_analysis/ca_controller.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
"""Comparison Analysis Controller Module""" __docformat__ = "numpy" import argparse import random from typing import List from datetime import datetime, timedelta import yfinance as yf from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal.rich_config import console from gamestonk_terminal.paren...
36.080713
118
0.537056
4248b1a29d7c5bf8468a3c313bf32b6c81d8a454
1,518
py
Python
test/test_zhengshiban_dialog.py
tudoulei/zhengshiban
a6acd1b21605c25dc4f6d8a00b8297038d913393
[ "Unlicense" ]
null
null
null
test/test_zhengshiban_dialog.py
tudoulei/zhengshiban
a6acd1b21605c25dc4f6d8a00b8297038d913393
[ "Unlicense" ]
null
null
null
test/test_zhengshiban_dialog.py
tudoulei/zhengshiban
a6acd1b21605c25dc4f6d8a00b8297038d913393
[ "Unlicense" ]
null
null
null
# coding=utf-8 """Dialog test. .. note:: 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 2 of the License, or (at your option) any later version. """ __author__ = 'zhe...
27.107143
78
0.689723
94358f49d733be6e7472ff4216fc5818c31924da
39,693
py
Python
vyper/parser/expr.py
MichielCuijpers/vyper
54b8dc06f258eb0e1815ea222eb5f875aae443f2
[ "MIT" ]
null
null
null
vyper/parser/expr.py
MichielCuijpers/vyper
54b8dc06f258eb0e1815ea222eb5f875aae443f2
[ "MIT" ]
1
2018-07-17T08:14:44.000Z
2018-07-17T08:14:44.000Z
vyper/parser/expr.py
MichielCuijpers/vyper
54b8dc06f258eb0e1815ea222eb5f875aae443f2
[ "MIT" ]
1
2018-09-11T11:47:13.000Z
2018-09-11T11:47:13.000Z
import ast from vyper.exceptions import ( ConstancyViolationException, InvalidLiteralException, NonPayableViolationException, StructureException, TypeMismatchException, VariableDeclarationException, FunctionDeclarationException, ParserException ) from .parser_utils import LLLnode from ....
55.052705
178
0.596982
558017d9d00821f6535f0e658f66270cb992aa32
17,929
py
Python
tests/wallet/cc_wallet/test_trades.py
ChivesWorld/chives-blockchain
56734ef0719f7bf844213823bb95b0fcc642d222
[ "Apache-2.0" ]
1
2021-08-01T17:14:54.000Z
2021-08-01T17:14:54.000Z
tests/wallet/cc_wallet/test_trades.py
ChivesWorld/chives-blockchain
56734ef0719f7bf844213823bb95b0fcc642d222
[ "Apache-2.0" ]
null
null
null
tests/wallet/cc_wallet/test_trades.py
ChivesWorld/chives-blockchain
56734ef0719f7bf844213823bb95b0fcc642d222
[ "Apache-2.0" ]
null
null
null
import asyncio from pathlib import Path from secrets import token_bytes import pytest from chives.simulator.simulator_protocol import FarmNewBlockProtocol from chives.types.peer_info import PeerInfo from chives.util.ints import uint16, uint64 from chives.wallet.cc_wallet.cc_wallet import CCWallet from chives.wallet.t...
40.020089
117
0.713258
6700d0a71356f861641e3d6af88928869bdf61b4
10,649
pyw
Python
source/nvda.pyw
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
source/nvda.pyw
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
source/nvda.pyw
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: UTF-8 -*- #nvda.pyw #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2019 NV Access Limited, Aleksey Sadovoy, Babbage B.V., Joseph Lee, Łukasz Golonka #This file is covered by the GNU General Public License. #See the file COPYING for more details. """The NVDA launcher. It can handle some co...
46.70614
273
0.78289
6d934ad2474618683f2401c3b9d4b6c24abda169
324
py
Python
daily_coding_problem/931.py
mhetrerajat/ds-challenge
3208df5c29612b0dfe60c1c082da1f31ad220b49
[ "MIT" ]
null
null
null
daily_coding_problem/931.py
mhetrerajat/ds-challenge
3208df5c29612b0dfe60c1c082da1f31ad220b49
[ "MIT" ]
1
2021-05-18T07:30:16.000Z
2021-05-18T07:30:16.000Z
daily_coding_problem/931.py
mhetrerajat/ds-challenge
3208df5c29612b0dfe60c1c082da1f31ad220b49
[ "MIT" ]
null
null
null
from typing import List def get_gcd(arr: List[int]) -> int: def gcd(a, b): while b: a, b = b, a % b return a a = arr[0] for b in arr[1:]: a = gcd(a, b) return a if __name__ == "__main__": assert get_gcd([42, 56, 14]) == 14 assert get_gcd([2, 4, 6, 8]) =...
16.2
38
0.475309
ca509d87fe9940938fcc93383f847d5a401b56bc
6,289
py
Python
py3status/modules/diskdata.py
laxd/py3status
749e31419e65b5133b9c6b4a4ef4a4904d5cfe91
[ "BSD-3-Clause" ]
null
null
null
py3status/modules/diskdata.py
laxd/py3status
749e31419e65b5133b9c6b4a4ef4a4904d5cfe91
[ "BSD-3-Clause" ]
null
null
null
py3status/modules/diskdata.py
laxd/py3status
749e31419e65b5133b9c6b4a4ef4a4904d5cfe91
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Display advanced disk usage information Configuration parameters: cache_timeout: how often we refresh this module in seconds. (default 10) disk: disk or partition whose stat to check. Set to None to get global stats. (default None) format: format of the output. ...
34.745856
95
0.57529
a2748af3cd8fc7e0a27b104009a95a46335189ba
28,004
py
Python
rich/pretty.py
msaroufim/rich
51165f4b21e2b3af896eca750ae6a080fc4d7cf5
[ "MIT" ]
7
2021-09-29T09:46:36.000Z
2022-03-24T08:30:41.000Z
rich/pretty.py
msaroufim/rich
51165f4b21e2b3af896eca750ae6a080fc4d7cf5
[ "MIT" ]
23
2021-07-05T01:25:33.000Z
2022-03-28T01:30:36.000Z
rich/pretty.py
ewels/rich
03b2c71193bc62a6e25bfff48fe7ea218c2cb57c
[ "MIT" ]
1
2021-09-29T22:34:05.000Z
2021-09-29T22:34:05.000Z
import builtins import os import sys from array import array from collections import Counter, defaultdict, deque, UserDict, UserList from dataclasses import dataclass, fields, is_dataclass from inspect import isclass from itertools import islice from typing import ( DefaultDict, TYPE_CHECKING, Any, Call...
35.493029
134
0.553064
d415690c5f2862e432e10f9c3eb77f4ae650a1ab
13,435
py
Python
pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/kernel/manager.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/kernel/manager.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/kernel/manager.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
"""Base class to manage a running kernel """ #----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #------...
34.715762
83
0.553554
f68165f0308efe3ba2b1ed8a26cd1d16e9461a95
7,123
py
Python
airflow/utils/log/gcs_task_handler.py
snjypl/incubator-airflow
a3c5783f51763901ffba399aaad6dd485b4eda14
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-05-09T08:59:41.000Z
2019-05-09T08:59:41.000Z
airflow/utils/log/gcs_task_handler.py
snjypl/incubator-airflow
a3c5783f51763901ffba399aaad6dd485b4eda14
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/utils/log/gcs_task_handler.py
snjypl/incubator-airflow
a3c5783f51763901ffba399aaad6dd485b4eda14
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
40.016854
84
0.633581
8ec015b75a3a319f98ba4312f332f43671bb2ed3
1,690
py
Python
Sequential LDA Runs/Volatility_SeqLDA.py
mehasadasivam/NLP
174ea8c4cac1db53613bd7625962b0c087d0004c
[ "MIT" ]
null
null
null
Sequential LDA Runs/Volatility_SeqLDA.py
mehasadasivam/NLP
174ea8c4cac1db53613bd7625962b0c087d0004c
[ "MIT" ]
null
null
null
Sequential LDA Runs/Volatility_SeqLDA.py
mehasadasivam/NLP
174ea8c4cac1db53613bd7625962b0c087d0004c
[ "MIT" ]
null
null
null
#!/apps/anaconda3/bin/python from config import * import gensim import glob import os import re import numpy as np import pandas as pd import time import json import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) from gensim.models import ldaseqmodel def main()...
30.727273
106
0.604142
d51ac1857679b14aad7f6736ac1a50d07b4be515
3,910
py
Python
test/mitmproxy/tutils.py
ning1022/mitmproxy
66267ad2768686f6af0ec20dfa89d1a281fc7f83
[ "MIT" ]
1
2019-08-20T11:54:06.000Z
2019-08-20T11:54:06.000Z
test/mitmproxy/tutils.py
ning1022/mitmproxy
66267ad2768686f6af0ec20dfa89d1a281fc7f83
[ "MIT" ]
null
null
null
test/mitmproxy/tutils.py
ning1022/mitmproxy
66267ad2768686f6af0ec20dfa89d1a281fc7f83
[ "MIT" ]
null
null
null
import os import shutil import tempfile import argparse import sys from six.moves import cStringIO as StringIO from contextlib import contextmanager from unittest.case import SkipTest import netlib.tutils from mitmproxy import utils, controller from mitmproxy.models import ( ClientConnection, ServerConnection, Er...
23.413174
82
0.659335
c879813447387dbdb13e6d2c5edd82685a42dfc7
1,665
py
Python
homeassistant/components/nws/const.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/nws/const.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/nws/const.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Constants for National Weather Service Integration.""" DOMAIN = "nws" CONF_STATION = "station" ATTRIBUTION = "Data from National Weather Service/NOAA" ATTR_FORECAST_DETAILED_DESCRIPTION = "detailed_description" ATTR_FORECAST_PRECIP_PROB = "precipitation_probability" ATTR_FORECAST_DAYTIME = "daytime" CONDITION_CL...
26.428571
71
0.603003
9f6260fce4299eff6c005a82cf6fa289376665e6
45,039
py
Python
hvac/api/secrets_engines/transit.py
lenaing/hvac
7911a01a9d1774cba61d8b3d654893fa05e80479
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/transit.py
lenaing/hvac
7911a01a9d1774cba61d8b3d654893fa05e80479
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/transit.py
lenaing/hvac
7911a01a9d1774cba61d8b3d654893fa05e80479
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Transit methods module.""" from hvac import exceptions, utils from hvac.api.vault_api_base import VaultApiBase from hvac.constants import transit as transit_constants DEFAULT_MOUNT_POINT = 'transit' class Transit(VaultApiBase): """Transit Secrets Engine (API). ...
50.662542
141
0.648349
29b44c6fda350fc8267f6017e744b23501eec88c
278
py
Python
bindings/python-boost/test-service-server.py
DanialLiu/bluezero
3747a57b965e63243b1777d8d993dbc032ebbadd
[ "Apache-2.0" ]
13
2020-02-13T16:20:04.000Z
2022-01-20T10:00:40.000Z
bindings/python-boost/test-service-server.py
DanialLiu/bluezero
3747a57b965e63243b1777d8d993dbc032ebbadd
[ "Apache-2.0" ]
3
2020-01-26T17:48:17.000Z
2021-09-28T06:54:44.000Z
bindings/python-boost/test-service-server.py
DanialLiu/bluezero
3747a57b965e63243b1777d8d993dbc032ebbadd
[ "Apache-2.0" ]
2
2020-10-20T01:32:11.000Z
2021-06-04T10:31:26.000Z
import pyb0 as b0 def callback(req): print('Received request "%s"' % req) rep = 'hi' print('Sending reply "%s"...' % rep) return rep node = b0.Node('python-service-server') srv = b0.ServiceServer(node, 'control', callback) node.init() node.spin() node.cleanup()
23.166667
49
0.647482
43a5b92d5054b3fd65b7361b36d77932292e665d
2,431
py
Python
examples/customization/tst-introspect.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
123
2015-01-12T06:43:22.000Z
2022-03-20T18:06:46.000Z
examples/customization/tst-introspect.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
103
2015-01-08T18:35:57.000Z
2022-01-18T01:44:14.000Z
examples/customization/tst-introspect.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
54
2015-02-15T17:12:00.000Z
2022-03-07T23:02:32.000Z
import pyxb import introspect as custom import raw.custom as raw_custom import unittest class TestComplex (unittest.TestCase): def setUp (self): xmls = open('test.xml').read() self.instance = custom.CreateFromDocument(xmls) def testRawSubclassHierarchy (self): self.assertTrue(issubcl...
39.209677
70
0.703414
7704d290d140019f8ef06f81bfed7ea79311cf6f
6,586
py
Python
invoices/migrations/0001_initial.py
callmewind/billdev
fcd53cb98284677fb619abeafb17a88035aabfd6
[ "MIT" ]
null
null
null
invoices/migrations/0001_initial.py
callmewind/billdev
fcd53cb98284677fb619abeafb17a88035aabfd6
[ "MIT" ]
null
null
null
invoices/migrations/0001_initial.py
callmewind/billdev
fcd53cb98284677fb619abeafb17a88035aabfd6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-07-05 10:20 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields import localflavor.generic.models class Migration(migrations.Migration): initial = True dependencies = [ ...
64.568627
171
0.631187
144cc17f6632fc77ee57c48740622d3a53f403f2
1,885
py
Python
setup.py
snavalm/torchio
3e07b78da16d6db4da7193325b3f9cb31fc0911a
[ "Apache-2.0" ]
1
2021-07-08T09:24:00.000Z
2021-07-08T09:24:00.000Z
setup.py
snavalm/torchio
3e07b78da16d6db4da7193325b3f9cb31fc0911a
[ "Apache-2.0" ]
5
2020-02-07T15:29:56.000Z
2021-01-06T14:46:32.000Z
setup.py
snavalm/torchio
3e07b78da16d6db4da7193325b3f9cb31fc0911a
[ "Apache-2.0" ]
4
2020-01-13T16:03:40.000Z
2022-01-04T10:22:00.000Z
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.md', encoding='utf8') as readme_file: readme = readme_file.read() with open('HISTORY.rst', encoding='utf8') as history_file: history = history_file.read() requirements = [ 'Deprecated', 'Simp...
27.318841
77
0.614324
e5c47ee2b6b1f62c0c9e84b13d9f012167bb988d
1,061
py
Python
tfx/experimental/templates/taxi/preprocessing_test.py
BioGeek/tfx
3d30ae8a1e2f33367c592ca86562cf555193cfb6
[ "Apache-2.0" ]
null
null
null
tfx/experimental/templates/taxi/preprocessing_test.py
BioGeek/tfx
3d30ae8a1e2f33367c592ca86562cf555193cfb6
[ "Apache-2.0" ]
null
null
null
tfx/experimental/templates/taxi/preprocessing_test.py
BioGeek/tfx
3d30ae8a1e2f33367c592ca86562cf555193cfb6
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2020 Google LLC. 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 req...
32.151515
79
0.781338
2708cedcc8b3deeb13a14cbf4c3f108f5523769f
876
py
Python
dsb3_networks/nodule_segmentation/LIDC-annotations_2_nodule-seg_annotations/LIDC_preprocessing/1_get_xml_paths/write_xml_path_lst.py
NDKoehler/DataScienceBowl2017_7th_place
638542c3cde5af45bf34d0391695ab0e54ce78b8
[ "MIT" ]
8
2017-05-19T10:30:20.000Z
2022-03-12T05:17:19.000Z
dsb3a_assets/LIDC-annotations_2_nodule-seg_annotations/LIDC_preprocessing/1_get_xml_paths/write_xml_path_lst.py
NDKoehler/DataScienceBowl2017_7th_place
638542c3cde5af45bf34d0391695ab0e54ce78b8
[ "MIT" ]
5
2017-07-03T10:55:29.000Z
2018-09-10T18:05:14.000Z
dsb3a_assets/LIDC-annotations_2_nodule-seg_annotations/LIDC_preprocessing/1_get_xml_paths/write_xml_path_lst.py
NDKoehler/DataScienceBowl2017_7th_place
638542c3cde5af45bf34d0391695ab0e54ce78b8
[ "MIT" ]
6
2017-05-12T00:58:05.000Z
2019-01-22T05:08:09.000Z
import os,sys import numpy as np doi_root_path = "/media/philipp/qnap/LIDC/download/DOI/" lidc_idri_folders = [] study_instances = [] series_instances = [] xml_path_lst = [] for doi_folder in os.listdir(doi_root_path): lidc_idri_folder = doi_root_path+doi_folder+"/" lidc_idri_folders += [lidc_idri_folder] for ...
31.285714
88
0.731735
3171200d6176145b9bd402e9637a3791e7ac4f5f
9,802
bzl
Python
kythe/go/indexer/testdata/go_indexer_test.bzl
rob-opsi/kythe
b3377d4b28566eb36c075187d57046e6aed2ff11
[ "Apache-2.0" ]
1
2019-01-20T19:57:57.000Z
2019-01-20T19:57:57.000Z
kythe/go/indexer/testdata/go_indexer_test.bzl
DalavanCloud/kythe
b3377d4b28566eb36c075187d57046e6aed2ff11
[ "Apache-2.0" ]
1
2022-02-27T23:39:06.000Z
2022-02-27T23:39:06.000Z
kythe/go/indexer/testdata/go_indexer_test.bzl
DalavanCloud/kythe
b3377d4b28566eb36c075187d57046e6aed2ff11
[ "Apache-2.0" ]
2
2019-01-20T19:57:48.000Z
2021-05-11T00:57:45.000Z
# # Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.517685
79
0.617833
06879171fdcd6c4b49ee4d8001681451b5fa8947
756
py
Python
dp4py_sanic/api/request/__init__.py
ONSdigital/dp4py-sanic
5e6f77e7eb326bb5b355425f635519295a9e146f
[ "MIT" ]
null
null
null
dp4py_sanic/api/request/__init__.py
ONSdigital/dp4py-sanic
5e6f77e7eb326bb5b355425f635519295a9e146f
[ "MIT" ]
null
null
null
dp4py_sanic/api/request/__init__.py
ONSdigital/dp4py-sanic
5e6f77e7eb326bb5b355425f635519295a9e146f
[ "MIT" ]
2
2021-04-11T08:11:27.000Z
2022-01-04T19:04:11.000Z
""" Wraps the Sanic request and adds request context """ from sanic import request from uuid import uuid4 class Request(request.Request): request_id_header = "X-Request-Id" def __init__(self, *args, **kwargs): """ Initialise the request object with a unique ID (either supplied as a header or ...
27
97
0.624339
eff997ba4e17833e1a47da842eb3c30a9b295c08
4,436
py
Python
etlt/helper/Type2JoinHelper.py
SetBased/py-etlt
542e4d1dc974dad60f4e338a334c932a40b45ee2
[ "MIT" ]
4
2016-06-21T21:13:54.000Z
2017-11-30T21:14:14.000Z
etlt/helper/Type2JoinHelper.py
PyETLT/etlt
542e4d1dc974dad60f4e338a334c932a40b45ee2
[ "MIT" ]
null
null
null
etlt/helper/Type2JoinHelper.py
PyETLT/etlt
542e4d1dc974dad60f4e338a334c932a40b45ee2
[ "MIT" ]
4
2016-06-21T21:02:24.000Z
2019-04-24T14:59:36.000Z
from etlt.helper.Type2Helper import Type2Helper class Type2JoinHelper(Type2Helper): """ A helper class for joining data sets with date intervals. """ # ------------------------------------------------------------------------------------------------------------------ @staticmethod def _interse...
41.849057
120
0.495041
bb43cd8577e44bcecb4e5b57918445f538fdf754
2,696
py
Python
src/aoc2015/day14.py
emauton/aoc2015
f321571b623a0e7acaa173be57506e64bd32765f
[ "MIT" ]
null
null
null
src/aoc2015/day14.py
emauton/aoc2015
f321571b623a0e7acaa173be57506e64bd32765f
[ "MIT" ]
null
null
null
src/aoc2015/day14.py
emauton/aoc2015
f321571b623a0e7acaa173be57506e64bd32765f
[ "MIT" ]
null
null
null
'''Advent of Code 2015 day 14: Reindeer Olympics https://adventofcode.com/2015/day/14''' import re class Reindeer(object): def __init__(self, name, speed, duration, rest): self.name = name self.speed = speed self.duration = duration self.rest = rest self.distance = 0 ...
27.793814
78
0.567507
cf6f865cd1876c9b81645ca3b6aa047ec5afc97a
1,511
py
Python
tests/mapping/test_map.py
davidbailey/dpd
29bce937e34afa2161788a5c4a911e590a388229
[ "MIT" ]
6
2020-08-13T22:21:25.000Z
2021-09-15T19:12:51.000Z
tests/mapping/test_map.py
davidbailey/dpd
29bce937e34afa2161788a5c4a911e590a388229
[ "MIT" ]
3
2018-01-25T09:11:01.000Z
2020-12-22T17:31:24.000Z
tests/mapping/test_map.py
davidbailey/dpd
29bce937e34afa2161788a5c4a911e590a388229
[ "MIT" ]
null
null
null
from itertools import combinations import unittest from astropy import units from shapely.geometry import Point, LineString from dpd.mapping import Intersection, Map, Link def build_test_map(): map_ = Map() for x in range(2): for y in range(2): map_.intersections[str([x, y])] = Intersect...
29.057692
84
0.622766
8ddf3022c68a9546b1221ebace078525953a74e0
5,320
py
Python
boto/dynamodb2/results.py
smartdec/boto
8ee4b1f45be3c9e0ece49079b00cd09bf0930b1e
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
boto/dynamodb2/results.py
premanandchandrasekar/boto
a00851636307f971b03e72e1ce812cd3242816f3
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
boto/dynamodb2/results.py
premanandchandrasekar/boto
a00851636307f971b03e72e1ce812cd3242816f3
[ "MIT" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
class ResultSet(object): """ A class used to lazily handle page-to-page navigation through a set of results. It presents a transparent iterator interface, so that all the user has to do is use it in a typical ``for`` loop (or list comprehension, etc.) to fetch results, even if they weren't pres...
31.47929
79
0.583271
69496bee973f892d7e8b80ba3f379b525271bb87
1,203
py
Python
cogs/create.py
ParthJinturkar/TeachersPetBot
b157b350574ad3e8db93c3e81710edb83de9c862
[ "MIT" ]
null
null
null
cogs/create.py
ParthJinturkar/TeachersPetBot
b157b350574ad3e8db93c3e81710edb83de9c862
[ "MIT" ]
32
2021-11-12T00:11:51.000Z
2021-12-03T22:31:43.000Z
cogs/create.py
ParthJinturkar/TeachersPetBot
b157b350574ad3e8db93c3e81710edb83de9c862
[ "MIT" ]
2
2021-11-27T01:21:17.000Z
2022-02-01T01:08:22.000Z
import csv import os import discord from discord.ext import commands # ---------------------------------------------------------------------------------------------- # Returns the ping of the bot, useful for testing bot lag and as a simple functionality command # ------------------------------------------------------...
27.976744
96
0.499584
18abd8b86c05ba265dd35915d881d3e9a9a7bb1f
3,457
py
Python
lcd/i2c_pcf8574_interface.py
DoctorShields/CircuitPython_LCD
d8faaf042df2e1bf43dae91365abae2cfd54f504
[ "MIT" ]
null
null
null
lcd/i2c_pcf8574_interface.py
DoctorShields/CircuitPython_LCD
d8faaf042df2e1bf43dae91365abae2cfd54f504
[ "MIT" ]
null
null
null
lcd/i2c_pcf8574_interface.py
DoctorShields/CircuitPython_LCD
d8faaf042df2e1bf43dae91365abae2cfd54f504
[ "MIT" ]
null
null
null
# Copyright (C) 2017 Dan Halbert # Adapted from https://github.com/dbrgn/RPLCD, Copyright (C) 2013-2016 Danilo Bargen # 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, inc...
36.776596
85
0.685276
7ccc3c868ed44c825efa968ae34baaae94b79b6c
446
py
Python
backend/l11n/admin.py
tughi/localizappion
5c963dc8f7262cdb411cfbcc29ab4fac8fffc6c8
[ "BSD-3-Clause" ]
null
null
null
backend/l11n/admin.py
tughi/localizappion
5c963dc8f7262cdb411cfbcc29ab4fac8fffc6c8
[ "BSD-3-Clause" ]
1
2018-05-15T19:27:51.000Z
2018-05-15T19:29:30.000Z
backend/l11n/admin.py
tughi/localizappion
5c963dc8f7262cdb411cfbcc29ab4fac8fffc6c8
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Project from .models import Session from .models import String from .models import Suggestion from .models import Translation from .models import Translator from .models import Vote admin.site.register(Project) admin.site.register(Session) admin.site.register(Strin...
24.777778
32
0.827354
f95e9432bd866e9fec1f3bf345925c00ea29c1ab
17,297
py
Python
neutron/cmd/sanity/checks.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
null
null
null
neutron/cmd/sanity/checks.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
neutron/cmd/sanity/checks.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2014 OpenStack Foundation. # 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...
35.372188
79
0.637683
15aa592786bd5bef2e7c5037a2b080c153f469d2
2,700
py
Python
ln-tldr/main.py
kennyzha/light-novel-tldr
b68f7034f8613855a11fcaf18fb0474a170f4f50
[ "MIT" ]
null
null
null
ln-tldr/main.py
kennyzha/light-novel-tldr
b68f7034f8613855a11fcaf18fb0474a170f4f50
[ "MIT" ]
null
null
null
ln-tldr/main.py
kennyzha/light-novel-tldr
b68f7034f8613855a11fcaf18fb0474a170f4f50
[ "MIT" ]
null
null
null
import praw import re import requests import json import os from urllib import parse import psycopg2 ## Connecting to reddit reddit = praw.Reddit(client_id=os.environ['CLIENT_ID'], client_secret=os.environ['CLIENT_SECRET'], password=os.environ['REDDIT_PASSWORD'], ...
30.681818
109
0.682593
bf90e0af5667e19e4c2aec899e8cbd7e08416e99
981
py
Python
src/napari_error_dialogs/_tests/test_reader.py
dpshelio/napari-error-dialogs
29a6bbfa40ed445c9b60cd9752f8d62ecfab35aa
[ "BSD-3-Clause" ]
null
null
null
src/napari_error_dialogs/_tests/test_reader.py
dpshelio/napari-error-dialogs
29a6bbfa40ed445c9b60cd9752f8d62ecfab35aa
[ "BSD-3-Clause" ]
null
null
null
src/napari_error_dialogs/_tests/test_reader.py
dpshelio/napari-error-dialogs
29a6bbfa40ed445c9b60cd9752f8d62ecfab35aa
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from napari_error_dialogs import napari_get_reader # tmp_path is a pytest fixture def test_reader(tmp_path): """An example of how you might test your plugin.""" # write some fake data using your supported file format my_test_file = str(tmp_path / "myfile.npy") original_data = np.ra...
31.645161
76
0.740061
1bd9a2c53ba7c40703c395c02c2c6806fe806d15
2,098
py
Python
smartnlp/topic/ida_topic.py
msgi/nlp-tour
ffed8c32da69c2427c92a7043f47bfc91e7feb64
[ "Apache-2.0" ]
1,559
2019-05-27T03:43:29.000Z
2022-03-31T05:35:04.000Z
smartnlp/topic/ida_topic.py
msgi/nlp-tour
ffed8c32da69c2427c92a7043f47bfc91e7feb64
[ "Apache-2.0" ]
5
2019-07-10T11:55:05.000Z
2020-05-08T12:01:31.000Z
smartnlp/topic/ida_topic.py
msgi/nlp-tour
ffed8c32da69c2427c92a7043f47bfc91e7feb64
[ "Apache-2.0" ]
403
2019-06-14T03:36:17.000Z
2022-03-30T08:09:08.000Z
import pickle from gensim.corpora import Dictionary from gensim.models import LdaModel, TfidfModel import jieba import os class LdaTopicModel(object): def __init__(self, model_path, config_path, train=False, file_path=None): self.model_path = model_path...
29.549296
67
0.601049
05b7403d2d2cd86f12fb368ca5e978943b45697e
277
py
Python
setup.py
OEP/bigdir
12b86a5e39a03bfd99bf7830171c31ef0392fb21
[ "MIT" ]
null
null
null
setup.py
OEP/bigdir
12b86a5e39a03bfd99bf7830171c31ef0392fb21
[ "MIT" ]
null
null
null
setup.py
OEP/bigdir
12b86a5e39a03bfd99bf7830171c31ef0392fb21
[ "MIT" ]
null
null
null
from setuptools import setup, Extension ext_modules = [ Extension('_bigdir', sources=['_bigdir.c']), ] setup( name='bigdir', version='0.1.0', description='bigdir lets you read really big directories', py_modules=['bigdir'], ext_modules=ext_modules, )
19.785714
62
0.67509
2d3d4fd2583f933e2374e518af04fd8a06e6cade
41
py
Python
tator_online/__init__.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
50
2019-09-18T14:32:18.000Z
2022-03-31T16:26:07.000Z
tator_online/__init__.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
566
2019-09-18T16:33:40.000Z
2022-03-31T20:01:38.000Z
tator_online/__init__.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
19
2019-09-21T20:08:12.000Z
2022-03-17T14:53:11.000Z
from .middleware import StatsdMiddleware
20.5
40
0.878049
eb23dbf6291d212c98aec0d467476d9e59851a85
8,453
py
Python
voltha/adapters/microsemi_olt/PAS5211_constants.py
sathishms77/test
bf8df6fc16c41720c7d99ed1ff17a64b543e9672
[ "Apache-2.0" ]
72
2017-01-18T02:36:34.000Z
2022-02-12T15:28:30.000Z
voltha/adapters/microsemi_olt/PAS5211_constants.py
sathishms77/test
bf8df6fc16c41720c7d99ed1ff17a64b543e9672
[ "Apache-2.0" ]
11
2017-03-03T17:56:09.000Z
2022-02-11T03:38:03.000Z
voltha/adapters/microsemi_olt/PAS5211_constants.py
sathishms77/test
bf8df6fc16c41720c7d99ed1ff17a64b543e9672
[ "Apache-2.0" ]
120
2017-02-02T23:26:11.000Z
2022-03-13T05:30:23.000Z
# # Copyright 2017 the original author or authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.355987
90
0.827399
8ec68f00430ad6d29d8526aae66a01897e6071ef
3,877
py
Python
server/CloudantDB.py
AnsgarSchmidt/sensomatic
f7a0040df0a7ad278cdb2986982b60747763e119
[ "Apache-2.0" ]
4
2017-02-15T17:33:47.000Z
2021-03-18T19:01:44.000Z
server/CloudantDB.py
AnsgarSchmidt/sensomatic
f7a0040df0a7ad278cdb2986982b60747763e119
[ "Apache-2.0" ]
1
2015-07-05T09:27:45.000Z
2016-10-30T17:37:38.000Z
server/CloudantDB.py
AnsgarSchmidt/sensomatic
f7a0040df0a7ad278cdb2986982b60747763e119
[ "Apache-2.0" ]
3
2016-08-15T19:06:50.000Z
2020-10-06T13:28:34.000Z
import os import time import redis import threading import ConfigParser from cloudant.client import Cloudant class CloudantDB(threading.Thread): def _readConfig(self): update = False if not os.path.isdir(self._homeDir): print "Creating homeDir" os.makedirs(self._homeDir...
32.579832
174
0.542946
005ddfde1c6c58dd848360517277f3da64cfbde5
1,650
py
Python
cohesity_management_sdk/models/ssl_verification.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/ssl_verification.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/ssl_verification.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class SslVerification(object): """Implementation of the 'SslVerification' model. Specifies information about SSL verification when registering certain sources. Attributes: ca_certificate (string): Contains the contents of CA cert/cert c...
27.5
81
0.629697
2121e152d4dc122535e3396b64787e0da5277147
659
py
Python
salemali/models.py
mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company
da071bd199a92d571228a1d823a7fa1f52275604
[ "MIT" ]
30
2019-08-18T14:57:39.000Z
2022-03-15T22:09:09.000Z
salemali/models.py
mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company
da071bd199a92d571228a1d823a7fa1f52275604
[ "MIT" ]
3
2021-03-19T00:46:32.000Z
2021-09-22T01:29:08.000Z
salemali/models.py
mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company
da071bd199a92d571228a1d823a7fa1f52275604
[ "MIT" ]
7
2019-08-20T14:04:28.000Z
2021-06-29T06:43:08.000Z
from django.db import models # Create your models here. # سال مالی class Salemali(models.Model): sal = models.IntegerField(verbose_name="سال") arzeshe_afzude = models.IntegerField(verbose_name="درصد ارزش افزوده", default=0) nerkhe_tafkik = models.IntegerField(verbose_name='نرخ تفکیک معامله ها ', ) # ...
32.95
114
0.694992
0185df70f21d9c4c1d308cb2a5a598cada91a759
5,275
py
Python
broadface/loss.py
kakaoenterprise/BroadFace
e6a021dc2993ef94fe58a4f5a4a11a1fa19d289b
[ "Apache-2.0" ]
20
2021-02-16T09:04:35.000Z
2021-11-05T12:01:12.000Z
broadface/loss.py
kakaoenterprise/BroadFace
e6a021dc2993ef94fe58a4f5a4a11a1fa19d289b
[ "Apache-2.0" ]
3
2021-05-19T17:08:58.000Z
2021-07-11T21:51:04.000Z
broadface/loss.py
kakaoenterprise/BroadFace
e6a021dc2993ef94fe58a4f5a4a11a1fa19d289b
[ "Apache-2.0" ]
2
2021-02-16T09:04:39.000Z
2021-08-25T10:01:59.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F class ArcFace(nn.Module): def __init__(self, in_features, out_features, scale_factor=64.0, margin=0.50): super(ArcFace, self).__init__() self.in_features = in_features self.out_features = out_features se...
33.814103
105
0.620664
ae8fed8f3e86351054f921f027a31bb5c7528fd0
912
py
Python
dbaas/physical/admin/replication_topology.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
303
2015-01-08T10:35:54.000Z
2022-02-28T08:54:06.000Z
dbaas/physical/admin/replication_topology.py
nouraellm/database-as-a-service
5e655c9347bea991b7218a01549f5e44f161d7be
[ "BSD-3-Clause" ]
124
2015-01-14T12:56:15.000Z
2022-03-22T20:45:11.000Z
dbaas/physical/admin/replication_topology.py
nouraellm/database-as-a-service
5e655c9347bea991b7218a01549f5e44f161d7be
[ "BSD-3-Clause" ]
110
2015-01-02T11:59:48.000Z
2022-02-28T08:54:06.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.contrib import admin from ..forms.replication_topology import ReplicationTopologyForm from ..models import TopologyParameterCustomValue class ParamCustomValueInline(admin.TabularInline): model = TopologyParameterCustomVal...
32.571429
80
0.757675
fd997d087677f50868070b3cde675da2267006b5
1,225
py
Python
fdi/migrations/0029_auto_20180214_1451.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
5
2016-09-12T12:52:45.000Z
2020-03-24T14:43:13.000Z
fdi/migrations/0029_auto_20180214_1451.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
435
2016-10-18T12:51:39.000Z
2021-06-09T17:22:08.000Z
fdi/migrations/0029_auto_20180214_1451.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
2
2016-12-06T10:37:21.000Z
2017-02-22T17:27:43.000Z
# Generated by Django 2.0.2 on 2018-02-14 14:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('fdi', '0028_auto_20180213_1050'), ] operations = [ migrations.CreateModel( name='OverseasRegion...
35
125
0.600816
74ae2f974420ea3cbbb1b46cd8d611490cf4dcc3
1,568
py
Python
test_machine.py
raspihats/pipnp
2ffc2f083d1301966066d34595a9e3d0391e9c65
[ "MIT" ]
null
null
null
test_machine.py
raspihats/pipnp
2ffc2f083d1301966066d34595a9e3d0391e9c65
[ "MIT" ]
null
null
null
test_machine.py
raspihats/pipnp
2ffc2f083d1301966066d34595a9e3d0391e9c65
[ "MIT" ]
null
null
null
from app.machine import machine import logging logging.basicConfig( format='%(asctime)s %(levelname)s %(message)s', level=logging.DEBUG, datefmt='%m/%d/%Y %I:%M:%S %p' ) logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def main(): # offset = {'x': 95.8, 'y': 23.5} ...
29.584906
81
0.63648
8feb4a1656f5250e2e07cab701b6ce47540cee34
3,277
py
Python
setup.py
twitty-onica/runway
e292c7b770fa639d3ed834cf041a7d7641f7f160
[ "Apache-2.0" ]
null
null
null
setup.py
twitty-onica/runway
e292c7b770fa639d3ed834cf041a7d7641f7f160
[ "Apache-2.0" ]
null
null
null
setup.py
twitty-onica/runway
e292c7b770fa639d3ed834cf041a7d7641f7f160
[ "Apache-2.0" ]
null
null
null
"""Packaging settings.""" from codecs import open as codecs_open from os.path import abspath, dirname, join from setuptools import find_packages, setup THIS_DIR = abspath(dirname(__file__)) def local_scheme(version): # pylint: disable=unused-argument # type: (str) -> str """Skip the local version (eg. +xyz...
33.783505
89
0.643271
9d14a559b6674731323c0963af1326ea216bed45
6,227
py
Python
LunarLander/Listing_24-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
LunarLander/Listing_24-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
LunarLander/Listing_24-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
# Listing_24-1.py # Copyright Warren & Csrter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Lunar Lander # simulation game of landing a spacecraft # initialize - get everything ready import pygame, sys pygame.init() scr...
37.969512
83
0.591617
ebb123de6b961e067de53c7e7fa15171ad8ab766
9,995
py
Python
segment_trainer.py
FeiLyu/SR-TTT
802795fa63bd536ab1ff82e94f149e3291adbb7f
[ "Apache-2.0" ]
null
null
null
segment_trainer.py
FeiLyu/SR-TTT
802795fa63bd536ab1ff82e94f149e3291adbb7f
[ "Apache-2.0" ]
null
null
null
segment_trainer.py
FeiLyu/SR-TTT
802795fa63bd536ab1ff82e94f149e3291adbb7f
[ "Apache-2.0" ]
null
null
null
import itertools import os import time import datetime import numpy as np import cv2 import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader from torch.nn import functional as F #import network import segment_network #import resnet_version import segment_train_da...
36.213768
195
0.597099
555f293be54b50383bc03d41952b3a353b46aa54
770
py
Python
2021/day11/test.py
MartinSeeler/Advent-of-Code
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
5
2020-12-18T15:37:20.000Z
2021-12-18T20:01:21.000Z
2021/day11/test.py
MartinSeeler/Advent-of-Code-2020
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
null
null
null
2021/day11/test.py
MartinSeeler/Advent-of-Code-2020
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
1
2021-12-18T05:29:35.000Z
2021-12-18T05:29:35.000Z
import pytest from solution import solve_part_1, solve_part_2 @pytest.mark.parametrize( "quiz_input,expected_result", [ ( """5483143223 2745854711 5264556173 6141336146 6357385478 4167524645 2176841721 6882881134 4846848554 5283751526""", 1656, ) ], ) def test_part...
16.041667
54
0.694805
ac2872729ff51271869ecfdcd716af409a9fe355
5,371
py
Python
daemon/core/enumerations.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
1
2020-10-13T12:44:12.000Z
2020-10-13T12:44:12.000Z
daemon/core/emulator/enumerations.py
lmerat46/core
e11ec020ebbd8df0d1c78d4be249de3c87190587
[ "BSD-2-Clause" ]
null
null
null
daemon/core/emulator/enumerations.py
lmerat46/core
e11ec020ebbd8df0d1c78d4be249de3c87190587
[ "BSD-2-Clause" ]
null
null
null
""" Contains all legacy enumerations for interacting with legacy CORE code. """ from enum import Enum CORE_API_VERSION = "1.23" CORE_API_PORT = 4038 class MessageTypes(Enum): """ CORE message types. """ NODE = 0x01 LINK = 0x02 EXECUTE = 0x03 REGISTER = 0x04 CONFIG = 0x05 FILE = 0...
16.889937
71
0.587042
7d7744ded7bed8aaa298b4161286ae2a053915bd
732
py
Python
setup.py
naegelejd/pyasteroid
8c4a5d200457e6ea8d050d0a755f3ed582f2edef
[ "MIT" ]
null
null
null
setup.py
naegelejd/pyasteroid
8c4a5d200457e6ea8d050d0a755f3ed582f2edef
[ "MIT" ]
null
null
null
setup.py
naegelejd/pyasteroid
8c4a5d200457e6ea8d050d0a755f3ed582f2edef
[ "MIT" ]
null
null
null
#from distutils.core import setup, Extension from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages, Extension vector = Extension("asteroids.vector", sources=["src/vector/vectormodule.c"]) setup( name = "pyasteroid", version = '0.0.2', author = "Joseph Naegele"...
29.28
77
0.678962
ab0c57a2271894667059d28a3cd479db33ba0c8f
5,124
py
Python
run.py
Alvin-21/password-manager
a2c21f92f81d9f82a39ffc99c8cebf0489e2a7c4
[ "Unlicense" ]
null
null
null
run.py
Alvin-21/password-manager
a2c21f92f81d9f82a39ffc99c8cebf0489e2a7c4
[ "Unlicense" ]
null
null
null
run.py
Alvin-21/password-manager
a2c21f92f81d9f82a39ffc99c8cebf0489e2a7c4
[ "Unlicense" ]
null
null
null
from user_credentials import User, Credentials def create_user(fname, lname, username, password): """ Creates a new user. """ return User(fname, lname, username, password) def create_credentials(app, username, password): """ Creates new user credentials. """ return Credentials(app, u...
45.345133
163
0.531616
ba426144b394e8d020eafa22fa30dc8e53d22120
21,642
py
Python
ludwig/models/modules/recurrent_modules.py
JakeConnors376W/ludwig
d16488aed4821cf89642c967e06f8961f2ab53bd
[ "Apache-2.0" ]
90
2019-03-05T08:52:28.000Z
2020-09-25T10:27:23.000Z
ludwig/models/modules/recurrent_modules.py
wjapollo/ludwig
181d435e8c9698e2c8da23355608e997c9361f2c
[ "Apache-2.0" ]
2
2019-02-15T08:32:24.000Z
2021-01-30T19:35:51.000Z
ludwig/models/modules/recurrent_modules.py
wjapollo/ludwig
181d435e8c9698e2c8da23355608e997c9361f2c
[ "Apache-2.0" ]
29
2019-03-05T08:59:22.000Z
2020-09-26T22:52:05.000Z
# coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 applicabl...
44.807453
152
0.570419
93f4103d4c1d0451cd3bc88fef28854430753c22
29,606
py
Python
library/azure_rm_deployment.py
joaocc/azure_preview_modules
2413dafa6f979a2070843b073830901cc1b1d868
[ "MIT" ]
46
2018-01-24T08:39:15.000Z
2021-08-20T04:41:16.000Z
library/azure_rm_deployment.py
joaocc/azure_preview_modules
2413dafa6f979a2070843b073830901cc1b1d868
[ "MIT" ]
226
2017-12-12T21:46:31.000Z
2022-02-18T05:17:03.000Z
library/azure_rm_deployment.py
joaocc/azure_preview_modules
2413dafa6f979a2070843b073830901cc1b1d868
[ "MIT" ]
60
2018-01-25T10:03:59.000Z
2022-03-08T10:19:54.000Z
#!/usr/bin/python # # Copyright (c) Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview...
42.113798
159
0.585591
5e383ff32866bc18159d3ca0d169464a7ce081d0
12,840
py
Python
torchvision/transforms/functional_pil.py
xuzhao9/vision
71d2bb0bc67044f55d38bfddf04e05be0343deab
[ "BSD-3-Clause" ]
1
2022-03-04T07:33:40.000Z
2022-03-04T07:33:40.000Z
torchvision/transforms/functional_pil.py
xuzhao9/vision
71d2bb0bc67044f55d38bfddf04e05be0343deab
[ "BSD-3-Clause" ]
null
null
null
torchvision/transforms/functional_pil.py
xuzhao9/vision
71d2bb0bc67044f55d38bfddf04e05be0343deab
[ "BSD-3-Clause" ]
null
null
null
import numbers from typing import Any, Dict, List, Optional, Sequence, Tuple, Union import numpy as np import torch from PIL import Image, ImageOps, ImageEnhance from typing_extensions import Literal try: import accimage except ImportError: accimage = None @torch.jit.unused def _is_pil_image(img: Any) -> bo...
31.240876
117
0.636526
4e8dc9ed113322c29144a75eb1c89731b9ef220e
12,728
py
Python
daal4py/sklearn/decomposition/_pca.py
cmsxbc/scikit-learn-intelex
a442e84efdf3e2baf7fb7c0cdd114b2698e82d90
[ "Apache-2.0" ]
1
2021-08-13T13:39:17.000Z
2021-08-13T13:39:17.000Z
daal4py/sklearn/decomposition/_pca.py
raoberman/daal4py
65e74dd90342bebbfbb51f1057db9a78ec818b9c
[ "Apache-2.0" ]
null
null
null
daal4py/sklearn/decomposition/_pca.py
raoberman/daal4py
65e74dd90342bebbfbb51f1057db9a78ec818b9c
[ "Apache-2.0" ]
null
null
null
#=============================================================================== # Copyright 2014-2021 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.apa...
40.406349
90
0.583124
37d07dbb1ab0401171906916c0ecc29f867b5cfc
389
py
Python
Problems/Patients/task.py
gabrielizalo/jetbrains-academy-python-coffee-machine
e22cb502f7998855ef4afbc4ef7ecb8226418225
[ "MIT" ]
null
null
null
Problems/Patients/task.py
gabrielizalo/jetbrains-academy-python-coffee-machine
e22cb502f7998855ef4afbc4ef7ecb8226418225
[ "MIT" ]
null
null
null
Problems/Patients/task.py
gabrielizalo/jetbrains-academy-python-coffee-machine
e22cb502f7998855ef4afbc4ef7ecb8226418225
[ "MIT" ]
null
null
null
class Patient: def __init__(self, name, last_name, age): self.name = name self.last_name = last_name self.age = age # create methods here def __str__(self): return f"{self.name} {self.last_name}. {self.age}" def __repr__(self): return f"Object of the class Patie...
29.923077
110
0.622108
9e2a4dff21d0902fc6d929c0589aecf0c5b92d86
615
py
Python
Interview-Preparation/Facebook/ArraysStrings-multiply-strings.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Interview-Preparation/Facebook/ArraysStrings-multiply-strings.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Interview-Preparation/Facebook/ArraysStrings-multiply-strings.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def multiply(self, num1: str, num2: str) -> str: def str2int(s): num = 0 for i in range(len(s)-1,-1,-1): num += int(s[i]) * 10**(len(s)-1-i) return num def int2str(num): s = [] while num: ...
24.6
52
0.4
eb31c7e8c2f0f06b54ce1a2e16478c267249b5b7
7,101
py
Python
cfi-lowering/AsmEditorBase.py
dbrumley/recfi
39b32ad9e406a79e37ddf94dfcdc4f00acf0c23d
[ "MIT" ]
17
2015-02-04T05:21:14.000Z
2021-05-30T21:03:48.000Z
cfi-lowering/AsmEditorBase.py
dbrumley/recfi
39b32ad9e406a79e37ddf94dfcdc4f00acf0c23d
[ "MIT" ]
null
null
null
cfi-lowering/AsmEditorBase.py
dbrumley/recfi
39b32ad9e406a79e37ddf94dfcdc4f00acf0c23d
[ "MIT" ]
3
2018-03-18T23:11:44.000Z
2019-09-05T11:47:19.000Z
''' #------------------------------ AsmEditorBase.py ------------------------------# # # # This is the abstract base class for a ReCFI Asm Editor object. The # # point of this class is to take in annotated asm and operate on it. ...
35.863636
81
0.522602
7435aee8c22d86354004021b4b4c69c45916b45a
61,580
py
Python
Plugins/ActionEngine/Action.py
davidhstocker/Tioga
f7b66b4b94ca2b7e5eb845ce11162b1053715da8
[ "Apache-2.0" ]
1
2020-09-07T13:33:32.000Z
2020-09-07T13:33:32.000Z
Plugins/ActionEngine/Action.py
davidhstocker/Tioga
f7b66b4b94ca2b7e5eb845ce11162b1053715da8
[ "Apache-2.0" ]
null
null
null
Plugins/ActionEngine/Action.py
davidhstocker/Tioga
f7b66b4b94ca2b7e5eb845ce11162b1053715da8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """Angela RML Interpreter - Action Queue (aQ) management engine service plugin Created by the project angela team http://sourceforge.net/projects/projectangela/ http://www.projectangela.org""" __license__ = "GPL" __version__ = "$Revision: 0.1 $" __author__ = 'David Stocke...
54.495575
181
0.599968
be62c7098cbe3ce95d1a60eb0451c63426055ea2
1,109
py
Python
pepys_import/utils/sqlite_utils.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2021-05-14T08:22:47.000Z
2022-02-04T19:48:25.000Z
pepys_import/utils/sqlite_utils.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
1,083
2019-11-06T17:01:07.000Z
2022-03-25T10:26:51.000Z
pepys_import/utils/sqlite_utils.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2019-11-06T12:00:45.000Z
2021-06-09T04:18:28.000Z
import os import platform SYSTEM = platform.system() if SYSTEM == "Linux": PLATFORM_EXTENSION_PATH = "mod_spatialite" elif SYSTEM == "Darwin": # Darwin is MacOS pragma: no cover (tests only run on Linux) PLATFORM_EXTENSION_PATH = "mod_spatialite" elif SYSTEM == "Windows": # pragma: no cover (tests only run ...
32.617647
93
0.753832
2418d3b5095a43d66e829a5915407433354e796d
2,837
py
Python
test/snake/test_object_collisions.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
2
2019-12-09T08:41:13.000Z
2020-10-22T02:29:22.000Z
test/snake/test_object_collisions.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
null
null
null
test/snake/test_object_collisions.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
null
null
null
import unittest from snake import constants from snake.objects.constants import LEN_SNAKE_START from snake.boards.classic import Board from snake.objects.wall import Wall from snake.objects.ground import Ground from snake.objects.apple import Apple from snake.objects.snake import Snake from snake.objects.utils impo...
39.957746
104
0.657032
85796a3618e57a47a527ef93fa03ee7a6d3bcf19
454
py
Python
shadowrun_prototype/defs/mach.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
shadowrun_prototype/defs/mach.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
shadowrun_prototype/defs/mach.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
from ...hek.defs.mach import * from .obje import * # replace the object_type enum one that uses # the correct default value for this object obje_attrs = dict(obje_attrs) obje_attrs[0] = dict(obje_attrs[0], DEFAULT=7) mach_body = dict(mach_body) mach_body[0] = obje_attrs def get(): return mach_def ...
21.619048
55
0.671806
96beaba21dfc7ed4699c76f171e32e5cdbe15346
22,874
py
Python
tests/integration/cattletest/core/common_fixtures.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
tests/integration/cattletest/core/common_fixtures.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
tests/integration/cattletest/core/common_fixtures.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
import gdapi import cattle import os import pytest import random import time import inspect from datetime import datetime, timedelta NOT_NONE = object() DEFAULT_TIMEOUT = 90 DEFAULT_AGENT_URI = 'ssh://root@localhost:22' DEFAULT_AGENT_UUID = 'test-agent' SLEEP_DELAY = 0.5 ACCOUNT_LIST = ['admin', 'agent', 'user', 'agen...
28.991128
79
0.59972
e8daaf516e404a7a66da0c1a71f341a4de61e5f2
678
py
Python
setup.py
Kiracorp/data-structures
33cc5387a4636031193a8214ff6f737689e304c4
[ "MIT" ]
null
null
null
setup.py
Kiracorp/data-structures
33cc5387a4636031193a8214ff6f737689e304c4
[ "MIT" ]
null
null
null
setup.py
Kiracorp/data-structures
33cc5387a4636031193a8214ff6f737689e304c4
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="data-structures-kiracorp", version="0.0.1", author="Kyler Green", author_email="kairaanomeiru@gmail.com", description="Implementation for common data structues", long_description=long_...
30.818182
59
0.676991
e0d1cf8573f776730d90b69474e28765ddef3bad
5,451
py
Python
tools/bin/query-recipe.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
16
2017-01-17T15:20:43.000Z
2021-03-19T05:45:14.000Z
tools/bin/query-recipe.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
415
2016-12-20T17:20:45.000Z
2018-09-23T07:59:23.000Z
tools/bin/query-recipe.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
10
2016-12-20T13:24:50.000Z
2021-03-19T05:46:43.000Z
#!/usr/bin/env python # Copyright (C) 2016 Hewlett-Packard Development Company, L.P. # # 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 # # U...
32.640719
131
0.588883
e1ccf4066c1c3d75ad06001a3fd24d32e45e89df
1,010
py
Python
hpt/inventory/admin.py
hollowpoint/hollowpoint
6f9d6c6f7147a3cec20d6e772567a29cebe2a365
[ "Apache-2.0" ]
1
2016-03-31T19:52:03.000Z
2016-03-31T19:52:03.000Z
hpt/inventory/admin.py
hollowpoint/hollowpoint
6f9d6c6f7147a3cec20d6e772567a29cebe2a365
[ "Apache-2.0" ]
null
null
null
hpt/inventory/admin.py
hollowpoint/hollowpoint
6f9d6c6f7147a3cec20d6e772567a29cebe2a365
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. class NetDeviceAdmin(admin.ModelAdmin): """Customizing the view of devices in the admin""" list_display = ('nodeName', 'manufacturer', 'deviceType', 'make', 'model') list_filter = ('manufacturer', 'deviceType', 'site') s...
34.827586
85
0.549505
2ebffbe91a22a7b6f751e844336d1cd788710162
5,412
py
Python
dags/dbm_to_storage_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
1
2020-12-04T17:13:35.000Z
2020-12-04T17:13:35.000Z
dags/dbm_to_storage_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
dags/dbm_to_storage_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/l...
32.8
145
0.532151
ea84f4d18f3bd48ebcd4eb56c8d74626f0a0063b
7,382
py
Python
ingest/subscription/subscription_sage.py
ourresearch/journalsdb
169feb9be684eac59f3294dccdb319eb10fe1958
[ "MIT" ]
8
2021-02-01T21:00:20.000Z
2022-01-25T09:51:24.000Z
ingest/subscription/subscription_sage.py
ourresearch/journalsdb
169feb9be684eac59f3294dccdb319eb10fe1958
[ "MIT" ]
43
2021-04-28T00:20:53.000Z
2022-03-09T00:39:56.000Z
ingest/subscription/subscription_sage.py
ourresearch/journalsdb
169feb9be684eac59f3294dccdb319eb10fe1958
[ "MIT" ]
null
null
null
import pandas as pd from app import db import regex as re from models.journal import Journal from models.location import Region from models.price import MiniBundle, SubscriptionPrice from ingest.subscription.subscription_base import SubscriptionImport from ingest.utils import get_or_create class Sage(SubscriptionImp...
32.808889
85
0.5424
06d2a7d8de218a287fa9de01d3f14ce5da491670
393
py
Python
app/fangnaer/wsgi.py
sylardie/fangnaer
44192e03977ac2c53c8f67027ce93dea297dfb41
[ "MIT" ]
2
2018-06-22T00:59:02.000Z
2018-06-22T15:43:10.000Z
app/fangnaer/wsgi.py
sylardie/fangnaer
44192e03977ac2c53c8f67027ce93dea297dfb41
[ "MIT" ]
2
2020-07-17T15:07:30.000Z
2021-05-09T21:49:14.000Z
app/fangnaer/wsgi.py
sylardie/fangnaer
44192e03977ac2c53c8f67027ce93dea297dfb41
[ "MIT" ]
1
2018-06-22T00:55:25.000Z
2018-06-22T00:55:25.000Z
""" WSGI config for fangnaer project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
23.117647
78
0.78626
4698e3ca0670fa4d739bf474712d688092eb7b34
1,165
py
Python
tests/test_nn_activation.py
frgfm/torch-zoo
c97beacf3d49eaa34398abf47f378ea6b48a70f3
[ "Apache-2.0" ]
null
null
null
tests/test_nn_activation.py
frgfm/torch-zoo
c97beacf3d49eaa34398abf47f378ea6b48a70f3
[ "Apache-2.0" ]
null
null
null
tests/test_nn_activation.py
frgfm/torch-zoo
c97beacf3d49eaa34398abf47f378ea6b48a70f3
[ "Apache-2.0" ]
null
null
null
import inspect import torch from holocron.nn import functional as F from holocron.nn.modules import activation def _test_activation_function(fn, input_shape): # Optional testing fn_args = inspect.signature(fn).parameters.keys() cfg = {} if "inplace" in fn_args: cfg["inplace"] = [False, True...
25.326087
62
0.63691
55cd47caddb5c15e11f6a6a38a57db992155de07
1,276
py
Python
src/linux/snipeFile.py
EH30/snipeFiles
11eed6f0387e3cb4afdcb94dfae0b5f874b8cafe
[ "Unlicense" ]
null
null
null
src/linux/snipeFile.py
EH30/snipeFiles
11eed6f0387e3cb4afdcb94dfae0b5f874b8cafe
[ "Unlicense" ]
null
null
null
src/linux/snipeFile.py
EH30/snipeFiles
11eed6f0387e3cb4afdcb94dfae0b5f874b8cafe
[ "Unlicense" ]
null
null
null
import os import sys import argparse #Created By: EH def file_writer(filename, data): opn = open(filename, "a") opn.write(data+"\n") opn.close() def getData(paths, name, multi): print("[+]Searching for: ", name) found = 0 for root, dirname, filename in os.walk(paths): ...
29.674419
105
0.544671
139fc141d936c57f86cb8e854699266458a6b45d
1,423
py
Python
rqalpha/examples/IF_macd.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
44
2017-06-17T09:43:17.000Z
2022-03-02T11:08:03.000Z
rqalpha/examples/IF_macd.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
2
2017-08-26T13:10:17.000Z
2018-06-14T12:28:08.000Z
rqalpha/examples/IF_macd.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
28
2017-06-26T10:06:29.000Z
2021-12-17T04:26:04.000Z
from rqalpha.api import * import talib # 在这个方法中编写任何的初始化逻辑。context对象将会在你的算法策略的任何方法之间做传递 def init(context): # context内引入全局变量s1,存储目标合约信息 context.s1 = 'IF1606' # 使用MACD需要设置长短均线和macd平均线的参数 context.SHORTPERIOD = 12 context.LONGPERIOD = 26 context.SMOOTHPERIOD = 9 context.OBSERVATION = 50 ...
30.276596
77
0.662684
0ce8a9e492fcee7fa9706ded2452df88d112b748
1,238
py
Python
setup.py
drpresq/sshepherd
e730b6b12a11f91a843e4e4cb2fdc606fa75ea47
[ "BSD-2-Clause" ]
null
null
null
setup.py
drpresq/sshepherd
e730b6b12a11f91a843e4e4cb2fdc606fa75ea47
[ "BSD-2-Clause" ]
null
null
null
setup.py
drpresq/sshepherd
e730b6b12a11f91a843e4e4cb2fdc606fa75ea47
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_desc = fh.read() setup( name='sshepherd', version="0.2", packages=["sshepherd"], package_dir={'': "src"}, scripts=['scripts/sshepherd'], author="George", author_email="drpresq@gmail.com", descriptio...
29.47619
59
0.590468
88676be69b4e5d677e93bb1afc12fbf23ad51615
2,857
py
Python
Model/lib/logger.py
uetke/UUTrap
38d1f954c89df1f8b68ad9f155ffc611cdb92004
[ "MIT" ]
1
2019-08-20T19:44:43.000Z
2019-08-20T19:44:43.000Z
Model/lib/logger.py
uetke/UUTrap
38d1f954c89df1f8b68ad9f155ffc611cdb92004
[ "MIT" ]
1
2018-03-13T14:06:43.000Z
2018-03-13T14:06:43.000Z
Model/lib/logger.py
uetke/UUTrap
38d1f954c89df1f8b68ad9f155ffc611cdb92004
[ "MIT" ]
1
2018-08-14T14:46:22.000Z
2018-08-14T14:46:22.000Z
from collections import OrderedDict import inspect import logging import logging.config def logger(name='logfile.log',filelevel=logging.INFO, streamlevel=logging.WARNING): # create logger with 'spam_application' logger = logging.getLogger('__main__') logger.setLevel(logging.DEBUG) # create file handle...
32.101124
102
0.635982
f78af8042882d289d1ee2376039ba417133acf45
5,291
py
Python
databench_py/singlethread/meta.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
databench_py/singlethread/meta.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
databench_py/singlethread/meta.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
"""Meta class for Databench Python kernel.""" import zmq import time import logging class Meta(object): """Class providing Meta information about analyses. For Python kernels. Args: name (str): Name of this analysis. import_name (str): Usually the file name ``__name__`` where this ...
33.27673
76
0.543754
35bf0eaee1ae4ae5df8be759a5256da3238b73b3
12,132
bzl
Python
internal/pkg_npm/pkg_npm.bzl
Aghassi/rules_nodejs
3eb42603c440f7e8496f2e6812337eb47827ff6a
[ "Apache-2.0" ]
null
null
null
internal/pkg_npm/pkg_npm.bzl
Aghassi/rules_nodejs
3eb42603c440f7e8496f2e6812337eb47827ff6a
[ "Apache-2.0" ]
null
null
null
internal/pkg_npm/pkg_npm.bzl
Aghassi/rules_nodejs
3eb42603c440f7e8496f2e6812337eb47827ff6a
[ "Apache-2.0" ]
null
null
null
"""npm packaging Note, this is intended for sharing library code with non-Bazel consumers. If all users of your library code use Bazel, they should just add your library to the `deps` of one of their targets. """ load("//:providers.bzl", "DeclarationInfo", "JSModuleInfo", "LinkablePackageInfo", "NODE_CONTEXT_ATTRS",...
34.174648
136
0.662463
928d07e3d3b8ce38d242ea72aeef648210099d07
9,023
py
Python
tenable/io/assets.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
tenable/io/assets.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
1
2021-08-18T17:26:30.000Z
2021-08-18T17:26:30.000Z
tenable/io/assets.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
''' assets ====== The following methods allow for interaction into the Tenable.io :devportal:`assets <assets>` API endpoints. Methods available on ``tio.assets``: .. rst-class:: hide-signature .. autoclass:: AssetsAPI .. automethod:: asset_import .. automethod:: delete .. automethod:: details .. aut...
31.883392
93
0.537959
eb49d73535098c0a5ac7f1ebbd99a09011f1e3d8
1,706
py
Python
profiles_api/migrations/0001_initial.py
tekrajchhetri/django-rest-api
33da0a912d197cf104fe8eeb5a56728ac67e9784
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
tekrajchhetri/django-rest-api
33da0a912d197cf104fe8eeb5a56728ac67e9784
[ "MIT" ]
1
2020-02-12T07:24:12.000Z
2020-02-12T07:24:12.000Z
profiles_api/migrations/0001_initial.py
tekrajchhetri/django-rest-api
33da0a912d197cf104fe8eeb5a56728ac67e9784
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-02-08 10:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
8f65a154e2bee6b539c2b1fa066bfcd3c19b64db
2,078
tac
Python
Data/TACs/pabloModel_0vb/0noise/fullTAC0.2sigma.tac
ExampleOne/Fields-Project-11
427d7fd0314106d1ffcee99a4d5e2f5515cb6f66
[ "MIT" ]
5
2018-08-07T15:40:38.000Z
2018-08-21T15:01:18.000Z
Data/TACs/pabloModel_0vb/0noise/fullTAC0.2sigma.tac
ExampleOne/Fields-Project-11
427d7fd0314106d1ffcee99a4d5e2f5515cb6f66
[ "MIT" ]
null
null
null
Data/TACs/pabloModel_0vb/0noise/fullTAC0.2sigma.tac
ExampleOne/Fields-Project-11
427d7fd0314106d1ffcee99a4d5e2f5515cb6f66
[ "MIT" ]
null
null
null
Start End Cerebellar Temporal Frontal Caudate Putamen Thalamus Anterior_cingulate Pons 0.00 76.00 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 76.00 106.00 88.27 99.01 97.30 94.73 105.24 108.87 89.92 72.03 106.00 136.00 253.21 283.11 278.68 275.32 303.57 313.93 257.64 207.85 136.00 166.00 396.86 44...
69.266667
86
0.713186
8ed3382bceaea539e4825a518b903ef277914a5e
1,498
py
Python
freeproxy/modules/proxies/fatezero.py
bibilii/FreeProxy
b39e0c64fd2b356d18e23479a274ead125a7dfbb
[ "MIT" ]
15
2022-02-21T00:47:11.000Z
2022-03-25T02:31:37.000Z
freeproxy/modules/proxies/fatezero.py
bibilii/FreeProxy
b39e0c64fd2b356d18e23479a274ead125a7dfbb
[ "MIT" ]
1
2022-03-09T07:55:57.000Z
2022-03-09T08:25:17.000Z
freeproxy/modules/proxies/fatezero.py
bibilii/FreeProxy
b39e0c64fd2b356d18e23479a274ead125a7dfbb
[ "MIT" ]
5
2022-02-21T00:47:13.000Z
2022-03-18T01:52:07.000Z
''' Function: fatezero代理 Author: Charles 微信公众号: Charles的皮卡丘 ''' import json import requests from .base import BaseProxy '''fatezero代理''' class FatezeroProxy(BaseProxy): def __init__(self, **kwargs): super(FatezeroProxy, self).__init__(**kwargs) self.http_proxies = [] self.https...
33.288889
144
0.59279
ae3c69d0182e2eb4cfb2b6560d6cf522b01c8dbd
4,682
py
Python
train-mtcnn-zq-mxnet/core/metric_cls_bbox_landmark.py
zzzkk2009/anti-spoofing
ac3992547c430619e236b338575109d7ecbba654
[ "MIT" ]
13
2018-12-19T07:43:46.000Z
2020-06-30T13:10:08.000Z
train-mtcnn-zq-mxnet/core/metric_cls_bbox_landmark.py
zzzkk2009/anti-spoofing
ac3992547c430619e236b338575109d7ecbba654
[ "MIT" ]
1
2020-04-28T02:18:29.000Z
2020-04-28T02:18:29.000Z
train-mtcnn-zq-mxnet/core/metric_cls_bbox_landmark.py
zzzkk2009/anti-spoofing
ac3992547c430619e236b338575109d7ecbba654
[ "MIT" ]
5
2018-12-19T07:43:48.000Z
2020-06-15T12:14:41.000Z
import mxnet as mx import numpy as np from config import config class Accuracy(mx.metric.EvalMetric): def __init__(self): super(Accuracy, self).__init__('acc') def update(self, labels, preds): # output: cls_prob_output, cls_keep_inds, bbox_pred_output,bbox_keep_inds, landmark_pred_output, lan...
33.927536
123
0.644383