hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
abbbab78ac2efd12cd47b899f708bfccff53c88b
2,823
py
Python
__init__.py
magicaltrevor/myvis
77d0f597095208f2e64544d8cc0d3b912bbd6716
[ "Apache-2.0" ]
null
null
null
__init__.py
magicaltrevor/myvis
77d0f597095208f2e64544d8cc0d3b912bbd6716
[ "Apache-2.0" ]
null
null
null
__init__.py
magicaltrevor/myvis
77d0f597095208f2e64544d8cc0d3b912bbd6716
[ "Apache-2.0" ]
null
null
null
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
42.772727
78
0.69961
1fdabe5e78207ead75184f8f55f254e6a6fc5d18
4,845
py
Python
FINN/test/test_hwgq_sfc_w1a2.py
HyunwooKim2/FINN
fac4ff40aaba1c14aa416738e3d22802649a94f8
[ "BSD-3-Clause" ]
null
null
null
FINN/test/test_hwgq_sfc_w1a2.py
HyunwooKim2/FINN
fac4ff40aaba1c14aa416738e3d22802649a94f8
[ "BSD-3-Clause" ]
null
null
null
FINN/test/test_hwgq_sfc_w1a2.py
HyunwooKim2/FINN
fac4ff40aaba1c14aa416738e3d22802649a94f8
[ "BSD-3-Clause" ]
1
2021-03-18T01:43:29.000Z
2021-03-18T01:43:29.000Z
#!/usr/bin/env python # Copyright (c) 2018, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this lis...
47.970297
107
0.714138
53babcbb8017fd5b00a9c7086eafe5559e67df41
17,163
py
Python
src/ts_analysis/imaging/multivariate.py
tedchengf/ts_analysis
b1ed127b5392d177c51bd136107aa0fec4a1759c
[ "MIT" ]
1
2022-01-11T00:19:26.000Z
2022-01-11T00:19:26.000Z
src/ts_analysis/imaging/multivariate.py
tedchengf/ts_analysis
b1ed127b5392d177c51bd136107aa0fec4a1759c
[ "MIT" ]
null
null
null
src/ts_analysis/imaging/multivariate.py
tedchengf/ts_analysis
b1ed127b5392d177c51bd136107aa0fec4a1759c
[ "MIT" ]
null
null
null
# multivariate.py import numpy as np from numba import njit, jit, prange from scipy import stats from tqdm import tqdm import warnings import matplotlib import matplotlib.pyplot as plt from ts_analysis.dataframes import rdm from ts_analysis.utilities import aux from ts_analysis.utilities import matop from ts_analysis...
45.646277
202
0.710715
961528ca23a51534ae6b0771ae256cb93750af23
1,202
py
Python
kervi/core/utility/settings.py
kervi/kervi-core
3c1e3c8a17a7b4d085d8a28b99180ff2a96b0e23
[ "MIT" ]
null
null
null
kervi/core/utility/settings.py
kervi/kervi-core
3c1e3c8a17a7b4d085d8a28b99180ff2a96b0e23
[ "MIT" ]
null
null
null
kervi/core/utility/settings.py
kervi/kervi-core
3c1e3c8a17a7b4d085d8a28b99180ff2a96b0e23
[ "MIT" ]
null
null
null
#Copyright 2017 Tim Wentlau. #Distributed under the MIT License. See LICENSE in root of project. from kervi.spine import Spine class Settings(object): """ Class that persists settings to the Kervi database. :param group: To avoid name clash with other settings in the Kervi application ...
30.05
100
0.633111
4b78ea1de292f9bb4bd79dbfd2156263d473afb2
2,952
py
Python
Packs/Cryptocurrency/Integrations/Cryptocurrency/Cryptocurrency.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Cryptocurrency/Integrations/Cryptocurrency/Cryptocurrency.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Cryptocurrency/Integrations/Cryptocurrency/Cryptocurrency.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * import urllib3 import traceback from typing import Dict, List # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' BITCOIN = 'bitcoin' INTEGRATION_NAME = 'Cryptocurrency' SCORE = { 'None': 0, ...
30.75
110
0.661247
feee4ca44443f4ce01a11caf299d8eb18f82919e
2,532
py
Python
codeowl/code.py
FlorianLudwig/code-owl
be6518c89fb49ae600ee004504f9485f328e1090
[ "Apache-2.0" ]
6
2017-04-15T22:13:48.000Z
2020-02-04T09:41:02.000Z
codeowl/code.py
FlorianLudwig/code-owl
be6518c89fb49ae600ee004504f9485f328e1090
[ "Apache-2.0" ]
null
null
null
codeowl/code.py
FlorianLudwig/code-owl
be6518c89fb49ae600ee004504f9485f328e1090
[ "Apache-2.0" ]
null
null
null
import pygments.token import pygments.lexers from . import score class Token(object): def __init__(self, pygemnts_token, line_no, line_pos): self.type = pygemnts_token[0] self.value = pygemnts_token[1] self.source = pygemnts_token[1] self.line_no = line_no self.line_pos = ...
30.878049
99
0.598341
7127bcda4cc3b303cb1967c2d719d10f0e01bd27
193
py
Python
src/sage/__init__.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/__init__.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/__init__.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
__all__ = ['all'] # IPython calls this when starting up def load_ipython_extension(*args): import sage.repl.ipython_extension sage.repl.ipython_extension.load_ipython_extension(*args)
27.571429
61
0.782383
2b6ba5e87ab00ba722f0e171e9b5421eddc3ec87
4,324
py
Python
word_embedding/pca.py
junyaogz/pp4nlp
9f403352dcce1874d32ba775a02cbacda0904966
[ "Apache-2.0" ]
null
null
null
word_embedding/pca.py
junyaogz/pp4nlp
9f403352dcce1874d32ba775a02cbacda0904966
[ "Apache-2.0" ]
null
null
null
word_embedding/pca.py
junyaogz/pp4nlp
9f403352dcce1874d32ba775a02cbacda0904966
[ "Apache-2.0" ]
null
null
null
import numpy as np # Linear algebra library import matplotlib.pyplot as plt # library for visualization from sklearn.decomposition import PCA # PCA library import pandas as pd # Data frame library import math # Library for mat...
35.735537
105
0.703978
d0713bae3d6c8ddc76c329d0b60fc133ad409a1f
2,281
py
Python
bootstrap/pentagram/parse/statement.py
pentagram-lang/pentagram
5c4dc2fc516ec2844dc71ddb778ddadec036ce55
[ "MIT" ]
2
2018-07-28T22:41:12.000Z
2018-08-11T02:17:02.000Z
bootstrap/pentagram/parse/statement.py
tacit-lang/tacit
5c4dc2fc516ec2844dc71ddb778ddadec036ce55
[ "MIT" ]
17
2017-12-23T02:15:03.000Z
2019-03-31T01:15:15.000Z
bootstrap/pentagram/parse/statement.py
tacit-lang/tacit
5c4dc2fc516ec2844dc71ddb778ddadec036ce55
[ "MIT" ]
null
null
null
from __future__ import annotations from pentagram.parse.group import Group from pentagram.parse.group import GroupComment from pentagram.parse.group import GroupIdentifier from pentagram.parse.group import GroupNumber from pentagram.parse.group import GroupTerm from pentagram.syntax import SyntaxAssignment from pentag...
31.246575
60
0.649277
1ca78bd231b8dc0df4a97582ac459c7c79bc8cb2
3,856
py
Python
generated/nidcpower/nidcpower/_attributes.py
kurtp-ni/nimi-python
4f0bccce67a69ca9f46a8ab9b07dc26ca0049729
[ "MIT" ]
88
2017-08-03T18:07:27.000Z
2022-01-28T13:55:06.000Z
generated/nidcpower/nidcpower/_attributes.py
kurtp-ni/nimi-python
4f0bccce67a69ca9f46a8ab9b07dc26ca0049729
[ "MIT" ]
1,310
2017-07-11T18:42:44.000Z
2022-03-28T21:03:57.000Z
generated/nidcpower/nidcpower/_attributes.py
kurtp-ni/nimi-python
4f0bccce67a69ca9f46a8ab9b07dc26ca0049729
[ "MIT" ]
70
2017-07-25T14:52:53.000Z
2022-03-31T14:14:23.000Z
# -*- coding: utf-8 -*- # This file was generated import nidcpower._converters as _converters import hightime class Attribute(object): '''Base class for all typed attributes.''' def __init__(self, attribute_id): self._attribute_id = attribute_id class AttributeViInt32(Attribute): def __get__(...
33.241379
125
0.764782
3035f20451c7e5319434eaedd2b6c2251169e86c
1,084
py
Python
global_settings.py
zlin7/deepsz
2fef916108521682082e1797bd7ae26399b325c5
[ "MIT" ]
null
null
null
global_settings.py
zlin7/deepsz
2fef916108521682082e1797bd7ae26399b325c5
[ "MIT" ]
null
null
null
global_settings.py
zlin7/deepsz
2fef916108521682082e1797bd7ae26399b325c5
[ "MIT" ]
null
null
null
import os CUR_DIR = os.path.dirname(os.path.realpath(__file__)) DATA_PATH = 'Z:/deepsz' CNN_MODEL_OUTPUT_DIR = os.path.abspath(os.path.join(CUR_DIR, './CNN/deepsz1')) #'/media/zhen/Research/deepsz_pytorch_2' FULL_DATA_PATH = os.path.join(DATA_PATH, 'maps/reso0.25_small') FULL_DATA_LABEL_PATH = os.path.join(DATA_PAT...
51.619048
151
0.800738
5f3619a90b089608b26fbc022ec11ae223471afb
6,908
py
Python
shared/OverwatchAPI.py
hectorleiva/overwatch-serverless-telegram-bot
36919ee2af6e331f70cf7b1c95a866f1c93023e4
[ "MIT" ]
7
2017-02-28T04:20:37.000Z
2020-09-03T13:08:09.000Z
shared/OverwatchAPI.py
hectorleiva/overwatch-serverless-telegram-bot
36919ee2af6e331f70cf7b1c95a866f1c93023e4
[ "MIT" ]
null
null
null
shared/OverwatchAPI.py
hectorleiva/overwatch-serverless-telegram-bot
36919ee2af6e331f70cf7b1c95a866f1c93023e4
[ "MIT" ]
1
2019-09-27T15:33:57.000Z
2019-09-27T15:33:57.000Z
"""Class contacts that Overwatch API Server to return user information.""" class OverwatchAPI: """Contains all the methods and procedures to contact the Overwatch API.""" def __init__(self, logger, requests, BadgeGenerator): """Instatiate the necessary modules.""" self.logger = logger ...
42.641975
177
0.525622
64bab03a038fdd45be2564a33181cac988ec0440
1,089
py
Python
ironic_inspector/common/i18n.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
ironic_inspector/common/i18n.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
ironic_inspector/common/i18n.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 NEC 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 applicable l...
34.03125
75
0.770432
1ffb6260eb30589aa8b6c077c97c4a5e40952877
5,394
py
Python
tests/user_tests.py
Phantom-42/pywikibot
9bf6568598377ec58215d841b51b52c6d9248348
[ "MIT" ]
3
2020-06-06T21:47:04.000Z
2021-09-08T18:22:59.000Z
tests/user_tests.py
Phantom-42/pywikibot
9bf6568598377ec58215d841b51b52c6d9248348
[ "MIT" ]
null
null
null
tests/user_tests.py
Phantom-42/pywikibot
9bf6568598377ec58215d841b51b52c6d9248348
[ "MIT" ]
1
2018-01-04T14:09:37.000Z
2018-01-04T14:09:37.000Z
# -*- coding: utf-8 -*- """Tests for the User page.""" # # (C) Pywikibot team, 2016-2018 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals import pywikibot from pywikibot.tools import suppress_warnings from pywikibot import User from tests.aspects import T...
41.175573
79
0.64238
29c15c0d19ab60f3305562ed97bf21008777138e
1,570
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/topology_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/topology_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/topology_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
36.511628
81
0.598726
4c99e1cf9e20bd0e3534430b471a73cfdba0cba2
922
py
Python
prob/cointoss.py
ccorbell/gametheory
e1d25ab205634ae6638e3242ca8904e7cbea8bf4
[ "MIT" ]
null
null
null
prob/cointoss.py
ccorbell/gametheory
e1d25ab205634ae6638e3242ca8904e7cbea8bf4
[ "MIT" ]
null
null
null
prob/cointoss.py
ccorbell/gametheory
e1d25ab205634ae6638e3242ca8904e7cbea8bf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 18 23:01:56 2022 @author: Christopher Corbell """ import random class CoinToss: HT = ['H', 'T'] def __init__(self): self.headsP = 0.5 def toss(self): if 0.5 == self.headsP: return random.c...
20.488889
55
0.466377
ec9a30a965ff492b9ecde7d09eab67085558b0db
2,047
py
Python
misc/upload_release.py
victoriacity/taichi
e26d9c24b788539946f8f858aae487e5367e179c
[ "MIT" ]
15
2020-01-29T19:07:19.000Z
2021-05-12T02:53:22.000Z
misc/upload_release.py
rexwangcc/taichi
13fb869cb7d86378c999a9a226d2742cd84cb78a
[ "MIT" ]
null
null
null
misc/upload_release.py
rexwangcc/taichi
13fb869cb7d86378c999a9a226d2742cd84cb78a
[ "MIT" ]
2
2020-01-31T20:10:35.000Z
2021-03-16T07:51:59.000Z
import os import subprocess import sys import requests def upload_taichi_version(): username = os.getenv('METADATA_USERNAME') password = os.getenv('METADATA_PASSWORD') url = os.getenv('METADATA_URL') filename = os.listdir('./dist')[0] filename = filename[:len(filename) - 4] parts = filename.s...
35.912281
79
0.630191
6bde6be7a51427f1be2a82219e9a34c96c314200
6,753
py
Python
google/cloud/aiplatform/datasets/time_series_dataset.py
kthytang/python-aiplatform
e82c1792293396045a1032df015a3700fc38609b
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/datasets/time_series_dataset.py
kthytang/python-aiplatform
e82c1792293396045a1032df015a3700fc38609b
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/datasets/time_series_dataset.py
kthytang/python-aiplatform
e82c1792293396045a1032df015a3700fc38609b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
43.850649
103
0.642381
ad96788ea9a67c1e7198c3965ab994645f9f741c
557
py
Python
pywebdata/services/googlemaps.py
pywebdata/pywebdata
74fb3d5adcdb549008ee04de5ae284066c0db362
[ "MIT" ]
null
null
null
pywebdata/services/googlemaps.py
pywebdata/pywebdata
74fb3d5adcdb549008ee04de5ae284066c0db362
[ "MIT" ]
8
2015-09-07T17:48:15.000Z
2016-01-31T19:56:28.000Z
pywebdata/services/googlemaps.py
pywebdata/pywebdata
74fb3d5adcdb549008ee04de5ae284066c0db362
[ "MIT" ]
null
null
null
from pywebdata.baseservice import BaseService class GoogleElevationAPI(BaseService): name = 'google-elevation-api' def __init__(self): self.add_url('http://maps.googleapis.com/maps/api/elevation/json?locations=$latitude,$longitude') self.add_input('latitude', iotype='float', required=True, mi...
42.846154
105
0.692998
157f2ec4a94e4f0c8a4626fd168ac34efd6a698a
20,645
py
Python
google/cloud/dialogflowcx_v3beta1/services/webhooks/async_client.py
wuyuexin/python-dialogflow-cx
80f36ad67c8bb6f27dc8c2c5271451b8fea48508
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/services/webhooks/async_client.py
wuyuexin/python-dialogflow-cx
80f36ad67c8bb6f27dc8c2c5271451b8fea48508
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/services/webhooks/async_client.py
wuyuexin/python-dialogflow-cx
80f36ad67c8bb6f27dc8c2c5271451b8fea48508
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
40.480392
106
0.619908
3781b076ca8e4b9dddaeb4fb9eedce2b0047e240
5,400
py
Python
AugmentText/augment_translate/translate_web/translate_google.py
liruifeng-01/nlp_xiaojiang
1bbc0209c58c13861157ce6d395f8995102708cd
[ "MIT" ]
3
2021-01-30T14:24:59.000Z
2021-11-30T10:02:00.000Z
AugmentText/augment_translate/translate_web/translate_google.py
liruifeng-01/nlp_xiaojiang
1bbc0209c58c13861157ce6d395f8995102708cd
[ "MIT" ]
null
null
null
AugmentText/augment_translate/translate_web/translate_google.py
liruifeng-01/nlp_xiaojiang
1bbc0209c58c13861157ce6d395f8995102708cd
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @Time :2019/3/21 14:30 # @author :Mo # @function :回译调用谷歌翻译,模拟google token访问 import logging as logger import urllib.parse as parse import execjs import requests from nlp_xiaojiang.conf.augment_constant import language_short_google from nlp_xiaojiang.util...
31.764706
219
0.533333
749110ce1c8a7dce1970ca724dcd0a27d5b206d4
1,473
py
Python
caravel_acorn_prng/test_acorn_prng.py
ZhenleC/acorn_prng
5f7d3e5d0fcc9ffc3845dd7e97f55219ebd112ec
[ "Apache-2.0" ]
1
2022-03-22T13:39:51.000Z
2022-03-22T13:39:51.000Z
caravel_acorn_prng/test_acorn_prng.py
ZhenleC/acorn_prng
5f7d3e5d0fcc9ffc3845dd7e97f55219ebd112ec
[ "Apache-2.0" ]
null
null
null
caravel_acorn_prng/test_acorn_prng.py
ZhenleC/acorn_prng
5f7d3e5d0fcc9ffc3845dd7e97f55219ebd112ec
[ "Apache-2.0" ]
1
2022-03-21T10:56:21.000Z
2022-03-21T10:56:21.000Z
import cocotb from cocotb.clock import Clock from cocotb.triggers import Timer, RisingEdge, FallingEdge, ClockCycles, with_timeout async def until_signal_has_value(clk, sig, value): while True: await RisingEdge(clk) if sig.value == value: return @cocotb.test() async def test_acorn_...
21.661765
85
0.572301
441ea87fa2e538a2cf98dd706bc2d3560bb8d8fb
8,950
py
Python
backend/core/users/userManager.py
konglomerat/roseguarden
781d2ec1c3af3791a0694c17de14bf01a1a20337
[ "MIT" ]
null
null
null
backend/core/users/userManager.py
konglomerat/roseguarden
781d2ec1c3af3791a0694c17de14bf01a1a20337
[ "MIT" ]
50
2021-03-28T03:06:19.000Z
2021-10-18T12:36:16.000Z
backend/core/users/userManager.py
konglomerat/roseguarden
781d2ec1c3af3791a0694c17de14bf01a1a20337
[ "MIT" ]
1
2021-07-30T07:12:46.000Z
2021-07-30T07:12:46.000Z
""" The roseguarden project Copyright (C) 2018-2020 Marcus Drobisch, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pr...
42.619048
113
0.644581
737b534efd34159081204e522f3fa6229beb65ff
3,315
py
Python
rummage/lib/gui/controls/collapsible_pane.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
55
2015-02-15T08:17:55.000Z
2022-03-11T11:55:39.000Z
rummage/lib/gui/controls/collapsible_pane.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
264
2015-01-29T20:27:40.000Z
2022-03-03T04:08:48.000Z
rummage/lib/gui/controls/collapsible_pane.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
12
2017-08-30T22:54:20.000Z
2022-03-21T01:05:50.000Z
"""Custom collapsible pane.""" import wx import wx.lib.agw.pycollapsiblepane as pycollapse import wx.lib.buttons as buttons from .. import data class CollapsiblePane(pycollapse.PyCollapsiblePane): """Custom collapsible pane.""" def __init__( self, parent, id=wx.ID_ANY, label="", pos=wx.DefaultPositio...
26.733871
89
0.61086
e00d7204a793bcd3010f51fa44d01b4bdc4b6647
26,456
py
Python
homeassistant/config_entries.py
pancho-villa/home-assistant
ab17b22239452671f14067571f22aadb9688a3de
[ "Apache-2.0" ]
1
2019-03-21T14:59:31.000Z
2019-03-21T14:59:31.000Z
homeassistant/config_entries.py
pancho-villa/home-assistant
ab17b22239452671f14067571f22aadb9688a3de
[ "Apache-2.0" ]
null
null
null
homeassistant/config_entries.py
pancho-villa/home-assistant
ab17b22239452671f14067571f22aadb9688a3de
[ "Apache-2.0" ]
1
2022-02-20T07:41:14.000Z
2022-02-20T07:41:14.000Z
"""The Config Manager is responsible for managing configuration for components. The Config Manager allows for creating config entries to be consumed by components. Each entry is created via a Config Flow Handler, as defined by each component. During startup, Home Assistant will setup the entries during the normal set...
33.787995
92
0.639741
5064b00a7ad900dde849d387ba62aad633897e0d
2,975
py
Python
homeassistant/components/hlk_sw16/config_flow.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/hlk_sw16/config_flow.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
60
2020-07-06T15:10:30.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/hlk_sw16/config_flow.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Config flow for HLK-SW16.""" import asyncio from hlk_sw16 import create_hlk_sw16_connection import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.core import HomeAssistant from .const import ( CONNECTION_TIMEOUT, DEFAULT_K...
30.670103
78
0.675294
bc29ed30255ded2e021cdce8189262296f72bcdb
1,238
py
Python
tests/core/test_io.py
mpaRD/snn_toolbox
faadbeb2db98ad04ab37707243d67bae28e8110c
[ "MIT" ]
1
2021-05-13T15:39:19.000Z
2021-05-13T15:39:19.000Z
tests/core/test_io.py
mpaRD/snn_toolbox
faadbeb2db98ad04ab37707243d67bae28e8110c
[ "MIT" ]
null
null
null
tests/core/test_io.py
mpaRD/snn_toolbox
faadbeb2db98ad04ab37707243d67bae28e8110c
[ "MIT" ]
1
2020-01-14T21:22:18.000Z
2020-01-14T21:22:18.000Z
# coding=utf-8 import os import numpy as np from snntoolbox.datasets.utils import get_dataset class TestGetDataset: """Test obtaining the dataset from disk in correct format.""" def test_get_dataset_from_npz(self, _config): normset, testset = get_dataset(_config) assert all([normset, testse...
32.578947
76
0.558158
309920c428ebe8d4ef33adc78b4e3ca418b2fba0
2,313
py
Python
src/drivers/escaper.py
iurii-iurii/clickhouse-sqlalchemy
bb3d1f9d1573566e7d0b6a14a6cf09369948cc15
[ "MIT" ]
null
null
null
src/drivers/escaper.py
iurii-iurii/clickhouse-sqlalchemy
bb3d1f9d1573566e7d0b6a14a6cf09369948cc15
[ "MIT" ]
null
null
null
src/drivers/escaper.py
iurii-iurii/clickhouse-sqlalchemy
bb3d1f9d1573566e7d0b6a14a6cf09369948cc15
[ "MIT" ]
null
null
null
from datetime import date, datetime from decimal import Decimal import six class Escaper(object): escape_chars = { "\b": "\\b", "\f": "\\f", "\r": "\\r", "\n": "\\n", "\t": "\\t", "\0": "\\0", "\\": "\\\\", "'": "\\'" } def __init__(self, ...
29.278481
78
0.548206
b29d4b907ad2a9d847a3487d177e58c264f8ac83
1,813
py
Python
riotctrl/tests/utils/application/ctrl.py
benpicco/riotctrl
a3d35354b2977d3f26fb59e65c03c73724c9abe9
[ "MIT" ]
7
2020-07-03T15:38:14.000Z
2022-03-30T10:49:33.000Z
riotctrl/tests/utils/application/ctrl.py
benpicco/riotctrl
a3d35354b2977d3f26fb59e65c03c73724c9abe9
[ "MIT" ]
26
2020-07-07T08:13:46.000Z
2021-12-08T08:48:12.000Z
riotctrl/tests/utils/application/ctrl.py
benpicco/riotctrl
a3d35354b2977d3f26fb59e65c03c73724c9abe9
[ "MIT" ]
7
2020-07-07T07:12:25.000Z
2021-12-07T20:47:19.000Z
#! /usr/bin/env python3 """Wrap an application to behave like a board firmware. + Start a command given as argument + Handle 'reset' the firmware when receiving `SIGUSR1` Ideas for extensions: * resetting or not on reset * See how to implement loosing some of the output on first startup """ import sys import sign...
24.173333
82
0.692223
9c142ec58af59572bd2c6e3a2432fe8bdff6adb0
5,158
py
Python
python_modules/libraries/dagster-aws/dagster_aws_tests/emr_tests/test_pyspark.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
1
2022-02-07T18:07:36.000Z
2022-02-07T18:07:36.000Z
python_modules/libraries/dagster-aws/dagster_aws_tests/emr_tests/test_pyspark.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/emr_tests/test_pyspark.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
null
null
null
import os import pytest from dagster_aws.emr import EmrJobRunner, emr_pyspark_resource from dagster_pyspark import pyspark_resource, pyspark_solid from moto import mock_emr from dagster import ( DagsterInvalidDefinitionError, ModeDefinition, RunConfig, execute_pipeline, pipeline, ) from dagster.se...
33.493506
98
0.567856
1eca6c0466c45c0dec10b43a60e06687592e02f8
5,143
py
Python
redash/query_runner/mssql.py
wings-xue/redash_chi
243df22b5d55f12702cff21b69fa48e478d9ca11
[ "BSD-2-Clause" ]
65
2020-07-17T09:34:42.000Z
2022-03-25T09:33:32.000Z
redash/query_runner/mssql.py
wings-xue/redash_chi
243df22b5d55f12702cff21b69fa48e478d9ca11
[ "BSD-2-Clause" ]
null
null
null
redash/query_runner/mssql.py
wings-xue/redash_chi
243df22b5d55f12702cff21b69fa48e478d9ca11
[ "BSD-2-Clause" ]
29
2020-08-13T16:02:26.000Z
2022-02-17T01:31:05.000Z
import logging import sys import uuid from redash.query_runner import * from redash.utils import json_dumps, json_loads logger = logging.getLogger(__name__) try: import pymssql enabled = True except ImportError: enabled = False # from _mssql.pyx ## DB-API type definitions & http://www.freetds.org/tds.h...
30.431953
103
0.504569
dd315ca2abe75745a2566469ec874121e5f02769
726
py
Python
tests/unit/html/test_player_season_box_scores_table.py
tomkennedy22/basketball_reference_web_scraper
d4c3841769fa77400b479d6b5786d4ca1076326c
[ "MIT" ]
1
2021-01-09T04:34:47.000Z
2021-01-09T04:34:47.000Z
tests/unit/html/test_player_season_box_scores_table.py
tomkennedy22/basketball_reference_web_scraper
d4c3841769fa77400b479d6b5786d4ca1076326c
[ "MIT" ]
null
null
null
tests/unit/html/test_player_season_box_scores_table.py
tomkennedy22/basketball_reference_web_scraper
d4c3841769fa77400b479d6b5786d4ca1076326c
[ "MIT" ]
1
2020-06-14T08:51:55.000Z
2020-06-14T08:51:55.000Z
from unittest import TestCase from unittest.mock import MagicMock from basketball_reference_web_scraper.html import PlayerSeasonBoxScoresTable class TestPlayerSeasonBoxScoresTable(TestCase): def setUp(self): self.html = MagicMock() def test_rows_query_raises_not_implemented_error(self): tabl...
29.04
87
0.720386
0bb58b6c72274efe33b0c67cfc6a3a4ba90b83f5
521
py
Python
docs/astropy_sphinx/setup.py
jacobic/redpipes
8da07f79e5f93441fdf12e3346722cc56d021525
[ "MIT" ]
1
2018-01-06T00:35:00.000Z
2018-01-06T00:35:00.000Z
docs/astropy_sphinx/setup.py
jacobic/redpipes
8da07f79e5f93441fdf12e3346722cc56d021525
[ "MIT" ]
null
null
null
docs/astropy_sphinx/setup.py
jacobic/redpipes
8da07f79e5f93441fdf12e3346722cc56d021525
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from astropy_sphinx_theme import __version__ setup( name="astropy-sphinx-theme", version=__version__, use_2to3=False, description="The sphinx theme for Astropy.", long_description="The documentation theme for the Astropy project and affiliated packages."...
27.421053
96
0.731286
723dfe297914b5a67d0e0b46f43ea0b5cebabd2c
5,624
py
Python
programvaruprojekt/Trainingmaterial_app/file_handler.py
riksantikvarieambetet/Validation-of-object-type-with-machinelearning
8ad6fc37d2cfc276bdd598ad7d3f2888d7664303
[ "Apache-2.0" ]
null
null
null
programvaruprojekt/Trainingmaterial_app/file_handler.py
riksantikvarieambetet/Validation-of-object-type-with-machinelearning
8ad6fc37d2cfc276bdd598ad7d3f2888d7664303
[ "Apache-2.0" ]
null
null
null
programvaruprojekt/Trainingmaterial_app/file_handler.py
riksantikvarieambetet/Validation-of-object-type-with-machinelearning
8ad6fc37d2cfc276bdd598ad7d3f2888d7664303
[ "Apache-2.0" ]
2
2019-06-05T07:53:35.000Z
2019-06-13T14:43:39.000Z
import os import re import csv import time import requests import datetime import urllib.request from PIL import Image from tqdm import tqdm from pathlib import Path from django.template.defaultfilters import slugify """[summary] This handels everything with files Author: Petter Gullin & Daniel Persson...
33.082353
96
0.628912
47f90f2caf6513d0b7fd9a651df659e5cf42bb89
29,737
py
Python
python/ccxt/async/liqui.py
cbp123/ccxt
d2e7255a04bb27baaa7b3700d142ecc9a46281ad
[ "MIT" ]
null
null
null
python/ccxt/async/liqui.py
cbp123/ccxt
d2e7255a04bb27baaa7b3700d142ecc9a46281ad
[ "MIT" ]
null
null
null
python/ccxt/async/liqui.py
cbp123/ccxt
d2e7255a04bb27baaa7b3700d142ecc9a46281ad
[ "MIT" ]
1
2021-07-20T10:37:02.000Z
2021-07-20T10:37:02.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async.base.exchange import Exchange # ----------------------------------------------------------------------------- try: ba...
40.679891
194
0.50422
25da2cb373241b5fae29940a1b1a127ce8921ff8
4,919
py
Python
sdk/python/pulumi_aws/ec2/vpc_endpoint_service.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/vpc_endpoint_service.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/vpc_endpoint_service.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class VpcEndpointService(pulumi.CustomResource): """ Provides a VPC Endpoint Service resou...
45.546296
136
0.67656
609066249d10ee3b9532bf148c76aab7562f06f6
7,653
py
Python
setup.py
FDecaYed/apex
789afd89fe2c5a3e772f557055a9cf0f5e9d1241
[ "BSD-3-Clause" ]
null
null
null
setup.py
FDecaYed/apex
789afd89fe2c5a3e772f557055a9cf0f5e9d1241
[ "BSD-3-Clause" ]
null
null
null
setup.py
FDecaYed/apex
789afd89fe2c5a3e772f557055a9cf0f5e9d1241
[ "BSD-3-Clause" ]
null
null
null
import re import sys import os import shutil import inspect import distutils import distutils.spawn from distutils.command.clean import clean from setuptools import setup, Extension, find_packages from setuptools.command.install import install import subprocess import ctypes.util import torch def find(path, regex...
33.713656
111
0.62028
9f492e72abc7cd283c36800399a83d316feffcd4
1,788
py
Python
wpa_project/student_app/urls.py
s-amundson/wpa_2p1
43deb859123e5ef2eab3652e403c8d2f53d43b77
[ "MIT" ]
1
2022-01-03T02:46:34.000Z
2022-01-03T02:46:34.000Z
wpa_project/student_app/urls.py
s-amundson/wpa_2p1
43deb859123e5ef2eab3652e403c8d2f53d43b77
[ "MIT" ]
31
2021-12-29T17:43:06.000Z
2022-03-25T01:03:17.000Z
wpa_project/student_app/urls.py
s-amundson/wpa_2p1
43deb859123e5ef2eab3652e403c8d2f53d43b77
[ "MIT" ]
null
null
null
from django.urls import path from .views import * app_name = 'registration' urlpatterns = [ path('', IndexView.as_view(), name='index'), path('add_student/<int:student_id>/', AddStudentView.as_view(), name='add_student'), path('add_student/', AddStudentView.as_view(), name='add_student'), ...
66.222222
112
0.676734
d4f99662e958ad17305a76038523214e82f2f10a
8,706
py
Python
qa/pull-tester/rpc-tests.py
pazzaBec/UlordChain
6dad822b688271712f9509ceefa301b42f705ec5
[ "MIT" ]
174
2018-01-16T13:26:52.000Z
2022-02-16T15:12:10.000Z
qa/pull-tester/rpc-tests.py
pazzaBec/UlordChain
6dad822b688271712f9509ceefa301b42f705ec5
[ "MIT" ]
32
2018-01-25T03:42:01.000Z
2020-07-31T17:37:52.000Z
qa/pull-tester/rpc-tests.py
pazzaBec/UlordChain
6dad822b688271712f9509ceefa301b42f705ec5
[ "MIT" ]
55
2018-01-29T06:37:28.000Z
2020-03-20T03:34:30.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will ...
31.543478
163
0.636687
237e62b1d7b9f3e8caf51387d71f2c25dc7118fa
2,397
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class162.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class162.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class162.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.238636
118
0.634543
b12e6c4856a6690b1ed9a1828ae2002e47c8841d
6,670
py
Python
tests/test_generators/test_sqltablegen.py
StroemPhi/linkml
a211fd1430a6d97efddbd637f5109b3c7e075e63
[ "CC0-1.0" ]
null
null
null
tests/test_generators/test_sqltablegen.py
StroemPhi/linkml
a211fd1430a6d97efddbd637f5109b3c7e075e63
[ "CC0-1.0" ]
null
null
null
tests/test_generators/test_sqltablegen.py
StroemPhi/linkml
a211fd1430a6d97efddbd637f5109b3c7e075e63
[ "CC0-1.0" ]
null
null
null
from enum import Enum import os import re import sqlite3 from typing import List import unittest import tempfile from linkml_runtime.dumpers import yaml_dumper from linkml_runtime.linkml_model.meta import SlotDefinition from sqlalchemy.sql.sqltypes import Text, Enum from linkml.utils.schemaloader import SchemaLoader f...
40.424242
132
0.534783
86176b214e7c78af38f34f4872cc6d6f9f6f0381
1,365
py
Python
webopencv/flsk.py
alvinwan/webopencv
599ffb89d0c0c9d4e4686ecd2d89d325a3e70e23
[ "BSD-2-Clause" ]
4
2021-09-15T08:22:31.000Z
2021-09-16T02:26:33.000Z
webopencv/flsk.py
alvinwan/webopencv
599ffb89d0c0c9d4e4686ecd2d89d325a3e70e23
[ "BSD-2-Clause" ]
1
2021-09-15T11:26:54.000Z
2021-09-15T11:26:54.000Z
webopencv/flsk.py
alvinwan/webopencv
599ffb89d0c0c9d4e4686ecd2d89d325a3e70e23
[ "BSD-2-Clause" ]
1
2021-09-17T10:16:54.000Z
2021-09-17T10:16:54.000Z
"""Flask-powered web application backend TODO(alvin): ICE connection state does not reached completed stage """ from flask import Flask, render_template, request, jsonify from .app import on_offer, on_shutdown from .utils import ROOT import atexit import os DEFAULT_TEMPLATE_FOLDER = os.path.join(ROOT, "templates")...
26.25
99
0.647619
0a3b3313eefd0c72407ff7dcdc444d654140ee2b
4,069
py
Python
micawber_bs4_classes/test_utils.py
Gurbert/micawber
1e355cc3cf56cc57bf4d8b51cc8d5511e2eb4e66
[ "MIT" ]
1
2020-07-18T06:46:28.000Z
2020-07-18T06:46:28.000Z
micawber_bs4_classes/test_utils.py
Gurbert/micawber
1e355cc3cf56cc57bf4d8b51cc8d5511e2eb4e66
[ "MIT" ]
null
null
null
micawber_bs4_classes/test_utils.py
Gurbert/micawber
1e355cc3cf56cc57bf4d8b51cc8d5511e2eb4e66
[ "MIT" ]
null
null
null
import unittest try: import simplejson as json except ImportError: import json from micawber_bs4_classes import * from micawber_bs4_classes.parsers import BeautifulSoup, bs_kwargs from micawber_bs4_classes.providers import make_key class TestProvider(Provider): test_data = { # link 'link?...
44.228261
128
0.588105
c1e6a886ce06dee970c944e37aa2ab257884456d
6,583
py
Python
objective_functions/hole_reaching/planar_reaching_objective.py
ottofabian/rl_stochastic_search
0e96cdcb5d7a09e789c94f989192ae437d440861
[ "MIT" ]
null
null
null
objective_functions/hole_reaching/planar_reaching_objective.py
ottofabian/rl_stochastic_search
0e96cdcb5d7a09e789c94f989192ae437d440861
[ "MIT" ]
7
2020-07-03T14:36:46.000Z
2022-03-12T00:38:31.000Z
objective_functions/hole_reaching/planar_reaching_objective.py
ottofabian/rl_stochastic_search
0e96cdcb5d7a09e789c94f989192ae437d440861
[ "MIT" ]
null
null
null
from objective_functions.hole_reaching.mp_lib import ExpDecayPhaseGenerator from objective_functions.hole_reaching.mp_lib import DMPBasisGenerator from objective_functions.hole_reaching.mp_lib import dmps from experiments.robotics import planar_forward_kinematics as pfk import numpy as np import matplotlib.pyplot as pl...
37.833333
126
0.594562
9c79a478e2537573de057c11301890b66c8d7f4e
2,431
py
Python
Toolkits/Discovery/meta/searx/tests/unit/engines/test_mixcloud.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
Toolkits/Discovery/meta/searx/tests/unit/engines/test_mixcloud.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
Toolkits/Discovery/meta/searx/tests/unit/engines/test_mixcloud.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
from collections import defaultdict import mock from searx.engines import mixcloud from searx.testing import SearxTestCase class TestMixcloudEngine(SearxTestCase): def test_request(self): query = 'test_query' dicto = defaultdict(dict) dicto['pageno'] = 0 params = mixcloud.request(...
35.75
98
0.566434
35c90e90b09fb4e4cbd4a15064bcb503448f0f5e
593
py
Python
app/models/users.py
ZanMax/wrs
b62bcb50f305a83b7fe08f83f5e2d9f1c2cf1ec5
[ "MIT" ]
null
null
null
app/models/users.py
ZanMax/wrs
b62bcb50f305a83b7fe08f83f5e2d9f1c2cf1ec5
[ "MIT" ]
null
null
null
app/models/users.py
ZanMax/wrs
b62bcb50f305a83b7fe08f83f5e2d9f1c2cf1ec5
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean from app.db.base_class import Base class Users(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True, index=True, autoincrement=True) name = Column(String(255)) email = Column(String(32), unique=True, index=True, nullable=False) ...
34.882353
74
0.726813
874be2b28735a418bd443c9be127f3fed13a5fd3
461
py
Python
Ex0028.py
r-1c4rd0/pythonExercicios
c78a12239e813f3ade95b05ecd1c83ccfa82bafc
[ "MIT" ]
null
null
null
Ex0028.py
r-1c4rd0/pythonExercicios
c78a12239e813f3ade95b05ecd1c83ccfa82bafc
[ "MIT" ]
null
null
null
Ex0028.py
r-1c4rd0/pythonExercicios
c78a12239e813f3ade95b05ecd1c83ccfa82bafc
[ "MIT" ]
null
null
null
from random import randint computador = randint(0, 5) jogador = 0 print('-=-' * 8) print('Vou pensar em um número tente adivinhar...') print('-=-' * 8) while jogador != computador: jogador = int(input('Em que número eu pensei? \n:')) if jogador == computador: print('PARABÉNS! Você conseguiu me vencer')...
32.928571
80
0.62256
3a0e4c29dd2dd4246a187871ef21b5707346f31c
3,403
py
Python
datmo/cli/main.py
dmh43/datmo
e97aad4e2417a72d8f136f7afd9bfac1bf24d9f9
[ "Apache-2.0" ]
null
null
null
datmo/cli/main.py
dmh43/datmo
e97aad4e2417a72d8f136f7afd9bfac1bf24d9f9
[ "Apache-2.0" ]
null
null
null
datmo/cli/main.py
dmh43/datmo
e97aad4e2417a72d8f136f7afd9bfac1bf24d9f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import sys from datmo.cli.command.base import BaseCommand from datmo.cli.driver.helper import Helper from datmo.core.util.exceptions import CLIArgumentError from datmo.core.util.i18n import get as __ from datmo.core.util.logger import DatmoLogger from datmo.config import Config #from datm...
34.373737
79
0.594475
39fb027d513c79402bacc5735de3dd80dbf4f2e5
22,419
py
Python
contrib/devtools/copyright_header.py
jsb4ch/dash
1e1d8c980bf4cd9cdba7c4c769686c9ebb3bb7d4
[ "MIT" ]
1
2020-01-04T15:37:15.000Z
2020-01-04T15:37:15.000Z
contrib/devtools/copyright_header.py
jsb4ch/dash
1e1d8c980bf4cd9cdba7c4c769686c9ebb3bb7d4
[ "MIT" ]
null
null
null
contrib/devtools/copyright_header.py
jsb4ch/dash
1e1d8c980bf4cd9cdba7c4c769686c9ebb3bb7d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2019 The Dash Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import re import fnmatch import sys import subprocess import dat...
36.572594
92
0.600116
a36f6d2f766e4bb2fff54a1a843496a874256460
6,357
py
Python
plugins/trochoidal.py
linuxnico/bCNC
b7fc6380cff6d8baea6886a46f4f60615e063b2b
[ "MIT", "BSD-3-Clause" ]
null
null
null
plugins/trochoidal.py
linuxnico/bCNC
b7fc6380cff6d8baea6886a46f4f60615e063b2b
[ "MIT", "BSD-3-Clause" ]
null
null
null
plugins/trochoidal.py
linuxnico/bCNC
b7fc6380cff6d8baea6886a46f4f60615e063b2b
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- # Author: @harvie Tomas Mudrunka # Date: 7 july 2018 __author__ = "@harvie Tomas Mudrunka" #__email__ = "" __name__ = _("Trochoidal") __version__ = "0.0.2" import math import os.path import re from CNC import CNC,Block from ToolsPage import Plugin from math import pi, sqrt...
33.109375
138
0.560327
051931bdd920d79b639cd344dbb73660283db68d
738
py
Python
src/websocket/list_users.py
rafaeldarocha/serverless-websocket
f50bdd4a86bef41c4dd5e33f54979caaf3b534dc
[ "Apache-2.0" ]
18
2020-11-30T14:05:41.000Z
2021-08-17T00:52:04.000Z
src/websocket/list_users.py
rafaeldarocha/serverless-websocket
f50bdd4a86bef41c4dd5e33f54979caaf3b534dc
[ "Apache-2.0" ]
1
2020-12-22T21:17:02.000Z
2020-12-22T21:17:02.000Z
src/websocket/list_users.py
rafaeldarocha/serverless-websocket
f50bdd4a86bef41c4dd5e33f54979caaf3b534dc
[ "Apache-2.0" ]
4
2020-12-08T20:43:21.000Z
2022-01-08T11:15:24.000Z
import json import boto3 import os from lib.scan_table import scan def handler(event, context): # Get the connection Id from the user connectionId=event['requestContext'].get('connectionId') # Get the list of users connected connections_list = scan(os.getenv('TABLE_NAME')) # Filter the users connected, rem...
29.52
131
0.720867
3eca2a98d37ce99d0e1a5675945edbfd5b8fa81f
4,146
py
Python
roboticstoolbox/models/list.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
roboticstoolbox/models/list.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
roboticstoolbox/models/list.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
from typing import Type from roboticstoolbox.robot.Robot import Robot from roboticstoolbox.tools import rtb_get_param from roboticstoolbox.robot.ERobot import ERobot2 from ansitable import ANSITable, Column import inspect # import importlib def list(keywords=None, dof=None, type=None, border="thin"): """ Dis...
34.840336
76
0.514713
33d7652f622e576bac098b637b43ff4815e5fbf4
239
py
Python
generate.py
orwell-int/proxy-robots-python
76e23eff0e3b2c55b4b865533a9db7e49e444f20
[ "BSD-3-Clause" ]
null
null
null
generate.py
orwell-int/proxy-robots-python
76e23eff0e3b2c55b4b865533a9db7e49e444f20
[ "BSD-3-Clause" ]
3
2020-08-13T17:46:07.000Z
2020-10-23T18:52:08.000Z
generate.py
orwell-int/proxy-robots-python
76e23eff0e3b2c55b4b865533a9db7e49e444f20
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import importlib.util spec = importlib.util.spec_from_file_location("messages", Path(".") / "messages" / "generate.py") foo = importlib.util.module_from_spec(spec) spec.loader.exec_module(foo) foo.main(Path("."))
29.875
97
0.757322
22432d1639accd93b6ce4201a5b2d31cf5072583
4,875
py
Python
Tools/scripts/pathfix.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
486
2016-05-28T18:51:54.000Z
2022-03-20T17:30:31.000Z
Tools/scripts/pathfix.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
40
2016-05-29T00:24:56.000Z
2020-07-13T11:56:58.000Z
Tools/scripts/pathfix.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
74
2015-05-29T17:18:53.000Z
2022-01-15T14:06:44.000Z
#!/usr/bin/env python3 # Change the #! line occurring in Python scripts. The new interpreter # pathname must be given with a -i option. # # Command line arguments are files or directories to be processed. # Directories are searched recursively for files whose name looks # like a python module. # Symbolic links are al...
29.36747
77
0.595692
24a26d6fd774d8a39eeb5bd4d65eae810847b9bb
466
py
Python
tests/unit/conftest.py
knowsuchagency/composer
b422ed4048b4d421e5100ea1770cbed37c4fb158
[ "MIT" ]
37
2021-05-24T22:34:59.000Z
2022-02-22T04:47:06.000Z
tests/unit/conftest.py
knowsuchagency/composer
b422ed4048b4d421e5100ea1770cbed37c4fb158
[ "MIT" ]
21
2021-05-26T09:14:05.000Z
2021-06-15T08:08:55.000Z
tests/unit/conftest.py
knowsuchagency/composer
b422ed4048b4d421e5100ea1770cbed37c4fb158
[ "MIT" ]
2
2021-06-22T09:51:39.000Z
2022-01-28T20:00:30.000Z
import pytest from examples.hello_orkestra import Item from orkestra import generic_context as _generic_context @pytest.fixture(autouse=True) def disable_powertools(monkeypatch): monkeypatch.setenv("POWERTOOLS_TRACE_DISABLED", "1") monkeypatch.setenv("POWERTOOLS_LOG_DEDUPLICATION_DISABLED", "1") @pytest.f...
21.181818
68
0.787554
34fd17fbd8910f31b920966a33d6a8f75f4d3a62
794
py
Python
chrome/common/extensions/docs/server2/patcher.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-02-03T05:19:48.000Z
2021-11-15T15:07:21.000Z
chrome/common/extensions/docs/server2/patcher.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/patcher.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class Patcher(object): def GetPatchedFiles(self, version=None): ''' Returns patched files as(added_files, deleted_files, modified_files) from the p...
34.521739
76
0.724181
f7f74eef92c28adef66c4f1ec70ea2a5ac127046
20,940
py
Python
src/ADDA/Networks.py
fol21/domain-adaptation-in-deforestation
ae1c37b1634f54230f1d2217c209dabd6780568a
[ "MIT" ]
null
null
null
src/ADDA/Networks.py
fol21/domain-adaptation-in-deforestation
ae1c37b1634f54230f1d2217c209dabd6780568a
[ "MIT" ]
null
null
null
src/ADDA/Networks.py
fol21/domain-adaptation-in-deforestation
ae1c37b1634f54230f1d2217c209dabd6780568a
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf class Networks(): def __init__(self, args): super(Networks, self).__init__() self.args = args # Wittich design def VNET_16L(self, I, is_train, reuse_unet=False, reuse_ada=False, adaption_net=False): def encoder_conf(name, ...
56.747967
200
0.545463
ef54021103f1b88a2ef5913e7def0622a8a1c5e0
13,923
py
Python
model_deprecated.py
OpenSUM/ChNewsLongSum
fed7a24f40f8a8218918e0261ff5d5dd359ac56b
[ "Apache-2.0" ]
null
null
null
model_deprecated.py
OpenSUM/ChNewsLongSum
fed7a24f40f8a8218918e0261ff5d5dd359ac56b
[ "Apache-2.0" ]
null
null
null
model_deprecated.py
OpenSUM/ChNewsLongSum
fed7a24f40f8a8218918e0261ff5d5dd359ac56b
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from data.lcsts_loader import load from utils import load_config, Config from constants import * # config = load_config('./lcsts.yaml') # data = load(config, train=False) # print(data) class Model: def __init__(self, config, data): self.config = config ...
46.878788
166
0.587517
d25af9ef32c107c08ccce5e714121e2f75eb97ed
835
py
Python
export_to_csv/s3upload.py
Sensorica/Sensor-Network
872be3aad2f31666a88d8544cabe0066cae2f9c8
[ "CC0-1.0" ]
4
2016-02-21T22:53:24.000Z
2020-05-23T19:57:49.000Z
export_to_csv/s3upload.py
Sensorica/Sensor-Network
872be3aad2f31666a88d8544cabe0066cae2f9c8
[ "CC0-1.0" ]
1
2016-06-27T17:47:47.000Z
2016-06-27T17:47:47.000Z
export_to_csv/s3upload.py
Sensorica/Sensor-Network
872be3aad2f31666a88d8544cabe0066cae2f9c8
[ "CC0-1.0" ]
5
2016-02-11T17:46:23.000Z
2020-05-23T19:58:06.000Z
import boto.s3 import config_file #This is a file that stores our API keys and will not be pushed to git for obvious reasons conn = boto.connect_s3(aws_access_key_id=config_file.AWS_ACCESS_KEY, aws_secret_access_key=config_file.AWS_SECRET_KEY) def percent_cb(complete,total): print ('.') d...
33.4
109
0.77485
d332de9dab19576772d0ca58ae752d1ce005d2c1
21,984
py
Python
lib/junno/nnet/history.py
LIV4D/JuNNo
7358f8344a7c125088e53aa1de0072c4699a9f07
[ "BSD-3-Clause" ]
null
null
null
lib/junno/nnet/history.py
LIV4D/JuNNo
7358f8344a7c125088e53aa1de0072c4699a9f07
[ "BSD-3-Clause" ]
1
2019-03-04T09:18:54.000Z
2019-03-05T06:15:06.000Z
lib/junno/nnet/history.py
LIV4D/JuNNo
7358f8344a7c125088e53aa1de0072c4699a9f07
[ "BSD-3-Clause" ]
null
null
null
import pandas import scipy.interpolate import numpy as np from ..j_utils.string import str2time, time2str from ..j_utils.path import format_filepath from collections import OrderedDict class History: """ Store dataseries by iteration and epoch. Data are index through timestamp: the number of iteration sin...
43.105882
136
0.580786
d2f2edca4e3c89252c13ba2741590398b222ab03
108
py
Python
doc/samples/my_module_with_tasks.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
1,390
2015-01-01T21:11:47.000Z
2022-03-31T11:35:44.000Z
doc/samples/my_module_with_tasks.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
393
2015-01-05T11:18:29.000Z
2022-03-20T11:46:46.000Z
doc/samples/my_module_with_tasks.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
176
2015-01-07T16:58:56.000Z
2022-03-28T12:12:11.000Z
def task_sample(): return {'actions': ['echo hello from module loader'], 'verbosity': 2,}
18
57
0.574074
19eed1d41a60bb16ea57b215ee9ad07315009da9
1,355
py
Python
quotespage/views/index_view.py
Cornell-CIS-Slack/cs-quotes
a4451ff0703acebb762641cbc236cc0e51e2d2fd
[ "BSD-3-Clause" ]
1
2017-10-04T16:16:22.000Z
2017-10-04T16:16:22.000Z
quotespage/views/index_view.py
Cornell-CIS-Slack/cs-quotes
a4451ff0703acebb762641cbc236cc0e51e2d2fd
[ "BSD-3-Clause" ]
null
null
null
quotespage/views/index_view.py
Cornell-CIS-Slack/cs-quotes
a4451ff0703acebb762641cbc236cc0e51e2d2fd
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render from django.views.decorators.csrf import ensure_csrf_cookie from quotespage.models import Quote from quotespage.forms import SearchForm import datetime import random @ensure_csrf_cookie def index(request, pagenum="0"): """Renders a page of the "home" view, listing quotes in descen...
31.511628
82
0.737269
17501caa1553ef309f0d443a5b7513cc11b50d02
17,040
py
Python
tests/functional/transactions/test_read_consist_statement_delete_undone_01.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/functional/transactions/test_read_consist_statement_delete_undone_01.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/functional/transactions/test_read_consist_statement_delete_undone_01.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: functional.transactions.read_consist_statement_delete_undone_01 # title: READ CONSISTENCY. Changes produced by DELETE statement must be UNDONE when cursor resultset becomes empty after this statement start. Test-01 # decription: # Initial article for reading: ...
43.358779
180
0.52588
c3a08ac545c33348d7ec8f1974b8be6408b64593
25,218
py
Python
tensorforce/models/memory_model.py
petrosgk/tensorforce
dd04f904acac78fd185ea8ee2c3ce6bac8859c1d
[ "Apache-2.0" ]
1
2019-04-06T10:04:00.000Z
2019-04-06T10:04:00.000Z
tensorforce/models/memory_model.py
petrosgk/tensorforce
dd04f904acac78fd185ea8ee2c3ce6bac8859c1d
[ "Apache-2.0" ]
null
null
null
tensorforce/models/memory_model.py
petrosgk/tensorforce
dd04f904acac78fd185ea8ee2c3ce6bac8859c1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 reinforce.io. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.004878
134
0.613015
74b872674163701c0c8f1bf84a2bdc3ae236e341
2,175
py
Python
lxd_image_server/tools/mirror.py
zfuller/lxd-image-server
18e195ad1e77629ec04c3f3bd78a60cb070c70bc
[ "Apache-2.0" ]
40
2019-04-12T12:07:52.000Z
2022-03-31T10:57:02.000Z
lxd_image_server/tools/mirror.py
zfuller/lxd-image-server
18e195ad1e77629ec04c3f3bd78a60cb070c70bc
[ "Apache-2.0" ]
8
2019-07-10T13:12:12.000Z
2021-10-20T23:17:14.000Z
lxd_image_server/tools/mirror.py
zfuller/lxd-image-server
18e195ad1e77629ec04c3f3bd78a60cb070c70bc
[ "Apache-2.0" ]
11
2019-04-18T21:51:58.000Z
2022-03-26T15:57:05.000Z
import re import logging import subprocess from threading import Lock from pathlib import Path import attr from lxd_image_server.tools.config import Config logger = logging.getLogger(__name__) @attr.s class Mirror(): name = attr.ib() user = attr.ib() key_path = attr.ib() url = attr.ib() remote =...
27.1875
78
0.537011
b795ca4916e999bdba52a7081cab52ed1f95c701
704
py
Python
ikats/__init__.py
IKATS/ikats_api
86f965e9ea83fde1fb64f187b294d383d267f77f
[ "Apache-2.0" ]
null
null
null
ikats/__init__.py
IKATS/ikats_api
86f965e9ea83fde1fb64f187b294d383d267f77f
[ "Apache-2.0" ]
null
null
null
ikats/__init__.py
IKATS/ikats_api
86f965e9ea83fde1fb64f187b294d383d267f77f
[ "Apache-2.0" ]
1
2020-01-27T14:44:27.000Z
2020-01-27T14:44:27.000Z
# -*- coding: utf-8 -*- """ Copyright 2019 CS Systèmes d'Information 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...
29.333333
72
0.764205
8c69465c08e8834389f8c2d177d6b2faa955a3a0
527
py
Python
day/010/days_in_month.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
day/010/days_in_month.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
day/010/days_in_month.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
def is_leap(year): if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: return True else: return False else: return True else: return False def days_in_month(year, month): if month > 12 or year < 1: return "Invalid month" month_days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] ...
15.5
64
0.611006
ceca4a0c56a579920356ec9fd749f2f292697e5f
5,928
py
Python
Past_experiments/rE2C2.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
5
2019-07-23T14:49:46.000Z
2022-03-30T13:54:22.000Z
Past_experiments/rE2C2.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
null
null
null
Past_experiments/rE2C2.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import collections import numpy as np from six.moves import range import tensorflow as tf import datetime from tensorflow_federated import python as tff from tensorflow.python.keras.optimizer_v2 import gradient_descent from tensorflow.keras import layer...
35.497006
113
0.680499
0e5c25305b9840c02a659aacce8df686557a103c
4,798
py
Python
source/mutableSources32/warps/resources/filter_bank.py
nodesetc/vb.mi-dev
461ef0031d41818ff94e3d05e3e4b96d2f7f30a0
[ "MIT" ]
47
2020-05-11T09:45:44.000Z
2022-03-17T22:12:53.000Z
source/mutableSources32/warps/resources/filter_bank.py
robtherich/vb.mi-dev
4497b5917ed9680a170d3c9b87ac34e525e65978
[ "MIT" ]
2
2021-04-07T09:14:37.000Z
2022-01-25T09:00:07.000Z
source/mutableSources32/warps/resources/filter_bank.py
robtherich/vb.mi-dev
4497b5917ed9680a170d3c9b87ac34e525e65978
[ "MIT" ]
6
2020-08-06T11:09:18.000Z
2021-12-10T14:37:02.000Z
#!/usr/bin/python2.5 # # Copyright 2014 Emilie Gillet. # # Author: Emilie Gillet (emilie.o.gillet@gmail.com) # # 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 w...
29.617284
79
0.634223
e3823bf5df3bd15e3bb4b7c3c3e7b2d7620b849f
447
py
Python
01 List/03_search_insert_position.py
kmanadkat/leetcoding-09-21
ef353edddc55727ff371ff421d560a0a9298d6b1
[ "MIT" ]
null
null
null
01 List/03_search_insert_position.py
kmanadkat/leetcoding-09-21
ef353edddc55727ff371ff421d560a0a9298d6b1
[ "MIT" ]
null
null
null
01 List/03_search_insert_position.py
kmanadkat/leetcoding-09-21
ef353edddc55727ff371ff421d560a0a9298d6b1
[ "MIT" ]
null
null
null
from typing import List ###################################################################### # Time Complexity: O(N) # Space Complexity: O(1) ###################################################################### def searchInsert(nums: List[int], target: int) -> int: numsLength = len(nums) if numsLength == ...
24.833333
70
0.41387
33102ea542f4e26bf1f2cbc4b52d2d81205d4c9e
49
py
Python
django_u2f/__init__.py
d4rker/django-u2f
949bb965468370219ee55482d11ca439bccd0f2a
[ "BSD-2-Clause" ]
164
2015-01-24T19:50:33.000Z
2022-02-11T14:01:13.000Z
django_u2f/__init__.py
d4rker/django-u2f
949bb965468370219ee55482d11ca439bccd0f2a
[ "BSD-2-Clause" ]
30
2015-01-01T03:47:31.000Z
2022-01-14T20:16:32.000Z
django_u2f/__init__.py
d4rker/django-u2f
949bb965468370219ee55482d11ca439bccd0f2a
[ "BSD-2-Clause" ]
38
2015-07-29T12:36:55.000Z
2022-01-13T22:39:37.000Z
default_app_config = 'django_u2f.apps.U2FConfig'
24.5
48
0.836735
a034bc047341b4b912258cfd0cba6a045bdf3176
818
py
Python
devpi_remote_user/main.py
Polyconseil/devpi-remote_user
d033dfce899be44ac8f59688d6f625c48c700012
[ "MIT" ]
1
2021-01-12T12:51:28.000Z
2021-01-12T12:51:28.000Z
devpi_remote_user/main.py
Polyconseil/devpi-remote_user
d033dfce899be44ac8f59688d6f625c48c700012
[ "MIT" ]
null
null
null
devpi_remote_user/main.py
Polyconseil/devpi-remote_user
d033dfce899be44ac8f59688d6f625c48c700012
[ "MIT" ]
1
2015-10-17T14:25:19.000Z
2015-10-17T14:25:19.000Z
from devpi_server.log import threadlog def devpiserver_get_credentials(request): """Search request for X-Remote-User header. Returns a tuple with (X-Remote-User, '') if credentials could be extracted, or None if no credentials were found. The first plugin to return credentials is used, the order of ...
35.565217
73
0.702934
e90ad8f414d550fb9c26e87d35e91aa9546355a4
3,501
py
Python
azure-iot-hub/samples/iothub_registry_manager_edge_device_sample.py
nabeelmsft/azure-iot-sdk-python
51fa810907373fd2134af49bd03d3977ca7a9a8d
[ "MIT" ]
null
null
null
azure-iot-hub/samples/iothub_registry_manager_edge_device_sample.py
nabeelmsft/azure-iot-sdk-python
51fa810907373fd2134af49bd03d3977ca7a9a8d
[ "MIT" ]
null
null
null
azure-iot-hub/samples/iothub_registry_manager_edge_device_sample.py
nabeelmsft/azure-iot-sdk-python
51fa810907373fd2134af49bd03d3977ca7a9a8d
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import sy...
43.222222
139
0.684947
f75a60f1a2fe0eed85c4f87e6c7ec5642e5cfb8e
378
py
Python
backup/ya_disk.py
frosthamster/Music-manager
c9dbe8c8830960456fa37e1618a36cdf705453d8
[ "Unlicense" ]
null
null
null
backup/ya_disk.py
frosthamster/Music-manager
c9dbe8c8830960456fa37e1618a36cdf705453d8
[ "Unlicense" ]
null
null
null
backup/ya_disk.py
frosthamster/Music-manager
c9dbe8c8830960456fa37e1618a36cdf705453d8
[ "Unlicense" ]
null
null
null
from YaDiskClient.YaDiskClient import YaDisk, YaDiskException from .chunk_partitioner import ChunkPartitioner class YaDiskWithProgress(YaDisk): def upload(self, file, path): resp = self._sendRequest("PUT", path, data=ChunkPartitioner(file, 'Uploading library')) if resp.status_code != 201: ...
37.8
95
0.743386
1ed0b68a49ac79a56b0d844904830641c7d32cf7
111
py
Python
programmers-lecture/2.sorting/2.reverse_sort.py
khh180cm/algorithm
f40990479b6a4ba466073defcd6e8ca771c0b886
[ "MIT" ]
null
null
null
programmers-lecture/2.sorting/2.reverse_sort.py
khh180cm/algorithm
f40990479b6a4ba466073defcd6e8ca771c0b886
[ "MIT" ]
null
null
null
programmers-lecture/2.sorting/2.reverse_sort.py
khh180cm/algorithm
f40990479b6a4ba466073defcd6e8ca771c0b886
[ "MIT" ]
null
null
null
""" 내림차순 정렬 """ L = [3, 8, 2, 7, 6, 10, 9] L2 = sorted(L, reverse=True) print(L2) print(L) L.sort() print(L)
9.25
28
0.531532
e355a68a1204042c08bf0d67205b75fff1baa2f0
1,582
py
Python
examples/look/look/images.py
RioAtHome/falcon
edd9352e630dbbb6272370281fc5fa6d792df057
[ "Apache-2.0" ]
8,217
2015-03-06T19:30:57.000Z
2022-03-30T14:54:36.000Z
examples/look/look/images.py
vestigegroup/falcon
d1a8bbb1465130b87531b0202131e7ac338eb35a
[ "Apache-2.0" ]
1,637
2015-03-06T21:27:17.000Z
2022-03-31T06:27:19.000Z
examples/look/look/images.py
vestigegroup/falcon
d1a8bbb1465130b87531b0202131e7ac338eb35a
[ "Apache-2.0" ]
1,064
2015-03-07T15:32:24.000Z
2022-03-25T17:23:40.000Z
import io import mimetypes import os import uuid import falcon import msgpack class Resource: def __init__(self, image_store): self._image_store = image_store def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ec...
27.275862
79
0.609987
19472c862215ab2bdd19d206cca87451bbab2afe
19,953
py
Python
kivy/network/urlrequest.py
RiiotLabs/kivy
71bd76b2d1eaf93d251f9bc9b2a5fe04306327e1
[ "MIT" ]
2
2021-05-16T09:46:14.000Z
2021-11-17T11:23:15.000Z
kivy/network/urlrequest.py
RiiotLabs/kivy
71bd76b2d1eaf93d251f9bc9b2a5fe04306327e1
[ "MIT" ]
1
2016-11-11T13:45:42.000Z
2016-11-11T13:45:42.000Z
kivy/network/urlrequest.py
RiiotLabs/kivy
71bd76b2d1eaf93d251f9bc9b2a5fe04306327e1
[ "MIT" ]
2
2020-03-28T10:18:00.000Z
2021-02-13T06:34:14.000Z
''' UrlRequest ========== .. versionadded:: 1.0.8 You can use the :class:`UrlRequest` to make asynchronous requests on the web and get the result when the request is completed. The spirit is the same as the XHR object in Javascript. The content is also decoded if the Content-Type is application/json and the result a...
34.943958
79
0.564176
6d7089fdd4c52573d2d02b0d4de69c3e649d169f
11,328
py
Python
diff_gpmp2/datasets/generate_optimal_paths_gpmp2.py
mhmukadam/dgpmp2
b55c10f2a2fcff2cbf0e3291e0fff97fefa86661
[ "BSD-3-Clause" ]
31
2020-08-12T19:07:29.000Z
2022-02-22T10:52:53.000Z
diff_gpmp2/datasets/generate_optimal_paths_gpmp2.py
mhmukadam/dgpmp2
b55c10f2a2fcff2cbf0e3291e0fff97fefa86661
[ "BSD-3-Clause" ]
null
null
null
diff_gpmp2/datasets/generate_optimal_paths_gpmp2.py
mhmukadam/dgpmp2
b55c10f2a2fcff2cbf0e3291e0fff97fefa86661
[ "BSD-3-Clause" ]
7
2020-08-14T14:41:39.000Z
2021-11-03T08:17:09.000Z
#!/usr/bin/env python import os, sys sys.path.insert(0, "..") import matplotlib.pyplot as plt import numpy as np import time import torch import yaml from ompl import base as ob from ompl import geometric as og from diff_gpmp2.env.env_2d import Env2D from diff_gpmp2.robot_models import PointRobot2D from diff_gpmp2.gpmp...
46.809917
215
0.697652
84f7829c0dbf61ab7e381afed3836b9833856264
6,568
py
Python
ironicclient/v1/chassis.py
NaohiroTamura/python-ironicclient
d23c02f64f977acc593e320d4cd5c65d327f19d4
[ "Apache-2.0" ]
null
null
null
ironicclient/v1/chassis.py
NaohiroTamura/python-ironicclient
d23c02f64f977acc593e320d4cd5c65d327f19d4
[ "Apache-2.0" ]
null
null
null
ironicclient/v1/chassis.py
NaohiroTamura/python-ironicclient
d23c02f64f977acc593e320d4cd5c65d327f19d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2013 Red Hat, 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 require...
38.409357
79
0.573843
b855f8c4c57afa45864c5aa6a988b54d94fe906c
30,683
py
Python
test/test_sparse_csr.py
pytorch/pytorch
cbd7bac914f8bb650291c1e1d8d240e01dba45c4
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
test/test_sparse_csr.py
pytorch/pytorch
cbd7bac914f8bb650291c1e1d8d240e01dba45c4
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
test/test_sparse_csr.py
pytorch/pytorch
cbd7bac914f8bb650291c1e1d8d240e01dba45c4
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import torch import warnings import unittest import random import itertools from torch.testing import get_all_complex_dtypes, get_all_fp_dtypes, make_tensor from torch.testing._internal.common_cuda import SM53OrLater, SM80OrLater, TEST_CUSPARSE_GENERIC from torch.testing._internal.common_utils import \ (IS_MACOS, I...
49.171474
120
0.550011
0c985c0bc3b0ed3726f90c51b26a81c90854ed12
4,777
py
Python
Google/benchmarks/minigo/implementations/minigo-research-TF-tpu-v4-128/mask_flags.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
Google/benchmarks/minigo/implementations/minigo-research-TF-tpu-v4-128/mask_flags.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
Google/benchmarks/minigo/implementations/minigo-research-TF-tpu-v4-128/mask_flags.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Lint as: python3 # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
32.944828
101
0.710069
ef847a5fbd1f849e93a1a47816421b2c404cf544
4,788
py
Python
examples/finegraind.py
zju-vipa/KamalEngine
0276eb062595d52472090fbcbcedcd76db8cfd44
[ "Apache-2.0" ]
79
2019-07-04T11:19:31.000Z
2022-03-24T13:32:29.000Z
examples/finegraind.py
zju-vipa/KamalEngine
0276eb062595d52472090fbcbcedcd76db8cfd44
[ "Apache-2.0" ]
4
2019-09-08T13:20:52.000Z
2021-06-15T12:07:37.000Z
examples/finegraind.py
zju-vipa/KamalEngine
0276eb062595d52472090fbcbcedcd76db8cfd44
[ "Apache-2.0" ]
17
2019-07-23T09:48:45.000Z
2022-03-14T03:19:40.000Z
# Copyright 2020 Zhejiang Lab. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
46.485437
120
0.644319
48dc96203fa9c60cec5c273e2297766ffe9f7756
2,780
py
Python
firestore/setup.py
vlasenkoalexey/google-cloud-python
037a7619d9ce135047e0913d3b1daa0f1f8a48b8
[ "Apache-2.0" ]
null
null
null
firestore/setup.py
vlasenkoalexey/google-cloud-python
037a7619d9ce135047e0913d3b1daa0f1f8a48b8
[ "Apache-2.0" ]
3
2019-06-20T05:20:15.000Z
2019-06-27T05:01:16.000Z
firestore/setup.py
HemangChothani/google-cloud-python
df185b9129cf38e2a48927a62e9d2e255cc5f115
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.549451
85
0.684892
2820ff182cf9f798ce835ef12616b6d3b86c2c96
2,272
py
Python
GithubApiDemo/github_utils.py
eric-nord/githubApiDemo
ca9f05d60f099d6a35765f31cfdd1c6ad4618fde
[ "MIT" ]
null
null
null
GithubApiDemo/github_utils.py
eric-nord/githubApiDemo
ca9f05d60f099d6a35765f31cfdd1c6ad4618fde
[ "MIT" ]
null
null
null
GithubApiDemo/github_utils.py
eric-nord/githubApiDemo
ca9f05d60f099d6a35765f31cfdd1c6ad4618fde
[ "MIT" ]
null
null
null
"""GitHub util module. Functions for pulling data from GitHub APIs """ __version__ = "0.0.1" __author__ = "Eric Nord" import utils def get_orgs(): """ Provides list of github organization urls based on authenticated user. """ url = "https://api.github.com/user/orgs" org_urls = [] orgs = utils.get_jso...
26.418605
85
0.667694
979a13cdc20be84ee6e8e8d35412e6cfa80a1b89
3,879
py
Python
event_handler/sources.py
neilton-ciandt/fourkeys
a11b1f76a055de8aa31c3556bd15fc89ce8c61af
[ "Apache-2.0" ]
null
null
null
event_handler/sources.py
neilton-ciandt/fourkeys
a11b1f76a055de8aa31c3556bd15fc89ce8c61af
[ "Apache-2.0" ]
null
null
null
event_handler/sources.py
neilton-ciandt/fourkeys
a11b1f76a055de8aa31c3556bd15fc89ce8c61af
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
27.510638
76
0.669502
ae74fd64c076c93d4599e9c629fb73f4fcfe78fb
512
py
Python
Usefulfunctions/TestDFShift.py
DinhLamPham/PredictingESN
f8e6b8f9c0a2d4c052c6178f4b4fe793055050ff
[ "Apache-2.0" ]
2
2021-04-20T01:11:02.000Z
2021-07-18T05:36:05.000Z
Usefulfunctions/TestDFShift.py
DinhLamPham/PredictingESN
f8e6b8f9c0a2d4c052c6178f4b4fe793055050ff
[ "Apache-2.0" ]
null
null
null
Usefulfunctions/TestDFShift.py
DinhLamPham/PredictingESN
f8e6b8f9c0a2d4c052c6178f4b4fe793055050ff
[ "Apache-2.0" ]
null
null
null
import pandas as pd from pandas import DataFrame, concat actList = ['ac1', 'ac2', 'ac3', 'ac4', 'ac5', 'ac6', 'ac7', 'ac8', 'ac9'] perList = ['per1', 'per2', 'per3', 'per4', 'per5', 'per6', 'per7', 'per8', 'per9'] n_in = 3 # [actList.append("END") for _ in range(n_in)] dfAct = DataFrame(actList) dfX = DataFrame() for...
25.6
82
0.630859
5f577867e368ab91c52fad97ed04fc36d86beb98
4,987
py
Python
run_tests.py
ctw/line_profiler
5994c08bec2e4845a2b74d6c5f2d5c9b526f696f
[ "PSF-2.0", "BSD-3-Clause" ]
1
2016-06-24T16:03:49.000Z
2016-06-24T16:03:49.000Z
run_tests.py
ctw/line_profiler
5994c08bec2e4845a2b74d6c5f2d5c9b526f696f
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
run_tests.py
ctw/line_profiler
5994c08bec2e4845a2b74d6c5f2d5c9b526f696f
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from os.path import dirname, join, abspath import sqlite3 import sys import os import re def is_cibuildwheel(): """Check if run with cibuildwheel.""" return 'CIBUILDWHEEL' in os.environ def temp_rename_kernprof(repo_dir): """ Hacky workaround so kernprof.py doesn't get covered ...
35.621429
105
0.658512
39727e4394b24834fc04e78fe0f36128af54b58c
609
py
Python
samples/advanced_client.py
DarkmatterVale/hurricane
94e9e56fcc6d73f5f76ad1fe9e3e4f248549fe7b
[ "MIT" ]
1
2017-01-13T00:17:09.000Z
2017-01-13T00:17:09.000Z
samples/advanced_client.py
DarkmatterVale/hurricane
94e9e56fcc6d73f5f76ad1fe9e3e4f248549fe7b
[ "MIT" ]
null
null
null
samples/advanced_client.py
DarkmatterVale/hurricane
94e9e56fcc6d73f5f76ad1fe9e3e4f248549fe7b
[ "MIT" ]
null
null
null
import multiprocessing from hurricane import SlaveNode def run_node(): client = SlaveNode(debug=True, master_node='127.0.0.1') client.initialize() client.wait_for_initialize() while True: task_data = client.wait_for_task() print("[*] Task name: " + str(task_data["name"])) clie...
29
76
0.676519
6a1c8b6c1ac42df10365ea42758d89ba0d92fac8
15,153
py
Python
src/bindings/python/tests/test_onnx/test_ops_reduction.py
artkuli/openvino
eb2fb5bf7df36ae55e3251816999b801ce053335
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
src/bindings/python/tests/test_onnx/test_ops_reduction.py
artkuli/openvino
eb2fb5bf7df36ae55e3251816999b801ce053335
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
src/bindings/python/tests/test_onnx/test_ops_reduction.py
tuxedcat/openvino
5939cb1b363ebb56b73c2ad95d8899961a084677
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import onnx import pytest from tests.runtime import get_runtime from tests.test_onnx.utils import ( run_node, import_onnx_model, ) reduce_data = np.array([[[5, 1], [20, 2]], [[30, 1], ...
43.543103
128
0.6765
798fe96e8912464de16f17dcb1bd703407dd9fe1
13,179
py
Python
TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/etree.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
227
2021-01-20T05:34:32.000Z
2022-03-29T12:43:05.000Z
TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/etree.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
55
2020-09-07T02:12:51.000Z
2022-03-23T02:37:42.000Z
TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/etree.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
239
2021-01-28T02:59:53.000Z
2022-03-29T08:02:17.000Z
from __future__ import absolute_import, division, unicode_literals # pylint:disable=protected-access from pip._vendor.six import text_type import re from copy import copy from . import base from .. import _ihatexml from .. import constants from ..constants import namespaces from .._utils import moduleF...
38.311047
100
0.51142
ebad4574d715767f90a51dc09411165819ca2411
2,353
py
Python
BS/BS_034_240221/main.py
Aleksey-Voko/Word_forms_bases
f14173cef830e7a514dfaefba3bbbf0c02a3ac0f
[ "MIT" ]
null
null
null
BS/BS_034_240221/main.py
Aleksey-Voko/Word_forms_bases
f14173cef830e7a514dfaefba3bbbf0c02a3ac0f
[ "MIT" ]
null
null
null
BS/BS_034_240221/main.py
Aleksey-Voko/Word_forms_bases
f14173cef830e7a514dfaefba3bbbf0c02a3ac0f
[ "MIT" ]
null
null
null
from BS.utils import (read_src_bs, get_string_list_from_file, get_socket_word_form, save_list_to_file) def check_unique_strings(): word_forms_bases = read_src_bs('src_dict/БС 23.02.21.txt') bs_title_forms = [x.title_word_form for x in word_forms_bases] bs_title_str_forms = [ ...
29.049383
84
0.607735
7c1709cfc5fe7447657bf3f0551a61105b84fcdf
544
py
Python
scripts/term_processing_utils.py
henrikolsvik/maplegf
f7b801eed42dd24001c64a172128e8089c7aa7f4
[ "MIT" ]
1
2021-05-04T08:21:25.000Z
2021-05-04T08:21:25.000Z
scripts/term_processing_utils.py
henrikolsvik/masteroppgave
f7b801eed42dd24001c64a172128e8089c7aa7f4
[ "MIT" ]
null
null
null
scripts/term_processing_utils.py
henrikolsvik/masteroppgave
f7b801eed42dd24001c64a172128e8089c7aa7f4
[ "MIT" ]
null
null
null
def find_sequences_matching_metadata_and_write_matching_metadata(sequence_data, metadata, metadata_out_filename): sequences = [] metadata_out = open(metadata_out_filename, "a+") for metadata_item in metadata: for sequence in sequence_data: if metadata_item[0] in sequence[0] and sequenc...
38.857143
113
0.683824
e0c1f033cc48af511ba052be812ffadff7fb46ef
679
py
Python
logs/views.py
henrique-c-ladeira/logerror
374591ab5b93b72a4cceead9a67d3052299eb826
[ "MIT" ]
null
null
null
logs/views.py
henrique-c-ladeira/logerror
374591ab5b93b72a4cceead9a67d3052299eb826
[ "MIT" ]
null
null
null
logs/views.py
henrique-c-ladeira/logerror
374591ab5b93b72a4cceead9a67d3052299eb826
[ "MIT" ]
null
null
null
from django.shortcuts import render from logs.models import ErrorLog from .helpers import internalError, badRequest, getRequestBody, methodNotAllowed, ok from django.views.decorators.csrf import csrf_exempt from django.core.exceptions import ValidationError # Create your views here. @csrf_exempt def log(request): ...
29.521739
84
0.721649
448e083b8084d7b08cdd71b4a563471d5d07e3fa
14,209
py
Python
old_old_autodir/conf.py
avcopan/filesystem
e52341a2b77b5e79b0e2cee73f48735d00fd6209
[ "Apache-2.0" ]
null
null
null
old_old_autodir/conf.py
avcopan/filesystem
e52341a2b77b5e79b0e2cee73f48735d00fd6209
[ "Apache-2.0" ]
null
null
null
old_old_autodir/conf.py
avcopan/filesystem
e52341a2b77b5e79b0e2cee73f48735d00fd6209
[ "Apache-2.0" ]
null
null
null
""" conformer filesystem """ import os import numbers import functools import numpy import autofile import autoinf from autodir.id_ import is_identifier as _is_identifier from autodir.id_ import directory_identifiers_at as _directory_identifiers_at from autodir import par from autodir import util from autodir.run impor...
26.07156
77
0.720952
b47153b32f2b74562db572ab7dcc7da66ae727c7
416
py
Python
hw6/hasker/questions/urls.py
mcherdakov/otus-python-professional
405101c6492c0e8343783d42be4a0070e5fa9e54
[ "MIT" ]
null
null
null
hw6/hasker/questions/urls.py
mcherdakov/otus-python-professional
405101c6492c0e8343783d42be4a0070e5fa9e54
[ "MIT" ]
null
null
null
hw6/hasker/questions/urls.py
mcherdakov/otus-python-professional
405101c6492c0e8343783d42be4a0070e5fa9e54
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index_view, name='index'), path('create/', views.create_question_view, name='create'), path('<int:pk>/', views.question_detail_view, name='question'), path('vote/', views.vote_view, name='vote'), path('vote_best/', vi...
29.714286
67
0.673077
968e06cd3f6be617689a9aef35957f8d70be89a4
1,703
py
Python
scripts/configure.py
markosamuli/macos-machine
5ec7c7e892abff30c788bbf0b937489ca7c41d1c
[ "MIT" ]
11
2017-10-30T10:43:55.000Z
2021-08-23T01:48:42.000Z
scripts/configure.py
markosamuli/macos-machine
5ec7c7e892abff30c788bbf0b937489ca7c41d1c
[ "MIT" ]
5
2017-10-15T21:35:10.000Z
2020-09-06T00:06:49.000Z
scripts/configure.py
markosamuli/macos-machine
5ec7c7e892abff30c788bbf0b937489ca7c41d1c
[ "MIT" ]
3
2017-10-12T21:27:37.000Z
2019-12-21T14:59:19.000Z
#!/usr/bin/env python3 """Configure local settings""" import sys from pathlib import Path # Add project root to to sys.path FILE = Path(__file__).resolve() SCRIPTS_DIR, PROJECT_ROOT = FILE.parent, FILE.parents[1] sys.path.append(str(PROJECT_ROOT)) # Remove the current scripts/ directory from sys.path try: sys.pat...
26.2
56
0.657076
8c36ac5904488abdc029e487c748f5ff9b63955e
1,190
py
Python
google/ads/googleads/v8/enums/types/keyword_plan_keyword_annotation.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
google/ads/googleads/v8/enums/types/keyword_plan_keyword_annotation.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
google/ads/googleads/v8/enums/types/keyword_plan_keyword_annotation.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.512821
74
0.72437
4d44d251261b6af989872ec4a61627a805a5eb73
15,168
py
Python
djangobb_forum/migrations/0001_initial.py
tuffnatty/DjangoBB
423607675e9501f6ff5579d86c30540e377c4742
[ "BSD-3-Clause" ]
121
2016-02-16T09:05:15.000Z
2022-03-30T21:17:15.000Z
djangobb_forum/migrations/0001_initial.py
tuffnatty/DjangoBB
423607675e9501f6ff5579d86c30540e377c4742
[ "BSD-3-Clause" ]
12
2015-05-09T09:27:05.000Z
2016-02-05T14:44:33.000Z
djangobb_forum/migrations/0001_initial.py
tuffnatty/DjangoBB
423607675e9501f6ff5579d86c30540e377c4742
[ "BSD-3-Clause" ]
76
2016-02-11T16:35:52.000Z
2022-01-25T13:26:06.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from djangobb_forum.models import MARKUP_CHOICES, THEME_CHOICES, TZ_CHOICES import djangobb_forum.fields import django.utils.timezone from django.conf import settings from djangobb_forum import settings as forum_se...
58.338462
268
0.599156
5c2d7806059a80c8c53efe1b804c30527607d1a1
385
py
Python
dockerenv/utils.py
subdir/devenv
fcc4796068032e6fe6b3d744763d3ea58cbf3a02
[ "MIT" ]
null
null
null
dockerenv/utils.py
subdir/devenv
fcc4796068032e6fe6b3d744763d3ea58cbf3a02
[ "MIT" ]
null
null
null
dockerenv/utils.py
subdir/devenv
fcc4796068032e6fe6b3d744763d3ea58cbf3a02
[ "MIT" ]
null
null
null
import tempfile import shutil import os.path from contextlib import contextmanager def resource(fname): return os.path.abspath(os.path.join(os.path.dirname(__file__), '..', fname)) @contextmanager def make_tmpdir(base_dir=None): dirpath = tempfile.mkdtemp(dir=base_dir) os.chmod(dirpath, 0755) try: ...
20.263158
80
0.714286
f4a4897e840ae100231878749d692b64a6af4420
1,011
py
Python
util/Generator.py
smartsnake/PasswordGenerator
985f05b81271d7a18c0f99fc77870754c48102d5
[ "MIT" ]
null
null
null
util/Generator.py
smartsnake/PasswordGenerator
985f05b81271d7a18c0f99fc77870754c48102d5
[ "MIT" ]
null
null
null
util/Generator.py
smartsnake/PasswordGenerator
985f05b81271d7a18c0f99fc77870754c48102d5
[ "MIT" ]
null
null
null
import random class Generator: def __init__(self): #No space char self.all_charactors = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n'...
40.44
162
0.368942