hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
8f3bfa1ad5c9aa5cbdf251e2f38f6b9d1a3bf58f
13,677
py
Python
chess/ChessUtil.py
vinoo999/alpha-zero-general
01bd6ac40d7b1fed97a84e37f7a549be8d50f668
[ "MIT" ]
2
2018-04-01T05:08:44.000Z
2018-04-20T01:58:46.000Z
chess/ChessUtil.py
vinoo999/alpha-zero-general
01bd6ac40d7b1fed97a84e37f7a549be8d50f668
[ "MIT" ]
null
null
null
chess/ChessUtil.py
vinoo999/alpha-zero-general
01bd6ac40d7b1fed97a84e37f7a549be8d50f668
[ "MIT" ]
null
null
null
import re import copy from .ChessConstants import * import sys # /***************************************************************************** # * UTILITY FUNCTIONS # ****************************************************************************/ def generate_fen(chess): empty = 0 fen = '' i = SQUARES[...
29.476293
108
0.494553
b4613d6b2b7d1924107a458a6b5a4506cb1be85e
1,200
py
Python
src/10.py
vulpicastor/advent-of-code-2020
06848cbe306e434f75e81af5793839e11baef273
[ "MIT" ]
null
null
null
src/10.py
vulpicastor/advent-of-code-2020
06848cbe306e434f75e81af5793839e11baef273
[ "MIT" ]
null
null
null
src/10.py
vulpicastor/advent-of-code-2020
06848cbe306e434f75e81af5793839e11baef273
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import collections import functools import operator as op import re import secrets import numpy as np class Node(collections.UserDict): def __init__(self): self.data = dict() self.key = secrets.token_bytes(8) def __hash__(self): return hash(self.key) @functools...
21.052632
55
0.560833
37530202d68f616d54f31bae38feec18a4812017
2,883
py
Python
setup.py
preset-io/sqlalchemy-utils
b5b48b13a22aa6d796e98c0225f367a2f010c788
[ "BSD-3-Clause" ]
null
null
null
setup.py
preset-io/sqlalchemy-utils
b5b48b13a22aa6d796e98c0225f367a2f010c788
[ "BSD-3-Clause" ]
null
null
null
setup.py
preset-io/sqlalchemy-utils
b5b48b13a22aa6d796e98c0225f367a2f010c788
[ "BSD-3-Clause" ]
null
null
null
""" SQLAlchemy-Utils ---------------- Various utility functions and custom data types for SQLAlchemy. """ import os import re from setuptools import find_packages, setup HERE = os.path.dirname(os.path.abspath(__file__)) def get_version(): filename = os.path.join(HERE, 'sqlalchemy_utils', '__init__.py') wit...
28.544554
73
0.582379
e45c472152d1ba5d6b1bf046afa9dd72d606bc0f
2,565
py
Python
sdlf-utils/pipeline-examples/event-dataset-dependencies/sdlf-engineering-stageA/lambda/stage-a-check-job/src/lambda_function.py
bencaldwell/aws-serverless-data-lake-framework
64a1903b8e1c560b207bf9574cbcacdd1512ec8f
[ "MIT-0" ]
null
null
null
sdlf-utils/pipeline-examples/event-dataset-dependencies/sdlf-engineering-stageA/lambda/stage-a-check-job/src/lambda_function.py
bencaldwell/aws-serverless-data-lake-framework
64a1903b8e1c560b207bf9574cbcacdd1512ec8f
[ "MIT-0" ]
null
null
null
sdlf-utils/pipeline-examples/event-dataset-dependencies/sdlf-engineering-stageA/lambda/stage-a-check-job/src/lambda_function.py
bencaldwell/aws-serverless-data-lake-framework
64a1903b8e1c560b207bf9574cbcacdd1512ec8f
[ "MIT-0" ]
null
null
null
from datalake_library.commons import init_logger from datalake_library.transforms.transform_handler import TransformHandler from datalake_library import octagon from datalake_library.octagon import Artifact, EventReasonEnum, peh logger = init_logger(__name__) def lambda_handler(event, context): """Calls custom j...
45
126
0.632359
6a9d52966a0baa47166f3e4a1e1d05947837b9f1
15,319
py
Python
baselines/logger.py
mk37972/SCAPE
01080e4159917546c76dd15ae5c74e092f4ae299
[ "MIT" ]
null
null
null
baselines/logger.py
mk37972/SCAPE
01080e4159917546c76dd15ae5c74e092f4ae299
[ "MIT" ]
null
null
null
baselines/logger.py
mk37972/SCAPE
01080e4159917546c76dd15ae5c74e092f4ae299
[ "MIT" ]
null
null
null
import os import sys import shutil import os.path as osp import json import time import datetime import tempfile from collections import defaultdict from contextlib import contextmanager DEBUG = 10 INFO = 20 WARN = 30 ERROR = 40 DISABLED = 50 class KVWriter(object): def writekvs(self, kvs): ...
30.394841
123
0.548991
802f8ed5c84ce1fc12bfedf0a2d27f07f012e0f1
1,192
py
Python
tests/bugs/core_0507_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_0507_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_0507_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_0507 # title: ambiguous statements return unpredictable results # decription: # # tracker_id: CORE-507 # min_versions: ['2.5.0'] # versions: 2.5 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: ...
24.833333
82
0.694631
2ec952283dae6968a504e2273563c1718d83b3f3
15,276
py
Python
schemas/lint.py
ryantd/determined
b4f3be3c1878a9a7fdad4775647018753b39ef21
[ "Apache-2.0" ]
1
2021-03-29T13:39:45.000Z
2021-03-29T13:39:45.000Z
schemas/lint.py
ZithaChitra/determined
1466d46dfd6abc56ad65d9904d4173ea62cff771
[ "Apache-2.0" ]
null
null
null
schemas/lint.py
ZithaChitra/determined
1466d46dfd6abc56ad65d9904d4173ea62cff771
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import os import re import sys from typing import Callable, List, Optional, Tuple, TypeVar, Union Schema = Union[dict, bool] Errors = List[Tuple[str, str]] linters = [] # type: List[Callable] F = TypeVar("F", bound=Callable) def register_linter(fn: F) -> F: ...
28.822642
95
0.590469
55adaa37914aad6650d00592f18f8ceeb8fb8b82
11,214
py
Python
epd4in2.py
huanliang19/EinkClock
b58e4784051f1fa6c5a6e9516703d69a9d169996
[ "Unlicense" ]
1
2019-09-25T03:38:19.000Z
2019-09-25T03:38:19.000Z
epd4in2.py
huanliang19/EinkClock
b58e4784051f1fa6c5a6e9516703d69a9d169996
[ "Unlicense" ]
1
2019-09-22T17:59:15.000Z
2019-09-22T17:59:15.000Z
epd4in2.py
domi3006/python3-weather-epaper
87511a271ad056f02b0b2dba90789e16c65bf25b
[ "CC-BY-3.0", "MIT" ]
null
null
null
# //***************************************************************************** # * | File : EPD_1in54.py # * | Author : Waveshare team # * | Function : Electronic paper driver # * | Info : # *---------------- # * | This version: V3.0 # * | Date : 2018-11-06 # * | Info ...
40.193548
125
0.540396
90c9952254dcaf471fea2e2c11970e39ae0c68d7
1,168
py
Python
utils/utils.py
gregbugaj/form-processor
0c803de43a98b4a02efa956803e64793995256ff
[ "MIT" ]
null
null
null
utils/utils.py
gregbugaj/form-processor
0c803de43a98b4a02efa956803e64793995256ff
[ "MIT" ]
1
2021-11-09T11:11:32.000Z
2021-11-09T11:11:32.000Z
utils/utils.py
gregbugaj/form-processor
0c803de43a98b4a02efa956803e64793995256ff
[ "MIT" ]
null
null
null
import os import time from PIL import Image import cv2 import numpy as np def ensure_exists(dir): if not os.path.exists(dir): os.makedirs(dir) return dir def current_milli_time(): return round(time.time() * 1000) def make_power_2(img, base, method=Image.BICUBIC): ow, oh = img.size ...
27.162791
79
0.61387
cc4fa99a07cdc59ca099df04a7de210c423980ed
83
py
Python
tests/periodicities/Day/Cycle_Day_1600_D_12.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/periodicities/Day/Cycle_Day_1600_D_12.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/periodicities/Day/Cycle_Day_1600_D_12.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.periodicities.period_test as per per.buildModel((12 , 'D' , 1600));
16.6
45
0.722892
1778ee80eb00b2788eccf2ad62b2f8ff04f7f606
4,242
py
Python
detection/grad_cam.py
innovator1311/Grad-CAM.pytorch
9923e4c52842dd486582e24a405b49b2818dc983
[ "Apache-2.0" ]
null
null
null
detection/grad_cam.py
innovator1311/Grad-CAM.pytorch
9923e4c52842dd486582e24a405b49b2818dc983
[ "Apache-2.0" ]
null
null
null
detection/grad_cam.py
innovator1311/Grad-CAM.pytorch
9923e4c52842dd486582e24a405b49b2818dc983
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @File : grad_cam.py @Time : 2020/3/14 下午4:06 @Author : yizuotian @Description : """ import cv2 import numpy as np class GradCAM(object): """ 1: 网络不更新梯度,输入需要梯度更新 2: 使用目标类别的得分做反向传播 """ def __init__(self, net, layer_name): self.net = net.faster_rcnn ...
32.630769
95
0.562235
5113ac1082bc03f1922635529d99a9faa95678b3
6,901
py
Python
tests/ut/python/dataset/test_ten_crop.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
tests/ut/python/dataset/test_ten_crop.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_ten_crop.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
35.756477
117
0.696276
dfd5afbf9e8c64c70b770fcd652b44299c23b4dc
78
py
Python
isshub/domain/contexts/code_repository/entities/namespace/tests/__init__.py
kernicPanel/isshub
841496f6fa9cb579709fa007414e0a40918f8af7
[ "MIT" ]
1
2021-02-11T00:49:15.000Z
2021-02-11T00:49:15.000Z
isshub/domain/contexts/code_repository/entities/namespace/tests/__init__.py
kernicPanel/isshub
841496f6fa9cb579709fa007414e0a40918f8af7
[ "MIT" ]
4
2019-06-07T19:06:03.000Z
2020-10-04T10:09:46.000Z
isshub/domain/contexts/code_repository/entities/namespace/tests/__init__.py
kernicPanel/isshub
841496f6fa9cb579709fa007414e0a40918f8af7
[ "MIT" ]
1
2019-09-15T09:00:52.000Z
2019-09-15T09:00:52.000Z
"""Package holding the tests for the ``Namespace`` code_repository entity."""
39
77
0.74359
54d4bda6b47a4e89540e6b2ff57905dc57240723
40,431
py
Python
test/functional/test_framework/messages.py
KnoxFS/Wallet-5.3.2.0
e69b700127e78cc5fda4f012c2609ab1fa7a276d
[ "MIT" ]
null
null
null
test/functional/test_framework/messages.py
KnoxFS/Wallet-5.3.2.0
e69b700127e78cc5fda4f012c2609ab1fa7a276d
[ "MIT" ]
null
null
null
test/functional/test_framework/messages.py
KnoxFS/Wallet-5.3.2.0
e69b700127e78cc5fda4f012c2609ab1fa7a276d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Bitcoin test...
29.468659
262
0.59536
c9706f5ab155149137ae122d2738fb415b0f080d
6,911
py
Python
ord_interface/search.py
open-reaction-database/ord-interface
730e851d82afb88212619ac64aaed6fda85c1690
[ "Apache-2.0" ]
5
2021-11-30T12:26:36.000Z
2022-03-22T04:48:31.000Z
ord_interface/search.py
open-reaction-database/ord-interface
730e851d82afb88212619ac64aaed6fda85c1690
[ "Apache-2.0" ]
16
2020-12-12T15:09:42.000Z
2022-03-11T16:46:53.000Z
ord_interface/search.py
open-reaction-database/ord-interface
730e851d82afb88212619ac64aaed6fda85c1690
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Open Reaction Database Project 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 l...
36.183246
80
0.673274
5b512c1f334f5f8cfa016af4b23d348b96c80009
3,350
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_blob_fs_source_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_blob_fs_source_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2020-03-06T05:57:16.000Z
2020-03-06T05:57:16.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_blob_fs_source_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
null
null
null
# 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 ...
48.550725
233
0.680896
6a420ec33eb67abfa43321573d4c3ab6e5336cab
136
py
Python
space_game/AccelerationDirection.py
Iwomichu/probable-giggle
2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc
[ "MIT" ]
1
2020-11-30T11:21:21.000Z
2020-11-30T11:21:21.000Z
space_game/AccelerationDirection.py
Iwomichu/probable-giggle
2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc
[ "MIT" ]
5
2020-11-03T16:46:49.000Z
2021-01-24T14:29:24.000Z
space_game/AccelerationDirection.py
Iwomichu/probable-giggle
2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc
[ "MIT" ]
null
null
null
from enum import Enum, auto class AccelerationDirection(Enum): LEFT = auto() RIGHT = auto() UP = auto() DOWN = auto()
15.111111
34
0.610294
01e71a417c5ec18e4d0daa2cf70bc02d12cdcfc3
79,726
py
Python
tccli/services/bmvpc/bmvpc_client.py
zqfan/tencentcloud-cli
b6ad9fced2a2b340087e4e5522121d405f68b615
[ "Apache-2.0" ]
null
null
null
tccli/services/bmvpc/bmvpc_client.py
zqfan/tencentcloud-cli
b6ad9fced2a2b340087e4e5522121d405f68b615
[ "Apache-2.0" ]
null
null
null
tccli/services/bmvpc/bmvpc_client.py
zqfan/tencentcloud-cli
b6ad9fced2a2b340087e4e5522121d405f68b615
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli import __version__ from tccli.utils import Utils from tccli.exceptions import ConfigurationError from tencentcloud.common import credential from tencentcloud.common.profile.ht...
43.926171
105
0.73064
cd30722f19309f0eded0703dfa7c8ca621630222
1,696
py
Python
sdks/python/apache_beam/utils/sharded_key.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2019-08-02T18:03:15.000Z
2019-08-02T18:03:15.000Z
sdks/python/apache_beam/utils/sharded_key.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
80
2020-01-16T09:55:09.000Z
2020-10-03T13:43:07.000Z
sdks/python/apache_beam/utils/sharded_key.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2020-04-29T20:09:40.000Z
2020-04-29T20:09:40.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 us...
28.745763
80
0.70342
e36a3eea2b0aeb4c449df47f838f0748a74d99c4
7,399
py
Python
api/tests/v2/test_resource_requests.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
197
2016-12-08T02:33:32.000Z
2022-03-23T14:27:47.000Z
api/tests/v2/test_resource_requests.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
385
2017-01-03T22:51:46.000Z
2020-12-16T16:20:42.000Z
api/tests/v2/test_resource_requests.py
benlazarine/atmosphere
38fad8e4002e510e8b4294f2bb5bc75e8e1817fa
[ "BSD-3-Clause" ]
50
2016-12-08T08:32:25.000Z
2021-12-10T00:21:39.000Z
from django.urls import reverse from rest_framework.test import APIRequestFactory from rest_framework.test import APITestCase, force_authenticate from api.tests.v2.base import APISanityTestCase from api.v2.views import ResourceRequestViewSet, AdminResourceRequestViewSet from core.models import ResourceRequest, StatusT...
32.884444
83
0.626166
fc898af968541078c3a5bc1b7af5562a4f38b00e
1,930
py
Python
class10/ex1_serial.py
sbyount/pyaut3
2fcf19851487db49d76d5b6996ee0f9194d90816
[ "Apache-2.0" ]
1
2019-04-17T02:49:58.000Z
2019-04-17T02:49:58.000Z
class10/ex1_serial.py
sbyount/pyaut3
2fcf19851487db49d76d5b6996ee0f9194d90816
[ "Apache-2.0" ]
null
null
null
class10/ex1_serial.py
sbyount/pyaut3
2fcf19851487db49d76d5b6996ee0f9194d90816
[ "Apache-2.0" ]
null
null
null
from my_devices import network_devices as devices from netmiko import ConnectHandler from datetime import datetime ''' 1a. As you have done in previous classes, create a Python file named "my_devices.py". In this file, define the connection information for: 'cisco3', 'arista1', 'arista2', and 'srx2'. This file should...
42.888889
86
0.744041
e73e06c224f5e7da18c5349ee4d31dcd79af0c82
145
py
Python
lang/phtml/phtml.py
bcooper94/knausj_talon
067c0f959d8fbf927cceb7e3842a25eb82429fdb
[ "Unlicense" ]
null
null
null
lang/phtml/phtml.py
bcooper94/knausj_talon
067c0f959d8fbf927cceb7e3842a25eb82429fdb
[ "Unlicense" ]
null
null
null
lang/phtml/phtml.py
bcooper94/knausj_talon
067c0f959d8fbf927cceb7e3842a25eb82429fdb
[ "Unlicense" ]
null
null
null
from talon import Context, Module mod = Module() ctx = Context() ctx.matches = r""" mode: user.phtml mode: command and code.language: phtml """
14.5
33
0.703448
96a9544f69bfc35ac0cfd9d311119824ddbc067e
428
py
Python
python3/june/day_18_H-Index II.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
1
2020-06-01T11:35:46.000Z
2020-06-01T11:35:46.000Z
python3/june/day_18_H-Index II.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
null
null
null
python3/june/day_18_H-Index II.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
null
null
null
class Solution: def hIndex(self, citations: List[int]) -> int: N, left, right = len(citations), 0, len(citations)-1 while left <= right: mid = left + (right - left)//2 if citations[mid] == N - mid: return citations[mid] elif citations[mid] > N - mi...
32.923077
60
0.46729
d8a9fe9c1decb4301979951f8e67e1e4dd06fff5
1,098
py
Python
wetterdienst/dwd/network.py
kmuehlbauer/wetterdienst
85e72ccdbd00f0e8285e1ba24800dfafb81ccd63
[ "MIT" ]
1
2021-01-23T22:52:52.000Z
2021-01-23T22:52:52.000Z
wetterdienst/dwd/network.py
kmuehlbauer/wetterdienst
85e72ccdbd00f0e8285e1ba24800dfafb81ccd63
[ "MIT" ]
null
null
null
wetterdienst/dwd/network.py
kmuehlbauer/wetterdienst
85e72ccdbd00f0e8285e1ba24800dfafb81ccd63
[ "MIT" ]
null
null
null
import logging from functools import lru_cache from io import BytesIO import requests from requests.adapters import HTTPAdapter from wetterdienst.dwd.metadata.constants import DWD_SERVER logger = logging.getLogger(__name__) def download_file_from_dwd(url: str) -> BytesIO: """ A function used to download a...
22.875
86
0.715847
848c0284779ad8891563d65241273de29e50769f
3,143
py
Python
python/example_code/lookoutvision/test/test_projects.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
2
2022-01-17T13:03:22.000Z
2022-02-01T22:31:08.000Z
python/example_code/lookoutvision/test/test_projects.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
1
2020-03-18T17:00:15.000Z
2020-03-18T17:04:05.000Z
python/example_code/lookoutvision/test/test_projects.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
27
2020-04-16T22:52:53.000Z
2021-09-30T22:55:58.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """ Unit tests for projects.py. """ import datetime import boto3 from botocore.exceptions import ClientError import pytest from models import Models from projects import Projects @pytest.mark.parametrize('err...
37.416667
91
0.735921
3a78b3d4be72dcf3e4363df9f8f6fb976dbb0d82
1,489
py
Python
FPIDjango/settings_private.py
snelzing/Food-Pantry-Inventory
ff8803cc53ceeb012fb97c60373734f03f03bf6a
[ "MIT" ]
1
2019-02-21T05:22:06.000Z
2019-02-21T05:22:06.000Z
FPIDjango/settings_private.py
snelzing/Food-Pantry-Inventory
ff8803cc53ceeb012fb97c60373734f03f03bf6a
[ "MIT" ]
null
null
null
FPIDjango/settings_private.py
snelzing/Food-Pantry-Inventory
ff8803cc53ceeb012fb97c60373734f03f03bf6a
[ "MIT" ]
null
null
null
""" settings_private.py - Shadow or pseudo-private file. This file has dummy settings in it. The purpose is to show the format of your real settings_private file in the private subdirectory. The files at this level are dummy files that are safe to upload to GitHub. The equivalent files in the private subdirectory ar...
29.78
77
0.762257
5fa0623f778c79716165d5365488b0de48edbc46
45
py
Python
cheinsteinpy/__init__.py
DouglasTaylorSupportGroup/cheinstein.py
8be32036ba14aa79f1ca66c2efcf8b71aacbd147
[ "MIT" ]
3
2022-02-04T22:25:59.000Z
2022-02-15T04:56:34.000Z
cheinsteinpy/__init__.py
DouglasTaylorSupportGroup/cheinstein.py
8be32036ba14aa79f1ca66c2efcf8b71aacbd147
[ "MIT" ]
null
null
null
cheinsteinpy/__init__.py
DouglasTaylorSupportGroup/cheinstein.py
8be32036ba14aa79f1ca66c2efcf8b71aacbd147
[ "MIT" ]
3
2022-01-24T19:52:17.000Z
2022-02-23T09:12:46.000Z
from .api import * from .requestPage import *
22.5
26
0.755556
64aa888452657490b7e8b49f685c17a60c75b938
7,165
py
Python
sds/utils/general.py
hanyas/sds
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
[ "MIT" ]
12
2019-09-21T13:52:09.000Z
2022-02-14T06:48:46.000Z
sds/utils/general.py
hanyas/sds
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
[ "MIT" ]
1
2020-01-22T12:34:52.000Z
2020-01-26T21:14:11.000Z
sds/utils/general.py
hanyas/sds
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
[ "MIT" ]
5
2019-09-18T15:11:26.000Z
2021-12-10T14:04:53.000Z
import numpy as np import numpy.random as npr from scipy.linalg import block_diag from scipy.optimize import linear_sum_assignment from operator import add, sub from functools import lru_cache from functools import wraps from functools import reduce from itertools import tee from itertools import islice import rando...
29.485597
104
0.590649
53c85332dff434338fdfcda3403149e0ce64fe9f
1,990
py
Python
python/alibiexplainer/alibiexplainer/anchor_images.py
ittus/kserve
922a9b7e8a9a86b5ae65faf4ce863927873fd456
[ "Apache-2.0" ]
1,146
2019-03-27T21:14:34.000Z
2021-09-22T08:36:46.000Z
python/alibiexplainer/alibiexplainer/anchor_images.py
ittus/kserve
922a9b7e8a9a86b5ae65faf4ce863927873fd456
[ "Apache-2.0" ]
1,803
2019-03-27T22:16:02.000Z
2021-09-22T15:27:44.000Z
python/alibiexplainer/alibiexplainer/anchor_images.py
ittus/kserve
922a9b7e8a9a86b5ae65faf4ce863927873fd456
[ "Apache-2.0" ]
573
2019-03-27T21:14:58.000Z
2021-09-20T21:15:52.000Z
# Copyright 2021 The KServe 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 agreed to in wr...
39.019608
95
0.721608
dcf9a802db8b6d261e5506b9df772636bb2a516f
347
py
Python
posthog/migrations/0157_plugin_metrics.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
posthog/migrations/0157_plugin_metrics.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
posthog/migrations/0157_plugin_metrics.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
# Generated by Django 3.1.8 on 2021-06-21 17:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0156_insight_short_id"), ] operations = [ migrations.AddField(model_name="plugin", name="metrics", field=models.JSONField(default...
23.133333
115
0.677233
6282bb24bb6a32d0f63c7cbaa484d220412a1349
4,999
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_subscription_client_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_subscription_client_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_subscription_client_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
40.97541
133
0.691938
b9a9eec5d940e74a62dda96614fadd43bfe77b69
6,282
py
Python
kalendr_root/urls.py
bewallyt/Kalendr
45b793faae67f923f8b12074d1e9560b913c0ca2
[ "MIT" ]
null
null
null
kalendr_root/urls.py
bewallyt/Kalendr
45b793faae67f923f8b12074d1e9560b913c0ca2
[ "MIT" ]
null
null
null
kalendr_root/urls.py
bewallyt/Kalendr
45b793faae67f923f8b12074d1e9560b913c0ca2
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url, include from rest_framework_nested import routers from authentication.views import AccountViewSet, LoginView, LogoutView from posts.views import AccountPostsViewSet, PostViewSet, NotificationPostView, GetSharedPostView, PostUpdateView, \ AccountUpdatePudPostViewSet, Acc...
48.697674
117
0.813594
8c18bf0a30545f7a6dff7302aff0261d940df4af
1,089
py
Python
spatialdata/geocoords/Converter.py
rwalkerlewis/spatialdata
515c8d9dec21d261d0d654b5c30e6759565268d2
[ "MIT" ]
6
2017-09-19T11:05:33.000Z
2019-09-26T08:18:30.000Z
spatialdata/geocoords/Converter.py
rwalkerlewis/spatialdata
515c8d9dec21d261d0d654b5c30e6759565268d2
[ "MIT" ]
38
2017-06-28T15:44:50.000Z
2022-02-17T04:04:02.000Z
spatialdata/geocoords/Converter.py
rwalkerlewis/spatialdata
515c8d9dec21d261d0d654b5c30e6759565268d2
[ "MIT" ]
11
2015-11-09T06:29:35.000Z
2021-06-02T14:13:59.000Z
# ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copyright (c) 2010-2017 University of California, Davis # # See COPYING for license...
28.657895
92
0.604224
740d3e1c31b2b942c6e2afc5a89491ded5a8e991
21,706
py
Python
scholarly/author_parser.py
ma-ji/scholarly
47bcbd099b63c6e9f1eab13b85f90c8a47c77deb
[ "Unlicense" ]
1
2021-12-26T03:55:06.000Z
2021-12-26T03:55:06.000Z
scholarly/author_parser.py
ma-ji/scholarly
47bcbd099b63c6e9f1eab13b85f90c8a47c77deb
[ "Unlicense" ]
1
2021-11-02T22:07:30.000Z
2021-11-02T22:07:30.000Z
scholarly/author_parser.py
ma-ji/scholarly
47bcbd099b63c6e9f1eab13b85f90c8a47c77deb
[ "Unlicense" ]
null
null
null
from .publication_parser import PublicationParser import re from .data_types import Author, AuthorSource, PublicationSource, PublicAccess from selenium.webdriver.common.by import By import codecs _CITATIONAUTHRE = r'user=([\w-]*)' _HOST = 'https://scholar.google.com{0}' _PAGESIZE = 100 _EMAILAUTHORRE = r'Verified emai...
48.128603
168
0.510274
c1d49a192ae4a11ad53bba968954c7f907cdc62d
1,522
py
Python
fixture/session.py
margoam/python_training
00510c23df6e39cf2aa128671abc696c4b500a43
[ "Apache-2.0" ]
1
2021-09-24T16:41:18.000Z
2021-09-24T16:41:18.000Z
fixture/session.py
margoam/python_training
00510c23df6e39cf2aa128671abc696c4b500a43
[ "Apache-2.0" ]
null
null
null
fixture/session.py
margoam/python_training
00510c23df6e39cf2aa128671abc696c4b500a43
[ "Apache-2.0" ]
null
null
null
class SessionHelper: # Помощник по работе с сессией def __init__(self, app): self.app = app def login(self, username, password): wd = self.app.wd self.app.open_home_page() # вызов метода open_home_page wd.find_element_by_name("user").click() wd.find_element_by_name(...
32.382979
87
0.618265
8013a537c4b93f0f8e1d640d311e4d608dc13f4a
20,549
py
Python
flux_mito/model_366.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_mito/model_366.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_mito/model_366.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.134259
798
0.804127
b6a225235ba6a7b3a8028bb80093588380fc8874
703
py
Python
aodag/wiki/wsgi.py
aodag/aodag-wiki
fe0b6b912a521ec0e4956bcd67b34f4c4c1ea2e5
[ "MIT" ]
null
null
null
aodag/wiki/wsgi.py
aodag/aodag-wiki
fe0b6b912a521ec0e4956bcd67b34f4c4c1ea2e5
[ "MIT" ]
1
2018-01-21T02:27:39.000Z
2018-01-21T02:27:39.000Z
aodag/wiki/wsgi.py
aodag/aodag-wiki
fe0b6b912a521ec0e4956bcd67b34f4c4c1ea2e5
[ "MIT" ]
null
null
null
from pyramid.config import Configurator def includeme(config): config.add_route('top', '/') config.add_route('wiki', '/wiki') config.add_route('wikipage', '/wiki/{pagename}') config.add_route('wikipage.edit', '/wiki/{pagename}/edit') config.scan(".views") def main(global_conf, **settings): c...
28.12
62
0.679943
c4d4da5a88183e2339c6f82227770c6c20891c3a
1,494
bzl
Python
web/java.bzl
uri-canva/rules_webtesting
8b700a3644a12ac95830f9067de8a301e6bc6531
[ "Apache-2.0" ]
2
2021-08-05T14:15:58.000Z
2021-11-17T10:59:42.000Z
web/java.bzl
uri-canva/rules_webtesting
8b700a3644a12ac95830f9067de8a301e6bc6531
[ "Apache-2.0" ]
null
null
null
web/java.bzl
uri-canva/rules_webtesting
8b700a3644a12ac95830f9067de8a301e6bc6531
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
38.307692
83
0.698126
23a2f19e12bc74006e7ba94ba34dfb40c7424f32
8,034
py
Python
sdk/python/pulumi_azure_nextgen/network/v20170301/get_virtual_network_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20170301/get_virtual_network_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20170301/get_virtual_network_peering.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...
46.439306
335
0.706995
bb31714139073a15b844e7882cc936b9e97c467c
4,700
py
Python
capsul/engine/module/axon.py
denisri/capsul
ea1b41f08ab1acc95e50d90916c1e282807874ca
[ "CECILL-B" ]
null
null
null
capsul/engine/module/axon.py
denisri/capsul
ea1b41f08ab1acc95e50d90916c1e282807874ca
[ "CECILL-B" ]
null
null
null
capsul/engine/module/axon.py
denisri/capsul
ea1b41f08ab1acc95e50d90916c1e282807874ca
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ''' Configuration module which links with `Axon <http://brainvisa.info/axon/user_doc>`_ ''' from __future__ import absolute_import import os import six import capsul.engine import os.path as osp def init_settings(capsul_engine): with capsul_engine.settings as settings: settings.e...
37.301587
83
0.610426
ab05eef0c045dba96cfead7ace908046cc1351cb
16,391
py
Python
nvdb2osm.py
EHakansson/nvdb2osm
b3228b1c4032be813606314b7efd4cf975983073
[ "Unlicense" ]
null
null
null
nvdb2osm.py
EHakansson/nvdb2osm
b3228b1c4032be813606314b7efd4cf975983073
[ "Unlicense" ]
null
null
null
nvdb2osm.py
EHakansson/nvdb2osm
b3228b1c4032be813606314b7efd4cf975983073
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import argparse import hashlib import logging import pathlib import zipfile import glob import os import sys import geopandas from sortedcontainers import SortedDict from process_and_resolve import * from tag_translations import TAG_TRANSLATIONS, process_tag_translations from nvdb_segment impor...
39.496386
198
0.663901
4a4a58d635c90acd5c88f7a023dcae04a9200dcb
7,720
py
Python
hi-ml-histopathology/src/histopathology/configs/classification/DeepSMILEPanda.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
null
null
null
hi-ml-histopathology/src/histopathology/configs/classification/DeepSMILEPanda.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
null
null
null
hi-ml-histopathology/src/histopathology/configs/classification/DeepSMILEPanda.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
43.128492
121
0.655311
756240407e9f00b4641ed492b85c60f94ee98002
769
py
Python
example/class8.py
sano-jin/go-in-ocaml
b5e5fca33e194776477a0db389f6e52bdc0a66fe
[ "MIT" ]
1
2021-09-24T10:25:40.000Z
2021-09-24T10:25:40.000Z
example/class8.py
sano-jin/go-in-ocaml
b5e5fca33e194776477a0db389f6e52bdc0a66fe
[ "MIT" ]
null
null
null
example/class8.py
sano-jin/go-in-ocaml
b5e5fca33e194776477a0db389f6e52bdc0a66fe
[ "MIT" ]
null
null
null
class MyClass(): name = 'Hoge' def __init__(self, hige): self.hige = hige class Greeting(object): message = 'Hi! I am MyClass2' def __init__(self, location): print('hoge!!') print(self.__class__.__mro__) self.location = location def greet(self): print(self.m...
20.783784
41
0.59948
8417d3d3b4a44faeb9c4b0b8bcd87e150d6cb8bb
28,282
py
Python
mixer.py
jggatc/pyj2d
a2b47e4d6177e3b6a4dc4b74a0594d6959f2a7dc
[ "MIT" ]
11
2015-05-30T13:33:31.000Z
2022-01-07T02:38:22.000Z
mixer.py
jggatc/pyj2d
a2b47e4d6177e3b6a4dc4b74a0594d6959f2a7dc
[ "MIT" ]
null
null
null
mixer.py
jggatc/pyj2d
a2b47e4d6177e3b6a4dc4b74a0594d6959f2a7dc
[ "MIT" ]
1
2018-08-05T07:58:13.000Z
2018-08-05T07:58:13.000Z
#PyJ2D - Copyright (C) 2011 James Garnon <https://gatc.ca/> #Released under the MIT License <https://opensource.org/licenses/MIT> from javax.sound.sampled import AudioSystem, AudioFormat from javax.sound.sampled import LineUnavailableException from java.io import ByteArrayInputStream from java.io import File, IOExcept...
29.645702
145
0.553426
605cc0c6ae2982a3410337326357ff6c42aff103
1,859
py
Python
trax/models/atari_cnn_test.py
Nishant-Pall/trax
f714a271111578d4e6b3ac445eef86ca03dc7fa6
[ "Apache-2.0" ]
2
2020-08-08T14:38:53.000Z
2021-03-04T01:00:17.000Z
trax/models/atari_cnn_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/models/atari_cnn_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
1
2020-11-01T11:22:54.000Z
2020-11-01T11:22:54.000Z
# coding=utf-8 # Copyright 2020 The Trax 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 a...
30.983333
74
0.689618
9ac75e630bf7a078dd21528674200b5c7f314b78
20,278
py
Python
front-end/testsuite-python-lib/Python-2.3/Lib/test/test_strptime.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
front-end/testsuite-python-lib/Python-2.3/Lib/test/test_strptime.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
null
null
null
front-end/testsuite-python-lib/Python-2.3/Lib/test/test_strptime.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
"""PyUnit testing against strptime""" import unittest import time import locale import re from test import test_support import _strptime class getlang_Tests(unittest.TestCase): """Test _getlang""" def test_basic(self): self.failUnlessEqual(_strptime._getlang(), locale.getlocale(locale.LC_TIME)) clas...
47.15814
86
0.580827
5a75a9aa1ead7d4cf4dfe4d3489d0f3273583f39
7,791
py
Python
komics/dprc_qualcheck.py
FreBio/komics
3af2d968f7864d5f3767983b236660f268f8d0c0
[ "OLDAP-2.2.1" ]
2
2021-10-04T14:10:32.000Z
2021-11-10T11:59:39.000Z
komics/dprc_qualcheck.py
FreBio/komics
3af2d968f7864d5f3767983b236660f268f8d0c0
[ "OLDAP-2.2.1" ]
2
2021-10-20T11:21:22.000Z
2022-03-29T13:47:28.000Z
komics/dprc_qualcheck.py
FreBio/komics
3af2d968f7864d5f3767983b236660f268f8d0c0
[ "OLDAP-2.2.1" ]
1
2020-06-11T10:05:32.000Z
2020-06-11T10:05:32.000Z
''' TODO: * consider removing the extension of minicircles, if they start anyway with CSB1? * include coverage plots pdf ''' from __future__ import division import os import re import sys import pysam import numpy import subprocess from Bio import SeqIO from Bio.SeqRecord import SeqRecord class Error (Exception...
34.021834
115
0.594661
bae27664ab59d8892bbfb9c3a6c7935c2179cc1a
3,515
py
Python
code/Experiments/Tutorials/nn-from-scratch/StanfordNN_GPU.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
53
2017-04-18T10:06:20.000Z
2021-12-29T21:26:07.000Z
code/Experiments/Tutorials/nn-from-scratch/StanfordNN_GPU.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
null
null
null
code/Experiments/Tutorials/nn-from-scratch/StanfordNN_GPU.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
20
2017-05-03T03:27:09.000Z
2022-03-24T07:07:45.000Z
import numpy as np import sklearn import sklearn.datasets import theano import theano.tensor as T import time # Use float32 as the default float data type theano.config.floatX = 'float32' # Generate a dataset np.random.seed(0) train_X, train_y = sklearn.datasets.make_moons(5000, noise=0.20) train_y_onehot = np.eye(2)...
36.237113
100
0.707824
f69a7326c9d2e8d0f6f5df2b5cab52a9558a0f6f
3,817
py
Python
tests/test_contacts.py
BasementCat/earful
a796ae3246f0d3b773be227bacf4260b92d2fa09
[ "MIT" ]
null
null
null
tests/test_contacts.py
BasementCat/earful
a796ae3246f0d3b773be227bacf4260b92d2fa09
[ "MIT" ]
1
2016-02-06T21:12:28.000Z
2016-02-06T21:12:28.000Z
tests/test_contacts.py
BasementCat/earful
a796ae3246f0d3b773be227bacf4260b92d2fa09
[ "MIT" ]
null
null
null
from unittest import TestCase from earful.contacts import ( EmailAddress, PhoneNumber, HipChat, Recipient, Group, ) class ContactInformationTest(TestCase): def test_hipchat_defaults(self): instance = HipChat('contactname', 'roomname') self.assertEqual(instance.name, 'conta...
35.018349
100
0.616453
fc91368049e857c87ae57e01ccb22ce62da3111a
1,058
py
Python
hc/front/tests/test_add_victorops.py
sumonst21/healthchecks
967ca840adee6c72addde46c944c88b1bd5484e2
[ "BSD-3-Clause" ]
4
2021-03-27T09:40:00.000Z
2021-03-28T06:11:03.000Z
hc/front/tests/test_add_victorops.py
sumonst21/healthchecks
967ca840adee6c72addde46c944c88b1bd5484e2
[ "BSD-3-Clause" ]
7
2020-06-05T23:16:36.000Z
2022-02-10T08:33:36.000Z
hc/front/tests/test_add_victorops.py
sumonst21/healthchecks
967ca840adee6c72addde46c944c88b1bd5484e2
[ "BSD-3-Clause" ]
1
2021-01-29T13:36:14.000Z
2021-01-29T13:36:14.000Z
from hc.api.models import Channel from hc.test import BaseTestCase class AddVictorOpsTestCase(BaseTestCase): url = "/integrations/add_victorops/" def test_instructions_work(self): self.client.login(username="alice@example.org", password="password") r = self.client.get(self.url) self.a...
34.129032
76
0.660681
b8fab35087a41fec41e2c8eb9f8d38642dae355f
6,378
py
Python
evaluation/custom_aristo_mini_solvers/basic_csk_solver.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
evaluation/custom_aristo_mini_solvers/basic_csk_solver.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
evaluation/custom_aristo_mini_solvers/basic_csk_solver.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
""" This is a skeleton for building your own solver. You just need to find and fix the two TODOs in this file. """ from typing import List import re import math import nltk import spacy from wordfreq import word_frequency from aristomini.common.solver import SolverBase from aristomini.common.models import MultipleC...
42.238411
122
0.652556
4628d63d96aceb8eb9e483d52b6ffde071686e77
18,712
py
Python
testing/scripts/run_performance_tests.py
lyapple2008/webrtc_simplify
c4f9bdc72d8e2648c4f4b1934d22ae94a793b553
[ "BSD-3-Clause" ]
2
2019-08-06T16:33:09.000Z
2020-05-01T09:23:18.000Z
testing/scripts/run_performance_tests.py
lyapple2008/webrtc_simplify
c4f9bdc72d8e2648c4f4b1934d22ae94a793b553
[ "BSD-3-Clause" ]
null
null
null
testing/scripts/run_performance_tests.py
lyapple2008/webrtc_simplify
c4f9bdc72d8e2648c4f4b1934d22ae94a793b553
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs telemetry benchmarks and gtest perf tests. This script attempts to emulate the contract of gtest-style tests invoked via recip...
37.878543
100
0.706873
f00d94594a60873f341d60bd5d2a0aa64e52bd47
1,096
py
Python
src/core/forms.py
lycantropos/shortener
f2a68c5b62c2472c0864f5accf97764a91b258c5
[ "MIT" ]
null
null
null
src/core/forms.py
lycantropos/shortener
f2a68c5b62c2472c0864f5accf97764a91b258c5
[ "MIT" ]
null
null
null
src/core/forms.py
lycantropos/shortener
f2a68c5b62c2472c0864f5accf97764a91b258c5
[ "MIT" ]
null
null
null
from django import forms from django.core.handlers.wsgi import WSGIRequest from . import models from .utils import shorten class URL(forms.Form): original = forms.URLField(label='original URL') @classmethod def from_request(cls, request: WSGIRequest): if request.method == 'POST': for...
34.25
77
0.541971
3bc2b76b58ed35713a214c8784d4ae6333d5685c
16,092
py
Python
src/sage/plot/histogram.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/plot/histogram.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/plot/histogram.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
""" Histograms """ # **************************************************************************** # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTAB...
45.07563
362
0.585384
afbe7992ea4d032ff651fe47415072702e88cce4
382
py
Python
stockviewer/stockviewer/utils/parse_config.py
vyacheslav-bezborodov/skt
58551eed497687adec5b56336037613a78cc5b2d
[ "MIT" ]
null
null
null
stockviewer/stockviewer/utils/parse_config.py
vyacheslav-bezborodov/skt
58551eed497687adec5b56336037613a78cc5b2d
[ "MIT" ]
null
null
null
stockviewer/stockviewer/utils/parse_config.py
vyacheslav-bezborodov/skt
58551eed497687adec5b56336037613a78cc5b2d
[ "MIT" ]
null
null
null
try: from lxml import etree except ImportError: try: import xml.etree.cElementTree as etree except ImportError: try: import xml.etree.ElementTree as etree except ImportError: try: import cElementTree as etree except ImportError: import elementtree.ElementTree as etree def parse_config(fp): t...
20.105263
43
0.748691
0dba20c47aa9a9d91cfe95a57b974d462e26981a
2,725
py
Python
discord/types/invite.py
Awayume/discord.py
a5307af5bfe373d425b184633be81e8157c14abe
[ "MIT" ]
null
null
null
discord/types/invite.py
Awayume/discord.py
a5307af5bfe373d425b184633be81e8157c14abe
[ "MIT" ]
null
null
null
discord/types/invite.py
Awayume/discord.py
a5307af5bfe373d425b184633be81e8157c14abe
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Awayume Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
26.980198
75
0.780183
fc3c417fb46da727ea8722f1eda96ea1b4c31181
19,567
py
Python
tests/test_implementations/test_sqlalchemy/api_test/test_patch_many_api.py
aebrahim/FastAPIQuickCRUD
5c4d1bea2203c30eb21557f18bf9016b55fffa60
[ "MIT" ]
123
2021-08-17T01:54:12.000Z
2022-03-29T20:41:56.000Z
tests/test_implementations/test_sqlalchemy/api_test/test_patch_many_api.py
aebrahim/FastAPIQuickCRUD
5c4d1bea2203c30eb21557f18bf9016b55fffa60
[ "MIT" ]
10
2021-12-28T21:34:20.000Z
2022-03-16T13:31:24.000Z
tests/test_implementations/test_sqlalchemy/api_test/test_patch_many_api.py
aebrahim/FastAPIQuickCRUD
5c4d1bea2203c30eb21557f18bf9016b55fffa60
[ "MIT" ]
10
2021-08-17T07:37:36.000Z
2022-03-31T13:16:55.000Z
import json from collections import OrderedDict from starlette.testclient import TestClient from src.fastapi_quickcrud import crud_router_builder from src.fastapi_quickcrud import CrudMethods from src.fastapi_quickcrud import sqlalchemy_to_pydantic from tests.test_implementations.test_sqlalchemy.api_test import get_t...
50.300771
143
0.608269
dcebb4edbba31e71a2c6fffb7694e48ec9a0ea01
3,257
py
Python
userbot/plugins/blacklist.py
techyminati/DeOXy
014efbf6ba4ba31525f996e935279e8918c8ba96
[ "Apache-2.0" ]
2
2020-08-02T17:20:12.000Z
2020-11-02T23:28:05.000Z
userbot/plugins/blacklist.py
techyminati/DeOXy
014efbf6ba4ba31525f996e935279e8918c8ba96
[ "Apache-2.0" ]
null
null
null
userbot/plugins/blacklist.py
techyminati/DeOXy
014efbf6ba4ba31525f996e935279e8918c8ba96
[ "Apache-2.0" ]
6
2020-08-17T16:11:18.000Z
2020-11-03T16:06:46.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """Filters Available Commands: .addblacklist .listblacklist .rmblacklist""" import asyncio import re import userbot.plugi...
36.188889
104
0.660731
0b9618f5fa9310b7e1617f4ba4321d9ddf7cd523
752
py
Python
arch/migrations/0008_auto_20210122_1155.py
ankanb240/otis-web
45eda65b419705c65c02b15872a137969d53d8e9
[ "MIT" ]
15
2021-08-28T18:18:37.000Z
2022-03-13T07:48:15.000Z
arch/migrations/0008_auto_20210122_1155.py
ankanb240/otis-web
45eda65b419705c65c02b15872a137969d53d8e9
[ "MIT" ]
65
2021-08-20T02:37:27.000Z
2022-02-07T17:19:23.000Z
arch/migrations/0008_auto_20210122_1155.py
ankanb240/otis-web
45eda65b419705c65c02b15872a137969d53d8e9
[ "MIT" ]
31
2020-01-09T02:35:29.000Z
2022-03-13T07:48:18.000Z
# Generated by Django 3.0.7 on 2021-01-22 16:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('arch', '0007_auto_20210122_0027'), ] operations = [ migrations.AddField( model_name='problem', name='aops_url', ...
31.333333
191
0.62766
a3382b98b7b841d0afd3a24db1c02adbddef9226
4,358
py
Python
examples/conv_filter_visualization.py
IndigenousEngineering/keras_docker_with_NLTK
075958831a3f74763ad1e094b3642f5174c7f817
[ "MIT" ]
20
2018-07-16T12:43:24.000Z
2020-12-15T08:37:35.000Z
examples/conv_filter_visualization.py
Qily/keras
1d81a20292ca6926e595d06a6cd725dbb104a146
[ "MIT" ]
13
2018-10-15T10:09:28.000Z
2019-01-07T04:48:27.000Z
examples/conv_filter_visualization.py
Qily/keras
1d81a20292ca6926e595d06a6cd725dbb104a146
[ "MIT" ]
22
2018-08-30T14:12:06.000Z
2021-07-03T19:43:15.000Z
'''Visualization of the filters of VGG16, via gradient ascent in input space. This script can run on CPU in a few minutes. Results example: http://i.imgur.com/4nj4KjN.jpg ''' from __future__ import print_function import numpy as np import time from keras.preprocessing.image import save_img from keras.applications im...
31.128571
79
0.673933
e40744db4dae89c5b18eece8fb12c59d83d47105
360
py
Python
24_Viral_Advertising.py
waditya/HackerRank_Algorithms_Implementation_Challenges
343fde9a411d49ab4ef4d96269d2eceef8c985ca
[ "Apache-2.0" ]
null
null
null
24_Viral_Advertising.py
waditya/HackerRank_Algorithms_Implementation_Challenges
343fde9a411d49ab4ef4d96269d2eceef8c985ca
[ "Apache-2.0" ]
null
null
null
24_Viral_Advertising.py
waditya/HackerRank_Algorithms_Implementation_Challenges
343fde9a411d49ab4ef4d96269d2eceef8c985ca
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import sys import math def viralAdvertising(n): no_of_shares_on_a_day = [2] for index in range(n-1): no_of_shares_on_a_day.append(int(3 * no_of_shares_on_a_day[index]/2)) return(sum(no_of_shares_on_a_day)) if __name__ == "__main__": n = int(input().strip()) result ...
21.176471
77
0.672222
bc7c39411c5cc2e042c4a11db4d5f02c7c9fbbd8
572
py
Python
setup.py
ucarlos/Romanjize
b5ab006c2f4ffbee02897cf919d9860acdbbbaf5
[ "MIT" ]
null
null
null
setup.py
ucarlos/Romanjize
b5ab006c2f4ffbee02897cf919d9860acdbbbaf5
[ "MIT" ]
null
null
null
setup.py
ucarlos/Romanjize
b5ab006c2f4ffbee02897cf919d9860acdbbbaf5
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup config = {"description": "A small program to convert Japanese tags into English.", "author": "Ulysses Carlos", "url": "N/A", "download_url": "https://github.com/ucarlos/Romanjize", "au...
30.105263
82
0.585664
cb1284c5d4c3c388f749c1340f1c0859acf2d741
7,187
py
Python
pywps/validator/complexvalidator.py
mishravikas/pywps-4
6d29f0ef73e6f0866df90f777ece27f50e4eea07
[ "MIT" ]
1
2019-09-03T11:08:55.000Z
2019-09-03T11:08:55.000Z
pywps/validator/complexvalidator.py
mishravikas/pywps-4
6d29f0ef73e6f0866df90f777ece27f50e4eea07
[ "MIT" ]
null
null
null
pywps/validator/complexvalidator.py
mishravikas/pywps-4
6d29f0ef73e6f0866df90f777ece27f50e4eea07
[ "MIT" ]
1
2019-09-03T11:08:58.000Z
2019-09-03T11:08:58.000Z
"""Validator classes are used for ComplexInputs, to validate the content """ from pywps.validator import ValidatorAbstract from pywps.validator import MODE from pywps.formats import FORMATS import os import mimetypes class BasicValidator(ValidatorAbstract): """Data validator implements ValidatorAbstract class ...
30.45339
450
0.612077
56c32194513c936aaeb240b9cd8032fc5b5b6cfc
262
py
Python
clock.py
kousuke42/TweetBot
4e8e3ad1af034d577bdb67744b2754694cfc14a6
[ "MIT" ]
null
null
null
clock.py
kousuke42/TweetBot
4e8e3ad1af034d577bdb67744b2754694cfc14a6
[ "MIT" ]
null
null
null
clock.py
kousuke42/TweetBot
4e8e3ad1af034d577bdb67744b2754694cfc14a6
[ "MIT" ]
null
null
null
from apscheduler.schedulers.blocking import BlockingScheduler import words twische = BlockingScheduler() @twische.scheduled_job('interval',minutes=30) def timed_job(): words.puttweet() print("tweetしました。") if __name__ == "__main__": twische.start()
21.833333
61
0.751908
f0776e758c918fee24f6fee9aa9536e94db3903a
7,669
py
Python
augly/audio/utils.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/audio/utils.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/audio/utils.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. import numbers from typing import Any, Dict, List, Optional, Tuple, Union import augly.audio.intensity as audintensity import augly.utils as utils import numpy as np import torch from augly.utils.libsndfile import install_libsndfile install_l...
33.489083
88
0.630069
0964f0e44ce15e3ce659f1c7df848613e3c0875b
3,050
py
Python
sdk/python/pulumi_oci/core/get_services.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/core/get_services.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/core/get_services.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, overload from .. import...
31.443299
133
0.662295
08901e2671092bf38e730b364bab9f8105421ffd
1,037
py
Python
py/lcEasy_0001_Two_Sums.py
stansuo/leetcode-py
7a8afccfe89bcb957163c1b8b77be0c86f9e1c2a
[ "MIT" ]
null
null
null
py/lcEasy_0001_Two_Sums.py
stansuo/leetcode-py
7a8afccfe89bcb957163c1b8b77be0c86f9e1c2a
[ "MIT" ]
null
null
null
py/lcEasy_0001_Two_Sums.py
stansuo/leetcode-py
7a8afccfe89bcb957163c1b8b77be0c86f9e1c2a
[ "MIT" ]
null
null
null
# Given an array of integers, return indices of the two numbers such that they add up to a specific target. # You may assume that each input would have exactly one solution, and you may not use the same element twice. # Example: # Given nums = [2, 7, 11, 15], target = 9, # Because nums[0] + nums[1] = 2 + 7 = 9, # r...
28.027027
109
0.502411
312c964d9387db62c0dc3abf5beaf282d0294575
989
py
Python
Algorithms/14_disjoint_set/disjoint-set.py
shouvikch97/Hacktoberfest-2k20
293bdd75ee51e1e5cdbdd03f6e7beca063280e34
[ "MIT" ]
18
2020-10-01T05:08:18.000Z
2021-10-01T13:51:18.000Z
Algorithms/14_disjoint_set/disjoint-set.py
shouvikch97/Hacktoberfest-2k20
293bdd75ee51e1e5cdbdd03f6e7beca063280e34
[ "MIT" ]
117
2020-09-30T16:31:42.000Z
2021-09-30T08:08:00.000Z
Algorithms/14_disjoint_set/disjoint-set.py
shouvikch97/Hacktoberfest-2k20
293bdd75ee51e1e5cdbdd03f6e7beca063280e34
[ "MIT" ]
79
2020-09-30T21:18:39.000Z
2021-09-30T08:19:19.000Z
# Python3 program to implement Disjoint Set Data Structure for union and find. class DisjSet: def __init__(self, n): self.rank = [1] * n self.parent = [i for i in range(n)] # Finds set of given item x def find(self, x): if self.parent[x] != x: self.parent[x] = self.find...
21.977778
78
0.541962
dc379367466c4018437418cfa5cb214cfab9d543
37,728
py
Python
pyfarm/jobtypes/core/internals.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
pyfarm/jobtypes/core/internals.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
pyfarm/jobtypes/core/internals.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
# No shebang line, this module is meant to be imported # # Copyright 2014 Oliver Palmer # # 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 # # Unle...
39.797468
81
0.577873
0d6e88e22e3700d2781e5c2bde763e0f0ae75829
2,412
py
Python
philips_lights/light_driver.py
LBNL-ETA/LPDM-Drivers
0190ecb1348b10d5fb7c5b60ca30ebbbbebe094e
[ "BSD-3-Clause-LBNL" ]
null
null
null
philips_lights/light_driver.py
LBNL-ETA/LPDM-Drivers
0190ecb1348b10d5fb7c5b60ca30ebbbbebe094e
[ "BSD-3-Clause-LBNL" ]
null
null
null
philips_lights/light_driver.py
LBNL-ETA/LPDM-Drivers
0190ecb1348b10d5fb7c5b60ca30ebbbbebe094e
[ "BSD-3-Clause-LBNL" ]
null
null
null
import requests from datetime import datetime, timedelta class Light_Driver(object): def __init__(self, url, auth, switch_point_low = 0.05, switch_point_high = 0.50): self.url = url self.auth = auth self.command_template = "<?xml version=\"1.0\" encoding=\"utf-8\"?><LG_CMD><CMD><CMDID>SET_M...
36.545455
153
0.630182
f352dc5b6fa085afe9877abaefc121366e99785a
10,418
py
Python
sdk/python/pulumi_azure_native/network/v20170601/get_network_interface.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20170601/get_network_interface.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20170601/get_network_interface.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
39.313208
329
0.665291
45a129aed8945874ae551e4b8104eba9ddf60e68
3,551
py
Python
sendSMSSkillLambda/package/ask_sdk_model/services/reminder_management/event.py
shneydor/aws-alexa-lambda-workshop
0fa6b7067b04fc85c46b9ce1c2cc04554ed5baf4
[ "Apache-2.0" ]
null
null
null
sendSMSSkillLambda/package/ask_sdk_model/services/reminder_management/event.py
shneydor/aws-alexa-lambda-workshop
0fa6b7067b04fc85c46b9ce1c2cc04554ed5baf4
[ "Apache-2.0" ]
null
null
null
sendSMSSkillLambda/package/ask_sdk_model/services/reminder_management/event.py
shneydor/aws-alexa-lambda-workshop
0fa6b7067b04fc85c46b9ce1c2cc04554ed5baf4
[ "Apache-2.0" ]
1
2019-10-11T17:15:20.000Z
2019-10-11T17:15:20.000Z
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
31.149123
96
0.587722
e9d32363f7481c167186eea5676d6d8327c5938f
709
py
Python
virtual/bin/django-admin.py
KaranjaK/Personal-Gallery
bceb89c8bcea9203eccd2f59b24bfbce477ac6a9
[ "Unlicense", "MIT" ]
null
null
null
virtual/bin/django-admin.py
KaranjaK/Personal-Gallery
bceb89c8bcea9203eccd2f59b24bfbce477ac6a9
[ "Unlicense", "MIT" ]
null
null
null
virtual/bin/django-admin.py
KaranjaK/Personal-Gallery
bceb89c8bcea9203eccd2f59b24bfbce477ac6a9
[ "Unlicense", "MIT" ]
null
null
null
#!/home/kk/Documents/moringa_django/Personal-Gallery/virtual/bin/python3.8 # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'djan...
32.227273
80
0.732017
05ed1c7ed9ad31fb5ee36d86b1e0f9ca8f0d16cc
1,847
py
Python
coverage/IN_CTS/0445-COVERAGE-nir-opt-idiv-const-90/generate_cts_test.py
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/IN_CTS/0445-COVERAGE-nir-opt-idiv-const-90/generate_cts_test.py
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/IN_CTS/0445-COVERAGE-nir-opt-idiv-const-90/generate_cts_test.py
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 The GraphicsFuzz Project 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 # # https://www.apache.org/licenses/LICEN...
31.844828
90
0.717921
bcab9c036255da26d4d7516d122795351e952ab7
11,935
py
Python
calvin/runtime/south/transports/calvinip/twisted/twisted_transport.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvin/runtime/south/transports/calvinip/twisted/twisted_transport.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvin/runtime/south/transports/calvinip/twisted/twisted_transport.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) 2015 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 ...
42.625
141
0.636866
40563d7bedda12ca9fcd079cc50b80debe4c139c
395
py
Python
python/py-collections/collections-counter.py
feliposz/hackerrank-solutions
fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f
[ "MIT" ]
null
null
null
python/py-collections/collections-counter.py
feliposz/hackerrank-solutions
fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f
[ "MIT" ]
null
null
null
python/py-collections/collections-counter.py
feliposz/hackerrank-solutions
fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from collections import Counter _ = raw_input() shoes_list = map(int, raw_input().split(' ')) shoes = Counter(shoes_list) total = 0 for _ in range(input()): data = raw_input().split(' ') size = int(data[0]) value = int(data[1]) if sho...
24.6875
69
0.635443
32ad59bd5e8e77e560af306e6ede7c158611f029
1,001
py
Python
workspaces/migrations/0013_workspacewhiteboardapp.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
workspaces/migrations/0013_workspacewhiteboardapp.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
workspaces/migrations/0013_workspacewhiteboardapp.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-20 05:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("workspaces", "0012_auto_20210402_1740"), ] operations = [ migrations.CreateModel( name="Workspa...
29.441176
68
0.493506
45457c4564eb18062523c243da59230406f73236
6,558
py
Python
mlp_class.py
uoguelph-mlrg/cnn-moth-detection
dbc2b2ef04e341ba8657f4cdb52f2c2108fa4aa3
[ "ECL-2.0" ]
2
2019-07-24T06:11:18.000Z
2021-09-13T11:36:41.000Z
mlp_class.py
uoguelph-mlrg/cnn-moth-detection
dbc2b2ef04e341ba8657f4cdb52f2c2108fa4aa3
[ "ECL-2.0" ]
null
null
null
mlp_class.py
uoguelph-mlrg/cnn-moth-detection
dbc2b2ef04e341ba8657f4cdb52f2c2108fa4aa3
[ "ECL-2.0" ]
null
null
null
import numpy import theano import theano.tensor as T from tools_theano import batch_to_anysize, cost_batch_to_any_size from fileop import load_data from layers import HiddenLayer, LogisticRegression, relu from fit import fit import logging class MLP(object): """Multi-Layer Perceptron Class A multilayer perc...
37.474286
105
0.620159
9c40b22f138f81c3026b865712d5a21f30870e42
180
py
Python
src/elements/properties/point.py
s-graveyard/PencilUi
f75bac419fb161edd28f225f4b35bced38e3ac8c
[ "Unlicense" ]
1
2018-02-14T17:02:37.000Z
2018-02-14T17:02:37.000Z
src/elements/properties/point.py
SanjayGubaju/PencilUi
f75bac419fb161edd28f225f4b35bced38e3ac8c
[ "Unlicense" ]
null
null
null
src/elements/properties/point.py
SanjayGubaju/PencilUi
f75bac419fb161edd28f225f4b35bced38e3ac8c
[ "Unlicense" ]
null
null
null
class Point: def __init__(self, new_x=0, new_y=0): self.x = new_x self.y = new_y def set_point(self, point): (self.x, self.y) = (point.x, point.y)
22.5
45
0.555556
a4f152299248531886efb645f7537c899db153ba
906
py
Python
ckanext/example_idatasetform/plugin_v6.py
mabah-mst/ckan
105f613272c2e31daa0081ead24c678bf1b55c22
[ "Apache-2.0" ]
2,805
2015-01-02T18:13:15.000Z
2022-03-31T03:35:01.000Z
ckanext/example_idatasetform/plugin_v6.py
mabah-mst/ckan
105f613272c2e31daa0081ead24c678bf1b55c22
[ "Apache-2.0" ]
3,801
2015-01-02T11:05:36.000Z
2022-03-31T19:24:37.000Z
ckanext/example_idatasetform/plugin_v6.py
cascaoSDC/ckan
75a08caa7c688ce70229dfea7070cc667a15c5e8
[ "BSD-3-Clause" ]
1,689
2015-01-02T19:46:43.000Z
2022-03-28T14:59:43.000Z
# encoding: utf-8 import ckan.plugins as p import ckan.plugins.toolkit as tk def fancy_route(package_type): return u'Hello, {}'.format(package_type) def fancy_new_route(package_type): return u'Hello, new {}'.format(package_type) def fancy_resource_route(package_type, id): return u'Hello, {}:{}'.forma...
25.166667
74
0.714128
672cc5936b4e5b0d40adbc00cd1ecbefca4dbc5c
1,513
py
Python
gpytorch/__init__.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
2
2019-04-19T00:35:49.000Z
2019-04-19T02:51:49.000Z
gpytorch/__init__.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
null
null
null
gpytorch/__init__.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
1
2019-04-19T00:42:35.000Z
2019-04-19T00:42:35.000Z
#!/usr/bin/env python3 from .module import Module from . import ( beta_features, distributions, kernels, lazy, likelihoods, means, mlls, models, priors, settings, utils, variational, ) from .functions import ( add_diag, add_jitter, dsmm, inv_matmul, in...
18.011905
108
0.636484
a0a12ac73f402ed74571b8adb0d729d803a48645
13,847
py
Python
utils/torch_utils.py
akdenizz/yolov5_object_detection
e0e9ef458fa9bb9ef9036655bfd008b6249b7485
[ "MIT" ]
5
2022-03-04T11:55:14.000Z
2022-03-08T07:54:00.000Z
utils/torch_utils.py
akdenizz/yolov5_object_detection
e0e9ef458fa9bb9ef9036655bfd008b6249b7485
[ "MIT" ]
null
null
null
utils/torch_utils.py
akdenizz/yolov5_object_detection
e0e9ef458fa9bb9ef9036655bfd008b6249b7485
[ "MIT" ]
3
2022-03-10T23:17:10.000Z
2022-03-19T19:29:51.000Z
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ PyTorch utils """ import datetime import math import os import platform import subprocess import time import warnings from contextlib import contextmanager from copy import deepcopy from pathlib import Path import torch import torch.distributed as dist import torch.nn a...
42.216463
120
0.606269
5f9bb93d2e597609550b82157c1f93513ea0c390
2,277
py
Python
lib/python2.7/site-packages/pip/_internal/utils/packaging.py
DPNT-Sourcecode/CHK-uimw01
87144ae10115d7a8df565f5109666f00bc001ce4
[ "Apache-2.0" ]
937
2019-05-08T08:46:25.000Z
2022-03-31T12:56:07.000Z
virtual/lib/python3.6/site-packages/pip/_internal/utils/packaging.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
374
2015-12-25T05:38:28.000Z
2022-03-03T05:03:36.000Z
lib/python2.7/site-packages/pip/_internal/utils/packaging.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
354
2019-05-10T02:15:26.000Z
2022-03-30T05:52:57.000Z
from __future__ import absolute_import import logging import sys from email.parser import FeedParser # type: ignore from pip._vendor import pkg_resources from pip._vendor.packaging import specifiers, version from pip._internal import exceptions logger = logging.getLogger(__name__) def check_requires_python(requi...
32.070423
77
0.680281
0ab228dfb5199bc385232e53b7d579f620fbda5f
608
py
Python
booky/bookmgr/migrations/0001_initial.py
karmek-k/bookmgr
647463ecb05aae00c9d8026155829b68ef989220
[ "MIT" ]
1
2019-07-03T12:37:16.000Z
2019-07-03T12:37:16.000Z
booky/bookmgr/migrations/0001_initial.py
karmek-k/bookmgr
647463ecb05aae00c9d8026155829b68ef989220
[ "MIT" ]
null
null
null
booky/bookmgr/migrations/0001_initial.py
karmek-k/bookmgr
647463ecb05aae00c9d8026155829b68ef989220
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-26 13:50 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(aut...
25.333333
114
0.569079
4e6b62a231a46fe722266edf92e3704ab697663e
27,238
py
Python
src/lib/utils/debugger.py
anhvth/RTM3D
d2843937de034556694d36fc5cde95e8afe6ae17
[ "MIT" ]
393
2020-01-13T07:42:48.000Z
2022-03-22T07:15:25.000Z
src/lib/utils/debugger.py
anhvth/RTM3D
d2843937de034556694d36fc5cde95e8afe6ae17
[ "MIT" ]
54
2020-02-10T14:52:50.000Z
2022-03-15T08:45:11.000Z
src/lib/utils/debugger.py
anhvth/RTM3D
d2843937de034556694d36fc5cde95e8afe6ae17
[ "MIT" ]
73
2020-01-14T02:59:21.000Z
2022-03-30T04:16:57.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import cv2 from .ddd_utils import compute_box_3d, project_to_image, draw_box_3d import os import utils.vis_3d_utils as vis_utils import math class Debugger(object): def __init__(self, ipynb...
39.135057
97
0.519311
2651376e2d81de35ad9c2d42420d0afa8be407aa
1,661
py
Python
search_engine/controller.py
cuong1181998/IR-IT4853
6b18832e99a76764ebbc1e52dc5efb54f5d95879
[ "MIT" ]
2
2020-04-24T08:41:08.000Z
2021-07-21T04:19:44.000Z
search_engine/controller.py
cuong1181998/IR-IT4853
6b18832e99a76764ebbc1e52dc5efb54f5d95879
[ "MIT" ]
null
null
null
search_engine/controller.py
cuong1181998/IR-IT4853
6b18832e99a76764ebbc1e52dc5efb54f5d95879
[ "MIT" ]
null
null
null
import pysolr import json from pyvi import ViTokenizer import utils SOLR_SERVER = 'http://localhost:8983/solr/IT4853' def connect_solr(): try: solr = pysolr.Solr(SOLR_SERVER, always_commit=True) solr.ping() # check solr alive print("Connection success!!") return solr except Exc...
30.2
132
0.584588
a84da7cf5f6cc7a931b96a60108034b77bc84cdb
820
py
Python
setup.py
realiti4/pip-upgrade
578885d6206159b939cfc38d5a2f95d3d4afb193
[ "MIT" ]
17
2020-10-14T12:25:59.000Z
2021-12-14T14:53:05.000Z
setup.py
realiti4/pip-upgrade
578885d6206159b939cfc38d5a2f95d3d4afb193
[ "MIT" ]
5
2020-08-24T21:14:24.000Z
2021-12-05T20:33:58.000Z
setup.py
realiti4/pip-upgrade
578885d6206159b939cfc38d5a2f95d3d4afb193
[ "MIT" ]
4
2020-12-01T12:16:42.000Z
2022-02-08T18:43:23.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pip-upgrade-tool", version="0.5.2", author="Onur Cetinkol", author_email="realiti44@gmail.com", description="An easy tool for upgrading all of your packages while not breaking dependencies...
30.37037
98
0.659756
980baba3281581f32eec9b807d505667c9141cab
6,672
py
Python
tests/background_tasks_test.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
null
null
null
tests/background_tasks_test.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
null
null
null
tests/background_tasks_test.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.861878
80
0.68705
0fa4cb0d66743749e629dd92397d7d889379fc6f
7,017
py
Python
custom_components/pfsense_fauxapi/switch.py
jabastien/pfSense-FauxAPI-ha
1c5be9787b51723e5aa2f86acc511bd6b6196cfc
[ "MIT" ]
15
2020-11-25T22:17:20.000Z
2021-09-20T18:59:43.000Z
custom_components/pfsense_fauxapi/switch.py
jabastien/pfSense-FauxAPI-ha
1c5be9787b51723e5aa2f86acc511bd6b6196cfc
[ "MIT" ]
11
2020-12-04T01:02:33.000Z
2021-10-19T14:14:59.000Z
custom_components/pfsense_fauxapi/switch.py
jabastien/pfSense-FauxAPI-ha
1c5be9787b51723e5aa2f86acc511bd6b6196cfc
[ "MIT" ]
3
2020-11-25T19:33:13.000Z
2021-08-25T00:58:23.000Z
""" Switch Platform support for pfSense firewall rules. For more details please refer to https://github.com/dgshue/home-assistant-custom-components Example usage: configuration.yaml --------------------------------------- switch: - platform: pfsense_fauxapi host: 192.168.1.1 port: 443 api_key: PFFA1QDK...
36.357513
140
0.633747
63e01113072e119179297dd78228fac733f503d7
3,707
py
Python
tests/test.py
BaharYilmaz/MAX-OCR
d5c644165867f0022b96905156cf51892a5ae21c
[ "Apache-2.0" ]
36
2019-11-04T22:57:42.000Z
2022-03-03T07:08:56.000Z
tests/test.py
BaharYilmaz/MAX-OCR
d5c644165867f0022b96905156cf51892a5ae21c
[ "Apache-2.0" ]
8
2019-11-05T12:28:46.000Z
2022-01-13T01:47:44.000Z
tests/test.py
BaharYilmaz/MAX-OCR
d5c644165867f0022b96905156cf51892a5ae21c
[ "Apache-2.0" ]
26
2019-10-29T04:41:32.000Z
2022-03-24T13:21:02.000Z
# Copyright 2018-2019 IBM Corp. 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 o...
31.151261
104
0.670623
f0c6c817089bd2013e1f849729492758c3fdc3cd
2,092
py
Python
examples/ex09b_update_about.py
bstienen/phenoai
d7210aa2d0f89573724d0301e0dfeffb87c26646
[ "MIT" ]
2
2018-08-31T01:18:14.000Z
2020-07-25T05:57:49.000Z
examples/ex09b_update_about.py
bstienen/phenoai
d7210aa2d0f89573724d0301e0dfeffb87c26646
[ "MIT" ]
null
null
null
examples/ex09b_update_about.py
bstienen/phenoai
d7210aa2d0f89573724d0301e0dfeffb87c26646
[ "MIT" ]
1
2020-07-25T05:57:38.000Z
2020-07-25T05:57:38.000Z
""" Example 09b: Update About ========================= Apart from being able to read and use AInalyses, PhenoAI also implements a module to create new AInalyses from an existing estimator or to alter an existing AInalysis. This module, the maker module, is used in this example to create an AInalysis that implements a ...
36.701754
249
0.779637
a58c46b2d99ca6e427dc2ce8c5104d0613a012d2
27,398
py
Python
tests/test_serializer.py
daleione/django-rest-framework
f81ca786427db40b648b5bcc0e67044163215457
[ "BSD-3-Clause" ]
4
2019-02-11T13:01:34.000Z
2020-10-22T08:39:57.000Z
tests/test_serializer.py
daleione/django-rest-framework
f81ca786427db40b648b5bcc0e67044163215457
[ "BSD-3-Clause" ]
null
null
null
tests/test_serializer.py
daleione/django-rest-framework
f81ca786427db40b648b5bcc0e67044163215457
[ "BSD-3-Clause" ]
2
2019-03-01T11:55:31.000Z
2019-07-07T09:58:16.000Z
import inspect import pickle import re from collections import ChainMap from collections.abc import Mapping import pytest from django.db import models from rest_framework import exceptions, fields, relations, serializers from rest_framework.fields import Field from .models import ( ForeignKeyTarget, NestedForeig...
37.27619
131
0.615921
293c937bece2236f515746eb532ad2b9cde23217
25,319
py
Python
textrenderer/corpus/chn_corpus.py
Sand0001/OCR_textrender_jap_chn_eng
87a01946bb8cd5229d2babcdf42a18df5b3e561f
[ "MIT" ]
null
null
null
textrenderer/corpus/chn_corpus.py
Sand0001/OCR_textrender_jap_chn_eng
87a01946bb8cd5229d2babcdf42a18df5b3e561f
[ "MIT" ]
null
null
null
textrenderer/corpus/chn_corpus.py
Sand0001/OCR_textrender_jap_chn_eng
87a01946bb8cd5229d2babcdf42a18df5b3e561f
[ "MIT" ]
null
null
null
import random import numpy as np from textrenderer.corpus.corpus import Corpus class DIPCorpus: def __init__(self): self.content = '' self.language = None self.eng_whitespace_pos_list = [] self.low_char_index_dct = {} self.low_charset_level_list = [] class ChnCorpu...
40.903069
132
0.51649
cc2afa7ba12ba65b1baffecdfbd0a1d7c6b9a9f0
37,584
py
Python
tensorflow/python/ops/stateless_random_ops.py
computationalartist/tensorflow
b89cf636c412abdff53b3e8f201bde671c92209d
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/ops/stateless_random_ops.py
computationalartist/tensorflow
b89cf636c412abdff53b3e8f201bde671c92209d
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/ops/stateless_random_ops.py
computationalartist/tensorflow
b89cf636c412abdff53b3e8f201bde671c92209d
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.399538
85
0.685026
0f664171cf342894cde5116235673b018f8c2ae4
1,757
py
Python
Feature_Learning/learning_model/utils/reid_metric.py
Simon4Yan/feature_learning
23ecc1bb2ce3ce4bece9159ca4ecc420e3e8f34c
[ "MIT" ]
17
2019-05-31T12:58:42.000Z
2021-05-26T09:47:50.000Z
Feature_Learning/learning_model/utils/reid_metric.py
GangmingZhao/feature_learning
23ecc1bb2ce3ce4bece9159ca4ecc420e3e8f34c
[ "MIT" ]
2
2019-11-13T14:29:23.000Z
2022-02-06T07:13:28.000Z
Feature_Learning/learning_model/utils/reid_metric.py
GangmingZhao/feature_learning
23ecc1bb2ce3ce4bece9159ca4ecc420e3e8f34c
[ "MIT" ]
3
2019-05-31T15:40:24.000Z
2020-11-09T07:44:46.000Z
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ import numpy as np import torch from ignite.metrics import Metric from data.datasets.eval_reid import eval_func from data.datasets.ranking import cmc from data.datasets.ranking import mean_ap import scipy.io class R1_mAP(Metric): d...
32.537037
76
0.620945
e6fa282860e4b8f0ecce9ae4ec6ff2784a2317ef
921
py
Python
conftest.py
konflic/python_qa_remotes
d36ddfb023b87a5439a78938c0f6842212a11e3d
[ "MIT" ]
null
null
null
conftest.py
konflic/python_qa_remotes
d36ddfb023b87a5439a78938c0f6842212a11e3d
[ "MIT" ]
1
2021-12-05T20:39:16.000Z
2021-12-05T20:39:16.000Z
conftest.py
konflic/python_qa_remotes
d36ddfb023b87a5439a78938c0f6842212a11e3d
[ "MIT" ]
1
2021-12-09T13:44:13.000Z
2021-12-09T13:44:13.000Z
import pytest from selenium import webdriver def pytest_addoption(parser): parser.addoption( "--browser", default="chrome", choices=["chrome", "firefox", "opera", "MicrosoftEdge"] ) parser.addoption("--executor", default="192.168.1.88") @pytest.fixture def firefox(request): ...
20.931818
63
0.673181
3b1913e2fd6208932f0574a858406fe08f305b85
72,040
py
Python
corehq/apps/domain/views/accounting.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/domain/views/accounting.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/domain/views/accounting.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
import datetime import json from collections import namedtuple from decimal import Decimal from django.conf import settings from django.contrib import messages from django.core.exceptions import ValidationError from django.core.paginator import Paginator from django.core.validators import validate_email from django.db...
38.982684
117
0.625208
d039f03a2c8a283a14014218f2596fcb2d60b02d
16,997
py
Python
pylib/gyp/generator/eclipse.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
77
2018-07-01T15:55:34.000Z
2022-03-30T09:16:54.000Z
pylib/gyp/generator/eclipse.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
116
2021-05-29T16:32:51.000Z
2021-08-13T16:05:29.000Z
pylib/gyp/generator/eclipse.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
53
2018-04-13T12:06:06.000Z
2022-03-25T13:54:38.000Z
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GYP backend that generates Eclipse CDT settings files. This backend DOES NOT generate Eclipse CDT projects. Instead, it generates XML files that can be importe...
39.899061
80
0.666765
e847907169f8111a8b3b2c0175a250aabfebcb88
2,295
py
Python
tickit/utils/configuration/configurable.py
dls-controls/tickit
00bb013e69674bcfe4926f365ecb3c65c080abe8
[ "Apache-2.0" ]
4
2021-09-16T13:35:33.000Z
2022-02-01T23:35:53.000Z
tickit/utils/configuration/configurable.py
dls-controls/tickit
00bb013e69674bcfe4926f365ecb3c65c080abe8
[ "Apache-2.0" ]
46
2021-09-16T13:44:58.000Z
2022-02-02T13:42:56.000Z
tickit/utils/configuration/configurable.py
dls-controls/tickit
00bb013e69674bcfe4926f365ecb3c65c080abe8
[ "Apache-2.0" ]
null
null
null
from typing import Any, DefaultDict, Dict, Iterator, Type, TypeVar from apischema import deserializer from apischema.conversions import Conversion from apischema.tagged_unions import Tagged, TaggedUnion, get_tagged # Implementation adapted from apischema example: Class as tagged union of its subclasses # see: https:/...
34.772727
89
0.696296
708af50d7bc07d517419931e78935e86e6683016
1,304
py
Python
test_analysis.py
jgm48/ia-flood-risk-project
b0e61bae8ff4c00bf767e95f7e271760c0bff543
[ "MIT" ]
null
null
null
test_analysis.py
jgm48/ia-flood-risk-project
b0e61bae8ff4c00bf767e95f7e271760c0bff543
[ "MIT" ]
null
null
null
test_analysis.py
jgm48/ia-flood-risk-project
b0e61bae8ff4c00bf767e95f7e271760c0bff543
[ "MIT" ]
null
null
null
#test_analysis """Unit test for analysis module""" import datetime import numpy from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.analysis import polyfit, risk_level_towns from floodsystem.datafetcher import fetch_measure_levels def test_polyfit(): """Tests polyfit func...
31.047619
128
0.677147