hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
c8f71363344b834d9635ab570a40473bf8e9c067
32,497
py
Python
monai/transforms/croppad/array.py
danieltudosiu/MONAI
99bca69f26f9f6a76e60f2ce7848e83470547833
[ "Apache-2.0" ]
1
2021-04-13T08:10:28.000Z
2021-04-13T08:10:28.000Z
monai/transforms/croppad/array.py
mxochicale/MONAI
d72f61ea9f73821602f507b5e80a97c3c6937e05
[ "Apache-2.0" ]
null
null
null
monai/transforms/croppad/array.py
mxochicale/MONAI
d72f61ea9f73821602f507b5e80a97c3c6937e05
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
46.825648
120
0.630735
c8f72d078db94f7ccdb94be7b7c00176f8dc49f5
8,362
py
Python
fabric_cf/actor/core/kernel/slice_table.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/actor/core/kernel/slice_table.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/core/kernel/slice_table.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
32.664063
85
0.601292
c8f731b013816ba41b51d6f50b5196f4ac86ee04
504
py
Python
linkedlist/reverseList.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
linkedlist/reverseList.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
linkedlist/reverseList.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """ last = None currentNode = head while curr...
21.913043
39
0.529762
c8f740767d101c8403ebf320d7e3a48eb4a608fd
4,051
py
Python
pyslip/examples/test_multi_widget.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
pyslip/examples/test_multi_widget.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
pyslip/examples/test_multi_widget.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
"""Test PySlip with multiple widget instances. Usage: test_multi_widget.py [-h] Uses the GMT and OSM tiles. Look for interactions of any sort between the widget instances. """ import os import sys import wx import pyslip import pyslip.gmt_local as GMTTiles #import pyslip.open_street_map as NetTiles import pyslip.s...
30.007407
80
0.578376
c8f74b9fe209b697f67683e135ec2adf32709e8a
1,594
py
Python
main.py
nikitph/bluddy-app-engine
b25290f8054ae18653e55cd8f3c824daad3c2995
[ "Apache-2.0" ]
null
null
null
main.py
nikitph/bluddy-app-engine
b25290f8054ae18653e55cd8f3c824daad3c2995
[ "Apache-2.0" ]
null
null
null
main.py
nikitph/bluddy-app-engine
b25290f8054ae18653e55cd8f3c824daad3c2995
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request from emailassistant import EmailAssistant app = Flask(__name__) app.config['DEBUG'] = True # Note: We don't need to call run() since our application is embedded within # the App Engine WSGI application server. @app.route('/') def hello_world(): return render_tem...
35.422222
120
0.652447
c8f74c809a780099d60cafdc3dfb80d504a40105
21,830
py
Python
python/paddle/fluid/layers/ops.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
1
2020-05-27T05:21:42.000Z
2020-05-27T05:21:42.000Z
python/paddle/fluid/layers/ops.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/ops.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
27.321652
204
0.590884
c8f76a05fe0a774394c6f6e98dca9fc237e5b68d
23
py
Python
HSVideo/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
HSVideo/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
HSVideo/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
from ._hsvideo import *
23
23
0.782609
c8f775c9450cc723e9613b76383800469cc95ff1
924
py
Python
openapi_core/schema/request_bodies/models.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/request_bodies/models.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/request_bodies/models.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
"""OpenAPI core request bodies models module""" from openapi_core.schema.content.exceptions import MimeTypeNotFound from openapi_core.schema.content.models import Content from openapi_core.schema.media_types.exceptions import InvalidContentType from openapi_core.schema.request_bodies.exceptions import MissingRequestBod...
34.222222
76
0.717532
c8f77da91c8615c6336c82b11a6d92a24e60d1a1
4,914
py
Python
tests/test_util.py
mag1pie/scHPF
926f8831b4167ad877572a5e34d1e7d2f729b1c4
[ "BSD-2-Clause" ]
null
null
null
tests/test_util.py
mag1pie/scHPF
926f8831b4167ad877572a5e34d1e7d2f729b1c4
[ "BSD-2-Clause" ]
null
null
null
tests/test_util.py
mag1pie/scHPF
926f8831b4167ad877572a5e34d1e7d2f729b1c4
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np from numpy.testing import assert_equal, assert_array_equal from scipy.sparse import coo_matrix import pytest from schpf import max_pairwise, max_pairwise_table from schpf.util import split_coo_rows, collapse_coo_rows, insert_coo_rows from schpf.util import mean_cellscore_fract...
36.671642
74
0.568783
c8f792d9795048eb5913feaaedba6d52b00ba43c
8,031
py
Python
metadata-ingestion/src/datahub/ingestion/source_config/usage/bigquery_usage.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
289
2022-03-16T00:30:15.000Z
2022-03-31T23:16:21.000Z
metadata-ingestion/src/datahub/ingestion/source_config/usage/bigquery_usage.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
155
2022-03-15T19:43:07.000Z
2022-03-31T20:33:41.000Z
metadata-ingestion/src/datahub/ingestion/source_config/usage/bigquery_usage.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
46
2022-03-15T19:08:32.000Z
2022-03-31T17:56:26.000Z
import json import logging import os import tempfile from datetime import timedelta from typing import Any, Dict, List, Optional import pydantic from datahub.configuration import ConfigModel from datahub.configuration.common import AllowDenyPattern, ConfigurationError from datahub.configuration.source_common import D...
47.241176
391
0.714855
c8f7c0cf395ad46e2fe5b7ce47ceaf3eaa22ca3b
2,041
py
Python
services/storage/src/simcore_service_storage/cli.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/storage/src/simcore_service_storage/cli.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/storage/src/simcore_service_storage/cli.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" Application's command line . Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -msimcore_service_storage` python will execute ``__main__.py`` as a ...
25.5125
90
0.724645
c8f7ca224854b3596643d9994a5474c977a33831
808
py
Python
modules/cupy.py
davidstutz/pytorch-custom-c-cuda-operations
882f6e2612cac49acda49e15529ad2ad7ed8750b
[ "Unlicense" ]
13
2020-03-21T20:48:45.000Z
2021-02-18T14:10:41.000Z
modules/cupy.py
davidstutz/pytorch-custom-c-cuda-operations
882f6e2612cac49acda49e15529ad2ad7ed8750b
[ "Unlicense" ]
null
null
null
modules/cupy.py
davidstutz/pytorch-custom-c-cuda-operations
882f6e2612cac49acda49e15529ad2ad7ed8750b
[ "Unlicense" ]
null
null
null
import torch try: import cupy @cupy.util.memoize(for_each_device=True) def cunnex(strFunction): return cupy.cuda.compile_with_cache(globals()[strFunction]).get_function(strFunction) except ImportError: print("CUPY cannot initialize, not using CUDA kernels") class Stream: ptr = torch.cuda...
21.837838
93
0.576733
c8f7cf53e0ed5a51af94918f3c938b2cd5ca60ae
665
py
Python
src/pyseed/error.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
src/pyseed/error.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
src/pyseed/error.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ error ~~~~~~~~~~~~~~ Error defintion. :copyright: (c) 2021 by weiminfeng. :date: 2021/6/9 """ class SeedError(Exception): """ Base class for exceptions. """ def __init__(self, message): self.message = message def __str__(self): return sel...
14.456522
39
0.572932
c8f7e6888d47d408e06d3b1cc0b582d6ff02d60f
18,188
py
Python
manafa/batteryStats/BatteryStatsParser.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
manafa/batteryStats/BatteryStatsParser.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
manafa/batteryStats/BatteryStatsParser.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
import os import re,json #sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from collections import Iterable from manafa.powerProfile.PowerProfile import PowerProfile from manafa.utils.Utils import get_pack_dir from manafa.utils.dateUtils import convertBatStatTimeToTimeStamp,batStatResetTimeToTimeSta...
36.743434
178
0.678579
c8f7e9253f0727355bad2c819745056bb26e9928
4,500
py
Python
static/shapes/kdtree.py
MKuranowski/WarsawGTFS
595b307b41bc288f634403b882067729f9d2c820
[ "MIT" ]
20
2017-07-12T16:33:32.000Z
2022-03-10T01:34:21.000Z
static/shapes/kdtree.py
MKuranowski/WarsawGTFS
595b307b41bc288f634403b882067729f9d2c820
[ "MIT" ]
4
2018-10-08T06:52:44.000Z
2022-01-24T15:03:25.000Z
static/shapes/kdtree.py
MKuranowski/WarsawGTFS
595b307b41bc288f634403b882067729f9d2c820
[ "MIT" ]
6
2018-06-21T16:15:39.000Z
2022-01-24T12:42:50.000Z
from typing import Iterable, NamedTuple, Tuple, Union, Mapping, List from .helpers import _Pt class Point(NamedTuple): lat: float lon: float id: int def _dist_squared(p: Union[Point, _Pt], q: Union[Point, _Pt]) -> float: """Returns the euclidian distance squared between two points.""" dx = p[0]...
32.846715
98
0.599556
c8f7eea4dbfb1c260e4370c883788f8975e09c80
1,408
py
Python
tests/setup_tests.py
dbaelipro/CHAID
2f84e94c5bc1ed672ae0730e6e3477cb877acd2c
[ "Apache-2.0" ]
1
2020-12-11T15:54:11.000Z
2020-12-11T15:54:11.000Z
tests/setup_tests.py
dbaelipro/CHAID
2f84e94c5bc1ed672ae0730e6e3477cb877acd2c
[ "Apache-2.0" ]
1
2020-12-11T15:56:47.000Z
2020-12-11T15:56:47.000Z
tests/setup_tests.py
dbaelipro/CHAID
2f84e94c5bc1ed672ae0730e6e3477cb877acd2c
[ "Apache-2.0" ]
2
2020-12-11T15:54:13.000Z
2021-07-01T07:37:59.000Z
""" This module provides helper functions for the rest of the testing module """ from collections import Iterable import os import sys from math import isnan ROOT_FOLDER = os.path.realpath(os.path.dirname(os.path.realpath(__file__)) + '/../') sys.path = [ROOT_FOLDER] + sys.path import CHAID def islist(a): retu...
32
110
0.68679
c8f842d7fca1df253eee46be4bb214bfe24fd0ba
350
py
Python
LeetCode/easy - Array/643. Maximum Average Subarray I/solution.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LeetCode/easy - Array/643. Maximum Average Subarray I/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LeetCode/easy - Array/643. Maximum Average Subarray I/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/maximum-average-subarray-i/discuss/105435/2-lines-Python-2-versions class Solution: def findMaxAverage(self, nums: List[int], k: int) -> float: new = [0] + nums for i in range(len(new)): new[i] += new[i-1] return max(new[i+k]-new[i] f...
38.888889
99
0.588571
c8f8664f221306c01c54430f6050515a6603bdd3
4,059
py
Python
third_party/pex/pex/link.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
third_party/pex/pex/link.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
third_party/pex/pex/link.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import os import posixpath from collections import Iterable from .compatibility import string as compatible_string from .compatibility import PY3, ...
28.787234
96
0.67997
c8f87444ab1fddc88b5d10a9da920be5c83e3d34
154
py
Python
iris_sdk/models/maps/telephone_number_detail_list.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/maps/telephone_number_detail_list.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/maps/telephone_number_detail_list.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.maps.base_map import BaseMap class TelephoneNumberDetailListMap(BaseMap): telephone_number_detail = None
22
49
0.811688
c8f8b9415663c8ac38ae40b932e1c746ffdea55c
12,365
py
Python
lib/model/utils/net_utils.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
lib/model/utils/net_utils.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
lib/model/utils/net_utils.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
1
2019-07-31T01:41:11.000Z
2019-07-31T01:41:11.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import torchvision.models as models from model.utils.config import cfg from model.roi_crop.functions.roi_crop import RoICropFunction import cv2 import pdb import random import os import xml.etree.El...
34.929379
110
0.55924
c8f8ee33c7f4f7e54402c0f6be854e8816103553
10,018
py
Python
django/utils/functional.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
django/utils/functional.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/utils/functional.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
import operator from functools import wraps, update_wrapper # You can't trivially replace this `functools.partial` because this binds to # classes and returns bound instances, whereas functools.partial (on CPython) # is a type and its instances don't bind. def curry(_curried_func, *args, **kwargs): def _curried(*...
36.035971
130
0.607107
c8f95997a5a1f0606a691da114d2f582cb9d8e46
7,682
py
Python
experiments/create_confusion_matrix.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
23
2021-01-19T11:50:57.000Z
2021-12-12T17:20:22.000Z
experiments/create_confusion_matrix.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
1
2021-04-06T14:35:03.000Z
2021-06-20T08:56:15.000Z
experiments/create_confusion_matrix.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
8
2021-01-05T10:49:19.000Z
2021-12-12T17:20:38.000Z
import torch import argparse import numpy as np import random import torchvision import json import os import importlib import torch.utils.data as data import seaborn as sn import pandas as pd import matplotlib.pyplot as plt import matplotlib from typing import Optional from iirc.datasets_loader import get_lifelong_da...
47.419753
118
0.659984
c8f959f67b08ae3d623f25caa17cc549af903394
6,478
py
Python
ibis/backends/dask/tests/execution/test_temporal.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/dask/tests/execution/test_temporal.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/dask/tests/execution/test_temporal.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
import datetime from operator import methodcaller import dask.dataframe as dd import numpy as np import pandas as pd import pytest from dask.dataframe.utils import tm # noqa: E402 from pkg_resources import parse_version from pytest import param from ibis import literal as L # noqa: E402 from ibis.expr import dataty...
32.39
79
0.613461
c8f97b378cc5ba9c0dd9c790a3ad2934267513a4
485
py
Python
tests/test_jirascraper.py
engdan77/tasks_collector
098dbe332184baeaeb442a70f91e167f9a48afc4
[ "MIT" ]
null
null
null
tests/test_jirascraper.py
engdan77/tasks_collector
098dbe332184baeaeb442a70f91e167f9a48afc4
[ "MIT" ]
null
null
null
tests/test_jirascraper.py
engdan77/tasks_collector
098dbe332184baeaeb442a70f91e167f9a48afc4
[ "MIT" ]
null
null
null
from tasks_collector.tasksscraper.jirascraper import get_jira_tasks import json def test_get_jira_tasks(mocker): with open('tests/jira_tasks.json') as f: input_list = json.loads(f.read()) mocked_jira = mocker.patch('tasks_collector.tasksscraper.jirascraper.JIRA') mocked_jira.return_value.search_iss...
40.416667
79
0.758763
c8f9881af402d8388db1b4b63ae73ffa4d7681b8
590
py
Python
external/snake-0.3/examples/ibamr/plotVorticity.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
67
2015-01-25T18:33:39.000Z
2022-02-17T17:50:00.000Z
external/snake-0.3/examples/ibamr/plotVorticity.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
20
2015-01-25T05:29:30.000Z
2018-05-14T02:07:03.000Z
external/snake-0.3/examples/ibamr/plotVorticity.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
39
2015-01-22T16:32:11.000Z
2022-02-17T08:17:09.000Z
""" Plots the 2D vorticity field from a IBAMR simulation at saved time-steps using the visualization software VisIt. """ from snake.ibamr.simulation import IBAMRSimulation simulation = IBAMRSimulation() body_name = 'flyingSnake2dAoA35ds004filledInside' # file name (no extension) simulation.plot_field_contours_visi...
34.705882
78
0.577966
c8f99cd3f4442e5e6dac146b42d0db9fe9634e07
1,218
py
Python
xutilities.py
jhurley13/weather_report
7f1c84b427683d58f3d922a93ffc7748b7429928
[ "Apache-2.0" ]
6
2020-07-23T19:26:28.000Z
2022-01-07T22:24:26.000Z
xutilities.py
jhurley13/weather_report
7f1c84b427683d58f3d922a93ffc7748b7429928
[ "Apache-2.0" ]
null
null
null
xutilities.py
jhurley13/weather_report
7f1c84b427683d58f3d922a93ffc7748b7429928
[ "Apache-2.0" ]
2
2020-06-29T23:27:10.000Z
2022-02-15T20:51:20.000Z
# https://stackoverflow.com/questions/952914/how-to-make-a-flat-list-out-of-list-of-lists # This solution is modified from a recipe in Beazley, D. and B. Jones. # Recipe 4.14, Python Cookbook 3rd Ed., O'Reilly Media Inc. Sebastopol, CA: 2013. from collections import Iterable import yaml def flatten(items): """Y...
31.230769
89
0.694581
c8f9a4299b433e135d7e3b169c24a66470d987e0
2,941
py
Python
flask_session_tutorial/auth.py
Dima2021/flask-session-tutorial
87586a27aa980fc314a3ee9874cf23d4cd4cd40f
[ "MIT" ]
80
2020-03-04T20:23:09.000Z
2022-01-19T03:52:58.000Z
flask_session_tutorial/auth.py
hackersandslackers/flask-session-tutorial
7cba344f7269b35d69ef2bba70eba9a21203c459
[ "MIT" ]
102
2020-03-17T22:32:33.000Z
2022-03-31T10:16:01.000Z
flask_session_tutorial/auth.py
Dima2021/flask-session-tutorial
87586a27aa980fc314a3ee9874cf23d4cd4cd40f
[ "MIT" ]
21
2020-03-13T15:13:04.000Z
2022-03-11T21:11:31.000Z
"""Routes for user authentication.""" from flask import Blueprint from flask import current_app as app from flask import flash, redirect, render_template, request, url_for from flask_login import current_user, login_user from . import login_manager from .assets import compile_auth_assets from .forms import LoginForm, ...
32.318681
85
0.654199
c8f9c5150d5a073bab8be2fdb6d0ad721c26845f
2,535
py
Python
neutron/tests/fullstack/cmd/dhcp_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/fullstack/cmd/dhcp_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/fullstack/cmd/dhcp_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
#!/usr/bin/env python # Copyright 2016 OVH SAS # # 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 applic...
29.476744
79
0.707692
c8f9ef71246d4373be5662344e51bc40c630f3a2
1,652
py
Python
src/Products/ZCatalog/tests/test_manage_indexes.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
null
null
null
src/Products/ZCatalog/tests/test_manage_indexes.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T16:05:38.000Z
2021-02-10T16:05:38.000Z
src/Products/ZCatalog/tests/test_manage_indexes.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T15:34:58.000Z
2021-02-10T15:34:58.000Z
# -*- coding: utf-8 -*- import Testing.testbrowser import Testing.ZopeTestCase import Zope2.App class IndexSortingTests(Testing.ZopeTestCase.FunctionalTestCase): """Browser testing /manage_catalogIndexes""" def setUp(self): super(IndexSortingTests, self).setUp() Zope2.App.zcml.load_site(forc...
35.913043
77
0.677361
c8fa198289969f3ebb7460a5bb739a8b7ad6ce1e
252
py
Python
HackerRank/Algorithms/Implementation/Find Digits/test_find_digits.py
Goyatuzo/HackerRank
ad836faa7e8ecfe751a72027e1312ae3ee19f4ca
[ "MIT" ]
null
null
null
HackerRank/Algorithms/Implementation/Find Digits/test_find_digits.py
Goyatuzo/HackerRank
ad836faa7e8ecfe751a72027e1312ae3ee19f4ca
[ "MIT" ]
4
2016-03-19T05:13:29.000Z
2021-05-10T16:42:42.000Z
HackerRank/Algorithms/Implementation/Find Digits/test_find_digits.py
Goyatuzo/Challenges
ad836faa7e8ecfe751a72027e1312ae3ee19f4ca
[ "MIT" ]
null
null
null
import unittest from find_digits import * class TestFindDigits(unittest.TestCase): def test_given(self): self.assertEqual(2, find_digits(12)) self.assertEqual(3, find_digits(1012)) if __name__ == '__main__': unittest.main()
19.384615
46
0.702381
c8fa40fcf6c0b36119fb175873a8c44282e64aff
2,472
py
Python
tools/maskcvt.py
boguss1225/IrisSegmentationKeras
459f690bb6bcbf9139f261d848d15fa4228ddbd2
[ "Apache-2.0" ]
null
null
null
tools/maskcvt.py
boguss1225/IrisSegmentationKeras
459f690bb6bcbf9139f261d848d15fa4228ddbd2
[ "Apache-2.0" ]
null
null
null
tools/maskcvt.py
boguss1225/IrisSegmentationKeras
459f690bb6bcbf9139f261d848d15fa4228ddbd2
[ "Apache-2.0" ]
null
null
null
from scipy.spatial import cKDTree from PIL import Image import cv2 import numpy import glob import sys import numpy as np import os np.set_printoptions(threshold=sys.maxsize) path = '/home/heemoon/Desktop/0_DATABASE/3_IRIS/cow/labels_roi' # Source Folder dstpath = '/home/heemoon/Desktop/0_DATABASE/3_IRIS/cow/iii_forma...
33.405405
92
0.614887
c8fa5ffdb86f7ee2bd7beffdcfd298cd81331951
28,728
py
Python
clifford/_layout.py
hugohadfield/clifford
3e15da3ba429c69a5a5a641f2103d7bcca42617d
[ "BSD-3-Clause" ]
null
null
null
clifford/_layout.py
hugohadfield/clifford
3e15da3ba429c69a5a5a641f2103d7bcca42617d
[ "BSD-3-Clause" ]
null
null
null
clifford/_layout.py
hugohadfield/clifford
3e15da3ba429c69a5a5a641f2103d7bcca42617d
[ "BSD-3-Clause" ]
null
null
null
import re import functools from typing import List, Tuple, Optional, Dict, Container import warnings import numpy as np import sparse # TODO: move some of these functions to this file if they're not useful anywhere # else import clifford as cf from . import ( get_mult_function, val_get_left_gmt_matrix, va...
33.877358
109
0.608605
c8fa7f3c948ffb1762e57ca2ebce8099e62cda75
113,127
py
Python
Lib/test/test_unicode.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_unicode.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_unicode.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
""" Test script for the Unicode implementation. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" import _string import codecs import itertools import struct import sys import unittest import warnings from test import support, string_tests # Error handling ...
44.608438
119
0.536353
c8fa94caf40cbf736fea62f221d11778caf35983
19,681
py
Python
pyflowchart/ast_node.py
anthonyrota/school-yr11-learning-text-tool
ccb10dfde42ac786ae882774220abb018b9309ef
[ "BSD-3-Clause" ]
60
2020-10-23T12:46:28.000Z
2022-03-18T10:52:02.000Z
pyflowchart/ast_node.py
anthonyrota/school-yr11-learning-text-tool
ccb10dfde42ac786ae882774220abb018b9309ef
[ "BSD-3-Clause" ]
10
2020-11-18T09:35:36.000Z
2022-02-15T12:20:50.000Z
pyflowchart/ast_node.py
anthonyrota/school-yr11-learning-text-tool
ccb10dfde42ac786ae882774220abb018b9309ef
[ "BSD-3-Clause" ]
12
2021-03-30T14:20:06.000Z
2022-03-02T23:45:26.000Z
""" This file manage to translate AST into our Nodes Graph, By defining AstNodes, and statements to parse AST. Copyright 2020 CDFMLR. All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file. """ import _ast from typing import List, Tuple import astunparse from...
30.465944
120
0.594634
c8fae057c841c84339103f71a3af15fb0408478f
1,554
py
Python
tests/petstore-full/petstore_full/service/user/by_username/put.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
6
2021-01-16T21:36:43.000Z
2022-01-24T10:21:14.000Z
tests/petstore-full/petstore_full/service/user/by_username/put.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
11
2021-01-17T00:05:44.000Z
2022-01-23T16:13:56.000Z
tests/petstore-full/petstore_full/service/user/by_username/put.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
2
2021-11-06T00:07:34.000Z
2022-01-14T01:35:06.000Z
""" Auto-generated by openapi-client-generator https://github.com/avanov/openapi-client-generator """ from enum import Enum from typing import NamedTuple, Callable, Optional, Type, Mapping, Union from petstore_full.common import http from petstore_full.common.types import * __all__ = ( "call", "Params", ...
19.185185
73
0.700129
c8fb2583bbaca153d2d8061b294073ca8765189a
21,106
py
Python
a3c_worker_sewak_ISTB.py
sebtac/MLxE
93baa6b7c9fd14e54abd7199e868fb828e9a7c52
[ "Apache-2.0" ]
1
2020-12-15T17:19:33.000Z
2020-12-15T17:19:33.000Z
a3c_worker_sewak_ISTB.py
sebtac/MLxE
93baa6b7c9fd14e54abd7199e868fb828e9a7c52
[ "Apache-2.0" ]
null
null
null
a3c_worker_sewak_ISTB.py
sebtac/MLxE
93baa6b7c9fd14e54abd7199e868fb828e9a7c52
[ "Apache-2.0" ]
null
null
null
""" A3C in Code - A3C Worker Based On: A3C Code as in the book Deep Reinforcement Learning, Chapter 12. Runtime: Python 3.6.5 Dependencies: numpy, matplotlib, tensorflow (/ tensorflow-gpu), gym DocStrings: GoogleStyle Author : Mohit Sewak (p20150023@goa-bits-pilani.ac.in) **************************************...
53.030151
213
0.584905
c8fb623ab051ffc6787615046e98d163101de402
49,696
py
Python
sdk/lusid_workflows/api/workflows_api.py
finbourne/events-sdk-preview
8121c4400ebfbccb4a0b211a5ab9d547b264bda7
[ "MIT" ]
null
null
null
sdk/lusid_workflows/api/workflows_api.py
finbourne/events-sdk-preview
8121c4400ebfbccb4a0b211a5ab9d547b264bda7
[ "MIT" ]
null
null
null
sdk/lusid_workflows/api/workflows_api.py
finbourne/events-sdk-preview
8121c4400ebfbccb4a0b211a5ab9d547b264bda7
[ "MIT" ]
null
null
null
# coding: utf-8 """ FINBOURNE Workflows API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.1.39 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compat...
46.619137
211
0.617937
c8fb9406b2208e64c9d971e10fa3aa81c1de6a0b
216
py
Python
autoencoders/cae_test.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
null
null
null
autoencoders/cae_test.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
1
2021-03-19T03:06:46.000Z
2021-08-02T13:29:05.000Z
autoencoders/cae_test.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
null
null
null
from CAE import ConvolutionalAutoencoder DATASET_SIZE = 11862 INPUT_SHAPE = (53, 54, 1) cae = ConvolutionalAutoencoder( layers=6, input_shape=(53, 54, 1), latent_size=32, name="CAE") cae.summary()
16.615385
40
0.694444
c8fbaab798fad4ae90bf23104f446265763e45ca
3,574
py
Python
pyop4/opbase/opjson.py
cindy0123/duty-util01
c582a7c5dfc6585e421b1b72b2876741b0839c95
[ "MIT" ]
null
null
null
pyop4/opbase/opjson.py
cindy0123/duty-util01
c582a7c5dfc6585e421b1b72b2876741b0839c95
[ "MIT" ]
null
null
null
pyop4/opbase/opjson.py
cindy0123/duty-util01
c582a7c5dfc6585e421b1b72b2876741b0839c95
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Feb 21 11:08:23 2017 @author: marshals """ import sys import json, re def load(fn, handle_index=True, handle_v=False): fp=open(fn, 'r') return handel_value(handle_index_on_key(json.load(fp), handle_index), handle_v) def loads(s, handle_index=...
29.783333
95
0.545048
c8fbb5bc3ead8652603d97505ed57eeaf20f4a60
3,050
py
Python
analyze_results/tinyimagenet/one_dimensional_subspaces.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
105
2021-03-30T06:03:44.000Z
2022-03-03T15:50:41.000Z
analyze_results/tinyimagenet/one_dimensional_subspaces.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
3
2021-07-16T04:46:25.000Z
2022-01-29T04:47:26.000Z
analyze_results/tinyimagenet/one_dimensional_subspaces.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
12
2021-03-23T17:24:43.000Z
2022-03-26T11:43:12.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2020 Apple Inc. All Rights Reserved. # import matplotlib.pyplot as plt import viz.utils as utils from viz.config import fs_helper from viz.config import helper def lvh_helper(ax, setxax=True, setyax=True): one_dim_subspace_data = utils.read_csv_fi...
22.101449
98
0.55541
c8fbbc7f5ca8670a6d7bf6de97a4ecc67ac00f32
1,353
py
Python
sportsbetting/parser_functions.py
chokybar/Sports-betting
8e43bb7b0c4961eb8bc3f4cf4f02780ec0410c76
[ "MIT" ]
null
null
null
sportsbetting/parser_functions.py
chokybar/Sports-betting
8e43bb7b0c4961eb8bc3f4cf4f02780ec0410c76
[ "MIT" ]
null
null
null
sportsbetting/parser_functions.py
chokybar/Sports-betting
8e43bb7b0c4961eb8bc3f4cf4f02780ec0410c76
[ "MIT" ]
null
null
null
""" Fonctions de parsing """ import locale import sys from sportsbetting.bookmakers import (betclic, betfair, bwin, france_pari, joa, netbet, parionssport, pasinobet, pinnacle, pmu, pokerstars, unibet, winamax, zebet) if sys.platform.startswith("win"): locale.setlocale(loca...
33
101
0.648189
c8fc0c9789fea93ad31603926d6089a41d0cd6ac
1,033
py
Python
python/src/aoc/year2017/day4.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
1
2021-02-16T21:30:04.000Z
2021-02-16T21:30:04.000Z
python/src/aoc/year2017/day4.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
python/src/aoc/year2017/day4.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
from collections import Counter from aoc.util import load_input def is_valid_part1(line): """ >>> is_valid_part1('aa bb cc dd ee') True >>> is_valid_part1('aa bb cc dd aa') False >>> is_valid_part1('aa bb cc dd aaa') True """ return max(Counter(line.split()).values()) == 1 def i...
20.66
85
0.629235
c8fc19ef75b7d4bd610892f23f28c778cef44a72
759
py
Python
accmgr.py
ColinShark/Account-Manager
e8003cfbd48f728aa830c4e78652a8b842e4b3e9
[ "WTFPL" ]
1
2021-12-25T08:55:14.000Z
2021-12-25T08:55:14.000Z
accmgr.py
ColinTheShark/Account-Manager
e8003cfbd48f728aa830c4e78652a8b842e4b3e9
[ "WTFPL" ]
null
null
null
accmgr.py
ColinTheShark/Account-Manager
e8003cfbd48f728aa830c4e78652a8b842e4b3e9
[ "WTFPL" ]
1
2021-12-25T08:55:17.000Z
2021-12-25T08:55:17.000Z
from time import strftime, localtime from configparser import ConfigParser from utils.sheet import Sheet from utils.steam import Steam from utils.player import Player config = ConfigParser() config.read("config.ini") sheet = Sheet( sheet_key=config.get("accmgr", "sheet_key"), credentials="credentials.json", ...
27.107143
51
0.735178
c8fc208880c45e3963fb51e39aa6b5428a6c06c1
346
py
Python
canvas_course_site_wizard/urls.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
canvas_course_site_wizard/urls.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
5
2018-05-10T19:49:43.000Z
2021-01-29T19:39:34.000Z
canvas_course_site_wizard/urls.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from .views import (CanvasCourseSiteCreateView, CanvasCourseSiteStatusView) urlpatterns = patterns( '', url(r'^courses/(?P<pk>\d+)/create$', CanvasCourseSiteCreateView.as_view(), name='ccsw-create'), url(r'^status/(?P<pk>\d+)$', CanvasCourseSiteStatusView.as_view...
34.6
99
0.722543
c8fc3c93d138149bd915c440242d94ece82d3aed
2,199
py
Python
clusters.py
cedricbonhomme/k-means-clustering
f0cef80ea6bb92533fdc915bed0a5419d134850d
[ "MIT" ]
1
2021-12-28T00:39:04.000Z
2021-12-28T00:39:04.000Z
clusters.py
cedricbonhomme/k-means-clustering
f0cef80ea6bb92533fdc915bed0a5419d134850d
[ "MIT" ]
null
null
null
clusters.py
cedricbonhomme/k-means-clustering
f0cef80ea6bb92533fdc915bed0a5419d134850d
[ "MIT" ]
null
null
null
#! /usr/bin/python #-*- coding:utf-8 -* __author__ = "Cedric Bonhomme" __version__ = "$Revision: 0.1 $" __date__ = "$Date: 2015/08/31$" __revision__ = "$Date: 2015/08/31 $" __copyright__ = "" __license__ = "" import random import distance def readfile(filename): lines = None with open(filename) as f: ...
30.541667
73
0.577535
c8fc3ea795e9bfea0c42ff39cf51a889686047ba
466
py
Python
freerad_manager/django_freeradius/__init__.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
9
2020-04-11T14:38:23.000Z
2022-03-26T01:50:56.000Z
freerad_manager/django_freeradius/__init__.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
1
2022-01-06T06:22:06.000Z
2022-01-10T11:05:25.000Z
freerad_manager/django_freeradius/__init__.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
7
2020-04-15T14:09:54.000Z
2021-11-06T20:51:05.000Z
VERSION = (0, 1, 0, 'alpha') __version__ = VERSION # alias def get_version(): version = '%s.%s' % (VERSION[0], VERSION[1]) if VERSION[2]: version = '%s.%s' % (version, VERSION[2]) if VERSION[3:] == ('alpha', 0): version = '%s pre-alpha' % version else: if VERSION[3] != 'final'...
25.888889
68
0.572961
c8fc45e9ffd0ceaec8f0f35156e3d4a1f88c6676
234
py
Python
luthiertext/__init__.py
LautaroEst/LuthierText
f1395fbfda1039bd19fd829cbe853e39ae91805d
[ "MIT" ]
null
null
null
luthiertext/__init__.py
LautaroEst/LuthierText
f1395fbfda1039bd19fd829cbe853e39ae91805d
[ "MIT" ]
null
null
null
luthiertext/__init__.py
LautaroEst/LuthierText
f1395fbfda1039bd19fd829cbe853e39ae91805d
[ "MIT" ]
null
null
null
from . import word_vectors from .bow_vectorizer import BONgramsVectorizer from .cbow_vectorizers import WordByWordVectorizer from .cbow_vectorizers import WordByDocumentVectorizer from .cbow_vectorizers import WordByCategoryVectorizer
46.8
54
0.897436
c8fca468acfae8238e0c749a79c66bd23f02d15d
8,053
py
Python
main.py
brokenax3/network-simulator-py
8ce238219010046aaf1063d546b4b7232a38d2fa
[ "MIT" ]
null
null
null
main.py
brokenax3/network-simulator-py
8ce238219010046aaf1063d546b4b7232a38d2fa
[ "MIT" ]
null
null
null
main.py
brokenax3/network-simulator-py
8ce238219010046aaf1063d546b4b7232a38d2fa
[ "MIT" ]
null
null
null
from random import randint, uniform from copy import deepcopy # import matplotlib.pyplot as plt from bokeh.io import export_png, export_svg from pathlib import Path from os import remove # from network_simulator.components import simulator from network_simulator.components import Location from network_simulator.compone...
44.988827
173
0.739228
c8fccfe71da7c476b3a9de6708639c735d34b2d2
1,230
py
Python
common/common/sql/hex_string.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
common/common/sql/hex_string.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
common/common/sql/hex_string.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Optional, Type, Union import sqlalchemy.types as types from hexbytes.main import HexBytes from sqlalchemy.engine.interfaces import Dialect if TYPE_CHECKING: HexStringEngine = types.TypeDecorator[HexBytes] # pylint: disable=unsubscriptable-object else: HexStringEngine = types...
35.142857
98
0.7
c8fd213e0c3616684a384f00779402c9a6ec561b
7,121
py
Python
scan/fetchers/cli/cli_fetch_vservice_vnics.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/fetchers/cli/cli_fetch_vservice_vnics.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/fetchers/cli/cli_fetch_vservice_vnics.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
40.460227
119
0.518186
c8fd87a0eb3f4893ada4c9973c9a9b9b415c3432
4,836
py
Python
pyclient/cookiejar.py
govind4873/auction_cookie
cadc3f7de721e8596360a0053e5d203440fdc528
[ "Apache-2.0" ]
null
null
null
pyclient/cookiejar.py
govind4873/auction_cookie
cadc3f7de721e8596360a0053e5d203440fdc528
[ "Apache-2.0" ]
null
null
null
pyclient/cookiejar.py
govind4873/auction_cookie
cadc3f7de721e8596360a0053e5d203440fdc528
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
33.351724
80
0.634615
c8fd9b7bca46cc285da139a1713aec691341c2cb
2,333
py
Python
Pico_W5500_WebClient_Demo.py
bjnhur/pico-W5500
6feda8b1ecfd807ae761849f3cb3225e4ac54836
[ "MIT" ]
11
2021-05-03T23:35:10.000Z
2022-01-23T16:15:47.000Z
Pico_W5500_WebClient_Demo.py
bjnhur/pico-W5500
6feda8b1ecfd807ae761849f3cb3225e4ac54836
[ "MIT" ]
1
2021-08-22T23:08:12.000Z
2021-08-23T01:33:15.000Z
Pico_W5500_WebClient_Demo.py
bjnhur/pico-W5500
6feda8b1ecfd807ae761849f3cb3225e4ac54836
[ "MIT" ]
9
2021-04-27T09:53:27.000Z
2022-03-06T12:45:27.000Z
import board import busio import digitalio import time import adafruit_requests as requests from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket SPI1_SCK = board.GP10 SPI1_TX = board.GP11 SPI1_RX = board.GP12 SPI1_CSn = board.GP13 W5500_RSTn = board.GP15 ...
26.213483
86
0.746678
c8fdb6f422e344435727e67dcdffdfc3dcda0b9b
11,344
py
Python
plot_results.py
KellyHwong/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
1
2021-03-31T10:24:01.000Z
2021-03-31T10:24:01.000Z
plot_results.py
AI-Huang/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
2
2020-11-13T18:41:41.000Z
2021-01-28T10:55:38.000Z
plot_results.py
KellyHwong/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
1
2020-12-27T15:10:58.000Z
2020-12-27T15:10:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : Feb-28-20 22:56 # @Update : Nov-23-20 20:57 # @Author : Kelly Hwong (dianhuangkan@gmail.com) # @Link : http://example.org import os import csv import json import numpy as np import matplotlib.pyplot as plt from utils import read_data fro...
33.964072
105
0.565409
c8fdc4ab78273d2810a5b252686bd475d0032b78
5,205
py
Python
colosseumrl/envs/tron/rllib.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
8
2019-06-04T00:22:30.000Z
2022-02-14T15:27:17.000Z
colosseumrl/envs/tron/rllib.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
1
2019-07-23T03:32:59.000Z
2019-07-23T06:16:35.000Z
colosseumrl/envs/tron/rllib.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
3
2020-01-13T08:09:27.000Z
2021-11-14T01:30:25.000Z
import numpy as np import random from .TronGridEnvironment import TronGridEnvironment from .TronRender import TronRender import gym from gym.spaces import Dict, Discrete, Box # from ray.rllib.env.multi_agent_env import MultiAgentEnv class TronRayEnvironment(): action_space = Discrete(3) def __init__(self,...
32.329193
117
0.618828
c8fdc55e7b76beace4ff487e2c56041ecb6c1c09
817
py
Python
pagai/json_encoder.py
arkhn/nlp-engine
1a5dac49e21181f0302ff99cfc2575aefaa3986c
[ "Apache-2.0" ]
12
2018-11-20T10:34:14.000Z
2019-10-16T17:07:33.000Z
pagai/json_encoder.py
arkhn/pagai
1a5dac49e21181f0302ff99cfc2575aefaa3986c
[ "Apache-2.0" ]
32
2019-11-06T10:31:39.000Z
2021-02-17T15:43:58.000Z
pagai/json_encoder.py
arkhn/pagai
1a5dac49e21181f0302ff99cfc2575aefaa3986c
[ "Apache-2.0" ]
1
2018-11-07T17:01:13.000Z
2018-11-07T17:01:13.000Z
import datetime import decimal import flask class MyJSONEncoder(flask.json.JSONEncoder): """ We make our JSONEncoder to override the default method. When jsonifying the rows retrieved by SQLAlchemy, we need to handle type serialization manually when flask does not handle them already. - SQLALchemy...
34.041667
76
0.689106
c8fde6a2fb5b3fee6a50858dafa7a44d7bfc94ca
931
py
Python
source/week2a/basfun.py
ArturPrzybysz/finite-element-method
f6edc466c3020f3c7d7563458cc9fc60ba378d43
[ "MIT" ]
null
null
null
source/week2a/basfun.py
ArturPrzybysz/finite-element-method
f6edc466c3020f3c7d7563458cc9fc60ba378d43
[ "MIT" ]
null
null
null
source/week2a/basfun.py
ArturPrzybysz/finite-element-method
f6edc466c3020f3c7d7563458cc9fc60ba378d43
[ "MIT" ]
1
2022-01-04T17:16:50.000Z
2022-01-04T17:16:50.000Z
import numpy as np def basfun(element_idx, X, Y, etov_dict): """ :param element_idx: :param X: :param Y: :param etov_dict: :return: """ # Formula 2.3 abc = np.zeros((3, 3)) v1, v2, v3 = etov_dict[element_idx] v1 -= 1 v2 -= 1 v3 -= 1 abc[0][0] = X[v2] * Y[v3] ...
20.23913
116
0.418904
c8fdf7b9ed1b86011d75a238ca1253d1759777ac
13,192
py
Python
plbenchmark/utils.py
dfhahn/PLBenchmarks
202ae6a40a49860d9f50eac6705f29717fcf2559
[ "CC-BY-4.0", "MIT" ]
3
2019-08-20T15:17:28.000Z
2019-09-25T02:23:10.000Z
plbenchmark/utils.py
dfhahn/PLBenchmarks
202ae6a40a49860d9f50eac6705f29717fcf2559
[ "CC-BY-4.0", "MIT" ]
null
null
null
plbenchmark/utils.py
dfhahn/PLBenchmarks
202ae6a40a49860d9f50eac6705f29717fcf2559
[ "CC-BY-4.0", "MIT" ]
null
null
null
""" utils.py Contains utility functions """ import numpy as np from scipy import constants import requests import json from openff.units import unit import warnings def find_pdb_url(pdb): """ Finds the links to a pdb or a list of pdb codes. :param pdb: string or list of strings :return: string comp...
36.441989
119
0.511143
c8fe44a48b5db614b22d6552543f1d673b3f9728
131
py
Python
src/casymda/blocks/block_components/__init__.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
19
2020-04-18T14:47:37.000Z
2022-03-26T14:18:21.000Z
src/casymda/blocks/block_components/__init__.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-03-17T21:01:58.000Z
2021-09-24T21:07:25.000Z
src/casymda/blocks/block_components/__init__.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-05-09T16:31:57.000Z
2022-01-23T09:11:19.000Z
"""convenience import""" from casymda.blocks.block_components.visualizable_block import ( VisualizableBlock, ) # type: ignore
26.2
64
0.770992
c8fe5c979ae2bd3b736e93b750f22fecf2b6221b
16,567
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
37.397291
104
0.639343
c8fe653f03ac70e1df9ae7f069d5641e8fddc71f
1,543
py
Python
ufora/core/math/StableHashFunction_test.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/core/math/StableHashFunction_test.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/core/math/StableHashFunction_test.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.288889
76
0.66105
c8fe745c94334437090a62f855d5f4bbf15c9074
349
py
Python
src/BribeNet/bribery/temporal/action/__init__.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/action/__init__.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/action/__init__.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
from BribeNet.helpers.bribeNetException import BribeNetException class BribeMustBeGreaterThanZeroException(BribeNetException): pass class NodeDoesNotExistException(BribeNetException): pass class BriberDoesNotExistException(BribeNetException): pass class BriberyActionExceedsAvailableUtilityException(...
19.388889
71
0.845272
c8fe7eeeb3b16def79808143ef1f4c81b1fbb82c
119
py
Python
office365/sharepoint/listitems/listDataValidationExceptionValue.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/sharepoint/listitems/listDataValidationExceptionValue.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/sharepoint/listitems/listDataValidationExceptionValue.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue class ListDataValidationExceptionValue(ClientValue): pass
19.833333
54
0.848739
c8fe943953a541ae78c40efa04d8c13814d1846b
6,289
py
Python
pollination_sdk/models/user_create.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
pollination_sdk/models/user_create.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
pollination_sdk/models/user_create.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from pollination_sdk.configu...
29.805687
128
0.594848
c8feb8ad63b5b5de935f1234dda9bea2a69784c4
6,072
py
Python
drawing/drawer/mesh/group/outline.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
drawing/drawer/mesh/group/outline.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
drawing/drawer/mesh/group/outline.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
""" Module for outline of mesh group drawer """ import logging from typing import Dict, List, Optional, Tuple from bmesh.types import BMEdge, BMesh, BMVert from model import CartographyCategory, CartographyGroup, CartographyPoint, CartographyRoom from utils.blender import bmesh as bmesh_utils from utils.collection i...
42.760563
112
0.63307
c8ff115613567c40075575ad6885d07a54d60c6d
138
py
Python
lost_ds/segmentation/api.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
1
2022-03-30T11:29:57.000Z
2022-03-30T11:29:57.000Z
lost_ds/segmentation/api.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
lost_ds/segmentation/api.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
from lost_ds.segmentation.semantic_seg import semantic_segmentation from lost_ds.segmentation.anno_from_seg import segmentation_to_lost
27.6
67
0.898551
c8ff1eba68a2f1154accb80c0fef3877e8fb381d
75,269
py
Python
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/interface.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 UnitedStack Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache....
41.040894
107
0.619644
c8ff31505823c80763120ea0b21fbbaecd02bcfc
8,616
py
Python
tests/test_paramseq.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
tests/test_paramseq.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
tests/test_paramseq.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pulser Development Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
36.508475
79
0.653552
c8ff3bda0c68163e361321b6a6bb3c340f73030a
241,376
py
Python
pypeit/par/pypeitpar.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/par/pypeitpar.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/par/pypeitpar.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
# encoding: utf-8 """ Defines parameter sets used to set the behavior for core pypeit functionality. For more details on the full parameter hierarchy and a tabulated description of the keywords in each parameter set, see :ref:`pypeitpar`. For examples of how to change the parameters for a run of pypeit using the pype...
49.69652
180
0.576598
c8ff514f091324dfdc6152928f07ee2c8dac3355
9,468
py
Python
src/olympia/users/tests/test_commands.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-07-27T11:22:17.000Z
2020-07-27T11:22:17.000Z
src/olympia/users/tests/test_commands.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/users/tests/test_commands.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
import json import uuid import io from django.core.management import call_command from unittest.mock import ANY, patch from olympia import amo from olympia.addons.models import Addon from olympia.amo.tests import addon_factory, TestCase, user_factory from olympia.users.management.commands.createsuperuser import ( ...
37.872
76
0.671842
c8ff531ebe3d811c5d3e3c24a67f247b577f315b
2,743
py
Python
mapproxy/test/unit/test_seed_cachelock.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/unit/test_seed_cachelock.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/unit/test_seed_cachelock.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2012 Omniscale <http://omniscale.de> # # 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/LICEN...
30.820225
74
0.604812
c8ff88f9059b5f4ddbe3a22af2753e88fc486d2c
3,486
py
Python
appCore/apps/replica/contrib/insta/management/commands/insta_import.py
jadedgamer/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
4
2017-04-22T11:03:01.000Z
2018-01-16T22:28:15.000Z
appCore/apps/replica/contrib/insta/management/commands/insta_import.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
10
2017-04-06T19:54:42.000Z
2017-11-07T06:53:10.000Z
appCore/apps/replica/contrib/insta/management/commands/insta_import.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
1
2017-12-14T12:49:40.000Z
2017-12-14T12:49:40.000Z
import requests from urllib.parse import urlparse from io import BytesIO from django.core.management.base import BaseCommand, CommandError from django.template.defaultfilters import slugify, wordcount from django.shortcuts import render_to_response, render, get_object_or_404, redirect from django import template from ...
41.5
114
0.611876
c8ff98756b26f36c0ef7bf78be758bdb4e80925e
1,163
py
Python
AN24_04.py
carterjgreen/undergrad-thesis
b6cd0270ab06eb889bd409f585f44953b1994887
[ "BSD-3-Clause" ]
null
null
null
AN24_04.py
carterjgreen/undergrad-thesis
b6cd0270ab06eb889bd409f585f44953b1994887
[ "BSD-3-Clause" ]
null
null
null
AN24_04.py
carterjgreen/undergrad-thesis
b6cd0270ab06eb889bd409f585f44953b1994887
[ "BSD-3-Clause" ]
null
null
null
# AN24_04 -- Accessing Calibration Data import Class.Adf24Tx2Rx4 as Adf24Tx2Rx4 # (1) Connect to DemoRad: Check if Brd exists: Problem with USB driver # (2) Read Calibration Data # (3) Read Calibration Information #-------------------------------------------------------------------------- # Setup Connection #--...
37.516129
75
0.33362
c8ffbc758403ef77ea8779e59785f020da6be664
6,388
py
Python
src/zhinst/toolkit/interface/interface.py
bahadirdonmez/zhinst-toolkit-1
0ca241c8ff6fe259401eadb30091ced184cd7da1
[ "MIT" ]
null
null
null
src/zhinst/toolkit/interface/interface.py
bahadirdonmez/zhinst-toolkit-1
0ca241c8ff6fe259401eadb30091ced184cd7da1
[ "MIT" ]
null
null
null
src/zhinst/toolkit/interface/interface.py
bahadirdonmez/zhinst-toolkit-1
0ca241c8ff6fe259401eadb30091ced184cd7da1
[ "MIT" ]
null
null
null
# Copyright (C) 2020 Zurich Instruments # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import attr from enum import Enum, auto import logging import traceback class DeviceTypes(Enum): """Enum of device types.""" HDAWG = "hdawg" U...
31.781095
82
0.646055
c8ffd755342cc257ca22d722c0ba9e02818b5c0a
1,163
py
Python
test/utils/test_conversion_utils.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
test/utils/test_conversion_utils.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
test/utils/test_conversion_utils.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
from smartva.utils.conversion_utils import additional_headers_and_values def test_additional_headers_and_values(): headers = ['SubmissionDate', 'interviewstarttime', 'interviewdate', 'gen_1_1', 'Intid', 'sid', 'ID'] additional_headers_data = [ ('test1', 0), ('test2', 0), ('test3', 0) ...
36.34375
113
0.697334
c8ffd7a6623f5ad25ef09fd5d9d9aa56ec0032ba
4,680
py
Python
extensions/ibis.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
extensions/ibis.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
extensions/ibis.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Version 2...
38.04878
107
0.568376
c8ffe39ac527d66c23f4963701173bcbb176618e
2,306
py
Python
mercury_ml/common/__init__.py
mercury-ml-team/mercury-ml
8d27816490f0be46f871e889e4635e9223b7044c
[ "MIT" ]
43
2019-02-01T15:22:09.000Z
2020-02-21T12:51:42.000Z
mercury_ml/common/__init__.py
mercury-ml-team/mercury-ml
8d27816490f0be46f871e889e4635e9223b7044c
[ "MIT" ]
17
2019-02-15T12:52:18.000Z
2019-05-09T15:42:51.000Z
mercury_ml/common/__init__.py
mercury-ml-team/mercury-ml
8d27816490f0be46f871e889e4635e9223b7044c
[ "MIT" ]
12
2019-02-02T16:48:10.000Z
2019-12-16T15:40:15.000Z
class ArtifactCopiers: """IoC container of FileMover providers for moving saved models from local to remote store""" from mercury_ml.common.artifact_copying import from_disk, from_gcs, from_s3, from_hdfs copy_from_disk_to_disk = from_disk.copy_from_disk_to_disk copy_from_disk_to_hdfs = from_disk.copy...
38.433333
107
0.830876
c8ffe41f0a22e24c6f76ef4012622cb41578b4c8
3,569
py
Python
tests/test_expert_backend.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
11
2021-06-21T19:56:01.000Z
2021-12-22T09:06:09.000Z
tests/test_expert_backend.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
tests/test_expert_backend.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
from pathlib import Path from tempfile import TemporaryDirectory import pytest import torch from torch.nn import Linear from hivemind import BatchTensorDescriptor, ExpertBackend from hivemind.server.checkpoints import store_experts, load_experts from hivemind.server.layers.lr_schedule import get_linear_schedule_with_...
33.35514
118
0.693472
74000ac2f7281dc3fd20382642150aa5c8bcec75
3,149
py
Python
python_modules/libraries/dagster-airbyte/dagster_airbyte_tests/utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airbyte/dagster_airbyte_tests/utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airbyte/dagster_airbyte_tests/utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from dagster_airbyte import AirbyteState from dagster.utils.merger import deep_merge_dicts def get_sample_connection_json(**kwargs): return deep_merge_dicts( { "name": "xyz", "syncCatalog": { "streams": [ { "stream": { ...
33.5
90
0.227056
740037fbd98f95c41ad5e936679cd418a087464c
16,475
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_03_02_preview/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_03_02_preview/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_03_02_preview/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
46.019553
251
0.692322
740061f0ccb793897371d29f1b19a1ae118a0232
397
py
Python
study/mockserver/hfppnetwork/wsgi.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
7
2015-07-15T06:47:16.000Z
2020-10-17T20:51:09.000Z
study/mockserver/hfppnetwork/wsgi.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
null
null
null
study/mockserver/hfppnetwork/wsgi.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
8
2017-01-30T02:27:01.000Z
2021-04-21T04:15:48.000Z
""" WSGI config for hfppnetwork project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hfppnetwork.settings") from djang...
26.466667
78
0.793451
74006e4b044c0219b029b41c8d9816c1f52174a7
1,706
py
Python
bot/utils/logger.py
r8vnhill/stickfix
9d9b7cafc8e48bbae3e68d3801fac68e7bc78675
[ "CC-BY-4.0" ]
null
null
null
bot/utils/logger.py
r8vnhill/stickfix
9d9b7cafc8e48bbae3e68d3801fac68e7bc78675
[ "CC-BY-4.0" ]
7
2020-03-02T00:41:40.000Z
2020-04-26T00:35:30.000Z
bot/utils/logger.py
r8vnhill/stickfix
9d9b7cafc8e48bbae3e68d3801fac68e7bc78675
[ "CC-BY-4.0" ]
null
null
null
""" "Stickfix" (c) by Ignacio Slater M. "Stickfix" is licensed under a Creative Commons Attribution 4.0 International License. You should have received a copy of the license along with this work. If not, see <http://creativecommons.org/licenses/by/4.0/>. """ import logging from logging.handlers import ...
37.086957
89
0.63306
74007181f679f96cdfa11ddc25df1e5c97cfebc0
19,631
py
Python
scqubits/core/hilbert_space.py
IlyaLSMmisis/scqubits-1
c4915c998c2d1ef3348db0e4c423e74c7181da40
[ "BSD-3-Clause" ]
null
null
null
scqubits/core/hilbert_space.py
IlyaLSMmisis/scqubits-1
c4915c998c2d1ef3348db0e4c423e74c7181da40
[ "BSD-3-Clause" ]
null
null
null
scqubits/core/hilbert_space.py
IlyaLSMmisis/scqubits-1
c4915c998c2d1ef3348db0e4c423e74c7181da40
[ "BSD-3-Clause" ]
null
null
null
# hilbert_space.py # # This file is part of scqubits. # # Copyright (c) 2019, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ###########################################...
40.063265
120
0.648515
740080243d2f6039eb11d57589a777cbf7799e5a
1,897
py
Python
src/anyvar/extras/clinvarparser.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
5
2020-09-28T14:25:17.000Z
2022-02-10T21:12:30.000Z
src/anyvar/extras/clinvarparser.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
5
2020-09-02T15:31:32.000Z
2021-12-01T05:30:53.000Z
src/anyvar/extras/clinvarparser.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
3
2020-09-02T15:30:04.000Z
2021-05-20T21:08:55.000Z
import gzip import logging import lxml.etree as le _logger = logging.getLogger() class VariationArchive: def __init__(self, element): assert element.tag == "VariationArchive", "Expected node type `VariationArchive`" self._element = element @property def accession(self): return ...
24.012658
113
0.645756
7400c14d3033caf3dea5297b8d208dafe12d9100
1,920
py
Python
showroompodcast/slack/slack_client.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
showroompodcast/slack/slack_client.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
1
2021-08-22T07:35:13.000Z
2021-08-22T07:35:13.000Z
showroompodcast/slack/slack_client.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
"""Slack client.""" import logging import traceback from slack_sdk import WebClient from slack_sdk.errors import SlackApiError from slack_sdk.web.slack_response import SlackResponse class SlackNotification: """Slack notification.""" def __init__(self, bot_token: str, channel: str) -> None: self.clie...
37.647059
111
0.694792
7400d17d4323b6bc4145f32bc31075b11048aee7
488
py
Python
osscla/models/gh.py
dschaller/osscla
b1ff167d65548e13ccf89babc9fbba21c70458c1
[ "Apache-2.0" ]
6
2017-12-07T06:43:52.000Z
2021-09-03T19:15:29.000Z
osscla/models/gh.py
dschaller/osscla
b1ff167d65548e13ccf89babc9fbba21c70458c1
[ "Apache-2.0" ]
21
2017-08-07T20:03:40.000Z
2022-01-09T01:39:47.000Z
osscla/models/gh.py
dschaller/osscla
b1ff167d65548e13ccf89babc9fbba21c70458c1
[ "Apache-2.0" ]
5
2017-08-05T05:14:08.000Z
2020-11-27T10:44:52.000Z
from __future__ import absolute_import from pynamodb.models import Model from pynamodb.attributes import UnicodeAttribute from osscla.app import app class PullRequest(Model): class Meta: table_name = app.config.get('DYNAMODB_TABLE_PR') if app.config.get('DYNAMODB_URL'): host = app.con...
28.705882
56
0.729508
7400d7aae5c40dec11bcda39fdf563b736f1d206
980
py
Python
src/lib/reportlab/platypus/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/lib/reportlab/platypus/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/lib/reportlab/platypus/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/__init__.py __version__=''' $Id: __init__.py,v 1.1 2006/05/26 19:19:48 thomas Exp $ ''' __doc__='' from reportlab.platypus.flowables impo...
65.333333
110
0.77551
7400fb7a64c2a8a7a22c45df8cc1a60d19c79790
78,807
py
Python
Lib/unittest/mock.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
4
2016-04-02T00:01:50.000Z
2017-07-13T02:11:04.000Z
Lib/unittest/mock.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
9
2016-05-15T22:08:48.000Z
2016-06-17T19:16:17.000Z
Lib/unittest/mock.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
# mock.py # Test tools for mocking and patching. # Maintained by Michael Foord # Backport for other versions of Python available from # http://pypi.python.org/pypi/mock __all__ = ( 'Mock', 'MagicMock', 'patch', 'sentinel', 'DEFAULT', 'ANY', 'call', 'create_autospec', 'FILTER_DIR', ...
32.863636
85
0.609096
74011621d4de2190ca3674110fe9307774f47c12
26,165
py
Python
kmip/demos/utils.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
kmip/demos/utils.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
kmip/demos/utils.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
40.192012
79
0.609287
74012b6100d151e2e9c71d938ded64e001149340
344
py
Python
2019/11/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/11/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/11/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
import robotics def main() -> None: """Processes inputs.""" with open('input', 'r') as f: interpreter = robotics.Painter( f.read().strip().split(','), silent=True ) interpreter.init_panel(1) interpreter.run_ops() interpreter.render_map() if __name__ ==...
19.111111
40
0.555233
7401c72da7cfeaeb3f4e15c1a413fcc767f8a18b
3,900
py
Python
easy_transformers/loader.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
easy_transformers/loader.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
easy_transformers/loader.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple, Union import numpy as np from cachetools import LRUCache, cached from sentence_transformers import SentenceTransformer from transformers import ( AutoConfig, AutoModelForSequenceClassification, AutoTokenizer, pipeline, ) from transformers.models.auto.auto_factory import ...
33.913043
107
0.728974
7401cc15ecda50a43fefcccf5e77af753b71fae8
27,074
py
Python
SCRAPE/Lib/site-packages/psutil/tests/test_contracts.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
6
2022-01-04T02:51:33.000Z
2022-01-25T11:36:39.000Z
SCRAPE/Lib/site-packages/psutil/tests/test_contracts.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-01-13T23:27:10.000Z
2022-01-15T05:03:24.000Z
SCRAPE/Lib/site-packages/psutil/tests/test_contracts.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Contracts tests. These tests mainly check API sanity in terms of returned types and APIs availability. Some of these are duplica...
36.785326
79
0.594888
7401f1be0a153d64776c1b87beb094955dcad584
1,605
py
Python
test/knxip_tests/disconnect_response_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/disconnect_response_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/disconnect_response_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for KNX/IP DisconnectResponse objects.""" import asyncio import unittest from xknx import XKNX from xknx.exceptions import CouldNotParseKNXIP from xknx.knxip import ( DisconnectResponse, ErrorCode, KNXIPFrame, KNXIPServiceType) class Test_KNXIP_DisconnectResp(unittest.TestCase): """Test class fo...
35.666667
80
0.70405
7401f53694b61648b10cefb7a7da13dc5fa883e5
61,555
py
Python
SABERT/pytorch_pretrained_bert/modeling.py
yxuansu/HCL
b7a2871e8006d148958bb8dc65670d0491f6a446
[ "MIT" ]
14
2020-12-29T11:22:22.000Z
2022-03-05T15:43:53.000Z
SABERT/pytorch_pretrained_bert/modeling.py
yxuansu/HCL
b7a2871e8006d148958bb8dc65670d0491f6a446
[ "MIT" ]
null
null
null
SABERT/pytorch_pretrained_bert/modeling.py
yxuansu/HCL
b7a2871e8006d148958bb8dc65670d0491f6a446
[ "MIT" ]
1
2022-03-05T15:43:55.000Z
2022-03-05T15:43:55.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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...
49.601128
139
0.682235
74021b321f729398dc30be0291987494273b80f2
343
py
Python
typical90-a/048/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
typical90-a/048/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
typical90-a/048/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, K = na() A = [] for i in range(N): a, b = na() A.append(b) A.append(a - b) A.sort(reverse=True) ans = 0 for i in range(K): ...
16.333333
53
0.591837
740221adc3f9f6de6dff647c52cd8883f14d7575
4,419
py
Python
testing-auto-encoder.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
null
null
null
testing-auto-encoder.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
null
null
null
testing-auto-encoder.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
1
2021-12-03T11:28:09.000Z
2021-12-03T11:28:09.000Z
# Classification CatBoost for Home Credit Default Risk Kaggle Competition # By Nick Brooks, May 2018 [Other Kaggler's work also used, citation throughout] # https://www.kaggle.com/c/home-credit-default-risk import time notebookstart = time.time() # General import numpy as np # linear algebra import pandas as pd # dat...
34.523438
141
0.702648
740224744860fdd76bea9c4531242a4976b20784
7,547
py
Python
tensorflow/examples/how_tos/reading_data/fully_connected_reader.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/examples/how_tos/reading_data/fully_connected_reader.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/examples/how_tos/reading_data/fully_connected_reader.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.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...
34.461187
80
0.674838
74023425af2572da9bf813eaf13e20aded8df482
7,706
py
Python
submission/alphago_zero_sim_3/utils_3/go_board.py
ankurshaswat/AlphaGo-Zero
54d45e5ed4a3ee3b5a2e73bed4a04d6160cec6ef
[ "MIT" ]
1
2020-12-04T18:39:04.000Z
2020-12-04T18:39:04.000Z
submission/alphago_zero_sim_3/utils_3/go_board.py
ankurshaswat/AlphaGo-Zero
54d45e5ed4a3ee3b5a2e73bed4a04d6160cec6ef
[ "MIT" ]
null
null
null
submission/alphago_zero_sim_3/utils_3/go_board.py
ankurshaswat/AlphaGo-Zero
54d45e5ed4a3ee3b5a2e73bed4a04d6160cec6ef
[ "MIT" ]
null
null
null
""" Wrapper over Board class of pachiy_py """ import numpy as np import pachi_py BLACK = np.array([1, 0, 0]) WHITE = np.array([0, 1, 0]) EMPTY = np.array([0, 0, 1]) MAX_MOVES = 250 class GoBoard(): """ Wrapper over board class to modify representations and return new copies. """ def __init__(self,...
30.824
103
0.57838
7402594fb4e75615f991c7a8d1ee24994fe5130f
7,428
py
Python
research/slim/datasets/download_and_convert_mnist.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
2
2021-12-01T12:24:57.000Z
2021-12-08T14:10:46.000Z
research/slim/datasets/download_and_convert_mnist.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
1
2020-11-17T09:35:24.000Z
2020-11-17T09:35:24.000Z
research/slim/datasets/download_and_convert_mnist.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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...
33.459459
82
0.706516
740263d619b6c43fc673d176bab328f1d35e0689
1,627
py
Python
tests/unit/test_utils.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
6
2021-10-01T19:46:14.000Z
2022-03-31T17:05:08.000Z
tests/unit/test_utils.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
tests/unit/test_utils.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
10
2021-09-29T14:47:54.000Z
2022-03-18T14:52:16.000Z
from . import utils from hotsos.core import utils as core_utils class TestUtils(utils.BaseTestCase): def test_sample_set_regressions(self): samples = [1, 2, 3] self.assertEqual(core_utils.sample_set_regressions(samples), 0) samples = [1, 2, 3, 1] self.assertEqual(core_utils.sampl...
45.194444
79
0.564229
7402671f58fed563560a81ac3ba6caab9fb87722
1,002
py
Python
bellman/environments/mixins.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
40
2021-03-24T10:41:56.000Z
2022-03-15T09:50:47.000Z
bellman/environments/mixins.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
12
2021-03-25T18:36:27.000Z
2021-07-27T11:09:34.000Z
bellman/environments/mixins.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
3
2021-04-25T03:18:44.000Z
2021-11-14T15:54:34.000Z
# Copyright 2021 The Bellman Contributors # # 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...
31.3125
99
0.729541