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
13f033b01a3f153653a484777ba95c97ff92f36b
762
py
Python
qatrack/api/contenttypes/views.py
randlet/qatrackplus-ci
ba11d39a07382b11394aaffd0df692b4ddc6239b
[ "MIT" ]
4
2016-08-29T15:31:01.000Z
2021-05-08T23:16:37.000Z
qatrack/api/contenttypes/views.py
randlet/qatrackplus-ci
ba11d39a07382b11394aaffd0df692b4ddc6239b
[ "MIT" ]
5
2020-02-12T01:21:59.000Z
2021-06-10T21:18:24.000Z
qatrack/api/contenttypes/views.py
randlet/qatrackplus-ci
ba11d39a07382b11394aaffd0df692b4ddc6239b
[ "MIT" ]
null
null
null
from django.contrib.contenttypes.models import ContentType from rest_framework import viewsets from rest_framework.filters import OrderingFilter import rest_framework_filters as filters from rest_framework_filters import backends from qatrack.api.contenttypes.serializers import ContentTypeSerializer class ContentTyp...
30.48
70
0.757218
e4356f90be9c75e94c36e960109663a70d1a5f62
6,593
py
Python
model/yolov3.py
lilinxi/210414_CfgYoloV3
e6bbb64efa22e7d4c1f583f033370be4b16e548b
[ "MIT" ]
null
null
null
model/yolov3.py
lilinxi/210414_CfgYoloV3
e6bbb64efa22e7d4c1f583f033370be4b16e548b
[ "MIT" ]
null
null
null
model/yolov3.py
lilinxi/210414_CfgYoloV3
e6bbb64efa22e7d4c1f583f033370be4b16e548b
[ "MIT" ]
null
null
null
import os from typing import List import collections import numpy import PIL.Image, PIL.ImageDraw, PIL.ImageFont import torch import torchvision import model.yolov3net import model.yolov3decode import model.yolov3loss import dataset.transform # ------------------------------------------------------...
39.011834
119
0.553162
892da3902a53e3e460a4aac158187912521079d0
7,362
py
Python
pavement.py
ConnectedHomes/kafkatos3
34c43fabd08524ea2ebd95d0e97266071c077e1f
[ "Apache-2.0" ]
6
2016-10-18T12:55:23.000Z
2019-08-30T08:25:36.000Z
pavement.py
ConnectedHomes/kafkatos3
34c43fabd08524ea2ebd95d0e97266071c077e1f
[ "Apache-2.0" ]
null
null
null
pavement.py
ConnectedHomes/kafkatos3
34c43fabd08524ea2ebd95d0e97266071c077e1f
[ "Apache-2.0" ]
4
2016-10-18T13:00:51.000Z
2021-03-22T08:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys import time import subprocess # Import parameters from the setup file. sys.path.append('.') from setup import ( setup_dict, get_project_files, print_success_message, print_failure_message, _lint, _test, _test_all, CODE_DIR...
28.534884
79
0.628769
494b9851a1e53bab7dd7d828ad7a273b43df1f40
1,911
py
Python
contrib/devtools/check-doc.py
LordSoylent/merge
c72bc60e9597444654ff2072b6f684b8c00c4145
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
LordSoylent/merge
c72bc60e9597444654ff2072b6f684b8c00c4145
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
LordSoylent/merge
c72bc60e9597444654ff2072b6f684b8c00c4145
[ "MIT" ]
2
2020-09-01T20:43:34.000Z
2020-12-18T17:12:44.000Z
#!/usr/bin/env python # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author: @...
42.466667
300
0.690215
ddb13879b2ad0e27ff28d6f71f4a6f65ad754d34
29,350
py
Python
Lib/fontMath/mathGlyph.py
typesupply/fontMath
678c0714d9f8dab1766612ac4c5c5b644b3a51fa
[ "MIT" ]
18
2015-01-15T09:10:18.000Z
2018-12-14T17:16:20.000Z
Lib/fontMath/mathGlyph.py
typesupply/fontMath
678c0714d9f8dab1766612ac4c5c5b644b3a51fa
[ "MIT" ]
96
2015-10-03T21:49:46.000Z
2019-01-14T19:31:16.000Z
Lib/fontMath/mathGlyph.py
typesupply/fontMath
678c0714d9f8dab1766612ac4c5c5b644b3a51fa
[ "MIT" ]
16
2015-01-14T14:19:57.000Z
2018-08-28T20:25:39.000Z
from __future__ import print_function, absolute_import from copy import deepcopy from collections import OrderedDict from fontMath.mathFunctions import ( add, addPt, div, divPt, mul, mulPt, _roundNumber, sub, subPt) from fontMath.mathGuideline import ( _compressGuideline, _expandGuideline, _pairGuidelines, ...
35.792683
133
0.610835
88c49439ad916030f7397f4afc9eb47f140afee6
2,864
py
Python
openmdao/util/string_util.py
colinxs/OpenMDAO
a9a52be29281a23a102c64b577066ee5fc70f4b4
[ "Apache-2.0" ]
17
2018-01-11T20:13:59.000Z
2022-03-22T03:46:05.000Z
openmdao/util/string_util.py
colinxs/OpenMDAO
a9a52be29281a23a102c64b577066ee5fc70f4b4
[ "Apache-2.0" ]
6
2017-10-19T23:14:14.000Z
2020-11-22T17:30:57.000Z
openmdao/util/string_util.py
colinxs/OpenMDAO
a9a52be29281a23a102c64b577066ee5fc70f4b4
[ "Apache-2.0" ]
10
2018-04-12T22:13:33.000Z
2020-05-07T10:02:59.000Z
""" Sting utilities. """ import ast #public symbols __all__ = ['get_common_ancestor', 'nearest_child', 'name_relative_to', 'parse_for_vars'] def get_common_ancestor(name1, name2): """ Args ---- name1 : str Name of first system. name2 : str Name of second system. Returns ...
24.904348
88
0.621159
861b5a751101244940db08577249cfe757a86362
556
py
Python
qiskit/test/mock/backends/rueschlikon/__init__.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1,456
2017-08-05T16:33:05.000Z
2018-06-05T04:15:35.000Z
qiskit/test/mock/backends/rueschlikon/__init__.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
365
2017-08-04T06:09:16.000Z
2018-06-05T08:33:37.000Z
qiskit/test/mock/backends/rueschlikon/__init__.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
463
2017-08-05T04:10:01.000Z
2018-06-05T06:43:21.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
34.75
77
0.764388
c76007d39c6649553babc244abf124bc656acb68
1,799
py
Python
data/p4VQE/R1/benchmark/startCirq163.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startCirq163.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startCirq163.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=11 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
28.109375
77
0.690939
0b82375494cb1b5d913b173748548d089da50b94
10,668
py
Python
dvc/remote/s3.py
rbvesb/dvc
9c2c2b307dc44e5d3b9fc0f306d2f0a79a7b1d11
[ "Apache-2.0" ]
null
null
null
dvc/remote/s3.py
rbvesb/dvc
9c2c2b307dc44e5d3b9fc0f306d2f0a79a7b1d11
[ "Apache-2.0" ]
null
null
null
dvc/remote/s3.py
rbvesb/dvc
9c2c2b307dc44e5d3b9fc0f306d2f0a79a7b1d11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging import os import threading from funcy import cached_property, wrap_prop from dvc.config import Config from dvc.exceptions import DvcException from dvc.exceptions import ETagMismatchError from dvc.path_info import CloudURLInfo from dvc.pro...
34.977049
79
0.607143
32d8a009c3f84453271837e6bc95b4f06c7956c2
38,712
py
Python
skyportal/handlers/api/followup_request.py
janvanroestel/skyportal
e197aa08772509294d22dfb065b8cf3d40e3804c
[ "BSD-3-Clause" ]
null
null
null
skyportal/handlers/api/followup_request.py
janvanroestel/skyportal
e197aa08772509294d22dfb065b8cf3d40e3804c
[ "BSD-3-Clause" ]
null
null
null
skyportal/handlers/api/followup_request.py
janvanroestel/skyportal
e197aa08772509294d22dfb065b8cf3d40e3804c
[ "BSD-3-Clause" ]
null
null
null
import arrow import healpy as hp import jsonschema from marshmallow.exceptions import ValidationError import numpy as np import io from tornado.ioloop import IOLoop import pandas as pd import tempfile import functools from scipy.stats import norm from astropy import units as u from astropy.coordinates import SkyCoord ...
32.890399
89
0.563675
1c029f390b8b101a418b4d010f81e4856ebec19c
1,563
py
Python
tests/client/test_queryparams.py
Colin-b/httpx
3333152b54654a438d5a8f7d0c36890a282b8eae
[ "BSD-3-Clause" ]
null
null
null
tests/client/test_queryparams.py
Colin-b/httpx
3333152b54654a438d5a8f7d0c36890a282b8eae
[ "BSD-3-Clause" ]
null
null
null
tests/client/test_queryparams.py
Colin-b/httpx
3333152b54654a438d5a8f7d0c36890a282b8eae
[ "BSD-3-Clause" ]
null
null
null
import json import pytest from httpx import URL, AsyncClient, QueryParams, Request, Response from httpx._config import CertTypes, TimeoutTypes, VerifyTypes from httpx._dispatch.base import AsyncDispatcher class MockDispatch(AsyncDispatcher): async def send( self, request: Request, verify...
30.057692
76
0.68906
13b012ea00f4d29c4ce5b0be4e355628308178b6
737
py
Python
examples/gauss.pyre/gauss/meshes/PointCloud.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
null
null
null
examples/gauss.pyre/gauss/meshes/PointCloud.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:13.000Z
2021-06-10T23:42:13.000Z
examples/gauss.pyre/gauss/meshes/PointCloud.py
jlmaurer/pyre
6af38a83621d7d6228d147b4bb94f97fbb10f6e2
[ "BSD-3-Clause" ]
2
2020-08-31T18:07:52.000Z
2021-12-10T08:54:39.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2020 all rights reserved # # access to the framework import pyre # declaration class PointCloud(pyre.protocol, family="gauss.meshes"): """ Protocol declarator for an unstructured collection of points """ # my default implementa...
19.918919
64
0.621438
4869ebc9e2f9c45449a833e658e0a11349e87845
2,741
py
Python
hexrd/config/material.py
glemaitre/hexrd
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
[ "BSD-3-Clause" ]
27
2020-02-18T12:15:08.000Z
2022-03-24T17:53:46.000Z
hexrd/config/material.py
glemaitre/hexrd
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
[ "BSD-3-Clause" ]
259
2020-02-02T22:18:29.000Z
2022-03-30T19:59:58.000Z
hexrd/config/material.py
glemaitre/hexrd
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
[ "BSD-3-Clause" ]
11
2020-02-18T12:14:44.000Z
2022-03-04T16:19:11.000Z
import os import numpy as np from hexrd import material from hexrd.constants import keVToAngstrom from hexrd.valunits import valWUnit from .config import Config DMIN_DFLT = 0.5 # angstrom TTHW_DFLT = 0.25 # degrees class MaterialConfig(Config): """Handle material configuration.""" @property def ...
30.455556
72
0.615104
3b341e82fe73d93835d8e882252dd600c9bf3542
1,727
py
Python
6.ROI/ROI.py
Spnetic-5/IP_Algorithms
1e42ae6ec9ae49e47e6f37d739fddfa0e1a80fa6
[ "MIT" ]
1
2021-05-13T18:23:02.000Z
2021-05-13T18:23:02.000Z
6.ROI/ROI.py
Spnetic-5/IP_Algorithms
1e42ae6ec9ae49e47e6f37d739fddfa0e1a80fa6
[ "MIT" ]
null
null
null
6.ROI/ROI.py
Spnetic-5/IP_Algorithms
1e42ae6ec9ae49e47e6f37d739fddfa0e1a80fa6
[ "MIT" ]
null
null
null
from PIL import Image import numpy as np def create_circular_mask(h, w, center=[964,1110], radius=80): Y, X = np.ogrid[:h, :w] dist_from_center = np.sqrt((Y - center[0])**2 + (X-center[1])**2) mask = dist_from_center <= radius return mask def convolve3d(image, kernel): output = np.zeros_like(image...
34.54
113
0.577302
5263adc9f24d532f1098a877e4167640e82f3844
3,698
py
Python
app/count_issues.py
biraaj/git_issue_tracker
cc18d77af6e55c2088b36d397a7c3c17f07dd0bf
[ "Apache-2.0" ]
null
null
null
app/count_issues.py
biraaj/git_issue_tracker
cc18d77af6e55c2088b36d397a7c3c17f07dd0bf
[ "Apache-2.0" ]
1
2021-06-01T23:33:49.000Z
2021-06-01T23:33:49.000Z
app/count_issues.py
biraaj/git_issue_tracker
cc18d77af6e55c2088b36d397a7c3c17f07dd0bf
[ "Apache-2.0" ]
null
null
null
import json import sys import datetime import math import re from dateutil import parser from urllib.request import urlopen import requests import pytz #Intiliazing configuration values CONFIG = json.loads(open("config.json", 'r').read()) API = CONFIG.get('GIT_API') PAGE_LIMIT = CONFIG.get('PAGE_LIMIT') #Intilaizing...
38.926316
102
0.684154
480b0265cb44a9983802e2c79d9751fd10382454
327
py
Python
blog/migrations/0004_remove_post_video_link.py
vishnu-chalil/sharecontent
bda2cb6db0ffc38f582829abfced163e8a6eafdb
[ "Apache-2.0" ]
null
null
null
blog/migrations/0004_remove_post_video_link.py
vishnu-chalil/sharecontent
bda2cb6db0ffc38f582829abfced163e8a6eafdb
[ "Apache-2.0" ]
7
2020-02-12T01:20:22.000Z
2021-06-10T18:39:59.000Z
blog/migrations/0004_remove_post_video_link.py
vishnu-chalil/sharecontent
bda2cb6db0ffc38f582829abfced163e8a6eafdb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2019-08-08 10:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20190808_1054'), ] operations = [ migrations.RemoveField( model_name='post', name='video_link', ),...
18.166667
47
0.590214
bc26ae92f6f62f6d0d422a6e9c9ed842585929c5
9,384
py
Python
app/nodes/routes.py
Jeoffreybauvin/puppenc
8c4f0bea9208dc7628e9e0813f20d26543caa9bb
[ "Apache-2.0" ]
5
2017-03-24T21:43:12.000Z
2021-12-13T12:04:35.000Z
app/nodes/routes.py
Jeoffreybauvin/puppenc
8c4f0bea9208dc7628e9e0813f20d26543caa9bb
[ "Apache-2.0" ]
12
2017-04-03T16:04:14.000Z
2019-05-22T14:32:45.000Z
app/nodes/routes.py
Jeoffreybauvin/puppenc
8c4f0bea9208dc7628e9e0813f20d26543caa9bb
[ "Apache-2.0" ]
2
2017-04-15T17:13:47.000Z
2021-06-01T04:04:28.000Z
from flask import jsonify, request, g from sqlalchemy import exc from app.puppenc import db, app, auth, PuppencResource from app.decorators import * from app.nodes.models import Node from app.nodes.schema import NodeSchema class Nodes(PuppencResource): def __init__(self): self.node_schema = NodeSchema() ...
39.428571
139
0.52792
06748156ab1f91ee5c5d3de96904de5db44198ac
10,177
py
Python
tests/unit/web/test_views.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
1
2021-05-16T06:38:06.000Z
2021-05-16T06:38:06.000Z
tests/unit/web/test_views.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
4
2021-06-08T23:45:35.000Z
2022-01-13T03:32:04.000Z
tests/unit/web/test_views.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
1
2018-10-28T15:18:15.000Z
2018-10-28T15:18:15.000Z
from django.contrib.auth.models import User from django.core.urlresolvers import reverse_lazy from django.core.files.uploadedfile import SimpleUploadedFile from rest_framework import status from rest_framework.test import APITestCase, APIClient from web.models import Contact, Team from django.test import Client from...
39.293436
108
0.630146
6a666dd0478903434892e09c25bcdc803181a656
4,998
py
Python
accelbyte_py_sdk/api/iam/models/model_role_response.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/models/model_role_response.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/models/model_role_response.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:12:31.604802+08:00 # from: Justice Iam Service (4.1.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # pylint: ...
34.232877
141
0.615046
db1df368826692fc021d7fbef723d82f67f50957
1,115
py
Python
ffmpeg_streaming/streams.py
fabioam/python-ffmpeg-video-streaming
e8744edd04d59c4bdf4ace1e618745c4cc21a12a
[ "MIT" ]
1
2020-12-23T13:26:26.000Z
2020-12-23T13:26:26.000Z
ffmpeg_streaming/streams.py
fabioam/python-ffmpeg-video-streaming
e8744edd04d59c4bdf4ace1e618745c4cc21a12a
[ "MIT" ]
null
null
null
ffmpeg_streaming/streams.py
fabioam/python-ffmpeg-video-streaming
e8744edd04d59c4bdf4ace1e618745c4cc21a12a
[ "MIT" ]
null
null
null
""" ffmpeg_streaming.streams ~~~~~~~~~~~~ Parse streams that is the output of the FFProbe :copyright: (c) 2019 by Amin Yazdanpanah. :website: https://www.aminyazdanpanah.com :email: contact@aminyazdanpanah.com :license: MIT, see LICENSE for more details. """ class Streams: def __init__(self, streams): ...
23.723404
101
0.63139
5b27ac04da5d34540406671099298db8fcbe19fd
5,983
py
Python
test/test_pfi_explainer.py
imatiach-msft/interpret-community
ba7830d5edf749b1ff603baa4f78cfbad0a42a3f
[ "MIT" ]
1
2022-03-07T10:32:54.000Z
2022-03-07T10:32:54.000Z
tests/test_pfi_explainer.py
ruiwang1994/interpret-community
21c343b8743ebab9f3c5628a1b0e991c9437af51
[ "MIT" ]
null
null
null
tests/test_pfi_explainer.py
ruiwang1994/interpret-community
21c343b8743ebab9f3c5628a1b0e991c9437af51
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- # Tests for Permutation Feature Importance Explainer import logging import pytest from common_tabular_tests import VerifyTabularTests from...
50.70339
111
0.690456
4042f2b1f6747264257c374c321a3b2c1d16a629
3,377
py
Python
tests/test_plugin.py
Galtvam/CoverageVisualizer
b423dc8caabd9b9ce69f3831458d10cb97b576ca
[ "MIT" ]
2
2022-03-31T00:44:46.000Z
2022-03-31T00:44:48.000Z
tests/test_plugin.py
Galtvam/CoverageVisualizer
b423dc8caabd9b9ce69f3831458d10cb97b576ca
[ "MIT" ]
4
2022-03-31T01:12:56.000Z
2022-03-31T04:02:37.000Z
tests/test_plugin.py
Galtvam/CoverageVisualizer
b423dc8caabd9b9ce69f3831458d10cb97b576ca
[ "MIT" ]
null
null
null
import os import shutil from pytest import fixture from utils import * project_dir = os.getcwd() + "\\project_test" # The data is pre-fetched because multiples sequential executions of pytest.main() does not work properly. # You can run the coverage for each test case descommenting the py_cov lines and commenting th...
33.435644
138
0.668937
b84cfb102c18ce3b5969065fb0c1c2542e45401b
9,746
py
Python
api/namex/services/name_request/auto_analyse/unprotected_name_analysis.py
rarmitag/namex
1b308bf96130619d4a61d44e075cc7ab177dc6cd
[ "Apache-2.0" ]
null
null
null
api/namex/services/name_request/auto_analyse/unprotected_name_analysis.py
rarmitag/namex
1b308bf96130619d4a61d44e075cc7ab177dc6cd
[ "Apache-2.0" ]
2
2019-01-14T23:59:11.000Z
2019-01-30T16:09:16.000Z
api/namex/services/name_request/auto_analyse/unprotected_name_analysis.py
rarmitag/namex
1b308bf96130619d4a61d44e075cc7ab177dc6cd
[ "Apache-2.0" ]
null
null
null
from datetime import (datetime) import collections from .name_analysis_director import NameAnalysisDirector from . import ProcedureResult from namex.constants import \ BCProtectedNameEntityTypes, BCUnprotectedNameEntityTypes, XproUnprotectedNameEntityTypes, \ DesignationPositionCodes, LanguageCodes from nam...
43.900901
163
0.740714
3cdf31068f26f70c569b73654be1394995f003f1
411
py
Python
plugins/gravatar/girder_gravatar/settings.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
plugins/gravatar/girder_gravatar/settings.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
plugins/gravatar/girder_gravatar/settings.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
1
2017-02-27T16:11:54.000Z
2017-02-27T16:11:54.000Z
from girder.utility import setting_utilities class PluginSettings(object): DEFAULT_IMAGE = 'gravatar.default_image' @setting_utilities.default(PluginSettings.DEFAULT_IMAGE) def _defaultDefaultImage(): return 'identicon' @setting_utilities.validator(PluginSettings.DEFAULT_IMAGE) def _validateDefaultImage(d...
24.176471
76
0.807786
78f30787c8ae3097493910036abea9416c728c00
169
py
Python
Testes com listas e for.py
luizgarcindo/exercicio-curso-gustavo-guanabara
8235c942d4a8a5be86e4b27673a023f227dc2b47
[ "MIT" ]
null
null
null
Testes com listas e for.py
luizgarcindo/exercicio-curso-gustavo-guanabara
8235c942d4a8a5be86e4b27673a023f227dc2b47
[ "MIT" ]
null
null
null
Testes com listas e for.py
luizgarcindo/exercicio-curso-gustavo-guanabara
8235c942d4a8a5be86e4b27673a023f227dc2b47
[ "MIT" ]
null
null
null
cores=['branco','vermelho','azul', ' preto','amarelo'] for i in cores : print(i) for v,i in enumerate(cores): print(v,i) print(cores[0],cores[1], cores[3])
14.083333
54
0.609467
5c39149a9fff3292658ef7164fe0fd3713854e8a
5,151
py
Python
src/lib/models/decode.py
leobean/CenterNet_simple
13e2eab2c049563afde5defdf90434a310a32d02
[ "MIT" ]
null
null
null
src/lib/models/decode.py
leobean/CenterNet_simple
13e2eab2c049563afde5defdf90434a310a32d02
[ "MIT" ]
null
null
null
src/lib/models/decode.py
leobean/CenterNet_simple
13e2eab2c049563afde5defdf90434a310a32d02
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn from .utils import _gather_feat, _tranpose_and_gather_feat def _nms(heat, kernel=3): pad = (kernel - 1) // 2 hmax = nn.functional.max_pool2d( heat, (kernel, ...
33.666667
79
0.592118
253360f89cf58d0a39abb0d2f777c0a588b4ec22
243
py
Python
typic/constraints/error.py
wyfo/typical
5fc5326b3509d0b9d35c15dae9590d6cf37a0354
[ "MIT" ]
157
2019-03-20T19:12:28.000Z
2022-03-25T08:57:53.000Z
typic/constraints/error.py
wyfo/typical
5fc5326b3509d0b9d35c15dae9590d6cf37a0354
[ "MIT" ]
147
2019-07-03T20:00:52.000Z
2022-02-10T11:38:39.000Z
typic/constraints/error.py
wyfo/typical
5fc5326b3509d0b9d35c15dae9590d6cf37a0354
[ "MIT" ]
15
2019-03-21T11:01:03.000Z
2022-01-08T10:38:15.000Z
class ConstraintSyntaxError(SyntaxError): """A generic error indicating an improperly defined constraint.""" pass class ConstraintValueError(ValueError): """A generic error indicating a value violates a constraint.""" pass
22.090909
70
0.740741
df819f3d0adaaf796f829cc470ee0df82c336018
4,337
py
Python
nltk/parse/evaluate.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
null
null
null
nltk/parse/evaluate.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
null
null
null
nltk/parse/evaluate.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
1
2019-10-18T08:58:45.000Z
2019-10-18T08:58:45.000Z
# Natural Language Toolkit: evaluation of dependency parser # # Author: Long Duong <longdt219@gmail.com> # # Copyright (C) 2001-2018 NLTK Project # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from __future__ import division import unicodedata class DependencyEvaluator(object): """ Cla...
33.882813
101
0.492276
717c64d2d56eafb0b267f780c5b57c8a8dc54852
65,400
py
Python
exchangelib/items.py
Ozzyz/exchangelib
287f53b15fa5ff2f9b685b74c54f36828e03bdf5
[ "BSD-2-Clause" ]
null
null
null
exchangelib/items.py
Ozzyz/exchangelib
287f53b15fa5ff2f9b685b74c54f36828e03bdf5
[ "BSD-2-Clause" ]
null
null
null
exchangelib/items.py
Ozzyz/exchangelib
287f53b15fa5ff2f9b685b74c54f36828e03bdf5
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from decimal import Decimal import logging from future.utils import python_2_unicode_compatible from .ewsdatetime import UTC_NOW from .extended_properties import ExtendedProperty from .fields import BooleanField, IntegerField, DecimalField, Base64Field, TextField, CharListFiel...
50.776398
131
0.681927
cdf2505366fb64140715f86ee44c189634974be4
622
py
Python
day6/part2.py
doon/aoc2020
7231ace6edad1e869c04c919c2d39b188aa6aef9
[ "CC0-1.0" ]
null
null
null
day6/part2.py
doon/aoc2020
7231ace6edad1e869c04c919c2d39b188aa6aef9
[ "CC0-1.0" ]
null
null
null
day6/part2.py
doon/aoc2020
7231ace6edad1e869c04c919c2d39b188aa6aef9
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import typing as t def get_all(group: t.List[t.Set[str]]) -> t.Set[str]: answered = group[0] for g in group[1:]: answered = answered.intersection(g) return answered # get test data with open("input.txt") as f: lines = f.read().splitlines() group: t.List[t.Set[str]] =...
18.848485
53
0.610932
a2ba8e21730d5a9e61c60c4d3c5a41d67522933d
726
py
Python
src/mode/modemonconvotest.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
2
2017-05-14T06:37:14.000Z
2022-03-07T02:25:32.000Z
src/mode/modemonconvotest.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
2
2017-10-08T19:41:18.000Z
2021-04-08T04:40:50.000Z
src/mode/modemonconvotest.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
null
null
null
import shared from monster import Monster from .modefight import ModeFight from .modeconvo import ModeConvo class ModeMonConvoTest(ModeConvo): def _handleButton(self, prev_convo_key: str, index: int): if index == 1: print("Really anything can happen here.") self._stopMixer() ...
33
94
0.599174
8618528d822130c63800a1a20db251d2d17127e0
1,340
py
Python
mac/v3.6.4/lib/python3.6/idlelib/statusbar.py
evanmoran/python3-bazel
e6c5238e7c2bf290ae469ee1287de7af1dc4509a
[ "MIT" ]
27
2017-04-21T14:57:04.000Z
2021-11-03T22:10:38.000Z
mac/v3.6.4/lib/python3.6/idlelib/statusbar.py
evanmoran/python3-bazel
e6c5238e7c2bf290ae469ee1287de7af1dc4509a
[ "MIT" ]
3
2017-04-24T13:25:31.000Z
2017-04-24T13:27:12.000Z
mac/v3.6.4/lib/python3.6/idlelib/statusbar.py
evanmoran/python3-bazel
e6c5238e7c2bf290ae469ee1287de7af1dc4509a
[ "MIT" ]
11
2015-01-12T14:50:00.000Z
2021-08-18T00:48:02.000Z
from tkinter import Frame, Label class MultiStatusBar(Frame): def __init__(self, master, **kw): Frame.__init__(self, master, **kw) self.labels = {} def set_label(self, name, text='', side='left', width=0): if name not in self.labels: label = Label(self, borderwidth=0, anc...
28.510638
62
0.595522
ae5c2875b02c2e8693117bda3f452f4ce5a85915
1,728
py
Python
examples/analysis/friends_who_dont_follow.py
rlugojr/twitter-pandas
82f706f43e8f6484a64be0b3a1a3b489802430db
[ "BSD-3-Clause" ]
80
2016-05-15T17:35:22.000Z
2022-01-07T20:31:07.000Z
examples/analysis/friends_who_dont_follow.py
rlugojr/twitter-pandas
82f706f43e8f6484a64be0b3a1a3b489802430db
[ "BSD-3-Clause" ]
24
2016-05-15T17:27:35.000Z
2016-07-25T23:29:00.000Z
examples/analysis/friends_who_dont_follow.py
rlugojr/twitter-pandas
82f706f43e8f6484a64be0b3a1a3b489802430db
[ "BSD-3-Clause" ]
21
2016-05-23T20:14:04.000Z
2020-05-09T16:42:38.000Z
from twitterpandas import TwitterPandas from examples.keys import TWITTER_OAUTH_SECRET, TWITTER_OAUTH_TOKEN, TWITTER_CONSUMER_SECRET, TWITTER_CONSUMER_KEY __author__ = 'willmcginnis' def friendship_option(): # get our own user id user_id = tp.api_id # use it to find all of our own friends (people we fol...
33.230769
114
0.670718
c69ef3572815ae870ab3245555cddfa9ed567261
2,573
py
Python
multirunnable/adapter/base.py
Chisanan232/pyocean
b5710660652ad4abe6845693e0576e99f9155084
[ "Apache-2.0" ]
null
null
null
multirunnable/adapter/base.py
Chisanan232/pyocean
b5710660652ad4abe6845693e0576e99f9155084
[ "Apache-2.0" ]
null
null
null
multirunnable/adapter/base.py
Chisanan232/pyocean
b5710660652ad4abe6845693e0576e99f9155084
[ "Apache-2.0" ]
null
null
null
from multirunnable.framework.features import BaseFeatureAdapterFactory as _BaseFeatureAdapterFactory from multirunnable.framework.adapter.collection import BaseList as _BaseList from multirunnable.mode import FeatureMode as _FeatureMode from multirunnable.adapter.collection import FeatureList as _FeatureList from multi...
29.574713
106
0.666148
5b6140a3cc42202616127b683d176afac8de6a31
1,962
py
Python
experiments/expression/visium/visium_prediction_from_saved.py
giovp/spatial-alignment
b03a6508ba581246a3f6367217b2f8df5dcd15d4
[ "MIT" ]
14
2022-01-11T14:51:17.000Z
2022-02-26T20:46:58.000Z
experiments/expression/visium/visium_prediction_from_saved.py
giovp/spatial-alignment
b03a6508ba581246a3f6367217b2f8df5dcd15d4
[ "MIT" ]
3
2022-01-26T17:16:24.000Z
2022-02-24T13:22:39.000Z
experiments/expression/visium/visium_prediction_from_saved.py
giovp/spatial-alignment
b03a6508ba581246a3f6367217b2f8df5dcd15d4
[ "MIT" ]
1
2022-02-23T09:54:37.000Z
2022-02-23T09:54:37.000Z
import torch import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns import sys from os.path import join as pjoin import scanpy as sc import anndata from sklearn.metrics import r2_score, mean_squared_error sys.path.append("../../..") sys.path.append("../../../data") from util impo...
33.254237
83
0.759939
adee00b49f34ca2a75c73c078237f3603c379c51
3,727
py
Python
src/lab2/rawdata/CNYES.py
ntuaha/NewsInsight2
86f6e4ce9cfa37a6a98fe48b01809784274fa0de
[ "MIT" ]
1
2016-04-06T06:11:34.000Z
2016-04-06T06:11:34.000Z
src/lab2/rawdata/CNYES.py
ntuaha/NewsInsight2
86f6e4ce9cfa37a6a98fe48b01809784274fa0de
[ "MIT" ]
null
null
null
src/lab2/rawdata/CNYES.py
ntuaha/NewsInsight2
86f6e4ce9cfa37a6a98fe48b01809784274fa0de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os import psycopg2 import cookielib, urllib2,urllib from lxml import html,etree import StringIO import datetime import json #處理掉unicode 和 str 在ascii上的問題 reload(sys) sys.setdefaultencoding('utf8') from pymongo import ASCENDING, DESCENDING #aha's library from WEB import WEB fr...
29.579365
156
0.617923
6f8fe7cae406df201af1e7a083a1eafe5f4548d7
3,489
py
Python
blatann/examples/central_battery_service.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
40
2018-03-01T19:49:20.000Z
2022-03-31T11:35:06.000Z
blatann/examples/central_battery_service.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
29
2019-03-12T18:29:57.000Z
2022-03-30T04:21:22.000Z
blatann/examples/central_battery_service.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
17
2019-03-27T19:11:12.000Z
2022-03-16T06:00:08.000Z
""" This example demonstrates reading and subscribing to a peripheral's Battery service to get updates on the peripheral's current battery levels. The operations here are programmed in a procedural manner. This can be used alongside any peripheral which implements the Battery Service and advertises the 16-bit Ba...
37.516129
101
0.721124
e4640b297896db5b90c2cccc6448049d431e85f7
17,390
py
Python
src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/media/magicavoxel_vox.py
Mikevin/hobbits
0a99aa97a34abe06a8c0542acd5c96e1a7078ec4
[ "MIT" ]
null
null
null
src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/media/magicavoxel_vox.py
Mikevin/hobbits
0a99aa97a34abe06a8c0542acd5c96e1a7078ec4
[ "MIT" ]
null
null
null
src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/media/magicavoxel_vox.py
Mikevin/hobbits
0a99aa97a34abe06a8c0542acd5c96e1a7078ec4
[ "MIT" ]
null
null
null
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO from enum import Enum import collections if parse_version(kaitaistruct.__version__) < parse_versi...
44.362245
173
0.573088
61c077f400ac8a35b52be0e91fa2d6dec7eba8da
15,578
py
Python
flink-staging/flink-language-binding/flink-python/src/main/python/org/apache/flink/languagebinding/api/python/flink/plan/Environment.py
rainiraj/flink
aa6a7f04c54a1c3675b1d78a3d0cc885a1362fa9
[ "BSD-3-Clause" ]
1
2017-05-17T00:35:10.000Z
2017-05-17T00:35:10.000Z
flink-staging/flink-language-binding/flink-python/src/main/python/org/apache/flink/languagebinding/api/python/flink/plan/Environment.py
rainiraj/flink
aa6a7f04c54a1c3675b1d78a3d0cc885a1362fa9
[ "BSD-3-Clause" ]
15
2015-02-04T22:56:50.000Z
2015-06-25T13:44:53.000Z
flink-staging/flink-language-binding/flink-python/src/main/python/org/apache/flink/languagebinding/api/python/flink/plan/Environment.py
rainiraj/flink
aa6a7f04c54a1c3675b1d78a3d0cc885a1362fa9
[ "BSD-3-Clause" ]
2
2018-06-04T06:19:07.000Z
2021-06-23T11:06:25.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...
45.952802
182
0.5493
a06f51f2b7ad0942405433b30313636de9fad94d
150
py
Python
rest_models/__init__.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
61
2016-12-05T09:09:49.000Z
2022-03-09T13:23:06.000Z
rest_models/__init__.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
51
2016-12-07T10:19:52.000Z
2022-03-11T23:35:23.000Z
rest_models/__init__.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
18
2017-03-11T18:07:17.000Z
2022-03-09T13:14:40.000Z
__VERSION__ = '1.9.0' try: from rest_models.checks import register_checks register_checks() except ImportError: # pragma: no cover pass
18.75
50
0.72
89c0e6d9530e4cd53fcc79e60ae3129736092d4b
846
py
Python
hirst-painting/main.py
JonathanTTSouza/turtle-graphics
ceaac0fcd97063645ef1fa6beb7b7f106a24d126
[ "MIT" ]
null
null
null
hirst-painting/main.py
JonathanTTSouza/turtle-graphics
ceaac0fcd97063645ef1fa6beb7b7f106a24d126
[ "MIT" ]
null
null
null
hirst-painting/main.py
JonathanTTSouza/turtle-graphics
ceaac0fcd97063645ef1fa6beb7b7f106a24d126
[ "MIT" ]
null
null
null
from turtle import Turtle, Screen import random painting_colors = [(201, 164, 112), (152, 75, 50), (221, 201, 138), (57, 95, 126), (170, 152, 44), (138, 31, 20), (135, 163, 183), (196, 94, 75), (49, 121, 88), (143, 177, 149), (95, 75, 77), (76, 39, 32), (164, 146, 157), (16, 98, 71), (232, 176, 165), (54, 46, 48)] # ...
27.290323
267
0.63357
159fe810301f213ac05852b6e4ba1a633854f410
42,181
py
Python
vendor/github.com/elastic/beats/filebeat/tests/system/test_registrar.py
andreiburuntia/cbeat
1cb3aab5386404d2a7703faf61b623b717f2971d
[ "Apache-2.0" ]
2
2021-03-24T08:36:56.000Z
2021-03-31T07:47:24.000Z
vendor/github.com/elastic/beats/filebeat/tests/system/test_registrar.py
andreiburuntia/cbeat
1cb3aab5386404d2a7703faf61b623b717f2971d
[ "Apache-2.0" ]
null
null
null
vendor/github.com/elastic/beats/filebeat/tests/system/test_registrar.py
andreiburuntia/cbeat
1cb3aab5386404d2a7703faf61b623b717f2971d
[ "Apache-2.0" ]
1
2018-10-20T15:28:19.000Z
2018-10-20T15:28:19.000Z
from filebeat import BaseTest import os import platform import time import shutil import json import stat from nose.plugins.skip import Skip, SkipTest # Additional tests: to be implemented # * Check if registrar file can be configured, set config param # * Check "updating" of registrar file # * Check what happens wh...
32.953906
143
0.591902
e4c3beb5f186d677ca26888c9de40950c67c1aa9
1,145
py
Python
mtgz/colors.py
jefperito/mtgz
3ad2cbe8da18ca8a6de3673e03736477fc7168f7
[ "Apache-2.0" ]
null
null
null
mtgz/colors.py
jefperito/mtgz
3ad2cbe8da18ca8a6de3673e03736477fc7168f7
[ "Apache-2.0" ]
null
null
null
mtgz/colors.py
jefperito/mtgz
3ad2cbe8da18ca8a6de3673e03736477fc7168f7
[ "Apache-2.0" ]
null
null
null
class ColoredManaSymbol(): YELLOW = '\033[33m' BLUE = '\033[94m' GREEN = '\033[92m' RED = '\033[91m' BLACK = '\033[30m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def color(self, string): manaCost = '' for letter in string: if letter == 'U': manaCost += self.blue(letter) elif lette...
26.022727
85
0.658515
1978392f6c1723cbd58f7ec090989c51f25c155d
26,450
py
Python
interface.py
redstorm45/word-solver
79fa22740a0d243ff311debf589e129bb6014bcc
[ "MIT" ]
null
null
null
interface.py
redstorm45/word-solver
79fa22740a0d243ff311debf589e129bb6014bcc
[ "MIT" ]
null
null
null
interface.py
redstorm45/word-solver
79fa22740a0d243ff311debf589e129bb6014bcc
[ "MIT" ]
null
null
null
import time import math import tkinter as tk import tkinter.ttk as ttk import tkinter.filedialog as tk_filedialog from board import LETTER_POINTS, move_dir from words import ALPHABET class Interface: def __init__(self, board): pass class ConsoleInterface(Interface): def __init__(self): pass ...
38.112392
169
0.572287
668795bc712294875e94939d49cf435292eeb7b5
460
py
Python
Listing_14-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_14-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_14-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
# Listing_14-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # create a simple Ball class class Ball: # This tells Python we're making a class ...
38.333333
81
0.528261
5a8bcefaf21026b32d5a3f81d45e3339d4c0a8f0
1,102
py
Python
cf/test/run_tests.py
kinow/cf-python
e5f380e23d8549bba9c5e4a3687d30eb4e00fda4
[ "MIT" ]
null
null
null
cf/test/run_tests.py
kinow/cf-python
e5f380e23d8549bba9c5e4a3687d30eb4e00fda4
[ "MIT" ]
null
null
null
cf/test/run_tests.py
kinow/cf-python
e5f380e23d8549bba9c5e4a3687d30eb4e00fda4
[ "MIT" ]
null
null
null
import datetime import os import unittest import cf # Build the test suite from the tests found in the test files. testsuite_setup = unittest.TestSuite() testsuite_setup.addTests(unittest.TestLoader().discover('.', pattern='setup_create_field.py')) testsuite = unittest.TestSuite() testsuite.addTests(unittest.TestLoa...
26.238095
94
0.697822
96d4fda34479ae77f30d08d0e3a092dfa2c31416
1,579
py
Python
segment_image.py
crocodoyle/mri-segtools
30740a0648a343a52342a0f31c0272de55cc369f
[ "MIT" ]
null
null
null
segment_image.py
crocodoyle/mri-segtools
30740a0648a343a52342a0f31c0272de55cc369f
[ "MIT" ]
1
2018-07-31T02:44:47.000Z
2018-07-31T02:44:47.000Z
segment_image.py
crocodoyle/mri-segtools
30740a0648a343a52342a0f31c0272de55cc369f
[ "MIT" ]
null
null
null
from keras.models import load_model import argparse import nibabel as nib import numpy as np from train import dice_coef, dice_coef_loss def predict_segmentation(input_images_path): img_array = np.zeros((1, 240, 240, 48, 3), dtype='float32') img_array[0, :, :, :, 0] = nib.load(input_images_path + 'FLAIR.ni...
38.512195
159
0.691577
3b4f28e72516fb2a2a71c53b4f548bb4e796d0a5
9,045
py
Python
sdk/python/pulumi_azure_nextgen/network/v20161201/route_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20161201/route_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20161201/route_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
52.283237
2,301
0.674627
ea8bbeb62db506d6b511317ae12bfbb4ab1b2c7b
1,568
py
Python
intrustd/tasks.py
intrustd/py-intrustd
0a1e7114fb44ce9736a8fe88eb21e345c746db7a
[ "MIT" ]
null
null
null
intrustd/tasks.py
intrustd/py-intrustd
0a1e7114fb44ce9736a8fe88eb21e345c746db7a
[ "MIT" ]
null
null
null
intrustd/tasks.py
intrustd/py-intrustd
0a1e7114fb44ce9736a8fe88eb21e345c746db7a
[ "MIT" ]
null
null
null
from urllib.parse import urljoin from datetime import datetime import os import requests def schedule_command(cmd, data=None, endpoint=os.getenv('INTRUSTD_ADMIN_ENDPOINT', 'http://admin.intrustd.com.app.local'), run_after=None, retain_until=None, alias=None): d = { 'comma...
37.333333
119
0.64477
ddbe1872e8401f0862648c4eca6a1261fb285d7c
578
py
Python
src/testoob/commandline/list_option.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
src/testoob/commandline/list_option.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
src/testoob/commandline/list_option.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
import parsing parsing.parser.add_option("-l", "--list", action="store_true", help="List the test classes and methods found") parsing.parser.add_option("--list-formatted", metavar="FORMATTER", help="Like option '-l', just formatted (e.g. csv).") def process_options(options): from testoob.running import ListingRunn...
44.461538
119
0.745675
96be450f7e42a41176079534c7fb2139d1fe9658
5,543
py
Python
tests/components/huisbaasje/test_init.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
3
2021-04-27T16:37:48.000Z
2022-02-23T02:47:33.000Z
tests/components/huisbaasje/test_init.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
43
2020-12-21T08:17:05.000Z
2022-03-31T06:04:47.000Z
tests/components/huisbaasje/test_init.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
1
2021-02-08T08:43:22.000Z
2021-02-08T08:43:22.000Z
"""Test cases for the initialisation of the Huisbaasje integration.""" from unittest.mock import patch from huisbaasje import HuisbaasjeException from homeassistant.components import huisbaasje from homeassistant.config_entries import ( CONN_CLASS_CLOUD_POLL, ENTRY_STATE_LOADED, ENTRY_STATE_NOT_LOADED, ...
35.993506
77
0.670034
cac9627f2bca189a0fbacedea3fc38d5e7861a97
724
py
Python
src/packages/default/conditions/unix_server_conditions.py
jordanhatcher/Automation
e8a25abef93ab2d1bedfa1416b00879d0a4e8049
[ "CC0-1.0" ]
1
2016-01-04T05:06:44.000Z
2016-01-04T05:06:44.000Z
src/packages/default/conditions/unix_server_conditions.py
jordanhatcher/Automation
e8a25abef93ab2d1bedfa1416b00879d0a4e8049
[ "CC0-1.0" ]
null
null
null
src/packages/default/conditions/unix_server_conditions.py
jordanhatcher/Automation
e8a25abef93ab2d1bedfa1416b00879d0a4e8049
[ "CC0-1.0" ]
null
null
null
""" unix_server_conditions """ import logging from pubsub import pub from condition import Condition, link LOGGER = logging.getLogger(__name__) CONDITION_CLASS_NAME = 'UnixServerConditions' class UnixServerConditions(Condition): """ UnixServerConditions Conditions for handling messages sent to the Uni...
18.1
65
0.620166
b2627dff2dbbb6da356c29145923d5b1c2152bce
1,862
py
Python
npdk/core.py
VunkLai/npdk
b709e10b743c470c2b45f7bc95856529b777773a
[ "MIT" ]
null
null
null
npdk/core.py
VunkLai/npdk
b709e10b743c470c2b45f7bc95856529b777773a
[ "MIT" ]
null
null
null
npdk/core.py
VunkLai/npdk
b709e10b743c470c2b45f7bc95856529b777773a
[ "MIT" ]
null
null
null
import abc import argparse import sys import traceback import typing from dataclasses import dataclass import attr from npdk import exceptions @attr.s class Record: result = attr.ib(default=None) message: str = attr.ib(default='success') status: str = attr.ib(default='OK') exit_code: int = attr.ib(d...
26.6
89
0.603115
7ac741de07b3cb6131d7f4f46746e4608a14cefd
3,216
py
Python
src/python/pants/backend/python/rules/python_create_binary.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/rules/python_create_binary.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
1
2019-07-29T16:58:21.000Z
2019-07-29T16:58:21.000Z
src/python/pants/backend/python/rules/python_create_binary.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.python.rules.inject_init import InjectedInitDigest from pants.backend.python.rules.pex import CreatePex, Pex, PexInterpreterContraints, PexRequirements from pants.backen...
42.88
126
0.819341
f61496aeef1cfeca5701dcc7bf48e330c6408233
9,697
py
Python
checkin/views.py
EncryptEx/myhackupc
3b7c8bce8528e61aab65c976a3c9b4a700210c09
[ "MIT" ]
null
null
null
checkin/views.py
EncryptEx/myhackupc
3b7c8bce8528e61aab65c976a3c9b4a700210c09
[ "MIT" ]
null
null
null
checkin/views.py
EncryptEx/myhackupc
3b7c8bce8528e61aab65c976a3c9b4a700210c09
[ "MIT" ]
null
null
null
import json from django.conf import settings from django.contrib import messages from django.http import HttpResponseRedirect, Http404 from django_filters.views import FilterView from django_tables2 import SingleTableMixin from rest_framework.views import APIView from django.http import HttpResponse, JsonResponse fro...
45.525822
116
0.626173
223d52d169fc05d2a6ea71bd68f532504045e576
739
py
Python
semopy/example.py
YoungjuneKwon/forked-semopy
9daba4da1563dc41810e0479ae35260b7ee6a1a6
[ "MIT" ]
2
2020-08-25T14:25:46.000Z
2021-01-08T12:35:59.000Z
semopy/example.py
YoungjuneKwon/forked-semopy
9daba4da1563dc41810e0479ae35260b7ee6a1a6
[ "MIT" ]
null
null
null
semopy/example.py
YoungjuneKwon/forked-semopy
9daba4da1563dc41810e0479ae35260b7ee6a1a6
[ "MIT" ]
1
2021-01-20T12:24:19.000Z
2021-01-20T12:24:19.000Z
'''An example model from the paper. get_model() retrieves a string description of the model, get_data() retrieves a pandas dataframe with data for the model. ''' import pandas as pd import os __mod = '''# structural part eta3 ~ x1 + x2 eta4 ~ x3 x3 ~ eta1 + eta2 + x1 + x4 x4 ~ eta4 x5 ~ x4 # measurement part eta1 =~ ...
21.735294
77
0.653586
afadbc0aaffc5ef4eb72e9577d141c5c0e1dbc76
23,122
py
Python
src/unity/python/turicreate/toolkits/_model.py
JamesDale/turicreate
ab0dc145862d7a11d2c367e4952be9befecc99a3
[ "BSD-3-Clause" ]
1
2018-10-26T12:36:11.000Z
2018-10-26T12:36:11.000Z
src/unity/python/turicreate/toolkits/_model.py
IchrakBrahmi/turicreate
3c6b0320a0637b3573d77424977acea3ff0a583f
[ "BSD-3-Clause" ]
null
null
null
src/unity/python/turicreate/toolkits/_model.py
IchrakBrahmi/turicreate
3c6b0320a0637b3573d77424977acea3ff0a583f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause ''' @package turicreate.toolkits Defines a basic interface for a model object. ''' ...
33.558781
131
0.579967
eba6ce1c1e2f174547d368a552145476a657f2d2
283
py
Python
Lecture 01 - Introduction to Python/square_root.py
ag-ds-bubble/MIT6.00.1x
9e8682d40d3e6036f28ad06a4710db30ae3749da
[ "MIT" ]
null
null
null
Lecture 01 - Introduction to Python/square_root.py
ag-ds-bubble/MIT6.00.1x
9e8682d40d3e6036f28ad06a4710db30ae3749da
[ "MIT" ]
null
null
null
Lecture 01 - Introduction to Python/square_root.py
ag-ds-bubble/MIT6.00.1x
9e8682d40d3e6036f28ad06a4710db30ae3749da
[ "MIT" ]
null
null
null
# Square root algo - Hero of Alexandria num = 16 eps= 1e-20 guess = 9 diff = abs(num-guess**2) iteration = 0 while diff>eps: guess = (guess + (num/guess))/2 diff = abs(num-guess**2) iteration+=1 print(f'Iteration {iteration}, Guess Updated : {guess}, diff : {diff}')
23.583333
75
0.636042
6016046ec063efc77efeac96ff28c7c487c3b5a0
1,791
py
Python
rossum/schema/commands.py
rossumai/rossumctl
647c2ba9c2b7eb44759b3857b93276368e3d14c8
[ "MIT" ]
null
null
null
rossum/schema/commands.py
rossumai/rossumctl
647c2ba9c2b7eb44759b3857b93276368e3d14c8
[ "MIT" ]
10
2020-08-24T09:20:38.000Z
2020-09-29T08:03:57.000Z
rossum/schema/commands.py
rossumai/rossumctl
647c2ba9c2b7eb44759b3857b93276368e3d14c8
[ "MIT" ]
null
null
null
import json from typing import Optional, IO import click from tabulate import tabulate from rossum import option, argument from rossum.lib.api_client import APIClient, get_json, RossumClient from rossum.lib import QUEUES from . import upload from .xlsx import SchemaToXlsx from .transform import commands as transfor...
26.731343
97
0.687326
ac4d44a61f09045e84da5170ae7adb8b477270e3
196
py
Python
cms/test.py
mbiokyle29/bioinformatics
bcf1a38865b01044c2f7bed282aaee832ec07875
[ "MIT" ]
null
null
null
cms/test.py
mbiokyle29/bioinformatics
bcf1a38865b01044c2f7bed282aaee832ec07875
[ "MIT" ]
null
null
null
cms/test.py
mbiokyle29/bioinformatics
bcf1a38865b01044c2f7bed282aaee832ec07875
[ "MIT" ]
null
null
null
Release=80 from cogent.db.ensembl import Species, Genome human = Genome(Species='human', Release=Release, account=None) gene = human.getGeneByStableId(StableId='ENSG00000205274') print gene.Symbol
39.2
62
0.811224
e8ece03f7dcff2066144c3f8288de05da2737f5e
1,594
gyp
Python
binding.gyp
aminya/node-pathwatcher
f062e348cf8c1c617bcfadd677dfe8f4ff9704f8
[ "MIT" ]
20
2018-07-05T08:22:58.000Z
2021-07-21T03:56:40.000Z
binding.gyp
aminya/node-pathwatcher
f062e348cf8c1c617bcfadd677dfe8f4ff9704f8
[ "MIT" ]
7
2018-07-10T00:41:59.000Z
2019-07-21T15:13:49.000Z
binding.gyp
aminya/node-pathwatcher
f062e348cf8c1c617bcfadd677dfe8f4ff9704f8
[ "MIT" ]
3
2018-08-16T00:42:17.000Z
2021-02-22T11:24:26.000Z
{ "targets": [ { "target_name": "pathwatcher", "sources": [ "src/main.cc", "src/common.cc", "src/common.h", "src/handle_map.cc", "src/handle_map.h", "src/unsafe_persistent.h", ], "include_dirs": [ "src", '<!(node -e "require(\...
28.981818
122
0.458595
9273021fc7c8dc9b14cc397d83a193fefae9fd73
4,768
py
Python
vrequest/py_vthread.py
cilame/vrequest
01d98cbd384e9dcd11dfe76a094e8d34427b4c36
[ "MIT" ]
40
2019-04-09T08:09:16.000Z
2022-03-16T07:44:30.000Z
vrequest/py_vthread.py
cilame/vrequest
01d98cbd384e9dcd11dfe76a094e8d34427b4c36
[ "MIT" ]
1
2019-10-08T15:04:02.000Z
2021-04-15T06:01:21.000Z
vrequest/py_vthread.py
cilame/vrequest
01d98cbd384e9dcd11dfe76a094e8d34427b4c36
[ "MIT" ]
13
2019-10-25T01:10:59.000Z
2021-12-22T05:43:17.000Z
class pool: import time,queue,traceback,builtins,functools from threading import Thread,RLock,current_thread,main_thread orig_func = {} _org_print = print lock = RLock() class KillThreadParams(Exception): pass _monitor = None _monitor_run_num = {} _pool_queue = {} _pool_func_num ...
40.067227
116
0.598364
649b9a9df8a0bfc741affd98961099950cfdaf2c
1,006
py
Python
tmdb/three/guest_sessions.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
4
2017-05-16T02:30:52.000Z
2021-07-01T13:21:27.000Z
tmdb/three/guest_sessions.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
4
2020-09-03T03:19:49.000Z
2021-12-21T05:24:04.000Z
tmdb/three/guest_sessions.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
3
2021-02-15T18:13:08.000Z
2021-04-10T03:53:58.000Z
from .base import ENDPOINT, process_response class GuestSessionsMixin: @process_response def get_guest_session_rated_movies(self, guest_session_id, **kwargs): """ GET /guest_session/{guest_session_id}/rated/movies """ url = f"{ENDPOINT}/3/guest_session/{guest_session_id}/rated...
32.451613
80
0.673956
ee2ab87e48d7a58aefee2ce40aef23f7d17b03a9
26,867
py
Python
pybind/slxos/v17r_2_00/tm_state/tmcpustatsslotallgrp/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/tm_state/tmcpustatsslotallgrp/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/tm_state/tmcpustatsslotallgrp/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
65.211165
466
0.7437
bf251bd041cc61f10a45e95b37b70a7d1a7f7a96
1,204
py
Python
leaderboard/infrastructure.py
metisto/leaderboard
95a6f1066bbf534f71353823acac2448b4845cb7
[ "MIT" ]
null
null
null
leaderboard/infrastructure.py
metisto/leaderboard
95a6f1066bbf534f71353823acac2448b4845cb7
[ "MIT" ]
null
null
null
leaderboard/infrastructure.py
metisto/leaderboard
95a6f1066bbf534f71353823acac2448b4845cb7
[ "MIT" ]
null
null
null
import json from leaderboard.model import Player, default_rating, Rating, sort_player_by_rating class JsonPlayerRepository(object): def __init__(self, filename): self.__filename = filename self.__data = self.__load() def find_player_by_pseudo(self, pseudo): if pseudo in self.__data: ...
30.871795
112
0.624585
365ab8b75b309e6cd2d5bbcf038b3e47d6e07642
2,805
py
Python
tests/test_simlc.py
abduzoghbi/aztools
949cc2ec0dbb4426be0d39c5c9832243c4dbde43
[ "MIT" ]
null
null
null
tests/test_simlc.py
abduzoghbi/aztools
949cc2ec0dbb4426be0d39c5c9832243c4dbde43
[ "MIT" ]
null
null
null
tests/test_simlc.py
abduzoghbi/aztools
949cc2ec0dbb4426be0d39c5c9832243c4dbde43
[ "MIT" ]
null
null
null
import numpy as np import unittest import sys import os sys.path.insert(0, os.path.abspath( os.path.join(os.path.dirname(__file__), '..'))) import aztools as az class SimLCTest(unittest.TestCase): """testing SimLC.""" def test_powerlaw_psd(self): sim = az.SimLC() sim.add_model('powerla...
29.21875
68
0.532977
3388fced0b9bae6fd2d06fbf95ad27d066601af6
17,230
py
Python
src/mykrobe/typing/typer/genotyper.py
mbhall88/mykrobe
56ee772afdfd61560851aab1f5495916a0595f01
[ "MIT" ]
null
null
null
src/mykrobe/typing/typer/genotyper.py
mbhall88/mykrobe
56ee772afdfd61560851aab1f5495916a0595f01
[ "MIT" ]
null
null
null
src/mykrobe/typing/typer/genotyper.py
mbhall88/mykrobe
56ee772afdfd61560851aab1f5495916a0595f01
[ "MIT" ]
null
null
null
from __future__ import print_function import os import json import csv import glob import logging import subprocess from copy import copy from mykrobe import K from mykrobe.metagenomics import LineagePredictor from mykrobe.typing import SequenceProbeCoverage from mykrobe.typing import VariantProbeCoverage from mykrob...
36.895075
113
0.597562
4d428af36734dd46b2ecfb9d06e56f9d3cb1b7b9
1,547
py
Python
homeassistant/components/deconz/lock.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/deconz/lock.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
homeassistant/components/deconz/lock.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Support for deCONZ locks.""" from homeassistant.components.lock import DOMAIN, LockEntity from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import LOCKS, NEW_LIGHT from .deconz_device import DeconzDevice from .gateway import get_gateway_from_co...
28.127273
86
0.683258
bb075b2eda59f9888472d384fb76b598c1ff3493
173
py
Python
notebook/str_replace_with_empty.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/str_replace_with_empty.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/str_replace_with_empty.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
s = 'abc-xyz-123-789-ABC-XYZ' print(s.replace('xyz', '')) # abc--123-789-ABC-XYZ import re s = 'abc-xyz-123-789-ABC-XYZ' print(re.sub('\d+', '', s)) # abc-xyz---ABC-XYZ
14.416667
29
0.583815
4a42e56a9112f21f78d4d6859ca15d219d9061d7
3,862
py
Python
caserec/recommenders/rating_prediction/most_popular.py
caserec2018/CaseRecommender
1b63fe79aa26786c99f35e6b8f0a0dd9e591811b
[ "MIT" ]
16
2018-09-19T07:29:24.000Z
2022-03-30T07:32:36.000Z
caserec/recommenders/rating_prediction/most_popular.py
caserec2018/CaseRecommender
1b63fe79aa26786c99f35e6b8f0a0dd9e591811b
[ "MIT" ]
1
2018-09-10T17:43:56.000Z
2018-09-10T17:43:56.000Z
caserec/recommenders/rating_prediction/most_popular.py
caserec2018/CaseRecommender
1b63fe79aa26786c99f35e6b8f0a0dd9e591811b
[ "MIT" ]
2
2019-07-11T10:13:24.000Z
2020-03-12T10:09:39.000Z
# coding=utf-8 """" Most Popular Collaborative Filtering Recommender [Rating Prediction] Most Popular predicts ratings for unobserved items for each user based on popularity of user and items. """ # © 2018. Case Recommender (MIT License) from caserec.recommenders.rating_prediction.base_rating_prediction...
33.877193
110
0.632315
29ba42abe0903088a59ce4037be0245b5b71124c
206
py
Python
exampleapp/exampleapp/processes.py
gjask/shelter
1e8fb3d79e5fd97db98a5acca1810ef5ea3eaf42
[ "BSD-3-Clause" ]
7
2016-08-19T19:44:16.000Z
2022-01-14T10:57:37.000Z
exampleapp/exampleapp/processes.py
gjask/shelter
1e8fb3d79e5fd97db98a5acca1810ef5ea3eaf42
[ "BSD-3-Clause" ]
2
2016-11-30T15:24:39.000Z
2019-11-04T19:04:49.000Z
exampleapp/exampleapp/processes.py
gjask/shelter
1e8fb3d79e5fd97db98a5acca1810ef5ea3eaf42
[ "BSD-3-Clause" ]
5
2016-11-26T16:00:23.000Z
2019-12-13T17:47:52.000Z
import base64 import os from shelter.core.processes import BaseProcess class WarmCache(BaseProcess): interval = 10 def loop(self): self.context.value = base64.b64encode(os.urandom(6))
14.714286
60
0.718447
a3769204eb6d3e9671119c813bcffe59fdd9c636
9,806
py
Python
bsp/raspberry-pico/libraries/pico-sdk/tools/extract_configs.py
cazure/rt-thread
1bdde743433d331740766c895ff867df6268df20
[ "Apache-2.0" ]
7,482
2015-01-01T09:23:08.000Z
2022-03-31T19:34:05.000Z
bsp/raspberry-pico/libraries/pico-sdk/tools/extract_configs.py
cazure/rt-thread
1bdde743433d331740766c895ff867df6268df20
[ "Apache-2.0" ]
2,543
2015-01-09T02:01:34.000Z
2022-03-31T23:10:14.000Z
bsp/raspberry-pico/libraries/pico-sdk/tools/extract_configs.py
cazure/rt-thread
1bdde743433d331740766c895ff867df6268df20
[ "Apache-2.0" ]
4,645
2015-01-06T07:05:31.000Z
2022-03-31T18:21:50.000Z
#!/usr/bin/env python3 # # Copyright (c) 2021 Raspberry Pi (Trading) Ltd. # # SPDX-License-Identifier: BSD-3-Clause # # # Script to scan the Raspberry Pi PICO SDK tree searching for configuration items # Outputs a tab separated file of the configuration item: # name location description type advanced default depends en...
48.544554
282
0.552009
aa99c425fd7d254eba6e04de1e9f5b9dbbabc59e
6,386
py
Python
ultracart/models/screen_recording_page_view_data_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/screen_recording_page_view_data_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/screen_recording_page_view_data_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ScreenRecordingPageViewD...
28.765766
110
0.604134
dd52ab7821083bd5003c19b54a7ff6e0a25af53f
3,419
py
Python
python/dgl/data/icews18.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
6
2020-04-27T16:31:53.000Z
2022-03-24T16:27:51.000Z
python/dgl/data/icews18.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
null
null
null
python/dgl/data/icews18.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
4
2020-03-17T11:21:56.000Z
2020-07-02T09:42:24.000Z
from scipy import io import numpy as np from dgl import DGLGraph import os import datetime import warnings from .utils import get_download_dir, download, extract_archive, loadtxt class ICEWS18(object): """ Integrated Crisis Early Warning System (ICEWS18) Event data consists of coded interactions between ...
37.571429
112
0.596666
6fc5f339b37bd501d8b06c40797e236d638d3ba9
8,633
py
Python
tools/configen/tests/test_generate.py
cschell/hydra
f1118812efa6e76f9df3146a082fbff996c442d4
[ "MIT" ]
1
2021-12-15T17:10:40.000Z
2021-12-15T17:10:40.000Z
tools/configen/tests/test_generate.py
cschell/hydra
f1118812efa6e76f9df3146a082fbff996c442d4
[ "MIT" ]
null
null
null
tools/configen/tests/test_generate.py
cschell/hydra
f1118812efa6e76f9df3146a082fbff996c442d4
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import sys from textwrap import dedent from difflib import unified_diff from pathlib import Path from typing import Any from pytest import mark, param from hydra.utils import get_class, instantiate, ConvertMode from omegaconf import OmegaConf fr...
28.681063
111
0.55589
82c30367dd4a1c52efb8d4c2de125fee14c287ac
5,542
py
Python
assignments/assignment2/layers.py
BulyginMaksim/dlcourse_ai
0391555b043e8b64faf3f0da76455d1bee4d3f55
[ "MIT" ]
null
null
null
assignments/assignment2/layers.py
BulyginMaksim/dlcourse_ai
0391555b043e8b64faf3f0da76455d1bee4d3f55
[ "MIT" ]
null
null
null
assignments/assignment2/layers.py
BulyginMaksim/dlcourse_ai
0391555b043e8b64faf3f0da76455d1bee4d3f55
[ "MIT" ]
null
null
null
import numpy as np # from previous hw def softmax(predictions): ''' Computes probabilities from scores Arguments: predictions, np array, shape is either (N) or (batch_size, N) - classifier output Returns: probs, np array of the same shape as predictions - probability for ev...
30.960894
93
0.63118
391de2d6d68257cd08e58aec40aa6095a16dd173
642
py
Python
tester/tester_create/__init__.py
Espigah/index_performance_improvement
78f4408141e37a8eb1807417af51f32bcaaa3c40
[ "Apache-2.0" ]
null
null
null
tester/tester_create/__init__.py
Espigah/index_performance_improvement
78f4408141e37a8eb1807417af51f32bcaaa3c40
[ "Apache-2.0" ]
null
null
null
tester/tester_create/__init__.py
Espigah/index_performance_improvement
78f4408141e37a8eb1807417af51f32bcaaa3c40
[ "Apache-2.0" ]
null
null
null
import normalized import denormalized from tqdm import tqdm def denormalized_run(session, MAX): for i in tqdm(range(MAX), desc=f"denormalized::create"): denormalized.create_purchase(session) denormalized.create_product(session) denormalized.create_customer(session) pass def normalize...
24.692308
60
0.719626
299e7fdd273419b0484728173bf53b814a645565
149,090
py
Python
test/regression.py
arosen93/cclib
81cd4a81cc4a3bbed7016b3e417ca9bff8ad3a92
[ "BSD-3-Clause" ]
null
null
null
test/regression.py
arosen93/cclib
81cd4a81cc4a3bbed7016b3e417ca9bff8ad3a92
[ "BSD-3-Clause" ]
1
2018-04-04T21:39:36.000Z
2018-04-05T14:09:14.000Z
test/regression.py
arosen93/cclib
81cd4a81cc4a3bbed7016b3e417ca9bff8ad3a92
[ "BSD-3-Clause" ]
null
null
null
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2020, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or later....
41.060314
129
0.677195
fd71669e18afde6c5e3f3f14d322271ef5f51267
4,536
py
Python
walker.py
bhyang/microrobot-locomotion
bc370d55b42a16d5d7f6ef44cba7343e2864b7b8
[ "MIT" ]
3
2019-03-25T17:51:08.000Z
2022-03-17T13:10:26.000Z
walker.py
bhyang/microrobot-locomotion
bc370d55b42a16d5d7f6ef44cba7343e2864b7b8
[ "MIT" ]
null
null
null
walker.py
bhyang/microrobot-locomotion
bc370d55b42a16d5d7f6ef44cba7343e2864b7b8
[ "MIT" ]
4
2018-04-06T15:45:28.000Z
2019-08-17T04:59:16.000Z
import vrep_api.vrep as vrep CLIENTID = 0 VALID_ERROR_CODES = (0 , 1) GLOBALID = -1 MOTOR_NAME_TEMPLATES = ['flv', 'mlv', 'blv', 'brv', 'mrv', 'frv', 'flh', 'mlh',\ 'blh', 'brh', 'mrh', 'frh'] DEFAULT_BIASES = (.925, 1) # To correct for model imbalances class Walker: def __init__(self, client=0, name='Walker'...
35.716535
114
0.625441
84499689e12027a4d5b59d570a6f552be5b3fc02
87,417
py
Python
Lib/test/test_configparser.py
rng-dynamics/RustPython
6165aadcc4e80e0f48f3e784e17b3c7f80d21a8a
[ "CC-BY-4.0", "MIT" ]
null
null
null
Lib/test/test_configparser.py
rng-dynamics/RustPython
6165aadcc4e80e0f48f3e784e17b3c7f80d21a8a
[ "CC-BY-4.0", "MIT" ]
null
null
null
Lib/test/test_configparser.py
rng-dynamics/RustPython
6165aadcc4e80e0f48f3e784e17b3c7f80d21a8a
[ "CC-BY-4.0", "MIT" ]
null
null
null
import collections import configparser import io import os import pathlib import textwrap import unittest import warnings from test import support from test.support import os_helper class SortedDict(collections.UserDict): def items(self): return sorted(self.data.items()) def keys(self): ret...
40.67799
84
0.567178
9be75b1077224f558488b70830335e7ceebb9b3f
2,169
py
Python
tests/test_validation.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
1
2021-11-01T02:18:55.000Z
2021-11-01T02:18:55.000Z
tests/test_validation.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
100
2021-04-21T10:00:09.000Z
2022-03-24T23:13:32.000Z
tests/test_validation.py
tranvietanh1991/tomodachi
a815fc718b6cc42dc3fe241abb0e5a5829eba0e8
[ "MIT" ]
1
2020-09-04T05:53:16.000Z
2020-09-04T05:53:16.000Z
import pytest from tomodachi.validation.validation import ( RegexMissmatchException, TooLargeException, TooSmallException, validate_field_length, validate_field_regex, ) def test_regex_success() -> None: validate_field_regex( "af047ca5-e8f4-48a9-ab01-1d948f635f95", r"^[0-9a-f]{8}-[0-9...
25.22093
113
0.67681
efd82928cf580af61f735e63327023ae1a3c89fa
4,791
py
Python
users/migrations/0001_initial.py
bezyakina/yamdb-api
d9181b8e81a1076c8ccf9b312bad4ce175aa36cc
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
bezyakina/yamdb-api
d9181b8e81a1076c8ccf9b312bad4ce175aa36cc
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
bezyakina/yamdb-api
d9181b8e81a1076c8ccf9b312bad4ce175aa36cc
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-10-28 19:51 import django.contrib.auth.models from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("auth", "0011_update_proxy_permissions"), ] operations = [ migrations.CreateModel( ...
35.753731
77
0.359006
dbf3788cdb366acc26a9ccc2d3313f39f2b37eec
273
py
Python
starter.py
Vlad116/itis-iot-course-project
99597108994d8141ff6b646def1612b53a7d3d55
[ "MIT" ]
null
null
null
starter.py
Vlad116/itis-iot-course-project
99597108994d8141ff6b646def1612b53a7d3d55
[ "MIT" ]
null
null
null
starter.py
Vlad116/itis-iot-course-project
99597108994d8141ff6b646def1612b53a7d3d55
[ "MIT" ]
null
null
null
import threading from service_to_server import service as service from service_worker.src import worker if __name__ == '__main__': thread2 = threading.Thread(target=service.run) thread3 = threading.Thread(target=worker.run) thread2.start() thread3.start()
27.3
50
0.761905
7a09d82ea5956b502689645978c08586b9dd2d90
3,866
py
Python
bddtests/peer/chaincode_event_pb2.py
drakejund/contract
e1dbfcff94f348a0040062fd04c48b0e42b64762
[ "Apache-2.0" ]
172
2017-10-12T07:56:32.000Z
2022-03-10T11:08:02.000Z
bddtests/peer/chaincode_event_pb2.py
Cielo2017/hyperledger-fabric-gm
40f2d1d03a96872b52cf6c5ba8a5c634e36089a6
[ "Apache-2.0" ]
17
2019-01-08T07:21:18.000Z
2020-11-17T03:46:27.000Z
bddtests/peer/chaincode_event_pb2.py
Cielo2017/hyperledger-fabric-gm
40f2d1d03a96872b52cf6c5ba8a5c634e36089a6
[ "Apache-2.0" ]
89
2017-09-14T04:38:56.000Z
2021-05-21T17:24:48.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: peer/chaincode_event.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
37.533981
378
0.759183
783612b66a0f90e9039fb326c1d2b6260489f4d3
890
py
Python
src/serving/CassandraWrapper.py
johannchopin/htw-m1-softwarearchitecture
85256c5643b0b8b3016f007ca56ade37e048c683
[ "Apache-2.0" ]
null
null
null
src/serving/CassandraWrapper.py
johannchopin/htw-m1-softwarearchitecture
85256c5643b0b8b3016f007ca56ade37e048c683
[ "Apache-2.0" ]
1
2021-01-20T21:48:22.000Z
2021-01-20T21:50:42.000Z
src/serving/CassandraWrapper.py
johannchopin/htw-m1-softwarearchitecture
85256c5643b0b8b3016f007ca56ade37e048c683
[ "Apache-2.0" ]
null
null
null
# pip install cassandra-driver from cassandra import AlreadyExists from cassandra.cluster import Cluster class CassandraWrapper: def __init__(self, ): self.cluster = Cluster(['127.0.0.1'], port=9042) self._setup_db() # Create the lambda keyspace self.session = self.cluster.connect( ...
31.785714
116
0.651685
67c9f0eda667a23270701108a42bac4b57617b6d
6,161
py
Python
aiopg/utils.py
eumiro/aiopg
8754e5056d2418c4241eaa14351691f9b8d49f89
[ "BSD-2-Clause" ]
null
null
null
aiopg/utils.py
eumiro/aiopg
8754e5056d2418c4241eaa14351691f9b8d49f89
[ "BSD-2-Clause" ]
null
null
null
aiopg/utils.py
eumiro/aiopg
8754e5056d2418c4241eaa14351691f9b8d49f89
[ "BSD-2-Clause" ]
null
null
null
import asyncio import sys import warnings from collections.abc import Coroutine import psycopg2 from .log import logger try: ensure_future = asyncio.ensure_future except AttributeError: ensure_future = getattr(asyncio, 'async') if sys.version_info >= (3, 7, 0): __get_running_loop = asyncio.get_running_l...
23.972763
78
0.594709
32b6f4ebf53ef9432dca209fffefb626c8bb2878
1,681
py
Python
app/task.py
anonier/python-wechaty
cce2fec4c25d6bd5ba83f92a2bbefb2af07fcae7
[ "Apache-2.0" ]
null
null
null
app/task.py
anonier/python-wechaty
cce2fec4c25d6bd5ba83f92a2bbefb2af07fcae7
[ "Apache-2.0" ]
null
null
null
app/task.py
anonier/python-wechaty
cce2fec4c25d6bd5ba83f92a2bbefb2af07fcae7
[ "Apache-2.0" ]
null
null
null
import json import random import requests from apscheduler.schedulers.asyncio import AsyncIOScheduler from requests_toolbelt import MultipartEncoder from wechaty import Wechaty from wechaty.plugin import WechatyPlugin from wechaty_puppet import FileBox ip = 'http://192.168.1.111/' class Task(WechatyPlugin): @p...
31.12963
96
0.571089
b9a17296588b5ea5ae5bb3c1ab3099eca0df5972
2,774
py
Python
assignments/generate_pdf.py
plapenamanero/assignment_generator
def3a080c5a18c3a2e02fcdd1421c46fee415658
[ "MIT" ]
null
null
null
assignments/generate_pdf.py
plapenamanero/assignment_generator
def3a080c5a18c3a2e02fcdd1421c46fee415658
[ "MIT" ]
null
null
null
assignments/generate_pdf.py
plapenamanero/assignment_generator
def3a080c5a18c3a2e02fcdd1421c46fee415658
[ "MIT" ]
null
null
null
from PyPDF2 import PdfFileWriter, PdfFileReader from IPython.display import display import ipywidgets as widgets import threading import os import shutil from . import gui def create_pdfs(assignment): """ Creates individual PDF files from a file with all sheets. Ask for the original file using a file dial...
29.510638
78
0.61031
cb8d43fb91f5dd41e1232715a6557dc198b0a1c6
999
py
Python
python/081-090/Maximal Rectangle.py
KaiyuWei/leetcode
fd61f5df60cfc7086f7e85774704bacacb4aaa5c
[ "MIT" ]
150
2015-04-04T06:53:49.000Z
2022-03-21T13:32:08.000Z
python/081-090/Maximal Rectangle.py
yizhu1012/leetcode
d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7
[ "MIT" ]
1
2015-04-13T15:15:40.000Z
2015-04-21T20:23:16.000Z
python/081-090/Maximal Rectangle.py
yizhu1012/leetcode
d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7
[ "MIT" ]
64
2015-06-30T08:00:07.000Z
2022-01-01T16:44:14.000Z
class Solution: # @param {character[][]} matrix # @return {integer} def maximalRectangle(self, matrix): if len(matrix) == 0: return 0 h = [0] * (len(matrix[0])+1) res = 0 for i in range(len(matrix)): matrix[i].append('0') mystack =...
33.3
79
0.37037
2fd9f5314a326bf2e563f3dcffc0b8b88c1d6226
7,530
py
Python
tests/test_corpus.py
arianpasquali/textacy
b08b1585237154b95e1dfb3e07e830eddb45d1a4
[ "Apache-2.0" ]
null
null
null
tests/test_corpus.py
arianpasquali/textacy
b08b1585237154b95e1dfb3e07e830eddb45d1a4
[ "Apache-2.0" ]
null
null
null
tests/test_corpus.py
arianpasquali/textacy
b08b1585237154b95e1dfb3e07e830eddb45d1a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import numpy as np import pytest import spacy from textacy import Corpus from textacy import cache from textacy import compat from textacy.datasets.capitol_words import CapitolWords DATASET = CapitolWords() pytestmark = pytest.mark.ski...
38.22335
97
0.641833
a527b78dbaa58d61eaa50337eb9ce225be4f4f75
2,210
py
Python
vali/views.py
cnanyi/django-theme-vali-admin
fc1781ebdf2dbb456ca0aa35d18e81eb62f7789d
[ "MIT" ]
6
2021-08-07T10:51:25.000Z
2022-02-25T04:59:02.000Z
vali/views.py
cnanyi/django-theme-vali-admin
fc1781ebdf2dbb456ca0aa35d18e81eb62f7789d
[ "MIT" ]
1
2020-02-03T05:47:59.000Z
2020-02-03T05:47:59.000Z
vali/views.py
cnanyi/django-theme-vali-admin
fc1781ebdf2dbb456ca0aa35d18e81eb62f7789d
[ "MIT" ]
2
2021-09-15T10:22:05.000Z
2022-01-19T07:12:04.000Z
from django.shortcuts import render from django.views.generic import TemplateView # Create your views here. class ValiDashboardView(TemplateView): template_name = 'vali/dashboard.html' # default icons data top_icons = [{"title": "demo1", "value": 5, "style": "primary", "icon": "fa-users"}, ...
40.925926
149
0.476471
e090c193e2546844bc60bb4dc720543d0e60ad26
2,374
py
Python
src/bayes_tutorial/solutions/estimation.py
seanreed1111/bayesian-stats-modelling-tutorial
01d9c0d4f781c9d4847b175d4c3662688743be50
[ "MIT" ]
602
2018-02-01T19:06:18.000Z
2022-03-09T16:07:46.000Z
src/bayes_tutorial/solutions/estimation.py
seanreed1111/bayesian-stats-modelling-tutorial
01d9c0d4f781c9d4847b175d4c3662688743be50
[ "MIT" ]
61
2018-06-26T04:39:50.000Z
2021-08-02T18:09:16.000Z
src/bayes_tutorial/solutions/estimation.py
seanreed1111/bayesian-stats-modelling-tutorial
01d9c0d4f781c9d4847b175d4c3662688743be50
[ "MIT" ]
261
2018-07-08T02:44:22.000Z
2022-03-07T18:15:20.000Z
import janitor import numpy as np import pandas as pd from pyprojroot import here import pymc3 as pm import arviz as az def naive_estimate(data): estimated_p = data.join_apply( lambda x: x["num_favs"] / x["num_customers"] if x["num_customers"] > 0 else np.nan, "p_hat", ) re...
28.261905
79
0.635636
048b2cb1156f8b64829591582b234d22e2044455
1,006
py
Python
test/test_v1_size_create_request.py
metal-stack/metal-python
cdf40fa86d2b2944f9818cef1c6723b1eecc506e
[ "MIT" ]
7
2020-12-21T05:24:24.000Z
2022-02-12T20:55:32.000Z
test/test_v1_size_create_request.py
metal-stack/metal-python
cdf40fa86d2b2944f9818cef1c6723b1eecc506e
[ "MIT" ]
6
2020-09-16T07:23:34.000Z
2022-01-18T12:05:30.000Z
test/test_v1_size_create_request.py
metal-stack/metal-python
cdf40fa86d2b2944f9818cef1c6723b1eecc506e
[ "MIT" ]
null
null
null
# coding: utf-8 """ metal-api API to manage and control plane resources like machines, switches, operating system images, machine sizes, networks, IP addresses and more # noqa: E501 OpenAPI spec version: v0.15.7 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __futur...
24.536585
156
0.722664
f85cd90f128fee4aa36ddbccdb4146d483ad7c37
5,829
py
Python
tests/tcex_batch/test_indicator_interface_1.py
chrgraham/tcex
84c3ce4ab86753185d41aca0dbc5b87b07d2fb61
[ "Apache-2.0" ]
null
null
null
tests/tcex_batch/test_indicator_interface_1.py
chrgraham/tcex
84c3ce4ab86753185d41aca0dbc5b87b07d2fb61
[ "Apache-2.0" ]
null
null
null
tests/tcex_batch/test_indicator_interface_1.py
chrgraham/tcex
84c3ce4ab86753185d41aca0dbc5b87b07d2fb61
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Test the TcEx Batch Module.""" import pytest from ..tcex_init import tcex # pylint: disable=R0201,W0201 class TestIndicator1: """Test the TcEx Batch Module.""" def setup_class(self): """Configure setup before all tests.""" @pytest.mark.parametrize( 'indicator...
44.159091
93
0.586378
64d804b9f1778b6723586b63f1ebc776b7b6ecc6
32,698
py
Python
Node3D/vendor/pyqtgraph/parametertree/Parameter.py
ArnoChenFx/Node3D
30fe58cced3a8580eb129475925eb797e6065067
[ "MIT" ]
3
2020-09-09T15:42:46.000Z
2021-07-24T13:58:56.000Z
Node3D/vendor/pyqtgraph/parametertree/Parameter.py
ArnoChenFx/Node3D
30fe58cced3a8580eb129475925eb797e6065067
[ "MIT" ]
null
null
null
Node3D/vendor/pyqtgraph/parametertree/Parameter.py
ArnoChenFx/Node3D
30fe58cced3a8580eb129475925eb797e6065067
[ "MIT" ]
1
2021-10-17T12:21:39.000Z
2021-10-17T12:21:39.000Z
from ..Qt import QtGui, QtCore import os, weakref, re from ..pgcollections import OrderedDict from ..python2_3 import asUnicode, basestring from .ParameterItem import ParameterItem import copy PARAM_TYPES = {} PARAM_NAMES = {} def registerParameterType(name, cls, override=False): global PARAM_TYPES if name in...
41.759898
164
0.564652
33fd9a8224fab0fef3eaebaefe570ba849c689a5
3,781
py
Python
homeassistant/components/deutsche_bahn/sensor.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/deutsche_bahn/sensor.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/deutsche_bahn/sensor.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""Support for information about the German train system.""" from datetime import timedelta import schiene import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.const import CONF_OFFSET import homeassistant.helpers.config_validation as cv import homeassi...
32.316239
85
0.640571
9bfe3b5e92ece183b5e40a906e2bd199557680b6
14,788
py
Python
process_measure_data/correlate_gg_gm_3d_funcs_DC2.py
shivamp1495/3d_stats
a7deb66d343495f9eaeb6f23a9fc9086e62236d4
[ "MIT" ]
null
null
null
process_measure_data/correlate_gg_gm_3d_funcs_DC2.py
shivamp1495/3d_stats
a7deb66d343495f9eaeb6f23a9fc9086e62236d4
[ "MIT" ]
null
null
null
process_measure_data/correlate_gg_gm_3d_funcs_DC2.py
shivamp1495/3d_stats
a7deb66d343495f9eaeb6f23a9fc9086e62236d4
[ "MIT" ]
null
null
null
import sys, os import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import scipy.integrate as integrate import random import healpy as hp from astropy.io import fits from astropy.coordinates import SkyCoord from numpy.random import rand import pickle as pk import matplotlib.cm as ...
53.970803
158
0.579389
f7c9db6eb67d60fc2be839926eb713a9d5fbeae0
79
py
Python
setup.py
luevano/tirante
ad4f0144b82a0e881ac7b0a8f1cdb0232775e43a
[ "MIT" ]
null
null
null
setup.py
luevano/tirante
ad4f0144b82a0e881ac7b0a8f1cdb0232775e43a
[ "MIT" ]
null
null
null
setup.py
luevano/tirante
ad4f0144b82a0e881ac7b0a8f1cdb0232775e43a
[ "MIT" ]
null
null
null
from setuptools import setup setup( setup_requires=['pbr'], pbr=True )
13.166667
28
0.683544
e816752258c4bb6e17a8a6a403147393d96419ab
3,340
py
Python
tests/test_decorator.py
WPI-LNL/tolerance
335211c974e5e1d85289e1a8745ce01794b05225
[ "MIT" ]
2
2015-05-16T17:20:50.000Z
2017-10-23T16:15:36.000Z
tests/test_decorator.py
WPI-LNL/tolerance
335211c974e5e1d85289e1a8745ce01794b05225
[ "MIT" ]
null
null
null
tests/test_decorator.py
WPI-LNL/tolerance
335211c974e5e1d85289e1a8745ce01794b05225
[ "MIT" ]
2
2018-03-05T16:59:37.000Z
2021-09-10T23:15:13.000Z
#!/usr/bin/env nosetests -v # coding=utf-8 """ A unit test module of ``tolerance.decorators`` """ __author__ = 'Alisue <lambdalisue@hashnote.net>' import inspect from nose.tools import * from tolerance.decorators import tolerate from tolerance.decorators import DEFAULT_TOLERATE_SWITCH def test_tolerate_specification(...
28.793103
82
0.705389
40cfafeb4e79b3c7239487ca953b536f61fd1496
14,347
py
Python
policy/openbot/train.py
nanotuxi/OpenBot
b3413debe6bb830d0362bc1a6d250f04e1e8180c
[ "MIT" ]
4
2021-02-12T01:02:23.000Z
2021-06-09T08:34:46.000Z
policy/openbot/train.py
PeteDaGuru/OpenBot
b3413debe6bb830d0362bc1a6d250f04e1e8180c
[ "MIT" ]
null
null
null
policy/openbot/train.py
PeteDaGuru/OpenBot
b3413debe6bb830d0362bc1a6d250f04e1e8180c
[ "MIT" ]
2
2020-11-23T08:46:50.000Z
2021-03-03T03:28:43.000Z
from dataclasses import dataclass import os import re import threading import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from . import ( associate_frames, callbacks, dataloader, dataset_dir, losses, metrics, models, models_dir, utils, ) os.environ["TF_CPP_...
31.81153
97
0.637346