hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79756f6003bba2c1c1c5176651c7e64708f69cb1
7,060
py
Python
utilities.py
bgoff1/pokeapi-consumer
792e82a44f6feba650527e51598615e5daa1347e
[ "MIT" ]
null
null
null
utilities.py
bgoff1/pokeapi-consumer
792e82a44f6feba650527e51598615e5daa1347e
[ "MIT" ]
null
null
null
utilities.py
bgoff1/pokeapi-consumer
792e82a44f6feba650527e51598615e5daa1347e
[ "MIT" ]
null
null
null
from json import dumps, loads from time import sleep from urllib.request import Request, urlopen from urllib.error import HTTPError from constants import REQUEST_HEADERS, WAIT_INTERVAL class AttributeParser: def __init__(self): self.ability_urls = [] self.move_urls = [] self.failed_urls = ...
37.354497
107
0.548584
797571c162012bcde7eacd745e4702992b0867eb
153
py
Python
test/__init__.py
dennisme/AESBlockCiphers
2179a380f6ad3a1976ff8fea4f4b17b1cc3affd1
[ "MIT" ]
null
null
null
test/__init__.py
dennisme/AESBlockCiphers
2179a380f6ad3a1976ff8fea4f4b17b1cc3affd1
[ "MIT" ]
null
null
null
test/__init__.py
dennisme/AESBlockCiphers
2179a380f6ad3a1976ff8fea4f4b17b1cc3affd1
[ "MIT" ]
null
null
null
__all__ = ['test_testPrimitives', 'test_ecb', 'test_cbc', 'test_ofb', 'test_ctr', 'test_cfb']
19.125
34
0.431373
797572760f01007a876015db89e2e3e061523baf
22,806
py
Python
anilistWrapPY/User/types.py
Dank-del/anilistWrapPY
cf9de31c6050a6c177306eee4980aae1fc12ad45
[ "Unlicense" ]
5
2021-07-13T11:56:38.000Z
2021-08-13T14:58:29.000Z
anilistWrapPY/User/types.py
Dank-del/anilistWrapPY
cf9de31c6050a6c177306eee4980aae1fc12ad45
[ "Unlicense" ]
1
2021-08-01T11:05:00.000Z
2021-08-01T11:06:33.000Z
anilistWrapPY/User/types.py
Dank-del/anilistWrapPY
cf9de31c6050a6c177306eee4980aae1fc12ad45
[ "Unlicense" ]
5
2021-07-14T11:12:37.000Z
2021-08-05T08:43:16.000Z
# The contents of this file is free and unencumbered software released into the # public domain. For more information, please refer to <http://unlicense.org/> from anilistWrapPY.utils.utils import to_enum from anilistWrapPY.errors import Error from dataclasses import dataclass from typing import Optional, Any, List fr...
42.077491
237
0.641892
7975731db92e23d8843d1fbd5f109aff1001d133
9,790
py
Python
cmake_build.py
dfresh613/couchbase-python-client
c77af56490ed4c6d364fcf8fc1a374570de0239b
[ "Apache-2.0" ]
null
null
null
cmake_build.py
dfresh613/couchbase-python-client
c77af56490ed4c6d364fcf8fc1a374570de0239b
[ "Apache-2.0" ]
null
null
null
cmake_build.py
dfresh613/couchbase-python-client
c77af56490ed4c6d364fcf8fc1a374570de0239b
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019, Couchbase, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
42.198276
120
0.527886
797573f49dac8a3421f427c75fd404d4c85b52cf
1,924
py
Python
python/pyspark/files.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
2,327
2020-03-01T09:47:34.000Z
2021-11-25T12:38:42.000Z
python/pyspark/files.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
607
2016-12-12T21:56:43.000Z
2019-11-14T22:21:06.000Z
python/pyspark/files.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
686
2020-03-03T17:24:51.000Z
2021-11-25T23:39:12.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 us...
32.066667
80
0.702703
7975747831fde6fc5ecc322c6a6d3ec3a0d2eec5
6,158
py
Python
mms/tests/unit_tests/test_model_loader.py
andrewfayres/mxnet-model-server
ef4edfef4cfe5234887bf834ec7b82676a36ba02
[ "Apache-2.0" ]
1
2019-01-30T02:57:31.000Z
2019-01-30T02:57:31.000Z
mms/tests/unit_tests/test_model_loader.py
DrSnowbird/mxnet-model-server
a0bfd712350545dceb21c8e0b0b21dfa0c9918a7
[ "Apache-2.0" ]
null
null
null
mms/tests/unit_tests/test_model_loader.py
DrSnowbird/mxnet-model-server
a0bfd712350545dceb21c8e0b0b21dfa0c9918a7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # http://www.apache.org/licenses/LICENSE-2.0 # or in the "license" file...
45.955224
105
0.726697
797574bf0545d52910bee7baacfde42053db8668
3,371
py
Python
Semester 6/MA 322 (Scientific Computing Theory)/Labs/Lab 4/Code/q5.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
4
2021-03-02T03:58:55.000Z
2022-03-28T13:38:05.000Z
Semester 6/MA 322 (Scientific Computing Theory)/Labs/Lab 4/Code/q5.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
null
null
null
Semester 6/MA 322 (Scientific Computing Theory)/Labs/Lab 4/Code/q5.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
4
2021-02-04T17:44:23.000Z
2022-03-28T13:38:09.000Z
# Question 05, Lab 04 # AB Satyaprakash - 180123062 # imports ---------------------------------------------------------------------------- from sympy.abc import t from sympy import evalf, integrate from math import ceil, sqrt import numpy as np # functions -------------------------------------------------------------...
25.537879
86
0.511718
7975751f6a9aba06ee43dbb29b35f2b6388891db
770
py
Python
SPIWork/Server/NaiveScoreMS/apps/activities/models.py
happylrd/buptsse-workbooks
0c98d5b475abdabd47bb9f406d32f60d49cddfa7
[ "MIT" ]
null
null
null
SPIWork/Server/NaiveScoreMS/apps/activities/models.py
happylrd/buptsse-workbooks
0c98d5b475abdabd47bb9f406d32f60d49cddfa7
[ "MIT" ]
null
null
null
SPIWork/Server/NaiveScoreMS/apps/activities/models.py
happylrd/buptsse-workbooks
0c98d5b475abdabd47bb9f406d32f60d49cddfa7
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from datetime import datetime from django.db import models class Activity(models.Model): name = models.CharField(max_length=50, verbose_name='活动名') score = models.DecimalField(max_digits=5, decimal_places=2, verbose_name='分数') desc = models.CharField...
33.478261
82
0.741558
797575272ae1b5c6db8a792af0ae8de3ee44e49f
1,451
py
Python
jdcomment/jdcomment/urls.py
jdstar-666/maroon
9ff449cc30cba49f94cbbd1361bce4c37586aa7b
[ "MIT" ]
null
null
null
jdcomment/jdcomment/urls.py
jdstar-666/maroon
9ff449cc30cba49f94cbbd1361bce4c37586aa7b
[ "MIT" ]
null
null
null
jdcomment/jdcomment/urls.py
jdstar-666/maroon
9ff449cc30cba49f94cbbd1361bce4c37586aa7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf8 -*- # @Author: lisnb # @Date: 2016-07-27T13:54:19+08:00 # @Email: lisnb.h@hotmail.com # @Last modified by: lisnb # @Last modified time: 2016-07-28T04:11:57+08:00 """jdcomment URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: ...
33.744186
117
0.68918
797576052f4ae2986dcd9d64d8b8ef17e1152245
15,343
py
Python
api_client/python/grr_api_client/hunt.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
api_client/python/grr_api_client/hunt.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
api_client/python/grr_api_client/hunt.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python """Hunts-related part of GRR API client library.""" from typing import Optional from typing import Sequence from typing import Union from google.protobuf import message from grr_api_client import client from grr_api_client import context as context_lib from grr_api_client import utils from grr_r...
32.098326
80
0.712833
7975778326fe2c618bc9038d2a4bd53bc749d047
1,452
py
Python
accounts/views.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
accounts/views.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
accounts/views.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
from django.utils.translation import gettext_lazy as _ from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework.parsers import MultiPartParser from django.template.loader import render_to_string from .authentication import PasswdTokenAu...
26.4
80
0.690083
797577c1e62f9c2de95fa689c7d7e430b7fb10d7
16,988
py
Python
Geometry/CMSCommonData/python/cmsExtendedGeometry2017Plan1XML_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Geometry/CMSCommonData/python/cmsExtendedGeometry2017Plan1XML_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Geometry/CMSCommonData/python/cmsExtendedGeometry2017Plan1XML_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource", geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/materials.xml', 'Geometry/CMSCommonData/data/rotations.xml', 'Geometry/CMSCommonData/data/extend/cmsextent.xml', 'Geometry/CMS...
58.57931
88
0.724865
797577d02f04309f60ed5e79002ab17d6a23493f
1,165
py
Python
generator/modules/opencv.py
crowdAI/deepo
2f442b0ad025ba7de31271297f6d26e205221625
[ "MIT" ]
1
2018-04-12T05:34:19.000Z
2018-04-12T05:34:19.000Z
generator/modules/opencv.py
qq547276542/deepo
2f442b0ad025ba7de31271297f6d26e205221625
[ "MIT" ]
null
null
null
generator/modules/opencv.py
qq547276542/deepo
2f442b0ad025ba7de31271297f6d26e205221625
[ "MIT" ]
1
2018-04-12T05:34:24.000Z
2018-04-12T05:34:24.000Z
# -*- coding: utf-8 -*- from .__module__ import Module, dependency, source from .tools import Tools from .boost import Boost from .python import Python @dependency(Tools, Python, Boost) @source('git') class Opencv(Module): def build(self): return r''' DEBIAN_FRONTEND=noninteractive $APT_INSTA...
30.657895
69
0.48927
79757898b4b3089e2bacb0bf04c1939a3c1caaa1
3,393
py
Python
src/oci/log_analytics/models/action.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/log_analytics/models/action.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/log_analytics/models/action.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.416667
245
0.635426
79757901dd539ceac3c39fd57cd4b09299401f08
935
py
Python
pdc/apps/compose/migrations/0003_auto_20150610_1338.py
tzhaoredhat/automation
a1867dc2d3591fdae1fa7f80d457c25f9705070e
[ "MIT" ]
18
2015-12-15T17:56:18.000Z
2021-04-10T13:49:48.000Z
pdc/apps/compose/migrations/0003_auto_20150610_1338.py
tzhaoredhat/automation
a1867dc2d3591fdae1fa7f80d457c25f9705070e
[ "MIT" ]
303
2015-11-18T07:37:06.000Z
2021-05-26T12:34:01.000Z
pdc/apps/compose/migrations/0003_auto_20150610_1338.py
tzhaoredhat/automation
a1867dc2d3591fdae1fa7f80d457c25f9705070e
[ "MIT" ]
27
2015-11-19T20:33:54.000Z
2021-03-25T08:15:28.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # from __future__ import unicode_literals from django.db import models, migrations import pdc.apps.compose.models class Migration(migrations.Migration): dependencies = [ ('c...
30.16129
156
0.686631
79757950f8b992be94020e4a33b8fc81410601f4
3,180
py
Python
6_histograms/histograms.py
liggettla/jubilant-pancake
f45bfd9412cdc5e9f1e8a193b3b2957c083c6266
[ "MIT" ]
null
null
null
6_histograms/histograms.py
liggettla/jubilant-pancake
f45bfd9412cdc5e9f1e8a193b3b2957c083c6266
[ "MIT" ]
null
null
null
6_histograms/histograms.py
liggettla/jubilant-pancake
f45bfd9412cdc5e9f1e8a193b3b2957c083c6266
[ "MIT" ]
null
null
null
# Plot a histogram import pandas as pd import matplotlib.pyplot as plt import numpy as np from util import get_data, plot_data, compute_daily_returns def test_run(): # Read data and plot dates = pd.date_range('2009-01-01', '2012-12-31') symbols = ['SPY', 'XOM', 'GLD', 'GOOG'] initialize = 'n' # toggle...
44.166667
139
0.689308
79757adfb3987586f16eaab89630b8b47123d0e2
4,704
py
Python
src/kid/core/kvector3.py
KidKaboom/Kid-Maya-2022
0daec301a63438d681cc4c3a5df6d4efdc70daef
[ "MIT" ]
null
null
null
src/kid/core/kvector3.py
KidKaboom/Kid-Maya-2022
0daec301a63438d681cc4c3a5df6d4efdc70daef
[ "MIT" ]
null
null
null
src/kid/core/kvector3.py
KidKaboom/Kid-Maya-2022
0daec301a63438d681cc4c3a5df6d4efdc70daef
[ "MIT" ]
null
null
null
# :coding: utf-8 # Project Modules from kid.core.kobject import KObject # Python Modules import math # Maya Modules import maya.OpenMaya as OpenMaya class KVector3(KObject): def __init__(self, x=0.0, y=0.0, z=0.0): self._x = float(x) self._y = float(y) self._z = float(z) @property ...
27.190751
84
0.565264
79757ba95aaac2b47f1458d2a6dadc7d39aedffe
2,646
py
Python
src/dataclay/DataClayObjectExtraData.py
bsc-dom/pyclay
abb392c39f2c5991d890acd9a034c2d5c50cc0e4
[ "BSD-3-Clause" ]
1
2020-04-16T17:09:15.000Z
2020-04-16T17:09:15.000Z
src/dataclay/DataClayObjectExtraData.py
bsc-dom/pyclay
abb392c39f2c5991d890acd9a034c2d5c50cc0e4
[ "BSD-3-Clause" ]
35
2019-11-06T17:06:16.000Z
2021-04-12T16:27:20.000Z
src/dataclay/DataClayObjectExtraData.py
bsc-dom/pyclay
abb392c39f2c5991d890acd9a034c2d5c50cc0e4
[ "BSD-3-Clause" ]
1
2020-05-06T11:28:16.000Z
2020-05-06T11:28:16.000Z
"""Custom container for holding extra information on classes. The dataClay friendly classed (either before registration or stub-generated ones) will contain their extra information --like the full_name, the class_id or the namespace-- in DataClayExtraData instances. """ __author__ = 'Alex Barcelo <alex.barcelo@bsc.es...
31.879518
78
0.582766
79757c3c917b6fd411b8ae449b1dfb28ce1ded8f
1,547
py
Python
profiles/hack-libgdiplus/hack-libgdiplus.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
profiles/hack-libgdiplus/hack-libgdiplus.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
profiles/hack-libgdiplus/hack-libgdiplus.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
#!/usr/bin/python -B import os import sys sys.path.append('../..') from bockbuild.darwinprofile import DarwinProfile from packages import HackGDIPlusPackages abs_pathself = os.path.realpath(os.path.abspath(sys.argv[0])) class HackGDIPlusProfile(DarwinProfile, HackGDIPlusPackages): def __init__(self): ...
30.333333
123
0.756303
79757cbe71b6363661e7319c40896fb2de4a9ff0
35,033
py
Python
pylinacnew/winston_lutz.py
bozhikovstanislav/UI-Pylinac
ecccf4627adbe4b7a44a577e93c9cc9f4b42da7d
[ "MIT" ]
3
2020-12-24T20:23:24.000Z
2021-06-04T03:40:47.000Z
pylinacnew/winston_lutz.py
bozhikovstanislav/UI-Pylinac
ecccf4627adbe4b7a44a577e93c9cc9f4b42da7d
[ "MIT" ]
null
null
null
pylinacnew/winston_lutz.py
bozhikovstanislav/UI-Pylinac
ecccf4627adbe4b7a44a577e93c9cc9f4b42da7d
[ "MIT" ]
null
null
null
"""The Winston-Lutz module loads and processes EPID images that have acquired Winston-Lutz type images. Features: * **Automatic field & BB positioning** - When an image or directory is loaded, the field CAX and the BB are automatically found, along with the vector and scalar distance between them. * **Isocenter siz...
41.705952
158
0.598664
79757d932453ac48dbed5f989d4935685f22da8f
4,221
py
Python
test/unit/object/test_webhook.py
jayneeljariwala/box-python-sdk
39aa284c776817453e4a75533a7e0b5516c03752
[ "Apache-2.0" ]
367
2015-02-10T05:55:45.000Z
2022-03-16T23:39:58.000Z
test/unit/object/test_webhook.py
jayneeljariwala/box-python-sdk
39aa284c776817453e4a75533a7e0b5516c03752
[ "Apache-2.0" ]
686
2015-02-10T01:21:28.000Z
2022-03-31T11:40:22.000Z
test/unit/object/test_webhook.py
jayneeljariwala/box-python-sdk
39aa284c776817453e4a75533a7e0b5516c03752
[ "Apache-2.0" ]
260
2015-02-16T17:35:06.000Z
2022-03-20T17:45:28.000Z
# coding: utf-8 from __future__ import unicode_literals import json import pytest from mock import Mock from boxsdk.config import API from boxsdk.network.default_network import DefaultNetworkResponse from boxsdk.object.webhook import Webhook @pytest.fixture(scope='module') def delete_webhook_response(): # pylin...
42.636364
155
0.716181
79757dcbed382f37b94eb069ed36b4c9e1a05bab
461
py
Python
Ladder 11/Python/060.DZY Loves Chessboard.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
null
null
null
Ladder 11/Python/060.DZY Loves Chessboard.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
1
2021-12-01T06:53:18.000Z
2021-12-01T07:09:31.000Z
Ladder 11/Python/060.DZY Loves Chessboard.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
4
2021-10-31T16:36:28.000Z
2021-12-01T05:48:31.000Z
n,m=map(int,input().split()) a=[input() for i in range(n)] # print(a) c=[] for i in range(n): if i%2==0: if m%2: d = "BW"*(m//2)+"B" else: d = "BW"*(m//2) else: if m%2: d = "WB"*(m//2)+"W" else: d = "WB"*(m//2) c.append(d) for i...
20.043478
31
0.355748
79757df41435fd414af02cf8e93de8b250f78ff9
5,348
py
Python
model/model_roof/lq_rf_roof.py
SunnyMarkLiu/Datacastle_Travel_Services_Predict
0823a8aaab4e42a7ee5067171901c6f597bc5d7e
[ "MIT" ]
69
2018-02-08T09:38:12.000Z
2019-10-14T00:11:04.000Z
model/model_roof/lq_rf_roof.py
QianguoSun/Datacastle_Travel_Services_Predict
0823a8aaab4e42a7ee5067171901c6f597bc5d7e
[ "MIT" ]
null
null
null
model/model_roof/lq_rf_roof.py
QianguoSun/Datacastle_Travel_Services_Predict
0823a8aaab4e42a7ee5067171901c6f597bc5d7e
[ "MIT" ]
33
2018-02-08T15:32:33.000Z
2019-07-20T08:52:26.000Z
# _*_ coding: utf-8 _*_ from __future__ import absolute_import, division, print_function import os import sys module_path = os.path.abspath(os.path.join('..')) sys.path.append(module_path) import numpy as np import pandas as pd from sklearn.model_selection import StratifiedKFold from sklearn.ensemble import RandomFo...
35.417219
133
0.642483
79757e1d765f8e5bf357681f568df292290fe3b0
20,356
py
Python
train.py
gallif/raft
11a35ff5ede31918a360eca2f1481bc5fec9b5e5
[ "BSD-3-Clause" ]
null
null
null
train.py
gallif/raft
11a35ff5ede31918a360eca2f1481bc5fec9b5e5
[ "BSD-3-Clause" ]
null
null
null
train.py
gallif/raft
11a35ff5ede31918a360eca2f1481bc5fec9b5e5
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division import sys sys.path.append('core') import argparse import os import cv2 import time from datetime import datetime import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tqdm import tqdm import torch import torch.nn as nn import torch.optim as o...
41.971134
186
0.611908
79757fa33668b65d69f1e08df69eea7102cab4e6
4,887
py
Python
docs/conf.py
ROldford/decryptoquote
daa30d5594fac4472e01ed3dd2f83f4520ff0e6d
[ "MIT" ]
null
null
null
docs/conf.py
ROldford/decryptoquote
daa30d5594fac4472e01ed3dd2f83f4520ff0e6d
[ "MIT" ]
6
2020-02-26T19:23:49.000Z
2021-08-04T03:38:35.000Z
docs/conf.py
ROldford/decryptoquote
daa30d5594fac4472e01ed3dd2f83f4520ff0e6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # decryptoquote documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # 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...
29.79878
77
0.688152
797580733a6f580d56611113381cd1ff1f0f40c1
9,420
py
Python
cabinet/base.py
underdoeg/django-cabinet
1cbe16d4fb1e77063b85d95b90ddb48b23f27ab4
[ "BSD-3-Clause" ]
null
null
null
cabinet/base.py
underdoeg/django-cabinet
1cbe16d4fb1e77063b85d95b90ddb48b23f27ab4
[ "BSD-3-Clause" ]
null
null
null
cabinet/base.py
underdoeg/django-cabinet
1cbe16d4fb1e77063b85d95b90ddb48b23f27ab4
[ "BSD-3-Clause" ]
null
null
null
import inspect import io import os import re from django.core.exceptions import ( FieldDoesNotExist, ImproperlyConfigured, ValidationError, ) from django.db import models from django.db.models import signals from django.utils.translation import gettext_lazy as _ from imagefield.fields import ImageField, PP...
29.810127
87
0.554246
7975811522decfeacaf5b0b4abc2ae143955713a
9,710
py
Python
py/abd/abdt_naming.py
aevri/phabricator-tools
ef7501bcaee83e98d168d16f64b3f73e744d3336
[ "Apache-2.0" ]
150
2015-01-21T15:52:22.000Z
2021-11-09T05:53:36.000Z
py/abd/abdt_naming.py
aevri/phabricator-tools
ef7501bcaee83e98d168d16f64b3f73e744d3336
[ "Apache-2.0" ]
72
2015-05-08T04:33:08.000Z
2017-01-27T09:37:36.000Z
py/abd/abdt_naming.py
aevri/phabricator-tools
ef7501bcaee83e98d168d16f64b3f73e744d3336
[ "Apache-2.0" ]
38
2015-01-30T10:33:47.000Z
2021-11-09T05:53:30.000Z
"""Naming conventions for abd.""" # ============================================================================= # CONTENTS # ----------------------------------------------------------------------------- # abdt_naming # # Public Classes: # Error # TrackerBranch # .branch # .status # .description # .bas...
27.429379
79
0.64449
79758116f696d1f3ddc61a53812bbf324972dfd4
322
py
Python
xero/constants.py
unomena/pyxeropos
8f8b798a635ab10804f5f738130b75b40b7ff880
[ "BSD-3-Clause" ]
null
null
null
xero/constants.py
unomena/pyxeropos
8f8b798a635ab10804f5f738130b75b40b7ff880
[ "BSD-3-Clause" ]
null
null
null
xero/constants.py
unomena/pyxeropos
8f8b798a635ab10804f5f738130b75b40b7ff880
[ "BSD-3-Clause" ]
null
null
null
XERO_BASE_URL = "https://api.xero.com" XERO_PARTNER_BASE_URL = "https://api-partner.network.xero.com" REQUEST_TOKEN_URL = "/oauth/RequestToken" AUTHORIZE_URL = "/oauth/Authorize" ACCESS_TOKEN_URL = "/oauth/AccessToken" XERO_API_URL = "/api.xro/2.0" XERO_FILES_URL = "/files.xro/1.0" XERO_PAYROLL_URL = "/payroll.xro/1.0...
32.2
62
0.754658
79758152a11461f9054c53efee2809f596c37685
43,237
py
Python
Fe3_calculation_program/vir_env_windows/Lib/site-packages/pandas/io/excel/_base.py
SanyHe/pyro_processor
2a11a8158a18bd92bc7f14d9006be64c2a60e6ba
[ "MIT" ]
null
null
null
Fe3_calculation_program/vir_env_windows/Lib/site-packages/pandas/io/excel/_base.py
SanyHe/pyro_processor
2a11a8158a18bd92bc7f14d9006be64c2a60e6ba
[ "MIT" ]
null
null
null
Fe3_calculation_program/vir_env_windows/Lib/site-packages/pandas/io/excel/_base.py
SanyHe/pyro_processor
2a11a8158a18bd92bc7f14d9006be64c2a60e6ba
[ "MIT" ]
null
null
null
import abc import datetime from distutils.version import LooseVersion import inspect from io import BufferedIOBase, BytesIO, RawIOBase import os from textwrap import fill from typing import IO, Any, Dict, Mapping, Optional, Union, cast import warnings import zipfile from pandas._config import config from...
36.000833
89
0.587344
7975820ec06a3ffaa28c2254df45f7b37a872536
664
py
Python
proxy/plugin/man_in_the_middle.py
Flared/proxy.py
7199459c69a717bb55f932230ae9a39707430149
[ "BSD-3-Clause" ]
null
null
null
proxy/plugin/man_in_the_middle.py
Flared/proxy.py
7199459c69a717bb55f932230ae9a39707430149
[ "BSD-3-Clause" ]
null
null
null
proxy/plugin/man_in_the_middle.py
Flared/proxy.py
7199459c69a717bb55f932230ae9a39707430149
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
33.2
86
0.718373
7975847be7da399df7a1db011db92d7335f63b3d
3,900
py
Python
mlrun/api/api/endpoints/frontend_spec.py
TomerShor/mlrun
826bc09dacf03ad2a6a96dc6c41858f85fd6151e
[ "Apache-2.0" ]
null
null
null
mlrun/api/api/endpoints/frontend_spec.py
TomerShor/mlrun
826bc09dacf03ad2a6a96dc6c41858f85fd6151e
[ "Apache-2.0" ]
null
null
null
mlrun/api/api/endpoints/frontend_spec.py
TomerShor/mlrun
826bc09dacf03ad2a6a96dc6c41858f85fd6151e
[ "Apache-2.0" ]
null
null
null
import typing import fastapi import mlrun.api.api.deps import mlrun.api.schemas import mlrun.api.utils.clients.iguazio import mlrun.builder import mlrun.runtimes import mlrun.runtimes.utils import mlrun.utils.helpers from mlrun.config import config router = fastapi.APIRouter() @router.get( "/frontend-spec", ...
42.391304
118
0.760513
79758504049ee9a19f77ce6cb3e0fae2807e29aa
4,050
py
Python
ezyrb/gpr.py
giovastabile/EZyRB
c89b5347add0ece109f2169295db467b2c2b23c2
[ "MIT" ]
null
null
null
ezyrb/gpr.py
giovastabile/EZyRB
c89b5347add0ece109f2169295db467b2c2b23c2
[ "MIT" ]
null
null
null
ezyrb/gpr.py
giovastabile/EZyRB
c89b5347add0ece109f2169295db467b2c2b23c2
[ "MIT" ]
null
null
null
""" Module wrapper exploiting `GPy` for Gaussian Process Regression """ import GPy import numpy as np from scipy.optimize import minimize from .approximation import Approximation class GPR(Approximation): """ Multidimensional regression using Gaussian process. :cvar numpy.ndarray X_sample: the array con...
33.471074
79
0.609877
7975873f9d0744f23255a44578b681c06be82434
36,171
py
Python
models/RoBERTa/tokenization_utils.py
BlackNoodle/TUCORE-GCN
16fb37d81c5b1182a31fcf7da08a9c0013b20cd6
[ "MIT" ]
27
2021-09-02T02:59:44.000Z
2022-03-28T10:20:31.000Z
models/RoBERTa/tokenization_utils.py
BlackNoodle/TUCORE-GCN
16fb37d81c5b1182a31fcf7da08a9c0013b20cd6
[ "MIT" ]
1
2022-02-15T04:01:18.000Z
2022-02-15T04:01:18.000Z
models/RoBERTa/tokenization_utils.py
BlackNoodle/TUCORE-GCN
16fb37d81c5b1182a31fcf7da08a9c0013b20cd6
[ "MIT" ]
5
2021-12-08T08:21:00.000Z
2022-03-17T08:57:32.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. # # 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...
44.218826
155
0.617594
797587b13978e4617925e1a6852eab4cc08e058a
18,766
py
Python
Yolov5s_Python/utils/general.py
ai-iilab/aic_jetson_dev
383cb529e1688404aabb944bb5390571b5c2c83e
[ "MIT" ]
null
null
null
Yolov5s_Python/utils/general.py
ai-iilab/aic_jetson_dev
383cb529e1688404aabb944bb5390571b5c2c83e
[ "MIT" ]
null
null
null
Yolov5s_Python/utils/general.py
ai-iilab/aic_jetson_dev
383cb529e1688404aabb944bb5390571b5c2c83e
[ "MIT" ]
null
null
null
# General utils import glob import logging import math import os import platform import random import re import subprocess import time from pathlib import Path import cv2 import numpy as np import torch import torchvision import yaml from utils.google_utils import gsutil_getsize from utils.metrics import fitness fro...
41.517699
120
0.573697
797587f2229e482e79a45838410323c4a29730a8
726
py
Python
myip.py
zeth/scripts
4b5e760ebddd00f3ffa5c4eab0118c3bc0035982
[ "Apache-2.0" ]
2
2017-08-14T06:37:23.000Z
2017-08-14T08:27:04.000Z
myip.py
zeth/scripts
4b5e760ebddd00f3ffa5c4eab0118c3bc0035982
[ "Apache-2.0" ]
null
null
null
myip.py
zeth/scripts
4b5e760ebddd00f3ffa5c4eab0118c3bc0035982
[ "Apache-2.0" ]
3
2015-05-04T01:05:18.000Z
2020-01-09T02:47:04.000Z
#!/usr/bin/env python """Show the IP Address of the browser. """ TEMPLATE = """Content-Type: text/html\n\n <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-eq...
24.2
69
0.639118
797588107cbd829aa9f5dc3177624ffaa6d1aab6
3,351
py
Python
dashboard/modules/job/tests/test_cli.py
dproctor/ray
918a21544217d2730e95814c3adbf41bb50ec3d0
[ "Apache-2.0" ]
null
null
null
dashboard/modules/job/tests/test_cli.py
dproctor/ray
918a21544217d2730e95814c3adbf41bb50ec3d0
[ "Apache-2.0" ]
52
2019-02-03T20:55:10.000Z
2022-03-26T07:08:44.000Z
dashboard/modules/job/tests/test_cli.py
hartikainen/ray
c0aeb4a2368ca9c53f055522eebd65bcfd457b07
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager import logging import os from unittest import mock from click.testing import CliRunner import pytest from ray.dashboard.modules.job.cli import job_cli_group logger = logging.getLogger(__name__) @pytest.fixture def mock_sdk_client(): if "RAY_ADDRESS" in os.environ: ...
32.533981
78
0.592957
797588238cb50dd0b8db3735648d0a3128b843fc
8,533
py
Python
tests/test_charge.py
Nicerova7/culqi-python
a148fcb91269ffb6a05cb45d7c1e2af3be584c21
[ "MIT" ]
null
null
null
tests/test_charge.py
Nicerova7/culqi-python
a148fcb91269ffb6a05cb45d7c1e2af3be584c21
[ "MIT" ]
null
null
null
tests/test_charge.py
Nicerova7/culqi-python
a148fcb91269ffb6a05cb45d7c1e2af3be584c21
[ "MIT" ]
null
null
null
import os import unittest from copy import deepcopy import pytest from dotenv import load_dotenv from culqi import __version__ from culqi.client import Culqi from culqi.resources import Charge from culqi.utils.errors import ErrorMessage, NotAllowedError from .data import Data class ChargeTest(unittest.TestCase): ...
40.633333
86
0.662721
797588f94b35fdbe24a40e514da9816110bdded0
621
py
Python
ex075.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex075.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex075.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
tupla = (int(input('Digite um valor: ')), int(input('Digite um valor: ')), int(input('Digite um valor: ')), int(input('Digite um valor: '))) par = 0 print(f'Você digitou os valores {tupla}') #Quantas vezes apareceu o valor 9? print(f'O valor 9 apareceu {tupla.count(9)}') #Em que posição foi di...
28.227273
65
0.63285
7975899270812763f7e13a45a8a34050608348c6
12,037
py
Python
src/snps/io/writer.py
willgdjones/snps
31efc35c9c82f0af78939de817a7d8174bfb7cf9
[ "CC0-1.0", "BSD-3-Clause" ]
55
2019-06-12T13:02:30.000Z
2022-03-20T07:52:38.000Z
src/snps/io/writer.py
willgdjones/snps
31efc35c9c82f0af78939de817a7d8174bfb7cf9
[ "CC0-1.0", "BSD-3-Clause" ]
131
2019-06-14T05:13:01.000Z
2022-03-12T01:12:37.000Z
src/snps/io/writer.py
willgdjones/snps
31efc35c9c82f0af78939de817a7d8174bfb7cf9
[ "CC0-1.0", "BSD-3-Clause" ]
19
2019-06-19T11:06:30.000Z
2022-03-14T18:32:13.000Z
""" Class for writing SNPs. """ """ BSD 3-Clause License Copyright (c) 2019, Andrew Riha All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyri...
30.628499
137
0.530448
79758a0b4635b6e3266c938734fe7167932fd36d
13,514
py
Python
pysindy/feature_library/generalized_library.py
eloygeenjaar/pysindy
2f68e0a705da2d549bc5320ffadb0bfaf7276d9a
[ "MIT" ]
null
null
null
pysindy/feature_library/generalized_library.py
eloygeenjaar/pysindy
2f68e0a705da2d549bc5320ffadb0bfaf7276d9a
[ "MIT" ]
null
null
null
pysindy/feature_library/generalized_library.py
eloygeenjaar/pysindy
2f68e0a705da2d549bc5320ffadb0bfaf7276d9a
[ "MIT" ]
null
null
null
import numpy as np from sklearn import __version__ from sklearn.utils import check_array from sklearn.utils.validation import check_is_fitted from .base import BaseFeatureLibrary from .weak_pde_library import WeakPDELibrary class GeneralizedLibrary(BaseFeatureLibrary): """Put multiple libraries into one library....
42.099688
88
0.60293
79758a84b391932cd87d70a00e4d056930f89035
3,678
py
Python
manage.py
Gackle/zako-for-bit-war
6491b4ec1d8c37e6563471230cf1b4e1fd868db7
[ "Apache-2.0" ]
null
null
null
manage.py
Gackle/zako-for-bit-war
6491b4ec1d8c37e6563471230cf1b4e1fd868db7
[ "Apache-2.0" ]
2
2022-01-13T01:11:26.000Z
2022-03-11T23:45:23.000Z
manage.py
Gackle/zako-for-bit-war
6491b4ec1d8c37e6563471230cf1b4e1fd868db7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import os from sqlalchemy import func from flask_script import Manager, Server from flask_script.commands import Clean, ShowUrls from webapp import create_app from webapp.models import db, User, Role, Script, Post, Comment, PostCategory env = os.environ.get('WEBAPP_ENV', 'dev') app = create_app('webapp...
27.863636
119
0.686514
79758a91ec94a94b1dd937e877f85406e18f4b0a
1,666
py
Python
scripts/provisioning/postinstallcmd.py
rohitkolapkar/cortx-s3server
8a0ce051a71c49d4f38345ad68ec3e98348b473d
[ "Apache-2.0" ]
null
null
null
scripts/provisioning/postinstallcmd.py
rohitkolapkar/cortx-s3server
8a0ce051a71c49d4f38345ad68ec3e98348b473d
[ "Apache-2.0" ]
null
null
null
scripts/provisioning/postinstallcmd.py
rohitkolapkar/cortx-s3server
8a0ce051a71c49d4f38345ad68ec3e98348b473d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # 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 # ...
34.708333
95
0.723289
79758b1b1ef8c63d65fcc5fddb0548241c86bad9
13,831
py
Python
apigee/keyvaluemaps/commands.py
emporix/apigee-cli
0ab67210324e52b72d3d6b77d5894e79e998335e
[ "Apache-2.0" ]
null
null
null
apigee/keyvaluemaps/commands.py
emporix/apigee-cli
0ab67210324e52b72d3d6b77d5894e79e998335e
[ "Apache-2.0" ]
null
null
null
apigee/keyvaluemaps/commands.py
emporix/apigee-cli
0ab67210324e52b72d3d6b77d5894e79e998335e
[ "Apache-2.0" ]
null
null
null
import sys import click from apigee import APIGEE_CLI_SYMMETRIC_KEY, console from apigee.auth import common_auth_options, gen_auth from apigee.crypto import (ENCRYPTED_HEADER_BEGIN, ENCRYPTED_HEADER_END, decrypt_message, encrypt_message, is_encrypted) from apigee.keyvaluemaps.keyval...
33.570388
405
0.703203
79758b292f1df6e89568639463421391fadccc03
3,714
py
Python
qmpy/web/views/materials/composition.py
JosephMontoya-TRI/qmpy
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
1
2019-11-15T20:54:04.000Z
2019-11-15T20:54:04.000Z
qmpy/web/views/materials/composition.py
JosephMontoya-TRI/qmpy_py3
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
null
null
null
qmpy/web/views/materials/composition.py
JosephMontoya-TRI/qmpy_py3
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
null
null
null
from tempfile import mkstemp import os.path from pprint import pprint from django.http import HttpResponse from django.template import RequestContext from django.shortcuts import render_to_response from django.core.context_processors import csrf from qmpy import INSTALL_PATH from ..tools import get_globals from qmpy ...
33.160714
84
0.585622
79758bbbb12d9e85a7115d3a2ed8a5e82dffed59
7,876
py
Python
pygtkweb/demos/063-uimerge.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2018-09-19T09:14:16.000Z
2018-09-19T09:14:16.000Z
pygtkweb/demos/063-uimerge.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pygtkweb/demos/063-uimerge.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T14:17:59.000Z
2019-11-18T14:17:59.000Z
#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class UIMergeExample: ui0 = '''<ui> <menubar name="MenuBar"> <menu action="File"> <menuitem action="Quit"/> </menu> <menu action="Sound"> <menuitem action="Mute"/> </menu> <menu action="RadioBand">...
34.393013
77
0.558151
79758c095c0e02308347c6f622acda4ca9cdfda1
209
py
Python
src/pyotp/compat.py
b4stien/pyotp
a05d4039df50d93ea2dcac74e53ce1534f4b5cbc
[ "MIT" ]
1,025
2018-11-08T19:38:47.000Z
2022-03-31T09:51:41.000Z
src/pyotp/compat.py
b4stien/pyotp
a05d4039df50d93ea2dcac74e53ce1534f4b5cbc
[ "MIT" ]
62
2015-07-16T09:51:57.000Z
2018-11-06T00:13:24.000Z
src/pyotp/compat.py
b4stien/pyotp
a05d4039df50d93ea2dcac74e53ce1534f4b5cbc
[ "MIT" ]
155
2018-11-20T15:22:46.000Z
2022-03-30T05:56:41.000Z
# Use secrets module if available (Python version >= 3.6) per PEP 506 try: from secrets import SystemRandom # type: ignore except ImportError: from random import SystemRandom random = SystemRandom()
26.125
69
0.746411
79758db9de36a20eea8067d2290edae3643d9286
19,655
py
Python
toontown/minigame/CogThief.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
8
2017-10-10T11:41:01.000Z
2021-02-23T12:55:47.000Z
toontown/minigame/CogThief.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/minigame/CogThief.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
2
2019-04-06T16:18:23.000Z
2021-02-25T06:25:01.000Z
import math from pandac.PandaModules import CollisionSphere, CollisionNode, Point3, CollisionTube, Vec3, rad2Deg from direct.showbase.DirectObject import DirectObject from direct.distributed.ClockDelta import globalClockDelta from direct.interval.IntervalGlobal import Parallel, SoundInterval, Sequence, Func, LerpScaleI...
41.378947
266
0.640244
79758dd984326411a0b61fe003eb65b19902b2e9
3,714
py
Python
hummingbot/logger/log_server_client.py
popnetwork/hummingbot
19de9bdd5f0c854eeac50b4d4a5b40e490d88501
[ "Apache-2.0" ]
2
2021-04-08T19:24:52.000Z
2021-04-09T22:47:08.000Z
hummingbot/logger/log_server_client.py
popnetwork/hummingbot
19de9bdd5f0c854eeac50b4d4a5b40e490d88501
[ "Apache-2.0" ]
13
2021-02-16T01:57:23.000Z
2021-02-16T03:50:03.000Z
hummingbot/logger/log_server_client.py
pulkitsharma/hummingbot
8695f83a2ffec392083be9ba5be7f0fa5c4dade6
[ "Apache-2.0" ]
1
2020-09-08T10:48:29.000Z
2020-09-08T10:48:29.000Z
import asyncio import logging from typing import Optional import aiohttp from hummingbot.core.network_base import NetworkBase, NetworkStatus from hummingbot.core.utils.async_utils import safe_ensure_future from hummingbot.logger import HummingbotLogger class LogServerClient(NetworkBase): lsc_logger: Optional[Hum...
37.14
115
0.588584
79758dee5cfdad4740f06387f61fed5ca571c7c6
1,959
py
Python
pandas/tests/categorical/test_missing.py
jess010/pandas
9872d6757e5117dce070981141cee562f675694e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/categorical/test_missing.py
jess010/pandas
9872d6757e5117dce070981141cee562f675694e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/categorical/test_missing.py
jess010/pandas
9872d6757e5117dce070981141cee562f675694e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2019-03-08T19:59:05.000Z
2020-09-27T03:18:37.000Z
# -*- coding: utf-8 -*- import numpy as np import pandas.util.testing as tm from pandas import (Categorical, Index, isna) from pandas.compat import lrange from pandas.core.dtypes.dtypes import CategoricalDtype class TestCategoricalMissing(object): def test_na_flags_int_categories(self): # #1457 ...
34.982143
73
0.544666
79758e1fa086cbf8f73a3850853da4e96924ab35
620
py
Python
setup.py
SamP20/mongo-sio
0961be760ef3f7d5b1c12d32ba2155e12e7b6da2
[ "MIT" ]
null
null
null
setup.py
SamP20/mongo-sio
0961be760ef3f7d5b1c12d32ba2155e12e7b6da2
[ "MIT" ]
null
null
null
setup.py
SamP20/mongo-sio
0961be760ef3f7d5b1c12d32ba2155e12e7b6da2
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mongo-sio", version="0.0.1", author="Sam Partridge", description="Sans-io implementation of the MongoDB protocol", long_description=long_description, long_description_content_type="tex...
29.52381
65
0.666129
79758e20413be48aff96f1a4d080e8e9842b3908
82
py
Python
umi_tools/__init__.py
redst4r/UMI-tools
442dea4c1480d8bae5073b2eb11117618bfe75b2
[ "MIT" ]
null
null
null
umi_tools/__init__.py
redst4r/UMI-tools
442dea4c1480d8bae5073b2eb11117618bfe75b2
[ "MIT" ]
null
null
null
umi_tools/__init__.py
redst4r/UMI-tools
442dea4c1480d8bae5073b2eb11117618bfe75b2
[ "MIT" ]
null
null
null
from __future__ import absolute_import from umi_tools.version import __version__
20.5
41
0.878049
79758fd7db1a70b15199c8fe6f8a94c3c204d8f3
7,634
py
Python
ansible/modules/source_control/github_key.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
ansible/modules/source_control/github_key.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/source_control/github_key.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
#!/usr/bin/python # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'],...
30.782258
149
0.615274
7975901053b612e138806c5f28b80f6d548c9360
2,202
tac
Python
code/arduino/util/webclienttest_server.tac
Wyss/evolvulator
c026b9e7425cabba8b7a5b49024173c6f9667337
[ "MIT" ]
1
2016-01-05T20:10:10.000Z
2016-01-05T20:10:10.000Z
code/arduino/util/webclienttest_server.tac
Wyss/evolvulator
c026b9e7425cabba8b7a5b49024173c6f9667337
[ "MIT" ]
null
null
null
code/arduino/util/webclienttest_server.tac
Wyss/evolvulator
c026b9e7425cabba8b7a5b49024173c6f9667337
[ "MIT" ]
null
null
null
#!usr/bin/env python # encoding: utf-8 """ Copyright (c) 2012 Wyss Institute at Harvard University 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...
33.876923
77
0.747502
797591db6cd308daf69fc4773ed6b13c47e165b0
28,432
py
Python
opentamp/core/util_classes/openrave_body.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
4
2022-02-13T15:52:18.000Z
2022-03-26T17:33:13.000Z
opentamp/core/util_classes/openrave_body.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
1
2022-02-13T22:48:09.000Z
2022-02-13T22:48:09.000Z
opentamp/core/util_classes/openrave_body.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
null
null
null
import numpy as np from math import cos, sin, atan2 import pybullet as P import opentamp.core.util_classes.common_constants as const import opentamp.core.util_classes.transform_utils as T from opentamp.core.util_classes.robots import Robot, PR2, Baxter, Washer, NAMO from opentamp.core.util_classes.items import Item, ...
42.183976
130
0.547869
79759250f188117a5dc64e6dc4ed42a611d7ed6a
6,452
py
Python
pretrain_ict.py
sj6077/Megatron-LM
3860e995269df61d234ed910d4756e104e1ab844
[ "MIT" ]
189
2020-11-19T21:12:48.000Z
2022-03-31T13:47:01.000Z
pretrain_ict.py
sj6077/Megatron-LM
3860e995269df61d234ed910d4756e104e1ab844
[ "MIT" ]
62
2021-05-05T17:03:18.000Z
2022-03-31T07:23:36.000Z
pretrain_ict.py
sj6077/Megatron-LM
3860e995269df61d234ed910d4756e104e1ab844
[ "MIT" ]
135
2020-11-19T21:32:21.000Z
2022-03-31T11:08:41.000Z
# coding=utf-8 # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
36.044693
87
0.719002
7975958a0e9d08044570d21bd219303b78c18a07
48
py
Python
attributes/rendered.py
misspellted/enlightened
59fac50bb17a5a3236a9b4561b5ed0107825fb85
[ "Unlicense" ]
2
2021-03-03T05:57:51.000Z
2021-07-06T06:26:07.000Z
attributes/rendered.py
misspellted/enlightened
59fac50bb17a5a3236a9b4561b5ed0107825fb85
[ "Unlicense" ]
6
2021-04-09T00:30:24.000Z
2022-03-14T16:08:37.000Z
attributes/rendered.py
misspellted/enlightened
59fac50bb17a5a3236a9b4561b5ed0107825fb85
[ "Unlicense" ]
1
2021-03-03T06:00:46.000Z
2021-03-03T06:00:46.000Z
class Rendered: def render(self): pass
6.857143
19
0.625
797595a3c7c5e10fb371101986d8da39536dfeb5
8,505
py
Python
splunk_eventgen/lib/plugins/output/splunkstream.py
mickotronic/eventgen
c0a8b15f50b2216582ac52756923f127630823b2
[ "Apache-2.0" ]
305
2015-01-06T17:35:49.000Z
2022-03-16T19:04:45.000Z
splunk_eventgen/lib/plugins/output/splunkstream.py
mickotronic/eventgen
c0a8b15f50b2216582ac52756923f127630823b2
[ "Apache-2.0" ]
239
2015-01-12T16:51:27.000Z
2022-02-26T04:57:12.000Z
splunk_eventgen/lib/plugins/output/splunkstream.py
mickotronic/eventgen
c0a8b15f50b2216582ac52756923f127630823b2
[ "Apache-2.0" ]
175
2015-01-15T20:01:04.000Z
2022-03-29T21:31:09.000Z
import http.client from collections import deque from xml.dom import minidom import httplib2 import six.moves.urllib.error import six.moves.urllib.parse import six.moves.urllib.request from splunk_eventgen.lib.logging_config import logger from splunk_eventgen.lib.outputplugin import OutputPlugin class SplunkStreamO...
39.375
119
0.447384
797597716fbd7a6120478653493910d622542312
4,990
py
Python
A02/utils/data_acq/runacq.py
emaballarin/fhpc_assignments_2019-2020
3b6c2484ef02a068e27703bd941baee484c5c2db
[ "Apache-2.0" ]
1
2020-04-18T03:09:02.000Z
2020-04-18T03:09:02.000Z
A02/utils/data_acq/runacq.py
emaballarin/fhpc_assignments_2019-2020
3b6c2484ef02a068e27703bd941baee484c5c2db
[ "Apache-2.0" ]
null
null
null
A02/utils/data_acq/runacq.py
emaballarin/fhpc_assignments_2019-2020
3b6c2484ef02a068e27703bd941baee484c5c2db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # (C) 2019-* Emanuele Ballarin <emanuele@ballarin.cc> # Distribution: MIT License. # IMPORTS: import os import subprocess as proc from subprocess import PIPE import time import numpy as np ################################################################################################### d...
32.402597
99
0.57495
7975978a8a3d9a49cb584ec39cad07c2d9154bb8
1,557
py
Python
blog_app/commands/__init__.py
DramatikMan/flask-practice-two
ab012172041127579f0c07296a3913ebe17f4e94
[ "MIT" ]
null
null
null
blog_app/commands/__init__.py
DramatikMan/flask-practice-two
ab012172041127579f0c07296a3913ebe17f4e94
[ "MIT" ]
null
null
null
blog_app/commands/__init__.py
DramatikMan/flask-practice-two
ab012172041127579f0c07296a3913ebe17f4e94
[ "MIT" ]
null
null
null
import random import datetime from flask import Blueprint, current_app from ..models import db, User, Post, Tag, Role bp_cmd = Blueprint('cmd', __name__, cli_group=None) @bp_cmd.cli.command('db_clear') def db_clear(): '''Drop all tables from the connected database.''' db.drop_all() @bp_cmd.cli.command('...
27.315789
69
0.660886
797598822d6f0d3fd3d009a95ddf519ff269e9e0
1,256
py
Python
scripts/debug.py
NDereg/AWS_AMI_Lookup
c9764459816ef9c4243e7056329b0eef8e84feb5
[ "MIT" ]
null
null
null
scripts/debug.py
NDereg/AWS_AMI_Lookup
c9764459816ef9c4243e7056329b0eef8e84feb5
[ "MIT" ]
null
null
null
scripts/debug.py
NDereg/AWS_AMI_Lookup
c9764459816ef9c4243e7056329b0eef8e84feb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Return from Lambda """ import os import logging EVENT = { 'RequestType': 'Create', 'ServiceToken': 'arn:aws:lambda:us-east-1:123456789123:function:test-AMIInfoFunction', 'ResponseURL': 'https://cloudformation-custom-resource-response-', 'StackId': 'arn:aws:c...
24.153846
78
0.638535
797598be76df488d9f8e12b1ca800129f81f4ccf
1,655
py
Python
sdk/SSL/certificate-not-verified/consumer.py
robomq/robomq.io
a5aff4131fe45756a870caad8753e79c84d10535
[ "Apache-2.0" ]
14
2015-01-15T03:04:58.000Z
2020-07-04T04:11:21.000Z
sdk/SSL/certificate-not-verified/consumer.py
robomq/robomq.io
a5aff4131fe45756a870caad8753e79c84d10535
[ "Apache-2.0" ]
5
2015-02-11T14:53:39.000Z
2015-02-11T16:53:31.000Z
sdk/SSL/certificate-not-verified/consumer.py
robomq/robomq.io
a5aff4131fe45756a870caad8753e79c84d10535
[ "Apache-2.0" ]
8
2015-05-09T05:31:29.000Z
2018-08-27T07:04:29.000Z
# File: consumer.py # Description: This is the AMQP SSL consumer handles incoming # communication from clients publishing messages to a broker server. # This example applies routing-key pattern out of 5 patterns. # It doesn't verify the certificate of robomq.io. # # Author: Eamin Zhang # robomq.io (http://w...
33.77551
180
0.751662
7975999b103879b1b108eb8e1cb603151a49c0e0
6,582
py
Python
pydest/test/test_integration.py
benjsnellings/pydest
7cfca84a4f5c6aa3a058dd4544f597c415936cd5
[ "MIT" ]
null
null
null
pydest/test/test_integration.py
benjsnellings/pydest
7cfca84a4f5c6aa3a058dd4544f597c415936cd5
[ "MIT" ]
null
null
null
pydest/test/test_integration.py
benjsnellings/pydest
7cfca84a4f5c6aa3a058dd4544f597c415936cd5
[ "MIT" ]
null
null
null
import pytest import asyncio import json import pydest with open('credentials.json') as f: api_key = json.load(f)['api-key'] class BaseTestClass(object): _membership_id = 4611686018467257491 _membership_type = 4 @pytest.mark.asyncio async def test_is_dict(self, res): assert type(res) is...
28.742358
116
0.667122
797599fa57681aceb05d38b1df4ab1f85634dff8
78,076
py
Python
QC/old/ErrorChecks_v22testerr.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
1
2017-05-24T02:05:20.000Z
2017-05-24T02:05:20.000Z
QC/old/ErrorChecks_v22testerr.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
null
null
null
QC/old/ErrorChecks_v22testerr.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
null
null
null
__date__ = '5/29/14' __author__ = 'ABREZNIC' import os, arcpy, xlwt, datetime, math, multiprocessing, shutil, smtplib, base64, sys # date now = datetime.datetime.now() curMonth = now.strftime("%m") curDay = now.strftime("%d") curYear = now.strftime("%Y") today = curYear + "_" + curMonth + "_" + curDay runday = now.st...
43.544897
333
0.525155
79759b0513b26e1b6cddd48398467505815459dc
3,749
py
Python
python/grpc/server/SimpleCal_pb2_grpc.py
harveywangdao/earth
665660120a00834f0963ad9163bf4f6a97d11c35
[ "Apache-2.0" ]
null
null
null
python/grpc/server/SimpleCal_pb2_grpc.py
harveywangdao/earth
665660120a00834f0963ad9163bf4f6a97d11c35
[ "Apache-2.0" ]
null
null
null
python/grpc/server/SimpleCal_pb2_grpc.py
harveywangdao/earth
665660120a00834f0963ad9163bf4f6a97d11c35
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import SimpleCal_pb2 as SimpleCal__pb2 class CalStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channe...
37.49
87
0.646039
79759b602188284ca745e9ca9a3f2af38bbfeb4e
7,190
py
Python
src/law_test.py
tridungduong16/counterfactual_fairness_game_theoretic
794d5224f9c656c06e5eb197ebbe1875f1856e7e
[ "MIT" ]
null
null
null
src/law_test.py
tridungduong16/counterfactual_fairness_game_theoretic
794d5224f9c656c06e5eb197ebbe1875f1856e7e
[ "MIT" ]
null
null
null
src/law_test.py
tridungduong16/counterfactual_fairness_game_theoretic
794d5224f9c656c06e5eb197ebbe1875f1856e7e
[ "MIT" ]
null
null
null
import torch import pandas as pd import sys import numpy as np from tqdm import tqdm from model_arch.discriminator import DiscriminatorLaw from dfencoder.autoencoder import AutoEncoder from dfencoder.dataframe import EncoderDataFrame from utils.evaluate_func import evaluate_pred, evaluate_distribution, evaluate_fairne...
33.44186
142
0.670097
79759b9ddee2db871660ac0b29da44da2824d4e1
1,170
py
Python
tests/storage/cases/test_KT1BxXZo7MurC3AyhuUsszQkNuxDxmvGAhqo_babylon.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2021-05-20T16:52:08.000Z
2021-05-20T16:52:08.000Z
tests/storage/cases/test_KT1BxXZo7MurC3AyhuUsszQkNuxDxmvGAhqo_babylon.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/storage/cases/test_KT1BxXZo7MurC3AyhuUsszQkNuxDxmvGAhqo_babylon.py
tqtezos/pytezos
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1BxXZo7MurC3AyhuUsszQkNuxDxmvGAhqo_babylon(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None ...
41.785714
112
0.757265
79759c122c0dabbbbfd35bd4da176342bfeaf91c
1,571
py
Python
contacts/views.py
michaelDropship/btre_project
c2cfcd77459bc732bfa0b1bb1fc84bb7f8c2956f
[ "bzip2-1.0.6" ]
null
null
null
contacts/views.py
michaelDropship/btre_project
c2cfcd77459bc732bfa0b1bb1fc84bb7f8c2956f
[ "bzip2-1.0.6" ]
2
2020-07-18T01:21:12.000Z
2021-05-10T08:48:33.000Z
contacts/views.py
michaelDropship/btre_project
c2cfcd77459bc732bfa0b1bb1fc84bb7f8c2956f
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.core.mail import send_mail from .models import Contact def contact(request): if request.method == "POST": listing_id = request.POST['listing_id'] listing = request.POST['listing'] name = request.PO...
38.317073
110
0.63781
79759cf72a9d67907285224260d17f0b0824e475
1,924
py
Python
python_scripts/batteries.py
vorostamas/smarthome
c7a4f5e8c0deae6990b88c7cd0af3104f4650334
[ "MIT" ]
null
null
null
python_scripts/batteries.py
vorostamas/smarthome
c7a4f5e8c0deae6990b88c7cd0af3104f4650334
[ "MIT" ]
1
2020-07-30T07:54:57.000Z
2020-07-30T07:54:57.000Z
python_scripts/batteries.py
vorostamas/smarthome
c7a4f5e8c0deae6990b88c7cd0af3104f4650334
[ "MIT" ]
null
null
null
""" Author : Suresh Kalavala Date : 02/09/2017 Description : Returns the appripriate icon for the entity File : batteries.py - python_script for batteries """ def get_icon(bat_level): icon = "mdi-unknown" battery_round = round(int(bat_level)/10)*10 if battery_round >= 100: icon =...
35.62963
113
0.641892
79759d17a50e54bbef863e136e72a31361d07684
11,960
py
Python
myia/ir/anf.py
bartvm/myia
c754a382a3c8fee53b38050ef82aa51d5083807e
[ "MIT" ]
null
null
null
myia/ir/anf.py
bartvm/myia
c754a382a3c8fee53b38050ef82aa51d5083807e
[ "MIT" ]
null
null
null
myia/ir/anf.py
bartvm/myia
c754a382a3c8fee53b38050ef82aa51d5083807e
[ "MIT" ]
null
null
null
"""Intermediate representation definition. Myia's main intermediate representation (IR) is a graph-based version of ANF. Each function definition (lambda) is defined as a graph, consisting of a series of function applications. A function can be applied to a node from another funtion's graph; this implicitly creates a...
33.501401
79
0.631773
79759da876443b1125599d0a5e181a6e53cd8d7b
3,450
py
Python
dramatic-dragonflies/terminal/consumers.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
dramatic-dragonflies/terminal/consumers.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
dramatic-dragonflies/terminal/consumers.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
import asyncio from operator import itemgetter from asyncio.exceptions import CancelledError from typing import Literal, Optional, Union from asyncio import subprocess from asgiref.sync import sync_to_async from asyncio.streams import StreamReader from vmachine.models import VMachine, Floppy from django.contrib.auth.mo...
40.116279
115
0.634203
79759dcc6b7694a2525616470c1ad12ab668b01c
69,955
py
Python
keras/engine/base_layer_test.py
tsheaff/keras
ee227dda766d769b7499a5549e8ed77b5e88105b
[ "Apache-2.0" ]
1
2022-03-21T02:42:58.000Z
2022-03-21T02:42:58.000Z
keras/engine/base_layer_test.py
tsheaff/keras
ee227dda766d769b7499a5549e8ed77b5e88105b
[ "Apache-2.0" ]
1
2022-03-31T16:40:51.000Z
2022-03-31T16:40:51.000Z
keras/engine/base_layer_test.py
tsheaff/keras
ee227dda766d769b7499a5549e8ed77b5e88105b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.600509
106
0.676278
79759e4896181a29d6ac8518ce9a7665a3b9a397
11,866
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/common/validator.py
abraham-leal/integrations-core
5062702ddae5314f504e6161c7720a1fcde777ea
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/common/validator.py
abraham-leal/integrations-core
5062702ddae5314f504e6161c7720a1fcde777ea
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/common/validator.py
abraham-leal/integrations-core
5062702ddae5314f504e6161c7720a1fcde777ea
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import abc import json import os from typing import Dict import six from datadog_checks.dev.tooling.datastructures import JSONDict from datadog_checks.dev.tooling.git import git_show_file from datadog_c...
38.904918
120
0.641581
79759f14ec11e1d5935092c302921d699d0336b6
7,027
py
Python
pyroms_toolbox/pyroms_toolbox/average.py
dcherian/pyroms
fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11
[ "BSD-3-Clause" ]
null
null
null
pyroms_toolbox/pyroms_toolbox/average.py
dcherian/pyroms
fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11
[ "BSD-3-Clause" ]
null
null
null
pyroms_toolbox/pyroms_toolbox/average.py
dcherian/pyroms
fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import _average import types import pyroms import numpy as np import netCDF4 from datetime import datetime # defined an avg_obj object class avg_obj(object): pass avg = avg_obj() def average(var, ncfiles, trange=None, avgfile=None, spval=1e37, timevar='ocean_time'): """ This function ...
38.823204
109
0.587733
79759f7066f3b802e9102f958f62bee255302c11
4,450
py
Python
data/AMIGOS/data_loader_1D.py
guanghaoyin/RTCAN-1D
238a80609896155d0478dbad5274862e7c1547bc
[ "CNRI-Python" ]
17
2020-08-25T08:04:01.000Z
2022-03-26T09:03:54.000Z
data/AMIGOS/data_loader_1D.py
guanghaoyin/RTCAN-1D
238a80609896155d0478dbad5274862e7c1547bc
[ "CNRI-Python" ]
1
2021-03-17T14:07:22.000Z
2021-10-06T19:40:35.000Z
data/AMIGOS/data_loader_1D.py
guanghaoyin/RTCAN-1D
238a80609896155d0478dbad5274862e7c1547bc
[ "CNRI-Python" ]
4
2020-09-02T12:31:23.000Z
2021-08-16T10:15:58.000Z
import numpy as np import csv import random import os from tqdm import tqdm import torchvision.transforms as transforms from PIL import Image import json import sys data_path = '/home/guanghaoyin/Desktop/Dataset/AMIGOS/' start_time = 0 # ignoring start seconds has been done eda_fps = 128 Net_size = 50 fold_cross_num ...
33.969466
112
0.571685
7975a0a1a01adfc981e965f52fd11003f8cf95f8
9,810
py
Python
salt/daemons/flo/worker.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/daemons/flo/worker.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
1
2019-08-18T07:03:30.000Z
2019-08-18T07:03:30.000Z
salt/daemons/flo/worker.py
nizD/salt
bbe135d62d8d8b4e4a7d0362097e1b3a3b092bed
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' The core behaviors used by minion and master ''' # pylint: disable=W0232 # pylint: disable=3rd-party-module-not-gated from __future__ import absolute_import, print_function, unicode_literals # Import python libs import time import os import multiprocessing import logging from salt.ext.six....
39.24
99
0.552396
7975a0aeb36a96e2c2081104292dbd3036cffd2e
17,289
py
Python
official/legacy/detection/modeling/architecture/spinenet.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
4
2019-11-02T14:47:46.000Z
2022-01-14T10:43:02.000Z
official/legacy/detection/modeling/architecture/spinenet.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
6
2021-10-05T18:53:55.000Z
2022-03-29T21:37:00.000Z
official/legacy/detection/modeling/architecture/spinenet.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
2
2021-11-30T21:50:03.000Z
2022-03-27T01:27:31.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.303571
80
0.626526
7975a1eda3960432ed5b82834c3685874f34bf43
1,872
py
Python
vendor/github.com/elastic/beats/metricbeat/tests/system/test_zookeeper.py
psadmin-io/ps-tuxbeat
1ccaa89ea9c4fc16ac572e26179719e5c16e9685
[ "Apache-2.0" ]
7
2017-07-04T03:53:49.000Z
2020-09-19T22:15:17.000Z
vendor/github.com/elastic/beats/metricbeat/tests/system/test_zookeeper.py
psadmin-io/ps-tuxbeat
1ccaa89ea9c4fc16ac572e26179719e5c16e9685
[ "Apache-2.0" ]
11
2017-03-14T15:03:00.000Z
2017-03-20T15:18:28.000Z
vendor/github.com/elastic/beats/metricbeat/tests/system/test_zookeeper.py
psadmin-io/ps-tuxbeat
1ccaa89ea9c4fc16ac572e26179719e5c16e9685
[ "Apache-2.0" ]
1
2019-12-02T05:43:09.000Z
2019-12-02T05:43:09.000Z
import os import metricbeat import unittest from nose.plugins.attrib import attr ZK_FIELDS = metricbeat.COMMON_FIELDS + ["zookeeper"] MNTR_FIELDS = ["version", "latency.avg", "latency.max", "latency.min", "packets.received", "packets.sent", "outstanding_requests", "server_state", "znode_...
32.842105
74
0.623932
7975a3130a2afbbb41e53490fdf386eb5ac48674
5,357
py
Python
cirq/contrib/quirk/export_to_quirk_test.py
amdhacks/Cirq
49c256422bb2b05fb87a941b0b9aab180fb69a4b
[ "Apache-2.0" ]
null
null
null
cirq/contrib/quirk/export_to_quirk_test.py
amdhacks/Cirq
49c256422bb2b05fb87a941b0b9aab180fb69a4b
[ "Apache-2.0" ]
null
null
null
cirq/contrib/quirk/export_to_quirk_test.py
amdhacks/Cirq
49c256422bb2b05fb87a941b0b9aab180fb69a4b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.691824
79
0.535561
7975a3b09d7dcc53b264fda1dedc9ede402eb668
3,956
py
Python
档案/VideoToStr.py
AdorableParker/VideoToStr
bc3358bd6d8580a15daccf3b18f5e76c02bf10cd
[ "MIT" ]
4
2018-08-15T18:14:35.000Z
2018-08-15T18:16:04.000Z
档案/VideoToStr.py
AdorableParker/VideoToStr
bc3358bd6d8580a15daccf3b18f5e76c02bf10cd
[ "MIT" ]
null
null
null
档案/VideoToStr.py
AdorableParker/VideoToStr
bc3358bd6d8580a15daccf3b18f5e76c02bf10cd
[ "MIT" ]
null
null
null
import os import sys import pickle import numpy as N import invoke from threading import Thread pixels = " .,`'-~:!1+*abcdefghijklmnopqrstuvwxyz<>()\/{}[]?234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ%&@#$" def Video_to_imgs(Video, size, seconds): """ param1: 视频文件路径,str param2: 生成图片的尺寸,[H,L] return: img_list """ impor...
23.408284
100
0.695905
7975a467dcb2258fb7f53b7cfe78941d604267ac
5,320
py
Python
upstride_argparse/__init__.py
jrouquie/betterargparse
84b530289aba6c039ea2b5da3710cc7812d16e5b
[ "MIT" ]
null
null
null
upstride_argparse/__init__.py
jrouquie/betterargparse
84b530289aba6c039ea2b5da3710cc7812d16e5b
[ "MIT" ]
null
null
null
upstride_argparse/__init__.py
jrouquie/betterargparse
84b530289aba6c039ea2b5da3710cc7812d16e5b
[ "MIT" ]
null
null
null
import argparse import yaml import os def create_dir(path: str): """this function exists to be called by the argument parser, to automatically create new directories """ try: os.makedirs(path, exist_ok=True) except FileExistsError as e: # this error shouldn't happen because of exist_ok=True, but we...
33.670886
127
0.674436
7975a5ab2cd3951404beda69dd50af717663267f
492
py
Python
agario/networking/agario.py
Den4200/agario
a20f5115fed072ab9274a66127e3f15b0c690a1d
[ "MIT" ]
null
null
null
agario/networking/agario.py
Den4200/agario
a20f5115fed072ab9274a66127e3f15b0c690a1d
[ "MIT" ]
4
2021-06-08T21:51:57.000Z
2022-03-12T00:42:11.000Z
agario/networking/agario.py
Den4200/agario
a20f5115fed072ab9274a66127e3f15b0c690a1d
[ "MIT" ]
1
2020-09-08T08:58:22.000Z
2020-09-08T08:58:22.000Z
from typing import Any, Dict from frost.client.events import EventStatus from frost.ext import Cog from agario.objects import GameState class Agario(Cog, route='agario'): def post_join(data: Dict[str, Any]) -> None: EventStatus.join_game = data['headers']['status'] def post_leave(data: Dict[str, A...
25.894737
58
0.686992
7975a6169284087dd9e4a93a5042545c1ee32a92
4,551
py
Python
migrations/versions/47214944411d_initial_migration.py
profcalculus/paradigmchess30
d1cb41d5e18b5449979722d0b95664e60cbed203
[ "MIT" ]
null
null
null
migrations/versions/47214944411d_initial_migration.py
profcalculus/paradigmchess30
d1cb41d5e18b5449979722d0b95664e60cbed203
[ "MIT" ]
null
null
null
migrations/versions/47214944411d_initial_migration.py
profcalculus/paradigmchess30
d1cb41d5e18b5449979722d0b95664e60cbed203
[ "MIT" ]
null
null
null
"""Initial migration Revision ID: 47214944411d Revises: Create Date: 2020-06-24 13:11:21.014641 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '47214944411d' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
43.759615
99
0.676335
7975a6866ac485dfdb998fe79b91f500f2b28cea
1,697
py
Python
chords/train_model.py
fernando-figueredo/ChordsWebApp
9bf983ab5579c36c75447c74eec0400d78ab49f9
[ "MIT" ]
2
2021-03-30T01:09:51.000Z
2022-03-10T21:17:15.000Z
chords/train_model.py
fernando-figueredo/ChordsWebApp
9bf983ab5579c36c75447c74eec0400d78ab49f9
[ "MIT" ]
null
null
null
chords/train_model.py
fernando-figueredo/ChordsWebApp
9bf983ab5579c36c75447c74eec0400d78ab49f9
[ "MIT" ]
null
null
null
from neural_network.train import Trainer def validate(): trainer = Trainer("models/binary_crossentropy.h5") trainer.train() trainer.save() trainer.save_architecture() results = trainer.validate() with open( "validation_results.csv", "a") as f: for instrument in results.keys(): ...
32.634615
148
0.608721
7975a6cdb5a99105e21d8553870ae8a10548571a
143
py
Python
webdev/test_home.py
gustavodoamaral/to-do-list_1
c926cd14033e4edcff25b0f236aeae4bf2f1aef9
[ "MIT" ]
null
null
null
webdev/test_home.py
gustavodoamaral/to-do-list_1
c926cd14033e4edcff25b0f236aeae4bf2f1aef9
[ "MIT" ]
7
2021-05-08T01:01:24.000Z
2021-05-10T15:42:25.000Z
webdev/test_home.py
fexjac/django_pro
84be0618eb975d734975bfdc39d3b078208c8f73
[ "MIT" ]
null
null
null
from django.test import Client def test_home_status_code(client:Client): resposta = client.get('/') assert resposta.status_code == 200
28.6
41
0.748252
7975a6eea0d69cd0449ed62e62535edcfd0c1bce
2,378
py
Python
homeassistant/components/digital_ocean/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/digital_ocean/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/digital_ocean/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
"""Support for Digital Ocean.""" import logging from datetime import timedelta import voluptuous as vol from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv REQUIREMENTS = ['python-digitalocean==1.13.2'] _LOGGER = logging.getL...
26.422222
69
0.706897
7975a77c056bbf4f2c083e2fd11215e3df15511b
574
py
Python
setup.py
SengerM/signals
2aa32a83dad4a04e4d63c8ee58daf5c1a2b02931
[ "MIT" ]
null
null
null
setup.py
SengerM/signals
2aa32a83dad4a04e4d63c8ee58daf5c1a2b02931
[ "MIT" ]
null
null
null
setup.py
SengerM/signals
2aa32a83dad4a04e4d63c8ee58daf5c1a2b02931
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name = "signals", version = "0", author = "Matias Senger", author_email = "m.senger@hotmail.com", description = "Utilities for signal analysis", long_description = long_description, long_description_content_typ...
26.090909
49
0.705575
7975a7d33549b9bdf8e1221fee37a4afe7a06335
935
py
Python
utils/debug.py
StackVista/sts-agent
f8358ea46820ffb9eb0b4b30c7d7457cc2cc987a
[ "BSD-3-Clause" ]
4
2017-03-18T12:16:40.000Z
2020-11-12T06:59:29.000Z
utils/debug.py
StackVista/sts-agent
f8358ea46820ffb9eb0b4b30c7d7457cc2cc987a
[ "BSD-3-Clause" ]
18
2016-09-22T08:01:02.000Z
2020-07-15T08:30:17.000Z
utils/debug.py
StackVista/sts-agent
f8358ea46820ffb9eb0b4b30c7d7457cc2cc987a
[ "BSD-3-Clause" ]
8
2016-11-23T06:55:51.000Z
2021-07-05T05:12:34.000Z
# stdlib import inspect import sys # datadog from config import get_checksd_path from utils.platform import get_os def get_check(name, config_str): from checks import AgentCheck checksd_path = get_checksd_path(get_os()) if checksd_path not in sys.path: sys.path.append(checksd_path) check_mo...
27.5
101
0.674866
7975a82d1ce84d11e75f09392d2ed9a1f0d7adc8
42,691
py
Python
src/qt/qtbase/util/local_database/cldr2qlocalexml.py
viewdy/phantomjs
eddb0db1d253fd0c546060a4555554c8ee08c13c
[ "BSD-3-Clause" ]
1
2021-02-09T10:24:31.000Z
2021-02-09T10:24:31.000Z
src/qt/qtbase/util/local_database/cldr2qlocalexml.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtbase/util/local_database/cldr2qlocalexml.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
1
2017-03-19T13:03:23.000Z
2017-03-19T13:03:23.000Z
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ## Contact: http://www.qt-project.org/legal ## ## This file is part of the test suite of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:LGPL$ ## Commercial License...
52.575123
155
0.621185
7975a88656a27eaf5c48100d99c40311fddab3fe
3,540
py
Python
improver_tests/synthetic_data/test_utilities.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver_tests/synthetic_data/test_utilities.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver_tests/synthetic_data/test_utilities.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
40.227273
90
0.708757
7975aaa78ac6749be9187ff544dabafbf13c39d1
3,124
py
Python
src/seed_info_utils.py
AnzhelaSukhanova/spacer_fuzzer
9268cc57a93d327cc3cf1a9406cc1b96efa68905
[ "MIT" ]
1
2022-03-03T13:21:06.000Z
2022-03-03T13:21:06.000Z
src/seed_info_utils.py
AnzhelaSukhanova/spacer_fuzzer
9268cc57a93d327cc3cf1a9406cc1b96efa68905
[ "MIT" ]
null
null
null
src/seed_info_utils.py
AnzhelaSukhanova/spacer_fuzzer
9268cc57a93d327cc3cf1a9406cc1b96efa68905
[ "MIT" ]
null
null
null
import json import os import re import os.path SEED_INFO_FILE_LIMIT = 100 seed_info_path = 'seed_info' def _load_seed_info(descriptor): if os.path.exists(descriptor['path']): with open(descriptor['path']) as f: return json.load(f) return {} def _write_seed_info(data, descriptor): wi...
36.752941
107
0.662292
7975aac9fa0042b77ac1f1c4e7e93e1a5900e628
10,514
py
Python
tests/frontend/artifact_delete.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/frontend/artifact_delete.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/frontend/artifact_delete.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Codethink Limited # # 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 agre...
40.129771
112
0.711527
7975ab0c5995d632a35c8d7a93561919e27e9896
6,807
py
Python
annif/corpus/subject.py
jimfhahn/Annif
1a35a273bbdda1f98ac98099fec1bc38e984f327
[ "Apache-2.0" ]
121
2017-10-13T05:02:31.000Z
2022-03-14T14:02:02.000Z
annif/corpus/subject.py
jimfhahn/Annif
1a35a273bbdda1f98ac98099fec1bc38e984f327
[ "Apache-2.0" ]
554
2017-09-21T09:25:09.000Z
2022-03-31T12:14:01.000Z
annif/corpus/subject.py
jimfhahn/Annif
1a35a273bbdda1f98ac98099fec1bc38e984f327
[ "Apache-2.0" ]
29
2018-11-30T10:04:55.000Z
2022-02-22T18:50:13.000Z
"""Classes for supporting subject corpora expressed as directories or files""" import annif.util import numpy as np from annif import logger from .types import Subject from .skos import serialize_subjects_to_skos class SubjectFileTSV: """A subject vocabulary stored in a TSV file.""" def __init__(self, path)...
34.378788
82
0.594388
7975ab35c2f35c09abc0201709e7f17ae9550916
1,694
py
Python
meraki_sdk/models/subnet_model.py
meraki/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki_sdk/models/subnet_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki_sdk/models/subnet_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class SubnetModel(object): """Implementation of the 'Subnet' model. TODO: type model description here. Attributes: local_subnet (string...
26.46875
95
0.586187
7975ab598ce2287dacdefcdd31826da89d48f2fe
12,535
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/openstack/os_coe_cluster_template.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/openstack/os_coe_cluster_template.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/openstack/os_coe_cluster_template.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # Copyright (c) 2018 Catalyst IT Ltd. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['pr...
33.516043
125
0.630794
7975abdeec9df8e29532145943614aea596f33fe
828
py
Python
AlarmeDeAcoes/AlarmeDeAcoes/urls.py
JoaoGabrielM/alarme-de-acoes
d2e397450fe456c1b13cf0668d49c645fab1ac43
[ "MIT" ]
null
null
null
AlarmeDeAcoes/AlarmeDeAcoes/urls.py
JoaoGabrielM/alarme-de-acoes
d2e397450fe456c1b13cf0668d49c645fab1ac43
[ "MIT" ]
null
null
null
AlarmeDeAcoes/AlarmeDeAcoes/urls.py
JoaoGabrielM/alarme-de-acoes
d2e397450fe456c1b13cf0668d49c645fab1ac43
[ "MIT" ]
null
null
null
"""AlarmeDeAcoes URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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...
34.5
77
0.708937
7975abebfc71edb755ef819b7a67f50e7c6803b8
34,598
py
Python
test/inverted/TestInvertedTurtleRock.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
null
null
null
test/inverted/TestInvertedTurtleRock.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
null
null
null
test/inverted/TestInvertedTurtleRock.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
null
null
null
from test.inverted.TestInverted import TestInverted class TestInvertedTurtleRock(TestInverted): def testTurtleRock(self): self.run_tests([ ["Turtle Rock - Compass Chest", False, []], ["Turtle Rock - Compass Chest", False, [], ['Cane of Somaria']], ["Turtle Rock - Compa...
167.140097
363
0.617319
7975aca35e067cc144214fdaf54d122786839e62
1,479
py
Python
fqfa/validator/create.py
VariantEffect/fqfa
f99e96009a05a24ca6aabbf9e04d3cf87fe00cb4
[ "BSD-3-Clause" ]
2
2019-12-24T06:53:57.000Z
2020-01-15T21:06:24.000Z
fqfa/validator/create.py
VariantEffect/fqfa
f99e96009a05a24ca6aabbf9e04d3cf87fe00cb4
[ "BSD-3-Clause" ]
3
2020-01-23T03:34:47.000Z
2020-02-20T10:22:23.000Z
fqfa/validator/create.py
VariantEffect/fqfa
f99e96009a05a24ca6aabbf9e04d3cf87fe00cb4
[ "BSD-3-Clause" ]
2
2020-02-11T23:39:11.000Z
2020-03-28T22:00:24.000Z
import re from typing import Union, List, Callable, Match, Optional __all__ = ["create_validator"] def create_validator( valid_characters: Union[str, List[str]], case_sensitive: bool = True ) -> Callable[[str], Optional[Match[str]]]: """Function that generates a callable, regular-expression based sequence va...
32.866667
108
0.682894
7975ad55453c2f2eb0359e8ea04572f2d4326879
1,206
py
Python
h2o-py/tests/testdir_algos/kmeans/pyunit_iris_h2o_vs_sciKmeans.py
PawarPawan/h2o-v3
cf569a538c9e2ec16ba9fc1a75d14beda8f40c18
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/kmeans/pyunit_iris_h2o_vs_sciKmeans.py
PawarPawan/h2o-v3
cf569a538c9e2ec16ba9fc1a75d14beda8f40c18
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/kmeans/pyunit_iris_h2o_vs_sciKmeans.py
PawarPawan/h2o-v3
cf569a538c9e2ec16ba9fc1a75d14beda8f40c18
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(1, "../../../") import h2o import numpy as np from sklearn.cluster import KMeans def iris_h2o_vs_sciKmeans(ip,port): # Connect to a pre-existing cluster # connect to localhost:54321 iris_h2o = h2o.import_file(path=h2o.locate("smalldata/iris/iris.csv")) iris_sci = np.genfromtxt(h2...
28.046512
81
0.699834
7975ad6d2232df6dde82adfefc5e02d457811b43
2,822
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
44.09375
83
0.671864
7975af243c7c6b510db66821d2dfccd013e23d67
6,309
py
Python
tests/handlers/test_cas.py
callahad/synapse
066068f03478753b7d838ae49e87d7a6cde80fd6
[ "Apache-2.0" ]
1
2021-03-29T22:47:31.000Z
2021-03-29T22:47:31.000Z
tests/handlers/test_cas.py
callahad/synapse
066068f03478753b7d838ae49e87d7a6cde80fd6
[ "Apache-2.0" ]
1
2019-04-04T05:08:04.000Z
2019-04-04T05:08:04.000Z
tests/handlers/test_cas.py
callahad/synapse
066068f03478753b7d838ae49e87d7a6cde80fd6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Matrix.org Foundation C.I.C. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
37.111765
98
0.659534