hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
βŒ€
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
βŒ€
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
βŒ€
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7970b28a5dbdd4fbafe7b95daffdaf7b3fbd198a
123
py
Python
profiles_api/admin.py
devorder/profiles-rest-api
1bf8746f754e37fc48ce0b7c37fbcc3f2a917073
[ "MIT" ]
null
null
null
profiles_api/admin.py
devorder/profiles-rest-api
1bf8746f754e37fc48ce0b7c37fbcc3f2a917073
[ "MIT" ]
null
null
null
profiles_api/admin.py
devorder/profiles-rest-api
1bf8746f754e37fc48ce0b7c37fbcc3f2a917073
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.UserProfile)
24.6
39
0.813008
7970b324337819bf7422c7983554055ae4e2e45c
4,958
py
Python
nltk/test/unit/test_ribes.py
Pandinosaurus/nltk
53dbaa5591003f6764a3d69834e92bc83e3a754c
[ "Apache-2.0" ]
9,747
2015-01-01T05:47:33.000Z
2022-03-31T19:36:28.000Z
nltk/test/unit/test_ribes.py
Pandinosaurus/nltk
53dbaa5591003f6764a3d69834e92bc83e3a754c
[ "Apache-2.0" ]
2,155
2015-01-01T15:16:55.000Z
2022-03-31T07:44:43.000Z
nltk/test/unit/test_ribes.py
Pandinosaurus/nltk
53dbaa5591003f6764a3d69834e92bc83e3a754c
[ "Apache-2.0" ]
2,846
2015-01-03T23:16:34.000Z
2022-03-29T17:54:34.000Z
from nltk.translate.ribes_score import corpus_ribes, word_rank_alignment def test_ribes_empty_worder(): # worder as in word order # Verifies that these two sentences have no alignment, # and hence have the lowest possible RIBES score. hyp = "This is a nice sentence which I quite like".split() ref = "...
20.072874
82
0.448971
7970b38fbbb7df03d40c8dae0974e9af96f6c2f8
11,497
py
Python
MeetNinja-Google-Meet-Bot-master/MeetNinja.py
rexhinokovaci/MeetAttender
3f94ac435939741642034df6ccf7d9cbb263fd3c
[ "MIT" ]
1
2021-01-06T20:57:26.000Z
2021-01-06T20:57:26.000Z
MeetNinja-Google-Meet-Bot-master/MeetNinja.py
rexhinokovaci/MeetAttender
3f94ac435939741642034df6ccf7d9cbb263fd3c
[ "MIT" ]
null
null
null
MeetNinja-Google-Meet-Bot-master/MeetNinja.py
rexhinokovaci/MeetAttender
3f94ac435939741642034df6ccf7d9cbb263fd3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from selenium import webdriver; import requests from selenium.webdriver.support import expected_conditions as when from selenium.webdriver.common.by import By as by from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys import pause; impor...
42.268382
164
0.609463
7970b3b1bf28e81caf4288e4b46a48fdbfdd151d
10,851
py
Python
rpython/rlib/rsre/test/test_search.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/rsre/test/test_search.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/rsre/test/test_search.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# encoding: utf-8 import re, py from rpython.rlib.rsre.test.test_match import get_code, get_code_and_re from rpython.rlib.rsre.test import support from rpython.rlib.rsre import rsre_core, rsre_utf8, rsre_char def setup_module(mod): from rpython.rlib.unicodedata import unicodedb rsre_char.set_unicode_db(unicode...
38.073684
82
0.542807
7970b3bb2d140671832c2d31c633670fdce9b059
30,341
py
Python
research/object_detection/inputs.py
RangK/models
a1ce90442e3205b82ffca3badd3c65408f4450cb
[ "Apache-2.0" ]
null
null
null
research/object_detection/inputs.py
RangK/models
a1ce90442e3205b82ffca3badd3c65408f4450cb
[ "Apache-2.0" ]
null
null
null
research/object_detection/inputs.py
RangK/models
a1ce90442e3205b82ffca3badd3c65408f4450cb
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
42.553997
118
0.753568
7970b3d52d19a0d4bf56770a77f059a478e72378
6,797
py
Python
pytorch_toolkit/nncf/tests/sparsity/magnitude/test_algo.py
AnastasiaaSenina/openvino_training_extensions
267425d64372dff5b9083dc0ca6abfc305a71449
[ "Apache-2.0" ]
1
2021-03-20T06:00:02.000Z
2021-03-20T06:00:02.000Z
pytorch_toolkit/nncf/tests/sparsity/magnitude/test_algo.py
akshayjaryal603/openvino_training_extensions
7d606a22143db0af97087709d63a2ec2aa02036c
[ "Apache-2.0" ]
28
2020-09-25T22:40:36.000Z
2022-03-12T00:37:36.000Z
pytorch_toolkit/nncf/tests/sparsity/magnitude/test_algo.py
akshayjaryal603/openvino_training_extensions
7d606a22143db0af97087709d63a2ec2aa02036c
[ "Apache-2.0" ]
1
2021-04-02T07:51:01.000Z
2021-04-02T07:51:01.000Z
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
41.445122
106
0.739738
7970b54f7af0d3be3c25aa1d6e2c097d283fe312
281
py
Python
tfrecord/__init__.py
msalvaris/tfrecord
0dbb747b41713811b99ad213336b01d2c92a0468
[ "MIT" ]
1
2021-07-10T13:06:12.000Z
2021-07-10T13:06:12.000Z
tfrecord/__init__.py
msalvaris/tfrecord
0dbb747b41713811b99ad213336b01d2c92a0468
[ "MIT" ]
null
null
null
tfrecord/__init__.py
msalvaris/tfrecord
0dbb747b41713811b99ad213336b01d2c92a0468
[ "MIT" ]
null
null
null
from tfrecord import tools # from tfrecord import torch from tfrecord import example_pb2 from tfrecord import iterator_utils from tfrecord import reader from tfrecord import writer from tfrecord.iterator_utils import * from tfrecord.reader import * from tfrecord.writer import *
23.416667
37
0.836299
7970b687f9701497c89ad88eb0b25743ff50ccfe
6,193
py
Python
accelbyte_py_sdk/api/platform/operations/store/get_published_store_backup.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/operations/store/get_published_store_backup.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/platform/operations/store/get_published_store_backup.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
28.539171
190
0.651865
7970b7e4b143611a657ec65ed1796fa7516e70d8
594
py
Python
message_handler.py
railchan187/orderpy
338d58b3f08614bf283f418b353a8afba157a567
[ "MIT" ]
null
null
null
message_handler.py
railchan187/orderpy
338d58b3f08614bf283f418b353a8afba157a567
[ "MIT" ]
null
null
null
message_handler.py
railchan187/orderpy
338d58b3f08614bf283f418b353a8afba157a567
[ "MIT" ]
null
null
null
import discord import asyncio #return global vars with functions names def getGlobals(): return globals() #Multiline Quote async def quote_multiline(client, message, opt_commands): print("quote_multiline()") import quoting_multiline as qm print("Quoting Multiline has imported") quotm = qm.Quoting(client, messa...
23.76
62
0.786195
7970b7f57107d679cbd7f1aff955aa6cccff4ff7
6,316
py
Python
ynab_client/models/scheduled_sub_transaction.py
Pezmc/ynab-client-python
6d154f3efecef6a5c3ff1cf89d8a2a59f9f7bb97
[ "Apache-2.0" ]
4
2018-12-02T19:55:40.000Z
2021-02-28T13:13:45.000Z
ynab_client/models/scheduled_sub_transaction.py
Pezmc/ynab-client-python
6d154f3efecef6a5c3ff1cf89d8a2a59f9f7bb97
[ "Apache-2.0" ]
10
2018-07-22T06:52:16.000Z
2022-01-09T14:05:49.000Z
ynab_client/models/scheduled_sub_transaction.py
Pezmc/ynab-client-python
6d154f3efecef6a5c3ff1cf89d8a2a59f9f7bb97
[ "Apache-2.0" ]
10
2018-09-11T01:01:44.000Z
2022-01-09T13:54:50.000Z
# coding: utf-8 """ YNAB API Endpoints Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudge...
31.738693
294
0.615104
7970b9fa3dc3602edd2ee0a6fc7bf061457f1727
19,048
py
Python
python/cudf/cudf/core/indexing.py
esoha-nvidia/cudf
663457b186bbf27ea2926e08438b8c01b5c7633e
[ "Apache-2.0" ]
1
2021-05-02T11:27:22.000Z
2021-05-02T11:27:22.000Z
python/cudf/cudf/core/indexing.py
esoha-nvidia/cudf
663457b186bbf27ea2926e08438b8c01b5c7633e
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/indexing.py
esoha-nvidia/cudf
663457b186bbf27ea2926e08438b8c01b5c7633e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2021, NVIDIA CORPORATION. from typing import Any, Union import numpy as np import pandas as pd from nvtx import annotate import cudf from cudf._lib.concat import concat_columns from cudf._lib.scalar import _is_null_host_scalar from cudf._typing import ColumnLike, DataFrameOrSeries, ScalarLike fr...
35.143911
79
0.553601
7970bba9a0f980b95cf176b82705413b5a971650
442
py
Python
tests/test_init.py
suzuki-shunsuke/exvar.py
099b8db134cd9185fc7161e0e6595f3c2116f427
[ "MIT" ]
1
2022-02-09T06:33:07.000Z
2022-02-09T06:33:07.000Z
tests/test_init.py
suzuki-shunsuke/exvar.py
099b8db134cd9185fc7161e0e6595f3c2116f427
[ "MIT" ]
11
2017-04-01T00:41:02.000Z
2021-10-18T15:22:00.000Z
tests/test_init.py
suzuki-shunsuke/exvar.py
099b8db134cd9185fc7161e0e6595f3c2116f427
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from src.cnst import BASE_FILE, USER_FILE # noqa: E402 from src.init import init # noqa: E402 def test_init(tmpdir): os.chdir(tmpdir) assert not os.path.isfile(BASE_FILE) ...
22.1
62
0.69457
7970bf653b1bad6aae33c0e4670422f4a223cecd
193
py
Python
src/histdatacom/__main__.py
dmidlo/histdata.com-tools
dd1f17134711e5588ba019d6575287937936afb7
[ "MIT" ]
null
null
null
src/histdatacom/__main__.py
dmidlo/histdata.com-tools
dd1f17134711e5588ba019d6575287937936afb7
[ "MIT" ]
null
null
null
src/histdatacom/__main__.py
dmidlo/histdata.com-tools
dd1f17134711e5588ba019d6575287937936afb7
[ "MIT" ]
null
null
null
"""histdatacom Allows histdatacom to be run as a module with as >>> python -m histdatacom """ import sys from . import histdata_com # if __name__ == '__main__': sys.exit(histdata_com.main())
17.545455
45
0.725389
7970bfe6cf37215806edb5b1b279f0e61dfd4831
3,157
py
Python
fablegenerator/configuration.py
guildenstern70/fablegenerator
cec6e060ca9aca48fea18b66a2112f59c17f3ebc
[ "MIT" ]
null
null
null
fablegenerator/configuration.py
guildenstern70/fablegenerator
cec6e060ca9aca48fea18b66a2112f59c17f3ebc
[ "MIT" ]
null
null
null
fablegenerator/configuration.py
guildenstern70/fablegenerator
cec6e060ca9aca48fea18b66a2112f59c17f3ebc
[ "MIT" ]
null
null
null
import ConfigParser import os import time from ConfigParser import NoOptionError import codecs class Configuration(object): """ Generator configuration file handling """ def __init__(self): self.fable_id = None self.ebook_format = None self.lang = None self.sex = None ...
38.036145
83
0.578714
7970c0c3efb6e36219fa1d003ac7d2ac48996ced
45
py
Python
backend/services/__init__.py
Psy-Rat/Todomadoro
692893307575e6d23b2ecb4c86b0f00289fd3c30
[ "MIT" ]
2
2021-01-12T19:58:22.000Z
2021-01-14T08:54:34.000Z
backend/services/__init__.py
Psy-Rat/Todomadoro
692893307575e6d23b2ecb4c86b0f00289fd3c30
[ "MIT" ]
null
null
null
backend/services/__init__.py
Psy-Rat/Todomadoro
692893307575e6d23b2ecb4c86b0f00289fd3c30
[ "MIT" ]
2
2021-01-13T20:31:44.000Z
2021-01-14T08:54:28.000Z
from .hello_service import hello, fakeDataApI
45
45
0.866667
7970c0c5950da444dd50e049b96acf677fabd4e8
2,409
py
Python
ushare/files/views.py
uploadcare/ushare
6acd504baf61eec0263448c5fbee54cbaaaf8c77
[ "MIT" ]
2
2018-05-13T21:12:11.000Z
2019-11-26T12:00:32.000Z
ushare/files/views.py
uploadcare/ushare
6acd504baf61eec0263448c5fbee54cbaaaf8c77
[ "MIT" ]
5
2015-10-01T12:14:30.000Z
2021-06-10T17:38:06.000Z
ushare/files/views.py
uploadcare/ushare
6acd504baf61eec0263448c5fbee54cbaaaf8c77
[ "MIT" ]
2
2015-10-01T07:56:49.000Z
2016-11-30T13:01:50.000Z
# coding: utf-8 import json from django.conf import settings from django.http import HttpResponse, Http404 from django.views.generic import DetailView from django.views.generic.edit import CreateView from django.utils.translation import ugettext_lazy as _ from django.views.decorators.csrf import csrf_exempt, csrf_prot...
32.12
83
0.655874
7970c1f44b5a1869e11c21dc9795c63bffd7b35d
1,543
py
Python
setup.py
logankilpatrick/pydiscourse
9dcf5832b6e4ddcf945abfb067289531768a1bde
[ "MIT" ]
null
null
null
setup.py
logankilpatrick/pydiscourse
9dcf5832b6e4ddcf945abfb067289531768a1bde
[ "MIT" ]
null
null
null
setup.py
logankilpatrick/pydiscourse
9dcf5832b6e4ddcf945abfb067289531768a1bde
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages README = open('README.rst').read() HISTORY = open('HISTORY.rst').read().replace('.. :changelog:', '') with open("pydiscourse/__init__.py", "r") as module_file: for line in module_file: if line.startswith("__version__"): version_string = line.split("...
30.86
67
0.605314
7970c20a2693cbbe91a136080240f676d29f2053
1,759
py
Python
tensorflow/contrib/tpu/profiler/pip_package/cloud_tpu_profiler/main.py
harunpehlivan/tensorflow
376e2cfdab31f4da251ea2e50992a9bf97fd171b
[ "Apache-2.0" ]
22
2018-01-13T14:52:47.000Z
2018-07-05T01:00:28.000Z
tensorflow/contrib/tpu/profiler/pip_package/cloud_tpu_profiler/main.py
hamzabekkouri/tensorflow
d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f
[ "Apache-2.0" ]
3
2018-05-09T11:31:58.000Z
2021-01-27T12:26:21.000Z
tensorflow/contrib/tpu/profiler/pip_package/cloud_tpu_profiler/main.py
hamzabekkouri/tensorflow
d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f
[ "Apache-2.0" ]
13
2018-02-22T21:04:13.000Z
2020-11-17T11:38:36.000Z
# Copyright 2017 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...
32.574074
79
0.703809
7970c3b504bfd6becdf9b3d697583c4eecf04812
332
py
Python
sleekxmpp/version.py
dashdash-chat/SleekXMPP
00d5de83536e9ca22ea4a27460e42097651ce60f
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/version.py
dashdash-chat/SleekXMPP
00d5de83536e9ca22ea4a27460e42097651ce60f
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/version.py
dashdash-chat/SleekXMPP
00d5de83536e9ca22ea4a27460e42097651ce60f
[ "BSD-3-Clause" ]
null
null
null
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ # We don't want to have to import the entire library # just to get the version info for setup.py __version__ = '1.1.5' __version_info__ = (1, 1...
23.714286
52
0.680723
7970c3c80531f5975013026390d6262a59363e7e
760
py
Python
configs/regnet/mask_rcnn_regnetx-1.6GF_fpn_mstrain-poly_3x_coco.py
Brym-Gyimah/mmdetection
d5d749afe57c77e2ec4500395faed3566fdfedae
[ "Apache-2.0" ]
20,190
2018-09-10T01:11:53.000Z
2022-03-31T22:31:33.000Z
configs/regnet/mask_rcnn_regnetx-1.6GF_fpn_mstrain-poly_3x_coco.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
6,736
2018-09-17T09:45:51.000Z
2022-03-31T22:54:10.000Z
configs/regnet/mask_rcnn_regnetx-1.6GF_fpn_mstrain-poly_3x_coco.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
7,837
2018-09-11T02:58:23.000Z
2022-03-31T22:31:38.000Z
_base_ = [ '../common/mstrain-poly_3x_coco_instance.py', '../_base_/models/mask_rcnn_r50_fpn.py' ] model = dict( backbone=dict( _delete_=True, type='RegNet', arch='regnetx_1.6gf', out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_gr...
28.148148
73
0.601316
7970c3e06676b196bd060bcb4bd65505a4b80ddb
1,710
py
Python
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
1
2020-05-30T15:19:39.000Z
2020-05-30T15:19:39.000Z
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
null
null
null
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
29.482759
76
0.64152
7970c5bb90c95efb1a11324229455433f5012c20
4,709
py
Python
hw/hw1/tests.py
ndanielsen/data5
269ee84fb2f1ed161c3f0476dccfe2d90d18be40
[ "MIT" ]
null
null
null
hw/hw1/tests.py
ndanielsen/data5
269ee84fb2f1ed161c3f0476dccfe2d90d18be40
[ "MIT" ]
null
null
null
hw/hw1/tests.py
ndanielsen/data5
269ee84fb2f1ed161c3f0476dccfe2d90d18be40
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import unittest from hw1 import BurritoFoo class TestBurrito(unittest.TestCase): def setUp(self): self.burrito = BurritoFoo('head_orders.tsv') self.orders = self.burrito.orders def test_the_world_is_sane(self): self.assertEquals(1+1, 2) def test_toppings(self): self.assertEqua...
56.73494
833
0.703971
7970c64577da21a05fff8a9ac2d82e4f99958f7a
4,520
py
Python
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
import os import json from maya import cmds import re def conform_path(path): return join_path(*split_path(path.replace('\\', '/'))) def join_path(*args): path = list() for arg in args: parts = split_path(arg) for part in parts: part = str(part) if part: ...
28.074534
112
0.606195
7970c86e33864bf0b8e7247b8211da05d4cbe67d
47,086
py
Python
py/vtproto/topodata_pb2.py
ch3rub1m/vitess
ae7b400c3d94766d693e0fcd6d18c8956549dd8a
[ "Apache-2.0" ]
1
2019-01-31T08:55:44.000Z
2019-01-31T08:55:44.000Z
py/vtproto/topodata_pb2.py
ch3rub1m/vitess
ae7b400c3d94766d693e0fcd6d18c8956549dd8a
[ "Apache-2.0" ]
null
null
null
py/vtproto/topodata_pb2.py
ch3rub1m/vitess
ae7b400c3d94766d693e0fcd6d18c8956549dd8a
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: topodata.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _...
39.40251
4,433
0.743278
7970c9010a93ec5af86027db7330d424248735f9
71
py
Python
plugins/opsgenie/icon_opsgenie/actions/get_on_calls/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/opsgenie/icon_opsgenie/actions/get_on_calls/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/opsgenie/icon_opsgenie/actions/get_on_calls/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import GetOnCalls
23.666667
39
0.774648
7970cab419db9b74fb8a33fa0caabb50b2cf2a9b
10,390
py
Python
magneticalc/BiotSavart_CUDA.py
shredEngineer/MagnetiCalc
bfccb8b6ef9a4642d30b2f0639b0ab41784598ad
[ "0BSD" ]
25
2020-10-24T09:21:25.000Z
2022-03-22T08:23:44.000Z
magneticalc/BiotSavart_CUDA.py
shredEngineer/MagnetiCalc
bfccb8b6ef9a4642d30b2f0639b0ab41784598ad
[ "0BSD" ]
8
2021-02-08T17:49:04.000Z
2022-01-09T18:19:37.000Z
magneticalc/BiotSavart_CUDA.py
shredEngineer/MagnetiCalc
bfccb8b6ef9a4642d30b2f0639b0ab41784598ad
[ "0BSD" ]
2
2020-12-30T11:02:49.000Z
2021-12-30T12:35:39.000Z
""" BiotSavart_CUDA module. """ # ISC License # # Copyright (c) 2020–2021, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission noti...
44.401709
118
0.67257
7970cbb53d80e13f4ea5bcc9b0c1ab9dcab75b8a
4,554
py
Python
back_end/netify/api/model/model.py
firminsa/netify
f61815a3216b453712077cd148030f41c7ee0b19
[ "MIT" ]
null
null
null
back_end/netify/api/model/model.py
firminsa/netify
f61815a3216b453712077cd148030f41c7ee0b19
[ "MIT" ]
null
null
null
back_end/netify/api/model/model.py
firminsa/netify
f61815a3216b453712077cd148030f41c7ee0b19
[ "MIT" ]
1
2020-02-27T01:17:11.000Z
2020-02-27T01:17:11.000Z
import logging from api.common import errors class Model: def __init__(self): pass def to_dict(self): pass def to_dynamo_dict(self): pass @classmethod def from_request(cls, json): pass @classmethod def from_update_request(cls, json): pass ...
25.58427
113
0.552481
7970cc6d161e88dd9f945b7b69837e8a07eb821a
3,522
py
Python
cpu/Detection/SSD/examples/SSD320_inference.py
okteto/demos
15f2af3aae4802b03f43ddbead51e493e54ee2af
[ "Apache-2.0" ]
3
2019-04-03T09:02:34.000Z
2020-04-14T04:32:28.000Z
cpu/Detection/SSD/examples/SSD320_inference.py
okteto/demos
15f2af3aae4802b03f43ddbead51e493e54ee2af
[ "Apache-2.0" ]
null
null
null
cpu/Detection/SSD/examples/SSD320_inference.py
okteto/demos
15f2af3aae4802b03f43ddbead51e493e54ee2af
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, 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 of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
35.22
97
0.715786
7970cda7464a5009709c24c1b4a54d9697298404
906
py
Python
examples/ph/dos colas media poblacional/dos_colas_media_poblacional_1.py
fxfxrxfx/statistics-py
988586eca32b54c73350136de55d0ea213b02f4a
[ "MIT" ]
null
null
null
examples/ph/dos colas media poblacional/dos_colas_media_poblacional_1.py
fxfxrxfx/statistics-py
988586eca32b54c73350136de55d0ea213b02f4a
[ "MIT" ]
null
null
null
examples/ph/dos colas media poblacional/dos_colas_media_poblacional_1.py
fxfxrxfx/statistics-py
988586eca32b54c73350136de55d0ea213b02f4a
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '../../../lib/') import ph """ La gerencia de First Bank of America estΓ‘ planeando basar los cargos para las cuentas corrientes en el saldo diario promedio. El gerente de cunetas preferenciales desea probar la hipΓ³tesis de que las cuentas tienen un promedio de 312. Se selecciona una mues...
33.555556
124
0.751656
7970cee2fcfdc5637cf5ea5b4ff0a40ee3fb8a1b
479
py
Python
A Very Big Sum.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
4
2021-05-27T05:06:09.000Z
2021-06-12T17:12:47.000Z
A Very Big Sum.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
null
null
null
A Very Big Sum.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
null
null
null
import math import os import random import re import sys # Complete the aVeryBigSum function below. def aVeryBigSum(ar): result = 0 for i in range(len(ar)): result = result + ar[i] return result if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') ar_coun...
19.16
50
0.597077
7970ceeec4d24c7b5a9472aaa400b5ed10a059bc
12,215
py
Python
rllab/misc/ext.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
1,838
2017-08-10T04:19:28.000Z
2022-03-29T07:41:19.000Z
rllab/misc/ext.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
120
2016-10-05T09:16:16.000Z
2017-07-27T22:57:31.000Z
rllab/misc/ext.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
498
2017-08-16T03:34:28.000Z
2022-03-31T04:41:32.000Z
from path import Path import sys import pickle as pickle import random from rllab.misc.console import colorize, Message from collections import OrderedDict import numpy as np import operator from functools import reduce sys.setrecursionlimit(50000) def extract(x, *keys): if isinstance(x, (dict, lazydict)): ...
31.160714
172
0.614654
7970cf437de53cb88dba41f1661159e630318dcb
384
py
Python
check_db_connection.py
YanaNovikova/python_traning
e3bbaf52b3f9b265ce7bfefda321eeee844e3bcb
[ "Apache-2.0" ]
null
null
null
check_db_connection.py
YanaNovikova/python_traning
e3bbaf52b3f9b265ce7bfefda321eeee844e3bcb
[ "Apache-2.0" ]
null
null
null
check_db_connection.py
YanaNovikova/python_traning
e3bbaf52b3f9b265ce7bfefda321eeee844e3bcb
[ "Apache-2.0" ]
null
null
null
from fixture.orm import ORMFixture from model.group import Group from fixture.db import Dbfixture db = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="") #db = Dbfixture(host="127.0.0.1", name="addressbook", user="root", password="") try: l = db.get_contact_list() for item in l: ...
25.6
79
0.671875
7970d14baf523140c01548149ecb0e5a069527dc
5,137
py
Python
firebot/modules/got_thoughts.py
vikas04599/Fire-X
527d57c29785f36e1b07aa739f3ac7c969cc916c
[ "MIT" ]
20
2021-08-16T18:49:49.000Z
2022-02-23T08:35:57.000Z
firebot/modules/got_thoughts.py
elizamusic/Fire-X
1ec6ba73b3033ad03e7859fcf6917fc6aff89efc
[ "MIT" ]
null
null
null
firebot/modules/got_thoughts.py
elizamusic/Fire-X
1ec6ba73b3033ad03e7859fcf6917fc6aff89efc
[ "MIT" ]
93
2021-08-16T19:16:20.000Z
2022-03-31T02:02:06.000Z
""" Game of Thrones Thoughts plugin by @Deonnn command .gott """ import asyncio import random from telethon import events from firebot import CMD_HELP @fire.on(events.NewMessage(pattern=r"\.gott", outgoing=True)) async def _(event): if event.fwd_from: return await event.edit("Typing...") aw...
22.730088
202
0.550516
7970d401dc8e6e703bd084050ef2bdc14240e765
2,735
py
Python
tests/contrib/test_fitbit.py
mehrdad-khojastefar/flask-dance
277d509547f8f8685653e649ff38925a76c3a959
[ "MIT" ]
836
2015-01-11T23:01:58.000Z
2022-03-28T07:32:52.000Z
tests/contrib/test_fitbit.py
mehrdad-khojastefar/flask-dance
277d509547f8f8685653e649ff38925a76c3a959
[ "MIT" ]
353
2015-02-11T00:32:58.000Z
2022-03-28T14:45:38.000Z
tests/contrib/test_fitbit.py
mehrdad-khojastefar/flask-dance
277d509547f8f8685653e649ff38925a76c3a959
[ "MIT" ]
189
2015-03-10T15:04:29.000Z
2022-03-16T21:49:11.000Z
import pytest import responses from urlobject import URLObject from flask import Flask from flask_dance.contrib.fitbit import make_fitbit_blueprint, fitbit from flask_dance.consumer import OAuth2ConsumerBlueprint from flask_dance.consumer.storage import MemoryStorage @pytest.fixture def make_app(): "A callable to...
32.559524
85
0.684461
7970d418e7a8bf117b6ba40b3f07380a96e48a72
3,003
py
Python
pro_enterprise/hooks.py
ProEnterprise/pro_enterprise
d63c44cf82f3163e750f97f76579355426954d50
[ "MIT" ]
null
null
null
pro_enterprise/hooks.py
ProEnterprise/pro_enterprise
d63c44cf82f3163e750f97f76579355426954d50
[ "MIT" ]
null
null
null
pro_enterprise/hooks.py
ProEnterprise/pro_enterprise
d63c44cf82f3163e750f97f76579355426954d50
[ "MIT" ]
1
2020-09-13T16:37:37.000Z
2020-09-13T16:37:37.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "pro_enterprise" app_title = "Pro Enterprise" app_publisher = "Pro Enterprise Limited" app_description = "ERP Applications for SMEs" app_icon = "octicon octicon-file-directory" app_color = "orange" app_e...
24.217742
82
0.685981
7970d587233b413ab1f9275783cc7ef595c213e2
21,240
py
Python
sdk/python/pulumi_azure_native/web/v20160801/web_app_hybrid_connection_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20160801/web_app_hybrid_connection_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20160801/web_app_hybrid_connection_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "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, overload from ... import _utilities __...
45.87473
1,816
0.653908
7970d65ad22ca02abdb7f0d3948750f61aaa8a44
14,970
py
Python
venv/Lib/site-packages/IPython/html/services/contents/manager.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
1
2017-12-30T20:43:28.000Z
2017-12-30T20:43:28.000Z
venv/Lib/site-packages/IPython/html/services/contents/manager.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
venv/Lib/site-packages/IPython/html/services/contents/manager.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
"""A base class for contents managers.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from fnmatch import fnmatch import itertools import json import os import re from tornado.web import HTTPError from .checkpoints import Checkpoints from IPython.config.confi...
31.716102
93
0.589846
7970d7c4216746ef1bc31f0a2d0f8d7beaccccdb
6,591
py
Python
gdal/swig/python/osgeo/utils/gdal_fillnodata.py
trundev/gdal
d5777940975f2784980ef0b7561eeeb655fd0ab5
[ "MIT" ]
62
2018-01-25T10:46:13.000Z
2022-03-20T23:49:57.000Z
gdal/swig/python/osgeo/utils/gdal_fillnodata.py
trundev/gdal
d5777940975f2784980ef0b7561eeeb655fd0ab5
[ "MIT" ]
45
2018-07-10T10:37:19.000Z
2022-02-17T14:41:06.000Z
gdal/swig/python/osgeo/utils/gdal_fillnodata.py
trundev/gdal
d5777940975f2784980ef0b7561eeeb655fd0ab5
[ "MIT" ]
18
2018-02-09T08:57:30.000Z
2022-03-31T16:57:05.000Z
#!/usr/bin/env python3 # ****************************************************************************** # $Id$ # # Project: GDAL Python Interface # Purpose: Application for filling nodata areas in a raster by interpolation # Author: Frank Warmerdam, warmerdam@pobox.com # # **************************************...
30.373272
91
0.51631
7970d8a58b2f5e0c68a1dc1bc3f141b6358aefc7
10,982
py
Python
Paths/Position Clicker.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
283
2015-01-07T12:35:35.000Z
2022-03-29T06:10:44.000Z
Paths/Position Clicker.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
203
2015-01-26T18:43:08.000Z
2022-03-04T01:47:58.000Z
Paths/Position Clicker.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
96
2015-01-19T20:58:03.000Z
2022-03-29T06:10:56.000Z
#MenuTitle: Position Clicker # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__=""" Finds all combinations of positional shapes that do not click well. Clicking means sharing two point coordinates when overlapping. """ import vanilla from AppKit import NSPoint, NSFont fro...
40.375
284
0.718175
7970d91ed92e5736de3d9cf926a367a248042884
219
py
Python
Jumpscale/clients/intercom/IntercomFactory.py
threefoldtech/JumpscaleX
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
2
2019-05-09T07:21:25.000Z
2019-08-05T06:37:53.000Z
Jumpscale/clients/intercom/IntercomFactory.py
threefoldtech/JumpscaleX
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
Jumpscale/clients/intercom/IntercomFactory.py
threefoldtech/jumpscale10
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
from .IntercomClient import IntercomClient from Jumpscale import j JSConfigs = j.application.JSBaseConfigsClass class Intercom(JSConfigs): __jslocation__ = "j.clients.intercom" _CHILDCLASS = IntercomClient
18.25
44
0.794521
7970d9e2564514600eb196a1e9c16bf6bc6f1ded
449
py
Python
tests/imageview/test_imageview.py
leo603222/fix-displace-between-selection-area-and-mouse-pos
1f9031884a980432795b69487bd659f5e4ef91aa
[ "MIT" ]
2,762
2015-01-02T14:34:10.000Z
2022-03-30T14:06:07.000Z
tests/imageview/test_imageview.py
leo603222/fix-displace-between-selection-area-and-mouse-pos
1f9031884a980432795b69487bd659f5e4ef91aa
[ "MIT" ]
1,901
2015-01-12T03:20:30.000Z
2022-03-31T16:33:36.000Z
tests/imageview/test_imageview.py
leo603222/fix-displace-between-selection-area-and-mouse-pos
1f9031884a980432795b69487bd659f5e4ef91aa
[ "MIT" ]
1,038
2015-01-01T04:05:49.000Z
2022-03-31T11:57:51.000Z
import pyqtgraph as pg import numpy as np app = pg.mkQApp() def test_nan_image(): img = np.ones((10,10)) img[0,0] = np.nan v = pg.image(img) v.imageItem.getHistogram() app.processEvents() v.window().close() def test_init_with_mode_and_imageitem(): data = np.random.randint(256, size=(256, ...
23.631579
53
0.665924
7970da14c4bb13ec137b3d8a55f942ffecd10a37
5,053
py
Python
load.py
Ealeex/HelpfulLinks
1a2a9e2237a556e53524095219ac201ff9beb55f
[ "MIT" ]
2
2020-10-18T00:44:21.000Z
2021-09-26T05:38:27.000Z
load.py
Ealeex/HelpfulLinks
1a2a9e2237a556e53524095219ac201ff9beb55f
[ "MIT" ]
null
null
null
load.py
Ealeex/HelpfulLinks
1a2a9e2237a556e53524095219ac201ff9beb55f
[ "MIT" ]
null
null
null
try: import Tkinter as tk except ImportError: import tkinter as tk import ttk import sys import myNotebook as nb from config import config import json from ttkHyperlinkLabel import HyperlinkLabel import webbrowser from theme import theme this = sys.modules[__name__] # Global Variables! totalLi...
34.37415
148
0.647932
7970da43a59bb075216021553571614e2954d3e9
1,860
py
Python
src/server.py
petermlm/markovweb
079f5a11bd293eb657ac0df589acc40894b4936e
[ "MIT" ]
null
null
null
src/server.py
petermlm/markovweb
079f5a11bd293eb657ac0df589acc40894b4936e
[ "MIT" ]
null
null
null
src/server.py
petermlm/markovweb
079f5a11bd293eb657ac0df589acc40894b4936e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import request, abort from flask_cors import CORS from markov import markov from app import make_app from render import render import config import reddit app = make_app() if config.get_env() == config.ENV_DEV: app.config['CORS_HEADERS'] = 'Content-Type' CORS(app, resources...
23.25
95
0.674194
7970dacc1dc6855b1eaccc24d29972bac550f40d
16,020
py
Python
RobotEyes/report_generator.py
DiegoSanchezE/RobotEyes
4f13bd351c9b85bf3155928e44073fb25d456445
[ "MIT" ]
101
2016-11-18T16:56:00.000Z
2022-02-16T12:43:19.000Z
RobotEyes/report_generator.py
DiegoSanchezE/RobotEyes
4f13bd351c9b85bf3155928e44073fb25d456445
[ "MIT" ]
46
2018-08-31T14:27:18.000Z
2021-12-21T12:30:38.000Z
RobotEyes/report_generator.py
DiegoSanchezE/RobotEyes
4f13bd351c9b85bf3155928e44073fb25d456445
[ "MIT" ]
24
2016-11-18T08:33:32.000Z
2021-12-15T14:21:11.000Z
import os import xml.etree.ElementTree as ET from time import sleep from .constants import IMAGE_EXTENSIONS def generate_report(baseline_folder, results_folder, actual_folder=None): sleep(1) img_path = os.path.join(results_folder, 'visual_images') report_path = os.path.join(results_folder, 'output.xml') ...
44.87395
219
0.525968
7970dae26da0f2ea09dc7bd2959321efbabe7418
35,528
py
Python
docs/code/Assertions.py
TheV1rtuoso/debuggingbook
dd4a1605cff793f614e67fbaef74de7d20e0519c
[ "MIT" ]
null
null
null
docs/code/Assertions.py
TheV1rtuoso/debuggingbook
dd4a1605cff793f614e67fbaef74de7d20e0519c
[ "MIT" ]
null
null
null
docs/code/Assertions.py
TheV1rtuoso/debuggingbook
dd4a1605cff793f614e67fbaef74de7d20e0519c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # "Asserting Expectations" - a chapter of "The Debugging Book" # Web site: https://www.debuggingbook.org/html/Assertions.html # Last change: 2022-01-23 22:47:53+01:00 # # Copyright (c) 2021 CISPA Helmholtz Center for Information Security # Copyright (c) 2018-2020 Saarland...
23.860309
114
0.594376
7970db4b970b49045de654f6b81046dda337b612
408
py
Python
regularexp14.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
regularexp14.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
regularexp14.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Create A Regular Expression To Retrieve The Phone Number Of A Person ''' Function Name : Regular Expression To Retrieve Phone Number Of A Person Function Date : 28 Sep 2020 Function Author : Prasad Dangare Input : String Output : Integer ''' import re st...
25.5
89
0.651961
7970dd52e4b918357f975b2a92291b77340c921a
8,166
py
Python
sdks/python/apache_beam/io/gcp/dicomio_integration_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
2
2021-08-15T02:58:15.000Z
2021-08-20T01:16:07.000Z
sdks/python/apache_beam/io/gcp/dicomio_integration_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-02-13T21:53:50.000Z
2018-06-12T18:43:48.000Z
sdks/python/apache_beam/io/gcp/dicomio_integration_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-09-17T01:31:23.000Z
2021-09-17T01:31:23.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...
36.783784
80
0.742836
7970ddc34ea47b960688752db38841c4be522fbf
466
py
Python
py_fitness/py_fitness/workout/migrations/0003_auto_20161024_1632.py
audiolion/py-fitness
9e0ca785c73a07cb788685bbde6e840a7a2e3419
[ "MIT" ]
1
2017-04-17T19:59:15.000Z
2017-04-17T19:59:15.000Z
py_fitness/py_fitness/workout/migrations/0003_auto_20161024_1632.py
audiolion/py-fitness
9e0ca785c73a07cb788685bbde6e840a7a2e3419
[ "MIT" ]
1
2016-12-09T01:58:46.000Z
2016-12-09T01:58:46.000Z
py_fitness/py_fitness/workout/migrations/0003_auto_20161024_1632.py
audiolion/py-fitness
9e0ca785c73a07cb788685bbde6e840a7a2e3419
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-24 20:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workout', '0002_auto_20161024_1627'), ] operations = [ migrations.AlterFiel...
22.190476
62
0.622318
7970de52767b0245d2c8325687d1d49c85889b24
4,621
py
Python
custom_components/luxor/light.py
dcramer/hass-luxor
197697ba35adfd3a6efb4af5c59f13cc36cc459c
[ "MIT" ]
1
2021-09-27T09:12:39.000Z
2021-09-27T09:12:39.000Z
custom_components/luxor/light.py
dcramer/hass-luxor
197697ba35adfd3a6efb4af5c59f13cc36cc459c
[ "MIT" ]
2
2021-09-15T03:13:37.000Z
2021-09-15T03:15:58.000Z
custom_components/luxor/light.py
dcramer/hass-luxor
197697ba35adfd3a6efb4af5c59f13cc36cc459c
[ "MIT" ]
1
2022-02-10T00:03:36.000Z
2022-02-10T00:03:36.000Z
import logging from datetime import timedelta from functools import partial from homeassistant.core import callback from homeassistant.components.light import ( LightEntity, COLOR_MODE_BRIGHTNESS, ) from homeassistant.exceptions import PlatformNotReady from homeassistant.helpers.debounce import Debouncer from...
29.246835
82
0.693789
7970e0254dbe7419eb1d8b7ec71a5a941fa643f8
5,830
py
Python
src/roles/wildchild.py
timson622222/lykos
cdaae22b2f69fe907c5ac93d14c4d2d78e23eb1a
[ "BSD-2-Clause" ]
null
null
null
src/roles/wildchild.py
timson622222/lykos
cdaae22b2f69fe907c5ac93d14c4d2d78e23eb1a
[ "BSD-2-Clause" ]
null
null
null
src/roles/wildchild.py
timson622222/lykos
cdaae22b2f69fe907c5ac93d14c4d2d78e23eb1a
[ "BSD-2-Clause" ]
null
null
null
import random import src.settings as var from src.utilities import * from src import debuglog, errlog, plog from src.decorators import cmd, event_listener from src.messages import messages from src.events import Event WILD_CHILDREN = set() IDOLS = {} @cmd("choose", chan=False, pm=True, playing=True, phases=("night",...
36.898734
99
0.62916
7970e028f18692437c56461f807990d496c85d4b
2,053
py
Python
rrd/view/other.py
ning1875/falcon-dashboard
c04e625c49358a278d5f1663a8055627eeb56334
[ "Apache-2.0" ]
1
2020-07-09T00:40:42.000Z
2020-07-09T00:40:42.000Z
rrd/view/other.py
ning1875/falcon-dashboard
c04e625c49358a278d5f1663a8055627eeb56334
[ "Apache-2.0" ]
null
null
null
rrd/view/other.py
ning1875/falcon-dashboard
c04e625c49358a278d5f1663a8055627eeb56334
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import json import re from flask import request, abort, g, render_template, jsonify from rrd import app, config from rrd import corelib from rrd.config import redis_conn import requests import redis from rrd.utils.grafana_bfc import bfc from rrd.utils.lark_work import text_chat from rrd.utils.fo...
27.743243
82
0.627862
7970e133178f5b0543ea9889c7c703ab176ee259
22,977
py
Python
src/models.py
bowang-lab/CONCERTO
a6b59778eb4d2a964ca1795fa6368eeb579c1bf7
[ "MIT" ]
null
null
null
src/models.py
bowang-lab/CONCERTO
a6b59778eb4d2a964ca1795fa6368eeb579c1bf7
[ "MIT" ]
null
null
null
src/models.py
bowang-lab/CONCERTO
a6b59778eb4d2a964ca1795fa6368eeb579c1bf7
[ "MIT" ]
null
null
null
import torch as th import torch.nn as nn import torch.nn.functional as F import pandas as pd import numpy as np from dgl.nn import MaxPooling, AvgPooling, GlobalAttentionPooling from dgl import function as fn from dgl.nn.pytorch.softmax import edge_softmax from dgllife.model import GATPredictor, GIN, load_pretrained, G...
32.499293
151
0.720677
7970e23becc18d35d0ab47a7686caae002789735
17,502
py
Python
test/integration/external_app/test_ext_cad.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
test/integration/external_app/test_ext_cad.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/external_app/test_ext_cad.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests external CAD actions (create, update, etc.)""" import json import ddt from ggrc import models from ggrc.models import all_models from ggrc.models import custom_attribute_definition as cad from int...
32.054945
78
0.649012
7970e2946f26c14618bdafc12484ded43deedd8e
1,655
py
Python
homeassistant/components/mill/config_flow.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/mill/config_flow.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/mill/config_flow.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Adds config flow for Mill integration.""" from mill import Mill import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.helpers.aiohttp_client import async_get_clientsession from .const import DOMAIN DATA_SCHEMA = vol.Schema...
28.534483
72
0.63142
7970e40e33e7345d7fcdfab689836218952325a9
6,944
py
Python
warehouse/accounts/forms.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2021-01-03T00:58:00.000Z
2021-01-03T00:58:00.000Z
warehouse/accounts/forms.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2019-09-09T15:04:44.000Z
2019-09-09T15:04:44.000Z
warehouse/accounts/forms.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2019-09-09T15:02:40.000Z
2019-09-09T15:02:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
32.297674
79
0.603687
7970e45ec7ae444593a29585ba51b8677863a8fe
1,842
py
Python
tests/orqviz/hessians/hessians_test.py
RonMeiburg/orqviz
fd3e345ac76325cc1f8bd0d523af33689af31fda
[ "Apache-2.0" ]
null
null
null
tests/orqviz/hessians/hessians_test.py
RonMeiburg/orqviz
fd3e345ac76325cc1f8bd0d523af33689af31fda
[ "Apache-2.0" ]
null
null
null
tests/orqviz/hessians/hessians_test.py
RonMeiburg/orqviz
fd3e345ac76325cc1f8bd0d523af33689af31fda
[ "Apache-2.0" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np from orqviz.hessians import ( get_Hessian, get_Hessian_SPSA_approx, perform_1D_hessian_eigenvector_scan, plot_1D_hessian_eigenvector_scan_result, ) from orqviz.utils import load_viz_object, save_viz_object def COST_FUNCTION(params): re...
26.695652
88
0.697068
7970e57515f3cf6411ae3c42da7455c12cb4d903
120
py
Python
serial-adapter/bootstrap/__main__.py
vychodnar/serial-zwave
8c6903ba836777bb9cc6811dde88820d997fafc7
[ "MIT" ]
null
null
null
serial-adapter/bootstrap/__main__.py
vychodnar/serial-zwave
8c6903ba836777bb9cc6811dde88820d997fafc7
[ "MIT" ]
null
null
null
serial-adapter/bootstrap/__main__.py
vychodnar/serial-zwave
8c6903ba836777bb9cc6811dde88820d997fafc7
[ "MIT" ]
null
null
null
"""bootstrap.__main__: executed when bootstrap directory is called as script.""" from .bootstrap import main main()
15
80
0.75
7970e5e25945cdf042e13aeb5360370466d90782
441
py
Python
mongo_connector/locking_dict.py
usersnap/mongo-connector
d9f877ee553fb79da9f2c33878ee68c85c38578d
[ "Apache-2.0" ]
15
2015-01-06T08:10:21.000Z
2017-03-12T23:06:43.000Z
mongo_connector/locking_dict.py
usersnap/mongo-connector
d9f877ee553fb79da9f2c33878ee68c85c38578d
[ "Apache-2.0" ]
16
2015-03-11T09:28:33.000Z
2016-03-06T14:45:54.000Z
mongo_connector/locking_dict.py
usersnap/mongo-connector
d9f877ee553fb79da9f2c33878ee68c85c38578d
[ "Apache-2.0" ]
13
2015-03-21T13:39:10.000Z
2022-03-14T11:50:24.000Z
import threading class LockingDict(): def __init__(self): self.dict = {} self.lock = threading.Lock() def __enter__(self): self.acquire_lock() return self def __exit__(self, type, value, traceback): self.release_lock() def get_dict(self): return sel...
16.961538
47
0.596372
7970e7ffa5cd1258c9942a65940a6618d4789643
2,318
py
Python
masksMaker.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
masksMaker.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
masksMaker.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
import numpy as np from utils import pairwise from tqdm import tqdm import os import json from PIL import Image, ImageDraw from skimage.draw import polygon2mask import cv2 import pandas as pd import matplotlib.pyplot as plt import sys pathImgSrc = "data\\img\\ori" pathImgDst = "data\\img\\mask" pathDf = "data/label/...
30.5
116
0.617343
7970e91dfe26cc6605b8fdf4a0a0525efcdddbdb
4,809
py
Python
pgoapi/protos/pogoprotos/networking/responses/use_item_xp_boost_response_pb2.py
aroo135/pgoapi
47d384ffe54051363ba380f0cb14ec584feedab1
[ "MIT" ]
842
2016-08-07T00:07:26.000Z
2016-08-22T02:41:38.000Z
aiopogo/pogoprotos/networking/responses/use_item_xp_boost_response_pb2.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
102
2016-08-22T19:55:24.000Z
2018-10-28T12:06:33.000Z
aiopogo/pogoprotos/networking/responses/use_item_xp_boost_response_pb2.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
522
2016-08-07T00:06:05.000Z
2016-08-21T18:03:59.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/networking/responses/use_item_xp_boost_response.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _messa...
39.743802
679
0.787066
7970e94132ac3d8e1448d1a4b7da313aea8b6a31
408
py
Python
ldaptriggers/signals.py
marcbenedi/ldap-triggers
e1c445110e207cab57b459468671acc7ce713b0f
[ "MIT" ]
null
null
null
ldaptriggers/signals.py
marcbenedi/ldap-triggers
e1c445110e207cab57b459468671acc7ce713b0f
[ "MIT" ]
null
null
null
ldaptriggers/signals.py
marcbenedi/ldap-triggers
e1c445110e207cab57b459468671acc7ce713b0f
[ "MIT" ]
null
null
null
import signal import sys from .log import get_logger def signal_handler(sig, frame): """ Logs the signal received into LOG_PATH :param sig: signal that has been called :param frame: """ logger = get_logger() logger.warn('Signal received: ' + signal.Signals(sig).name) sys.exit(0) sig...
20.4
63
0.705882
7970e9f29ae71228cc5a01b7dbe3ff9daf246826
4,573
py
Python
examples/pytorch/line_graph/test.py
leichen2018/dgl
820caa02d022618fc4c2a835e44695f744b0fdca
[ "Apache-2.0" ]
1
2019-02-22T05:58:23.000Z
2019-02-22T05:58:23.000Z
examples/pytorch/line_graph/test.py
leichen2018/dgl
820caa02d022618fc4c2a835e44695f744b0fdca
[ "Apache-2.0" ]
null
null
null
examples/pytorch/line_graph/test.py
leichen2018/dgl
820caa02d022618fc4c2a835e44695f744b0fdca
[ "Apache-2.0" ]
null
null
null
""" Supervised Community Detection with Hierarchical Graph Neural Networks https://arxiv.org/abs/1705.08415 Author's implementation: https://github.com/joanbruna/GNN_community """ from __future__ import division import time from datetime import datetime as dt import argparse from itertools import permutations impor...
36.879032
121
0.668926
7970eb393cd67e1482086c5979b299259b426bf5
55,067
py
Python
tests/strategies/staggered_orders/test_staggered_orders_complex.py
pir8aye/DEXBot
cb963391174850796cc5cf76e4c73eb02da8000d
[ "MIT" ]
null
null
null
tests/strategies/staggered_orders/test_staggered_orders_complex.py
pir8aye/DEXBot
cb963391174850796cc5cf76e4c73eb02da8000d
[ "MIT" ]
null
null
null
tests/strategies/staggered_orders/test_staggered_orders_complex.py
pir8aye/DEXBot
cb963391174850796cc5cf76e4c73eb02da8000d
[ "MIT" ]
null
null
null
import logging import pytest import math from datetime import datetime from bitshares.account import Account from bitshares.amount import Amount # Turn on debug for dexbot logger log = logging.getLogger("dexbot") log.setLevel(logging.DEBUG) MODES = ['mountain', 'valley', 'neutral', 'buy_slope', 'sell_slope'] def g...
43.46251
120
0.701745
7970ecd9e7217087e76529c0dde6957f94687b75
87,524
py
Python
nova/tests/test_quota.py
bopopescu/nova-28
add7f5625ba49c0575328294a796428c443cd988
[ "Apache-2.0" ]
null
null
null
nova/tests/test_quota.py
bopopescu/nova-28
add7f5625ba49c0575328294a796428c443cd988
[ "Apache-2.0" ]
null
null
null
nova/tests/test_quota.py
bopopescu/nova-28
add7f5625ba49c0575328294a796428c443cd988
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
38.968833
79
0.513699
7970ee27ac7b9a156365ddc52bce5fa22c30e2b5
721
py
Python
metadrive/tests/scripts/profile_map_generation.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
125
2021-08-30T06:33:57.000Z
2022-03-31T09:02:44.000Z
metadrive/tests/scripts/profile_map_generation.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
72
2021-08-30T16:23:41.000Z
2022-03-31T19:17:16.000Z
metadrive/tests/scripts/profile_map_generation.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
20
2021-09-09T08:20:25.000Z
2022-03-24T13:24:07.000Z
from metadrive import MetaDriveEnv from metadrive.component.map.base_map import BaseMap from metadrive.component.map.pg_map import MapGenerateMethod from metadrive.utils.draw_top_down_map import draw_top_down_map if __name__ == '__main__': env = MetaDriveEnv( dict( environment_num=1, ...
32.772727
76
0.635229
7970ee6b0d8101a37fd6960118449f7b0eba997e
3,959
py
Python
chaoslib/settings.py
joshuaroot/chaostoolkit-lib
d178b9877a57c07f1f622bfc3f2f58359ec6998a
[ "Apache-2.0" ]
null
null
null
chaoslib/settings.py
joshuaroot/chaostoolkit-lib
d178b9877a57c07f1f622bfc3f2f58359ec6998a
[ "Apache-2.0" ]
null
null
null
chaoslib/settings.py
joshuaroot/chaostoolkit-lib
d178b9877a57c07f1f622bfc3f2f58359ec6998a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import os.path import re from typing import Any, Dict, List, Optional, Tuple, Union import contextvars from logzero import logger import yaml from chaoslib.types import Settings __all__ = ["get_loaded_settings", "load_settings", "save_settings", "locate_settings_entry"] C...
30.689922
79
0.604951
7970ee780b8d5142811e7301a0e21ce59032207a
2,358
py
Python
analytical/templatetags/uservoice.py
techdragon/django-analytical
cf80f86b1833cdf06f0f08cc8c3bac5e9d67f56d
[ "MIT" ]
1
2019-06-27T13:05:09.000Z
2019-06-27T13:05:09.000Z
analytical/templatetags/uservoice.py
techdragon/django-analytical
cf80f86b1833cdf06f0f08cc8c3bac5e9d67f56d
[ "MIT" ]
null
null
null
analytical/templatetags/uservoice.py
techdragon/django-analytical
cf80f86b1833cdf06f0f08cc8c3bac5e9d67f56d
[ "MIT" ]
null
null
null
""" UserVoice template tags. """ from __future__ import absolute_import import json import re from django.conf import settings from django.template import Library, Node, TemplateSyntaxError from analytical.utils import get_required_setting WIDGET_KEY_RE = re.compile(r'^[a-zA-Z0-9]*$') TRACKING_CODE = """ <scr...
30.623377
80
0.648855
7970ef18400b6e69072ad5052b8b58846d1f76ec
935
py
Python
setup.py
jasonli0616/PythonMySequel
692abc4517f060683fb34bc304e1bc3b06d2dc7f
[ "MIT" ]
null
null
null
setup.py
jasonli0616/PythonMySequel
692abc4517f060683fb34bc304e1bc3b06d2dc7f
[ "MIT" ]
null
null
null
setup.py
jasonli0616/PythonMySequel
692abc4517f060683fb34bc304e1bc3b06d2dc7f
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() setuptools.setup( name="PythonMySequel", version="0.2.2", author="Jason Li", description="An easier to use MySQL/SQLite connector for Python.", long_description=long_description, long_descript...
30.16129
78
0.633155
7970ef7b0f1c9f59a0ff02901e6e41dfb8121526
1,176
py
Python
python/pandas/pandas_command.py
trhongbinwang/data_science_journey
3f1437942109250cc41207d39e6bcb6e4ff17730
[ "Apache-2.0" ]
1
2017-04-28T00:02:43.000Z
2017-04-28T00:02:43.000Z
python/pandas/pandas_command.py
trhongbinwang/data_science_journey
3f1437942109250cc41207d39e6bcb6e4ff17730
[ "Apache-2.0" ]
null
null
null
python/pandas/pandas_command.py
trhongbinwang/data_science_journey
3f1437942109250cc41207d39e6bcb6e4ff17730
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 29 11:07:14 2016 pandas command collection """ import pandas as pd import numpy as np # create df from dict data = {'name': ['Jason', 'Molly', 'Tina', 'Jake', 'Amy'], 'year': [2012, 2012, 2013, 2014, 2014], 'reports': [4, 24, 31, 2, ...
18.666667
93
0.606293
7970f0279c37e440019ef66ca8018642aa8f02c8
2,435
py
Python
cmdTIRtracking/ltr/dataset/base_image_dataset.py
zhanglichao/cmdTIR_tracking
5182e3fb81221265d3715ed415788ce2947b0bd1
[ "MIT" ]
11
2021-07-17T03:04:10.000Z
2022-02-22T07:07:32.000Z
cmdTIRtracking/ltr/dataset/base_image_dataset.py
zhanglichao/cmdTIR_tracking
5182e3fb81221265d3715ed415788ce2947b0bd1
[ "MIT" ]
3
2021-09-01T02:53:33.000Z
2022-01-20T08:45:43.000Z
cmdTIRtracking/ltr/dataset/base_image_dataset.py
zhanglichao/cmdTIR_tracking
5182e3fb81221265d3715ed415788ce2947b0bd1
[ "MIT" ]
2
2021-12-11T01:32:32.000Z
2022-02-22T07:07:34.000Z
import torch.utils.data from ltr.data.image_loader import jpeg4py_loader, opencv_loader class BaseImageDataset(torch.utils.data.Dataset): """ Base class for image datasets """ def __init__(self, name, root, image_loader=opencv_loader): """ args: root - The root path to the dataset...
26.182796
121
0.585216
7970f03abfa1a6ee23e1e3634d32465fdfec05ef
158
py
Python
contrib/wallettools/walletunlock.py
mykingcypto/mykingcoin
6dc4260ac8edc5495975f8fe75bf675aa49e5335
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
mykingcypto/mykingcoin
6dc4260ac8edc5495975f8fe75bf675aa49e5335
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
mykingcypto/mykingcoin
6dc4260ac8edc5495975f8fe75bf675aa49e5335
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:8888") pwd = raw_input("Enter wallet passphrase: ") access.walletpassphrase(pwd, 60)
31.6
46
0.765823
7970f08a06ed25f473d3dd44e480050edf66b276
429
py
Python
Testing weird callback error.py
atahanozturk/IB-CS-IA
193011a43d9d5e6575cc4ce4a13c37efc25e7125
[ "Apache-2.0" ]
1
2019-09-24T02:18:19.000Z
2019-09-24T02:18:19.000Z
Testing weird callback error.py
atahanozturk/IB-CS-IA
193011a43d9d5e6575cc4ce4a13c37efc25e7125
[ "Apache-2.0" ]
null
null
null
Testing weird callback error.py
atahanozturk/IB-CS-IA
193011a43d9d5e6575cc4ce4a13c37efc25e7125
[ "Apache-2.0" ]
null
null
null
n = 10 def testing (): global n; print() print("start") try: if(n>0): print("raise exception") n-=1; raise Exception("n is " + str(n+1)); except: print("Error catch found") return ErrorCatcher(testing); print("finally d...
19.5
49
0.508159
7970f185412b6e418f514c7c2b938d7e0660fcbe
98,796
py
Python
nova/virt/ironic/driver.py
muraliselva10/nova
97626394bcce5c8cd020b136ca54a6aa919eb3a9
[ "Apache-2.0" ]
1
2022-02-24T08:49:48.000Z
2022-02-24T08:49:48.000Z
nova/virt/ironic/driver.py
muraliselva10/nova
97626394bcce5c8cd020b136ca54a6aa919eb3a9
[ "Apache-2.0" ]
null
null
null
nova/virt/ironic/driver.py
muraliselva10/nova
97626394bcce5c8cd020b136ca54a6aa919eb3a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Red Hat, Inc. # Copyright 2013 Hewlett-Packard Development Company, L.P. # 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://ww...
45.549101
96
0.595105
7970f19b1de55ff764b3161cba3848514b6d1863
183
py
Python
problemsets/Codeforces/Python/A1360.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A1360.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A1360.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ for s in [*open(0)][1:]: a,b=sorted(map(int,s.split())) print((a+a)**2 if a+a>=b else b*b)
20.333333
38
0.579235
7970f1db1946b8ac667b34838dd5087cee93e318
50
py
Python
implementation_files/cosim_pandapipes_pandapower/simulators/util/__init__.py
ERIGrid2/benchmark-model-multi-energy-networks
4172480a5fcdf99d086b98ea24e00342f8e42a91
[ "BSD-3-Clause" ]
null
null
null
implementation_files/cosim_pandapipes_pandapower/simulators/util/__init__.py
ERIGrid2/benchmark-model-multi-energy-networks
4172480a5fcdf99d086b98ea24e00342f8e42a91
[ "BSD-3-Clause" ]
null
null
null
implementation_files/cosim_pandapipes_pandapower/simulators/util/__init__.py
ERIGrid2/benchmark-model-multi-energy-networks
4172480a5fcdf99d086b98ea24e00342f8e42a91
[ "BSD-3-Clause" ]
null
null
null
from .functions import * from .constants import *
16.666667
24
0.76
7970f2a96176a668aa6f107f6a4990b1e84cce24
548
py
Python
more-python-for-beginners/07 - Reading and writing files/write.py
20-1-SKKU-OSS/c9-python-getting-started
90e7a5f9fa291a9ddfe7c5b466ee1ee75c73f3f6
[ "MIT" ]
1
2020-05-28T08:57:36.000Z
2020-05-28T08:57:36.000Z
more-python-for-beginners/07 - Reading and writing files/write.py
20-1-SKKU-OSS/c9-python-getting-started
90e7a5f9fa291a9ddfe7c5b466ee1ee75c73f3f6
[ "MIT" ]
33
2020-05-28T15:07:14.000Z
2020-06-10T03:39:58.000Z
more-python-for-beginners/07 - Reading and writing files/write.py
20-1-SKKU-OSS/c9-python-getting-started
90e7a5f9fa291a9ddfe7c5b466ee1ee75c73f3f6
[ "MIT" ]
1
2020-05-27T07:43:56.000Z
2020-05-27T07:43:56.000Z
# Open output.txt as a text file for writing stream = open('output.txt', 'wt') print('\nCan I write to this file? ' + str(stream.writable()) + '\n') # Write a single string stream.write('H') # Write one or more strings stream.writelines(['ello',' ','world']) # Write a new line stream.write('\n') names = ['Susan'...
24.909091
69
0.682482
7970f4be6852a09f918eca18a63b2f6e8e349978
3,843
py
Python
train.py
korobool/codefinder
02ffe34066547fb1a9d996ddabf0ede753b26ef6
[ "MIT" ]
3
2018-07-27T07:16:49.000Z
2018-07-28T02:35:07.000Z
train.py
korobool/codefinder
02ffe34066547fb1a9d996ddabf0ede753b26ef6
[ "MIT" ]
null
null
null
train.py
korobool/codefinder
02ffe34066547fb1a9d996ddabf0ede753b26ef6
[ "MIT" ]
1
2020-05-11T10:33:30.000Z
2020-05-11T10:33:30.000Z
import numpy as np import tensorflow as tf from sklearn.metrics import accuracy_score tf.reset_default_graph() from model import * f1_ = open('loss_test_track.json', 'w') f2_ = open('loss_train_track.json', 'w') batch_size = 100 max_batches = 11801 batches_for_test = 100 batches_for_print = 10 epoch_num = 3 loss_tra...
33.710526
119
0.565183
7970f528309bccdcb0a81979064536bd45669a78
27,314
py
Python
discord/user.py
silverkip/solidbot
ddb8e903b603ec59e491e774de0b35b1f8a1a9a4
[ "MIT" ]
1
2019-08-10T04:04:53.000Z
2019-08-10T04:04:53.000Z
discord/user.py
silverkip/solidbot
ddb8e903b603ec59e491e774de0b35b1f8a1a9a4
[ "MIT" ]
null
null
null
discord/user.py
silverkip/solidbot
ddb8e903b603ec59e491e774de0b35b1f8a1a9a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2017 Rapptz 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 u...
31.686775
129
0.601194
7970f5b9c1d401d6fb09b81779722ccef70a4fc4
7,607
py
Python
monkeytype/typing.py
ambv/MonkeyType
1581f300734b00ba0071ced5863ab02864617f3a
[ "BSD-3-Clause" ]
1
2020-10-08T06:11:42.000Z
2020-10-08T06:11:42.000Z
monkeytype/typing.py
ambv/MonkeyType
1581f300734b00ba0071ced5863ab02864617f3a
[ "BSD-3-Clause" ]
null
null
null
monkeytype/typing.py
ambv/MonkeyType
1581f300734b00ba0071ced5863ab02864617f3a
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # 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. import inspect import types from typing import ( Any, Callable, Dict, Generator, Iterable, Itera...
28.70566
90
0.624425
7970f629d43eb990a4ac94737529ac11599e9e41
3,445
py
Python
SnakeSegment.py
tanvirtin/PySnake
af389217f7c69cfa0e48950b2013f33506b3c79e
[ "MIT" ]
null
null
null
SnakeSegment.py
tanvirtin/PySnake
af389217f7c69cfa0e48950b2013f33506b3c79e
[ "MIT" ]
null
null
null
SnakeSegment.py
tanvirtin/PySnake
af389217f7c69cfa0e48950b2013f33506b3c79e
[ "MIT" ]
null
null
null
import pygame from GameObj import GameObj import random class SnakeSegment(GameObj): def __init__(self, x, y, speed, boundary_x, boundary_y, head = False, default_direction = "up"): self.body_size = 20 super().__init__(x, y, self.body_size, self.body_size) self.weird_boundary_offset = 19 ...
41.011905
202
0.651089
7970f6c8702f236e515f499a7aa61eb643490c2e
2,658
py
Python
bindings/pydeck/pydeck/io/html.py
Ayazona/deck.gl
bbbf0800741887fecc559d624cef03583c91c9d6
[ "MIT" ]
null
null
null
bindings/pydeck/pydeck/io/html.py
Ayazona/deck.gl
bbbf0800741887fecc559d624cef03583c91c9d6
[ "MIT" ]
5
2021-03-11T04:45:23.000Z
2022-02-13T19:45:44.000Z
bindings/pydeck/pydeck/io/html.py
Ayazona/deck.gl
bbbf0800741887fecc559d624cef03583c91c9d6
[ "MIT" ]
null
null
null
import os from os.path import relpath, realpath import tempfile import time import webbrowser import jinja2 TEMPLATES_PATH = os.path.join(os.path.dirname(__file__), './templates/') j2_env = jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATES_PATH), trim_blocks=True) CDN_URL = 'htt...
30.204545
116
0.676072
7970f76eea11a58725f05d7ecf0803eb08f3547c
6,070
py
Python
spyder.py
galaxycitizen/spyder
b3d68ac0365a15b02ec76f361936f43a6c43010f
[ "MIT" ]
null
null
null
spyder.py
galaxycitizen/spyder
b3d68ac0365a15b02ec76f361936f43a6c43010f
[ "MIT" ]
null
null
null
spyder.py
galaxycitizen/spyder
b3d68ac0365a15b02ec76f361936f43a6c43010f
[ "MIT" ]
null
null
null
import requests import time from bs4 import BeautifulSoup import shutil import tempfile import urllib.request, urllib.error import transliterate from datetime import datetime import re import fileinput sleep_time = 3 def main(): def copyrights(): copyrights = '<p align="center"><b>Π‘ΠΊΠΎΠΌΠΏΠΈΠ»ΠΈΡ€...
37.239264
126
0.565239
7970f79ea07f17042561cf2b9c1cbb21425a2522
28,285
py
Python
tensorflow/python/ops/nn_test.py
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
[ "Apache-2.0" ]
1
2016-12-12T09:46:14.000Z
2016-12-12T09:46:14.000Z
tensorflow/python/ops/nn_test.py
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/nn_test.py
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
[ "Apache-2.0" ]
1
2020-07-20T18:02:33.000Z
2020-07-20T18:02:33.000Z
# Copyright 2015 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...
36.402831
80
0.629945
7970f7abca1dbc134aa8679a271318530aa479d5
2,365
py
Python
Lib/site-packages/web/wsgi.py
vikramjeet007/epochconverter123
f104d65d4de12c46a60e3c16748714c0c374b05e
[ "bzip2-1.0.6" ]
1
2020-09-23T16:42:53.000Z
2020-09-23T16:42:53.000Z
Lib/site-packages/web/wsgi.py
vikramjeet007/epochconverter123
f104d65d4de12c46a60e3c16748714c0c374b05e
[ "bzip2-1.0.6" ]
7
2020-06-05T20:53:51.000Z
2021-09-22T18:31:25.000Z
Lib/site-packages/web/wsgi.py
vikramjeet007/epochconverter123
f104d65d4de12c46a60e3c16748714c0c374b05e
[ "bzip2-1.0.6" ]
1
2019-09-24T21:17:31.000Z
2019-09-24T21:17:31.000Z
""" WSGI Utilities (from web.py) """ import os import sys from . import webapi as web from .utils import listget, intget from .net import validaddr from . import httpserver def runfcgi(func, addr=("localhost", 8000)): """Runs a WSGI function as a FastCGI server.""" import flup.server.fcgi as flups retu...
26.875
88
0.63129
7970f7ee3c1fef91f489ceb7721ec5a4fdd3012c
4,085
py
Python
cgi-bin/myQuestionnaire.py
huihonkit/csci4140prj
251c1fd4b24fcc1103ef8119baffbdf13a04c01c
[ "Apache-2.0" ]
null
null
null
cgi-bin/myQuestionnaire.py
huihonkit/csci4140prj
251c1fd4b24fcc1103ef8119baffbdf13a04c01c
[ "Apache-2.0" ]
null
null
null
cgi-bin/myQuestionnaire.py
huihonkit/csci4140prj
251c1fd4b24fcc1103ef8119baffbdf13a04c01c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import cgi import cgitb import time import os import sqlite3 import urlparse import subprocess import Cookie import math cgitb.enable() myusername = "" myuserid = -1 def htmlTop(): print("Content-type:text/html\n\n") print("<!DOCTYPE html>") print("<html lang='en'>") print("<head>") print...
29.178571
739
0.645043
7970f902a1eb249f46b16620228f797498c288bd
2,172
py
Python
documentation/test_python/page_plugins/plugins/fancyline.py
Manu343726/m.css
fd8f70ea23f4df6a0e3e985b3a5ff832a4f189ec
[ "MIT" ]
null
null
null
documentation/test_python/page_plugins/plugins/fancyline.py
Manu343726/m.css
fd8f70ea23f4df6a0e3e985b3a5ff832a4f189ec
[ "MIT" ]
null
null
null
documentation/test_python/page_plugins/plugins/fancyline.py
Manu343726/m.css
fd8f70ea23f4df6a0e3e985b3a5ff832a4f189ec
[ "MIT" ]
null
null
null
# # This file is part of m.css. # # Copyright Β© 2017, 2018, 2019 VladimΓ­r VondruΕ‘ <mosra@centrum.cz> # # 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...
37.448276
78
0.735267
7970fb329a1bb2371ad2b8e9cccd316fcfbb2656
3,210
py
Python
dataservice/api/sequencing_experiment/schemas.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
null
null
null
dataservice/api/sequencing_experiment/schemas.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
null
null
null
dataservice/api/sequencing_experiment/schemas.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
null
null
null
from marshmallow_sqlalchemy import field_for from dataservice.api.sequencing_experiment.models import SequencingExperiment from dataservice.api.common.schemas import BaseSchema from dataservice.api.common.custom_fields import DateOrDatetime from dataservice.api.common.validation import (validate_positive_number, ...
51.774194
77
0.609969
7970fb71a142b10d15e07cf36756686df3256207
86
py
Python
python/zp/primjer_06.02.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
python/zp/primjer_06.02.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
python/zp/primjer_06.02.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
print('{ime} je napisao {knjiga}'.format(ime = 'Swaroop', knjiga='Zagrljaj Pitona'))
28.666667
84
0.686047
7970fc352d2ac1dbc133efc311b8f788d2a1e424
4,678
py
Python
ch02/ex0202_randomized_search_cv.py
mamalmaleki/hands_on_ml
086fa254847bda2c3b3b7e27997ee0ecd7152171
[ "MIT" ]
null
null
null
ch02/ex0202_randomized_search_cv.py
mamalmaleki/hands_on_ml
086fa254847bda2c3b3b7e27997ee0ecd7152171
[ "MIT" ]
null
null
null
ch02/ex0202_randomized_search_cv.py
mamalmaleki/hands_on_ml
086fa254847bda2c3b3b7e27997ee0ecd7152171
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt np.random.seed(42) import os import tarfile import urllib.request DOWNLOAD_ROOT = "https://raw.githubusercontent.com/ageron/handson-ml2/master/" HOUSING_PATH = os.path.join("datasets", "housing") HOUSING_URL = DOWNLOAD_ROOT + "datasets/housing/housing.tgz" def fet...
31.395973
93
0.728944
7970fcbd077c8602fd15992ee5cac8724623ea86
8,659
py
Python
temboo/core/Library/Nexmo/Voice/CaptureTextToSpeechPrompt.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Nexmo/Voice/CaptureTextToSpeechPrompt.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Nexmo/Voice/CaptureTextToSpeechPrompt.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # CaptureTextToSpeechPrompt # Sends a Text-to-Speech message to the specifed Number and captures keypad entries from the receiver. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed und...
51.541667
269
0.694999
7970fd258fbd854ea6199588f51c796166f26caa
2,053
py
Python
synaptogram/tests.py
neurodata-dev/boss_web_viz
e7e39bcd5a9959eea2aed71f5f6d418c38e77c00
[ "Apache-2.0" ]
null
null
null
synaptogram/tests.py
neurodata-dev/boss_web_viz
e7e39bcd5a9959eea2aed71f5f6d418c38e77c00
[ "Apache-2.0" ]
null
null
null
synaptogram/tests.py
neurodata-dev/boss_web_viz
e7e39bcd5a9959eea2aed71f5f6d418c38e77c00
[ "Apache-2.0" ]
1
2018-02-17T22:46:52.000Z
2018-02-17T22:46:52.000Z
import configparser from django.test import TestCase, RequestFactory from django.contrib.sessions.middleware import SessionMiddleware from .boss_remote import BossRemote class BossRemoteTest(TestCase): def setUp(self): # Every test needs access to the request factory. self.factory = RequestFact...
33.655738
75
0.678032
7970fd264139a0002d12e0db93712d57d4b788c2
2,173
py
Python
NLP/Text Summarization/textSummarizer.py
kaiju-python/DataScience
89c3efb00cd7e025cb798b0dd097e6fa0a1283c7
[ "MIT" ]
null
null
null
NLP/Text Summarization/textSummarizer.py
kaiju-python/DataScience
89c3efb00cd7e025cb798b0dd097e6fa0a1283c7
[ "MIT" ]
null
null
null
NLP/Text Summarization/textSummarizer.py
kaiju-python/DataScience
89c3efb00cd7e025cb798b0dd097e6fa0a1283c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue October 29 06:58:16 2021 @description: This module summarizes text from from any url @author: Debanjan """ import bs4 as bs import urllib.request import re import nltk import heapq import json from datetime import datetime # nltk.download('stopwords') # nltk.download('punkt')...
29.364865
92
0.657156
7970fd729eed43dc4896db35f577071218ed50f2
656
py
Python
formula/openal.py
FnControlOption/winbrew
0fcf0d46fa22c48c6d92115b17234650dcb9ff0f
[ "MIT" ]
19
2015-03-18T01:11:20.000Z
2021-08-01T18:51:54.000Z
formula/openal.py
FnControlOption/winbrew
0fcf0d46fa22c48c6d92115b17234650dcb9ff0f
[ "MIT" ]
11
2015-12-17T02:13:10.000Z
2017-07-21T14:15:13.000Z
formula/openal.py
FnControlOption/winbrew
0fcf0d46fa22c48c6d92115b17234650dcb9ff0f
[ "MIT" ]
6
2015-05-14T19:50:15.000Z
2020-11-22T08:55:03.000Z
import winbrew class Openal(winbrew.Formula): url = 'https://kcat.strangesoft.net/openal-releases/openal-soft-1.19.1.tar.bz2' homepage = 'http://kcat.strangesoft.net/openal.html' sha1 = '849db47ec3711f0181c4462b2d204c4a3d5937d2' build_deps = ('cmake',) deps = () def build(self): self.c...
28.521739
83
0.623476
7970fdbc0c713cb0d56318f5965c0226634c9461
9,814
py
Python
tests/wallet/test_wallet_store.py
Ecostake-Network/ecostake-blockchain
8ea8bb9743c7caccb2f8c670853d93ee12d00c86
[ "Apache-2.0" ]
2
2022-03-29T23:36:29.000Z
2022-03-30T04:18:42.000Z
tests/wallet/test_wallet_store.py
Ecostake-Network/ecostake-blockchain
8ea8bb9743c7caccb2f8c670853d93ee12d00c86
[ "Apache-2.0" ]
11
2022-03-31T06:30:52.000Z
2022-03-31T17:02:45.000Z
tests/wallet/test_wallet_store.py
Ecostake-Network/ecostake-blockchain
8ea8bb9743c7caccb2f8c670853d93ee12d00c86
[ "Apache-2.0" ]
null
null
null
# TODO: write tests for other stores # import asyncio # from pathlib import Path # from secrets import token_bytes # import aiosqlite # import pytest # from ecostake.util.ints import uint32, uint64, uint128 # from ecostake.wallet.wallet_coin_record import WalletCoinRecord # from ecostake.wallet.util.wallet_types import...
42.484848
115
0.555533
7970ffc38fabc807d658c570608d343aed3e3cb9
1,707
py
Python
USV_V1/sensor/src/test_ws/sensor_dep/pwm_func.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
2
2020-07-16T03:15:10.000Z
2020-09-02T09:06:36.000Z
USV_V1/sensor/src/test_ws/sensor_dep/pwm_func.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
null
null
null
USV_V1/sensor/src/test_ws/sensor_dep/pwm_func.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
1
2021-01-20T12:47:14.000Z
2021-01-20T12:47:14.000Z
# -*- coding: utf-8 -*- import string def pwm_export(pwm_num): pwm_num = str(pwm_num) pwm = '/sys/class/pwm/pwmchip/export' pwm_dir = pwm[:22] + pwm_num + pwm[22:] file_export = open(pwm_dir,'w') file_export.write('0') file_export.close def pwm_unexport(pwm_num): pwm_num = str(pwm_num) pwm = '/sys/class/pwm/...
27.095238
50
0.722906
7970fffe5e79a27a6ca68075fbe443d6c903a8b5
5,220
py
Python
tools/c7n_kube/c7n_kube/query.py
allisonis/cloud-custodian
cd6a51fa54118c292866fbbd8e7acba26e56b868
[ "Apache-2.0" ]
null
null
null
tools/c7n_kube/c7n_kube/query.py
allisonis/cloud-custodian
cd6a51fa54118c292866fbbd8e7acba26e56b868
[ "Apache-2.0" ]
1
2021-04-30T21:13:50.000Z
2021-04-30T21:13:50.000Z
tools/c7n_kube/c7n_kube/query.py
epam/cloud-custodian
8abb137db58b5581f03d26d12166db8a62fc051e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2019 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
31.071429
80
0.659962
79710048fe611243e9bd3a6151601aff68c7663e
3,122
py
Python
app/app/settings.py
sh-nishonov/recipe-app-api
21344ad3a4f9c01a377895a0b0869ddb5ad66d3f
[ "MIT" ]
null
null
null
app/app/settings.py
sh-nishonov/recipe-app-api
21344ad3a4f9c01a377895a0b0869ddb5ad66d3f
[ "MIT" ]
null
null
null
app/app/settings.py
sh-nishonov/recipe-app-api
21344ad3a4f9c01a377895a0b0869ddb5ad66d3f
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2.3. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bui...
25.177419
91
0.695067
7971009159006f4f933c35c809a491c6f7c0c5b5
317
py
Python
Splicing/bin/export_bg_genes.py
asclab/pub-ews-clip
a6722a711c658bf8c6797558e9afe89d1a1b2dab
[ "BSD-3-Clause" ]
null
null
null
Splicing/bin/export_bg_genes.py
asclab/pub-ews-clip
a6722a711c658bf8c6797558e9afe89d1a1b2dab
[ "BSD-3-Clause" ]
null
null
null
Splicing/bin/export_bg_genes.py
asclab/pub-ews-clip
a6722a711c658bf8c6797558e9afe89d1a1b2dab
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys genes = set() for line in sys.stdin: if line[0] == '#': continue cols = line.strip('\n').split('\t') if cols[0] == 'junction': continue if cols[-1]: for gene in cols[-1].split(','): genes.add(gene) for gene in genes: print gene
15.095238
39
0.529968
7971019fb0c272abb1bf735a4877708b783904a1
8,107
py
Python
src/compression/prune.py
cr1m5onk1ng/text_similarity
2123621bf153683b35e9433835237812605bd42f
[ "Apache-2.0" ]
1
2021-07-08T16:14:46.000Z
2021-07-08T16:14:46.000Z
src/compression/prune.py
cr1m5onk1ng/text_similarity
2123621bf153683b35e9433835237812605bd42f
[ "Apache-2.0" ]
null
null
null
src/compression/prune.py
cr1m5onk1ng/text_similarity
2123621bf153683b35e9433835237812605bd42f
[ "Apache-2.0" ]
null
null
null
import transformers from transformers.models.auto.configuration_auto import AutoConfig from transformers import AutoModel, AutoModelForSequenceClassification from transformers import AutoTokenizer from src.dataset.wic_dataset import * from transformers import AutoTokenizer from src.models.modeling import BaseEncoderMod...
42.223958
155
0.634637
797101b42fb727bfbd4c564b7ddaa488558674d9
3,669
py
Python
behance_python/user.py
aravenel/behance_python
55c0437584867a29e2c0a6f2175620354dddfb0c
[ "MIT" ]
21
2015-01-15T19:24:47.000Z
2021-08-02T01:44:18.000Z
behance_python/user.py
MarkoElFuego/behance_python
55c0437584867a29e2c0a6f2175620354dddfb0c
[ "MIT" ]
1
2020-05-18T08:04:35.000Z
2020-05-29T16:53:42.000Z
behance_python/user.py
MarkoElFuego/behance_python
55c0437584867a29e2c0a6f2175620354dddfb0c
[ "MIT" ]
7
2016-02-05T10:39:44.000Z
2021-01-18T13:08:20.000Z
import urllib from behance_python.behance import Behance from behance_python import ENDPOINTS, url_join # TODO: Should get_projects return project objects? How to do this with min overhead? class User(Behance): def __init__(self, user_id, auth_key): Behance.__init__(self, auth_key) self.user_id...
37.824742
87
0.62224