hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e834e1acf640f49ea34e56990277084cc9bfb4c4
3,610
py
Python
oscar/lib/python2.7/site-packages/sqlparse/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/sqlparse/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/sqlparse/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause import itertools import re from collections import deque from contextlib import contextmanager...
29.349593
80
0.613019
e83568b50dfb2cb10df68952a3ce6eb46acb3a82
26,131
py
Python
psutil/_common.py
ilius/psutil
abbf5e42b396e2d6e132364a15b66d94f28dc62f
[ "BSD-3-Clause" ]
1
2021-06-10T10:20:38.000Z
2021-06-10T10:20:38.000Z
psutil/_common.py
ilius/psutil
abbf5e42b396e2d6e132364a15b66d94f28dc62f
[ "BSD-3-Clause" ]
null
null
null
psutil/_common.py
ilius/psutil
abbf5e42b396e2d6e132364a15b66d94f28dc62f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Common objects shared by __init__.py and _ps*.py modules.""" # Note: this module is imported by setup.py so it should not import # psutil or third-part...
30.9609
79
0.586621
e835cc1b692a2a4e3c277611940ea2bdbb525ecf
5,116
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/extensions_v1beta1_ingress_rule.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/extensions_v1beta1_ingress_rule.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/extensions_v1beta1_ingress_rule.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Exten...
36.283688
676
0.627052
e835cd44d2d8df9302ca41ace05a16ee6cc7dae3
817
py
Python
run.py
MaastrichtU-BISS/v6-graphstructure-rdf-py
102645ed88e32ab89d6966a0b1d5e14471fc55ca
[ "MIT" ]
null
null
null
run.py
MaastrichtU-BISS/v6-graphstructure-rdf-py
102645ed88e32ab89d6966a0b1d5e14471fc55ca
[ "MIT" ]
null
null
null
run.py
MaastrichtU-BISS/v6-graphstructure-rdf-py
102645ed88e32ab89d6966a0b1d5e14471fc55ca
[ "MIT" ]
null
null
null
from vantage6.client import Client from pathlib import Path import time print("Attempt login to Vantage6 API") client = Client("http://localhost", 5000, "/api") client.authenticate("johan", "1234") client.setup_encryption(None) input_ = { "master": "true", "method":"master", "args": [], "kwargs": {...
22.081081
61
0.658507
e835fe30d757d97dec3f8cb0b91ef5103bb9e2b9
34,301
py
Python
gfootball/examples/policy.py
zixianma/football
fc7b69b664cce78debcda5655fa92e36fae4e014
[ "Apache-2.0" ]
null
null
null
gfootball/examples/policy.py
zixianma/football
fc7b69b664cce78debcda5655fa92e36fae4e014
[ "Apache-2.0" ]
null
null
null
gfootball/examples/policy.py
zixianma/football
fc7b69b664cce78debcda5655fa92e36fae4e014
[ "Apache-2.0" ]
null
null
null
""" PyTorch policy class used for SAC. """ # from turtle import back from xml.dom import NotSupportedErr import gym from gym.spaces import Box, Discrete import logging import tree # pip install dm_tree from typing import Dict, List, Optional, Tuple, Type, Union from policy_template import build_policy_class from mode...
43.474018
150
0.657969
e83607911f21e5e99658f396e23e217963414257
3,636
py
Python
emoji_test.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
1
2022-01-13T01:47:45.000Z
2022-01-13T01:47:45.000Z
emoji_test.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
2
2022-01-13T03:54:39.000Z
2022-03-12T01:00:20.000Z
emoji_test.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
1
2022-03-25T20:01:56.000Z
2022-03-25T20:01:56.000Z
import emoji import itertools from itertools import chain import os import pytest # Emojipedia shows (4.0, 628), seemingly due to 0x1F46F (people w/bunny ears) # and 0x1F93C (people wrestling) having gender and type modifiers. @pytest.mark.parametrize( "level, expected_delta", [ (1.0, 1264), (2.0, 343), ...
28.40625
88
0.662266
e8361bddb0177d30d1355f101a1f74ac8e937319
9,785
py
Python
tests/utils.py
MojixCoder/authx
0bb6e70dd4e3c64eaa4e994d761ceb0e3a4f85c2
[ "MIT" ]
null
null
null
tests/utils.py
MojixCoder/authx
0bb6e70dd4e3c64eaa4e994d761ceb0e3a4f85c2
[ "MIT" ]
null
null
null
tests/utils.py
MojixCoder/authx
0bb6e70dd4e3c64eaa4e994d761ceb0e3a4f85c2
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import Iterable, Optional, Tuple, Union import jwt with open("tests/key/private_key", "rb") as f: private_key = f.read() with open("tests/key/public_key", "rb") as f: public_key = f.read() ACCESS_COOKIE_NAME = "access" REFRESH_COOKIE_NAME = "refresh" cl...
28.198847
93
0.537864
e8364fe64b21b97722357f43a6fe9b3b36240548
469
py
Python
fib.py
GoaPhuDen/algorithms-in-python
ccb8657eab0068b4b789dd4c363411a0df878900
[ "MIT" ]
100
2015-07-02T21:47:36.000Z
2022-03-19T21:18:11.000Z
fib.py
alpaix/algorithms-in-python
ccb8657eab0068b4b789dd4c363411a0df878900
[ "MIT" ]
null
null
null
fib.py
alpaix/algorithms-in-python
ccb8657eab0068b4b789dd4c363411a0df878900
[ "MIT" ]
41
2016-01-25T17:51:37.000Z
2021-03-01T08:57:29.000Z
""" Fibonacci sequence. """ def fib(n): if n < 2: return 1 else: return fib(n-1) + fib(n-2) def fib_iter(n): n_minus_1 = 1 n_minus_2 = 0 current = 1 for i in range(n): current = n_minus_1 + n_minus_2 n_minus_2 = n_minus_1 n_minus_1 = current retur...
16.75
43
0.560768
e83653cff7728313a9d5a7bec09e3610fea650ad
4,489
py
Python
exercises/city_temperature_prediction.py
snatchysquid/IML.HUJI
4742dd4a3526577e3c297455440cafd4fb3497e9
[ "MIT" ]
null
null
null
exercises/city_temperature_prediction.py
snatchysquid/IML.HUJI
4742dd4a3526577e3c297455440cafd4fb3497e9
[ "MIT" ]
null
null
null
exercises/city_temperature_prediction.py
snatchysquid/IML.HUJI
4742dd4a3526577e3c297455440cafd4fb3497e9
[ "MIT" ]
null
null
null
import IMLearn.learners.regressors.linear_regression from IMLearn.learners.regressors import PolynomialFitting from IMLearn.utils import split_train_test import numpy as np import pandas as pd import plotly.express as px import plotly.io as pio pio.templates.default = "simple_white" def load_data(filename: str) -> p...
37.722689
128
0.664736
e8369ff7619a3ab99c3d47413416646f8e241957
1,967
py
Python
test.py
tymrail/IRtrec
2a638c7a2bbca24fe2f10eef28935539a488f24f
[ "MIT" ]
1
2018-12-30T10:14:44.000Z
2018-12-30T10:14:44.000Z
test.py
tymrail/certRI
2a638c7a2bbca24fe2f10eef28935539a488f24f
[ "MIT" ]
null
null
null
test.py
tymrail/certRI
2a638c7a2bbca24fe2f10eef28935539a488f24f
[ "MIT" ]
null
null
null
import json import os import pickle import pprint import sys import xmltodict from elasticsearch import Elasticsearch from elasticsearch_dsl import Search import DataProcessing import Relevance import Search from Config import Conf class Test(object): def __init__(self): self.conf = Conf() self....
28.1
82
0.569903
e836a457ec1b8a76c504ddb74065bf8cb6c37c8e
21,307
py
Python
src/confidentialledger/azext_confidentialledger/vendored_sdks/confidentialledger/models/_models_py3.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/confidentialledger/azext_confidentialledger/vendored_sdks/confidentialledger/models/_models_py3.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/confidentialledger/azext_confidentialledger/vendored_sdks/confidentialledger/models/_models_py3.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.991554
165
0.64392
e836d0827991651f3f436adc5429f21cf5fb6fc8
1,830
py
Python
dtoolkit/transformer/numpy.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-10-09T04:50:58.000Z
2021-10-09T04:50:58.000Z
dtoolkit/transformer/numpy.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
427
2021-06-04T02:40:22.000Z
2022-03-30T12:55:52.000Z
dtoolkit/transformer/numpy.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-07-09T09:56:44.000Z
2021-07-09T09:56:44.000Z
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np import pandas as pd from dtoolkit.transformer.base import NumpyTF if TYPE_CHECKING: from dtoolkit._typing import SeriesOrFrame class RavelTF(NumpyTF): """ A transformer could return a contiguous flattened array. ...
23.766234
76
0.603279
e8370868adbf56878d82e215c6a2500177250c5b
3,571
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/az-Latn.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/az-Latn.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/az-Latn.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "az-Latn", "date_order": "DMY", "january": [ "yanvar", "yan" ], "february": [ "fevral", "fev" ], "march": [ "mart", "mar" ], "april": [ "aprel", "apr" ], "may": [ ...
16.532407
35
0.258751
e83708911136a52f663ec1f248461b3fa233ce13
4,084
py
Python
BackTranslation/translation_Baidu.py
hhhwwwuuu/BackTranslation
d421867bf7a52ae278c2bfc2e7f1d33cd9e84b67
[ "MIT" ]
15
2020-11-11T07:46:16.000Z
2022-03-22T05:53:48.000Z
BackTranslation/translation_Baidu.py
hhhwwwuuu/BackTranslation
d421867bf7a52ae278c2bfc2e7f1d33cd9e84b67
[ "MIT" ]
5
2021-01-05T18:40:17.000Z
2021-05-07T06:25:08.000Z
BackTranslation/translation_Baidu.py
hhhwwwuuu/BackTranslation
d421867bf7a52ae278c2bfc2e7f1d33cd9e84b67
[ "MIT" ]
null
null
null
import http.client import hashlib import urllib import random import json import nltk from nltk.tokenize import sent_tokenize from BackTranslation.translated import Translated try: nltk.data.find('tokenizers/punkt') except LookupError: nltk.download('punkt') class BackTranslation_Baidu(object): def __i...
35.824561
117
0.590597
e8370f188837832619742c4830ab3c1dcba20ceb
2,897
py
Python
tests/test_pop.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
4
2016-12-28T23:28:02.000Z
2022-03-15T02:46:10.000Z
tests/test_pop.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
17
2017-02-24T09:16:14.000Z
2019-04-08T08:37:17.000Z
tests/test_pop.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
2
2017-01-03T00:55:59.000Z
2019-03-28T15:42:12.000Z
#!/usr/bin/env python # vim: fileencoding=utf-8 et sw=4 ts=4 tw=80: # python-quilt - A Python implementation of the quilt patch system # # Copyright (C) 2017 Björn Ricks <bjoern.ricks@gmail.com> # # See LICENSE comming with the source of python-quilt for details. import os.path import six from helpers import QuiltTe...
28.97
67
0.604073
e83717c151fb1fd1f71a90f1b33dae3ace85d7b0
471
bzl
Python
third_party/io_argonaut.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/io_argonaut.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/io_argonaut.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "io_argonaut_argonaut_2_12", artifact = "io.argonaut:argonaut_2.12:6.2.5", artifact_sha256 = "a89474477cb3abd6473e48c4e7af3722743993a2c203272499c6e2cc79c012a3", srcjar_sha25...
36.230769
93
0.704883
e837363d3a718bb39d686ac3db85bc6a3fa47551
18,975
py
Python
Tests/test_spl06_007.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
4
2020-07-29T09:18:16.000Z
2021-05-19T22:31:23.000Z
Tests/test_spl06_007.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
44
2020-07-29T09:12:07.000Z
2021-07-04T01:50:57.000Z
Tests/test_spl06_007.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
4
2020-07-31T20:02:47.000Z
2021-05-14T08:48:38.000Z
import unittest import math import warnings from spl06_007 import (PressureSensor, Communicator, Calibrator, SensorConstants) from i2c_interface import I2CInterface from tca9548a import I2CMux from rpi_check import is_on_raspberry_pi from tetra_const...
48.159898
79
0.55415
e8374aaa696e94fcb166e2ffe01cef62cbffe582
11,061
py
Python
code_python/2-PeopleCounter/bgsubtraction_main.py
khanfarhan10/Computer-Vision-2
9ed58481e48d95f43464fb34d4da74ee0184bd14
[ "MIT" ]
1
2022-01-05T23:11:51.000Z
2022-01-05T23:11:51.000Z
code_python/2-PeopleCounter/bgsubtraction_main.py
khanfarhan10/Computer-Vision-2
9ed58481e48d95f43464fb34d4da74ee0184bd14
[ "MIT" ]
null
null
null
code_python/2-PeopleCounter/bgsubtraction_main.py
khanfarhan10/Computer-Vision-2
9ed58481e48d95f43464fb34d4da74ee0184bd14
[ "MIT" ]
2
2021-08-14T13:03:12.000Z
2021-10-12T08:48:18.000Z
# https://www.pyimagesearch.com/2015/05/25/basic-motion-detection-and-tracking-with-python-and-opencv/ # region Imports # ------------------------------------------------------------------------------ # Imports # -------------------------------------------------------------------------...
33.722561
102
0.580418
e8376106a09250397a18ceffbc1864b9f9a3f74c
3,699
py
Python
office365/graph/directory/group.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/graph/directory/group.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/graph/directory/group.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
import json from office365.graph.directory.directoryObject import DirectoryObject from office365.graph.directory.directoryObjectCollection import DirectoryObjectCollection from office365.graph.onedrive.driveCollection import DriveCollection from office365.graph.onedrive.siteCollection import SiteCollection from office...
39.351064
119
0.671263
e837e46001b25051f150d3970e34a8cf630cf187
65,652
py
Python
moving/venv/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
27
2019-10-28T05:03:18.000Z
2021-06-09T00:16:22.000Z
moving/venv/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
8
2020-06-06T01:02:06.000Z
2022-03-12T00:24:13.000Z
moving/venv/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
6
2019-10-28T05:03:24.000Z
2020-11-25T02:54:58.000Z
# orm/persistence.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """private module containing functions used to emit INSERT, UPDATE and DELETE sta...
32.388752
79
0.549153
e837e84dab71da332424ea06c0a8df4f6f9412ba
390
py
Python
office365/sharepoint/web_creation_information.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/sharepoint/web_creation_information.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/sharepoint/web_creation_information.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
from office365.runtime.client_value_object import ClientValueObject class WebCreationInformation(ClientValueObject): """Represents metadata about site creation.""" def __init__(self): super(WebCreationInformation, self).__init__() self.Title = None self.Url = None @property d...
26
67
0.717949
e83819045942ced769f76a00d9a4bb0f8c974a78
865
py
Python
users/urls.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
users/urls.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
26
2021-02-08T07:57:42.000Z
2022-03-01T02:07:58.000Z
users/urls.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
from django.urls import path, reverse_lazy from django.contrib.auth import views as auth_views from allauth.account import views as allauth_views from . import views #: users app_name = "users" urlpatterns = [ # application index directs to profile view for now. path("", views.profile, name="index"), pat...
27.03125
80
0.70289
e83842f234402dcd108e90d64118c6ce92bee321
5,407
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_community_galleries_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_community_galleries_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_community_galleries_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.350746
165
0.692806
e8386111baf7cb71746a978637dabc9a0155d8cd
12,173
py
Python
assignment2/cs231n/solver.py
lalithnag/cs231n
ed540c4ed06a6ee01966314e4106b8c44f58546b
[ "MIT" ]
null
null
null
assignment2/cs231n/solver.py
lalithnag/cs231n
ed540c4ed06a6ee01966314e4106b8c44f58546b
[ "MIT" ]
null
null
null
assignment2/cs231n/solver.py
lalithnag/cs231n
ed540c4ed06a6ee01966314e4106b8c44f58546b
[ "MIT" ]
null
null
null
from __future__ import print_function, division from future import standard_library standard_library.install_aliases() from builtins import range from builtins import object import os import pickle as pickle import numpy as np from cs231n import optim class Solver(object): """ A Solver encapsulates all the ...
39.651466
86
0.615789
e838913a6ed55ef4e20e58b18a354e84fa81dd44
32,887
py
Python
Marcov Extended + Simple ChatBot/MarcovModel.py
nicole-binder/CS322-NLP
6ad0a78fe1cb11697484a822ca6975aa9af5f070
[ "MIT" ]
null
null
null
Marcov Extended + Simple ChatBot/MarcovModel.py
nicole-binder/CS322-NLP
6ad0a78fe1cb11697484a822ca6975aa9af5f070
[ "MIT" ]
null
null
null
Marcov Extended + Simple ChatBot/MarcovModel.py
nicole-binder/CS322-NLP
6ad0a78fe1cb11697484a822ca6975aa9af5f070
[ "MIT" ]
null
null
null
import nltk, re, pprint import random from nltk import word_tokenize, regexp_tokenize import statistics import spacy import sys class MarcovModel: def __init__(self, corpus_filename, level, order, pos=bool(False), hybrid=bool(False)): ''' Creates a MarcovModel object. Args: corpus_filename: ...
39.432854
271
0.657433
e83897d61b9a0388ec71f372f03f2bbad6f7d98e
1,321
py
Python
data_preprocessing/MaSS_proc/mass_proc.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
5
2021-10-11T13:44:05.000Z
2022-02-22T12:55:25.000Z
data_preprocessing/MaSS_proc/mass_proc.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
null
null
null
data_preprocessing/MaSS_proc/mass_proc.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
8
2021-09-09T14:49:14.000Z
2022-03-03T15:53:09.000Z
""" Date: 08/02/2021 Author: Marcely """ from utils import * import glob, argparse SUFFIX = "_one_channel.wav" def get_transcription(file_path): return [line.strip("\n") for line in open(file_path)][0] def process(args): ids = glob.glob(args.transcription_folder + "/*") for transcription_id in ids: ...
35.702703
94
0.673732
e838a1ffd40eaee3cb5aa0b945fad82e6d5cfcca
5,948
py
Python
mocu/kuramoto_model/remainingMOCU_func_exec_rp/findMOCUSequence.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/kuramoto_model/remainingMOCU_func_exec_rp/findMOCUSequence.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/kuramoto_model/remainingMOCU_func_exec_rp/findMOCUSequence.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
import time import numpy as np from MOCU import * def findMOCUSequence(syncThresholds, isSynchronized, MOCUInitial, K_max, w, N, h , MVirtual, MReal, TVirtual, TReal, aLowerBoundIn, aUpperBoundIn, it_idx, update_cnt, iterative = True): pseudoRandomSequence = True MOCUCurve = np.ones(update_cnt+1)*50.0 MO...
45.060606
185
0.621385
e838af51f7fc1674e92209696455abbe84840a6d
2,560
py
Python
test_base.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
1
2015-12-14T10:37:52.000Z
2015-12-14T10:37:52.000Z
test_base.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
null
null
null
test_base.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
null
null
null
import unittest from google.appengine.ext import testbed from google.appengine.ext.ndb import model from google.appengine.ext.ndb import tasklets import webapp2 def main(): unittest.main() #def check_webob_version(minimum_version): # try: # # WebOb < 1.0 (App Engine SDK). # from webob.statusrea...
30.47619
78
0.657422
e838b8529eff933f1de1989f3667bbe1f7bf3eb3
12,926
py
Python
scores_api.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
scores_api.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
3
2015-02-15T18:31:10.000Z
2015-02-22T19:56:05.000Z
scores_api.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 Martin Cochran # # 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 la...
35.220708
90
0.719712
e8390098d634b1e3cae719e1c0c43e9dc925bdf3
755
py
Python
examples/scan&print.py
theBASTI0N/pybluez2mqtt
61466164f3fb361d533c0a4b800afd3d844eee79
[ "MIT" ]
3
2020-09-09T15:29:13.000Z
2021-12-10T19:30:53.000Z
examples/scan&print.py
theBASTI0N/pybluez2mqtt
61466164f3fb361d533c0a4b800afd3d844eee79
[ "MIT" ]
2
2020-01-16T04:19:46.000Z
2020-01-17T04:33:12.000Z
examples/scan&print.py
theBASTI0N/beaconscanner
61466164f3fb361d533c0a4b800afd3d844eee79
[ "MIT" ]
null
null
null
import time import sys from beaconscanner import BeaconScanner def callback(bt_addr, rssi, packet, dec, smoothedRSSI): print((bt_addr, rssi, smoothedRSSI, packet, dec)) def main_loop(): # scan for all Estimote telemetry packets from a specific beacon global scanner scanner = BeaconScanner(callback, ru...
27.962963
111
0.676821
e8390ac51f5dd0a6e46c5adc6db3f633d08f358f
3,700
py
Python
config/settings.py
daniel-afana/MusicDB
c2c897d540e6e514403997510e91044f518c0328
[ "MIT" ]
null
null
null
config/settings.py
daniel-afana/MusicDB
c2c897d540e6e514403997510e91044f518c0328
[ "MIT" ]
null
null
null
config/settings.py
daniel-afana/MusicDB
c2c897d540e6e514403997510e91044f518c0328
[ "MIT" ]
null
null
null
""" Django settings for config project. Generated by 'django-admin startproject' using Django 1.11.4. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import env...
25.694444
99
0.701351
e8390f26080fc1bee5aecd4953ffdcf411bfe523
5,246
py
Python
app/clients/sms/mmg.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
app/clients/sms/mmg.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
3
2021-02-18T10:57:01.000Z
2021-02-26T06:29:24.000Z
app/clients/sms/mmg.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
import json from time import monotonic from requests import RequestException, request from app.clients.sms import SmsClient, SmsClientResponseException mmg_response_map = { '2': {'status': 'permanent-failure', 'substatus': { "1": "Number does not exist", "4": "Rejected by operator", "5": ...
36.685315
118
0.597026
e8391daaa87c460ee50089bb597048cff6412e5b
1,152
py
Python
netplas/netplas/urls.py
umit-ozturk/MRP-Project
0107d01097340113badc8dc37abb56942be4f286
[ "MIT" ]
8
2019-07-17T06:50:01.000Z
2021-08-07T10:31:01.000Z
netplas/netplas/urls.py
umit-ozturk/MRP-Project-System-Analysis--Lesson
0107d01097340113badc8dc37abb56942be4f286
[ "MIT" ]
8
2020-02-11T23:55:58.000Z
2022-02-10T09:10:40.000Z
netplas/netplas/urls.py
umit-ozturk/MRP-Project-System-Analysis--Lesson
0107d01097340113badc8dc37abb56942be4f286
[ "MIT" ]
3
2020-06-13T21:37:25.000Z
2021-05-14T12:42:55.000Z
"""netplas URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
38.4
81
0.710069
e839245a71eefa61605539e604e12d218dfa81e1
7,886
py
Python
openrl/algorithms/mbrl/utils.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
2
2021-09-10T18:52:35.000Z
2022-01-03T19:48:06.000Z
openrl/algorithms/mbrl/utils.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
1
2021-12-28T17:42:23.000Z
2021-12-28T17:42:23.000Z
openrl/algorithms/mbrl/utils.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import tensorflow as tf import numpy as np from typing import List, Tuple, Union import copy def add_noise(input_data, noise_to_signal: int = 0.01) -> np.ndarray: """ @source https://github.com/berkeleydeeprlcourse/homework_fall2020/blob/master/hw4/cs285/infrastructure/utils. ...
39.039604
115
0.647096
e8394a9676ba3f4b132304f03735d10079d097c1
593
py
Python
credentials.py
victorlomi/Password-Locker
2bba04e3afa3e70304db8fcdb27557d87bf5a50b
[ "Unlicense" ]
null
null
null
credentials.py
victorlomi/Password-Locker
2bba04e3afa3e70304db8fcdb27557d87bf5a50b
[ "Unlicense" ]
null
null
null
credentials.py
victorlomi/Password-Locker
2bba04e3afa3e70304db8fcdb27557d87bf5a50b
[ "Unlicense" ]
null
null
null
from account import Account class Credentials: """Keeps track of the user's accounts and their credentials.""" def __init__(self): """Store the accounts the user has added(Twitter by default).""" self.accounts = {"twitter": Account(), "facebook": Account()} def ad...
34.882353
72
0.629005
e8396ac7fbd67b984061ef6954faab3d50b9e2a3
232
py
Python
satchless/contrib/search/haystack_predictive/urls.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
1
2015-11-05T05:09:27.000Z
2015-11-05T05:09:27.000Z
satchless/contrib/search/haystack_predictive/urls.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
satchless/contrib/search/haystack_predictive/urls.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from django.conf.urls.defaults import * from . import forms from . import views urlpatterns = patterns('haystack.views', url(r'^$', views.search_products, name='satchless-search-haystack-predictive'), )
23.2
83
0.711207
e8398c0a1415de2bc54f6e3434bc61e4b641f5c7
221
py
Python
onadata/__init__.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/__init__.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/__init__.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import, unicode_literals # This will make sure the app is always imported when # Django starts so that shared_task will use this app. from .celery import app as celery_app
31.571429
56
0.800905
e8399cbe373f1447bf5c6d17b0406179fe90ab0f
2,876
py
Python
tests/integration/test_service_dev.py
Lactem/dffml
211f0b62e8c032b0a3bd0df8d105c2df1c0eb552
[ "MIT" ]
null
null
null
tests/integration/test_service_dev.py
Lactem/dffml
211f0b62e8c032b0a3bd0df8d105c2df1c0eb552
[ "MIT" ]
null
null
null
tests/integration/test_service_dev.py
Lactem/dffml
211f0b62e8c032b0a3bd0df8d105c2df1c0eb552
[ "MIT" ]
null
null
null
""" This file contains integration tests. We use the CLI to exercise functionality of various DFFML classes and constructs. """ import re import os import io import json import inspect import pathlib import asyncio import contextlib import unittest.mock from typing import Dict, Any from dffml.repo import Repo from dff...
29.958333
81
0.578234
e839a8d0310f2489a8ad9ae83d7f9fdd2346123f
526
py
Python
rlkit/launchers/experiments/vitchyr/probabilistic_goal_reaching/stochastic_env.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/launchers/experiments/vitchyr/probabilistic_goal_reaching/stochastic_env.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/launchers/experiments/vitchyr/probabilistic_goal_reaching/stochastic_env.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import numpy as np import gym class NoisyAction(gym.Wrapper): def __init__(self, env, noise_fraction): super().__init__(env) action_space = env.action_space self._action_noise_scale = noise_fraction * ( action_space.high - action_space.low) self._action_shape = action_s...
30.941176
79
0.680608
e839c8bddfc6541f4372ce2ffbf12ebb263bbf0e
10,389
py
Python
tune.py
oxquantum-repo/AutoDot
820a2686242b6bc4d65222db1d34af0021d9c8c0
[ "MIT" ]
7
2020-09-16T23:50:01.000Z
2022-01-29T13:31:35.000Z
tune.py
oxquantum-repo/AutoDot
820a2686242b6bc4d65222db1d34af0021d9c8c0
[ "MIT" ]
1
2022-01-15T14:50:16.000Z
2022-01-15T14:50:16.000Z
tune.py
oxquantum-repo/AutoDot
820a2686242b6bc4d65222db1d34af0021d9c8c0
[ "MIT" ]
6
2020-08-20T11:52:51.000Z
2021-03-12T08:04:35.000Z
# -*- coding: utf-8 -*- """ Created on Tue Nov 12 22:10:26 2019 @author: thele """ import sys import json from .Sampler_factory import Paper_sampler, Redo_sampler from .Investigation.Investigation_factory import Investigation_stage from .main_utils.utils import Timer, plot_conditional_idx_improvment from .m...
30.377193
121
0.605352
e839cd5cb31c3f4bae724482eba0f946f9ae27e0
5,893
py
Python
flu/figure_scripts/fig4_s1_parameter_dependence.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
flu/figure_scripts/fig4_s1_parameter_dependence.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
flu/figure_scripts/fig4_s1_parameter_dependence.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
#!/ebio/ag-neher/share/programs/bin/python2.7 # #script that reads in precomputed repeated prediction of influenza and #and plots the average prediction quality as a function of the diffusion constant and the #scale parameter gamma. # # import glob,argparse,sys sys.path.append('/ebio/ag-neher/share/users/rneher/FluPred...
44.984733
146
0.632954
e839f127a788f2f041615d8c380e277064ebb801
16,479
py
Python
scripts/get_traffic.py
GRG2/nist-software-scraper
632134956921657c3238f6afc9bc1c6c0a2fc76e
[ "MIT" ]
38
2016-12-08T12:47:52.000Z
2022-03-18T20:01:13.000Z
scripts/get_traffic.py
GRG2/nist-software-scraper
632134956921657c3238f6afc9bc1c6c0a2fc76e
[ "MIT" ]
39
2017-10-19T20:41:08.000Z
2021-06-28T19:04:39.000Z
scripts/get_traffic.py
GRG2/nist-software-scraper
632134956921657c3238f6afc9bc1c6c0a2fc76e
[ "MIT" ]
17
2017-11-22T10:58:16.000Z
2021-09-29T17:41:09.000Z
import github3 import datetime import os import errno import getpass import time import csv import math import json import requests import calendar class GitHub_Traffic: def __init__(self): self.referrers = {} self.referrers_lower = {} self.views = {} self.clones = {} self...
35.746204
86
0.504885
e83a035e764587f9212458f17fe59249101dd242
177
py
Python
netlas/exception.py
netlas-io/netlas-python
cb33beccccc8b7bafb9fe32aaa21c3d8feb21b0c
[ "MIT" ]
4
2021-06-22T12:22:22.000Z
2022-03-21T15:55:03.000Z
netlas/exception.py
netlas-io/netlas-python
cb33beccccc8b7bafb9fe32aaa21c3d8feb21b0c
[ "MIT" ]
null
null
null
netlas/exception.py
netlas-io/netlas-python
cb33beccccc8b7bafb9fe32aaa21c3d8feb21b0c
[ "MIT" ]
null
null
null
class APIError(Exception): """Basic Netlas.io Exception class""" def __init__(self, value): self.value = value def __str__(self): return self.value
22.125
41
0.632768
e83a10dbd84328247c4b73dbf88ba29448ff62ff
722
py
Python
python_modules/dagster/dagster/api/get_server_id.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/api/get_server_id.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/api/get_server_id.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from dagster import check from dagster.core.errors import DagsterUserCodeProcessError from dagster.utils.error import SerializableErrorInfo if TYPE_CHECKING: from dagster.grpc.client import DagsterGrpcClient def sync_get_server_id(api_client: "DagsterGrpcClient") -> str: fro...
32.818182
81
0.772853
e83a18241706db9f1450746e65aacfd12a402268
3,799
py
Python
tests/hwsim/noob_transfer.py
mmuarc/hostap
1d383388628b2eb5d61593a22ec817350ae3cc34
[ "Unlicense" ]
1
2020-08-10T17:37:10.000Z
2020-08-10T17:37:10.000Z
tests/hwsim/noob_transfer.py
mmuarc/hostap
1d383388628b2eb5d61593a22ec817350ae3cc34
[ "Unlicense" ]
2
2020-08-10T14:56:11.000Z
2020-08-10T15:42:49.000Z
tests/hwsim/noob_transfer.py
mmuarc/hostap
1d383388628b2eb5d61593a22ec817350ae3cc34
[ "Unlicense" ]
1
2020-08-07T17:11:01.000Z
2020-08-07T17:11:01.000Z
# Script to simulate the transferral of OOB data # for the EAP-NOOB method. # Copyright (c) 2020, Max Crone <max@maxcrone.org> import base64 from collections import OrderedDict from datetime import datetime import hashlib import json import os import re import sqlite3 db_path_server = '/tmp/noob_server.db' db_path_pe...
32.194915
111
0.67044
e83a1de56e0f9d5750adaf7a11d12c1c8fba55d6
1,154
py
Python
google-cloud-sdk/lib/surface/ml/operations/cancel.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/ml/operations/cancel.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/ml/operations/cancel.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.0625
74
0.768631
e83a420b07fe5fb716a217839b30fc28416edeb3
2,478
py
Python
hourglass/tests/common.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
hourglass/tests/common.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
1
2021-06-10T23:13:04.000Z
2021-06-10T23:13:04.000Z
hourglass/tests/common.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
import unittest from django.test import TestCase, override_settings from django.contrib.auth.models import User, Group from hourglass.utils import get_permissions_from_ns_codenames class BaseTestCase(TestCase): def assertHasMessage(self, res, tag, content): msgs = list(res.context['messages']) s...
33.04
76
0.612994
e83a5195d700438f7295204cf9f769937dce6935
2,550
py
Python
src/devsecops/cli/services/sonarqube.py
andykrohg/devsecops-api-script
9ea38b83da0e2424123512905aefb30412e18017
[ "BSD-2-Clause" ]
2
2021-05-05T19:04:39.000Z
2021-11-08T10:29:17.000Z
src/devsecops/cli/services/sonarqube.py
andykrohg/devsecops-api-script
9ea38b83da0e2424123512905aefb30412e18017
[ "BSD-2-Clause" ]
7
2020-09-15T21:13:56.000Z
2021-12-16T18:13:02.000Z
src/devsecops/cli/services/sonarqube.py
andykrohg/devsecops-api-script
9ea38b83da0e2424123512905aefb30412e18017
[ "BSD-2-Clause" ]
3
2020-09-25T13:52:56.000Z
2022-01-19T17:26:30.000Z
# SPDX-License-Identifier: BSD-2-Clause from devsecops.cli import opts from devsecops.cli import dso_sonarqube from devsecops.sonarqube import sonarqube import click @dso_sonarqube.command(name='add-user', epilog=opts.add_users_epilog) @opts.default_opts @opts.add_users_opt @opts.new_login_pw_opt def dso_sonarqube_a...
34.931507
75
0.654902
e83a6e26dd90d340d8103ce4cb8329a0744cda82
62,337
py
Python
roles/lib_openshift/library/oc_service.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/library/oc_service.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/library/oc_service.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
1
2020-12-02T00:39:02.000Z
2020-12-02T00:39:02.000Z
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
33.406752
118
0.547861
e83a778b11c48048359ce819cc343f8d001ab210
14,890
py
Python
evap/evaluation/tests/test_commands.py
JannisBerndt/EvaP
a3ca8bcf091e811421084c4db14ae9666cf2a27f
[ "MIT" ]
26
2015-01-18T18:01:57.000Z
2018-10-12T14:37:15.000Z
evap/evaluation/tests/test_commands.py
JannisBerndt/EvaP
a3ca8bcf091e811421084c4db14ae9666cf2a27f
[ "MIT" ]
737
2015-01-02T17:43:25.000Z
2018-12-10T20:45:10.000Z
evap/evaluation/tests/test_commands.py
JannisBerndt/EvaP
a3ca8bcf091e811421084c4db14ae9666cf2a27f
[ "MIT" ]
83
2015-01-14T12:39:41.000Z
2018-10-29T16:36:43.000Z
import os import random from collections import defaultdict from datetime import date, datetime, timedelta from io import StringIO from itertools import chain, cycle from unittest.mock import call, patch from django.conf import settings from django.core import mail, management from django.db.models import Sum from dja...
37.696203
118
0.66857
e83a779cc4d7216837d718788ccbb4954f8ad1a4
3,991
py
Python
alipay/aop/api/request/AlipayOpenSpBlueseaactivityQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenSpBlueseaactivityQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenSpBlueseaactivityQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenSpBlueseaactivityQueryModel import AlipayOpenSpBlueseaactivityQueryModel class AlipayOpenSpBlueseaactivityQueryRequest(obj...
27.524138
148
0.646455
e83a85d43f6cacb32c257c18712bede552b1966e
269
py
Python
terrascript/circleci/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/circleci/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/circleci/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/circleci/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class circleci(terrascript.Provider): pass
17.933333
79
0.773234
e83a8c2efff1607d10e1c9703b1715c319e26fb6
4,652
py
Python
tornado/test/process_test.py
ContextLogic/tornado
715182e092e03dbefb141de0ad28ad8b9288427e
[ "Apache-2.0" ]
1
2018-12-13T12:59:59.000Z
2018-12-13T12:59:59.000Z
tornado/test/process_test.py
ContextLogic/tornado
715182e092e03dbefb141de0ad28ad8b9288427e
[ "Apache-2.0" ]
1
2019-09-18T22:48:16.000Z
2019-09-18T22:48:16.000Z
tornado/test/process_test.py
ContextLogic/tornado
715182e092e03dbefb141de0ad28ad8b9288427e
[ "Apache-2.0" ]
1
2018-05-23T19:37:26.000Z
2018-05-23T19:37:26.000Z
#!/usr/bin/env python import logging import os import signal import sys from tornado.httpclient import HTTPClient, HTTPError from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop from tornado.netutil import bind_sockets from tornado.process import fork_processes, task_id, fork_processes_with_watc...
40.103448
81
0.561479
e83a9548fd17f9d470a6bf33bd9bade927d0fbd6
2,262
py
Python
Selenium_PhantomJS/source/boto3/docs/attr.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Selenium_PhantomJS/source/boto3/docs/attr.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Selenium_PhantomJS/source/boto3/docs/attr.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
40.392857
75
0.742706
e83aab4b282438058be8341ba421ad03064a05c3
733
py
Python
setup.py
NamorNiradnug/PyPhysics
e20dce266724c5bcfd2d83c978e2683360b69c22
[ "MIT" ]
null
null
null
setup.py
NamorNiradnug/PyPhysics
e20dce266724c5bcfd2d83c978e2683360b69c22
[ "MIT" ]
null
null
null
setup.py
NamorNiradnug/PyPhysics
e20dce266724c5bcfd2d83c978e2683360b69c22
[ "MIT" ]
null
null
null
#!/usr/bin/python import setuptools from physicslib import __version__ with open("README.md") as f: long_description = f.read() setuptools.setup( name="physicslib", version=__version__, packages=setuptools.find_packages(), author="NamorNiradnug", author_email="roma937a@mail.ru", license="M...
28.192308
63
0.687585
e83ad8e4c82d5818ba8cc3d94a4696309132b20b
25,372
py
Python
chatbot_agent/chatbot_agent/policy/rule_based_multiwoz_bot.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
chatbot_agent/chatbot_agent/policy/rule_based_multiwoz_bot.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
chatbot_agent/chatbot_agent/policy/rule_based_multiwoz_bot.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
import copy import json import random from copy import deepcopy from chatbot_agent.interface.policy import Policy from chatbot_agent.dbquery import Database from chatbot_agent.policy.multiwoz_slot_trans import REF_SYS_DA, REF_USR_DA SELECTABLE_SLOTS = { 'Attraction': ['area', 'entrance fee', 'name', 'type'], ...
45.388193
137
0.494324
e83aeeb1d96482bef0dfa222dea89e049fa0ff1d
656
py
Python
tracker/model/cvegrouppackage.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
tracker/model/cvegrouppackage.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
tracker/model/cvegrouppackage.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
from tracker import db class CVEGroupPackage(db.Model): id = db.Column(db.Integer(), index=True, unique=True, primary_key=True, autoincrement=True) group_id = db.Column(db.Integer(), db.ForeignKey('cve_group.id', ondelete="CASCADE"), nullable=False) pkgname = db.Column(db.String(64), nullable=False) ...
41
105
0.722561
e83af23b0b0af0f34a9d45b18e50e17cf10f6931
2,219
py
Python
glibc/scripts/list-fixed-bugs.py
chyidl/mirror-glibc
3b17633afc85a9fb8cba0edc365d19403158c5a0
[ "BSD-3-Clause" ]
null
null
null
glibc/scripts/list-fixed-bugs.py
chyidl/mirror-glibc
3b17633afc85a9fb8cba0edc365d19403158c5a0
[ "BSD-3-Clause" ]
null
null
null
glibc/scripts/list-fixed-bugs.py
chyidl/mirror-glibc
3b17633afc85a9fb8cba0edc365d19403158c5a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # Copyright (C) 2015-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # # The GNU C Library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # versi...
34.138462
76
0.687247
e83b0ab7c5f67687c116dcc97d2c3b62deb8f052
9,271
py
Python
docs/conf.py
jvroutak/bincopy
216c15c4c03a0cdff0212872992bb412cb7eedf0
[ "MIT" ]
null
null
null
docs/conf.py
jvroutak/bincopy
216c15c4c03a0cdff0212872992bb412cb7eedf0
[ "MIT" ]
null
null
null
docs/conf.py
jvroutak/bincopy
216c15c4c03a0cdff0212872992bb412cb7eedf0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # bincopy documentation build configuration file, created by # sphinx-quickstart on Sat Apr 25 11:54:09 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
31.968966
79
0.718908
e83b144d22e64a24bacf800a7a443d84b0e7d5d9
9,369
py
Python
fv3config/fv3run/_kubernetes.py
VulcanClimateModeling/fv3config
544eaf1bc6f1c4617cd8ee6bd3298136ed180f4c
[ "BSD-2-Clause" ]
2
2019-11-12T21:05:09.000Z
2019-11-17T18:08:34.000Z
fv3config/fv3run/_kubernetes.py
VulcanClimateModeling/fv3config
544eaf1bc6f1c4617cd8ee6bd3298136ed180f4c
[ "BSD-2-Clause" ]
77
2019-11-12T21:15:38.000Z
2021-05-07T22:39:36.000Z
fv3config/fv3run/_kubernetes.py
VulcanClimateModeling/fv3config
544eaf1bc6f1c4617cd8ee6bd3298136ed180f4c
[ "BSD-2-Clause" ]
null
null
null
import os import re import uuid import warnings from .. import filesystem from .._exceptions import DelayedImportError from ._native import run_native try: import kubernetes as kube except ImportError as err: kube = DelayedImportError(err) def run_kubernetes( config_location, outdir, docker_imag...
33.580645
95
0.626428
e83b25a00f1a62ad5ec55e89d002c4ec86c0576e
2,246
py
Python
daoliproxy/config.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
daoliproxy/config.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
daoliproxy/config.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the ...
40.836364
82
0.662066
e83b57200a059fe3c679880771afa8d2d6759236
149
py
Python
synapse/lib/platforms/freebsd.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
216
2017-01-17T18:52:50.000Z
2022-03-31T18:44:49.000Z
synapse/lib/platforms/freebsd.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
2,189
2017-01-17T22:31:48.000Z
2022-03-31T20:41:45.000Z
synapse/lib/platforms/freebsd.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
44
2017-01-17T16:50:57.000Z
2022-03-16T18:35:52.000Z
import logging logger = logging.getLogger(__name__) def initHostInfo(): return { 'format': 'elf', 'platform': 'freebsd', }
14.9
36
0.590604
e83b605ea8604f4813d7e5deebf572120172daa5
524
py
Python
test_cnet_random_new.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
test_cnet_random_new.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
test_cnet_random_new.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
from Preprocessor_tiles_gray import Preprocessor from eval.CNetTester_random import CNetTester from datasets.ImageNet import ImageNet from constants import LOG_DIR from models.CNet_random_multi2 import CNet import os target_shape = [72, 72, 1] model = CNet(batch_size=128, target_shape=target_shape) data = ImageNet() ...
34.933333
97
0.824427
e83b8226b36a859d1a7577110de617e639b9cf0d
5,364
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_forth.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
9
2018-10-15T04:57:37.000Z
2021-12-07T07:39:35.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_forth.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
13
2018-10-19T11:52:44.000Z
2021-09-08T00:39:30.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_forth.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
3
2018-10-25T11:08:04.000Z
2021-02-23T08:28:31.000Z
############################################################################### # Name: forht.py # # Purpose: Define Forth syntax for highlighting and other features # # Author: Cody Precord <cprecord@editra.org> # ...
43.967213
80
0.543065
e83b8d19cc7213b017c845d7456d41dc11a1638f
582
py
Python
MFAEngine/apps/api/migrations/0010_auto_20210904_1729.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/apps/api/migrations/0010_auto_20210904_1729.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/apps/api/migrations/0010_auto_20210904_1729.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-04 17:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0009_auto_20210904_1705'), ] operations = [ migrations.AlterField( model_name='tokenconfig', name='algorithm'...
24.25
65
0.587629
e83b98049527d37fad45f24768f168a9d56ecd69
142,404
py
Python
src/aks-preview/azext_aks_preview/custom.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/custom.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/custom.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------...
43.336579
227
0.642054
e83bae2ffa162bc308250294d90eab3652b65c60
11,274
py
Python
vmware_nsx/tests/unit/shell/test_admin_utils.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/shell/test_admin_utils.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/shell/test_admin_utils.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2015 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.010381
79
0.643871
e83bdaac719c0ae77464714c957b6b9a9b4527c3
2,012
py
Python
tf_agents/policies/greedy_policy.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/greedy_policy.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/greedy_policy.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
33.533333
78
0.718191
e83c08f643f4f1140d418afcb470a46c93640856
13,839
py
Python
tensorflow/python/ops/string_ops.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
1
2020-07-06T14:18:59.000Z
2020-07-06T14:18:59.000Z
tensorflow/python/ops/string_ops.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
4
2020-09-26T00:55:50.000Z
2022-02-10T01:53:06.000Z
tensorflow/python/ops/string_ops.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
1
2019-12-20T01:12:47.000Z
2019-12-20T01:12:47.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...
38.764706
89
0.691741
e83c29e1e8d476954e006368b7192e5f58b3755a
20,178
py
Python
tests/test_permissions.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
tests/test_permissions.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
1
2016-02-18T18:55:29.000Z
2016-02-18T18:55:29.000Z
tests/test_permissions.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from mock import patch import re import unittest from urllib import urlencode import pytest from tornado.httpclient import HTTPError from wtforms.validators import ValidationError from fixtures import standard_graph, graph, users, groups, session, permissions # noqa from fixtures i...
48.157518
112
0.707355
e83c68745d5464cc13ca5b9ece968af90f9aba0f
1,239
py
Python
misc/build-shaders.py
bqqbarbhg/spear
727f41fa5197f9681337d1ff37ea63c44708f0d4
[ "BSD-3-Clause" ]
29
2020-07-27T09:56:02.000Z
2022-03-28T01:38:07.000Z
misc/build-shaders.py
bqqbarbhg/spear
727f41fa5197f9681337d1ff37ea63c44708f0d4
[ "BSD-3-Clause" ]
3
2020-05-29T11:43:20.000Z
2020-09-04T09:56:56.000Z
misc/build-shaders.py
bqqbarbhg/spear
727f41fa5197f9681337d1ff37ea63c44708f0d4
[ "BSD-3-Clause" ]
2
2020-05-29T11:34:46.000Z
2021-03-08T08:39:07.000Z
#!/usr/bin/env python3 import os import subprocess import sys import shutil if sys.platform == "win32": shdc_exe = "..\\tool\\win32\\sokol-shdc.exe" elif sys.platform == "darwin": shdc_exe = "../tool/macos/sokol-shdc" else: shdc_exe = "../tool/linux/sokol-shdc" self_path = os.path.dirname(os.path.abspath...
24.78
67
0.606134
e83c7209e731d8d22c6af864beec94fea8561bf6
8,138
py
Python
nautobot_device_lifecycle_mgmt/api/serializers.py
jdrew82/nautobot-plugin-device-lifecycle-mgmt
7ac9a479f7912b7c082f61cccc4b48e6aad16e46
[ "Apache-2.0" ]
21
2021-11-05T18:20:09.000Z
2022-03-19T16:41:27.000Z
nautobot_device_lifecycle_mgmt/api/serializers.py
jdrew82/nautobot-plugin-device-lifecycle-mgmt
7ac9a479f7912b7c082f61cccc4b48e6aad16e46
[ "Apache-2.0" ]
34
2021-11-05T16:52:35.000Z
2022-03-22T21:02:14.000Z
nautobot_device_lifecycle_mgmt/api/serializers.py
jdrew82/nautobot-plugin-device-lifecycle-mgmt
7ac9a479f7912b7c082f61cccc4b48e6aad16e46
[ "Apache-2.0" ]
8
2021-11-05T22:04:43.000Z
2022-03-28T15:15:31.000Z
"""API serializers implementation for the LifeCycle Management plugin.""" from rest_framework import serializers from nautobot.core.api import SerializedPKRelatedField from nautobot.dcim.api.nested_serializers import ( NestedDeviceSerializer, NestedDeviceTypeSerializer, NestedPlatformSerializer, Neste...
27.308725
120
0.592775
e83c740f9f46ff91fe51f9ecaa85713aec1ac47b
18,452
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.191816
234
0.687405
e83c7ec1d92113787e72d8eb4425a800f7f3b4b7
1,279
py
Python
office365/teams/channelCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/channelCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/channelCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.runtime.queries.create_entity_query import CreateEntityQuery from office365.runtime.resource_path import ResourcePath from office365.teams.channel import Channel class ChannelCollection(ClientObjectCollection): """Team's ...
38.757576
94
0.707584
e83c88638ba42289333ac96a9370a24f13107267
1,748
py
Python
pykube/utils.py
zoidbergwill/pykube
c71f3d9ca1efeea6b1c1e0359ed97ce521336404
[ "Apache-2.0" ]
null
null
null
pykube/utils.py
zoidbergwill/pykube
c71f3d9ca1efeea6b1c1e0359ed97ce521336404
[ "Apache-2.0" ]
null
null
null
pykube/utils.py
zoidbergwill/pykube
c71f3d9ca1efeea6b1c1e0359ed97ce521336404
[ "Apache-2.0" ]
null
null
null
import re try: from jsonpath_ng import parse as jsonpath jsonpath_installed = True except ImportError: jsonpath_installed = False from itertools import zip_longest empty = object() def obj_merge(obj, original_obj, is_strategic=True): c = {} for k, v in obj.items(): if k not in original...
27.746032
88
0.562357
e83c8fce7cc00244c4eb02ecb98602de4440729c
11,824
py
Python
bin/AoideReduce.py
granttremblay/aoide
ea25bdf92013f7dc3b254e261039c43e697ee901
[ "MIT" ]
1
2018-06-26T12:28:39.000Z
2018-06-26T12:28:39.000Z
bin/AoideReduce.py
granttremblay/Aoide
ea25bdf92013f7dc3b254e261039c43e697ee901
[ "MIT" ]
null
null
null
bin/AoideReduce.py
granttremblay/Aoide
ea25bdf92013f7dc3b254e261039c43e697ee901
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Aoide | Reduction & Analysis of MUSE observations ------------------------------------------------- Dr. Grant R. Tremblay | Harvard-Smithsonian Center for Astrophysics grant.tremblay @ cfa.harvard.edu See the README associated with this repository for documentation & examples. ''' import os i...
42.078292
255
0.643775
e83c9218b16177d09f9545e504191d815543b47b
12,623
py
Python
two1/blockchain/insight_provider.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
415
2016-06-10T00:46:55.000Z
2021-10-16T00:56:06.000Z
two1/blockchain/insight_provider.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
25
2016-06-11T13:48:59.000Z
2021-01-05T11:19:30.000Z
two1/blockchain/insight_provider.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
109
2016-06-11T05:17:05.000Z
2021-12-22T11:02:22.000Z
"""This submodule provides a concrete `InsightProvider` class that provides information about a blockchain by contacting a server.""" import decimal from urllib.parse import urljoin from collections import defaultdict from two1.blockchain import exceptions from two1.blockchain.base_provider import BaseProvider from t...
35.457865
90
0.526816
e83cb0e98de6e19eea0f3ded0fc398f7a0a79539
3,103
py
Python
tests/test_traffic_get_data.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
13
2016-03-09T05:50:53.000Z
2022-01-01T09:20:45.000Z
tests/test_traffic_get_data.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
8
2016-03-24T21:56:58.000Z
2016-03-25T05:28:43.000Z
tests/test_traffic_get_data.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
9
2016-10-11T03:56:53.000Z
2020-05-13T03:05:13.000Z
from bingmaps.apiservices import TrafficIncidentsApi from .fixtures import BING_MAPS_KEY, parametrize DATA = [ {'mapArea': [37, -105, 45, -94], 'includeLocationCodes': 'true', 'key': BING_MAPS_KEY}, {'mapArea': [37, -105, 45, -94], 'includeLocationCodes': 'true', 'type': [5], 'o': 'xm...
19.639241
52
0.652594
e83dd95a14111c6cf0ec0ce48e4b67343ff9d888
1,012
py
Python
utils/edge_detector.py
xinhecuican/tiny-face-tensor-flow
03287b0d86e7d1332a61c1b22793655e41d01cca
[ "MIT" ]
null
null
null
utils/edge_detector.py
xinhecuican/tiny-face-tensor-flow
03287b0d86e7d1332a61c1b22793655e41d01cca
[ "MIT" ]
null
null
null
utils/edge_detector.py
xinhecuican/tiny-face-tensor-flow
03287b0d86e7d1332a61c1b22793655e41d01cca
[ "MIT" ]
null
null
null
import math import time import numpy as np import cv2 from matplotlib import pyplot as plt def sobel(img: np.ndarray, threshold, bboxes=None): gray_img = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) # shape = gray_img.shape # ans = np.zeros(shape) x = cv2.Sobel(gray_img, cv2.CV_16S, 1, 0) y = cv2.Sobel...
31.625
63
0.55336
e83df2a8597d17ce0237d0bf4db82573372931d1
3,384
py
Python
examples/plotting/exp_variant_class.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
2
2020-01-07T04:12:42.000Z
2021-12-21T22:25:31.000Z
examples/plotting/exp_variant_class.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
11
2019-11-29T02:59:34.000Z
2022-03-12T00:07:28.000Z
examples/plotting/exp_variant_class.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
1
2020-04-28T12:06:40.000Z
2020-04-28T12:06:40.000Z
import os import numpy as np from sklearn.preprocessing import StandardScaler file_path=os.path.abspath(os.getcwd()) path_list=file_path.split('/') while path_list[-1] !="synergyDRL": path_list.pop(-1) file_path="/".join(path_list) class exp_variant(): def __init__(self, name, action_path=fil...
30.214286
114
0.54078
e83e13c73d498cc1a4495c2e085ed5523e286ae2
1,752
py
Python
study/live-plotting.py
CrtomirJuren/npTDMS
cbebbf31d3977af06dbfa7f9602c89627134621d
[ "MIT" ]
2
2021-02-04T05:40:01.000Z
2021-04-06T14:34:55.000Z
study/live-plotting.py
CrtomirJuren/npTDMS
cbebbf31d3977af06dbfa7f9602c89627134621d
[ "MIT" ]
null
null
null
study/live-plotting.py
CrtomirJuren/npTDMS
cbebbf31d3977af06dbfa7f9602c89627134621d
[ "MIT" ]
2
2021-02-04T05:40:15.000Z
2021-12-25T06:07:54.000Z
import numpy as np import matplotlib.pyplot as plt #import matplotlib.animation as animation from matplotlib.animation import FuncAnimation import random from itertools import count plt.style.use("fivethirtyeight") x_vals=[] y_vals=[] #plt.plot(x_vals,y_vals) index = count() class RingBuffer(object): def __ini...
24
88
0.64726
e83e4d02bdb6927a4d4f6d0a06b4eab6ac974810
1,351
py
Python
mcarch/jsonschema.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
mcarch/jsonschema.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
mcarch/jsonschema.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
"""This module provides JSON schemas for the mod database entries.""" from marshmallow import fields from marshmallow_sqlalchemy import ModelSchema from mcarch.app import db from mcarch.model.mod import * class ModFileSchema(ModelSchema): sha256 = fields.Method("get_sha256") filename = fields.Method("get_fil...
27.571429
82
0.684678
e83e56e4e733756e4e611481c3ac76903671be32
2,652
py
Python
livechat/tests/test_reports_api_client.py
livechat/lc-sdk-python
536483590b9600ef1bc86fe36a1f810368b85a9d
[ "Apache-2.0" ]
5
2021-03-22T19:22:05.000Z
2022-01-18T13:38:22.000Z
livechat/tests/test_reports_api_client.py
livechat/lc-sdk-python
536483590b9600ef1bc86fe36a1f810368b85a9d
[ "Apache-2.0" ]
5
2021-10-05T14:44:33.000Z
2022-02-16T07:33:51.000Z
livechat/tests/test_reports_api_client.py
livechat/lc-sdk-python
536483590b9600ef1bc86fe36a1f810368b85a9d
[ "Apache-2.0" ]
null
null
null
''' Tests for Reports API client. ''' # pylint: disable=E1120,W0621 import pytest from livechat.reports.client import ReportsApi @pytest.fixture def reports_api_client(): ''' Fixture returning Reports API client. ''' return ReportsApi.get_client(token='test') def test_get_client_with_non_existing_version...
35.837838
92
0.718326
e83e6e1bb5b99603e2538917e239e7e1736ed10c
993
py
Python
base/base_model.py
nik1168/Optical-Character-Recognition
17655810f15d786615f72f06e1bfb4448e60f83b
[ "MIT" ]
1
2020-03-27T21:44:31.000Z
2020-03-27T21:44:31.000Z
base/base_model.py
nik1168/Optical-Character-Recognition
17655810f15d786615f72f06e1bfb4448e60f83b
[ "MIT" ]
5
2020-09-26T00:43:18.000Z
2022-02-10T01:11:52.000Z
base/base_model.py
nik1168/Optical-Character-Recognition
17655810f15d786615f72f06e1bfb4448e60f83b
[ "MIT" ]
null
null
null
class BaseModel(object): def __init__(self, config): self.config = config self.model = None def save(self, checkpoint_path): """ save function that saves the checkpoint in the path defined in the config file :param checkpoint_path: """ if self.model is No...
31.03125
86
0.620342
e83e6e4630990486aad303a0b512d95ed268b006
2,244
py
Python
src/Models/Misc/plot_features.py
amitsou/Multimodal-User-Monitoring
178049485b4afe5fbf9511e74e4c2f78bd89d426
[ "MIT" ]
2
2020-07-28T14:20:45.000Z
2021-01-07T23:55:52.000Z
src/Models/Misc/plot_features.py
amitsou/Multimodal-User-Monitoring
178049485b4afe5fbf9511e74e4c2f78bd89d426
[ "MIT" ]
7
2020-06-30T13:00:10.000Z
2021-01-09T00:47:22.000Z
src/Models/Misc/plot_features.py
amitsou/Multimodal-User-Monitoring
178049485b4afe5fbf9511e74e4c2f78bd89d426
[ "MIT" ]
1
2020-12-15T15:07:18.000Z
2020-12-15T15:07:18.000Z
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import pandas as pd import numpy as np import seaborn as sn import sys import os sys.path.insert(0, os.path.join(os.path.dirname( os.path.realpath(__file__)), "../")) from Functions import plot_functions as pt from Functions import utils as ut if __name__ =...
27.036145
69
0.503565
e83e904142ae1998facfb300ceaa15b823f8f97c
1,886
py
Python
.leetcode/509.fibonacci-number.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/509.fibonacci-number.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/509.fibonacci-number.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=509 lang=python3 # # [509] Fibonacci Number # # https://leetcode.com/problems/fibonacci-number/description/ # # algorithms # Easy (67.81%) # Likes: 1957 # Dislikes: 238 # Total Accepted: 476.1K # Total Submissions: 702K # Testcase Example: '2' # # The Fibonacci numbers, commonly denoted F(n...
15.333333
75
0.534995
e83ed3f43776de9d41268178dd014be6fddc40f1
8,085
py
Python
ambari-server/src/main/python/setupAgent.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/main/python/setupAgent.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/python/setupAgent.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' 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")...
35.774336
167
0.632158
e83eeed487e6099dbb50875612b5af96080fe7e3
10,603
py
Python
test/traced_module/test_caffe.py
MegEngine/mgeconvert
8d4fdb01b5a58cfcae3eb62799e5b46de5d8b74b
[ "Apache-2.0" ]
42
2020-12-19T04:16:11.000Z
2022-03-31T02:40:20.000Z
test/traced_module/test_caffe.py
MegEngine/mgeconvert
8d4fdb01b5a58cfcae3eb62799e5b46de5d8b74b
[ "Apache-2.0" ]
37
2021-01-04T11:05:38.000Z
2022-03-22T08:48:14.000Z
test/traced_module/test_caffe.py
MegEngine/mgeconvert
8d4fdb01b5a58cfcae3eb62799e5b46de5d8b74b
[ "Apache-2.0" ]
9
2021-01-04T12:17:11.000Z
2022-01-18T09:50:50.000Z
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY ...
30.381089
88
0.680373
e83eef26f7f80ee7580cadd1007a56467bb2b7ba
4,293
py
Python
setup.py
pycampers/react-pages
417ec24129b80b91c4f429f19a0334974a2c286f
[ "MIT" ]
17
2018-05-17T17:56:28.000Z
2019-03-18T15:34:08.000Z
setup.py
scientifichackers/react-pages
417ec24129b80b91c4f429f19a0334974a2c286f
[ "MIT" ]
null
null
null
setup.py
scientifichackers/react-pages
417ec24129b80b91c4f429f19a0334974a2c286f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import subprocess import sys from shutil import rmtree from setuptools import find_packages, setup, Command from setuptools.command.develop import develop from s...
28.812081
86
0.655719
e83efc350082871120284045f7fa34ed52904e83
9,142
py
Python
lreid/datasets/grid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
63
2021-03-20T15:33:11.000Z
2022-03-30T03:04:14.000Z
lreid/datasets/grid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
5
2021-03-23T08:04:21.000Z
2022-03-10T02:28:43.000Z
lreid/datasets/grid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
10
2021-04-30T11:14:10.000Z
2022-03-18T16:44:55.000Z
from __future__ import division, print_function, absolute_import import glob import os.path as osp from scipy.io import loadmat from lreid.utils import read_json, write_json from lreid.data.datasets import ImageDataset from lreid.data_loader.incremental_datasets import IncrementalPersonReIDSamples class Incremental...
37.314286
93
0.523955
e83f2e58c9ed7545d9a3ddbbdfdaa95c349b08b0
2,917
py
Python
recipe/tests/test_ingredients_api.py
masashimorita/django-recipe-api
fff18bf838e0e458ece1573b2d9751154eab241b
[ "MIT" ]
null
null
null
recipe/tests/test_ingredients_api.py
masashimorita/django-recipe-api
fff18bf838e0e458ece1573b2d9751154eab241b
[ "MIT" ]
null
null
null
recipe/tests/test_ingredients_api.py
masashimorita/django-recipe-api
fff18bf838e0e458ece1573b2d9751154eab241b
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe:ingredien...
35.573171
78
0.680836
e83f4756acebc27c5398f0c9b65693bef8ca6712
349
py
Python
sitetools/models/__init__.py
olivergs/django-sitetools
be9d747b8ca4c5d18f9725b2dad08dba6119d810
[ "MIT" ]
null
null
null
sitetools/models/__init__.py
olivergs/django-sitetools
be9d747b8ca4c5d18f9725b2dad08dba6119d810
[ "MIT" ]
null
null
null
sitetools/models/__init__.py
olivergs/django-sitetools
be9d747b8ca4c5d18f9725b2dad08dba6119d810
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Site tools main models module =============================================== .. module:: sitetools.models :platform: Django :synopsis: Site tools main models module .. moduleauthor:: (C) 2014 Oliver Gutiérrez """ from sitetools.models.fields import * from sit...
24.928571
47
0.60745
e83f4bac43fb0955b04a93de66f95eb6b89040e9
6,405
py
Python
src/py42/clients/detectionlists.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/clients/detectionlists.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/clients/detectionlists.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
from py42.exceptions import Py42BadRequestError from py42.exceptions import Py42UnableToCreateProfileError from py42.util import get_attribute_keys_from_class class RiskTags(object): """The available RiskTags for :meth:`~py42.clients.detectionlists.DetectionListsClient.add_user_risk_tags()` and :meth:`~py42.c...
38.584337
114
0.666511
e83f52613572d2275a87d28d3b494c7fc1e885f5
3,184
py
Python
src/rsystem/rscheduler.py
zhichul/pi-bob
b9ed7cb3614f50c51c6273665d8cd2b62dcab886
[ "MIT" ]
null
null
null
src/rsystem/rscheduler.py
zhichul/pi-bob
b9ed7cb3614f50c51c6273665d8cd2b62dcab886
[ "MIT" ]
null
null
null
src/rsystem/rscheduler.py
zhichul/pi-bob
b9ed7cb3614f50c51c6273665d8cd2b62dcab886
[ "MIT" ]
null
null
null
""" Scheduler module for rsys Thread Count: 3 """ from threading import Thread import xmlrpc.client as client from xmlrpc.server import SimpleXMLRPCServer import time from . import rsys from . import rcam from . import rmotor class rscheduler(): stats = dict() stat_fns = dict() # functions to retrieve each...
29.757009
89
0.606784
e83f601a1e87f05d07b24e0a609fbc3357e1b5d0
1,977
py
Python
all/environments/duplicate_env.py
kcorder/autonomous-learning-library
0266195fa47564e51a32087bc007bff6dda5e263
[ "MIT" ]
584
2019-07-10T20:21:55.000Z
2022-03-30T22:47:57.000Z
all/environments/duplicate_env.py
kcorder/autonomous-learning-library
0266195fa47564e51a32087bc007bff6dda5e263
[ "MIT" ]
104
2019-03-27T14:08:22.000Z
2022-01-06T18:16:23.000Z
all/environments/duplicate_env.py
kcorder/autonomous-learning-library
0266195fa47564e51a32087bc007bff6dda5e263
[ "MIT" ]
66
2019-07-11T00:59:06.000Z
2022-03-15T05:22:57.000Z
import gym import torch from all.core import State from ._vector_environment import VectorEnvironment import numpy as np class DuplicateEnvironment(VectorEnvironment): ''' Turns a list of ALL Environment objects into a VectorEnvironment object This wrapper just takes the list of States the environments g...
26.716216
84
0.643905
e83f9c85897ca90b8ade87cc8faab047015642e2
1,764
py
Python
data/prepro_bottom_up_modified.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
null
null
null
data/prepro_bottom_up_modified.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
null
null
null
data/prepro_bottom_up_modified.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
null
null
null
import os import json import h5py import copy import argparse import numpy as np import pickle import pdb inputJson = 'v2_vqa_info.json' bottomupJson = 'train36_imgid2idx.pkl' bottomupJson_val = 'val36_imgid2idx.pkl' imagePath = 'train36.hdf5' info = json.load(open(inputJson, 'r')) bottomupJson_train = pickle.load(o...
29.4
88
0.706916
e83fbafafdc7372fd43a9f930a21706bc1761c80
6,645
py
Python
OldArchitecture/v1.0/Components/_7__cpu_performance.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
OldArchitecture/v1.0/Components/_7__cpu_performance.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
OldArchitecture/v1.0/Components/_7__cpu_performance.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
''' Selection is implemented using Python if-statements instead of muxes ''' '''----------------------------- Imports -----------------------------''' # Hack computer from ._x__components import * '''------------------------------- CPU -------------------------------''' ''' Instruction - 0123456789ABCDEF 0 -> ...
24.794776
116
0.588262
e83fde4435e36e5f0e31d8fcc75038c998f6689c
856
py
Python
office365/sharepoint/permissions/roleDefinitionCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/permissions/roleDefinitionCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/permissions/roleDefinitionCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.sharepoint.permissions.roleDefinition import RoleDefinition class RoleDefinitionCollection(ClientObjectCollection): def __init__(self, c...
40.761905
94
0.765187
e83fe4c109b4c47e7b23a35235c3554e24dadfb6
481
py
Python
src/apps/productividad/migrations/0005_auto_20180904_1030.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/productividad/migrations/0005_auto_20180904_1030.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/productividad/migrations/0005_auto_20180904_1030.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-09-04 15:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('productividad', '0004_auto_20180827_2140'), ] operations = [ migrations.AlterModelOptions( name='reporte', options={'get_lates...
26.722222
174
0.64657
e8407104cb1c93d062b7f635f098d2294f1264fb
784
py
Python
examples/l3dcube/color_gradient.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
3
2016-12-09T07:30:26.000Z
2021-04-18T13:50:11.000Z
examples/l3dcube/color_gradient.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
examples/l3dcube/color_gradient.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Sets all LEDs in the L3D cube to smoothly cycle through colors """ import time import spectra import netl3d from netl3d.hardware import l3dcube config = netl3d.parse_config() debug = config['debug'] ip = config['hardware']['l3dcube']['ip'] port = config[...
23.757576
63
0.674745