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
5b0b8d51773c98d175378fac706b8fb44b0e22c0
4,396
py
Python
dpctl/tests/test_sycl_device.py
vlad-perevezentsev/dpctl
f4a281f821c238ce1f6d1cef083b1f51a95b0ead
[ "Apache-2.0" ]
null
null
null
dpctl/tests/test_sycl_device.py
vlad-perevezentsev/dpctl
f4a281f821c238ce1f6d1cef083b1f51a95b0ead
[ "Apache-2.0" ]
null
null
null
dpctl/tests/test_sycl_device.py
vlad-perevezentsev/dpctl
f4a281f821c238ce1f6d1cef083b1f51a95b0ead
[ "Apache-2.0" ]
null
null
null
# ===------------- test_sycl_device.py - dpctl -------*- Python -*---------===# # # Data Parallel Control (dpctl) # # Copyright 2020 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 ob...
39.603604
87
0.644904
ba2ad62a8619225536a28a50b9cd4e79706e688b
11,492
py
Python
tools/openblas_support.py
LaurynasMiksys/scipy
bfc49e336c102269521eed6a6c3c48963ac33897
[ "BSD-3-Clause" ]
1
2020-07-22T17:29:25.000Z
2020-07-22T17:29:25.000Z
tools/openblas_support.py
LaurynasMiksys/scipy
bfc49e336c102269521eed6a6c3c48963ac33897
[ "BSD-3-Clause" ]
null
null
null
tools/openblas_support.py
LaurynasMiksys/scipy
bfc49e336c102269521eed6a6c3c48963ac33897
[ "BSD-3-Clause" ]
null
null
null
import os import sys import glob import shutil import textwrap import platform import hashlib from tempfile import mkstemp, gettempdir from urllib.request import urlopen, Request from urllib.error import HTTPError import zipfile import tarfile OPENBLAS_V = 'v0.3.9' OPENBLAS_LONG = 'v0.3.9' BASE_LOC = '' ANACONDA = 'h...
37.311688
139
0.60503
8d624edeb8316c35d38d092c13c00547fd069259
1,844
py
Python
tests/gmprocess/subcommands/assemble_test.py
meramossepu1/groundmotion-processing
5cc19023b94e5b5b718590ce8cd05a22a4088a67
[ "Unlicense" ]
54
2019-01-12T02:05:38.000Z
2022-03-29T19:43:56.000Z
tests/gmprocess/subcommands/assemble_test.py
meramossepu1/groundmotion-processing
5cc19023b94e5b5b718590ce8cd05a22a4088a67
[ "Unlicense" ]
700
2018-12-18T19:44:31.000Z
2022-03-30T20:54:28.000Z
tests/gmprocess/subcommands/assemble_test.py
meramossepu1/groundmotion-processing
5cc19023b94e5b5b718590ce8cd05a22a4088a67
[ "Unlicense" ]
41
2018-11-29T23:17:56.000Z
2022-03-31T04:04:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import shutil import pkg_resources from gmprocess.utils import constants def test_assemble(script_runner): try: # Need to create profile first. cdir = constants.PROJECTS_PATH_TEST ddir = pkg_resources.resource_filename( ...
29.741935
82
0.583514
862c40c526a8bc2ad1faa1286ab55e03c40634d7
29,936
py
Python
astropy/coordinates/sky_coordinate_parsers.py
ycopin/astropy
4c29ecd4239fc2e8f62780a9bbbeacec8e592461
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/sky_coordinate_parsers.py
ycopin/astropy
4c29ecd4239fc2e8f62780a9bbbeacec8e592461
[ "BSD-3-Clause" ]
1
2018-11-14T14:18:55.000Z
2020-01-21T10:36:05.000Z
astropy/coordinates/sky_coordinate_parsers.py
ycopin/astropy
4c29ecd4239fc2e8f62780a9bbbeacec8e592461
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import re from collections.abc import Sequence import inspect import numpy as np from ..units import Unit, IrreducibleUnit from .. import units as u from .baseframe import (BaseCoordinateFrame, frame_transform_graph, _get_repr_c...
45.357576
118
0.601383
b636e888c49982f022b2c7f6d07ec738a01e026b
2,744
py
Python
configurando_git/settings.py
aprendacodigo/Configurando-GitHub
8ba6e456fe7b918ad093070ca8f4e3989e899670
[ "MIT" ]
null
null
null
configurando_git/settings.py
aprendacodigo/Configurando-GitHub
8ba6e456fe7b918ad093070ca8f4e3989e899670
[ "MIT" ]
2
2015-08-18T21:05:03.000Z
2015-08-19T18:46:12.000Z
configurando_git/settings.py
aprendacodigo/Configurando-GitHub
8ba6e456fe7b918ad093070ca8f4e3989e899670
[ "MIT" ]
18
2017-11-17T06:42:28.000Z
2021-10-02T01:30:54.000Z
""" Django settings for configurando_git project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # B...
26.133333
71
0.707362
cfe9fdcd59d86df6996de9d922a7cde28f253abd
797
py
Python
converter/urls.py
batu23/numberConverter
2ea6f0f8086dbb63113168cd072fa22dee5bb4f6
[ "MIT" ]
null
null
null
converter/urls.py
batu23/numberConverter
2ea6f0f8086dbb63113168cd072fa22dee5bb4f6
[ "MIT" ]
null
null
null
converter/urls.py
batu23/numberConverter
2ea6f0f8086dbb63113168cd072fa22dee5bb4f6
[ "MIT" ]
null
null
null
"""converter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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-bas...
33.208333
77
0.70138
747e976f30bdb38234c065eb0b57d46bb72f3f5a
7,395
py
Python
Code/calculations.py
Jormungandr1105/Project-Atlas
453525b693561f5b95a42cbc2293df9c6c1d9011
[ "MIT" ]
1
2020-11-25T03:11:46.000Z
2020-11-25T03:11:46.000Z
Code/calculations.py
Jormungandr1105/Project-Atlas
453525b693561f5b95a42cbc2293df9c6c1d9011
[ "MIT" ]
null
null
null
Code/calculations.py
Jormungandr1105/Project-Atlas
453525b693561f5b95a42cbc2293df9c6c1d9011
[ "MIT" ]
null
null
null
""" Functions for all of the calculations required to aim the telescope """ import math import positions as pos # Global Variables Pi = 3.14159265358979323846 def getDayTime(date): """ :type date: datetime.datetime Verified Correct """ year = date.year month = date.month ...
31.334746
111
0.55497
ad287ec2bd8bd957354954be1220d3c3e2c36188
2,639
py
Python
python/databank_download.py
OxfordEconomics/Mandoline.Api.Examples
b599ba72581b7afdad382c558070b5e80bd22ea4
[ "MIT" ]
2
2021-01-22T07:52:59.000Z
2021-07-06T19:20:45.000Z
python/databank_download.py
OxfordEconomics/Mandoline.Api.Examples
b599ba72581b7afdad382c558070b5e80bd22ea4
[ "MIT" ]
null
null
null
python/databank_download.py
OxfordEconomics/Mandoline.Api.Examples
b599ba72581b7afdad382c558070b5e80bd22ea4
[ "MIT" ]
3
2019-10-18T12:59:47.000Z
2021-10-04T18:03:50.000Z
# <copyright file="databank_download.py" company="Oxford Economics"> # Copyright (c) 2017 Oxford Economics Ltd. All rights reserved. # Licensed under the MIT License. See LICENSE file in the # project root for full license information. # </copyright> import json import requests import sys API_KEY = # insert api key...
30.333333
85
0.654415
3d2f853d0f645749bac98adc00361867d0c52944
36,783
py
Python
torch/ao/quantization/_dbr/quantization_state.py
eddieluo01/pytorch
e19f2e52adebd9ce36b8ac5302a9036662446d7f
[ "Intel" ]
1
2022-02-02T11:58:26.000Z
2022-02-02T11:58:26.000Z
torch/ao/quantization/_dbr/quantization_state.py
eddieluo01/pytorch
e19f2e52adebd9ce36b8ac5302a9036662446d7f
[ "Intel" ]
1
2022-02-03T12:43:23.000Z
2022-02-03T12:47:53.000Z
torch/ao/quantization/_dbr/quantization_state.py
eddieluo01/pytorch
e19f2e52adebd9ce36b8ac5302a9036662446d7f
[ "Intel" ]
null
null
null
from typing import Callable, List, Tuple, Any, Optional, Dict, Set import torch import torch.nn.functional as F from .mappings import ( ops_are_related, ) from .utils import ( _raise_obs_not_found_error, _raise_obs_op_mismatch, op_needs_quantization, SeenOpInfo, QTensorInfo, FuncOutputObs...
41.562712
114
0.61504
9383ad114de2ab5dbd37c2b50ec6ddd12beee799
6,176
py
Python
main.py
MatMark/ZIwM
20175c2783330d8c0bb2dd013697eded27d784f7
[ "MIT" ]
null
null
null
main.py
MatMark/ZIwM
20175c2783330d8c0bb2dd013697eded27d784f7
[ "MIT" ]
null
null
null
main.py
MatMark/ZIwM
20175c2783330d8c0bb2dd013697eded27d784f7
[ "MIT" ]
null
null
null
import pandas as pd import sys import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as ticker import sklearn.feature_selection as fs from sklearn.model_selection import RepeatedStratifiedKFold from sklearn.neural_network import MLPClassifier from sklearn.metrics import accuracy_score from sklearn...
38.842767
80
0.597474
8aceffd08848e490cc2973bec5aaf3313d232721
58
py
Python
pwdgen/__init__.py
ghadd/password_learner
310e5f37661c52d1ba265f2b68d49932c0a299c2
[ "MIT" ]
null
null
null
pwdgen/__init__.py
ghadd/password_learner
310e5f37661c52d1ba265f2b68d49932c0a299c2
[ "MIT" ]
null
null
null
pwdgen/__init__.py
ghadd/password_learner
310e5f37661c52d1ba265f2b68d49932c0a299c2
[ "MIT" ]
null
null
null
from .password_generator import * from .password import *
19.333333
33
0.793103
2729de48389ba3b535a49a248bfe53dae0ef59d1
882
py
Python
mmcls/datasets/tct.py
zhaoyang97/mmclassification
22362e4a351eea028a7fba081b274f435dbc872a
[ "Apache-2.0" ]
null
null
null
mmcls/datasets/tct.py
zhaoyang97/mmclassification
22362e4a351eea028a7fba081b274f435dbc872a
[ "Apache-2.0" ]
null
null
null
mmcls/datasets/tct.py
zhaoyang97/mmclassification
22362e4a351eea028a7fba081b274f435dbc872a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author : zhaoyang import numpy as np import mmcv from .builder import DATASETS from .base_dataset import BaseDataset @DATASETS.register_module() class TCT(BaseDataset): # CLASSES = ["normal", "ascus", "asch", "lsil", "hsil_scc_omn", "agc_adenocarcinoma_em", # "vaginali...
31.5
92
0.603175
912278bad9db9576bad95d704bf5891c5749c3af
1,393
py
Python
code/python/IRNConfiguration/v1/fds/sdk/IRNConfiguration/apis/__init__.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/IRNConfiguration/v1/fds/sdk/IRNConfiguration/apis/__init__.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/IRNConfiguration/v1/fds/sdk/IRNConfiguration/apis/__init__.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # Import all APIs into this package. # If you have many APIs here with many many models used in each API this may # raise a `RecursionError`. # In order to avoid this, import only the API that you directly need like: # # from .api.contacts___custom_fields_api import ContactsCustomFieldsApi # # or imp...
51.592593
109
0.86145
3b63fbfe8cdf1f2eede1c86e62e40c068ff507a9
574
py
Python
proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/pylint/test/input/func_noerror_static_method.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/input/func_noerror_static_method.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/input/func_noerror_static_method.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-08-31T14:33:03.000Z
2017-08-31T14:33:03.000Z
"""Checks if static / class methods works fine in Pylint """ __revision__ = '' class MyClass(object): """doc """ def __init__(self): pass def static_met(var1, var2): """This is a static method """ print(var1, var2) def class_met(cls, var1): ...
20.5
57
0.559233
f03fb9e60721e25afec7386ca40d237fdce7842c
15,593
py
Python
com/vmware/appliance/logging_client.py
vishal-12/vsphere-automation-sdk-python
9cf363971db77ea5a12928eecd5cf5170a7fcd8a
[ "MIT" ]
null
null
null
com/vmware/appliance/logging_client.py
vishal-12/vsphere-automation-sdk-python
9cf363971db77ea5a12928eecd5cf5170a7fcd8a
[ "MIT" ]
null
null
null
com/vmware/appliance/logging_client.py
vishal-12/vsphere-automation-sdk-python
9cf363971db77ea5a12928eecd5cf5170a7fcd8a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2019 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.appliance.logging. #----------------------------------------------------------------...
36.775943
113
0.584365
8ccdaa962bff088803bd14a043878abbc3f078fe
391
py
Python
fun_app/asgi.py
Rajarshi07/fun_app
2a5c9fca2eb9d16b9739605867a346c635445a53
[ "MIT" ]
2
2021-09-06T02:45:59.000Z
2021-11-28T16:59:46.000Z
fun_app/asgi.py
Rajarshi07/fun_app
2a5c9fca2eb9d16b9739605867a346c635445a53
[ "MIT" ]
1
2020-08-05T06:05:52.000Z
2020-08-05T06:05:52.000Z
fun_app/asgi.py
Rajarshi07/fun_app
2a5c9fca2eb9d16b9739605867a346c635445a53
[ "MIT" ]
4
2020-08-04T00:00:59.000Z
2020-08-07T02:02:35.000Z
""" ASGI config for fun_app project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
281a34fb60d609e94a6123b511a4e5b6fecb1282
667
py
Python
edx/lecture-12/multiple_inheritance.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/lecture-12/multiple_inheritance.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/lecture-12/multiple_inheritance.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
class A(object): def __init__(self): self.a = 1 def x(self): print "A.x" def y(self): print "A.y" def z(self): print "A.z" class B(A): def __init__(self): A.__init__(self) self.a = 2 self.b = 3 def y(self): print "B.y" def z(se...
17.102564
24
0.46027
e2ab518748861d3f552e19c1260cc2b07e72d80f
179,203
py
Python
src/pyGCluster.py
StSchulze/pyGCluster
92bb6855faa9e40582326cabfb0323eace72d4b3
[ "MIT" ]
null
null
null
src/pyGCluster.py
StSchulze/pyGCluster
92bb6855faa9e40582326cabfb0323eace72d4b3
[ "MIT" ]
null
null
null
src/pyGCluster.py
StSchulze/pyGCluster
92bb6855faa9e40582326cabfb0323eace72d4b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 """ pyGCluster is a clustering algorithm focusing on noise injection for subsequent cluster validation. By requesting identical cluster identity, the reproducibility of a large amount of clusters obtained with agglomerative hierarchical clustering (AHC) is assessed. Furthermore, a multitude of ...
57.751531
390
0.565604
43f2ddc8af53740ae6e8c8b291d62835ffaeb9ee
6,621
py
Python
app/admin/views.py
jabedparadox/flask-user-management
8da1deae90afac22f7176b3c894963a174833811
[ "MIT" ]
1
2019-08-20T09:07:38.000Z
2019-08-20T09:07:38.000Z
app/admin/views.py
jabedparadox/flask-user-management
8da1deae90afac22f7176b3c894963a174833811
[ "MIT" ]
null
null
null
app/admin/views.py
jabedparadox/flask-user-management
8da1deae90afac22f7176b3c894963a174833811
[ "MIT" ]
2
2020-11-18T05:20:29.000Z
2021-09-25T16:51:31.000Z
from flask import ( Blueprint, abort, flash, redirect, render_template, request, url_for, ) from flask_login import current_user, login_required from flask_rq import get_queue from app import db from app.admin.forms import ( ChangeAccountInfoForm, ChangeAccountTypeForm, ChangeUs...
30.232877
80
0.658964
52d39a33e0640f23a66416e8949791d15d6505af
494
py
Python
tests/test_pydocgen.py
LukasPolon/docgenerator
912e8af9a1567bdd2ff376cdd6d5d891c4b2d123
[ "MIT" ]
null
null
null
tests/test_pydocgen.py
LukasPolon/docgenerator
912e8af9a1567bdd2ff376cdd6d5d891c4b2d123
[ "MIT" ]
9
2018-10-08T21:04:16.000Z
2018-10-17T21:38:44.000Z
tests/test_pydocgen.py
LukasPolon/docgenerator
912e8af9a1567bdd2ff376cdd6d5d891c4b2d123
[ "MIT" ]
null
null
null
import unittest from click.testing import CliRunner from src.cli.pydocgen import pydocgen class TestPydocgen(unittest.TestCase): def setUp(self): """ SetUp method inherted from TestCase.""" self.clirunner = CliRunner() def test_pydocgen(self): """ Test pydocgen comman...
26
69
0.657895
d55204cb80830aa781cd731ea0f472ae9795de67
2,607
py
Python
app/authentication.py
BartekSzpak/adversary
231caf58722a5641dd08afe354f2760e89699f3a
[ "Apache-2.0", "CC0-1.0" ]
22
2019-06-08T11:00:02.000Z
2021-09-10T10:22:20.000Z
app/authentication.py
BartekSzpak/adversary
231caf58722a5641dd08afe354f2760e89699f3a
[ "Apache-2.0", "CC0-1.0" ]
39
2019-04-28T13:28:58.000Z
2020-07-28T00:49:45.000Z
app/authentication.py
BartekSzpak/adversary
231caf58722a5641dd08afe354f2760e89699f3a
[ "Apache-2.0", "CC0-1.0" ]
11
2019-04-29T00:58:35.000Z
2021-06-28T02:18:48.000Z
import binascii import os from plugins.adversary.app.engine.database import subjectify from plugins.adversary.app.engine.objects import SiteUser from plugins.adversary.app.util import tz_utcnow from cryptography.exceptions import InvalidKey from cryptography.hazmat.backends import default_backend from cryptography.haz...
29.965517
106
0.714614
0f76e0f22ce1e8daf012936ede74d108b118ec83
1,074
py
Python
ibsng/handler/user/change_credit_extended.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
6
2018-03-06T10:16:36.000Z
2021-12-05T12:43:10.000Z
ibsng/handler/user/change_credit_extended.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-03-06T10:27:08.000Z
2022-01-02T15:21:27.000Z
ibsng/handler/user/change_credit_extended.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-01-06T16:28:31.000Z
2018-09-17T19:47:19.000Z
"""Change credit extended API method.""" from ibsng.handler.handler import Handler class changeCreditExtended(Handler): """Change credit extended method class.""" def control(self): """Validate inputs after setup method. :return: None :rtype: None """ self.is_valid(se...
30.685714
69
0.640596
baa210b1a254e4d0d12969361744ff89f700d2df
1,012
py
Python
kubernetes/test/test_v1_rolling_update_daemon_set.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_rolling_update_daemon_set.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_rolling_update_daemon_set.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
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: v1.15.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
25.3
124
0.738142
ef9a8a5355b97b051eb31cea48ba50771b7541e2
6,615
py
Python
rally_openstack/scenarios/octavia/pools.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/scenarios/octavia/pools.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/scenarios/octavia/pools.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2018-12-10T12:31:27.000Z
2018-12-10T12:31:27.000Z
# Copyright 2018: Red Hat 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...
40.335366
78
0.646863
5f3ef7695c40285ba8a33f1fef60af6543e5d5d1
2,601
py
Python
intro-mdp/mission01/netconf_clear_ips.py
cobeam/DevNetRepo
d824bb6ad7d21bcae03485b571e97fc2b6b61df9
[ "MIT" ]
90
2018-04-07T00:39:23.000Z
2020-06-09T02:44:02.000Z
intro-mdp/mission01/netconf_clear_ips.py
cobeam/DevNetRepo
d824bb6ad7d21bcae03485b571e97fc2b6b61df9
[ "MIT" ]
38
2018-04-06T18:11:36.000Z
2020-05-11T23:36:24.000Z
intro-mdp/mission01/netconf_clear_ips.py
ljm625/dnav3-code
833c2c05401fbe84529d51dc1eb597c10b6615c9
[ "MIT" ]
143
2018-04-20T00:17:24.000Z
2020-06-12T15:07:42.000Z
#!/usr/bin/env python """This script clears the IP configuration on GigabitEthernet2 on 2 devices. Copyright (c) 2018 Cisco and/or its affiliates. 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 ...
36.633803
78
0.774702
a92e30a19ed3e26f2e50bc8c922e9d6b23b3f20c
1,889
py
Python
lingvo/model_imports.py
muntasir2000/lingvo
1555299b817288b5a6637ded416dbbdc9b00036d
[ "Apache-2.0" ]
null
null
null
lingvo/model_imports.py
muntasir2000/lingvo
1555299b817288b5a6637ded416dbbdc9b00036d
[ "Apache-2.0" ]
null
null
null
lingvo/model_imports.py
muntasir2000/lingvo
1555299b817288b5a6637ded416dbbdc9b00036d
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # 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 # ...
30.967213
80
0.694547
43310c0dcc626856359d7679b7173909ddd6bb68
13,209
py
Python
tests/test_configuration_set.py
pletessier/python-configuration
7ab87eaa244b704ee3c64e511fd4797ec888fe34
[ "MIT" ]
null
null
null
tests/test_configuration_set.py
pletessier/python-configuration
7ab87eaa244b704ee3c64e511fd4797ec888fe34
[ "MIT" ]
null
null
null
tests/test_configuration_set.py
pletessier/python-configuration
7ab87eaa244b704ee3c64e511fd4797ec888fe34
[ "MIT" ]
null
null
null
from config import ( config_from_dict, config_from_env, config_from_python, create_path_from_config, ConfigurationSet, config ) from pytest import raises import os import json try: import yaml except ImportError: yaml = None # type: ignore try: import toml except ImportError: to...
28.345494
103
0.550534
0350a0a8e11ef6ee0e3e5fe9e75486eb9553a15d
8,590
py
Python
pac.py
MajoDiaz/Pacman
19200eaaf6d0499d7ff6c3104ea32a533ea8f165
[ "MIT" ]
null
null
null
pac.py
MajoDiaz/Pacman
19200eaaf6d0499d7ff6c3104ea32a533ea8f165
[ "MIT" ]
null
null
null
pac.py
MajoDiaz/Pacman
19200eaaf6d0499d7ff6c3104ea32a533ea8f165
[ "MIT" ]
null
null
null
"""Pacman, classic arcade game. Exercises 1. Change the board. 2. Change the number of ghosts. 3. Change where pacman starts. 4. Make the ghosts faster/slower. 5. Make the ghosts smarter. """ #A01701879 María José Díaz Sánchez #A00829556 Santiago Gonzalez Irigoyen #Este código es un juego de pacman from random impo...
33.554688
86
0.547497
d063ba09c2eb0b5096d9f3fd5b798cae560b7608
1,936
py
Python
restorm/managers.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
3
2017-01-03T16:41:35.000Z
2020-09-17T09:39:02.000Z
restorm/managers.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
null
null
null
restorm/managers.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
3
2017-01-02T18:59:02.000Z
2020-09-17T09:53:31.000Z
# -*- coding: utf-8 -*- from restorm.exceptions import RestServerException, RestValidationException from restorm.patterns import ResourcePattern from restorm.query import RestQuerySet class ResourceManagerDescriptor(object): """ This class ensures managers aren't accessible via model instances. For exampl...
29.333333
77
0.652376
0725a7d94dc62a6935f2976549b4fff79860e1fd
169
py
Python
teste.py
dom8891/Projeto_LMS_DevOps
d7a881811c76bbac197ecca5a6da17f041c12646
[ "Apache-2.0" ]
null
null
null
teste.py
dom8891/Projeto_LMS_DevOps
d7a881811c76bbac197ecca5a6da17f041c12646
[ "Apache-2.0" ]
null
null
null
teste.py
dom8891/Projeto_LMS_DevOps
d7a881811c76bbac197ecca5a6da17f041c12646
[ "Apache-2.0" ]
null
null
null
import pytest from principal import somar from principal import subtrair def teste_somar(): assert somar(2,4)==6 def teste_subtrair(): assert subtrair(9,5)==4
18.777778
30
0.739645
70acff208b579e920f945d980b63178c0bc1f4f7
451
py
Python
setup.py
andreyz/mapzen-gtfs
d445f1588ed10713eea9a1ca2878eef792121eca
[ "MIT" ]
29
2015-06-08T00:49:52.000Z
2021-09-25T21:46:53.000Z
setup.py
andreyz/mapzen-gtfs
d445f1588ed10713eea9a1ca2878eef792121eca
[ "MIT" ]
12
2015-07-28T07:12:55.000Z
2017-05-11T14:24:12.000Z
setup.py
andreyz/mapzen-gtfs
d445f1588ed10713eea9a1ca2878eef792121eca
[ "MIT" ]
10
2015-07-28T06:57:51.000Z
2021-01-05T05:56:27.000Z
from setuptools import setup import mzgtfs setup( name='mzgtfs', version=mzgtfs.__version__, description='Mapzen GTFS', author='Ian Rees', author_email='ian@mapzen.com', url='https://github.com/transitland/mapzen-gtfs', license='License :: OSI Approved :: MIT License', packages=['mzgtfs'], install_r...
22.55
51
0.662971
f795caa633969d307251a97fef43a29b2ec0e66c
2,291
py
Python
python_utilities/scripting.py
sdaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
2
2020-04-13T20:17:36.000Z
2020-05-12T01:13:12.000Z
python_utilities/scripting.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
5
2015-10-20T22:57:51.000Z
2017-09-07T01:10:23.000Z
python_utilities/scripting.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
3
2015-08-17T17:55:41.000Z
2018-09-19T13:56:42.000Z
"""Basic utilities for common scripting tasks. Author: Seth Axen E-mail: seth.axen@gmail.com """ import logging import time LOG_LEVELS = (logging.NOTSET, logging.INFO, logging.DEBUG, logging.WARNING, logging.ERROR, logging.CRITICAL) def setup_logging(filename=None, verbose=False, level=-1, ...
34.712121
76
0.64557
a52c9cafd4e97a2a095dcdbd585659044c6ccff9
1,323
py
Python
pajbot/managers/kvi.py
sadlyfell/bullbot
b6ef96f61678fab4a245d8ccddf9d1ae7aae9fee
[ "MIT" ]
null
null
null
pajbot/managers/kvi.py
sadlyfell/bullbot
b6ef96f61678fab4a245d8ccddf9d1ae7aae9fee
[ "MIT" ]
null
null
null
pajbot/managers/kvi.py
sadlyfell/bullbot
b6ef96f61678fab4a245d8ccddf9d1ae7aae9fee
[ "MIT" ]
1
2020-03-11T19:37:10.000Z
2020-03-11T19:37:10.000Z
import logging from collections import UserDict from pajbot.managers.redis import RedisManager from pajbot.streamhelper import StreamHelper log = logging.getLogger(__name__) class KVIData: def __init__(self, streamer, kvi_id): self.key = "{streamer}:kvi".format(streamer=streamer) self.id = kvi_i...
24.5
61
0.623583
9fd76bf228b89c2c1df71410fd5f5a49b1a8a59f
3,062
py
Python
clld/tests/test_web_views_olac.py
Woseseltops/clld
5ba065f35b7e6f68b8638d86550e6f0f597ff02d
[ "MIT" ]
1
2019-08-12T15:43:56.000Z
2019-08-12T15:43:56.000Z
clld/tests/test_web_views_olac.py
Woseseltops/clld
5ba065f35b7e6f68b8638d86550e6f0f597ff02d
[ "MIT" ]
null
null
null
clld/tests/test_web_views_olac.py
Woseseltops/clld
5ba065f35b7e6f68b8638d86550e6f0f597ff02d
[ "MIT" ]
null
null
null
from datetime import date from clld.tests.util import TestWithEnv, XmlResponse class OaiPmhResponse(XmlResponse): ns = 'http://www.openarchives.org/OAI/2.0/' @property def error(self): e = self.findall('error') if e: return e[0].get('code') def test_ResumptionToken(): f...
37.802469
88
0.67113
31f7773549205a89a098fd66f8b2172f41b02e1f
231
py
Python
app/controller/ops/__init__.py
YiChengCai1999/DepressionAnnotator
828f505d0f22f7c2337f1b37c7dee3ea23468951
[ "Apache-2.0" ]
null
null
null
app/controller/ops/__init__.py
YiChengCai1999/DepressionAnnotator
828f505d0f22f7c2337f1b37c7dee3ea23468951
[ "Apache-2.0" ]
null
null
null
app/controller/ops/__init__.py
YiChengCai1999/DepressionAnnotator
828f505d0f22f7c2337f1b37c7dee3ea23468951
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/12/3 14:06 # @Author : cendeavor # @File : __init__.py.py # @Software: PyCharm from flask import Blueprint ops = Blueprint('ops', __name__) from . import views
17.769231
32
0.640693
f2ea5a465a171ac988f2d56bfefe5c9928ca14a5
2,254
py
Python
src/cltl/combot/infra/event/api.py
leolani/cltl-combot
7008742ba9db782166f79322658a8cb49890d61b
[ "MIT" ]
1
2020-11-21T18:53:22.000Z
2020-11-21T18:53:22.000Z
src/cltl/combot/infra/event/api.py
leolani/cltl-combot
7008742ba9db782166f79322658a8cb49890d61b
[ "MIT" ]
null
null
null
src/cltl/combot/infra/event/api.py
leolani/cltl-combot
7008742ba9db782166f79322658a8cb49890d61b
[ "MIT" ]
null
null
null
import uuid from dataclasses import dataclass from typing import TypeVar, Generic, Optional, Iterable, Callable import time from cltl.combot.infra.di_container import DIContainer class TopicError(ValueError): pass @dataclass class EventMetadata: timestamp: float = time.time() offset: int = -1 topi...
28.531646
122
0.689885
23f4aa44ac35da4eb0bb75fd335b88135ad3762f
898
py
Python
tests/test_block_enumerate.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
64
2020-03-18T12:11:22.000Z
2022-03-31T08:19:18.000Z
tests/test_block_enumerate.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
148
2020-05-14T06:14:11.000Z
2022-03-26T15:02:31.000Z
tests/test_block_enumerate.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
16
2020-05-31T00:53:44.000Z
2022-03-23T13:20:57.000Z
import pyclesperanto_prototype as cle import numpy as np source = np.asarray([[0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0]]) reference = np.asarray([[0, 1, 0, 2, 0, 0, 3, 4, 0, 0, 5, 0]]) def block_enum(source, blocksize): flagged_indices = cle.push(source) max_label = source.shape[1] - 1 block_sums = cle.cre...
30.965517
76
0.679287
1e8bd26b3e6da005f8c995f4899a91f8d6459e86
7,831
py
Python
test_project/test_app/tests/test_site_notify.py
ninemoreminutes/django-site-utils
d0c9f360451593f20ce0e80866f7e76185c0764b
[ "BSD-3-Clause" ]
null
null
null
test_project/test_app/tests/test_site_notify.py
ninemoreminutes/django-site-utils
d0c9f360451593f20ce0e80866f7e76185c0764b
[ "BSD-3-Clause" ]
13
2020-05-07T03:57:03.000Z
2022-03-12T00:54:56.000Z
test_project/test_app/tests/test_site_notify.py
ninemoreminutes/django-site-utils
d0c9f360451593f20ce0e80866f7e76185c0764b
[ "BSD-3-Clause" ]
null
null
null
# Python from __future__ import unicode_literals import email.utils # Django import django def test_site_notify_default(command_runner, mailoutbox, settings): # Send to default recipients (admins). assert settings.ADMINS result = command_runner('site_notify') assert result[0] is None assert len(m...
41
96
0.713702
4dca9385067e4de3ae4bf60432fbff27e253fa40
9,623
py
Python
test/functional/listsinceblock.py
harzcoin/harzcoin
fb2c9d0e079fc4b55b3eb8cc0bfcb873ed1155d9
[ "MIT" ]
null
null
null
test/functional/listsinceblock.py
harzcoin/harzcoin
fb2c9d0e079fc4b55b3eb8cc0bfcb873ed1155d9
[ "MIT" ]
null
null
null
test/functional/listsinceblock.py
harzcoin/harzcoin
fb2c9d0e079fc4b55b3eb8cc0bfcb873ed1155d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Harzcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listsincelast RPC.""" from test_framework.test_framework import HarzcoinTestFramework from test_f...
34.245552
106
0.579653
d399a73bd5fa0b09028a970224ce8a036e1eaebd
1,114
py
Python
share/rpcuser/rpcuser.py
jwflame/nyancoin-client-1
6bc7686edf8bc4b058d504ce0ab40b7cd2a0597b
[ "MIT" ]
null
null
null
share/rpcuser/rpcuser.py
jwflame/nyancoin-client-1
6bc7686edf8bc4b058d504ce0ab40b7cd2a0597b
[ "MIT" ]
3
2021-12-19T15:19:12.000Z
2022-01-27T16:59:49.000Z
share/rpcuser/rpcuser.py
jwflame/nyancoin-client-1
6bc7686edf8bc4b058d504ce0ab40b7cd2a0597b
[ "MIT" ]
3
2021-11-30T16:30:39.000Z
2022-01-21T18:13:30.000Z
#!/usr/bin/env python2 # Copyright (c) 2015-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import hashlib import sys import os from random import SystemRandom import base64 import hmac if len(s...
26.52381
79
0.728007
1847bb27f5e627e7221d77b2e6778a5e029e8c2e
8,859
py
Python
tests/test_slddb/test_webapi.py
bmaranville/orsopy
74083afdce8f8f1ab3866c7f1f5209942c8734db
[ "MIT" ]
null
null
null
tests/test_slddb/test_webapi.py
bmaranville/orsopy
74083afdce8f8f1ab3866c7f1f5209942c8734db
[ "MIT" ]
null
null
null
tests/test_slddb/test_webapi.py
bmaranville/orsopy
74083afdce8f8f1ab3866c7f1f5209942c8734db
[ "MIT" ]
null
null
null
import os import shutil import sys import tempfile import unittest import zipfile from importlib import reload from urllib import request class TestWebAPI(unittest.TestCase): server_available = True @classmethod def setUpClass(cls): # create a temporary fold to download python api and store data...
33.430189
99
0.606276
c60bc14d7f9c91e9a8ee3e270eae5e38e759b1cb
6,992
py
Python
src/site/context_processors.py
dvsidorov/django-leon-base
bb68f81ad45ce5e416e483c87a98e9fcbedf8f19
[ "MIT" ]
null
null
null
src/site/context_processors.py
dvsidorov/django-leon-base
bb68f81ad45ce5e416e483c87a98e9fcbedf8f19
[ "MIT" ]
null
null
null
src/site/context_processors.py
dvsidorov/django-leon-base
bb68f81ad45ce5e416e483c87a98e9fcbedf8f19
[ "MIT" ]
null
null
null
# coding: utf-8 from ..base.context_processors import BaseContextProcessor class FrontMainMenuContextProcessor(BaseContextProcessor): """ Class for block context processor menu """ MAIN_MENU_ITEM_MODEL = None def _create_data(self): self.main_menu = self.MAIN_MENU_ITEM_MODEL.objects.fil...
24.362369
99
0.627002
e8693f678a929ce82a307ce8a0cc6138998d50c1
25,479
py
Python
run_baselines_exp.py
ashok-arjun/few-shot-ssl-public
f7577d80b7491e0f27234a2e9c0113782365c2e1
[ "MIT" ]
497
2018-03-02T00:50:53.000Z
2022-03-22T06:30:59.000Z
run_baselines_exp.py
eleniTriantafillou/few-shot-ssl-public
3cf522031aa40b4ffb61e4693d0b48fdd5669276
[ "MIT" ]
20
2018-03-19T06:15:30.000Z
2021-11-20T07:21:38.000Z
run_baselines_exp.py
eleniTriantafillou/few-shot-ssl-public
3cf522031aa40b4ffb61e4693d0b48fdd5669276
[ "MIT" ]
108
2018-03-02T06:56:13.000Z
2021-12-23T03:40:43.000Z
# Copyright (c) 2018 Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, # Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, Richars S. Zemel. # # 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 th...
32.96119
94
0.61953
35db33b7042d4213dcd44f6dca595b054394fe60
955
py
Python
tensor2tensor/problems_test.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
61
2018-06-23T01:40:58.000Z
2021-06-07T09:33:38.000Z
tensor2tensor/problems_test.py
zhaopufeng/tensor2tensor
7bb67a18e1e4a0cddd1d61c65c937f14c1c124e3
[ "Apache-2.0" ]
5
2020-02-06T01:01:43.000Z
2022-02-09T23:28:40.000Z
tensor2tensor/problems_test.py
zhaopufeng/tensor2tensor
7bb67a18e1e4a0cddd1d61c65c937f14c1c124e3
[ "Apache-2.0" ]
8
2018-10-23T13:10:12.000Z
2019-07-31T05:53:08.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
29.84375
74
0.772775
ca4875ef9069beca4d8412d51511232016255c85
11,762
py
Python
test_app/migrations/0001_initial.py
anfema/wagtail_to_ion
2c042d220f4421f8a277c4bfcbdd65f89d76f4c7
[ "MIT" ]
1
2022-02-22T08:13:16.000Z
2022-02-22T08:13:16.000Z
test_app/migrations/0001_initial.py
anfema/wagtail_to_ion
2c042d220f4421f8a277c4bfcbdd65f89d76f4c7
[ "MIT" ]
33
2020-11-05T10:30:27.000Z
2022-03-11T12:23:25.000Z
test_app/migrations/0001_initial.py
anfema/wagtail_to_ion
2c042d220f4421f8a277c4bfcbdd65f89d76f4c7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.11 on 2021-01-04 13:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import taggit.managers import wagtail.core.models import wagtail.images.models import wagtail.search.index class Migration(migrations.Migration): initial = ...
63.236559
221
0.619793
c64a75e7e921238e60fc6192289592dae1110569
1,748
py
Python
src/pages/models.py
Nnonexistent/chemphys
d2f34364d006a494bb965bb83d1967d7dd56f9ba
[ "MIT" ]
null
null
null
src/pages/models.py
Nnonexistent/chemphys
d2f34364d006a494bb965bb83d1967d7dd56f9ba
[ "MIT" ]
19
2015-03-08T08:46:09.000Z
2019-10-01T05:16:43.000Z
src/pages/models.py
Nnonexistent/chemphys
d2f34364d006a494bb965bb83d1967d7dd56f9ba
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.conf import settings from utils.localized import BaseLocalizedObject, BaseLocalizedContent class Page(BaseLocalizedObject): order = models.PositiveIntegerField(verbose_name=_(u'Order'), blank=True, default=0) url...
31.214286
88
0.661327
30f4def960558c74b8676f8da6d158bdcd0cfb5d
2,749
py
Python
observations/r/channing.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/channing.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/channing.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def channing(path): """Channing House Data The `channing` data frame h...
33.120482
74
0.702437
9a3696ef79fbf67747fde98a9be47a792125ae01
2,303
py
Python
CarMazeHw1/solver.py
linhthi/int3401
7a785067da21d5e70421b26db0786375bf1254bc
[ "MIT" ]
null
null
null
CarMazeHw1/solver.py
linhthi/int3401
7a785067da21d5e70421b26db0786375bf1254bc
[ "MIT" ]
null
null
null
CarMazeHw1/solver.py
linhthi/int3401
7a785067da21d5e70421b26db0786375bf1254bc
[ "MIT" ]
3
2022-03-07T04:22:16.000Z
2022-03-24T11:37:46.000Z
from environment import CarMazeEnv from queue import Queue from functools import partial class Solver: def __init__(self, env: CarMazeEnv) -> None: self.env = env self.found = None def act_and_add_state(self, act, prev_state, cur_cost, is_ucf=False): x, y, d, v, step_cost = act(*prev_...
29.151899
73
0.52627
47970ea8f304b3ed51d13b598a6c44e91b0e068a
6,301
py
Python
utils/dataloader/dataloader_multiview_blender.py
DrZedd42/DIB-R
611f69dce00e75f65b37722120010e2da46fc1bf
[ "MIT" ]
607
2019-08-08T02:41:48.000Z
2022-03-29T07:53:11.000Z
utils/dataloader/dataloader_multiview_blender.py
DrZedd42/DIB-R
611f69dce00e75f65b37722120010e2da46fc1bf
[ "MIT" ]
23
2019-08-17T15:52:01.000Z
2021-11-10T03:32:41.000Z
utils/dataloader/dataloader_multiview_blender.py
DrZedd42/DIB-R
611f69dce00e75f65b37722120010e2da46fc1bf
[ "MIT" ]
108
2019-11-09T22:30:27.000Z
2022-03-23T02:08:27.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # 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, m...
35.005556
102
0.565466
5a59255e6e651fbf080f0a9f574308f0bf255027
10,810
py
Python
cfgov/ask_cfpb/migrations/0045_remove_category_sidebar.py
adebisi-aden/consumerfinance.gov
8c0f5afac341823c59f73b0c6bd60592e0f5eaca
[ "CC0-1.0" ]
37
2020-08-18T19:52:39.000Z
2022-03-23T08:08:41.000Z
cfgov/ask_cfpb/migrations/0045_remove_category_sidebar.py
adebisi-aden/consumerfinance.gov
8c0f5afac341823c59f73b0c6bd60592e0f5eaca
[ "CC0-1.0" ]
338
2020-08-14T20:46:36.000Z
2022-03-31T20:49:32.000Z
cfgov/ask_cfpb/migrations/0045_remove_category_sidebar.py
adebisi-aden/consumerfinance.gov
8c0f5afac341823c59f73b0c6bd60592e0f5eaca
[ "CC0-1.0" ]
14
2020-10-21T15:27:03.000Z
2022-03-17T03:16:36.000Z
# Generated by Django 2.2.24 on 2021-08-03 13:53 from django.db import migrations import v1.atomic_elements.molecules import v1.blocks import v1.models.snippets import wagtail.core.blocks import wagtail.core.fields import wagtail.snippets.blocks class Migration(migrations.Migration): dependencies = [ ('...
360.333333
6,343
0.754117
51b693c303c20c715f185b2ec214b5500eb98d44
2,288
py
Python
Priv-esc/proc_privileges_monitor.py
crake7/Network-Pen-Test-Tools
80ddce5a9429611fbf5c313498979c624188d6c5
[ "MIT" ]
6
2021-04-17T12:52:46.000Z
2021-07-09T23:41:26.000Z
Priv-esc/proc_privileges_monitor.py
crake7/Network-Pen-Test-Tools
80ddce5a9429611fbf5c313498979c624188d6c5
[ "MIT" ]
null
null
null
Priv-esc/proc_privileges_monitor.py
crake7/Network-Pen-Test-Tools
80ddce5a9429611fbf5c313498979c624188d6c5
[ "MIT" ]
null
null
null
import os import sys import win32api import win32con import win32security import wmi def get_process_privileges(pid): ''' Automatically retrieves the enabled privileges on the processes we monitor''' try: hproc = win32api.OpenProcess( win32con.PROCESS_QUERY_INFORMATION, False,...
36.903226
110
0.604895
762c90e6e49d80bfef93bd55b5d8e48ea43f5bde
2,319
py
Python
quantum/tests/unit/test_common_utils.py
aristanetworks/arista-ovs-quantum
8e7fe17cafa70c3346e2a5d70da2d6e2637c338e
[ "Apache-2.0" ]
1
2019-04-11T10:27:47.000Z
2019-04-11T10:27:47.000Z
quantum/tests/unit/test_common_utils.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
null
null
null
quantum/tests/unit/test_common_utils.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.016393
78
0.686072
72ca725e1a5e53ab2f8297d7d87bd40397db5121
1,690
py
Python
aries_cloudagency/protocols/trustping/v1_0/messages/tests/test_trust_ping_reponse.py
osancus/aries-cloudagency-python
d0ce77a3a11927715d1cb3533313d17a27b1cf7a
[ "Apache-2.0" ]
null
null
null
aries_cloudagency/protocols/trustping/v1_0/messages/tests/test_trust_ping_reponse.py
osancus/aries-cloudagency-python
d0ce77a3a11927715d1cb3533313d17a27b1cf7a
[ "Apache-2.0" ]
null
null
null
aries_cloudagency/protocols/trustping/v1_0/messages/tests/test_trust_ping_reponse.py
osancus/aries-cloudagency-python
d0ce77a3a11927715d1cb3533313d17a27b1cf7a
[ "Apache-2.0" ]
3
2020-07-03T21:35:34.000Z
2020-09-09T13:26:20.000Z
from unittest import mock, TestCase from asynctest import TestCase as AsyncTestCase from ..ping_response import PingResponse from ...message_types import PING_RESPONSE class TestPingResponse(TestCase): def setUp(self): self.test_comment = "hello" self.test_ping = PingResponse(comment=self.test_...
29.137931
99
0.691124
e00d55b9dca6d0c43a9fc85fd5977d84d64403a1
4,396
py
Python
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/show_trigger_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/show_trigger_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/show_trigger_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowTriggerRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key...
26.481928
94
0.569836
17b258bf2c7b3d5382606461e25cf35dd4548645
1,672
py
Python
tests/test_sysbottle.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
tests/test_sysbottle.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
tests/test_sysbottle.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DataStax, 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 writing,...
34.833333
91
0.713517
96479f981eab8c08ccf8cabb90dfcca0e22630b4
741
py
Python
peerplaysbase/asset_permissions.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
10
2019-03-14T03:09:42.000Z
2021-03-17T10:20:05.000Z
peerplaysbase/asset_permissions.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
8
2019-04-02T17:07:20.000Z
2020-04-30T08:24:01.000Z
peerplaysbase/asset_permissions.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
4
2019-04-02T17:00:22.000Z
2021-08-09T11:28:20.000Z
asset_permissions = {} asset_permissions["charge_market_fee"] = 0x01 asset_permissions["white_list"] = 0x02 asset_permissions["override_authority"] = 0x04 asset_permissions["transfer_restricted"] = 0x08 asset_permissions["disable_force_settle"] = 0x10 asset_permissions["global_settle"] = 0x20 asset_permissions["disable...
28.5
51
0.735493
2359c04d36d4e545d33150d496958dbbd1c9ea61
5,306
py
Python
src/runners/alert_suppressions_runner.py
ttracx/SnowAlert
2df7938ca8a5058b4d9b4f36bdf67ea638b9ff4c
[ "Apache-2.0" ]
null
null
null
src/runners/alert_suppressions_runner.py
ttracx/SnowAlert
2df7938ca8a5058b4d9b4f36bdf67ea638b9ff4c
[ "Apache-2.0" ]
null
null
null
src/runners/alert_suppressions_runner.py
ttracx/SnowAlert
2df7938ca8a5058b4d9b4f36bdf67ea638b9ff4c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import uuid import datetime from typing import List from config import ALERTS_TABLE, METADATA_TABLE, RULES_SCHEMA, ALERT_SQUELCH_POSTFIX, CLOUDWATCH_METRICS from helpers import log from helpers.db import connect, load_rules RUN_METADATA = {'QUERY_HISTORY': [], 'RUN_TYPE': 'ALERT SUP...
35.610738
114
0.6634
619a20a42f57970c076e0791abbfb5630a6b5254
2,279
py
Python
fastFood/test.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
4
2020-11-23T04:50:41.000Z
2021-03-12T06:19:59.000Z
fastFood/test.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
null
null
null
fastFood/test.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt a = [['108.937847', '34.132887'], ['108.868828', '34.199134'], ['109.015041', '34.211159'], ['108.944062', '34.352765'], ['108.919294', '34.180144'], ['108.892008', '34.283387'], ['108.871430', '34.261104'], ['108.961922', '34.276979'], ['108.909284', '34.247895'], ['108....
65.114286
121
0.555946
69dac8dbc21bf585da7a33009285ba81ce8e9ce4
76
py
Python
test/data/lambda_function.py
ToQoz/kumogata-template
f7766a1cda27c30f01e743bf80b6465c7f55f2a4
[ "MIT" ]
2
2017-06-12T13:16:58.000Z
2017-06-29T03:01:32.000Z
test/data/lambda_function.py
ToQoz/kumogata-template
f7766a1cda27c30f01e743bf80b6465c7f55f2a4
[ "MIT" ]
7
2018-03-20T07:45:30.000Z
2019-03-27T10:29:28.000Z
test/data/lambda_function.py
ToQoz/kumogata-template
f7766a1cda27c30f01e743bf80b6465c7f55f2a4
[ "MIT" ]
8
2017-05-02T07:40:18.000Z
2018-08-09T02:33:11.000Z
import boto3 def lambda_handler(event, context): print('hello lambda')
15.2
35
0.736842
2c32b3dcddb1ba65e595c05df4bb79d476a45044
595
py
Python
experiments/2013-08-19-step-burst.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/2013-08-19-step-burst.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/2013-08-19-step-burst.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='Trying out the step and burst kernels', data_dir='../data/temp/', max_depth=8, random_order=False, k=1, debug=False, local_computation=False, n_rand=5, sd=4, max_jobs=400, verbose=F...
27.045455
63
0.492437
a25e68a27f657aee09db0e2871696ab1babf3408
185
py
Python
setup.py
pieterb/aiopluggy
40a28c38bed35cc8df8703d99c25c75b3fe82151
[ "MIT" ]
1
2018-01-12T20:36:37.000Z
2018-01-12T20:36:37.000Z
setup.py
pieterb/aiopluggy
40a28c38bed35cc8df8703d99c25c75b3fe82151
[ "MIT" ]
null
null
null
setup.py
pieterb/aiopluggy
40a28c38bed35cc8df8703d99c25c75b3fe82151
[ "MIT" ]
2
2020-01-28T19:33:20.000Z
2022-01-17T00:13:28.000Z
#!/usr/bin/env python """ See <https://setuptools.readthedocs.io/en/latest/>. """ from setuptools import setup def main(): return setup() if __name__ == '__main__': main()
13.214286
55
0.643243
5ccf8a50dbfb891cae7d2dfbedc3df8aaff6ecec
8,478
py
Python
train_custom.py
eirene-aisa/glow-tts-practice
9210bf18b92ba5cd95a3d5fe2a725f6acd15e29f
[ "MIT" ]
null
null
null
train_custom.py
eirene-aisa/glow-tts-practice
9210bf18b92ba5cd95a3d5fe2a725f6acd15e29f
[ "MIT" ]
null
null
null
train_custom.py
eirene-aisa/glow-tts-practice
9210bf18b92ba5cd95a3d5fe2a725f6acd15e29f
[ "MIT" ]
null
null
null
import os import json import argparse import math import torch from torch import nn, optim from torch.nn import functional as F from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter import torch.multiprocessing as mp import torch.distributed as dist from apex.parallel import Distribu...
43.035533
229
0.625383
d28c0a7e917796aa60246f8ff298b70e9465d095
20,322
py
Python
tests/test_torch.py
KeAWang/client
45af52a31db0b63118c7f2b15c7c8b40f1f05f29
[ "MIT" ]
null
null
null
tests/test_torch.py
KeAWang/client
45af52a31db0b63118c7f2b15c7c8b40f1f05f29
[ "MIT" ]
null
null
null
tests/test_torch.py
KeAWang/client
45af52a31db0b63118c7f2b15c7c8b40f1f05f29
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import wandb import pytest import json import os import sys import time from pprint import pprint from torchvision import models from torch.autograd import Variable from pkg_resources import parse_version # Tests which rely on row history in memory sho...
34.797945
124
0.607765
49d34e437b492dbe7d5892209a69062c98135c27
584
py
Python
loadMat.py
xvlab/pupil-extraction
38e6f3c93ea073dac8a74e41c0f230552a9a927b
[ "MIT" ]
null
null
null
loadMat.py
xvlab/pupil-extraction
38e6f3c93ea073dac8a74e41c0f230552a9a927b
[ "MIT" ]
null
null
null
loadMat.py
xvlab/pupil-extraction
38e6f3c93ea073dac8a74e41c0f230552a9a927b
[ "MIT" ]
null
null
null
import scipy.io import numpy as np path = "Thy1-GCaMP6s-M5-K-airpuff-0707" data = scipy.io.loadmat('\\\\192.168.3.146\\public\\临时文件\\xpy\\' + path + '\\info.mat') # 读取mat文件 strengthData = scipy.io.loadmat('\\\\192.168.3.146\\public\\临时文件\\xpy\\' + path + '\\strength.mat') print(strengthData.keys()) # 查看mat文件中的所有变量 ...
36.5
99
0.686644
5d0416a6d2705942f55bc7540b68c517909b75b8
12,425
py
Python
src/m2ee/munin.py
pommi/m2ee-tools
20f1cd2ca4cf2bf789d0f47d87d873299f8dff31
[ "BSD-3-Clause" ]
null
null
null
src/m2ee/munin.py
pommi/m2ee-tools
20f1cd2ca4cf2bf789d0f47d87d873299f8dff31
[ "BSD-3-Clause" ]
null
null
null
src/m2ee/munin.py
pommi/m2ee-tools
20f1cd2ca4cf2bf789d0f47d87d873299f8dff31
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2009-2013, Mendix bv # All Rights Reserved. # # http://www.mendix.com/ # import pwd import os import string from m2ee.log import logger # Use json if available. If not (python 2.5) we need to import the simplejson # module instead, which has to be available. try: import json except ImportError:...
31.455696
79
0.666962
4ffe23f99deadf3fb9a441741a1dc3656e5b7f04
1,688
py
Python
app/users/serializers.py
kmnkit/recipe-app-API
50189cf19e6de40b7323055b73d427339a8f06a4
[ "MIT" ]
null
null
null
app/users/serializers.py
kmnkit/recipe-app-API
50189cf19e6de40b7323055b73d427339a8f06a4
[ "MIT" ]
null
null
null
app/users/serializers.py
kmnkit/recipe-app-API
50189cf19e6de40b7323055b73d427339a8f06a4
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers as sz class UserSerializer(sz.ModelSerializer): """Serializer for the users object""" class Meta: model = get_user_model() fields = ('ema...
31.259259
74
0.637441
85a2ac784cbbb754006c78b62d1deea41e4130e1
593
py
Python
share/extended-cpt/analysis/trajectories/plot_trajectories.py
ucla-pbpl/pbpl-compton
a5afcdffc778f61a4726d7c5a231af2bca466900
[ "MIT" ]
2
2019-09-24T23:52:58.000Z
2020-06-03T20:59:33.000Z
share/extended-cpt/analysis/trajectories/plot_trajectories.py
ucla-pbpl/pbpl-compton
a5afcdffc778f61a4726d7c5a231af2bca466900
[ "MIT" ]
null
null
null
share/extended-cpt/analysis/trajectories/plot_trajectories.py
ucla-pbpl/pbpl-compton
a5afcdffc778f61a4726d7c5a231af2bca466900
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import argparse import numpy as np from pbpl.common.units import * import h5py from scipy.linalg import norm from collections import namedtuple import ezdxf def dump_dxf(): A = np.loadtxt( 'trajectories-12600.txt', usecols=(0,2,10), dtype=np.float, skiprows=7) dwg = ezd...
24.708333
79
0.639123
307adb503d9917cab1433dc6aebd1db2667c26cb
5,001
py
Python
nipype/interfaces/niftyseg/tests/test_maths.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/niftyseg/tests/test_maths.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/niftyseg/tests/test_maths.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import pytest from nipype.interfaces.niftyreg import no_nifty_package, get_custom_path from nipype.interfaces.niftyseg import (UnaryMaths, BinaryMaths, BinaryMathsI...
29.417647
75
0.658868
5728e9e08bb9b0c6002a5b6bb8415e78ef4fdd11
4,552
py
Python
detect.py
Promech2020/COVID_19_SDC_YOLOV4
7ba3d110f72f315d8ee2ec68db773d3d7d399774
[ "MIT" ]
null
null
null
detect.py
Promech2020/COVID_19_SDC_YOLOV4
7ba3d110f72f315d8ee2ec68db773d3d7d399774
[ "MIT" ]
null
null
null
detect.py
Promech2020/COVID_19_SDC_YOLOV4
7ba3d110f72f315d8ee2ec68db773d3d7d399774
[ "MIT" ]
null
null
null
import tensorflow as tf physical_devices = tf.config.experimental.list_physical_devices('GPU') if len(physical_devices) > 0: tf.config.experimental.set_memory_growth(physical_devices[0], True) from absl import app, flags, logging from absl.flags import FLAGS import core.utils as utils from core.yolov4 import filter...
43.352381
162
0.707162
c08effc69b8386306a538fb0d8e135253d8c6f6b
30,081
py
Python
character_ui.py
nextr3d/Character-UI
ae15dcd2c83d912f8aa465ec82ea89b8c7eaf43f
[ "Apache-2.0" ]
26
2020-12-02T09:16:53.000Z
2022-02-13T13:05:59.000Z
character_ui.py
nextr3d/Character-UI
ae15dcd2c83d912f8aa465ec82ea89b8c7eaf43f
[ "Apache-2.0" ]
15
2021-04-14T21:10:42.000Z
2022-02-21T22:33:03.000Z
character_ui.py
nextr3d/Character-UI
ae15dcd2c83d912f8aa465ec82ea89b8c7eaf43f
[ "Apache-2.0" ]
4
2021-04-13T07:17:50.000Z
2022-01-13T15:15:22.000Z
import bpy, time, re from bpy.types import Operator, Panel, PropertyGroup from bpy.utils import register_class, unregister_class from bpy.props import EnumProperty, BoolProperty, StringProperty, IntProperty, FloatVectorProperty """ available variables character_id character_id_key rig_layers_key links_key custom_label...
44.897015
250
0.57415
713a31111f124deeeed3850126d1247ae8b239c7
3,496
py
Python
simscale_sdk/models/unit_temperature.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/unit_temperature.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/unit_temperature.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class UnitTemperature(object): """NOTE: This class is auto generated ...
27.968
109
0.561499
298f1c895dae0aad86500ee35a1875fa06e8313b
345
py
Python
scripts/figures/figure7/pipeswitch_inception_v3/remote_run_data.py
netx-repo/PipeSwitch
f321d399e501b79ad51da13074e2aecda36cb06a
[ "Apache-2.0" ]
81
2020-11-05T16:15:58.000Z
2022-03-09T07:38:51.000Z
scripts/figures/figure7/pipeswitch_inception_v3/remote_run_data.py
baizh1994/PipeSwitch
cb7b03f0777cc59038a449e55ce1492f7ec973c6
[ "Apache-2.0" ]
3
2020-12-21T13:00:09.000Z
2021-06-13T15:08:46.000Z
scripts/figures/figure7/pipeswitch_inception_v3/remote_run_data.py
baizh1994/PipeSwitch
cb7b03f0777cc59038a449e55ce1492f7ec973c6
[ "Apache-2.0" ]
22
2020-11-06T07:51:35.000Z
2022-03-09T07:38:53.000Z
import os import sys from scripts.common.util import RunDocker def main(): with RunDocker('pipeswitch:pipeswitch', 'figure7_pipeswitch_inception_v3') as rd: # Start the server: pipeswitch rd.run('python PipeSwitch/scripts/run_data.py') # Get and return the data point if __name__ ...
24.642857
85
0.684058
112237a2e904de12d6ef5fe4b1f77d7fec1d6b99
65
py
Python
py/cap2/gauss.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
2
2020-03-21T19:12:10.000Z
2020-03-27T03:59:41.000Z
py/cap2/gauss.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
13
2020-03-20T01:27:57.000Z
2020-08-08T18:20:29.000Z
py/cap2/gauss.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
null
null
null
suma = 0 for i in range(1, 101): suma = suma + i print suma
10.833333
23
0.584615
eae8cd4712150890bc06abfe188adca320795641
154
py
Python
data/typing/pandas.testing.py
vfdev-5/python-record-api
006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b
[ "MIT" ]
null
null
null
data/typing/pandas.testing.py
vfdev-5/python-record-api
006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b
[ "MIT" ]
null
null
null
data/typing/pandas.testing.py
vfdev-5/python-record-api
006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b
[ "MIT" ]
null
null
null
from typing import * # usage.dask: 1 assert_frame_equal: object # usage.dask: 1 assert_index_equal: object # usage.dask: 1 assert_series_equal: object
14
27
0.772727
69ccb658c0171f9b4d41a0983037df70b8ff2846
3,611
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/ExternalDefinitionCreationOptions.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Autodesk/Revit/DB/__init___parts/ExternalDefinitionCreationOptions.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Autodesk/Revit/DB/__init___parts/ExternalDefinitionCreationOptions.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class ExternalDefinitionCreationOptions(object,IDisposable): """ An option class used for creating a new shared parameter definition,including options such as name,type,visibility, Guid description and modifiable flag. ExternalDefinitionCreationOptions(name: str,type: ParameterType) """ def Disp...
26.748148
215
0.725007
1fbafb37f5e74f270776fd341f08baaa937f98d0
281
py
Python
crawler.py
oursonvie/xcar
2bc52f2935e62823c589e9a9fe708f1dcd2cdb69
[ "Apache-2.0" ]
null
null
null
crawler.py
oursonvie/xcar
2bc52f2935e62823c589e9a9fe708f1dcd2cdb69
[ "Apache-2.0" ]
null
null
null
crawler.py
oursonvie/xcar
2bc52f2935e62823c589e9a9fe708f1dcd2cdb69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # crawler module from BeautifulSoup import BeautifulSoup import urllib2 import codecs def readlink(link): response = urllib2.urlopen(link) html = response.read() pagecontent = BeautifulSoup(html, fromEncoding='gb18030') return pagecontent
21.615385
61
0.729537
c8450935823b4a639bc84c771ac82b2a52444023
8,646
py
Python
devnet_gui_functions_ebo.py
ebarredo84/DEVNET_PREP_SW
de3548e49e4f625dc571c9e675066f9e1646a50e
[ "BSD-3-Clause" ]
null
null
null
devnet_gui_functions_ebo.py
ebarredo84/DEVNET_PREP_SW
de3548e49e4f625dc571c9e675066f9e1646a50e
[ "BSD-3-Clause" ]
null
null
null
devnet_gui_functions_ebo.py
ebarredo84/DEVNET_PREP_SW
de3548e49e4f625dc571c9e675066f9e1646a50e
[ "BSD-3-Clause" ]
null
null
null
#------USER INTERFACE (VIEW)---------- import tkinter as tk #------CONTROLLER-------------------- import json import base64 #----------SECUNDARY WINDOW---------- class SECUNDARY_WINDOW: def __init__(self,window2,msg): #VENTANA window2.geometry("600x100") window2.title("ASK PARA...
49.689655
194
0.445293
11d9031d1d62f5021dd640ce92b5b643fb94dad9
30,993
py
Python
tencentcloud/npp/v20190823/models.py
xuzixx/tencentcloud-sdk-python
98866ab9fd104cd6475b62fe78ff3fffd96d5ce0
[ "Apache-2.0" ]
null
null
null
tencentcloud/npp/v20190823/models.py
xuzixx/tencentcloud-sdk-python
98866ab9fd104cd6475b62fe78ff3fffd96d5ce0
[ "Apache-2.0" ]
null
null
null
tencentcloud/npp/v20190823/models.py
xuzixx/tencentcloud-sdk-python
98866ab9fd104cd6475b62fe78ff3fffd96d5ce0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
31.528993
211
0.609105
6c4fb3cdb5c6804e94fd5ced175528a90fbbcbd8
16,364
py
Python
psdaq/psdaq/pyxpm/surf/protocols/pgp/_Pgp3AxiL.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
134
2017-02-22T18:07:00.000Z
2022-03-21T16:12:23.000Z
python/surf/protocols/pgp/_Pgp3AxiL.py
a-panella/surf
b7c116c9f84760bda2c1ea9fa89fddef58dd831d
[ "BSD-3-Clause-LBNL" ]
251
2017-04-26T23:42:42.000Z
2022-03-03T18:48:43.000Z
python/surf/protocols/pgp/_Pgp3AxiL.py
a-panella/surf
b7c116c9f84760bda2c1ea9fa89fddef58dd831d
[ "BSD-3-Clause-LBNL" ]
38
2017-02-21T21:15:03.000Z
2022-02-06T00:22:37.000Z
#----------------------------------------------------------------------------- # Title : PyRogue _pgp2baxi Module #----------------------------------------------------------------------------- # Description: # PyRogue _pgp2baxi Module #----------------------------------------------------------------------------- #...
29.59132
112
0.385847
9c2c8be8670918f507f524f88126bed83efdaceb
1,587
py
Python
logging_utils/context/adapter.py
michalbachowski/pylogging_utils
0fe12fbea940fe4c9ae0eab76988d47bcda75213
[ "MIT" ]
null
null
null
logging_utils/context/adapter.py
michalbachowski/pylogging_utils
0fe12fbea940fe4c9ae0eab76988d47bcda75213
[ "MIT" ]
null
null
null
logging_utils/context/adapter.py
michalbachowski/pylogging_utils
0fe12fbea940fe4c9ae0eab76988d47bcda75213
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Package contains logging adapter """ import logging from contextlib import contextmanager class LoggerAdapterWithContext(logging.LoggerAdapter): """ Logger subclass that allows to define context. IT IS NEITHER THREAD NOR ASYNC SAFE """ def __init__(self, stack, logger): ...
31.117647
75
0.637681
c403bd42b7122fdfb40a4328debc6dcf328b2d50
5,101
py
Python
cctbx/geometry_restraints/lbfgs.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
cctbx/geometry_restraints/lbfgs.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/geometry_restraints/lbfgs.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function from cctbx import crystal from cctbx.array_family import flex import scitbx.lbfgs class empty: pass class lbfgs(object): def __init__(self, sites_cart, geometry_restraints_manager, riding_h_manager=None, correct_special_positi...
42.157025
79
0.743972
7f42eb7abf0824bfcfe27ab977b04d9f8fd2f53e
2,144
py
Python
8puzzle/Solver.py
RobMcZag/python-algorithms
307f243dfcbc6d08e55e0186df8606d3ed34be9b
[ "Apache-2.0" ]
null
null
null
8puzzle/Solver.py
RobMcZag/python-algorithms
307f243dfcbc6d08e55e0186df8606d3ed34be9b
[ "Apache-2.0" ]
null
null
null
8puzzle/Solver.py
RobMcZag/python-algorithms
307f243dfcbc6d08e55e0186df8606d3ed34be9b
[ "Apache-2.0" ]
null
null
null
import Board import heapq import sys class Node: def __init__(self, board, move, prev): self.board = board # Board object, not only the tiles self.move = move self.prev = prev def manhattan(self): return self.move + self.board.manhattan() class Solver: def __init__(self,...
24.930233
74
0.58069
6691fa2e04b77f521ef276505619ed6ab46f9efe
412
py
Python
restaurants/migrations/0011_remove_restaurantlocations_overview.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
1
2017-08-03T01:40:12.000Z
2017-08-03T01:40:12.000Z
restaurants/migrations/0011_remove_restaurantlocations_overview.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
null
null
null
restaurants/migrations/0011_remove_restaurantlocations_overview.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-05 12:58 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('restaurants', '0010_auto_20170804_1749'), ] operations = [ migrations.RemoveField( ...
20.6
51
0.631068
d4862bf89df29693687cff0b156df7b1384762f6
2,216
py
Python
py/testdir_multi_jvm/test_rf_1ktrees_job_cancel_3_fvec.py
gigliovale/h2o
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
882
2015-05-22T02:59:21.000Z
2022-02-17T05:02:48.000Z
py/testdir_multi_jvm/test_rf_1ktrees_job_cancel_3_fvec.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
1
2022-02-22T12:15:02.000Z
2022-02-22T12:15:02.000Z
py/testdir_multi_jvm/test_rf_1ktrees_job_cancel_3_fvec.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
392
2015-05-22T17:04:11.000Z
2022-02-22T09:04:39.000Z
import unittest, time, sys sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_import as h2i class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): h2o.init(3) @classmethod def tearDownClass(cls): ...
36.933333
129
0.579422
4276cc0a2d671b7a868ed75b6b36b5a97e8db12d
7,618
py
Python
lte/gateway/python/magma/pipelined/tests/test_service_manager.py
paboldin/magma
e6796e0be7b34ccdb3b61a0e8c5de309f78e5fe4
[ "BSD-3-Clause" ]
null
null
null
lte/gateway/python/magma/pipelined/tests/test_service_manager.py
paboldin/magma
e6796e0be7b34ccdb3b61a0e8c5de309f78e5fe4
[ "BSD-3-Clause" ]
10
2021-03-31T20:19:00.000Z
2022-02-19T07:09:57.000Z
lte/gateway/python/magma/pipelined/tests/test_service_manager.py
119Vik/magma-1
107a7b374466a837fc0a49b283ba9d6ff1d702e3
[ "BSD-3-Clause" ]
3
2020-08-20T18:45:34.000Z
2020-08-20T20:18:42.000Z
""" Copyright (c) 2019-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ import unittest from collec...
43.284091
84
0.657784
e4077ef79544db7e9591a692fcd45ba677a3b942
16,625
py
Python
cltk/tests/test_tokenize.py
BananaNosh/cltk
92049088213ad1cd4b78f65edfb715b907038a33
[ "MIT" ]
null
null
null
cltk/tests/test_tokenize.py
BananaNosh/cltk
92049088213ad1cd4b78f65edfb715b907038a33
[ "MIT" ]
null
null
null
cltk/tests/test_tokenize.py
BananaNosh/cltk
92049088213ad1cd4b78f65edfb715b907038a33
[ "MIT" ]
null
null
null
# -*-coding:utf-8-*- """Test cltk.tokenize. TODO: Add tests for the Indian lang tokenizers: from cltk.tokenize.indian_tokenizer import indian_punctuation_tokenize_regex """ from cltk.corpus.utils.importer import CorpusImporter from cltk.tokenize.sentence import TokenizeSentence from cltk.tokenize.word import nltk_tok...
65.711462
793
0.624962
40724a822382ad4babd8267e28fc829e620fb619
6,030
py
Python
optimizer/optimize.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
4
2018-12-17T18:45:57.000Z
2021-04-29T16:30:42.000Z
optimizer/optimize.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
19
2019-01-02T19:09:12.000Z
2020-12-14T18:50:47.000Z
optimizer/optimize.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
2
2020-03-18T01:24:03.000Z
2022-01-06T06:19:58.000Z
import os import sys import time import torch import torch.nn.functional as F import torch.nn as nn from torch.optim import lr_scheduler from torch.autograd import Variable import numpy as np import collections import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import random class Optimizer(): ...
42.167832
147
0.564013
7d4770879de082fb5b5e698b2872bd2c50c5b9d4
597
py
Python
apppeluqueria/admin.py
samuelgmar/django_peluqueria_app_brooklyn
80d17c64ea605c20d4caa75201ad3767681e517b
[ "Unlicense" ]
null
null
null
apppeluqueria/admin.py
samuelgmar/django_peluqueria_app_brooklyn
80d17c64ea605c20d4caa75201ad3767681e517b
[ "Unlicense" ]
null
null
null
apppeluqueria/admin.py
samuelgmar/django_peluqueria_app_brooklyn
80d17c64ea605c20d4caa75201ad3767681e517b
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import cliente, direccion, categoria,servicio, jefe, trabajador, reserva, hora, fecha, fechaTrabajador, galeria from django.contrib.auth.models import Permission # Register your models here. admin.site.register(cliente) admin.site.register(direccion) admin.site.register(Per...
33.166667
124
0.825796
c2667d54a1b20992b870fcc90e28a2ea50199393
18,295
py
Python
pybind/slxos/v16r_1_00b/brocade_vswitch_rpc/get_vmpolicy_macaddr/output/vmpolicy_macaddr/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_vswitch_rpc/get_vmpolicy_macaddr/output/vmpolicy_macaddr/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_vswitch_rpc/get_vmpolicy_macaddr/output/vmpolicy_macaddr/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
56.81677
435
0.731129
4997ac7f1d2879471a7d874956b56ff3f7dab727
4,793
py
Python
pypureclient/flasharray/FA_2_10/models/software_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_10/models/software_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_10/models/software_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
36.869231
524
0.606301
b0a5a33e119afe0c9845c4095ac551c9edfbb8b8
5,013
py
Python
OptionProfitabilityHeatmap.py
JoJo10Smith/OptionProfitabilityHeatmap
ecb4c058875a49421e1966fcc86def568cb0ab34
[ "MIT" ]
null
null
null
OptionProfitabilityHeatmap.py
JoJo10Smith/OptionProfitabilityHeatmap
ecb4c058875a49421e1966fcc86def568cb0ab34
[ "MIT" ]
null
null
null
OptionProfitabilityHeatmap.py
JoJo10Smith/OptionProfitabilityHeatmap
ecb4c058875a49421e1966fcc86def568cb0ab34
[ "MIT" ]
null
null
null
import scipy.stats import plotly.express as px import plotly.graph_objects as go import requests import pandas import time API_KEY = "***INSERT YOUR TD AMERITRADE API KEY***" UNDERLYING = "QQQ" YEAR = "2021" MONTH = "09" DAY = "20" DAYS_TO_EXP = "3" OPTION_START,OPTION_END = 365,380 UNDERLYING_STAR...
37.410448
127
0.726112
b743ade8361b07239c91e7a36e1d7c5862a62635
3,881
py
Python
src/pyfel/base/fieldbuffer.py
bellaz89/pyFEL
d96bc50096d32dac4ba957f0fc022bc377232680
[ "MIT" ]
1
2021-02-24T04:31:36.000Z
2021-02-24T04:31:36.000Z
src/pyfel/base/fieldbuffer.py
bellaz89/pyFEL
d96bc50096d32dac4ba957f0fc022bc377232680
[ "MIT" ]
null
null
null
src/pyfel/base/fieldbuffer.py
bellaz89/pyFEL
d96bc50096d32dac4ba957f0fc022bc377232680
[ "MIT" ]
null
null
null
''' The field buffer structure ''' import numpy as np import pyopencl as cl from .clctx import cl_queue, cl_ctx, cl_ctype class FieldBuffer(object): ''' Holds a 3 dimensional grid with the field. Can be implemented either with texture of global device memory ''' def __init__(s...
35.935185
92
0.515331
52645b520d3c0e79bed98a241a362a1c3d89094a
72
py
Python
apps/socials/models/__init__.py
jorgesaw/oclock
2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5
[ "MIT" ]
null
null
null
apps/socials/models/__init__.py
jorgesaw/oclock
2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5
[ "MIT" ]
null
null
null
apps/socials/models/__init__.py
jorgesaw/oclock
2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5
[ "MIT" ]
null
null
null
from .links import UserSocialNetwork from .socials import SocialNetwork
24
36
0.861111
7d80bdc984016af11a59423568503b4ea04d0acb
4,319
py
Python
src/automations/migrations/0001_initial.py
sebastianmanger/django-automations
070e700d29ef68f1b27c7f016ee6a08c41be56fe
[ "MIT" ]
20
2021-04-25T16:19:09.000Z
2022-02-17T13:55:57.000Z
src/automations/migrations/0001_initial.py
sebastianmanger/django-automations
070e700d29ef68f1b27c7f016ee6a08c41be56fe
[ "MIT" ]
25
2021-11-21T14:39:59.000Z
2022-02-01T11:32:17.000Z
src/automations/migrations/0001_initial.py
sebastianmanger/django-automations
070e700d29ef68f1b27c7f016ee6a08c41be56fe
[ "MIT" ]
4
2021-11-21T04:27:55.000Z
2022-03-04T01:37:06.000Z
# Generated by Django 3.1.8 on 2021-05-02 08:56 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("auth...
35.113821
88
0.406807
6cbbc5dd050928dc9ba6ce349aa6b8576a697df9
428,170
py
Python
tests/python/unittest/test_operator.py
sa-mustafa/incubator-mxnet
03654eeea3f3ab30dc43fabb7229945970a358b2
[ "Apache-2.0" ]
13
2016-04-01T03:19:44.000Z
2019-10-17T13:30:09.000Z
tests/python/unittest/test_operator.py
sa-mustafa/incubator-mxnet
03654eeea3f3ab30dc43fabb7229945970a358b2
[ "Apache-2.0" ]
82
2016-03-29T02:40:02.000Z
2021-02-06T22:20:40.000Z
tests/python/unittest/test_operator.py
sa-mustafa/incubator-mxnet
03654eeea3f3ab30dc43fabb7229945970a358b2
[ "Apache-2.0" ]
2
2017-04-21T15:51:25.000Z
2017-09-08T11:55:01.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 u...
43.328274
173
0.574496
f3bfb67cd58479c42892546cfa623674c3218500
3,227
py
Python
alert_service_sdk/model/flowable_service/bpmn_exclusive_gateway_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
alert_service_sdk/model/flowable_service/bpmn_exclusive_gateway_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
alert_service_sdk/model/flowable_service/bpmn_exclusive_gateway_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: bpmn_exclusive_gateway.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
39.353659
374
0.796095
522259ef3a3d6f1b790edda2e92fb140f6f1a6a4
14,131
py
Python
venv/Lib/site-packages/comtypes/server/register.py
cvangheem/Twitchbot
48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5
[ "MIT" ]
64
2020-07-22T06:24:18.000Z
2022-03-27T10:48:15.000Z
venv/Lib/site-packages/comtypes/server/register.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
9
2021-08-14T01:27:36.000Z
2021-08-24T18:10:18.000Z
venv/Lib/site-packages/comtypes/server/register.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
17
2020-09-14T02:46:41.000Z
2022-03-01T09:52:33.000Z
"""comtypes.server.register - register and unregister a COM object. Exports the UseCommandLine function. UseCommandLine is called with the COM object classes that a module exposes. It parses the Windows command line and takes the appropriate actions. These command line options are supported: /regserver - register t...
37.582447
117
0.594792
ff87a5ed8957bf4b99be832a67dedb25dda29729
7,872
py
Python
rl-ros-agents/rl_ros_agents/env_wappers/arena2dEnv.py
Sirupli/arena2D
2214754fe8e9358fa8065be5187d73104949dc4f
[ "MIT" ]
null
null
null
rl-ros-agents/rl_ros_agents/env_wappers/arena2dEnv.py
Sirupli/arena2D
2214754fe8e9358fa8065be5187d73104949dc4f
[ "MIT" ]
2
2020-09-28T17:29:09.000Z
2020-10-26T14:48:57.000Z
rl-ros-agents/rl_ros_agents/env_wappers/arena2dEnv.py
Sirupli/arena2D
2214754fe8e9358fa8065be5187d73104949dc4f
[ "MIT" ]
null
null
null
from std_msgs.msg import String import gym import rospy from geometry_msgs.msg import Twist from arena2d_msgs.msg import RosAgentReq, Arena2dResp from stable_baselines.common.vec_env import SubprocVecEnv from stable_baselines.bench import Monitor import numpy as np import threading from typing import Union, List, Tuple...
44.474576
176
0.638338
a1ca8d56de4b84c0c6fa99292f1d45827a2b3576
2,301
py
Python
docs/conf.py
proyecto-cema/cema-django
46835121bc93bf2e8a0b82c9fb375c1ec1c81933
[ "MIT" ]
null
null
null
docs/conf.py
proyecto-cema/cema-django
46835121bc93bf2e8a0b82c9fb375c1ec1c81933
[ "MIT" ]
null
null
null
docs/conf.py
proyecto-cema/cema-django
46835121bc93bf2e8a0b82c9fb375c1ec1c81933
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
36.52381
79
0.66797
e41d483d5d98634804cbe3f4ffb8922ef7bcf0d9
5,050
py
Python
yolo.py
datng-dev/Vehicle-Counting
f5438767237629d92da7203144f93f380bd38a25
[ "MIT" ]
1
2022-01-31T12:48:51.000Z
2022-01-31T12:48:51.000Z
yolo.py
datng-dev/Vehicle-Counting
f5438767237629d92da7203144f93f380bd38a25
[ "MIT" ]
null
null
null
yolo.py
datng-dev/Vehicle-Counting
f5438767237629d92da7203144f93f380bd38a25
[ "MIT" ]
1
2022-01-28T21:28:23.000Z
2022-01-28T21:28:23.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Run a YOLO_v3 style detection model on test images. """ import colorsys import os import random from timeit import time from timeit import default_timer as timer ### to calculate FPS import numpy as np from keras import backend as K from keras.models import load_mod...
37.686567
88
0.571089