hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
e421253d5fba18942d17797bdb68d587f5cf8153
513
py
Python
data/add_teacher.py
Parenty/pytest
e105c547623e028af2c8c38195540144a1f662d8
[ "Apache-2.0" ]
1
2019-04-28T09:52:58.000Z
2019-04-28T09:52:58.000Z
data/add_teacher.py
Parenty/pytest
e105c547623e028af2c8c38195540144a1f662d8
[ "Apache-2.0" ]
null
null
null
data/add_teacher.py
Parenty/pytest
e105c547623e028af2c8c38195540144a1f662d8
[ "Apache-2.0" ]
null
null
null
from model.registration import Reg # Группа при регистрации testdata_reg = [ Reg(number_class='3', name_class='проверка регистрации', subject_list=['math', 'rus', 'eng'], email='dmitriev+14@uchi.ru', password='1'), # Reg(number_class='3', name_class='метка б', subject_list=['math', 'rus', 'eng'], email...
42.75
126
0.641326
a2bd0467d4047ec0af992b089e8f8feb9e229c5d
345
py
Python
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/version.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/version.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/version.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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. # ---------------------------------------------------------------------...
38.333333
76
0.414493
bc28fccb95d2197e5c27785d99775f7ac5464e9e
1,291
py
Python
Python/file_replace_newline/src/file_operations.py
toddnguyen47/utility-files
de7d9839b5265c10d7ec017f8e08dfb8d6caac2a
[ "MIT" ]
null
null
null
Python/file_replace_newline/src/file_operations.py
toddnguyen47/utility-files
de7d9839b5265c10d7ec017f8e08dfb8d6caac2a
[ "MIT" ]
1
2021-04-20T22:01:09.000Z
2021-04-20T22:01:09.000Z
Python/file_replace_newline/src/file_operations.py
toddnguyen47/utility-files
de7d9839b5265c10d7ec017f8e08dfb8d6caac2a
[ "MIT" ]
1
2021-03-18T03:42:03.000Z
2021-03-18T03:42:03.000Z
from typing import List import re _non_whitespace = re.compile("\S") class FileOperations: def __init__(self, file_path: str): self._file_path: str = file_path self._lines: List[str] = [] def execute(self): self._read_in_file() self._trim_all_lines() self._output_back...
31.487805
85
0.620449
7ab286219bf5abea85cc22b5bc9c6d08e938a11d
18,034
py
Python
intersight/models/iam_resource_limits.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/iam_resource_limits.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/iam_resource_limits.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamResourceLimits...
34.814672
738
0.64883
9c0a9c8d6b52a6004e16935f4494468359c20b29
8,045
py
Python
rl-fmri/test_fMRI.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
rl-fmri/test_fMRI.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
rl-fmri/test_fMRI.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
import time import pickle import os import matplotlib.pyplot as plt from matplotlib import colors import matplotlib.colors as mcolors from tqdm import tqdm import cv2 import pybullet from stable_baselines3.common.policies import ActorCriticPolicy import yaml import torch as th import numpy as np from stable_baselines3 ...
42.342105
149
0.63729
54ef3244dda5ea03bda4fe6d287d3b13094834fe
38,549
py
Python
dojo/filters.py
everable/django-DefectDojo
1548982c1f197f3f702162846d314b16bb687c78
[ "BSD-3-Clause" ]
1
2020-03-27T06:58:40.000Z
2020-03-27T06:58:40.000Z
dojo/filters.py
viral-sangani/django-DefectDojo
e0fa585ee770bd0b15ba4a73bd81e6cc043650fd
[ "BSD-3-Clause" ]
30
2020-08-11T21:29:57.000Z
2022-03-17T19:02:50.000Z
dojo/filters.py
viral-sangani/django-DefectDojo
e0fa585ee770bd0b15ba4a73bd81e6cc043650fd
[ "BSD-3-Clause" ]
1
2020-09-30T13:01:50.000Z
2020-09-30T13:01:50.000Z
__author__ = 'Jay Paz' import collections from datetime import timedelta, datetime from auditlog.models import LogEntry from django.contrib.auth.models import User from django.utils import six from django.utils.translation import ugettext_lazy as _ from django_filters import FilterSet, CharFilter, OrderingFilter, \ ...
35.463661
122
0.588835
0a36325af6d380faf56c30bab1c768105316b4db
1,329
py
Python
seq2seq/combine.py
scarletcho/hypernym-path-generation
9573aa94ba7c7fadd58879c15dfda35a56254198
[ "MIT" ]
2
2020-12-12T21:50:24.000Z
2021-07-04T21:53:44.000Z
seq2seq/combine.py
scarletcho/hypernym-path-generation
9573aa94ba7c7fadd58879c15dfda35a56254198
[ "MIT" ]
null
null
null
seq2seq/combine.py
scarletcho/hypernym-path-generation
9573aa94ba7c7fadd58879c15dfda35a56254198
[ "MIT" ]
1
2021-07-04T21:54:23.000Z
2021-07-04T21:54:23.000Z
import sys if __name__ == '__main__': src_file = sys.argv[1] tgt_file = sys.argv[2] pred_file = sys.argv[3] epochs = sys.argv[4] category = sys.argv[5] # verbs, nouns or instnouns split = sys.argv[6] # val, or test #optional (if used 'reversed' version, hypernym is first, not last) ...
26.58
82
0.567344
f1d00a59c4f8f0b5aa28d789f2b2db1aad53200f
2,022
py
Python
tensorflow/python/data/experimental/kernel_tests/optimization/shuffle_and_repeat_fusion_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
5
2018-07-04T22:14:02.000Z
2018-07-04T22:21:43.000Z
tensorflow/python/data/experimental/kernel_tests/optimization/shuffle_and_repeat_fusion_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/experimental/kernel_tests/optimization/shuffle_and_repeat_fusion_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
2
2019-02-26T16:21:15.000Z
2020-12-04T17:48:17.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.884615
80
0.739367
f2b97694d0002349aaf516e73d271a6cd8cb2899
837
py
Python
examples/ces/delete_alarm.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
examples/ces/delete_alarm.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
examples/ces/delete_alarm.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
#!/usr/bin/env python3 # 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, ...
32.192308
76
0.740741
7118ca50b773cab142c4cf0de43d7a5b595f7c72
2,071
py
Python
adafruit-circuitpython-bundle-py-20201107/examples/monsterm4sk_rainbow_stars.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
7
2021-03-15T10:06:20.000Z
2022-03-23T02:53:15.000Z
adafruit-circuitpython-bundle-py-20201107/examples/monsterm4sk_rainbow_stars.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
5
2021-04-27T18:21:11.000Z
2021-05-02T14:17:14.000Z
adafruit-circuitpython-bundle-py-20201107/examples/monsterm4sk_rainbow_stars.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
# SPDX-FileCopyrightText: 2020 Foamyguy, written for Adafruit Industries # # SPDX-License-Identifier: Unlicense """ CircuitPython example for Monster M4sk. Draws star images on each screen. When buttons are pressed set the stars to a different color. When the nose is booped make the eyes change through the r...
23.269663
76
0.661516
71288cdb66a060553da9dc362a262fd4a0219e39
20,690
py
Python
pywifi/_wifiutil_win.py
hktkqj/pywifi
addfd97fed6252fe7c7951a8e64579144b3637b2
[ "MIT" ]
null
null
null
pywifi/_wifiutil_win.py
hktkqj/pywifi
addfd97fed6252fe7c7951a8e64579144b3637b2
[ "MIT" ]
null
null
null
pywifi/_wifiutil_win.py
hktkqj/pywifi
addfd97fed6252fe7c7951a8e64579144b3637b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim: set fileencoding=utf-8 """Implementations of wifi functions of Linux.""" import re import platform import time import logging from ctypes import * from ctypes.wintypes import * from comtypes import GUID from .const import * from .profile import Profile if platform.release().lower() ==...
31.929012
109
0.589125
de4152fd7f7ec52477164848911f8b1521fcf97c
1,094
py
Python
examples/widgets/span_selector.py
argriffing/matplotlib
5555f5463fb5f995a59f7651c0034a5d6a4c7e84
[ "MIT", "BSD-3-Clause" ]
1
2019-11-18T21:53:55.000Z
2019-11-18T21:53:55.000Z
examples/widgets/span_selector.py
argriffing/matplotlib
5555f5463fb5f995a59f7651c0034a5d6a4c7e84
[ "MIT", "BSD-3-Clause" ]
2
2021-05-10T17:57:41.000Z
2021-07-26T16:23:09.000Z
examples/widgets/span_selector.py
kdavies4/matplotlib
330aefbd031ee227213afe655c5158320015d45b
[ "MIT", "BSD-3-Clause" ]
1
2015-12-21T07:24:54.000Z
2015-12-21T07:24:54.000Z
#!/usr/bin/env python """ The SpanSelector is a mouse widget to select a xmin/xmax range and plot the detail view of the selected region in the lower axes """ import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import SpanSelector fig = plt.figure(figsize=(8, 6)) ax = fig.add_subplot(211, axisbg...
26.682927
75
0.671846
6fc1d58400b8e7856475b228f395f8f7a44ba6fa
2,755
py
Python
boxen/_depot.py
artPlusPlus/boxen
93ce396ce1646fef1a0e3f6bc5aa44c1d6313e7f
[ "MIT" ]
null
null
null
boxen/_depot.py
artPlusPlus/boxen
93ce396ce1646fef1a0e3f6bc5aa44c1d6313e7f
[ "MIT" ]
null
null
null
boxen/_depot.py
artPlusPlus/boxen
93ce396ce1646fef1a0e3f6bc5aa44c1d6313e7f
[ "MIT" ]
null
null
null
import os try: import ujson as jlib except ImportError: try: import simplejson as jlib except ImportError: import json as jlib from ._object_cache import ObjectCache from ._container import Container class Depot(object): """ A Depot manages Containers. """ @property ...
32.034884
103
0.657713
155cc19037af3f9c2f0840fe344daeb4496cea30
7,698
py
Python
experiments.py
mattjj/pyhsmm-collapsedinfinite
81a60c025beec6fb065bc9f4e23cea43b6f6725c
[ "MIT" ]
null
null
null
experiments.py
mattjj/pyhsmm-collapsedinfinite
81a60c025beec6fb065bc9f4e23cea43b6f6725c
[ "MIT" ]
null
null
null
experiments.py
mattjj/pyhsmm-collapsedinfinite
81a60c025beec6fb065bc9f4e23cea43b6f6725c
[ "MIT" ]
1
2021-10-06T15:12:44.000Z
2021-10-06T15:12:44.000Z
from __future__ import division import numpy as np na = np.newaxis import cPickle, os from matplotlib import pyplot as plt import pyhsmm, models, util, timing import diskmemo SAVING = False obs_hypparams = dict(mu_0=0.,kappa_0=0.02,sigmasq_0=1,nu_0=10) dur_psn_hypparams = dict(alpha_0=2*10,beta_0=2) dur_geo_hypparam...
34.832579
245
0.68966
34e5959119328cadecf03fe2ee59e835598e4230
699
py
Python
general-practice/Exercises solved/codingbat/Logic1/date_fashion.py
lugabrielbueno/Projeto
f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0
[ "MIT" ]
null
null
null
general-practice/Exercises solved/codingbat/Logic1/date_fashion.py
lugabrielbueno/Projeto
f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0
[ "MIT" ]
null
null
null
general-practice/Exercises solved/codingbat/Logic1/date_fashion.py
lugabrielbueno/Projeto
f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0
[ "MIT" ]
null
null
null
#You and your date are trying to get a table at a restaurant. The parameter "you" is the stylishness of your clothes, in the range 0..10, and "date" is the stylishness of your date's clothes. The result getting the table is encoded as an int value with 0=no, 1=maybe, 2=yes. If either of you is very stylish, 8 or more, ...
53.769231
474
0.678112
7940cf9fc374d7add1579145f2b30e5bfe418350
425
py
Python
src/veem/models/address.py
veeminc/Veem-python-sdk
2f7527af0139a3f12e544fe2b51b3021df404f3c
[ "MIT" ]
1
2021-07-05T22:52:46.000Z
2021-07-05T22:52:46.000Z
src/veem/models/address.py
veeminc/Veem-python-sdk
2f7527af0139a3f12e544fe2b51b3021df404f3c
[ "MIT" ]
1
2020-09-15T16:25:39.000Z
2020-09-15T16:25:39.000Z
src/veem/models/address.py
veeminc/Veem-python-sdk
2f7527af0139a3f12e544fe2b51b3021df404f3c
[ "MIT" ]
2
2021-08-11T18:05:08.000Z
2022-02-06T08:20:49.000Z
from veem.models.base import Base class Address(Base): def __init__(self, line1=None, line2=None, city=None, stateProvince=None, postalCode=None, **kwargs): self.line1 = line1 self.line2 = line2 ...
23.611111
42
0.508235
70180e99fdb14765936bb6afd96d7736fa9a787b
6,293
py
Python
snappy_wrappers/wrappers/mutect_par/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
5
2021-02-26T10:39:56.000Z
2021-12-23T07:53:26.000Z
snappy_wrappers/wrappers/mutect_par/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
93
2021-02-22T11:23:59.000Z
2022-03-31T09:58:39.000Z
snappy_wrappers/wrappers/mutect_par/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
3
2021-02-22T11:44:59.000Z
2021-06-21T19:33:53.000Z
# -*- coding: utf-8 -*- """Wrapper for running MuTect variant caller in parallel, genome is split into windows isort:skip_file """ import os import sys import textwrap from snakemake import shell # A hack is required for being able to import snappy_wrappers modules when in development mode. # TODO: is there a more ...
36.166667
119
0.508502
9c4b76d8009f699790de39c8a2081c09cc5ea36b
1,967
py
Python
homeassistant/components/gios/__init__.py
thehaxxa/core
bc9f0caf4ac1fd7b67d694cedb02876fe221c8e6
[ "Apache-2.0" ]
null
null
null
homeassistant/components/gios/__init__.py
thehaxxa/core
bc9f0caf4ac1fd7b67d694cedb02876fe221c8e6
[ "Apache-2.0" ]
70
2020-08-05T07:20:00.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/gios/__init__.py
zacwest/hass-core
b04247110736a6d700b477de8fe023cc7e79a022
[ "Apache-2.0" ]
null
null
null
"""The GIOS component.""" import logging from aiohttp.client_exceptions import ClientConnectorError from async_timeout import timeout from gios import ApiError, Gios, InvalidSensorsData, NoStationError from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.update_coordinat...
31.222222
88
0.723945
65245848991781faac81776c4297423730762000
979
py
Python
User/migrations/0004_auto_20180613_2107.py
Arianxx/ShareForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
39
2018-09-08T04:40:59.000Z
2021-09-10T02:02:04.000Z
User/migrations/0004_auto_20180613_2107.py
STARCASTPOD/BookForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
null
null
null
User/migrations/0004_auto_20180613_2107.py
STARCASTPOD/BookForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
8
2018-09-08T08:50:45.000Z
2020-03-13T15:38:56.000Z
# Generated by Django 2.0.5 on 2018-06-13 13:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Discussion', '0002_auto_20180613_1819'), ('Content', '0001_initial'), ('User', '0003_auto_20180613_1836'), ] operations = [ m...
29.666667
110
0.592441
44270788c1d01db501021fcdb572cfc34aae098e
917
py
Python
cartopy/run_test.py
stevemkim/conda-recipes
4fa403587b187d87cd6f77abf0b24b8c3f351564
[ "Apache-2.0" ]
3
2016-09-02T15:49:19.000Z
2019-02-06T22:54:11.000Z
cartopy/run_test.py
stevemkim/conda-recipes
4fa403587b187d87cd6f77abf0b24b8c3f351564
[ "Apache-2.0" ]
43
2015-03-03T14:07:21.000Z
2018-02-16T16:31:34.000Z
cartopy/run_test.py
stevemkim/conda-recipes
4fa403587b187d87cd6f77abf0b24b8c3f351564
[ "Apache-2.0" ]
24
2015-03-04T02:03:48.000Z
2018-02-16T16:20:07.000Z
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import cartopy.crs as ccrs def sample_data(shape=(73, 145)): """Returns ``lons``, ``lats`` and ``data`` of some fake data.""" nlats, nlons = shape lats = np.linspace(-np.pi / 2, np.pi / 2, nlats) lons = np.lin...
22.925
68
0.585605
54e02a16cf4cb2eec8a406a7bdcbed7566639d5a
4,035
py
Python
setup.py
silver-dragon/hy
c7b2f47681f54b365da22ec8d65c7dbc59ab7501
[ "MIT" ]
null
null
null
setup.py
silver-dragon/hy
c7b2f47681f54b365da22ec8d65c7dbc59ab7501
[ "MIT" ]
null
null
null
setup.py
silver-dragon/hy
c7b2f47681f54b365da22ec8d65c7dbc59ab7501
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2021 the authors. # This file is part of Hy, which is free software licensed under the Expat # license. See the LICENSE. import glob import importlib import inspect import os import sys from setuptools import find_packages, setup from setuptools.command.install import install import ...
33.625
85
0.610657
b4897a82875296b3943857794fbd2ebfe8968d0a
11,881
py
Python
baselineTagger.py
chaitanyamalaviya/NeuralFactorGraph
6cd664b7edc43d56c6f1165baa7e7625eb0f7cd8
[ "MIT" ]
48
2018-05-15T12:46:36.000Z
2021-03-11T09:34:10.000Z
baselineTagger.py
chaitanyamalaviya/NeuralFactorGraph
6cd664b7edc43d56c6f1165baa7e7625eb0f7cd8
[ "MIT" ]
1
2018-10-28T21:11:47.000Z
2018-10-31T20:31:09.000Z
baselineTagger.py
chaitanyamalaviya/NeuralFactorGraph
6cd664b7edc43d56c6f1165baa7e7625eb0f7cd8
[ "MIT" ]
6
2018-07-03T01:28:41.000Z
2020-01-23T13:25:49.000Z
from __future__ import division, print_function import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import argparse import pdb import numpy as np import os import pickle import utils, models parser = argparse.ArgumentParser() parser.add_ar...
39.34106
149
0.616531
59353379ac8b35cf2745507680ae2ff35fb1f143
14,056
py
Python
st2common/tests/unit/test_executions.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_executions.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2common/tests/unit/test_executions.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
1
2021-07-10T15:02:29.000Z
2021-07-10T15:02:29.000Z
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
53.444867
100
0.683552
6e1bdaed34ec244a1caf86e8731264a5c9f03a15
15,516
py
Python
tests/test_timeseries.py
sixy6e/PyRate
8203989e7d9b675491e79610cff04728d8dc3973
[ "Apache-2.0" ]
145
2017-01-20T08:47:37.000Z
2022-03-28T07:37:28.000Z
tests/test_timeseries.py
sixy6e/PyRate
8203989e7d9b675491e79610cff04728d8dc3973
[ "Apache-2.0" ]
215
2017-01-24T22:42:05.000Z
2022-03-16T00:03:34.000Z
tests/test_timeseries.py
sixy6e/PyRate
8203989e7d9b675491e79610cff04728d8dc3973
[ "Apache-2.0" ]
63
2017-02-13T12:52:16.000Z
2022-03-30T06:47:38.000Z
# This Python module is part of the PyRate software package. # # Copyright 2021 Geoscience Australia # # 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/...
36.855107
111
0.643529
847da45e40ed3cdc6567f1f52b95e8bfad511a77
4,494
py
Python
sdk/python/pulumi_azure_native/documentdb/v20200401/list_database_account_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20200401/list_database_account_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20200401/list_database_account_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
42.8
158
0.722074
bf49d986c6bb725688f2aa36bf2eac92ad0a471c
544
py
Python
manage.py
zhangyu836/django-excel-export-demo
0fbb14991a16f89f1b029db75c7e6a21633f4b6a
[ "BSD-2-Clause" ]
null
null
null
manage.py
zhangyu836/django-excel-export-demo
0fbb14991a16f89f1b029db75c7e6a21633f4b6a
[ "BSD-2-Clause" ]
null
null
null
manage.py
zhangyu836/django-excel-export-demo
0fbb14991a16f89f1b029db75c7e6a21633f4b6a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.hksettings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Dja...
34
74
0.665441
259e6bc387f7c4b8a80b0d13afa73fc941128f1a
1,149
py
Python
tests/tracker_generic_code.py
J-Pai/408DaisyJetson
a873154325c790303f09ecfc03377066751cd601
[ "MIT" ]
1
2018-07-04T03:03:34.000Z
2018-07-04T03:03:34.000Z
tests/tracker_generic_code.py
J-Pai/408DaisyJetson
a873154325c790303f09ecfc03377066751cd601
[ "MIT" ]
null
null
null
tests/tracker_generic_code.py
J-Pai/408DaisyJetson
a873154325c790303f09ecfc03377066751cd601
[ "MIT" ]
1
2020-07-24T19:48:57.000Z
2020-07-24T19:48:57.000Z
import cv2 CAM_NUM = 1 def track_object(): video = cv2.VideoCapture(CAM_NUM) # Setup the input video video.set(3, 640) video.set(4, 480) ok, frame = video.read() tracker = cv2.TrackerKCF_create() # Create the tracker object bbox = cv2.selectROI(frame, False) # Se...
31.054054
98
0.556136
877b3688176f87566f266ed3e8b0c106381ec2e5
2,441
py
Python
InvenTree/build/urls.py
onurtatli/InvenTree
4ce479cf97cc62563ab08ed6123d3c6ca28ba6a3
[ "MIT" ]
null
null
null
InvenTree/build/urls.py
onurtatli/InvenTree
4ce479cf97cc62563ab08ed6123d3c6ca28ba6a3
[ "MIT" ]
null
null
null
InvenTree/build/urls.py
onurtatli/InvenTree
4ce479cf97cc62563ab08ed6123d3c6ca28ba6a3
[ "MIT" ]
null
null
null
""" URL lookup for Build app """ from django.conf.urls import url, include from . import views build_detail_urls = [ url(r'^edit/', views.BuildUpdate.as_view(), name='build-edit'), url(r'^allocate/', views.BuildAllocate.as_view(), name='build-allocate'), url(r'^cancel/', views.BuildCancel.as_view(), name...
46.942308
119
0.663662
67fa6229c4a934057c5e25c1b03d000d5676a2f3
12,761
py
Python
django/contrib/staticfiles/management/commands/collectstatic.py
AlexHill/django
fe1389e911b0cdc487e5547c09c920c12f4e1ce0
[ "BSD-3-Clause" ]
1
2017-02-21T09:06:04.000Z
2017-02-21T09:06:04.000Z
django/contrib/staticfiles/management/commands/collectstatic.py
amit2014/django
072e25eee70c0e629fcbb37f0485a6c6694b6856
[ "BSD-3-Clause" ]
null
null
null
django/contrib/staticfiles/management/commands/collectstatic.py
amit2014/django
072e25eee70c0e629fcbb37f0485a6c6694b6856
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import os import sys from collections import OrderedDict from optparse import make_option from django.core.files.storage import FileSystemStorage from django.core.management.base import CommandError, NoArgsCommand from django.utils.encoding import smart_text from django.utils.s...
42.395349
104
0.570175
ef5cbbe3dd53bccd8ae710d2cf50505094791235
27,347
py
Python
lib/pyasn1_modules/rfc4210.py
itielshwartz/BackendApi
bc21013f8d96bbf0fba7a99f1deb5486ad32b168
[ "Apache-2.0" ]
null
null
null
lib/pyasn1_modules/rfc4210.py
itielshwartz/BackendApi
bc21013f8d96bbf0fba7a99f1deb5486ad32b168
[ "Apache-2.0" ]
null
null
null
lib/pyasn1_modules/rfc4210.py
itielshwartz/BackendApi
bc21013f8d96bbf0fba7a99f1deb5486ad32b168
[ "Apache-2.0" ]
null
null
null
# # Certificate Management Protocol structures as per RFC4210 # # Based on Alex Railean's work # from pyasn1.type import tag, namedtype, namedval, univ, constraint, char, useful from pyasn1_modules import rfc2459, rfc2511, rfc2314 MAX = 64 class KeyIdentifier(univ.OctetString): pass class CMPCertificate(rfc2459.Ce...
36.462667
109
0.578564
21ee11095fdb772822fa2796a520a4ca22a5b5b6
14,240
py
Python
src/visitpy/visit_flow/flow/src/filters/pyocl_env.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/src/filters/pyocl_env.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/flow/src/filters/pyocl_env.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: pyocl_env.py author: Cyrus Harrison <cyrush@llnl.gov> created: 4/21/2012 description:...
36.606684
95
0.567556
a9412ed05a40b14c6dd54a85bf781593c0008936
508
py
Python
prep_data.py
mlrun/ltm
74d0b3ddc2462265528615d91013fdb409e91d66
[ "Apache-2.0" ]
null
null
null
prep_data.py
mlrun/ltm
74d0b3ddc2462265528615d91013fdb409e91d66
[ "Apache-2.0" ]
8
2021-09-01T06:50:59.000Z
2021-09-01T11:48:03.000Z
prep_data.py
mlrun/ltm
74d0b3ddc2462265528615d91013fdb409e91d66
[ "Apache-2.0" ]
null
null
null
import mlrun def prep_data(context, source_url: mlrun.DataItem, label_column='label'): # Convert the DataItem to a pandas DataFrame df = source_url.as_df() print("data url:", source_url.url) df[label_column] = df[label_column].astype('category').cat.codes # Record the DataFrane length afte...
39.076923
74
0.702756
a7b07e61870397dea9d60d450e2ca633cc123e2c
203
py
Python
tccli/services/sms/__init__.py
hapsyou/tencentcloud-cli-intl-en
fa8ba71164484f9a2be4b983080a1de08606c0b0
[ "Apache-2.0" ]
null
null
null
tccli/services/sms/__init__.py
hapsyou/tencentcloud-cli-intl-en
fa8ba71164484f9a2be4b983080a1de08606c0b0
[ "Apache-2.0" ]
null
null
null
tccli/services/sms/__init__.py
hapsyou/tencentcloud-cli-intl-en
fa8ba71164484f9a2be4b983080a1de08606c0b0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from tccli.services.sms.sms_client import register_arg from tccli.services.sms.sms_client import get_actions_info from tccli.services.sms.sms_client import AVAILABLE_VERSION_LIST
40.6
64
0.827586
71fe4d9f10a66dda9899f7f659594c967a8b7908
1,054
py
Python
setup.py
trendels/fieldmarshal
d3d1803d62d84fc1efc4613cd5b86e5ea976d2f4
[ "MIT" ]
null
null
null
setup.py
trendels/fieldmarshal
d3d1803d62d84fc1efc4613cd5b86e5ea976d2f4
[ "MIT" ]
null
null
null
setup.py
trendels/fieldmarshal
d3d1803d62d84fc1efc4613cd5b86e5ea976d2f4
[ "MIT" ]
null
null
null
import os import re from setuptools import setup, find_packages with open(os.path.join('src', 'fieldmarshal', '__init__.py')) as f: VERSION = re.search( r'^__version__\s*=\s*[\'"](.*)[\'"]', f.read(), re.M ).group(1) with open('README.md') as f: README = f.read() setup( name='fieldmarshal', ...
29.277778
78
0.63093
8ef2cfc35c28b79e9aaf6ac289fd8a3d0dc4ce8c
6,828
py
Python
main.py
rajeshsaini2115/pyDF-Bot
752f7fd49037936947b0db63fb812ecbdeac8a17
[ "MIT" ]
2
2021-09-06T02:11:46.000Z
2021-09-06T02:13:08.000Z
main.py
rajeshsaini2115/pyDF-Bot
752f7fd49037936947b0db63fb812ecbdeac8a17
[ "MIT" ]
null
null
null
main.py
rajeshsaini2115/pyDF-Bot
752f7fd49037936947b0db63fb812ecbdeac8a17
[ "MIT" ]
null
null
null
import os from os import error, system, name import logging import pyrogram import PyPDF2 import time from decouple import config from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, ForceReply from pyrogram.types import User, Message, Document bughunter0 = Cl...
41.634146
482
0.618483
7aa08e29665560b03d1400060f6b4e952f3f612b
621
py
Python
tests/test_sitk2vtk.py
paulin1C/dicom2stl
b3e7eaae2b6ec7797c617966e88f2ad4e1e1cf47
[ "Apache-2.0" ]
1
2021-03-29T17:23:02.000Z
2021-03-29T17:23:02.000Z
tests/test_sitk2vtk.py
paulin1C/dicom2stl
b3e7eaae2b6ec7797c617966e88f2ad4e1e1cf47
[ "Apache-2.0" ]
null
null
null
tests/test_sitk2vtk.py
paulin1C/dicom2stl
b3e7eaae2b6ec7797c617966e88f2ad4e1e1cf47
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import unittest from utils import sitk2vtk import vtk import SimpleITK as sitk import platform class TestSITK2VTK(unittest.TestCase): def test_sitk2vtk(self): print("Testing sitk2vtk") dims = [102, 102, 102] img = sitk.GaussianSource(sitk.sitkUInt8, dims) ...
23
63
0.663446
9bbd4164b7a8a9fcfe1e664329ee1ad2e8a46ca5
13,941
py
Python
rlcard/agents/gin_rummy_human_agent/gui_gin_rummy/game_canvas_updater.py
196693/rlcard
81f8b579a2efcce7f195c8c2c8906b574c0e8abb
[ "MIT" ]
1,735
2019-09-05T12:49:43.000Z
2022-03-30T12:02:07.000Z
rlcard/agents/gin_rummy_human_agent/gui_gin_rummy/game_canvas_updater.py
Taidy-zy/rlcard
cd4645d70eacc6016fcaf96873d6bc6869fcf2d9
[ "MIT" ]
197
2019-09-14T05:59:02.000Z
2022-03-03T19:21:19.000Z
rlcard/agents/gin_rummy_human_agent/gui_gin_rummy/game_canvas_updater.py
Taidy-zy/rlcard
cd4645d70eacc6016fcaf96873d6bc6869fcf2d9
[ "MIT" ]
476
2019-09-13T15:25:32.000Z
2022-03-29T01:41:29.000Z
''' Project: Gui Gin Rummy File name: game_canvas_updater.py Author: William Hale Date created: 3/14/2020 ''' # from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from .game_canvas import GameCanvas from rlcard.envs.gin_rummy import GinRummyEnv from ..gin_rumm...
48.915789
168
0.693853
3fc6ea625182569bf59302d34e338ce8017086f0
626
py
Python
tests/sample_runbooks/simple_runbook.py
tuxtof/calm-dsl
5af67435d8304b97e170a690068f2d5975e9bfe6
[ "Apache-2.0" ]
37
2019-12-23T15:23:20.000Z
2022-03-15T11:12:11.000Z
tests/sample_runbooks/simple_runbook.py
gabybeitler/calm-dsl
bac453413cfcf800eef95d89d5a7323c83654a93
[ "Apache-2.0" ]
144
2020-03-09T11:22:09.000Z
2022-03-28T21:34:09.000Z
tests/sample_runbooks/simple_runbook.py
gabybeitler/calm-dsl
bac453413cfcf800eef95d89d5a7323c83654a93
[ "Apache-2.0" ]
46
2020-01-23T14:28:04.000Z
2022-03-09T04:17:10.000Z
""" Calm DSL Sample Runbook used for testing runbook pause and play """ from calm.dsl.runbooks import runbook, runbook_json from calm.dsl.runbooks import RunbookTask as Task code = '''print "Start" sleep(20) print "End"''' @runbook def DslSimpleRunbook(): "Runbook example" Task.Exec.escript(name="Task1",...
19.5625
63
0.702875
ba0bd9b179a2a5dca882d8a99401474925d770e0
726
py
Python
empresa.py
bernardolorenzini/Python_Projects
cf2b196de10a90f767cd227fa34e649c8d681dc5
[ "MIT" ]
null
null
null
empresa.py
bernardolorenzini/Python_Projects
cf2b196de10a90f767cd227fa34e649c8d681dc5
[ "MIT" ]
null
null
null
empresa.py
bernardolorenzini/Python_Projects
cf2b196de10a90f767cd227fa34e649c8d681dc5
[ "MIT" ]
null
null
null
class Funcionario: id = 0 def __init__(self, nome, sobrenome, idade, data_entrada): self.nome = nome self.sobrenome = sobrenome self.idade = idade self.data_entrada = data_entrada class Gerente(Funcionario): juros = 800 def __init__(self, nome, sobrenome, idade, data_en...
27.923077
84
0.636364
1ff8718a8b65b738eb536f85eb2b5e0906b73ccb
504
py
Python
chapter-11/exercise05.py
krastin/pp-cs3.0
502be9aac2d84215db176864e443c219e5e26591
[ "MIT" ]
null
null
null
chapter-11/exercise05.py
krastin/pp-cs3.0
502be9aac2d84215db176864e443c219e5e26591
[ "MIT" ]
null
null
null
chapter-11/exercise05.py
krastin/pp-cs3.0
502be9aac2d84215db176864e443c219e5e26591
[ "MIT" ]
null
null
null
from typing import Dict def count_values(sample_dict: Dict) -> int: """takes a single dictionary as an argument and returns the number of distinct values it contains >>> sample_dict = {'red': 1, 'green': 1, 'blue': 2} >>> count_values(sample_dict) 2 """ unique_values = [] for k,v in sample_...
28
101
0.646825
1a5f6f73c2c3bb548f4aee616afc86e41ab844f4
16,725
py
Python
artssat/atmosphere/atmosphere.py
simonpf/pARTS
b4d9f4c2ceac594273c5589e44fe6a3a4f8d7028
[ "MIT" ]
3
2020-09-02T08:20:42.000Z
2020-12-18T17:19:38.000Z
artssat/atmosphere/atmosphere.py
simonpf/pARTS
b4d9f4c2ceac594273c5589e44fe6a3a4f8d7028
[ "MIT" ]
null
null
null
artssat/atmosphere/atmosphere.py
simonpf/pARTS
b4d9f4c2ceac594273c5589e44fe6a3a4f8d7028
[ "MIT" ]
null
null
null
""" The model atmosphere ==================== """ import numpy as np from artssat.atmosphere.cloud_box import CloudBox from artssat.jacobian import JacobianBase from artssat.retrieval import RetrievalBase, RetrievalQuantity from artssat.atmosphere.catalogs import LineCatalog, Perrin class TemperatureJacobian(Jacobi...
31.378987
86
0.540269
89e7adf6f059ddc6e289252a52a737441d16d030
11,435
py
Python
model/converted_condensenetv2.py
undol26/CondenseNetV2
9fb144ea8010a0e152b09b5224d2b343da3b624b
[ "MIT" ]
null
null
null
model/converted_condensenetv2.py
undol26/CondenseNetV2
9fb144ea8010a0e152b09b5224d2b343da3b624b
[ "MIT" ]
2
2021-10-15T07:44:35.000Z
2021-10-15T07:50:01.000Z
model/converted_condensenetv2.py
undol26/CondenseNetV2
9fb144ea8010a0e152b09b5224d2b343da3b624b
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from utils import Conv, CondenseLGC, CondenseSFR, HS, SELayer, ResNet __all__ = ['ConvertedCondenseNetV2', 'converted_cdnv2_a', 'converted_cdnv2_b', 'converted_cdnv2_c', 'converted_cdnv2_d'] class _SFR_DenseLayer(nn.Module): def __init__(self, in_channels, growth_rate, args, ac...
39.431034
126
0.570529
b2726e263a14fa5cb0d5df92ef55266b383cf804
354
py
Python
solutions/2017/prob_12.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
1
2021-02-27T09:46:06.000Z
2021-02-27T09:46:06.000Z
solutions/2017/prob_12.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
null
null
null
solutions/2017/prob_12.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
1
2021-02-27T12:03:33.000Z
2021-02-27T12:03:33.000Z
import datetime entrada = input() while entrada != '#': nombre, salida, final = entrada.split() salida = float(salida) final = float(final) salidaseg = datetime.datetime.fromtimestamp(salida).isoformat() finalseg = datetime.datetime.fromtimestamp(final).isoformat() tiempo = int(salidaseg)-(fin...
27.230769
67
0.694915
f5e89bd15f104b59977c2640e56767481e56f1eb
4,530
py
Python
test/unit/driver/test_docker.py
skyscooby/molecule
a0b8127f14d34360f490b9c3e7518c89beb50677
[ "MIT" ]
null
null
null
test/unit/driver/test_docker.py
skyscooby/molecule
a0b8127f14d34360f490b9c3e7518c89beb50677
[ "MIT" ]
null
null
null
test/unit/driver/test_docker.py
skyscooby/molecule
a0b8127f14d34360f490b9c3e7518c89beb50677
[ "MIT" ]
1
2021-04-26T19:47:39.000Z
2021-04-26T19:47:39.000Z
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
28.853503
79
0.715453
ed71bf9a2b9f856c36f934e656577ad61df8d29e
2,831
py
Python
software/cl_reachy/cl_reachy/view/sound/threshold/threshold.py
wisehackermonkey/CoLab-Reachy
538f3e6d6f43f87cdf2c91e97229b20a7fb490a9
[ "CC0-1.0" ]
3
2021-03-28T19:43:57.000Z
2021-12-19T04:42:02.000Z
software/cl_reachy/cl_reachy/view/sound/threshold/threshold.py
wisehackermonkey/CoLab-Reachy
538f3e6d6f43f87cdf2c91e97229b20a7fb490a9
[ "CC0-1.0" ]
7
2020-09-23T00:33:53.000Z
2021-08-11T03:15:43.000Z
software/cl_reachy/cl_reachy/view/sound/threshold/threshold.py
wisehackermonkey/CoLab-Reachy
538f3e6d6f43f87cdf2c91e97229b20a7fb490a9
[ "CC0-1.0" ]
1
2021-01-21T02:32:15.000Z
2021-01-21T02:32:15.000Z
import time from ....node import NodeBase from .meter import ThresholdMeter from ....model.messages import AudioInputStateMessage, ThresholdStartMessage class Threshold(NodeBase): def __init__(self, node_name="audioinput", host="127.0.0.1", port=1883, username=None, password=None, subscribe_dic...
32.918605
105
0.636877
305ef1176b55be054dbe3bd9152ca08402a168a5
1,311
py
Python
turtlebot2/kobuki_base/kobuki_ros/kobuki_node/launch/kobuki_node-composed-launch.py
RoboticsLabURJC/2021-tfg-carlos-caminero
e23991616cb971b9a0bd95b653789c54f571a930
[ "Apache-2.0" ]
null
null
null
turtlebot2/kobuki_base/kobuki_ros/kobuki_node/launch/kobuki_node-composed-launch.py
RoboticsLabURJC/2021-tfg-carlos-caminero
e23991616cb971b9a0bd95b653789c54f571a930
[ "Apache-2.0" ]
null
null
null
turtlebot2/kobuki_base/kobuki_ros/kobuki_node/launch/kobuki_node-composed-launch.py
RoboticsLabURJC/2021-tfg-carlos-caminero
e23991616cb971b9a0bd95b653789c54f571a930
[ "Apache-2.0" ]
null
null
null
import os import ament_index_python.packages from launch import LaunchDescription from launch_ros.actions import ComposableNodeContainer from launch_ros.descriptions import ComposableNode import yaml def generate_launch_description(): share_dir = ament_index_python.packages.get_package_share_directory('kobuki_...
36.416667
86
0.674294
402c77e8b598c14e724790f1b70df3c8088c859a
438
py
Python
QRSMS/actor/urls.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
4
2020-06-16T09:42:20.000Z
2021-11-24T08:18:16.000Z
QRSMS/actor/urls.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
7
2021-04-08T21:57:34.000Z
2022-02-27T06:41:15.000Z
QRSMS/actor/urls.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
7
2020-11-29T09:45:44.000Z
2022-03-30T15:27:33.000Z
from django.urls import path, include from rest_framework import routers from . import api from . import views from . import models actor = 'actor' router = routers.DefaultRouter() router.register('employee', api.EmployeeViewSet, basename='employee') urlpatterns = [ # urls for Django Rest Framework API # pa...
19.909091
69
0.721461
8056ef02d82e3273ca9e5ee1a0f98da83a92d57b
8,190
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/default_security_rules_operations.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_09_01/operations/default_security_rules_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/default_security_rules_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36: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 ...
46.271186
220
0.668498
c6faf72afdf177c0a1d77b1bd2e39bc76f7fb5e7
7,349
py
Python
bentoml/_internal/frameworks/torchscript.py
matheusMoreno/BentoML
4c139142fae486ba1ccf6b24e89505c030e3df3f
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/frameworks/torchscript.py
matheusMoreno/BentoML
4c139142fae486ba1ccf6b24e89505c030e3df3f
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/frameworks/torchscript.py
matheusMoreno/BentoML
4c139142fae486ba1ccf6b24e89505c030e3df3f
[ "Apache-2.0" ]
null
null
null
import typing as t import logging from typing import TYPE_CHECKING from simple_di import inject from simple_di import Provide import bentoml from bentoml import Tag from ..models import PT_EXT from ..models import SAVE_NAMESPACE from ..utils.pkg import get_pkg_version from ...exceptions import BentoMLException from ...
35.162679
163
0.658049
c12c73e90bf8ae23c594c1ebe9419aaac1ff68cf
3,465
py
Python
functions/analytics_consumer/test/test_main.py
epiphone/lambda-terraform-analytics
b569ee6a7bcb56c8c3c41b875edd4859350010ee
[ "MIT" ]
null
null
null
functions/analytics_consumer/test/test_main.py
epiphone/lambda-terraform-analytics
b569ee6a7bcb56c8c3c41b875edd4859350010ee
[ "MIT" ]
null
null
null
functions/analytics_consumer/test/test_main.py
epiphone/lambda-terraform-analytics
b569ee6a7bcb56c8c3c41b875edd4859350010ee
[ "MIT" ]
null
null
null
import json import os from uuid import uuid4 import boto3 from moto import mock_lambda, mock_sqs import pytest os.environ['WORKER_LAMBDA_ARN'] = 'test-worker-lambda-arn' @pytest.fixture def queue(): """ Return a mocked SQS Queue object, save its URL to an environment variable. """ mock_sqs().start()...
29.117647
78
0.650794
d276dc6311a91141103791545e82b9ef0246c8e5
9,806
py
Python
test/functional/rpc_createmultisig.py
litecoin-foundation/litecoin
de61fa1580d0465edb16251a4db5267f6b1cd047
[ "MIT" ]
28
2020-10-02T23:18:59.000Z
2022-02-21T02:49:42.000Z
test/functional/rpc_createmultisig.py
litecoin-foundation/litecoin
de61fa1580d0465edb16251a4db5267f6b1cd047
[ "MIT" ]
14
2020-10-01T11:23:36.000Z
2021-07-02T04:40:31.000Z
test/functional/rpc_createmultisig.py
litecoin-foundation/litecoin
de61fa1580d0465edb16251a4db5267f6b1cd047
[ "MIT" ]
9
2020-10-06T22:11:10.000Z
2022-01-04T12:09:01.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multisig RPCs""" import binascii import decimal import itertools import json import os from test_...
44.171171
174
0.646033
569aa5ae4cfd2855a489ecab0bd1854c51830f21
837
py
Python
jazzband/tasks.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
jazzband/tasks.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
jazzband/tasks.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
import redis from spinach import signals from spinach.contrib.flask_spinach import Spinach from spinach.brokers.redis import recommended_socket_opts, RedisBroker from .account import github from .members.tasks import tasks as member_tasks from .projects.tasks import tasks as project_tasks class JazzbandSpinach(Spina...
28.862069
78
0.714456
6e2804f479a82538338c393aebc7294f58f684fb
8,180
py
Python
fred/peaktrough.py
cc7768/NYUecondata
086dfac9f0eb53f67a5164d661e74735f64b0978
[ "MIT" ]
null
null
null
fred/peaktrough.py
cc7768/NYUecondata
086dfac9f0eb53f67a5164d661e74735f64b0978
[ "MIT" ]
1
2015-06-17T15:28:53.000Z
2015-06-17T17:03:46.000Z
fred/peaktrough.py
cc7768/NYUecondata
086dfac9f0eb53f67a5164d661e74735f64b0978
[ "MIT" ]
null
null
null
""" Cooley-Rupert-style business cycle figures for Backus-Ferriere-Zin paper, "Risk and ambiguity in models of business cycles," Carnegie-Rochester-NYU conference paper, April 2014. FRED codes: ["GDPC1", "PCECC96", "GPDIC96", "OPHNFB"] (gdp, consumption, investment, labor productivity) Cooley-Rupert link: http://e...
36.355556
93
0.675061
2f89febe522cf9679cab5f4782b32af943faf97c
53
py
Python
src/DataDiagnose/.ipynb_checkpoints/__init__-checkpoint.py
JoeBuzh/DeepWater
9d01167517c91fb2024d2abbcbaa53b072c4fdbf
[ "MIT" ]
1
2020-12-16T07:58:51.000Z
2020-12-16T07:58:51.000Z
src/DataDiagnose/__init__.py
JoeBuzh/DeepWater
9d01167517c91fb2024d2abbcbaa53b072c4fdbf
[ "MIT" ]
null
null
null
src/DataDiagnose/__init__.py
JoeBuzh/DeepWater
9d01167517c91fb2024d2abbcbaa53b072c4fdbf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Data Diagnose Module """
17.666667
28
0.528302
f4dbcc33951a2adebfe97cccb63ebe53361b2527
8,730
py
Python
responder/models.py
adrianuf22/responder
84f9225b6ab6fe1f088fa1dd036097e865290b0b
[ "Apache-2.0" ]
null
null
null
responder/models.py
adrianuf22/responder
84f9225b6ab6fe1f088fa1dd036097e865290b0b
[ "Apache-2.0" ]
null
null
null
responder/models.py
adrianuf22/responder
84f9225b6ab6fe1f088fa1dd036097e865290b0b
[ "Apache-2.0" ]
null
null
null
import io import json import gzip from http.cookies import SimpleCookie import chardet import rfc3986 import graphene import yaml from requests.structures import CaseInsensitiveDict from requests.cookies import RequestsCookieJar from starlette.datastructures import MutableHeaders from starlette.requests import Reques...
30.103448
121
0.601031
aa3c53fd6d46ee624b7f8501fe8550742fc44be3
1,083
py
Python
craftroom/thefriendlystars/panels.py
davidjwilson/craftroom
05721893350a8b554204e188c8413ee33a7768ad
[ "MIT" ]
1
2019-11-25T21:19:03.000Z
2019-11-25T21:19:03.000Z
craftroom/thefriendlystars/panels.py
davidjwilson/craftroom
05721893350a8b554204e188c8413ee33a7768ad
[ "MIT" ]
1
2018-03-14T04:26:54.000Z
2018-03-14T04:26:54.000Z
craftroom/thefriendlystars/panels.py
davidjwilson/craftroom
05721893350a8b554204e188c8413ee33a7768ad
[ "MIT" ]
1
2021-09-10T21:24:43.000Z
2021-09-10T21:24:43.000Z
''' Panel object contains up to one image in the background, and any number of catalogs plotted. ''' import astroquery.skyview class Panel: ''' A single frame of a finder chart, that has up to one image in the background, and any number of catalogs plotted. ''' def __init__(self, image, cata...
22.102041
71
0.581717
2119f2cc9a8515c6f9ade48b78f5d7fb0cf38370
455
py
Python
src/model/card/SaneCard.py
Marsevil/LovecraftLetter_IA
201d32c54448d6fb82f02e9ea6df8c7e59e8309c
[ "MIT" ]
null
null
null
src/model/card/SaneCard.py
Marsevil/LovecraftLetter_IA
201d32c54448d6fb82f02e9ea6df8c7e59e8309c
[ "MIT" ]
null
null
null
src/model/card/SaneCard.py
Marsevil/LovecraftLetter_IA
201d32c54448d6fb82f02e9ea6df8c7e59e8309c
[ "MIT" ]
3
2021-03-17T20:58:04.000Z
2021-05-16T15:20:10.000Z
from .Card import Card from abc import ABC, abstractmethod class SaneCard (Card): """ SaneCard class (abstract) is defined by : - SaneCard(_name : string, _description : string, _value : int) - effect(sanity : Sanity) - hasInsane() """ @abstractmethod def __init__(self, _name, _de...
25.277778
71
0.643956
5e6ef30c728cb4c86bbb415891a6a8c2ba172cee
1,577
py
Python
course/migrations/0001_initial.py
ArnedyNavi/studymate
55e6a2c6717dd478a311ea8bf839a26ca3ef2b40
[ "MIT" ]
4
2021-12-31T17:25:00.000Z
2022-02-08T17:05:46.000Z
course/migrations/0001_initial.py
ArnedyNavi/studymate
55e6a2c6717dd478a311ea8bf839a26ca3ef2b40
[ "MIT" ]
null
null
null
course/migrations/0001_initial.py
ArnedyNavi/studymate
55e6a2c6717dd478a311ea8bf839a26ca3ef2b40
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-05 07:53 import course.models from django.conf import settings from django.db import migrations, models import studymate.storage class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
39.425
219
0.618263
65efeb57abed4bb9ea049c8cf407b98a93b9ace5
1,500
py
Python
malware_rl/__init__.py
xenoxine/malware_rl
6a316caae02491404cb5d335735c22a74269e01f
[ "MIT" ]
61
2020-08-28T19:33:07.000Z
2022-03-26T06:38:29.000Z
malware_rl/__init__.py
xenoxine/malware_rl
6a316caae02491404cb5d335735c22a74269e01f
[ "MIT" ]
11
2020-09-25T18:59:41.000Z
2022-01-31T11:39:57.000Z
malware_rl/__init__.py
xenoxine/malware_rl
6a316caae02491404cb5d335735c22a74269e01f
[ "MIT" ]
12
2020-08-29T01:35:05.000Z
2022-02-07T02:56:35.000Z
from gym.envs.registration import register from sklearn.model_selection import train_test_split from malware_rl.envs.utils import interface # create a holdout set sha256 = interface.get_available_sha256() sha256_train, sha256_holdout = train_test_split(sha256, test_size=40) MAXTURNS = 50 register( id="malconv-t...
21.126761
69
0.636
1afebf4b7b6801e4393604a66512f748526274d3
1,703
py
Python
network/Coral.py
Fassial/Air-Writing-with-TL
9b9047c5bd5aef3a869e2d5166be1c0cf0c5ccf0
[ "MIT" ]
1
2021-06-16T16:45:01.000Z
2021-06-16T16:45:01.000Z
network/Coral.py
Fassial/Air-Writing-with-TL
9b9047c5bd5aef3a869e2d5166be1c0cf0c5ccf0
[ "MIT" ]
null
null
null
network/Coral.py
Fassial/Air-Writing-with-TL
9b9047c5bd5aef3a869e2d5166be1c0cf0c5ccf0
[ "MIT" ]
1
2020-04-21T01:31:26.000Z
2020-04-21T01:31:26.000Z
import torch import scipy.linalg import numpy as np DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") def CORAL_loss(source, target): d = source.size(1) n_s, n_t = source.size(0), target.size(0) # source covariance tmp_s = torch.ones((1, n_s)).to(DEVICE) @ source cs = (source.t() @ source - (...
28.383333
122
0.655314
6c58385a82fdf4a63a74cab36dc78fc9e0915829
2,235
py
Python
demos/html5boilerplate.py
aaronchall/HTML5.py
ccff1451214adf2d9147a3e253f49e757da5297f
[ "MIT" ]
3
2015-11-05T14:36:27.000Z
2020-07-20T19:10:17.000Z
demos/html5boilerplate.py
aaronchall/HTML5.py
ccff1451214adf2d9147a3e253f49e757da5297f
[ "MIT" ]
1
2015-11-05T14:36:16.000Z
2015-11-06T04:17:13.000Z
demos/html5boilerplate.py
aaronchall/HTML5.py
ccff1451214adf2d9147a3e253f49e757da5297f
[ "MIT" ]
2
2016-01-04T06:25:05.000Z
2020-07-20T19:10:21.000Z
"""emulate the html from html5boilerplate""" from __future__ import print_function, division, absolute_import from html5 import Document, Head, Meta, Description, Viewport, Link from html5 import Script, Body, Comment, Paragraph from html5 import Description, Viewport# metas def main(): """print the boilerplate...
42.980769
194
0.580313
2283fcabd7a5a127c71c332aedcbd89a8d37459c
5,348
py
Python
pb_planning/pb_tools/movo_constants.py
kylehkhsu/pybullet-planning
a504d4641f2bb1d52b7532c35d3d6996302bb80d
[ "MIT" ]
143
2020-10-22T04:17:04.000Z
2022-03-26T09:24:21.000Z
pybullet_tools/movo_constants.py
Kami-code/pybullet_planning
a9ac00ac407c57cc6280867e7308b3737728bf6b
[ "MIT" ]
4
2019-03-05T14:57:09.000Z
2020-10-14T05:24:21.000Z
pybullet_tools/movo_constants.py
Kami-code/pybullet_planning
a9ac00ac407c57cc6280867e7308b3737728bf6b
[ "MIT" ]
38
2020-11-03T07:25:49.000Z
2022-03-26T09:33:54.000Z
#!/usr/bin/env python from __future__ import print_function from itertools import combinations import numpy as np from .ikfast.utils import IKFastInfo from .utils import joints_from_names, has_joint, get_max_limits, get_min_limits, apply_alpha, \ pairwise_link_collision, get_all_links, get_link_name, are_links_...
44.941176
145
0.74009
7ba1a6be91bc7fdcd84978a017c60f8d4f84119f
2,478
py
Python
etl_framework/config_mixins/FieldMappingsMixin.py
pantheon-ci-bot/etl-framework
36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f
[ "MIT" ]
2
2017-03-01T20:09:06.000Z
2019-02-08T17:10:16.000Z
etl_framework/config_mixins/FieldMappingsMixin.py
pantheon-ci-bot/etl-framework
36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f
[ "MIT" ]
40
2015-10-10T15:02:21.000Z
2020-03-17T22:32:04.000Z
etl_framework/config_mixins/FieldMappingsMixin.py
pantheon-ci-bot/etl-framework
36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f
[ "MIT" ]
2
2018-11-14T21:50:58.000Z
2022-03-07T20:59:27.000Z
"""parses configuration and returns useful things""" #pylint: disable=relative-import #pylint cant tell AddFiltersMixin is new class #pylint: disable=super-on-old-class from etl_framework.Exceptions import ConfigAttrNotSetException from etl_framework.config_mixins.AddFiltersMixin import AddFiltersMixin from etl_framew...
36.985075
99
0.695722
26647d34d0e04c0f9bbf212524df1df3048ffdaa
244
py
Python
openmetrics/datadog_checks/openmetrics/openmetrics.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
1
2021-03-24T13:00:14.000Z
2021-03-24T13:00:14.000Z
openmetrics/datadog_checks/openmetrics/openmetrics.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
1
2021-02-23T14:03:42.000Z
2021-03-25T16:52:05.000Z
openmetrics/datadog_checks/openmetrics/openmetrics.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base.checks.openmetrics import OpenMetricsBaseCheck class OpenMetricsCheck(OpenMetricsBaseCheck): pass
27.111111
71
0.79918
f4b0d8fbeb96deaa9d5fb5b5ee3bb47d247de75b
893
py
Python
kubernetes/test/test_v1_network_policy_port.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_network_policy_port.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_network_policy_port.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
20.767442
105
0.720045
a80c638ca80e8ad43d8a3c49eac5fbcbb1460930
27
py
Python
src/kgmk/const/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/const/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/const/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
from .inf import ( INF, )
9
18
0.592593
d065f19a86fe3c508080c53d3c6f89132f993d29
4,042
py
Python
build.py
Lzhiyong/android-sdk-tools
a2c5e32764f4140c13da017abe9f861ba462cc7c
[ "Apache-2.0" ]
22
2018-06-25T15:57:58.000Z
2020-03-26T15:42:23.000Z
build.py
Lzhiyong/android-sdk-tools
a2c5e32764f4140c13da017abe9f861ba462cc7c
[ "Apache-2.0" ]
3
2018-12-11T04:15:06.000Z
2020-05-01T00:06:46.000Z
build.py
Lzhiyong/android-sdk-tools
a2c5e32764f4140c13da017abe9f861ba462cc7c
[ "Apache-2.0" ]
6
2018-08-25T19:54:58.000Z
2020-03-26T15:42:26.000Z
#!/usr/bin/env python # # Copyright © 2022 Github Lzhiyong # # 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 applicabl...
36.089286
114
0.635824
bc75033967ffd05166158ccd907f35abbfd606ef
1,699
py
Python
project_automation/commands/go.py
Guigui14460/project-automation
98f9b73be2000b0ecb07b1cca758693c29032947
[ "Apache-2.0" ]
null
null
null
project_automation/commands/go.py
Guigui14460/project-automation
98f9b73be2000b0ecb07b1cca758693c29032947
[ "Apache-2.0" ]
2
2021-01-17T16:04:03.000Z
2021-08-13T13:00:49.000Z
project_automation/commands/go.py
Guigui14460/project-automation
98f9b73be2000b0ecb07b1cca758693c29032947
[ "Apache-2.0" ]
null
null
null
from typing import NoReturn from .command_program import CommandProgram from .utils import WindowsInstallationPackage, MacOSInstallationPackage, GNULinuxDistributionInstallationPackage class GoCommand(CommandProgram): """ Command to verify if ``go`` command is recognized by the operating system. If its n...
40.452381
135
0.670394
6a1b2030ec561f9077488bf846b45e0650dcb1e9
1,019
py
Python
WebServices/ApiHandler.py
david-c-stein/Python-HouseLEDs
ba01368179f30fe7612b30f1257838b715fd866b
[ "MIT" ]
null
null
null
WebServices/ApiHandler.py
david-c-stein/Python-HouseLEDs
ba01368179f30fe7612b30f1257838b715fd866b
[ "MIT" ]
null
null
null
WebServices/ApiHandler.py
david-c-stein/Python-HouseLEDs
ba01368179f30fe7612b30f1257838b715fd866b
[ "MIT" ]
null
null
null
import Global import json import time import datetime import os.path import tornado.web from tornado.escape import json_encode, json_decode from tornado.options import options import uuid import base6 class ApiHandler(tornado.web.RequestHandler): def initialize(self, queCam, queHdw, queWeb, config): se...
23.159091
66
0.594701
512d397b00f61a3e517094366111b009af8e1dde
4,530
py
Python
vk.py
Fogapod/weechat-vk-script
b9a2fa06c6d415b386455fd4092e80c58e8263d0
[ "MIT" ]
null
null
null
vk.py
Fogapod/weechat-vk-script
b9a2fa06c6d415b386455fd4092e80c58e8263d0
[ "MIT" ]
null
null
null
vk.py
Fogapod/weechat-vk-script
b9a2fa06c6d415b386455fd4092e80c58e8263d0
[ "MIT" ]
null
null
null
# coding:utf8 SCRIPT_NAME = 'vk' SCRIPT_AUTHOR = 'fogapod' SCRIPT_VERSION = '0.0.1dev' SCRIPT_LICENSE = 'MIT' SCRIPT_DESC = 'vk.com messaging script' try: import weechat except ImportError: print('\nThis file should be run under WeeChat') import sys sys.exit(2) import re DEFAULT_SETTINGS = { ...
24.354839
78
0.642605
53e2d391487b42e3c7acb14b40dd0e792404063c
6,303
py
Python
Thesis@3.9.1/Lib/site-packages/django/db/models/aggregates.py
nverbois/TFE21-232
7113837b5263b5c508bfc6903cb6982b48aa7ee4
[ "MIT" ]
null
null
null
Thesis@3.9.1/Lib/site-packages/django/db/models/aggregates.py
nverbois/TFE21-232
7113837b5263b5c508bfc6903cb6982b48aa7ee4
[ "MIT" ]
null
null
null
Thesis@3.9.1/Lib/site-packages/django/db/models/aggregates.py
nverbois/TFE21-232
7113837b5263b5c508bfc6903cb6982b48aa7ee4
[ "MIT" ]
null
null
null
""" Classes to represent the definitions of aggregate functions. """ from django.core.exceptions import FieldError from django.db.models.expressions import Case, Func, Star, When from django.db.models.fields import IntegerField from django.db.models.functions.mixins import ( FixDurationInputMixin, NumericOutput...
34.255435
88
0.613993
b4d3979099395fe966205dcda418128a3713a677
428
py
Python
test/cmd/unix/test_cmd_ip_neigh.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
test/cmd/unix/test_cmd_ip_neigh.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
test/cmd/unix/test_cmd_ip_neigh.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
# -*- coding: utf-8 -*- """ Testing of ip_neigh command. """ __author__ = 'Sylwester Golonka' __copyright__ = 'Copyright (C) 2018, Nokia' __email__ = 'sylwester.golonka@nokia.com' def test_ip_neigh_returns_proper_command_string(buffer_connection): from moler.cmd.unix.ip_neigh import IpNeigh cmd = IpNeigh(conn...
30.571429
80
0.754673
7efa4473b7dc5ad51a00e66193302278a49624c0
15,518
py
Python
layers/modules/multibox_loss_gmm.py
kandula-ai/AL-MDN
266fd9e67614282f34cbc8d2d9163bde1580f6d7
[ "BSD-Source-Code" ]
59
2021-10-13T22:59:19.000Z
2022-03-26T20:44:47.000Z
layers/modules/multibox_loss_gmm.py
jwchoi384/AL-MDN
54aaae4405c69b33998e5b5306c7c645780d473c
[ "BSD-Source-Code" ]
10
2021-11-02T06:35:24.000Z
2022-03-26T21:08:06.000Z
layers/modules/multibox_loss_gmm.py
jwchoi384/AL-MDN
54aaae4405c69b33998e5b5306c7c645780d473c
[ "BSD-Source-Code" ]
9
2021-10-14T09:48:05.000Z
2022-03-27T06:04:32.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relat...
44.97971
101
0.593827
0ed3c0fd6622583d13c2e3997818d75ff6581a04
1,470
py
Python
model-optimizer/extensions/front/mxnet/reshape_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/extensions/front/mxnet/reshape_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/mxnet/reshape_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2018-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
32.666667
116
0.681633
5d97d90efec6c45d927ea7c62b33951dfcc3ddb3
990
py
Python
cohesity_management_sdk/models/remediation_state_update_infected_file_params_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/remediation_state_update_infected_file_params_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/remediation_state_update_infected_file_params_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class RemediationStateUpdateInfectedFileParamsEnum(object): """Implementation of the 'RemediationState_UpdateInfectedFileParams' enum. Specifies the remediation state of the file. Not setting any value to remediation state will reset the infected fil...
33
78
0.741414
1115b33a2d13fe1f6bc6677555a2e09a87beb75f
166
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_flex_N_N_Npercent.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flexbox_flex_N_N_Npercent.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flexbox_flex_N_N_Npercent.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
1
2020-01-16T01:56:41.000Z
2020-01-16T01:56:41.000Z
from tests.utils import W3CTestCase class TestFlexbox_FlexNNNpercent(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_flex-N-N-Npercent'))
27.666667
80
0.807229
139b674d73bace07663e960f930ac1716e14d599
2,047
py
Python
a4/model_embeddings.py
Folk19/CS224N
cf57a707256453b670371f0ae5000587b496ee5b
[ "MIT" ]
null
null
null
a4/model_embeddings.py
Folk19/CS224N
cf57a707256453b670371f0ae5000587b496ee5b
[ "MIT" ]
null
null
null
a4/model_embeddings.py
Folk19/CS224N
cf57a707256453b670371f0ae5000587b496ee5b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2018-19: Homework 4 model_embeddings.py: Embeddings for the NMT model Pencheng Yin <pcyin@cs.cmu.edu> Sahil Chopra <schopra8@stanford.edu> Anand Dhoot <anandd@stanford.edu> """ import torch.nn as nn class ModelEmbeddings(nn.Module): """ Class that co...
34.116667
98
0.602345
92f22263fb775cd2fe9e2f67a71b6e5643670ab0
12,903
py
Python
src/models/inception_resnet_v2.py
KittenCN/pyFaceNet
0804d06a3533a83ff865a3c4343cfca2a5cbe063
[ "MIT" ]
1
2020-04-27T22:52:14.000Z
2020-04-27T22:52:14.000Z
src/models/inception_resnet_v2.py
KittenCN/pyFaceNet
0804d06a3533a83ff865a3c4343cfca2a5cbe063
[ "MIT" ]
null
null
null
src/models/inception_resnet_v2.py
KittenCN/pyFaceNet
0804d06a3533a83ff865a3c4343cfca2a5cbe063
[ "MIT" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
51.819277
91
0.530807
265482082b289cbcb80d4113b90a92af6c9de809
19,003
py
Python
src/render/image.py
cfmcdonald-78/Hexcrawler
79ca4ab9327abf08de1743612c23eb89aa53a2b9
[ "MIT" ]
null
null
null
src/render/image.py
cfmcdonald-78/Hexcrawler
79ca4ab9327abf08de1743612c23eb89aa53a2b9
[ "MIT" ]
null
null
null
src/render/image.py
cfmcdonald-78/Hexcrawler
79ca4ab9327abf08de1743612c23eb89aa53a2b9
[ "MIT" ]
1
2021-12-01T01:38:12.000Z
2021-12-01T01:38:12.000Z
''' Created on Jun 29, 2012 @author: Chris ''' import pygame, os, random import gamemap.terrain as terrain, gamemap.site_type as site_type, mob.unit as unit, mob.hero as hero, gamemap.hexgrid as hexgrid, mob.item as item from util.tools import make_2D_list import core.event_manager as event_manager import text MAX_F...
44.92435
147
0.596748
a9309b62dac0b3e5bf1b3b1778a5fde169960cd8
3,698
py
Python
feature_selection/word_inspect.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
1
2019-02-02T17:50:51.000Z
2019-02-02T17:50:51.000Z
feature_selection/word_inspect.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
null
null
null
feature_selection/word_inspect.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
null
null
null
import re import string feature_list = {} def tokenize(sentence): sentence = ' '.join(sentence) sentence = sentence.lower().replace('.',' ').replace(',',' ').replace('&',' ').replace('/',' ').replace('-','') sentence = sentence.split(' ') return_list = [] for each_word in sentence: if eac...
46.225
120
0.445646
c04f5c0d27e4c5360c0fe9422b7d389d212a9c3c
4,646
py
Python
zipline/examples/olmar.py
npezolano/zipline
71effa5e98bd0425ac1863e1861c9b51fbc77242
[ "Apache-2.0" ]
1
2016-03-16T12:54:07.000Z
2016-03-16T12:54:07.000Z
zipline/examples/olmar.py
Miles0918/zipline
e7a5e097c419bed7816d3cd6c370b5171db37b33
[ "Apache-2.0" ]
null
null
null
zipline/examples/olmar.py
Miles0918/zipline
e7a5e097c419bed7816d3cd6c370b5171db37b33
[ "Apache-2.0" ]
null
null
null
import sys import logbook import numpy as np from datetime import datetime import pytz from zipline.algorithm import TradingAlgorithm from zipline.utils.factory import load_from_yahoo from zipline.finance import commission zipline_logging = logbook.NestedSetup([ logbook.NullHandler(level=logbook.DEBUG, bubble=Tru...
28.857143
76
0.654757
b90645e4eab385c39fe96ea1122ae32c57152a95
1,624
py
Python
flask-app/sandbox/tokens.py
andreaskring/flask-keycloak-angular
c48070322c277ca42cd9deffc54636a555cbf9b8
[ "Apache-2.0" ]
null
null
null
flask-app/sandbox/tokens.py
andreaskring/flask-keycloak-angular
c48070322c277ca42cd9deffc54636a555cbf9b8
[ "Apache-2.0" ]
null
null
null
flask-app/sandbox/tokens.py
andreaskring/flask-keycloak-angular
c48070322c277ca42cd9deffc54636a555cbf9b8
[ "Apache-2.0" ]
null
null
null
import json import jwt pub_key = b'-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoDv7GAhqyhSj4q9VnDfCUWTMxOhSHP+AtMaYrO7ByI3dua/DQZapib6qu+CnnR1K1uPHiPeHZ9O1Kkn8RV2m7D72C/tWCm1KDdRX14pbBYR38AR0T5VbYcxblyIPH58okKElWTAWFmGjidY6cXSlO3aEVZMjGB3p2at5o/QfNmCUfxpHivyOnW+b8yLs/h/vXV7EKg4JOLgZ9GV2EiQ...
162.4
1,041
0.943966
6adb234e8432e574e78981751d1f855656308a42
1,825
py
Python
airflow/contrib/sensors/gcp_transfer_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/contrib/sensors/gcp_transfer_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/contrib/sensors/gcp_transfer_sensor.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
35.096154
106
0.745205
2e8a57e55f8f2e4f109f308cf0d4d90170c20796
510
py
Python
tests/r/test_armada.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_armada.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_armada.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.armada import armada def test_armada(): """Test module armada.py by downloading armada.csv and testing shape of extracted data has 10 rows...
21.25
44
0.75098
36b2b824214f517de9fb406c70a13f9b61368d1d
522
py
Python
co2.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
2
2020-08-06T07:32:57.000Z
2022-02-11T02:37:21.000Z
co2.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
null
null
null
co2.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
1
2021-09-11T02:34:39.000Z
2021-09-11T02:34:39.000Z
from microbit import * from enum import * class CO2(object): """基本描述 二氧化碳传感器 Args: RJ_pin (pin): 连接端口 Returns: value: 二氧化碳含量 """ def __init__(self, RJ_pin): if RJ_pin == J1: self.__pin = pin1 elif RJ_pin == J2: self.__pin = pin2 ...
14.5
46
0.505747
cf703588bd5e4260f1b093f292ace66464b9b42f
469
py
Python
packages/python/plotly/plotly/validators/mesh3d/_color.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/mesh3d/_color.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/mesh3d/_color.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="color", parent_name="mesh3d", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_t...
36.076923
79
0.66951
c210f0b57e5ef5120e05d8f5b1dfb708cf5633cb
7,652
py
Python
python/S3_DEFAULT_ENCRYPTION_KMS/S3_DEFAULT_ENCRYPTION_KMS_test.py
praghu1/aws-config-rules
0819d158e9d6fe3a9bb22d3aeea50ca67c1df202
[ "CC0-1.0" ]
null
null
null
python/S3_DEFAULT_ENCRYPTION_KMS/S3_DEFAULT_ENCRYPTION_KMS_test.py
praghu1/aws-config-rules
0819d158e9d6fe3a9bb22d3aeea50ca67c1df202
[ "CC0-1.0" ]
null
null
null
python/S3_DEFAULT_ENCRYPTION_KMS/S3_DEFAULT_ENCRYPTION_KMS_test.py
praghu1/aws-config-rules
0819d158e9d6fe3a9bb22d3aeea50ca67c1df202
[ "CC0-1.0" ]
null
null
null
# Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
42.043956
203
0.584553
40b2b256f71a9007531a797685752c86f15017a8
20,593
py
Python
phenocube/lib/python3.8/site-packages/setuptools/config.py
phenocube/phenocube-py
cb262aef1c0925efd2e955170bacd2989da03769
[ "MIT" ]
null
null
null
phenocube/lib/python3.8/site-packages/setuptools/config.py
phenocube/phenocube-py
cb262aef1c0925efd2e955170bacd2989da03769
[ "MIT" ]
null
null
null
phenocube/lib/python3.8/site-packages/setuptools/config.py
phenocube/phenocube-py
cb262aef1c0925efd2e955170bacd2989da03769
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import io import os import sys import warnings import functools from collections import defaultdict from functools import partial from functools import wraps from importlib import import_module from distutils.errors import DistutilsOptionError, DistutilsFileErr...
30.690015
88
0.613704
12ada9924d6389349c66f337f9aedbffbe34d499
4,547
py
Python
uctp_ufabc/buildTableGraphics.py
luizfmgarcia/uctp_ufabc
2342f5431e258a4feffdf4e7931344a9d03a8f9c
[ "MIT" ]
null
null
null
uctp_ufabc/buildTableGraphics.py
luizfmgarcia/uctp_ufabc
2342f5431e258a4feffdf4e7931344a9d03a8f9c
[ "MIT" ]
6
2018-10-30T00:37:20.000Z
2019-07-23T00:23:18.000Z
uctp_ufabc/buildTableGraphics.py
luizfmgarcia/uctp_ufabc
2342f5431e258a4feffdf4e7931344a9d03a8f9c
[ "MIT" ]
1
2019-06-06T00:54:13.000Z
2019-06-06T00:54:13.000Z
# -*- coding: utf-8 -*- """ describe() count: conta a quantidade de linhas envolvidas mean: calcula a média dos elementos da coluna std: calcula o desvio padrão dos elementos da coluna min: menor elemento da coluna (0% dos elementos são menores do que ele) 25%: primeiro quartil da coluna (25% dos elementos são menores ...
45.47
249
0.607433
c837c8ca129aacc7eb1a478cb88c7776d7a253d4
10,746
py
Python
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/quantization/quant_strategy.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
null
null
null
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/quantization/quant_strategy.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
null
null
null
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/quantization/quant_strategy.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
39.076364
99
0.648148
e791becb999f18e5be8b91e591d2e8a370fad35a
7,615
py
Python
snooty/util_test.py
rayangler/snooty-parser
3812adab1338ef78ff6f9aecae5e17d2ec5c5181
[ "Apache-2.0", "CNRI-Python-GPL-Compatible" ]
6
2021-02-09T18:25:25.000Z
2022-02-22T02:27:52.000Z
snooty/util_test.py
rayangler/snooty-parser
3812adab1338ef78ff6f9aecae5e17d2ec5c5181
[ "Apache-2.0", "CNRI-Python-GPL-Compatible" ]
37
2020-12-15T16:26:49.000Z
2022-02-22T03:34:20.000Z
snooty/util_test.py
rayangler/snooty-parser
3812adab1338ef78ff6f9aecae5e17d2ec5c5181
[ "Apache-2.0", "CNRI-Python-GPL-Compatible" ]
6
2021-01-23T21:06:14.000Z
2021-08-14T10:50:52.000Z
import contextlib import inspect import os import sys import tempfile import textwrap import xml.etree.ElementTree as ET from collections import defaultdict from pathlib import Path, PurePath from typing import Any, Dict, Iterator, List, Optional, Tuple from xml.sax.saxutils import escape from . import n, rstparser fr...
31.995798
102
0.611819
d0166364ce76839b9cc7423af578ea130d881df6
5,797
py
Python
autorad/feature_extraction/extractor.py
pwoznicki/Radiomics
f30d8b5b2b54f52de45bc18a433be7855ca346c9
[ "Apache-2.0" ]
null
null
null
autorad/feature_extraction/extractor.py
pwoznicki/Radiomics
f30d8b5b2b54f52de45bc18a433be7855ca346c9
[ "Apache-2.0" ]
null
null
null
autorad/feature_extraction/extractor.py
pwoznicki/Radiomics
f30d8b5b2b54f52de45bc18a433be7855ca346c9
[ "Apache-2.0" ]
null
null
null
import logging from pathlib import Path import pandas as pd import radiomics from joblib import Parallel, delayed from radiomics.featureextractor import RadiomicsFeatureExtractor from tqdm import tqdm from autorad.config import config from autorad.config.type_definitions import PathLike from autorad.data.dataset impo...
34.505952
80
0.618596
a470707db996102d9a69c4b80458b9e8b57e1775
3,113
py
Python
senlin-7.0.0/senlin/engine/notifications/heat_endpoint.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
senlin-7.0.0/senlin/engine/notifications/heat_endpoint.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
senlin-7.0.0/senlin/engine/notifications/heat_endpoint.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
37.059524
78
0.630903
802ee155549e72efc4fa369e67c577c77def86b6
456
py
Python
smartcontract/venv/lib/python3.6/site-packages/klein/interfaces.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
smartcontract/venv/lib/python3.6/site-packages/klein/interfaces.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
smartcontract/venv/lib/python3.6/site-packages/klein/interfaces.py
simplitech/neoinvoice
bc9a0217858938b49f99fef13b3439f4a537a5f5
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division from zope.interface import Attribute, Interface class IKleinRequest(Interface): branch_segments = Attribute("Segments consumed by a branch route.") mapper = Attribute("L{werkzeug.routing.MapAdapter}") def url_for( self, endpoint, values=None, meth...
26.823529
71
0.692982
f901e42dcdee796fb75afe93ccbefd70c14c4064
36,117
py
Python
lib/galaxy/webapps/galaxy/controllers/forms.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/galaxy/controllers/forms.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
lib/galaxy/webapps/galaxy/controllers/forms.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
from galaxy.web.base.controller import * from galaxy.model.orm import * from galaxy.datatypes import sniff from galaxy import model, util import logging, os, sys from galaxy.web.form_builder import * from galaxy.tools.parameters.basic import parameter_types from xml.etree.ElementTree import XML, Element from galaxy.uti...
54.639939
155
0.516543
d3cf4966899ed092196141ba7d345989194624ca
1,221
py
Python
CAM2ImageArchiver/error.py
cam2proj/CAM2ImageArchiver
a8c021bb9b622475799ee6ff49d09eabaf94bb92
[ "Apache-2.0" ]
null
null
null
CAM2ImageArchiver/error.py
cam2proj/CAM2ImageArchiver
a8c021bb9b622475799ee6ff49d09eabaf94bb92
[ "Apache-2.0" ]
7
2018-01-04T03:27:14.000Z
2021-06-01T21:55:34.000Z
CAM2ImageArchiver/error.py
cam2proj/CAM2ImageArchiver
a8c021bb9b622475799ee6ff49d09eabaf94bb92
[ "Apache-2.0" ]
2
2019-01-16T21:39:11.000Z
2019-05-30T14:14:47.000Z
""" Copyright 2017 Purdue University 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, softw...
23.037736
72
0.720721
a0a9f633171e8793f9c72bf96045fe211ae97320
994
py
Python
Lib/test/test_compiler/compiler_runtest.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_compiler/compiler_runtest.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_compiler/compiler_runtest.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# # Helper script for testsuite - generally, run a file thru compiler and # disassemble using dis_stable. # import ast import re import sys from compiler import dis_stable from compiler.pycodegen import compile as py_compile # https://www.python.org/dev/peps/pep-0263/ coding_re = re.compile(rb"^[ \t\f]*#.*?coding[:=]...
23.116279
74
0.632797
3f10a45b49fc0135ea5562bdd062f75f387b7c8c
26,300
py
Python
applications/ContactStructuralMechanicsApplication/python_scripts/alm_contact_process.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
2
2020-12-22T11:50:11.000Z
2021-09-15T11:36:30.000Z
applications/ContactStructuralMechanicsApplication/python_scripts/alm_contact_process.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
3
2021-08-18T16:12:20.000Z
2021-09-02T07:36:15.000Z
applications/ContactStructuralMechanicsApplication/python_scripts/alm_contact_process.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
1
2020-12-28T15:39:39.000Z
2020-12-28T15:39:39.000Z
# Importing the Kratos Library import KratosMultiphysics as KM import KratosMultiphysics.StructuralMechanicsApplication as SMA import KratosMultiphysics.ContactStructuralMechanicsApplication as CSMA def Factory(settings, Model): if not isinstance(settings, KM.Parameters): raise Exception("Expected input s...
50.286807
344
0.634867
4ced15ed8ab0e4024ad90a63fa9cbf4536100118
687
py
Python
nemo/collections/nlp/models/question_answering/__init__.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
4,145
2019-09-13T08:29:43.000Z
2022-03-31T18:31:44.000Z
nemo/collections/nlp/models/question_answering/__init__.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
2,031
2019-09-17T16:51:39.000Z
2022-03-31T23:52:41.000Z
nemo/collections/nlp/models/question_answering/__init__.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
1,041
2019-09-13T10:08:21.000Z
2022-03-30T06:37:38.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.9375
75
0.772926
bc68b42808e1785abb5b38c05ed0ff9bbbe93923
916
py
Python
blacklist/urls.py
milleruk/allianceauth-blacklist
cd58520f8362b5dd22f6249a89a829a6b79da61b
[ "MIT" ]
1
2021-05-04T20:55:27.000Z
2021-05-04T20:55:27.000Z
blacklist/urls.py
milleruk/allianceauth-blacklist
cd58520f8362b5dd22f6249a89a829a6b79da61b
[ "MIT" ]
3
2021-02-01T13:26:15.000Z
2021-09-09T19:41:01.000Z
blacklist/urls.py
milleruk/allianceauth-blacklist
cd58520f8362b5dd22f6249a89a829a6b79da61b
[ "MIT" ]
4
2021-02-08T21:22:55.000Z
2021-08-12T04:28:55.000Z
from django.conf.urls import url from . import views app_name = 'blacklist' urlpatterns = [ url(r'^notes/$', views.note_board, name='note_board'), url(r'^blacklist/$', views.blacklist, name='blacklist'), url(r'^get_add_note/(?P<eve_id>(\d)*)/$', views.get_add_evenote, name='modal_add'), url(r'^get_co...
48.210526
102
0.664847