hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f1cf80cc65379cbbe49529a836fa9f3da2727a54
40,103
py
Python
rdkit/Chem/Pharm3D/EmbedLib.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/Chem/Pharm3D/EmbedLib.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/Chem/Pharm3D/EmbedLib.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# # Copyright (C) 2004-2008 Greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # import math import sys impor...
30.753834
99
0.612199
d31a32d6b44edd58c8afa386ff8c16e1623058eb
72
py
Python
soluciones/RPC/2020-9/A_long_long_long_is_too_long.py
ProgamacionCompetitivaUTFSM/ProgramacionCompetitivaUSM
1fec5c3353663c75c66b67f13c6a20bc0ab63af2
[ "MIT" ]
4
2020-03-30T18:29:50.000Z
2020-10-02T03:09:23.000Z
soluciones/RPC/2020-9/A_long_long_long_is_too_long.py
ProgamacionCompetitivaUTFSM/ProgramacionCompetitivaUSM
1fec5c3353663c75c66b67f13c6a20bc0ab63af2
[ "MIT" ]
1
2020-06-16T07:35:38.000Z
2020-06-16T07:35:38.000Z
soluciones/RPC/2020-9/A_long_long_long_is_too_long.py
ProgamacionCompetitivaUTFSM/ProgramacionCompetitivaUSM
1fec5c3353663c75c66b67f13c6a20bc0ab63af2
[ "MIT" ]
4
2020-03-29T02:19:23.000Z
2021-04-29T15:34:21.000Z
n, p = list(map(int, input().strip().split())) print(n * p - 2 * (n-1))
36
47
0.513889
57655e03255685d9d5befe27ec8f8416475ef69b
31
py
Python
arviz/plots/backends/__init__.py
sethaxen/arviz
422c00b3cc24f3983bea283396bff0195374dcc3
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/__init__.py
sethaxen/arviz
422c00b3cc24f3983bea283396bff0195374dcc3
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/__init__.py
sethaxen/arviz
422c00b3cc24f3983bea283396bff0195374dcc3
[ "Apache-2.0" ]
null
null
null
"""Arviz plotting backends."""
15.5
30
0.677419
3ea9d4867e0fa35d581129d8296249139bd09592
1,318
py
Python
sdk/python/kfp/compiler_cli_tests/test_data/pipeline_with_after.py
votti/pipelines
1c3e2768e6177d5d6e3f4b8eff8fafb9a3b76c1f
[ "Apache-2.0" ]
1
2022-03-30T05:22:19.000Z
2022-03-30T05:22:19.000Z
sdk/python/kfp/compiler_cli_tests/test_data/pipeline_with_after.py
votti/pipelines
1c3e2768e6177d5d6e3f4b8eff8fafb9a3b76c1f
[ "Apache-2.0" ]
1
2020-02-06T12:53:44.000Z
2020-02-06T12:53:44.000Z
sdk/python/kfp/compiler_cli_tests/test_data/pipeline_with_after.py
votti/pipelines
1c3e2768e6177d5d6e3f4b8eff8fafb9a3b76c1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
28.042553
74
0.708649
492b83d03f6c9fb2c1732dbe6bd5c4437fe750bd
3,822
py
Python
restaurantapp/restaurantapp/settings.py
ShubhamJain0/ShubhamJain0.github.io
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
null
null
null
restaurantapp/restaurantapp/settings.py
ShubhamJain0/ShubhamJain0.github.io
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
4
2021-04-08T21:52:50.000Z
2022-02-10T09:29:03.000Z
restaurantapp/restaurantapp/settings.py
ShubhamJain0/Restaurant-App
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
null
null
null
""" Django settings for restaurantapp project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import...
23.8875
91
0.693354
97ad0c79daf57194243f4aa37a2fee345fece170
26,729
py
Python
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_tables_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_tables_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_tables_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.926117
220
0.669759
646a0c4976abc254dea0815724c545300f597925
622
py
Python
contrib/qt_translations.py
giaki3003/securetag
e456bfa37c9bb1fdd191567203fddd749aed946e
[ "MIT" ]
3
2019-02-14T07:48:59.000Z
2019-06-11T02:31:38.000Z
contrib/qt_translations.py
giaki3003/securetag
e456bfa37c9bb1fdd191567203fddd749aed946e
[ "MIT" ]
2
2018-11-13T18:03:10.000Z
2019-06-28T06:19:55.000Z
contrib/qt_translations.py
giaki3003/securetag
e456bfa37c9bb1fdd191567203fddd749aed946e
[ "MIT" ]
3
2019-07-15T18:50:29.000Z
2020-03-24T17:22:43.000Z
#!/usr/bin/env python # Helpful little script that spits out a comma-separated list of # language codes for Qt icons that should be included # in binary SecureTag distributions import glob import os import re import sys if len(sys.argv) != 3: sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.a...
27.043478
112
0.684887
b15f4c6c800153ae5b44f27b79dcdd119d1a262f
17,634
py
Python
rest_framework_json_api/utils.py
django-json-api/django-rest-framework-json-api
cb495a57b0a26451292846cfe43f8dd527f5d621
[ "BSD-2-Clause" ]
1,011
2015-07-23T00:39:13.000Z
2022-03-25T11:05:08.000Z
rest_framework_json_api/utils.py
sliverc/django-rest-framework-json-api
b45a9c3985ea2ffe78714b207352671d755ae82f
[ "BSD-2-Clause" ]
819
2015-07-21T13:43:30.000Z
2022-03-20T22:01:51.000Z
rest_framework_json_api/utils.py
django-json-api/django-rest-framework-json-api
cb495a57b0a26451292846cfe43f8dd527f5d621
[ "BSD-2-Clause" ]
345
2015-07-21T14:29:26.000Z
2022-03-22T03:25:04.000Z
import inspect import operator import warnings from collections import OrderedDict import inflection from django.conf import settings from django.db.models import Manager from django.db.models.fields.related_descriptors import ( ManyToManyDescriptor, ReverseManyToOneDescriptor, ) from django.http import Http40...
35.624242
99
0.66247
b388b2c34f2ce796d8a79502de1eb97cd3fdc918
1,173
py
Python
util.py
chrislondon/samsung_remote
f448c7846f9ad8db9f72217a453ee681eff26263
[ "Apache-2.0" ]
null
null
null
util.py
chrislondon/samsung_remote
f448c7846f9ad8db9f72217a453ee681eff26263
[ "Apache-2.0" ]
null
null
null
util.py
chrislondon/samsung_remote
f448c7846f9ad8db9f72217a453ee681eff26263
[ "Apache-2.0" ]
null
null
null
# Script found here: https://gist.github.com/danielfaust/998441 import time import socket import base64 src = '192.168.1.8' # ip of remote mac = '00-15-17-F3-C0-B8' # mac of remote remote = 'IP Remote' # remote name dst = '192.168.1.3' # ip of tv app = 'python' # iphone...
35.545455
81
0.584825
e9636fac69e03c80d2266f8ee5b510cd49412dee
15,923
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/manifest.py
brentm5/integrations-core
5cac8788c95d8820435ef9c5d32d6a5463cf491d
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/manifest.py
brentm5/integrations-core
5cac8788c95d8820435ef9c5d32d6a5463cf491d
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/manifest.py
brentm5/integrations-core
5cac8788c95d8820435ef9c5d32d6a5463cf491d
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import json import uuid from collections import OrderedDict import click from six import string_types from ..console import CONTEXT_SETTINGS, abort, echo_failure, echo_info, echo_success, echo_warning ...
41.144703
113
0.525215
3a83d9c0e9132c801fca726bb2fbd07a7ca9611c
15,683
py
Python
ncdjango/interfaces/arcgis/views.py
consbio/ncdjango
d35a896bc8fe0de1168171ed0e450f654c231319
[ "BSD-3-Clause" ]
6
2017-08-13T11:51:12.000Z
2021-07-26T13:07:02.000Z
ncdjango/interfaces/arcgis/views.py
consbio/ncdjango
d35a896bc8fe0de1168171ed0e450f654c231319
[ "BSD-3-Clause" ]
7
2015-10-13T00:55:06.000Z
2021-03-25T23:05:17.000Z
ncdjango/interfaces/arcgis/views.py
consbio/ncdjango
d35a896bc8fe0de1168171ed0e450f654c231319
[ "BSD-3-Clause" ]
null
null
null
import json from PIL import Image from django.conf import settings from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.views.generic.detail import DetailView from django.views.generic.list import ListView from pyproj import Proj from trefoil.render.renderers.classified impor...
37.163507
116
0.594083
ff98ca3c83fd31ad98bf4ea2429db6f5939fba86
2,091
py
Python
online_judges/longest_substr_k_distinct/longest_substr_challenge.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
online_judges/longest_substr_k_distinct/longest_substr_challenge.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
online_judges/longest_substr_k_distinct/longest_substr_challenge.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges). # # Challenge Notebook # ## Problem: Find the length of the longest substring with at most k dist...
23.494382
181
0.662363
329a6c4038cb9b5af48d3ecb90a066cf00eb7a08
4,546
py
Python
forca.py
JoaoVictorCabraldeMelo/Terminal_Games
48223cc26968d60adfa5576d75f3721180a67787
[ "MIT" ]
null
null
null
forca.py
JoaoVictorCabraldeMelo/Terminal_Games
48223cc26968d60adfa5576d75f3721180a67787
[ "MIT" ]
null
null
null
forca.py
JoaoVictorCabraldeMelo/Terminal_Games
48223cc26968d60adfa5576d75f3721180a67787
[ "MIT" ]
null
null
null
import random import os def jogar (): os.system('clear') display_abertura() palavras = abri_arquivo() numero = random.randrange(0,len(palavras)) palavra_secreta = palavras[numero].lower() lista_da_palavra = ["_" for letra in palavra_secreta] tentativas = 7 enforcou ...
26.277457
64
0.346018
26de56ed84bc049e5d939aa7793454d3a5cd03a0
1,533
py
Python
examples/other/remesh_tetgen.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
1
2022-03-22T21:49:29.000Z
2022-03-22T21:49:29.000Z
examples/other/remesh_tetgen.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
examples/other/remesh_tetgen.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
"""Segment a TetMesh with a custom scalar. Press q to make it explode""" from vedo import Mesh, TetMesh, Plotter, Text2D, dataurl import tetgen import pymeshfix n = 20000 f1 = 0.005 # control the tetras resolution f2 = 0.15 # control the nr of seeds # repair and tetralize the closed surface amesh = Mesh(dataurl+'b...
28.924528
72
0.699282
f2f21b7f3927d77c7fe656c30379b846734662a8
7,964
py
Python
docsrc/conf.py
leoregino/Titanic
0329770b16babe594ad455be4846743dc3fa2ee8
[ "RSA-MD" ]
null
null
null
docsrc/conf.py
leoregino/Titanic
0329770b16babe594ad455be4846743dc3fa2ee8
[ "RSA-MD" ]
null
null
null
docsrc/conf.py
leoregino/Titanic
0329770b16babe594ad455be4846743dc3fa2ee8
[ "RSA-MD" ]
null
null
null
# -*- coding: utf-8 -*- # # titanic documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a...
30.988327
103
0.696007
7b008e5265065c9bdb1311792d8a43f6e3ee1c40
339
py
Python
impyute/imputation/cs/__init__.py
PavanTejaDokku/impyute
809136469c45985e3468b999de2fdd3de538b51f
[ "MIT" ]
null
null
null
impyute/imputation/cs/__init__.py
PavanTejaDokku/impyute
809136469c45985e3468b999de2fdd3de538b51f
[ "MIT" ]
null
null
null
impyute/imputation/cs/__init__.py
PavanTejaDokku/impyute
809136469c45985e3468b999de2fdd3de538b51f
[ "MIT" ]
null
null
null
""" Imputations for cross-sectional data. """ from .random import random from .central_tendency import mean from .central_tendency import mode from .central_tendency import median from .mice import mice from .em import em from .fast_knn import fast_knn __all__ = ["random", "mean", "mode", "median", "mice",...
22.6
46
0.722714
ff7163b605b4892671688b3375a304061233b378
1,041
py
Python
tests/test_version.py
BlueBrain/atlas-interpolation
c19ca081ee5354d72987e8ee4cacb78d96319c34
[ "Apache-2.0" ]
null
null
null
tests/test_version.py
BlueBrain/atlas-interpolation
c19ca081ee5354d72987e8ee4cacb78d96319c34
[ "Apache-2.0" ]
5
2021-11-03T10:50:53.000Z
2022-01-17T12:45:34.000Z
tests/test_version.py
BlueBrain/atlas-interpolation
c19ca081ee5354d72987e8ee4cacb78d96319c34
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Blue Brain Project, EPFL # # 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 t...
35.896552
74
0.728146
f31d824b2776c192479e7b2da8a1f9c52ad52707
674
py
Python
Scripts/rst2xml.py
fuliginCloak/Directory
8400bd855b692e5ae93e478e369c69511275074f
[ "MIT" ]
null
null
null
Scripts/rst2xml.py
fuliginCloak/Directory
8400bd855b692e5ae93e478e369c69511275074f
[ "MIT" ]
null
null
null
Scripts/rst2xml.py
fuliginCloak/Directory
8400bd855b692e5ae93e478e369c69511275074f
[ "MIT" ]
null
null
null
#!c:\users\nicks\onedrive\desktop\projects\bohnmangement-site\directory\scripts\python.exe # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docu...
28.083333
90
0.750742
790208024d887b2aff748f478010a86fbfd452eb
1,210
py
Python
pandapower/pypower/pqcost.py
Zamwell/pandapower
ce51946342109e969b87b60c8883d7eec02d3060
[ "BSD-3-Clause" ]
221
2015-01-03T23:18:11.000Z
2022-03-27T10:21:40.000Z
pandapower/pypower/pqcost.py
lvzhibai/pandapower
24ed3056558887cc89f67d15b5527523990ae9a1
[ "BSD-3-Clause" ]
126
2017-02-15T17:09:08.000Z
2018-07-16T13:25:15.000Z
pandapower/pypower/pqcost.py
gdgarcia/pandapower
630e3278ca012535f78282ae73f1b86f3fe932fc
[ "BSD-3-Clause" ]
114
2015-02-02T15:07:38.000Z
2022-03-22T17:01:55.000Z
# Copyright (c) 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """Splits the gencost variable into two pieces if costs are given for Qg. """ from sys import stderr from numpy import array, arange def pqcost(gencost, ng, on...
31.842105
77
0.66281
8dd08b5f8ecf31347be3bf35839d19aad8cee0c8
1,907
py
Python
projetoLMS/lms/LMSbasico/curriculo/migrations/0013_auto_20180501_1722.py
otaviozaia/LMS_GRUPO
0092de040843e5db6c3cc3ac91ec2988c25d5415
[ "Apache-2.0" ]
1
2018-04-19T11:56:06.000Z
2018-04-19T11:56:06.000Z
projetoLMS/lms/LMSbasico/curriculo/migrations/0013_auto_20180501_1722.py
otaviozaia/LMS_GRUPO
0092de040843e5db6c3cc3ac91ec2988c25d5415
[ "Apache-2.0" ]
28
2018-04-11T13:34:14.000Z
2018-04-20T14:57:11.000Z
projetoLMS/lms/LMSbasico/curriculo/migrations/0013_auto_20180501_1722.py
otaviozaia/LMS_GRUPO
0092de040843e5db6c3cc3ac91ec2988c25d5415
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.3 on 2018-05-01 20:22 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('curriculo', '0012_auto_20180501_1712'), ] operations = [ migrations.CreateModel( ...
41.456522
136
0.599371
13ccdfcb6287873409aab4953e5319adf9814b6d
7,637
py
Python
tests/aiohttp/test_get_response.py
slobinger/connexion
425d5d551b1842eb7eb7eb8564974d9fc00ad23a
[ "Apache-2.0" ]
4,084
2015-05-20T11:28:51.000Z
2022-02-07T13:04:23.000Z
tests/aiohttp/test_get_response.py
slobinger/connexion
425d5d551b1842eb7eb7eb8564974d9fc00ad23a
[ "Apache-2.0" ]
1,393
2015-06-03T14:17:08.000Z
2022-02-07T14:11:34.000Z
tests/aiohttp/test_get_response.py
slobinger/connexion
425d5d551b1842eb7eb7eb8564974d9fc00ad23a
[ "Apache-2.0" ]
854
2015-07-06T14:50:27.000Z
2022-02-05T02:02:41.000Z
import json import pytest from connexion.apis.aiohttp_api import AioHttpApi from connexion.lifecycle import ConnexionResponse from aiohttp import web @pytest.fixture(scope='module') def api(aiohttp_api_spec_dir): yield AioHttpApi(specification=aiohttp_api_spec_dir / 'swagger_secure.yaml') async def test_get_r...
44.144509
147
0.72463
926c80db06e3ba192c235f86dedc4a66c6533f14
444
py
Python
openacademy/model/partner.py
luisll-vauxoo/openacademy
0882266b5775f7e8d0dc6370069776491b307127
[ "Apache-2.0" ]
null
null
null
openacademy/model/partner.py
luisll-vauxoo/openacademy
0882266b5775f7e8d0dc6370069776491b307127
[ "Apache-2.0" ]
null
null
null
openacademy/model/partner.py
luisll-vauxoo/openacademy
0882266b5775f7e8d0dc6370069776491b307127
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from openerp import fields, models ''' This module inherit from partner ''' class Partner(models.Model): ''' This class is inherited from res.partner ''' _inherit = 'res.partner' instructor = fields.Boolean(default=False) session_ids = fields.Many2many('openacademy.sess...
24.666667
65
0.576577
d6a0114f67534d5e1d741f573b06d50aa381f562
32
py
Python
api/secrets.py
AlexTereshenkov/flask-restful-boilerplate
15f86201e22e5bde658048a3db33ea78a3586373
[ "MIT" ]
null
null
null
api/secrets.py
AlexTereshenkov/flask-restful-boilerplate
15f86201e22e5bde658048a3db33ea78a3586373
[ "MIT" ]
null
null
null
api/secrets.py
AlexTereshenkov/flask-restful-boilerplate
15f86201e22e5bde658048a3db33ea78a3586373
[ "MIT" ]
null
null
null
TOKEN = 'h5ibqG91ZfISOdIJeCss'
16
31
0.78125
54c6e3a383210c95597f8aa102469425141d11d7
228
py
Python
tackle/__init__.py
praekelt/api-tackle
35914db8d4da1d518ccef7afc57d894ee548a489
[ "BSD-3-Clause" ]
2
2021-05-26T11:37:30.000Z
2021-05-26T15:28:13.000Z
tackle/__init__.py
praekelt/api-tackle
35914db8d4da1d518ccef7afc57d894ee548a489
[ "BSD-3-Clause" ]
null
null
null
tackle/__init__.py
praekelt/api-tackle
35914db8d4da1d518ccef7afc57d894ee548a489
[ "BSD-3-Clause" ]
null
null
null
"""api_tackle Python Module.""" # See PEP440 ! __version__ = '0.1' __pickle_protocol_version__ = 4 # Versioning scheme is... # 0.9 # 1.0.dev1 # 1.0.dev2 # 1.0.dev3 # 1.0.dev4 # 1.0c1 # 1.0c2 # 1.0 # 1.0.post1 # 1.1.dev1 # ...
12
31
0.609649
9ba217cea221dfab98977ffdd00477dcaa4961ca
5,363
py
Python
pyspcwebgw/__init__.py
crallian/pyspcwebgw
d61c091b6afd82d1d4cef9de740f303dccc8e20b
[ "MIT" ]
null
null
null
pyspcwebgw/__init__.py
crallian/pyspcwebgw
d61c091b6afd82d1d4cef9de740f303dccc8e20b
[ "MIT" ]
null
null
null
pyspcwebgw/__init__.py
crallian/pyspcwebgw
d61c091b6afd82d1d4cef9de740f303dccc8e20b
[ "MIT" ]
null
null
null
"""Python wrapper for the Lundix SPC Web Gateway REST API.""" import logging from urllib.parse import urljoin from asyncio import ensure_future from .area import Area from .zone import Zone from .const import AreaMode from .utils import async_request from .websocket import AIOWSClient _LOGGER = logging.getLogger(__na...
34.6
89
0.582137
674ca5e3205a2591d78aad9f55bef2b1f83c1c94
5,376
py
Python
rl_server/simple_server.py
katana17/pensieve-dev
ccad1f64d2c50a0346ccce91c8c3b10eac08c30a
[ "MIT" ]
null
null
null
rl_server/simple_server.py
katana17/pensieve-dev
ccad1f64d2c50a0346ccce91c8c3b10eac08c30a
[ "MIT" ]
null
null
null
rl_server/simple_server.py
katana17/pensieve-dev
ccad1f64d2c50a0346ccce91c8c3b10eac08c30a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from http.server import BaseHTTPRequestHandler, HTTPServer import socketserver import base64 import urllib import sys import os import logging import json from collections import deque import numpy as np import time VIDEO_BIT_RATE = [300, 750, 1200, 1850, 2850, 4300] # Kbps BITRATE_REWARD = [1, ...
39.240876
114
0.59282
30eea4e800f5c7d0e0086ff2d9202adf621b99c3
1,797
py
Python
tools/parse-nginx-log-bootstrap-accesses.py
grepwood/mailinabox
03dfe1268b980fc6b28247f91bc69987060bede1
[ "CC0-1.0" ]
null
null
null
tools/parse-nginx-log-bootstrap-accesses.py
grepwood/mailinabox
03dfe1268b980fc6b28247f91bc69987060bede1
[ "CC0-1.0" ]
null
null
null
tools/parse-nginx-log-bootstrap-accesses.py
grepwood/mailinabox
03dfe1268b980fc6b28247f91bc69987060bede1
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python # # This is a tool Josh uses on his box serving mailinabox.email to parse the nginx # access log to see how many people are installing Mail-in-a-Box each day, by # looking at accesses to the bootstrap.sh script. import re, glob, gzip, os.path, json import dateutil.parser outfn = "/home/user-data/www...
31.526316
123
0.683361
d4adf78d6b9a0b2078dd0424d1234a936a6d0c76
36,741
py
Python
sdl2/sdlmixer.py
smcv/py-sdl2
209095d858b461c6314f7b7b96b2051ec1656d20
[ "CC0-1.0" ]
null
null
null
sdl2/sdlmixer.py
smcv/py-sdl2
209095d858b461c6314f7b7b96b2051ec1656d20
[ "CC0-1.0" ]
null
null
null
sdl2/sdlmixer.py
smcv/py-sdl2
209095d858b461c6314f7b7b96b2051ec1656d20
[ "CC0-1.0" ]
null
null
null
import os from ctypes import Structure, CFUNCTYPE, c_int, c_char_p, c_void_p, c_double from ctypes import POINTER as _P from .dll import DLL, SDLFunc from .version import SDL_version, SDL_VERSIONNUM from .audio import AUDIO_S16LSB, AUDIO_S16MSB, SDL_MIX_MAXVOLUME from .stdinc import Uint8, Uint16, Uint32, Sint16, SDL_b...
35.740272
114
0.681854
33818c1906089b7076f00d94fca99c330933af9e
75
py
Python
Python/100Excersises/76 to 100/85/.history/85_20201119143536.py
magusikrak/NAMI-TERM-I-GroupWork
f0a9a5f219ccbec024eb5316361db3fca46e171c
[ "MIT" ]
null
null
null
Python/100Excersises/76 to 100/85/.history/85_20201119143536.py
magusikrak/NAMI-TERM-I-GroupWork
f0a9a5f219ccbec024eb5316361db3fca46e171c
[ "MIT" ]
1
2021-07-24T03:18:30.000Z
2021-07-24T12:45:07.000Z
Python/100Excersises/76 to 100/85/.history/85_20201119143536.py
sugamkarki/NAMI-Year-II-TERM-I-Group_Project
f0a9a5f219ccbec024eb5316361db3fca46e171c
[ "MIT" ]
null
null
null
myFile=open("c.txt","r") countriesRaw=myFile.read() countriesNead="" for cp
18.75
26
0.733333
1322187720c4954486e7037a45931ef638204f8b
9,747
py
Python
jiant/proj/main/runscript.py
Inujal/jiant
095fd4ab7613fe270fd7b7c64b00a90b32b18b5b
[ "MIT" ]
null
null
null
jiant/proj/main/runscript.py
Inujal/jiant
095fd4ab7613fe270fd7b7c64b00a90b32b18b5b
[ "MIT" ]
null
null
null
jiant/proj/main/runscript.py
Inujal/jiant
095fd4ab7613fe270fd7b7c64b00a90b32b18b5b
[ "MIT" ]
null
null
null
import os import torch import jiant.proj.main.modeling.model_setup as jiant_model_setup import jiant.proj.main.runner as jiant_runner import jiant.proj.main.components.container_setup as container_setup import jiant.proj.main.metarunner as jiant_metarunner import jiant.proj.main.components.evaluate as jiant_evaluate ...
38.525692
97
0.693547
18becbb4381889975cbe38456e60d88c6b11dfd3
1,866
py
Python
nba_api/stats/endpoints/teamdetails.py
adureja/nba_api
2e1f8ee55e513689aea410bf663a09a3d7c34283
[ "MIT" ]
1
2019-02-20T19:19:19.000Z
2019-02-20T19:19:19.000Z
nba_api/stats/endpoints/teamdetails.py
adureja/nba_api
2e1f8ee55e513689aea410bf663a09a3d7c34283
[ "MIT" ]
null
null
null
nba_api/stats/endpoints/teamdetails.py
adureja/nba_api
2e1f8ee55e513689aea410bf663a09a3d7c34283
[ "MIT" ]
2
2020-08-09T06:00:19.000Z
2022-03-04T16:39:30.000Z
from nba_api.stats.endpoints._base import Endpoint from nba_api.stats.library.http import NBAStatsHTTP class TeamDetails(Endpoint): endpoint = 'teamdetails' expected_data = {'TeamAwardsChampionships': ['YEARAWARDED', 'OPPOSITETEAM'], 'TeamAwardsConf': ['YEARAWARDED', 'OPPOSITETEAM'], 'TeamAwardsDiv': ['YEARAW...
69.111111
656
0.696677
cd20e2733e20b447aff0ac28d06273e34c3303a7
13,269
py
Python
l5kit/l5kit/cle/metrics.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
1
2021-12-04T17:48:53.000Z
2021-12-04T17:48:53.000Z
l5kit/l5kit/cle/metrics.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
null
null
null
l5kit/l5kit/cle/metrics.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
1
2021-11-19T08:13:46.000Z
2021-11-19T08:13:46.000Z
from abc import ABC, abstractmethod import numpy as np import torch from typing_extensions import Protocol from l5kit.data import get_agents_slice_from_frames from l5kit.evaluation import error_functions from l5kit.evaluation import metrics as l5metrics from l5kit.rasterization import EGO_EXTENT_LENGTH, EGO_EXTENT_WI...
43.937086
116
0.709247
484cb0673bef132f849f58ba6556ed33a166b9d7
975
py
Python
twitoff/predict.py
JohnMorrisonn/Twitoff
bd14957017aea8278a603f83b43bb69457d57a43
[ "MIT" ]
null
null
null
twitoff/predict.py
JohnMorrisonn/Twitoff
bd14957017aea8278a603f83b43bb69457d57a43
[ "MIT" ]
4
2021-03-19T03:45:47.000Z
2022-03-11T23:59:53.000Z
twitoff/predict.py
JohnMorrisonn/Twitoff
bd14957017aea8278a603f83b43bb69457d57a43
[ "MIT" ]
null
null
null
import pickle import numpy as np from sklearn.linear_model import LogisticRegression from .models import User from .twitter import BASILICA def predict_user(user1_name, user2_name, tweet_text, cahce=None): """Determine and return which user is more likely ro say a given Tweet""" user1 = User.query.filter(User....
51.315789
87
0.729231
02e2a27a75ab06010fc39801b369135961801b3b
2,092
py
Python
CSIKit/csi/csidata.py
serrhini/CSIKit
1cc9ecb2c0444622b258e9de48841366cbbc667b
[ "MIT" ]
null
null
null
CSIKit/csi/csidata.py
serrhini/CSIKit
1cc9ecb2c0444622b258e9de48841366cbbc667b
[ "MIT" ]
null
null
null
CSIKit/csi/csidata.py
serrhini/CSIKit
1cc9ecb2c0444622b258e9de48841366cbbc667b
[ "MIT" ]
null
null
null
from CSIKit.csi.csiframe import CSIFrame from CSIKit.csi.csimetadata import CSIMetadata from CSIKit.util.csitools import get_CSI class CSIData: def __init__(self, filename: str="", chipset: str=""): self.frames = [] self.timestamps = [] self.expected_frames = 0 self.skipp...
28.657534
73
0.601816
5b4bc73b1f8beb5cc84dc31d769a5b108ba55127
90
py
Python
ermaket/api/queries/__init__.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/queries/__init__.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/queries/__init__.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
from .read import * from .change import * from .errors_parser import * from .sql import *
18
28
0.733333
d35bf871fb20fb368ca6b7ad1092e423edf3c57c
18,493
py
Python
core/domain/learner_playlist_services_test.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-12-02T18:56:49.000Z
2020-03-14T17:14:15.000Z
core/domain/learner_playlist_services_test.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
13
2019-03-04T18:29:27.000Z
2019-08-24T23:27:36.000Z
core/domain/learner_playlist_services_test.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-12-02T18:56:56.000Z
2020-03-16T08:03:45.000Z
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
44.454327
113
0.699346
ed24dd347b39204a26c8e61585e070fb81a6eb0a
25,261
py
Python
indexedproperty/__init__.py
xrombik/indexedproperty
127e24822e96b2b14192108ddf4aa2aa58ed9568
[ "MIT" ]
1
2020-01-31T13:20:06.000Z
2020-01-31T13:20:06.000Z
indexedproperty/__init__.py
xrombik/indexedproperty
127e24822e96b2b14192108ddf4aa2aa58ed9568
[ "MIT" ]
null
null
null
indexedproperty/__init__.py
xrombik/indexedproperty
127e24822e96b2b14192108ddf4aa2aa58ed9568
[ "MIT" ]
null
null
null
""" Support itemproperty and smarter subclasses thereof. IndexedProperty allows for the following extension of the basic property concept. >>> class C: ... def __init__(self): ... self._dict = {} ... ... @indexedproperty ... def dval(self, key): ... return self._dict[key] ... ... ...
36.451659
93
0.563042
e7df4c9ffe0dd4dde2c0ddfb8377253601b9c072
795
py
Python
database/qsar/uc_statistics.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/qsar/uc_statistics.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/qsar/uc_statistics.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.database_schemas import Schemas from sqlalchemy import Column, Integer, String, DateTime, FLOAT from database.base import Base class UcStatistics(Base): """Maps to uc_statistics table in qsar databases.""" __tablename__ = 'uc_statistics' __table_args__ = {'schema': Schemas...
36.136364
80
0.754717
60343ffc913e6592c497306c50e468bbad9e0e32
1,449
py
Python
bob/db/nivl/__init__.py
bioidiap/bob.db.nivl
d5f9282894f5e93a77d35f38c6964629f9ea80ab
[ "BSD-3-Clause" ]
null
null
null
bob/db/nivl/__init__.py
bioidiap/bob.db.nivl
d5f9282894f5e93a77d35f38c6964629f9ea80ab
[ "BSD-3-Clause" ]
null
null
null
bob/db/nivl/__init__.py
bioidiap/bob.db.nivl
d5f9282894f5e93a77d35f38c6964629f9ea80ab
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 : # @author: Elie Khoury <Elie.Khoury@idiap.ch> # @date: Thu Aug 22 17:43:04 CEST 2013 # # Copyright (C) 2012-2014 Idiap Research Institute, Martigny, Switzerland # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU ...
32.931818
82
0.717046
6bfaa16b92c99c1bf5a7dd3a7346dfa5e0f432c4
1,621
py
Python
samples/generated_samples/dialogflow_generated_dialogflowcx_v3_experiments_update_experiment_async.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3_experiments_update_experiment_async.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3_experiments_update_experiment_async.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.081633
85
0.771129
e20d6c395f7ae4deca1df34d048ea9dbdf559a3d
19,905
py
Python
Tests/test_Phd.py
barendt/biopython
391bcdbee7f821bff3e12b75c635a06bc1b2dcea
[ "PostgreSQL" ]
1
2016-05-09T13:17:59.000Z
2016-05-09T13:17:59.000Z
Tests/test_Phd.py
cymon/biopython-github-master
7be9697599296401b0a7126d23b5eda391a94116
[ "PostgreSQL" ]
null
null
null
Tests/test_Phd.py
cymon/biopython-github-master
7be9697599296401b0a7126d23b5eda391a94116
[ "PostgreSQL" ]
null
null
null
# Revisions copyright 2009 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import unittest from Bio import SeqIO from Bio.Sequencing import Phd class PhdTestOne(...
54.237057
86
0.563125
dfc1ccc345f6b30d6eae63dcf81b5f97a1e0d62e
811
py
Python
thread/threadlocal.py
orris27/computer_science_notes
ceb939810fb475fba19317a754080888ccf82eac
[ "MIT" ]
1
2019-07-05T08:00:28.000Z
2019-07-05T08:00:28.000Z
thread/threadlocal.py
orris27/computer_science_notes
ceb939810fb475fba19317a754080888ccf82eac
[ "MIT" ]
null
null
null
thread/threadlocal.py
orris27/computer_science_notes
ceb939810fb475fba19317a754080888ccf82eac
[ "MIT" ]
1
2019-12-10T15:33:43.000Z
2019-12-10T15:33:43.000Z
''' Passing parameters to connect two functions 1. create two threads 2. define a function(A) that calls two functions(1st:add ' allow';2nd:add ' pass') 3. point the threads to the functionA 4. start the threads ''' import threading #import time local_res=threading.local() def stamp(name): lo...
23.852941
90
0.686806
0ea3e896c5ec0a7dbc511026628fea34d5697b69
3,277
py
Python
next_builder_sdk/model/resource_manage/filter_condition_group_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
next_builder_sdk/model/resource_manage/filter_condition_group_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
next_builder_sdk/model/resource_manage/filter_condition_group_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: filter_condition_group.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.963415
382
0.798901
417b10578cd58187dd88032c502392727d1cbe37
13,444
py
Python
xgi/generators/nonuniform.py
ComplexGroupInteractions/xgi
67107dd01459e687a4356566ee40865ceca8e72c
[ "BSD-3-Clause" ]
24
2021-11-18T00:04:11.000Z
2022-01-19T01:52:55.000Z
xgi/generators/nonuniform.py
ComplexGroupInteractions/xgi
67107dd01459e687a4356566ee40865ceca8e72c
[ "BSD-3-Clause" ]
52
2021-11-21T17:33:34.000Z
2022-03-30T17:20:43.000Z
xgi/generators/nonuniform.py
ComplexGroupInteractions/xgi
67107dd01459e687a4356566ee40865ceca8e72c
[ "BSD-3-Clause" ]
null
null
null
"""Generate random (non-uniform) hypergraphs.""" import math import warnings from collections import defaultdict from itertools import combinations import networkx as nx import numpy as np from ..classes import SimplicialComplex from ..utils import py_random_state from .classic import empty_hypergraph, empty_simplici...
30.076063
94
0.59097
ec3a363839c8cbc3436cb9e6d7f0be9a1f94cbe5
753
py
Python
forums/migrations/0002_auto_20211128_0754.py
bhokin/ThaiMoung
afac52ad1fefe2c78b6d69b2b08c63aee699ee20
[ "MIT" ]
1
2022-02-13T04:31:00.000Z
2022-02-13T04:31:00.000Z
forums/migrations/0002_auto_20211128_0754.py
XOQDY/ThaiMoung
afac52ad1fefe2c78b6d69b2b08c63aee699ee20
[ "MIT" ]
40
2021-10-13T07:30:30.000Z
2022-01-30T08:24:14.000Z
forums/migrations/0002_auto_20211128_0754.py
XOQDY/ThaiMoung
afac52ad1fefe2c78b6d69b2b08c63aee699ee20
[ "MIT" ]
3
2021-10-31T17:58:58.000Z
2021-11-12T17:05:14.000Z
# Generated by Django 3.2.8 on 2021-11-28 00:54 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('forums', '0001_initial'), ] operations = [ ...
28.961538
115
0.645418
bad368db8cfd7c03a11dcc91e30a9635a43c4588
3,549
py
Python
intensity_normalization/exec/nyul_normalize.py
sarthakpati/intensity-normalization
5f2fc9ea3f305a3bd214b6f42fd8b1664a3ecbdc
[ "Apache-2.0" ]
null
null
null
intensity_normalization/exec/nyul_normalize.py
sarthakpati/intensity-normalization
5f2fc9ea3f305a3bd214b6f42fd8b1664a3ecbdc
[ "Apache-2.0" ]
null
null
null
intensity_normalization/exec/nyul_normalize.py
sarthakpati/intensity-normalization
5f2fc9ea3f305a3bd214b6f42fd8b1664a3ecbdc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ intensity_normalization.exec.nyul_normalize command line executable for histogram matching intensity normalization routine Author: Jacob Reinhold (jacob.reinhold@jhu.edu) Created on: May 08, 2018 """ import argparse import logging import os import sys import warning...
42.25
111
0.631727
885163fe9d6e09067b64e709bc433d0e21a84087
858
py
Python
ooobuild/cssdyn/xml/xslt/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/xml/xslt/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/xml/xslt/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
42.9
83
0.778555
5e39f6a7d82e7be5a7bdc821e22f17f4ddd9cd87
24,699
py
Python
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1beta1_cluster_role_binding_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1beta1_cluster_role_binding_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1beta1_cluster_role_binding_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from ansible.module_utils.k8s_common import KubernetesAnsibleModule, KubernetesAnsibleException DOCUMENTATION = ''' module: k8s_v1beta1_cluster_role_binding_list short_description: Kubernetes ClusterRoleBindingList description: - Retrieve a list of cluster_role_bindings. List...
47.045714
100
0.560468
cf6051d1b86d486f3ed4fbd27a316f355f91ff31
2,369
py
Python
full_stack_foundations/full_stack_foundations_master/lesson_3/15_delete_menu_item_solution/project.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
68
2016-07-28T07:24:57.000Z
2021-10-09T19:28:48.000Z
full_stack_foundations/full_stack_foundations_master/lesson_3/15_delete_menu_item_solution/project.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
null
null
null
full_stack_foundations/full_stack_foundations_master/lesson_3/15_delete_menu_item_solution/project.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
105
2016-10-19T03:56:33.000Z
2022-03-15T02:12:08.000Z
from flask import Flask, render_template, request, redirect, url_for app = Flask(__name__) from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Base, Restaurant, MenuItem engine = create_engine('sqlite:///restaurantmenu.db') Base.metadata.bind = engine DBSession = s...
36.446154
187
0.752638
e24db69c96512d2a7e939b3c6e1f0178b8978811
342
py
Python
Physics250-ME26/findSingleResistanceEquilaventSeries.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME26/findSingleResistanceEquilaventSeries.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME26/findSingleResistanceEquilaventSeries.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import numpy as np import math # Series # Resistance = resistor1 + resistor2 + resistorn... #parallel 1/R = 1/R1 + 1/R2 def resistanceCalc(): firstResistor = float(input("Resistance one: ")) secondResistor = float(input("Resistance two: ")) final = firstResistor + secondResistor print(final)...
21.375
53
0.672515
0ee542038e572fe1e3e7e73a265ba67416aa0ac1
785
py
Python
clarisse/x_scene_init__190902.py
GuillaumeVFX/pipel
a1bd726239e6887745396723c3aad5d61e88ce44
[ "MIT" ]
2
2020-05-12T11:38:44.000Z
2022-03-07T04:13:50.000Z
clarisse/x_scene_init__190902.py
GuillaumeVFX/pipel
a1bd726239e6887745396723c3aad5d61e88ce44
[ "MIT" ]
null
null
null
clarisse/x_scene_init__190902.py
GuillaumeVFX/pipel
a1bd726239e6887745396723c3aad5d61e88ce44
[ "MIT" ]
null
null
null
# # @status: In progress # # @status: Working :) import clarisse_net as ix # REMOTE HOST VARIABLE TO SETUP # @action Setup Host name|ip hostAddr = '192.168.0.169' # @action Setup Host port hostPort = 55000 helloMsg = '"Hello World!"' #rclarisse = ix.ClarisseNet() # @a Connecting to the Host rclarisse = ix.Clarisse...
21.216216
90
0.709554
405caa8ab6ea2010a09afa09e60528e465557e0c
5,292
py
Python
server/djangoapp/restapis.py
Roijin/agfzb-CloudAppDevelopment_Capstone
dfdef0a710114574f1832b790485ad445fdd532c
[ "Apache-2.0" ]
null
null
null
server/djangoapp/restapis.py
Roijin/agfzb-CloudAppDevelopment_Capstone
dfdef0a710114574f1832b790485ad445fdd532c
[ "Apache-2.0" ]
null
null
null
server/djangoapp/restapis.py
Roijin/agfzb-CloudAppDevelopment_Capstone
dfdef0a710114574f1832b790485ad445fdd532c
[ "Apache-2.0" ]
null
null
null
import requests import json import logging # import related models here from .models import CarDealer from requests.auth import HTTPBasicAuth from . import models from ibm_watson import NaturalLanguageUnderstandingV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from ibm_watson.natural_language_underst...
42
131
0.660809
36fccccfebabaec00fa110bb7a08d94258a4e2a2
528
py
Python
mottak-arkiv-service/app/connectors/azure_servicebus/exceptions.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
null
null
null
mottak-arkiv-service/app/connectors/azure_servicebus/exceptions.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
null
null
null
mottak-arkiv-service/app/connectors/azure_servicebus/exceptions.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
null
null
null
class InvalidServiceBusMessage(Exception): """ Raised when a message is not valid """ def __init__(self, reason='InvalidServiceBusMessage', description='The received message is not valid') -> None: self.reason = reason self.description = description super().__init__(self.reason)...
31.058824
115
0.706439
33309f6b6c6b94e32e7126e5ec6efb55996a4137
5,555
py
Python
tests/components/config/test_core.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/config/test_core.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/config/test_core.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test core config.""" from http import HTTPStatus from unittest.mock import patch import pytest from homeassistant.bootstrap import async_setup_component from homeassistant.components import config from homeassistant.components.websocket_api.const import TYPE_RESULT from homeassistant.const import CONF_UNIT_SYSTEM,...
33.463855
87
0.648605
18020bedd3f4fd85f00028321869e9d4786db841
15,297
py
Python
grr/core/grr_response_core/lib/fingerprint.py
dekoder/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
3
2018-09-30T01:31:29.000Z
2019-04-22T11:44:54.000Z
grr/core/grr_response_core/lib/fingerprint.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
1
2022-03-02T09:58:05.000Z
2022-03-02T09:58:05.000Z
grr/core/grr_response_core/lib/fingerprint.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
37.309756
80
0.688174
fd10a4c5bda30b08a0e3fb8aaf3c48efee113788
4,534
py
Python
src/kiss/time_entries_file.py
sebge2emasphere/clockify
894c922a19f2e977fca80fc8b8b4c1fe09a13faa
[ "Apache-2.0" ]
null
null
null
src/kiss/time_entries_file.py
sebge2emasphere/clockify
894c922a19f2e977fca80fc8b8b4c1fe09a13faa
[ "Apache-2.0" ]
1
2020-03-02T17:32:26.000Z
2020-03-02T17:32:26.000Z
src/kiss/time_entries_file.py
sebge2/clockify-kiss
894c922a19f2e977fca80fc8b8b4c1fe09a13faa
[ "Apache-2.0" ]
null
null
null
import json from datetime import date from datetime import datetime from typing import List from kiss.utils import from_datetime_to_user, parse_user_date, parse_user_datetime class Month: year: int month: int def __init__(self, year: int, month: int): self.year = year self.month = month ...
29.441558
111
0.661447
1ac347e09b5c261a622016c6134e7f7b685fc018
2,412
py
Python
Creational Patterns/Abstract_Factory/abstract_factory_2_plot_shape_and_color.py
zhichengMLE/python-design-pattern
0f6ea58cea674af51c3f1e980e2c0553eb3f29c2
[ "MIT" ]
null
null
null
Creational Patterns/Abstract_Factory/abstract_factory_2_plot_shape_and_color.py
zhichengMLE/python-design-pattern
0f6ea58cea674af51c3f1e980e2c0553eb3f29c2
[ "MIT" ]
null
null
null
Creational Patterns/Abstract_Factory/abstract_factory_2_plot_shape_and_color.py
zhichengMLE/python-design-pattern
0f6ea58cea674af51c3f1e980e2c0553eb3f29c2
[ "MIT" ]
null
null
null
import math import matplotlib.pyplot as plt class Circle(object): def get_shape(self, r=1., n=100): return 'circle shape', [(math.cos(2 * math.pi / n * x) * r, math.sin(2 * math.pi/ n * x) * r) for x in range(0, n+1)] class Square(object): def get_shape(self, width=10): return 'square shape', ...
33.971831
125
0.674959
0bf9f9e8bfea49590fe2297cca089bb5a6f4dfb6
5,006
py
Python
assets/scripts/ros2_launch_dumper.py
olzhas/vscode-ros
7f609168dca7647358687113752b7db84b947739
[ "MIT" ]
234
2019-04-25T18:33:20.000Z
2022-03-29T13:32:46.000Z
assets/scripts/ros2_launch_dumper.py
olzhas/vscode-ros
7f609168dca7647358687113752b7db84b947739
[ "MIT" ]
397
2019-04-23T09:43:56.000Z
2022-03-25T13:01:04.000Z
assets/scripts/ros2_launch_dumper.py
olzhas/vscode-ros
7f609168dca7647358687113752b7db84b947739
[ "MIT" ]
73
2019-04-18T04:42:05.000Z
2022-03-21T19:41:53.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import asyncio import argparse import os import sys import subprocess from io import StringIO from typing import cast from typing import Dict from typing import List from typing import Text from typing import Tuple from typin...
38.507692
108
0.686177
ea44325f6dc2ec8789b57f8c8ad0ebe4296d672b
7,586
py
Python
google/cloud/dialogflowcx_v3/services/deployments/transports/base.py
googleapis/python-dialogflow-cx
dfefa4e21bcd6bf37d341911187fab283152f514
[ "Apache-2.0" ]
37
2020-09-01T04:15:08.000Z
2022-01-28T00:30:00.000Z
google/cloud/dialogflowcx_v3/services/deployments/transports/base.py
googleapis/python-dialogflow-cx
dfefa4e21bcd6bf37d341911187fab283152f514
[ "Apache-2.0" ]
98
2020-08-24T15:32:01.000Z
2022-03-31T21:08:26.000Z
google/cloud/dialogflowcx_v3/services/deployments/transports/base.py
googleapis/python-dialogflow-cx
dfefa4e21bcd6bf37d341911187fab283152f514
[ "Apache-2.0" ]
18
2020-08-24T15:29:37.000Z
2022-02-09T19:25:12.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.93
103
0.663064
0e5c69d8c9d01e443f2cd136f2f3cc1189d266f8
183
py
Python
power/technologies/python/standard-deviation.py
TuxedoMeow/Hello-World
143d3aad30b800b8b97fe6860c4b1b21128783d2
[ "MIT" ]
null
null
null
power/technologies/python/standard-deviation.py
TuxedoMeow/Hello-World
143d3aad30b800b8b97fe6860c4b1b21128783d2
[ "MIT" ]
null
null
null
power/technologies/python/standard-deviation.py
TuxedoMeow/Hello-World
143d3aad30b800b8b97fe6860c4b1b21128783d2
[ "MIT" ]
null
null
null
import statistics def standardDeviation(array): return statistics.stdev(array) array = [0.8, 0.4, 1.2, 3.7, 2.6, 5.8] print("standardDeviation():", standardDeviation(array))
16.636364
55
0.699454
1c32751133d80d21b279bcbbf1b75fcc0b098f72
461
py
Python
poco/drivers/std/screen.py
HBoPRC/Poco
c8b0dc5362db45ff7a8397eebb0c52d9047f4b67
[ "Apache-2.0" ]
null
null
null
poco/drivers/std/screen.py
HBoPRC/Poco
c8b0dc5362db45ff7a8397eebb0c52d9047f4b67
[ "Apache-2.0" ]
null
null
null
poco/drivers/std/screen.py
HBoPRC/Poco
c8b0dc5362db45ff7a8397eebb0c52d9047f4b67
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from poco.sdk.interfaces.screen import ScreenInterface from poco.utils.simplerpc.utils import sync_wrapper class StdScreen(ScreenInterface): def __init__(self, client): super(StdScreen, self).__init__() self.client = client @sync_wrapper def getScreen(self, width): ...
24.263158
54
0.707158
31b7edc56c65a144601712d6cd73eeffb46a6e21
3,492
py
Python
gui/meas_display_form.py
Wireless-Research-Tester/Automated-Wireless-Research-Tester
226eec6f3f13d296fdb6c686873cd2d73bea7533
[ "MIT" ]
1
2020-11-20T19:08:32.000Z
2020-11-20T19:08:32.000Z
gui/meas_display_form.py
Wireless-Research-Tester/Automated-Wireless-Research-Tester
226eec6f3f13d296fdb6c686873cd2d73bea7533
[ "MIT" ]
null
null
null
gui/meas_display_form.py
Wireless-Research-Tester/Automated-Wireless-Research-Tester
226eec6f3f13d296fdb6c686873cd2d73bea7533
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'meas_display_ui.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...
50.608696
104
0.743127
9a10bc9e2276ea39b9f6cc790b74bcd3b895e997
380
py
Python
tests/registries/legacy-1/test_legacy1_creation.py
doug-fish/kopf
0b1b662d9cf13061220bc902957978dc88b49fb4
[ "MIT" ]
null
null
null
tests/registries/legacy-1/test_legacy1_creation.py
doug-fish/kopf
0b1b662d9cf13061220bc902957978dc88b49fb4
[ "MIT" ]
null
null
null
tests/registries/legacy-1/test_legacy1_creation.py
doug-fish/kopf
0b1b662d9cf13061220bc902957978dc88b49fb4
[ "MIT" ]
null
null
null
from kopf import BaseRegistry, GlobalRegistry, SimpleRegistry def test_creation_of_simple(): registry = SimpleRegistry() assert isinstance(registry, BaseRegistry) assert isinstance(registry, SimpleRegistry) def test_creation_of_global(): registry = GlobalRegistry() assert isinstance(registry, Ba...
27.142857
61
0.784211
1312857f9e423828697bc0700622642f78672c46
2,610
py
Python
modules/numericfunctions.py
vasarm/InflationInJupyter
8a88c4e5f7e64241b7b9bbab6678852dbc26630b
[ "MIT" ]
null
null
null
modules/numericfunctions.py
vasarm/InflationInJupyter
8a88c4e5f7e64241b7b9bbab6678852dbc26630b
[ "MIT" ]
1
2021-04-16T15:58:29.000Z
2021-04-16T15:58:29.000Z
modules/numericfunctions.py
vasarm/InflationInJupyter
8a88c4e5f7e64241b7b9bbab6678852dbc26630b
[ "MIT" ]
null
null
null
import numpy as np from scipy.integrate import odeint from scipy.optimize import newton from scipy.signal import argrelextrema from scipy.interpolate import interp1d def find_function_roots_numerical(function, settings, method = 1): x_interval = settings.create_interval_list() if method == 1: dx = se...
27.473684
99
0.660153
154b96f79728cc5b1f1afccf9e07bac024683c46
7,527
py
Python
insights/core/serde.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
null
null
null
insights/core/serde.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
null
null
null
insights/core/serde.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
null
null
null
""" The serde module provides decorators that allow developers to register serializer and deserializer functions for types. It also provides a :py:class`Hydration` class that uses registered serde functions to save and load objects from the file system. The Hydration class includes a :py:func`Hydration.make_persister` ...
32.868996
95
0.599309
559ecba61ced515b93ae56619f10a2bed7d6d1a2
2,704
py
Python
grafik.py
mehmetkadir-crk/Getting-financial-data-with-Python
5fd7156e47931dae5746f87a6c16487dd3653399
[ "MIT" ]
null
null
null
grafik.py
mehmetkadir-crk/Getting-financial-data-with-Python
5fd7156e47931dae5746f87a6c16487dd3653399
[ "MIT" ]
null
null
null
grafik.py
mehmetkadir-crk/Getting-financial-data-with-Python
5fd7156e47931dae5746f87a6c16487dd3653399
[ "MIT" ]
null
null
null
from cProfile import label from operator import index from turtle import color import numpy as np import pandas as pd import matplotlib.pyplot as plt #Pandas ile verileri okuduk AAPL = pd.read_csv("AAPL.csv") #print(AAPL.head()) #30 Günlük hareketli ortalama SMA30 = pd.DataFrame() #Yeni dataset oluşturduk...
39.188406
111
0.676036
88dfbf0a1fd5e0a8f067547198f3106d8fe8aebe
75
py
Python
Python/uri1002.py
GitAquino/Uri
17fe7e89b1b2f37b928ca14c44aa8ec36df602d6
[ "MIT" ]
null
null
null
Python/uri1002.py
GitAquino/Uri
17fe7e89b1b2f37b928ca14c44aa8ec36df602d6
[ "MIT" ]
null
null
null
Python/uri1002.py
GitAquino/Uri
17fe7e89b1b2f37b928ca14c44aa8ec36df602d6
[ "MIT" ]
null
null
null
raio = float(input()) area = 3.14159 * (raio**2) print ("A = %0.4f" %area)
18.75
26
0.56
50b346e243b1975a9029104c7cdccc78fa3acb97
622
py
Python
automatedtest_backend/projectmanagent/admin.py
zhousheng0325/AutomationPlatform
e7e41e4a26c63fc8151b191bccb0f4a412a3388d
[ "MIT" ]
null
null
null
automatedtest_backend/projectmanagent/admin.py
zhousheng0325/AutomationPlatform
e7e41e4a26c63fc8151b191bccb0f4a412a3388d
[ "MIT" ]
10
2020-06-06T01:30:29.000Z
2022-03-12T00:16:52.000Z
automatedtest_backend/projectmanagent/admin.py
zhousheng0325/AutomationPlatform
e7e41e4a26c63fc8151b191bccb0f4a412a3388d
[ "MIT" ]
null
null
null
from django.contrib import admin from projectmanagent.models import * # Register your models here. admin.site.site_header = "自动化管理后端" admin.site.index_title = "項目管理" admin.site.site_title = "AutoTest" @admin.register(ProjectManager) class ProjectManagerConfig(admin.ModelAdmin): list_display =["name","st...
27.043478
62
0.741158
1e55edc2a4c28f1ed9a38e1726471bbd5230acf1
24,626
py
Python
pymatgen/core/tests/test_lattice.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
1
2022-03-24T04:12:16.000Z
2022-03-24T04:12:16.000Z
pymatgen/core/tests/test_lattice.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
null
null
null
pymatgen/core/tests/test_lattice.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import itertools import numpy as np from pymatgen.core.lattice import Lattice, get_points_in_spheres from pymatgen.core.operations import SymmOp from pymatgen.util.testing import PymatgenTest class LatticeTestCase(Pymatge...
40.906977
124
0.581743
6c045941450f90a7a323bf3c609a2705706848fa
1,060
py
Python
setup.py
kadrlica/skymapy
c78701c19de7ff3867d4e7559dc9ec8574abb5dc
[ "MIT" ]
27
2017-11-19T22:15:00.000Z
2021-12-16T22:00:25.000Z
setup.py
kadrlica/skymapy
c78701c19de7ff3867d4e7559dc9ec8574abb5dc
[ "MIT" ]
11
2017-03-16T21:21:27.000Z
2021-03-10T03:28:08.000Z
setup.py
kadrlica/skymapy
c78701c19de7ff3867d4e7559dc9ec8574abb5dc
[ "MIT" ]
11
2018-10-26T06:43:28.000Z
2021-06-17T07:22:12.000Z
import sys import os try: from setuptools import setup except ImportError: from distutils.core import setup import versioneer URL = 'https://github.com/kadrlica/skymap' setup( name='skymap', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), url=URL, author='Alex Drlica-Wagner',...
26.5
67
0.617925
dff05bd28145196c856190e4c31b99ca997bc98c
994
py
Python
systemvm/debian/opt/cloud/bin/cs_remoteaccessvpn.py
Codegass/cloudstack
71056191f2bdad4be1a7eaf9bb73a7dcee3516f2
[ "Apache-2.0" ]
1,131
2015-01-08T18:59:06.000Z
2022-03-29T11:31:10.000Z
systemvm/debian/opt/cloud/bin/cs_remoteaccessvpn.py
Codegass/cloudstack
71056191f2bdad4be1a7eaf9bb73a7dcee3516f2
[ "Apache-2.0" ]
5,908
2015-01-13T15:28:37.000Z
2022-03-31T20:31:07.000Z
systemvm/debian/opt/cloud/bin/cs_remoteaccessvpn.py
Codegass/cloudstack
71056191f2bdad4be1a7eaf9bb73a7dcee3516f2
[ "Apache-2.0" ]
1,083
2015-01-05T01:16:52.000Z
2022-03-31T12:14:10.000Z
# -- coding: utf-8 -- # 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 # "Li...
35.5
62
0.72334
1fff14467d3fa7c93091b47553e1cd10fc4da4f0
5,770
py
Python
app.py
yueguoguo/shopify-flask-example
dc556aeac21bfcd9bbd5fdeece5cd4827e090055
[ "Apache-2.0" ]
null
null
null
app.py
yueguoguo/shopify-flask-example
dc556aeac21bfcd9bbd5fdeece5cd4827e090055
[ "Apache-2.0" ]
null
null
null
app.py
yueguoguo/shopify-flask-example
dc556aeac21bfcd9bbd5fdeece5cd4827e090055
[ "Apache-2.0" ]
null
null
null
import uuid import os import json import logging from flask import ( Flask, redirect, request, render_template, url_for, session ) import shopify import helpers from gmail import ( setup_account, create_draft, create_message, send_message, MESSAGE ) from shopify_client impo...
29.742268
131
0.706066
ab55e3ffc6fb090a09c9cb522bc5c0549130e8ae
2,018
py
Python
config/storage.py
josephmancuso/ambient
193152d72ca2302f2167ac5e4afcc50fa48d0bc2
[ "MIT" ]
5
2020-06-07T14:20:50.000Z
2020-07-24T15:20:42.000Z
config/storage.py
josephmancuso/ambient
193152d72ca2302f2167ac5e4afcc50fa48d0bc2
[ "MIT" ]
null
null
null
config/storage.py
josephmancuso/ambient
193152d72ca2302f2167ac5e4afcc50fa48d0bc2
[ "MIT" ]
null
null
null
"""Storage Settings.""" from masonite.environment import env """Storage Driver The default driver you will like to use for storing uploads. You may add additional drivers as you need or pip install additional drivers. Supported: 'disk', 's3', 'rackspace', 'googlecloud', 'azure' """ DRIVER = env('STORAGE_DRIVER', 'd...
29.676471
72
0.619921
a67c8aa4e18f13ebe47d8d58251f258c748ff657
602
py
Python
artifacts/recovery_device.py
lucaschultz/unearth
60bbc887415205b23483d0cb99c3774ab47c9c66
[ "Apache-2.0" ]
1
2018-12-13T16:05:13.000Z
2018-12-13T16:05:13.000Z
artifacts/recovery_device.py
haircut/unearth
224f977a60fc94893228f9372386de8ca0551fde
[ "Apache-2.0" ]
null
null
null
artifacts/recovery_device.py
haircut/unearth
224f977a60fc94893228f9372386de8ca0551fde
[ "Apache-2.0" ]
null
null
null
import subprocess import plistlib factoid = 'recovery_device' def fact(): '''Returns the boot volume of this Mac''' try: proc = subprocess.Popen(['/usr/sbin/diskutil', 'info', '-plist', '/'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, _ = proc.commun...
28.666667
78
0.621262
125486191d02744459a614fca03b40b662cf0226
6,773
py
Python
newbalance/bs4/diagnose.py
flows-app/FLOWS_bondora
a500e2b7658dcb99fe729e4a3fe96ae081174518
[ "Apache-2.0" ]
101
2017-11-20T17:48:41.000Z
2021-12-12T23:50:20.000Z
venv/lib/python3.6/site-packages/bs4/diagnose.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
197
2016-02-24T14:33:31.000Z
2020-12-30T07:16:23.000Z
venv/lib/python3.6/site-packages/bs4/diagnose.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
130
2017-11-20T17:48:44.000Z
2020-09-30T06:07:26.000Z
"""Diagnostic functions, mainly for use when doing tech support.""" # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. __license__ = "MIT" import cProfile from io import StringIO from html.parser import HTMLParser import bs4 from bs4 import BeautifulSoup, __version__...
30.786364
129
0.60815
b94dd123d8d3ecc67ba1b796d7b977c24452f7d0
51,347
py
Python
tests/components/mqtt/test_init.py
yura505/core
0fc5f4b0421c6c5204d3ccb562153ac3836441a9
[ "Apache-2.0" ]
null
null
null
tests/components/mqtt/test_init.py
yura505/core
0fc5f4b0421c6c5204d3ccb562153ac3836441a9
[ "Apache-2.0" ]
null
null
null
tests/components/mqtt/test_init.py
yura505/core
0fc5f4b0421c6c5204d3ccb562153ac3836441a9
[ "Apache-2.0" ]
null
null
null
"""The tests for the MQTT component.""" import asyncio from datetime import datetime, timedelta import json import ssl import pytest import voluptuous as vol from homeassistant.components import mqtt, websocket_api from homeassistant.components.mqtt import debug_info from homeassistant.components.mqtt.discovery impor...
33.982131
90
0.653787
70d220fb3622539889cbe1d2fd9ae16e807f992f
2,226
py
Python
aliyun-python-sdk-vcs/aliyunsdkvcs/request/v20200515/ListPersonsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-vcs/aliyunsdkvcs/request/v20200515/ListPersonsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-vcs/aliyunsdkvcs/request/v20200515/ListPersonsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
32.735294
74
0.75292
19f85bc726d565c3dae4cdfca01faf7650e21fc0
12,291
py
Python
earth_enterprise/src/server/wsgi/wms/ogc/implementation/common.py
tst-sjimenez/earthenterprise
6454ef357147695a037db3ed900668d20ce2fe6d
[ "Apache-2.0" ]
null
null
null
earth_enterprise/src/server/wsgi/wms/ogc/implementation/common.py
tst-sjimenez/earthenterprise
6454ef357147695a037db3ed900668d20ce2fe6d
[ "Apache-2.0" ]
null
null
null
earth_enterprise/src/server/wsgi/wms/ogc/implementation/common.py
tst-sjimenez/earthenterprise
6454ef357147695a037db3ed900668d20ce2fe6d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2017 Google 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 a...
38.650943
119
0.683427
5384e50f5b1deacb8e8bac8d036aef1663dac522
17,598
py
Python
grid.py
raxod502/space-grid
212ca6ec61b85a1f0f0b3ace01b5c3c6449c92fb
[ "MIT" ]
3
2021-08-22T19:45:25.000Z
2021-08-23T12:56:10.000Z
grid.py
raxod502/space-grid
212ca6ec61b85a1f0f0b3ace01b5c3c6449c92fb
[ "MIT" ]
null
null
null
grid.py
raxod502/space-grid
212ca6ec61b85a1f0f0b3ace01b5c3c6449c92fb
[ "MIT" ]
null
null
null
import copy import time from graphics import * def d(a, b): return abs(a[0]-b[0])+abs(a[1]-b[1]) def max(args): i = 0 for j in range(len(args)): if args[j] > args[i]: i = j return i def average(args, default=0): try: return sum(args) / len(args) ex...
44.892857
161
0.414763
032fcc4130d93df86e051088cbfb84805c5a2461
3,226
py
Python
Q1.py
garghimanshu565/Ass4
864491f0949b0b7c09d8a8c91fb30800821def6f
[ "BSD-3-Clause" ]
null
null
null
Q1.py
garghimanshu565/Ass4
864491f0949b0b7c09d8a8c91fb30800821def6f
[ "BSD-3-Clause" ]
null
null
null
Q1.py
garghimanshu565/Ass4
864491f0949b0b7c09d8a8c91fb30800821def6f
[ "BSD-3-Clause" ]
null
null
null
import copy visited_states = [] # heuristic fn - number of misplaced blocks as compared to goal state def heuristic(curr_state,goal_state): goal_=goal_state[3] val=0 for i in range(len(curr_state)): check_val=curr_state[i] if len(check_val)>0: for j in range(len(che...
33.957895
102
0.49845
309609668541efda600e629df0f3ddaff88b27e1
32
py
Python
hello.py
ShinjiKatoA16/gittest
c3ca2de8290c67cfb194b648d4279363f4f4895a
[ "Apache-2.0" ]
null
null
null
hello.py
ShinjiKatoA16/gittest
c3ca2de8290c67cfb194b648d4279363f4f4895a
[ "Apache-2.0" ]
null
null
null
hello.py
ShinjiKatoA16/gittest
c3ca2de8290c67cfb194b648d4279363f4f4895a
[ "Apache-2.0" ]
null
null
null
print('Hello') print('See you')
10.666667
16
0.65625
35ddea50a9589b676abd81a5f4e0e2a6fcc6bcbd
2,042
py
Python
libs/PersonDetection/Detection_Yolov3.py
leviethung2103/multithread_video_camera
ece52dc7d1c5702d4a1ab8200d7bc40a9e4b1a41
[ "MIT" ]
null
null
null
libs/PersonDetection/Detection_Yolov3.py
leviethung2103/multithread_video_camera
ece52dc7d1c5702d4a1ab8200d7bc40a9e4b1a41
[ "MIT" ]
null
null
null
libs/PersonDetection/Detection_Yolov3.py
leviethung2103/multithread_video_camera
ece52dc7d1c5702d4a1ab8200d7bc40a9e4b1a41
[ "MIT" ]
null
null
null
import os import torch from PersonDetection.models import * from PersonDetection.utils.datasets import * from PersonDetection.utils.utils import * class PersonDetector(): """ Using YOLOv3 version """ def __init__(self, device, cfg_path, ckpt_path, cls_names, augment=False, img_size=(512, 512)): ...
41.673469
114
0.611655
97b20b1968a7ae29d2d53968b6f1fcd78d0386ee
32,867
py
Python
002-pyopengl/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/NeHe/lesson44/glCamera.py
lhl/vrdev
fc1a9af2b51d159c99c8779349ef3392a70ed9ed
[ "Apache-2.0" ]
12
2015-12-02T02:36:36.000Z
2020-09-20T17:14:24.000Z
002-pyopengl/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/NeHe/lesson44/glCamera.py
lhl/vrdev
fc1a9af2b51d159c99c8779349ef3392a70ed9ed
[ "Apache-2.0" ]
null
null
null
002-pyopengl/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/NeHe/lesson44/glCamera.py
lhl/vrdev
fc1a9af2b51d159c99c8779349ef3392a70ed9ed
[ "Apache-2.0" ]
8
2016-11-02T11:17:04.000Z
2021-10-21T07:42:19.000Z
# // Code writen by: Vic Hollis 09/07/2003 # // I don't mind if you use this class in your own code. All I ask is # // that you give me credit for it if you do. And plug NeHe while your # // at it! :P Thanks go to David Steere, Cameron Tidwell, Bert Sammons, # // and Brannon Martindale for helping me test all the co...
41.86879
132
0.611708
72e3e120d08fa5f398b149e7fd79c947b105e247
808
py
Python
futoin/cid/__init__.py
futoin/citool
872ecca94fb637fa4e5e79cb62c240e774e3cd83
[ "Apache-2.0" ]
13
2017-04-05T22:19:15.000Z
2017-11-23T21:02:26.000Z
futoin/cid/__init__.py
futoin/cid-tool
872ecca94fb637fa4e5e79cb62c240e774e3cd83
[ "Apache-2.0" ]
77
2017-04-01T07:47:15.000Z
2019-06-04T14:23:16.000Z
futoin/cid/__init__.py
futoin/citool
872ecca94fb637fa4e5e79cb62c240e774e3cd83
[ "Apache-2.0" ]
3
2017-05-13T09:28:50.000Z
2017-11-17T06:42:49.000Z
# # Copyright 2015-2020 Andrey Galkin <andrey@futoin.org> # # 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 ...
31.076923
74
0.768564
6c44db5568d507b597d8987b5678e3fe832342d0
1,632
py
Python
examples/attributes_table_example.py
Design-Machine-Group/studio2021
ba410de6dfd54f33a02d03dab49e49cf5b286dce
[ "MIT" ]
1
2021-01-29T17:53:58.000Z
2021-01-29T17:53:58.000Z
examples/attributes_table_example.py
Design-Machine-Group/studio2021
ba410de6dfd54f33a02d03dab49e49cf5b286dce
[ "MIT" ]
1
2021-01-22T00:08:18.000Z
2021-01-22T00:09:23.000Z
examples/attributes_table_example.py
Design-Machine-Group/studio2021
ba410de6dfd54f33a02d03dab49e49cf5b286dce
[ "MIT" ]
null
null
null
from __future__ import print_function __author__ = ["Tomas Mendez Echenagucia"] __copyright__ = "Copyright 2020, Design Machine Group - University of Washington" __license__ = "MIT License" __email__ = "tmendeze@uw.edu" __version__ = "0.1.0" import os import time from datetime import datetime import studio2021 from ...
27.2
81
0.61826
81148961ba4573c47dfb2cbf78d5d9b41d37a378
10,200
py
Python
pewpew/base.py
kwierman/pewpew
a40b1a0ef8770e6cd72f841f1bf6f4976cf2c92a
[ "MIT" ]
null
null
null
pewpew/base.py
kwierman/pewpew
a40b1a0ef8770e6cd72f841f1bf6f4976cf2c92a
[ "MIT" ]
113
2018-01-09T03:21:42.000Z
2022-03-31T01:23:15.000Z
pewpew/base.py
kwierman/pewpew
a40b1a0ef8770e6cd72f841f1bf6f4976cf2c92a
[ "MIT" ]
null
null
null
""" The base class for PEWPEW processing. See :doc:`usage`. """ from multiprocessing import Process, Queue, TimeoutError, Value from multiprocessing.queues import Empty, Full from abc import abstractmethod, ABCMeta import logging import copy __default_exit_flag__ = Value('b', True) __fmt__ = "%(levelname)s: %(asctim...
31.097561
85
0.552157
8cabef4d6869824fae94ae44a6426c6fd7f91da7
2,067
py
Python
taxi/agent.py
manusimidt/deep-reinforcement-learning
814f83b162c445744874be56e6bc4e84aba2a207
[ "MIT" ]
null
null
null
taxi/agent.py
manusimidt/deep-reinforcement-learning
814f83b162c445744874be56e6bc4e84aba2a207
[ "MIT" ]
null
null
null
taxi/agent.py
manusimidt/deep-reinforcement-learning
814f83b162c445744874be56e6bc4e84aba2a207
[ "MIT" ]
null
null
null
import numpy as np from collections import defaultdict import random class Agent: def __init__(self, nA=6): """ Initialize agent. Params ====== - nA: number of actions available to the agent """ self.nA = nA self.Q = defaultdict(lambda: np.zeros(self.nA)) ...
30.850746
113
0.601838
6545f6d87c0f56d0aefd1cfe5a0605a9d7c79411
10,545
py
Python
tchannel/testing/vcr/cassette.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
98
2015-07-10T23:42:11.000Z
2021-11-08T11:21:02.000Z
tchannel/testing/vcr/cassette.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
445
2015-07-10T23:58:02.000Z
2021-08-24T14:58:39.000Z
tchannel/testing/vcr/cassette.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
43
2015-07-22T19:14:57.000Z
2021-09-14T12:12:38.000Z
# Copyright (c) 2016 Uber Technologies, 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, publ...
30.476879
79
0.629113
589bad0237e872a40e6269aeab29cc34c23bfa12
4,546
py
Python
contrib/testgen/gen_base58_test_vectors.py
lsji07/Ravencoin
e22523dea0e051f2f11e67284957629f44a1343d
[ "MIT" ]
1,102
2017-10-28T14:49:48.000Z
2022-03-30T00:57:26.000Z
contrib/testgen/gen_base58_test_vectors.py
lsji07/Ravencoin
e22523dea0e051f2f11e67284957629f44a1343d
[ "MIT" ]
733
2018-01-03T16:46:49.000Z
2022-03-27T04:55:44.000Z
contrib/testgen/gen_base58_test_vectors.py
lsji07/Ravencoin
e22523dea0e051f2f11e67284957629f44a1343d
[ "MIT" ]
795
2018-01-03T23:03:01.000Z
2022-03-25T15:08:45.000Z
#!/usr/bin/env python # Copyright (c) 2012-2016 The Bitcoin Core developers # Copyright (c) 2017-2020 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Generate valid and invalid base58 address and priva...
34.969231
97
0.615706
34b13962ce97d27084fd3e024890115ae2f4ed0f
749
py
Python
Udemy/REST-Django-VueJS/C3-practice/newsapi/newsapi/urls.py
runzezhang/MOOCs
8df8c7adc5af3d7b085be01ae9b6963fe33acd68
[ "Apache-2.0" ]
3
2019-04-05T18:59:53.000Z
2020-09-24T09:05:46.000Z
Udemy/REST-Django-VueJS/C3/newsapi/newsapi/urls.py
runzezhang/MOOCs
8df8c7adc5af3d7b085be01ae9b6963fe33acd68
[ "Apache-2.0" ]
null
null
null
Udemy/REST-Django-VueJS/C3/newsapi/newsapi/urls.py
runzezhang/MOOCs
8df8c7adc5af3d7b085be01ae9b6963fe33acd68
[ "Apache-2.0" ]
1
2019-02-10T13:35:36.000Z
2019-02-10T13:35:36.000Z
"""newsapi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
34.045455
77
0.708945
f9880739096e7f49852f2567fb3fa9830b04401c
3,197
py
Python
fixit/cli/full_repo_metadata.py
Instagram/Fixit
253bae21601a51627be6fa9eada6adb1c173ed72
[ "Apache-2.0" ]
313
2020-09-02T20:35:57.000Z
2022-03-29T07:55:37.000Z
fixit/cli/full_repo_metadata.py
Instagram/Fixit
253bae21601a51627be6fa9eada6adb1c173ed72
[ "Apache-2.0" ]
93
2020-09-02T19:51:22.000Z
2022-01-19T18:29:46.000Z
fixit/cli/full_repo_metadata.py
Instagram/Fixit
253bae21601a51627be6fa9eada6adb1c173ed72
[ "Apache-2.0" ]
46
2020-09-02T21:16:57.000Z
2022-03-16T18:49:37.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from collections import defaultdict from logging import Handler, Logger, LogRecord, getLogger from subprocess import TimeoutExpired from typin...
39.9625
112
0.697842
4df4de91745a270ba0c79418d076e80f993d2911
8,411
py
Python
mb_changedetectionio/fetch_site_status.py
mouhamedba/mb_changedetection.io
41d339fb807da3bf27a45dff5d69db6a4f99a9e0
[ "Apache-2.0" ]
null
null
null
mb_changedetectionio/fetch_site_status.py
mouhamedba/mb_changedetection.io
41d339fb807da3bf27a45dff5d69db6a4f99a9e0
[ "Apache-2.0" ]
null
null
null
mb_changedetectionio/fetch_site_status.py
mouhamedba/mb_changedetection.io
41d339fb807da3bf27a45dff5d69db6a4f99a9e0
[ "Apache-2.0" ]
null
null
null
import hashlib import os import re import time import urllib3 from inscriptis import get_text from mb_changedetectionio import content_fetcher, html_tools urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # Some common stuff here that can be moved to a base class class perform_site_check(): d...
47.789773
137
0.615028
260bfa39ab189bd716173e1e88ce53e54dd38898
627
py
Python
source/metric/CosineEmbedding.py
celsofranssa/sFormers
ccca4ac2af396ccbbe2078735d5ee44634fd6e1d
[ "MIT" ]
null
null
null
source/metric/CosineEmbedding.py
celsofranssa/sFormers
ccca4ac2af396ccbbe2078735d5ee44634fd6e1d
[ "MIT" ]
null
null
null
source/metric/CosineEmbedding.py
celsofranssa/sFormers
ccca4ac2af396ccbbe2078735d5ee44634fd6e1d
[ "MIT" ]
null
null
null
import torch from torchmetrics import Metric class CosineEmbedding(Metric): def __init__(self, dist_sync_on_step=False): super(CosineEmbedding, self).__init__(dist_sync_on_step=dist_sync_on_step) self.cossim = torch.nn.CosineEmbeddingLoss(margin=0.0, reduction='mean') self.add_state("corre...
34.833333
82
0.69378
31db4705eaa618735d0ef73429a7cb4c31c33c96
4,334
py
Python
purity_fb/purity_fb_1dot7/models/array_s3_performance_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
purity_fb/purity_fb_1dot7/models/array_s3_performance_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
purity_fb/purity_fb_1dot7/models/array_s3_performance_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Pure Storage FlashBlade REST 1.7 Python SDK Pure Storage FlashBlade REST 1.7 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.7 Contact: i...
28.142857
204
0.590909
4f8181030e3d616d79eed7c3d0b1e177f83c3270
10,297
py
Python
astroutils/tests/test_geometry.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2018-10-31T03:49:39.000Z
2018-10-31T03:49:39.000Z
astroutils/tests/test_geometry.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
5
2017-11-18T01:45:50.000Z
2020-05-30T12:26:50.000Z
astroutils/tests/test_geometry.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2019-10-14T08:44:40.000Z
2019-10-14T08:44:40.000Z
import pytest from astroutils import geometry as GEOM import numpy as NP def test_generate_line_from_point_and_slope(generate_line_from_point_and_slope): points, slopes, expected_eqns = generate_line_from_point_and_slope # Read from fixture in conftest.py points = NP.asarray(points).reshape(-1,2) slopes = ...
52.269036
152
0.727688
9076732713e555c55d4b3a9f1962723bc9c2650a
1,394
py
Python
nntoolbox/vision/components/stn.py
nhatsmrt/nn-toolbox
689b9924d3c88a433f8f350b89c13a878ac7d7c3
[ "Apache-2.0" ]
16
2019-07-11T15:57:41.000Z
2020-09-08T13:52:45.000Z
nntoolbox/vision/components/stn.py
nhatsmrt/nn-toolbox
689b9924d3c88a433f8f350b89c13a878ac7d7c3
[ "Apache-2.0" ]
1
2022-01-18T22:21:57.000Z
2022-01-18T22:21:57.000Z
nntoolbox/vision/components/stn.py
nhatsmrt/nn-toolbox
689b9924d3c88a433f8f350b89c13a878ac7d7c3
[ "Apache-2.0" ]
1
2019-08-07T10:07:09.000Z
2019-08-07T10:07:09.000Z
import torch from torch import nn import torch.nn.functional as F class SpatialTransformerModule(nn.Module): ''' Implement a spatial transformer module Adapt from https://pytorch.org/tutorials/intermediate/spatial_transformer_tutorial.html https://papers.nips.cc/paper/5854-spatial-transformer-networks...
33.190476
91
0.612626
ec0672825981b0b8abfc3b27cd0feaa6191c063e
344
py
Python
scripts/reinforcement_learning/maml-rl-easy/gym_test/gym_env_test.py
alallala/MAML2
6f79426b5449f1fc7a66e0182913329c486e4b86
[ "MIT" ]
17
2020-02-18T06:49:38.000Z
2022-02-20T12:06:27.000Z
scripts/reinforcement_learning/maml-rl-easy/gym_test/gym_env_test.py
alallala/MAML2
6f79426b5449f1fc7a66e0182913329c486e4b86
[ "MIT" ]
2
2020-04-15T09:36:15.000Z
2020-04-30T09:40:09.000Z
scripts/reinforcement_learning/maml-rl-easy/gym_test/gym_env_test.py
alallala/MAML2
6f79426b5449f1fc7a66e0182913329c486e4b86
[ "MIT" ]
1
2021-04-15T08:04:31.000Z
2021-04-15T08:04:31.000Z
import gym import time import random env = gym.make('MountainCar-v0') state = env.reset() score = 0 while True: time.sleep(0.1) env.render() action = random.randint(0, 2) state, reward, done, _ = env.step(action) score += reward if done: # 游戏结束 print('score: ', score) # 打印分数 ...
17.2
45
0.59593
9af5b5298b8f02b9cef590139614c7970cd80b57
177,640
py
Python
nova/tests/unit/compute/test_resource_tracker.py
huiweics/nova
ca4226cb87b4a271ee0ad72a6b93662feea3025e
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_resource_tracker.py
huiweics/nova
ca4226cb87b4a271ee0ad72a6b93662feea3025e
[ "Apache-2.0" ]
1
2021-03-31T19:35:21.000Z
2021-03-31T19:35:21.000Z
nova/tests/unit/compute/test_resource_tracker.py
huiweics/nova
ca4226cb87b4a271ee0ad72a6b93662feea3025e
[ "Apache-2.0" ]
1
2020-07-22T09:09:38.000Z
2020-07-22T09:09:38.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 # d...
45.339459
79
0.63529
e60f4a476c11d78f5e1fdef64da16cd0e658c9ee
4,926
py
Python
DPGAnalysis/SiStripTools/test/seedmultiplicity_cfg.py
samarendran23/cmssw
849dd9897db9b894ca83e1b630a3c1eecafd6097
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
DPGAnalysis/SiStripTools/test/seedmultiplicity_cfg.py
samarendran23/cmssw
849dd9897db9b894ca83e1b630a3c1eecafd6097
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
DPGAnalysis/SiStripTools/test/seedmultiplicity_cfg.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing process = cms.Process("SeedMultiplicity") #prepare options options = VarParsing.VarParsing("analysis") options.register ('globalTag', "DONOTEXIST", VarParsing.VarParsing.multiplicity.sing...
41.394958
156
0.727771
f9196006a2128c30b1b7b9938d403f5355085d27
5,145
py
Python
corehq/apps/reports/urls.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
corehq/apps/reports/urls.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/reports/urls.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
null
null
null
import logging from django.conf.urls.defaults import * from django.core.exceptions import ImproperlyConfigured from corehq.apps.reports.util import get_installed_custom_modules from corehq.apps.reports.dispatcher import (ProjectReportDispatcher, CustomProjectReportDispatcher, BasicReportDispatcher) # from .f...
48.537736
129
0.689213